From 0be80ccdf14a53250feffb48a0341c069f02ba05 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Wed, 8 Nov 2023 12:05:05 +0200 Subject: [PATCH 01/28] codegen: Generate type alias for storage return types Signed-off-by: Alexandru Vasile --- codegen/src/api/storage.rs | 51 +++++++++++++++++++++++++++++++------- 1 file changed, 42 insertions(+), 9 deletions(-) diff --git a/codegen/src/api/storage.rs b/codegen/src/api/storage.rs index f012f9ed56..4ae7d1d8f5 100644 --- a/codegen/src/api/storage.rs +++ b/codegen/src/api/storage.rs @@ -5,6 +5,7 @@ use crate::types::TypeGenerator; use crate::types::TypePath; use heck::ToSnakeCase as _; +use heck::ToUpperCamelCase as _; use proc_macro2::{Ident, TokenStream as TokenStream2, TokenStream}; use quote::{format_ident, quote}; use scale_info::TypeDef; @@ -34,18 +35,33 @@ pub fn generate_storage( return Ok(quote!()); }; - let storage_fns = storage + let (storage_fns, alias_modules): (Vec<_>, Vec<_>) = storage .entries() .iter() .map(|entry| { - generate_storage_entry_fns(type_gen, pallet, entry, crate_path, should_gen_docs) + generate_storage_entry_fns( + type_gen, + pallet, + entry, + crate_path, + should_gen_docs, + types_mod_ident, + ) }) - .collect::, CodegenError>>()?; + .collect::, CodegenError>>()? + .into_iter() + .unzip(); Ok(quote! { pub mod storage { use super::#types_mod_ident; + pub mod alias_types { + use super::#types_mod_ident; + + #( #alias_modules )* + } + pub struct StorageApi; impl StorageApi { @@ -61,7 +77,8 @@ fn generate_storage_entry_fns( storage_entry: &StorageEntryMetadata, crate_path: &syn::Path, should_gen_docs: bool, -) -> Result { + types_mod_ident: &syn::Ident, +) -> Result<(TokenStream2, TokenStream2), CodegenError> { let keys: Vec<(Ident, TypePath)> = match storage_entry.entry_type() { StorageEntryType::Plain(_) => vec![], StorageEntryType::Map { key_ty, .. } => { @@ -98,6 +115,11 @@ fn generate_storage_entry_fns( let snake_case_name = storage_entry.name().to_snake_case(); let storage_entry_ty = storage_entry.entry_type().value_ty(); let storage_entry_value_ty = type_gen.resolve_type_path(storage_entry_ty); + + let alias_name = format_ident!("{}", storage_entry.name().to_upper_camel_case()); + let alias_module_name = format_ident!("{snake_case_name}"); + let alias_storage_path = quote!( alias_types::#alias_module_name::#alias_name ); + let docs = storage_entry.docs(); let docs = should_gen_docs .then_some(quote! { #( #[doc = #docs ] )* }) @@ -136,7 +158,7 @@ fn generate_storage_entry_fns( #(#key_args,)* ) -> #crate_path::storage::address::Address::< #crate_path::storage::address::StaticStorageMapKey, - #storage_entry_value_ty, + #alias_storage_path, #is_fetchable_type, #is_defaultable_type, #is_iterable_type @@ -151,11 +173,22 @@ fn generate_storage_entry_fns( ) }); - Ok(quote! { - #( #all_fns + // Generate type alias for the return type only, since + // the keys of the storage entry are not explicitly named. + let alias_module = quote! { + pub mod #alias_module_name { + use super::#types_mod_ident; - )* - }) + pub type #alias_name = #storage_entry_value_ty; + } + }; + + Ok(( + quote! { + #( #all_fns )* + }, + alias_module, + )) } fn primitive_type_alias(type_path: &TypePath) -> TokenStream { From f522e5ab467adc33e681dfa479c4574294ad5606 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Wed, 8 Nov 2023 12:12:51 +0200 Subject: [PATCH 02/28] codegen: Generate type alias for call function arguments Signed-off-by: Alexandru Vasile --- codegen/src/api/calls.rs | 85 ++++++++++++++++++++++++++++------------ 1 file changed, 61 insertions(+), 24 deletions(-) diff --git a/codegen/src/api/calls.rs b/codegen/src/api/calls.rs index 74356266e0..a71ffffc41 100644 --- a/codegen/src/api/calls.rs +++ b/codegen/src/api/calls.rs @@ -38,27 +38,48 @@ pub fn generate_calls( crate_path, should_gen_docs, )?; - let (call_structs, call_fns): (Vec<_>, Vec<_>) = struct_defs + + let result = struct_defs .iter_mut() .map(|(variant_name, struct_def)| { - let (call_fn_args, call_args): (Vec<_>, Vec<_>) = match struct_def.fields { - CompositeDefFields::Named(ref named_fields) => named_fields - .iter() - .map(|(name, field)| { - let fn_arg_type = &field.type_path; - let call_arg = if field.is_boxed() { - quote! { #name: ::std::boxed::Box::new(#name) } - } else { - quote! { #name } - }; - (quote!( #name: #fn_arg_type ), call_arg) - }) - .unzip(), - CompositeDefFields::NoFields => Default::default(), - CompositeDefFields::Unnamed(_) => { - return Err(CodegenError::InvalidCallVariant(call_ty)) - } - }; + let fn_name = format_ident!("{}", variant_name.to_snake_case()); + + let (call_fn_args, call_args, alias_args): (Vec<_>, Vec<_>, Vec<_>) = + match struct_def.fields { + CompositeDefFields::Named(ref named_fields) => { + let result = named_fields.iter().map(|(name, field)| { + let fn_arg_type = &field.type_path; + let call_arg = if field.is_boxed() { + quote! { #name: ::std::boxed::Box::new(#name) } + } else { + quote! { #name } + }; + // One downside of the type alias system is that we generate one alias per argument. + // Multiple arguments could potentially have the same type (ie fn call(u32, u32, u32)). + let alias_name = + format_ident!("{}", name.to_string().to_upper_camel_case()); + + ( + quote!( #name: alias_types::#fn_name::#alias_name ), + call_arg, + quote!( pub type #alias_name = #fn_arg_type; ), + ) + }); + + ( + result + .clone() + .map(|(call_fn_args, _, _)| call_fn_args) + .collect(), + result.clone().map(|(_, call_args, _)| call_args).collect(), + result.map(|(_, _, alias_args)| alias_args).collect(), + ) + } + CompositeDefFields::NoFields => Default::default(), + CompositeDefFields::Unnamed(_) => { + return Err(CodegenError::InvalidCallVariant(call_ty)) + } + }; let pallet_name = pallet.name(); let call_name = &variant_name; @@ -69,7 +90,7 @@ pub fn generate_calls( call_name.to_string(), )); }; - let fn_name = format_ident!("{}", variant_name.to_snake_case()); + // Propagate the documentation just to `TransactionApi` methods, while // draining the documentation of inner call structures. let docs = should_gen_docs.then_some(struct_def.docs.take()).flatten(); @@ -99,11 +120,21 @@ pub fn generate_calls( } }; - Ok((call_struct, client_fn)) + let alias_module = quote! { + pub mod #fn_name { + use super::#types_mod_ident; + + #(#alias_args)* + } + }; + + Ok((call_struct, client_fn, alias_module)) }) - .collect::, _>>()? - .into_iter() - .unzip(); + .collect::, _>>()?; + + let call_structs = result.iter().map(|(call_struct, _, _)| call_struct); + let call_fns = result.iter().map(|(_, client_fn, _)| client_fn); + let alias_modules = result.iter().map(|(_, _, alias_module)| alias_module); let call_type = type_gen.resolve_type_path(call_ty); let call_ty = type_gen.resolve_type(call_ty); @@ -121,6 +152,12 @@ pub fn generate_calls( type DispatchError = #types_mod_ident::sp_runtime::DispatchError; + pub mod alias_types { + use super::#types_mod_ident; + + #( #alias_modules )* + } + pub mod types { use super::#types_mod_ident; From d05085932d33ea83b508d29e0564ed63f829ae7f Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Wed, 8 Nov 2023 12:34:43 +0200 Subject: [PATCH 03/28] testing: Update polkadot.rs code from commit 2e2a75ff81 Signed-off-by: Alexandru Vasile --- .../src/full_client/codegen/polkadot.rs | 48037 ++++++++-------- 1 file changed, 24341 insertions(+), 23696 deletions(-) diff --git a/testing/integration-tests/src/full_client/codegen/polkadot.rs b/testing/integration-tests/src/full_client/codegen/polkadot.rs index dbbe16bd25..185c3b05e4 100644 --- a/testing/integration-tests/src/full_client/codegen/polkadot.rs +++ b/testing/integration-tests/src/full_client/codegen/polkadot.rs @@ -6,45 +6,44 @@ pub mod api { mod root_mod { pub use super::*; } - pub static PALLETS: [&str; 57usize] = [ + pub static PALLETS: [&str; 65usize] = [ "System", - "Scheduler", - "Preimage", "Babe", "Timestamp", "Indices", "Balances", "TransactionPayment", "Authorship", - "Staking", "Offences", "Historical", + "Beefy", + "Mmr", + "MmrLeaf", "Session", "Grandpa", "ImOnline", "AuthorityDiscovery", - "Democracy", - "Council", - "TechnicalCommittee", - "PhragmenElection", - "TechnicalMembership", "Treasury", "ConvictionVoting", "Referenda", + "FellowshipCollective", + "FellowshipReferenda", "Whitelist", "Claims", - "Vesting", "Utility", "Identity", + "Society", + "Recovery", + "Vesting", + "Scheduler", "Proxy", "Multisig", + "Preimage", + "AssetRate", "Bounties", "ChildBounties", - "Tips", - "ElectionProviderMultiPhase", - "VoterList", - "NominationPools", - "FastUnstake", + "Nis", + "NisCounterpartBalances", "ParachainsOrigin", "Configuration", "ParasShared", @@ -58,19 +57,26 @@ pub mod api { "ParaSessionInfo", "ParasDisputes", "ParasSlashing", + "MessageQueue", + "ParaAssignmentProvider", + "OnDemandAssignmentProvider", + "ParachainsAssignmentProvider", "Registrar", "Slots", "Auctions", "Crowdloan", "XcmPallet", - "MessageQueue", + "ParasSudoWrapper", + "AssignedSlots", + "ValidatorManager", + "StateTrieMigration", + "RootTesting", + "Sudo", ]; - pub static RUNTIME_APIS: [&str; 17usize] = [ + pub static RUNTIME_APIS: [&str; 16usize] = [ "Core", "Metadata", "BlockBuilder", - "NominationPoolsApi", - "StakingApi", "TaggedTransactionQueue", "OffchainWorkerApi", "ParachainHost", @@ -82,16 +88,17 @@ pub mod api { "SessionKeys", "AccountNonceApi", "TransactionPaymentApi", - "TransactionPaymentCallApi", + "BeefyMmrApi", + "GenesisBuilder", ]; #[doc = r" The error type returned when there is a runtime issue."] pub type DispatchError = runtime_types::sp_runtime::DispatchError; #[doc = r" The outer event enum."] - pub type Event = runtime_types::polkadot_runtime::RuntimeEvent; + pub type Event = runtime_types::rococo_runtime::RuntimeEvent; #[doc = r" The outer extrinsic enum."] - pub type Call = runtime_types::polkadot_runtime::RuntimeCall; + pub type Call = runtime_types::rococo_runtime::RuntimeCall; #[doc = r" The outer error enum representing the DispatchError's Module variant."] - pub type Error = runtime_types::polkadot_runtime::RuntimeError; + pub type Error = runtime_types::rococo_runtime::RuntimeError; pub fn constants() -> ConstantsApi { ConstantsApi } @@ -119,12 +126,6 @@ pub mod api { pub fn block_builder(&self) -> block_builder::BlockBuilder { block_builder::BlockBuilder } - pub fn nomination_pools_api(&self) -> nomination_pools_api::NominationPoolsApi { - nomination_pools_api::NominationPoolsApi - } - pub fn staking_api(&self) -> staking_api::StakingApi { - staking_api::StakingApi - } pub fn tagged_transaction_queue( &self, ) -> tagged_transaction_queue::TaggedTransactionQueue { @@ -164,10 +165,11 @@ pub mod api { ) -> transaction_payment_api::TransactionPaymentApi { transaction_payment_api::TransactionPaymentApi } - pub fn transaction_payment_call_api( - &self, - ) -> transaction_payment_call_api::TransactionPaymentCallApi { - transaction_payment_call_api::TransactionPaymentCallApi + pub fn beefy_mmr_api(&self) -> beefy_mmr_api::BeefyMmrApi { + beefy_mmr_api::BeefyMmrApi + } + pub fn genesis_builder(&self) -> genesis_builder::GenesisBuilder { + genesis_builder::GenesisBuilder } } pub mod core { @@ -198,7 +200,7 @@ pub mod api { #[doc = " Execute the given block."] pub fn execute_block( &self, - block : runtime_types :: sp_runtime :: generic :: block :: Block < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > , runtime_types :: sp_runtime :: generic :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: polkadot_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: polkadot_runtime_common :: claims :: PrevalidateAttests ,) > >, + block : runtime_types :: sp_runtime :: generic :: block :: Block < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > , :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > >, ) -> ::subxt::runtime_api::Payload { ::subxt::runtime_api::Payload::new_static( "Core", @@ -216,7 +218,6 @@ pub mod api { &self, header: runtime_types::sp_runtime::generic::header::Header< ::core::primitive::u32, - runtime_types::sp_runtime::traits::BlakeTwo256, >, ) -> ::subxt::runtime_api::Payload { ::subxt::runtime_api::Payload::new_static( @@ -254,7 +255,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ExecuteBlock { pub block : runtime_types :: sp_runtime :: generic :: block :: Block < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > , runtime_types :: sp_runtime :: generic :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: polkadot_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: polkadot_runtime_common :: claims :: PrevalidateAttests ,) > > , } + pub struct ExecuteBlock { pub block : runtime_types :: sp_runtime :: generic :: block :: Block < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > , :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > > , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -266,10 +267,8 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct InitializeBlock { - pub header: runtime_types::sp_runtime::generic::header::Header< - ::core::primitive::u32, - runtime_types::sp_runtime::traits::BlakeTwo256, - >, + pub header: + runtime_types::sp_runtime::generic::header::Header<::core::primitive::u32>, } } } @@ -393,7 +392,7 @@ pub mod api { #[doc = " this block or not."] pub fn apply_extrinsic( &self, - extrinsic : runtime_types :: sp_runtime :: generic :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: polkadot_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: polkadot_runtime_common :: claims :: PrevalidateAttests ,) >, + extrinsic : :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) >, ) -> ::subxt::runtime_api::Payload< types::ApplyExtrinsic, ::core::result::Result< @@ -417,10 +416,7 @@ pub mod api { &self, ) -> ::subxt::runtime_api::Payload< types::FinalizeBlock, - runtime_types::sp_runtime::generic::header::Header< - ::core::primitive::u32, - runtime_types::sp_runtime::traits::BlakeTwo256, - >, + runtime_types::sp_runtime::generic::header::Header<::core::primitive::u32>, > { ::subxt::runtime_api::Payload::new_static( "BlockBuilder", @@ -433,7 +429,7 @@ pub mod api { ], ) } - #[doc = " Generate inherent extrinsics. The inherent data will vary from chain to chain."] pub fn inherent_extrinsics (& self , inherent : runtime_types :: sp_inherents :: InherentData ,) -> :: subxt :: runtime_api :: Payload < types :: InherentExtrinsics , :: std :: vec :: Vec < runtime_types :: sp_runtime :: generic :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: polkadot_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: polkadot_runtime_common :: claims :: PrevalidateAttests ,) > > >{ + #[doc = " Generate inherent extrinsics. The inherent data will vary from chain to chain."] pub fn inherent_extrinsics (& self , inherent : runtime_types :: sp_inherents :: InherentData ,) -> :: subxt :: runtime_api :: Payload < types :: InherentExtrinsics , :: std :: vec :: Vec < :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > > >{ ::subxt::runtime_api::Payload::new_static( "BlockBuilder", "inherent_extrinsics", @@ -449,7 +445,7 @@ pub mod api { #[doc = " Check that the inherents are valid. The inherent data will vary from chain to chain."] pub fn check_inherents( &self, - block : runtime_types :: sp_runtime :: generic :: block :: Block < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > , runtime_types :: sp_runtime :: generic :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: polkadot_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: polkadot_runtime_common :: claims :: PrevalidateAttests ,) > >, + block : runtime_types :: sp_runtime :: generic :: block :: Block < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > , :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > >, data: runtime_types::sp_inherents::InherentData, ) -> ::subxt::runtime_api::Payload< types::CheckInherents, @@ -480,7 +476,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ApplyExtrinsic { pub extrinsic : runtime_types :: sp_runtime :: generic :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: polkadot_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: polkadot_runtime_common :: claims :: PrevalidateAttests ,) > , } + pub struct ApplyExtrinsic { pub extrinsic : :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -515,156 +511,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct CheckInherents { pub block : runtime_types :: sp_runtime :: generic :: block :: Block < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > , runtime_types :: sp_runtime :: generic :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: polkadot_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: polkadot_runtime_common :: claims :: PrevalidateAttests ,) > > , pub data : runtime_types :: sp_inherents :: InherentData , } - } - } - pub mod nomination_pools_api { - use super::root_mod; - use super::runtime_types; - #[doc = " Runtime api for accessing information about nomination pools."] - pub struct NominationPoolsApi; - impl NominationPoolsApi { - #[doc = " Returns the pending rewards for the member that the AccountId was given for."] - pub fn pending_rewards( - &self, - who: ::subxt::utils::AccountId32, - ) -> ::subxt::runtime_api::Payload - { - ::subxt::runtime_api::Payload::new_static( - "NominationPoolsApi", - "pending_rewards", - types::PendingRewards { who }, - [ - 78u8, 79u8, 88u8, 196u8, 232u8, 243u8, 82u8, 234u8, 115u8, 130u8, - 124u8, 165u8, 217u8, 64u8, 17u8, 48u8, 245u8, 181u8, 130u8, 120u8, - 217u8, 158u8, 146u8, 242u8, 41u8, 206u8, 90u8, 201u8, 244u8, 10u8, - 137u8, 19u8, - ], - ) - } - #[doc = " Returns the equivalent balance of `points` for a given pool."] - pub fn points_to_balance( - &self, - pool_id: ::core::primitive::u32, - points: ::core::primitive::u128, - ) -> ::subxt::runtime_api::Payload - { - ::subxt::runtime_api::Payload::new_static( - "NominationPoolsApi", - "points_to_balance", - types::PointsToBalance { pool_id, points }, - [ - 106u8, 191u8, 150u8, 40u8, 231u8, 8u8, 82u8, 104u8, 109u8, 105u8, 94u8, - 109u8, 38u8, 165u8, 199u8, 81u8, 37u8, 181u8, 115u8, 106u8, 52u8, - 192u8, 56u8, 255u8, 145u8, 204u8, 12u8, 241u8, 120u8, 20u8, 188u8, - 12u8, - ], - ) - } - #[doc = " Returns the equivalent points of `new_funds` for a given pool."] - pub fn balance_to_points( - &self, - pool_id: ::core::primitive::u32, - new_funds: ::core::primitive::u128, - ) -> ::subxt::runtime_api::Payload - { - ::subxt::runtime_api::Payload::new_static( - "NominationPoolsApi", - "balance_to_points", - types::BalanceToPoints { pool_id, new_funds }, - [ - 5u8, 213u8, 46u8, 194u8, 117u8, 119u8, 10u8, 139u8, 191u8, 76u8, 59u8, - 81u8, 159u8, 38u8, 144u8, 176u8, 63u8, 138u8, 233u8, 138u8, 236u8, - 208u8, 113u8, 230u8, 131u8, 75u8, 67u8, 204u8, 160u8, 100u8, 198u8, - 174u8, - ], - ) - } - } - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct PendingRewards { - pub who: ::subxt::utils::AccountId32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct PointsToBalance { - pub pool_id: ::core::primitive::u32, - pub points: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct BalanceToPoints { - pub pool_id: ::core::primitive::u32, - pub new_funds: ::core::primitive::u128, - } - } - } - pub mod staking_api { - use super::root_mod; - use super::runtime_types; - pub struct StakingApi; - impl StakingApi { - #[doc = " Returns the nominations quota for a nominator with a given balance."] - pub fn nominations_quota( - &self, - balance: ::core::primitive::u128, - ) -> ::subxt::runtime_api::Payload - { - ::subxt::runtime_api::Payload::new_static( - "StakingApi", - "nominations_quota", - types::NominationsQuota { balance }, - [ - 221u8, 113u8, 50u8, 150u8, 51u8, 181u8, 158u8, 235u8, 25u8, 160u8, - 135u8, 47u8, 196u8, 129u8, 90u8, 137u8, 157u8, 167u8, 212u8, 104u8, - 33u8, 48u8, 83u8, 106u8, 84u8, 220u8, 62u8, 85u8, 25u8, 151u8, 189u8, - 114u8, - ], - ) - } - } - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct NominationsQuota { - pub balance: ::core::primitive::u128, - } + pub struct CheckInherents { pub block : runtime_types :: sp_runtime :: generic :: block :: Block < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > , :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > > , pub data : runtime_types :: sp_inherents :: InherentData , } } } pub mod tagged_transaction_queue { @@ -685,7 +532,7 @@ pub mod api { pub fn validate_transaction( &self, source: runtime_types::sp_runtime::transaction_validity::TransactionSource, - tx : runtime_types :: sp_runtime :: generic :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: polkadot_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: polkadot_runtime_common :: claims :: PrevalidateAttests ,) >, + tx : :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) >, block_hash: ::subxt::utils::H256, ) -> ::subxt::runtime_api::Payload< types::ValidateTransaction, @@ -722,7 +569,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ValidateTransaction { pub source : runtime_types :: sp_runtime :: transaction_validity :: TransactionSource , pub tx : runtime_types :: sp_runtime :: generic :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: polkadot_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: polkadot_runtime_common :: claims :: PrevalidateAttests ,) > , pub block_hash : :: subxt :: utils :: H256 , } + pub struct ValidateTransaction { pub source : runtime_types :: sp_runtime :: transaction_validity :: TransactionSource , pub tx : :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > , pub block_hash : :: subxt :: utils :: H256 , } } } pub mod offchain_worker_api { @@ -736,7 +583,6 @@ pub mod api { &self, header: runtime_types::sp_runtime::generic::header::Header< ::core::primitive::u32, - runtime_types::sp_runtime::traits::BlakeTwo256, >, ) -> ::subxt::runtime_api::Payload { ::subxt::runtime_api::Payload::new_static( @@ -764,10 +610,8 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct OffchainWorker { - pub header: runtime_types::sp_runtime::generic::header::Header< - ::core::primitive::u32, - runtime_types::sp_runtime::traits::BlakeTwo256, - >, + pub header: + runtime_types::sp_runtime::generic::header::Header<::core::primitive::u32>, } } } @@ -782,7 +626,7 @@ pub mod api { &self, ) -> ::subxt::runtime_api::Payload< types::Validators, - ::std::vec::Vec, + ::std::vec::Vec, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", @@ -805,9 +649,9 @@ pub mod api { types::ValidatorGroups, ( ::std::vec::Vec< - ::std::vec::Vec, + ::std::vec::Vec, >, - runtime_types::polkadot_primitives::v5::GroupRotationInfo< + runtime_types::polkadot_primitives::v6::GroupRotationInfo< ::core::primitive::u32, >, ), @@ -831,7 +675,7 @@ pub mod api { ) -> ::subxt::runtime_api::Payload< types::AvailabilityCores, ::std::vec::Vec< - runtime_types::polkadot_primitives::v5::CoreState< + runtime_types::polkadot_primitives::v6::CoreState< ::subxt::utils::H256, ::core::primitive::u32, >, @@ -855,12 +699,12 @@ pub mod api { #[doc = " and the para already occupies a core."] pub fn persisted_validation_data( &self, - para_id: runtime_types::polkadot_parachain::primitives::Id, - assumption: runtime_types::polkadot_primitives::v5::OccupiedCoreAssumption, + para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, + assumption: runtime_types::polkadot_primitives::v6::OccupiedCoreAssumption, ) -> ::subxt::runtime_api::Payload< types::PersistedValidationData, ::core::option::Option< - runtime_types::polkadot_primitives::v5::PersistedValidationData< + runtime_types::polkadot_primitives::v6::PersistedValidationData< ::subxt::utils::H256, ::core::primitive::u32, >, @@ -882,21 +726,7 @@ pub mod api { } #[doc = " Returns the persisted validation data for the given `ParaId` along with the corresponding"] #[doc = " validation code hash. Instead of accepting assumption about the para, matches the validation"] - #[doc = " data hash against an expected one and yields `None` if they're not equal."] - pub fn assumed_validation_data( - &self, - para_id: runtime_types::polkadot_parachain::primitives::Id, - expected_persisted_validation_data_hash: ::subxt::utils::H256, - ) -> ::subxt::runtime_api::Payload< - types::AssumedValidationData, - ::core::option::Option<( - runtime_types::polkadot_primitives::v5::PersistedValidationData< - ::subxt::utils::H256, - ::core::primitive::u32, - >, - runtime_types::polkadot_parachain::primitives::ValidationCodeHash, - )>, - > { + #[doc = " data hash against an expected one and yields `None` if they're not equal."] pub fn assumed_validation_data (& self , para_id : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , expected_persisted_validation_data_hash : :: subxt :: utils :: H256 ,) -> :: subxt :: runtime_api :: Payload < types :: AssumedValidationData , :: core :: option :: Option < (runtime_types :: polkadot_primitives :: v6 :: PersistedValidationData < :: subxt :: utils :: H256 , :: core :: primitive :: u32 > , runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash ,) > >{ ::subxt::runtime_api::Payload::new_static( "ParachainHost", "assumed_validation_data", @@ -914,8 +744,8 @@ pub mod api { #[doc = " Checks if the given validation outputs pass the acceptance criteria."] pub fn check_validation_outputs( &self, - para_id: runtime_types::polkadot_parachain::primitives::Id, - outputs: runtime_types::polkadot_primitives::v5::CandidateCommitments< + para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, + outputs: runtime_types::polkadot_primitives::v6::CandidateCommitments< ::core::primitive::u32, >, ) -> ::subxt::runtime_api::Payload< @@ -960,12 +790,12 @@ pub mod api { #[doc = " and the para already occupies a core."] pub fn validation_code( &self, - para_id: runtime_types::polkadot_parachain::primitives::Id, - assumption: runtime_types::polkadot_primitives::v5::OccupiedCoreAssumption, + para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, + assumption: runtime_types::polkadot_primitives::v6::OccupiedCoreAssumption, ) -> ::subxt::runtime_api::Payload< types::ValidationCode, ::core::option::Option< - runtime_types::polkadot_parachain::primitives::ValidationCode, + runtime_types::polkadot_parachain_primitives::primitives::ValidationCode, >, > { ::subxt::runtime_api::Payload::new_static( @@ -987,11 +817,11 @@ pub mod api { #[doc = " assigned to occupied cores in `availability_cores` and `None` otherwise."] pub fn candidate_pending_availability( &self, - para_id: runtime_types::polkadot_parachain::primitives::Id, + para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, ) -> ::subxt::runtime_api::Payload< types::CandidatePendingAvailability, ::core::option::Option< - runtime_types::polkadot_primitives::v5::CommittedCandidateReceipt< + runtime_types::polkadot_primitives::v6::CommittedCandidateReceipt< ::subxt::utils::H256, >, >, @@ -1014,7 +844,7 @@ pub mod api { ) -> ::subxt::runtime_api::Payload< types::CandidateEvents, ::std::vec::Vec< - runtime_types::polkadot_primitives::v5::CandidateEvent< + runtime_types::polkadot_primitives::v6::CandidateEvent< ::subxt::utils::H256, >, >, @@ -1034,7 +864,7 @@ pub mod api { #[doc = " Get all the pending inbound messages in the downward message queue for a para."] pub fn dmq_contents( &self, - recipient: runtime_types::polkadot_parachain::primitives::Id, + recipient: runtime_types::polkadot_parachain_primitives::primitives::Id, ) -> ::subxt::runtime_api::Payload< types::DmqContents, ::std::vec::Vec< @@ -1058,11 +888,11 @@ pub mod api { #[doc = " messages in them are also included."] pub fn inbound_hrmp_channels_contents( &self, - recipient: runtime_types::polkadot_parachain::primitives::Id, + recipient: runtime_types::polkadot_parachain_primitives::primitives::Id, ) -> ::subxt::runtime_api::Payload< types::InboundHrmpChannelsContents, ::subxt::utils::KeyedVec< - runtime_types::polkadot_parachain::primitives::Id, + runtime_types::polkadot_parachain_primitives::primitives::Id, ::std::vec::Vec< runtime_types::polkadot_core_primitives::InboundHrmpMessage< ::core::primitive::u32, @@ -1084,11 +914,11 @@ pub mod api { #[doc = " Get the validation code from its hash."] pub fn validation_code_by_hash( &self, - hash: runtime_types::polkadot_parachain::primitives::ValidationCodeHash, + hash : runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash, ) -> ::subxt::runtime_api::Payload< types::ValidationCodeByHash, ::core::option::Option< - runtime_types::polkadot_parachain::primitives::ValidationCode, + runtime_types::polkadot_parachain_primitives::primitives::ValidationCode, >, > { ::subxt::runtime_api::Payload::new_static( @@ -1109,7 +939,7 @@ pub mod api { ) -> ::subxt::runtime_api::Payload< types::OnChainVotes, ::core::option::Option< - runtime_types::polkadot_primitives::v5::ScrapedOnChainVotes< + runtime_types::polkadot_primitives::v6::ScrapedOnChainVotes< ::subxt::utils::H256, >, >, @@ -1133,7 +963,7 @@ pub mod api { index: ::core::primitive::u32, ) -> ::subxt::runtime_api::Payload< types::SessionInfo, - ::core::option::Option, + ::core::option::Option, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", @@ -1152,8 +982,8 @@ pub mod api { #[doc = " NOTE: This function is only available since parachain host version 2."] pub fn submit_pvf_check_statement( &self, - stmt: runtime_types::polkadot_primitives::v5::PvfCheckStatement, - signature: runtime_types::polkadot_primitives::v5::validator_app::Signature, + stmt: runtime_types::polkadot_primitives::v6::PvfCheckStatement, + signature: runtime_types::polkadot_primitives::v6::validator_app::Signature, ) -> ::subxt::runtime_api::Payload { ::subxt::runtime_api::Payload::new_static( @@ -1170,15 +1000,7 @@ pub mod api { } #[doc = " Returns code hashes of PVFs that require pre-checking by validators in the active set."] #[doc = ""] - #[doc = " NOTE: This function is only available since parachain host version 2."] - pub fn pvfs_require_precheck( - &self, - ) -> ::subxt::runtime_api::Payload< - types::PvfsRequirePrecheck, - ::std::vec::Vec< - runtime_types::polkadot_parachain::primitives::ValidationCodeHash, - >, - > { + #[doc = " NOTE: This function is only available since parachain host version 2."] pub fn pvfs_require_precheck (& self ,) -> :: subxt :: runtime_api :: Payload < types :: PvfsRequirePrecheck , :: std :: vec :: Vec < runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash > >{ ::subxt::runtime_api::Payload::new_static( "ParachainHost", "pvfs_require_precheck", @@ -1192,17 +1014,7 @@ pub mod api { } #[doc = " Fetch the hash of the validation code used by a para, making the given `OccupiedCoreAssumption`."] #[doc = ""] - #[doc = " NOTE: This function is only available since parachain host version 2."] - pub fn validation_code_hash( - &self, - para_id: runtime_types::polkadot_parachain::primitives::Id, - assumption: runtime_types::polkadot_primitives::v5::OccupiedCoreAssumption, - ) -> ::subxt::runtime_api::Payload< - types::ValidationCodeHash, - ::core::option::Option< - runtime_types::polkadot_parachain::primitives::ValidationCodeHash, - >, - > { + #[doc = " NOTE: This function is only available since parachain host version 2."] pub fn validation_code_hash (& self , para_id : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , assumption : runtime_types :: polkadot_primitives :: v6 :: OccupiedCoreAssumption ,) -> :: subxt :: runtime_api :: Payload < types :: ValidationCodeHash , :: core :: option :: Option < runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash > >{ ::subxt::runtime_api::Payload::new_static( "ParachainHost", "validation_code_hash", @@ -1226,7 +1038,7 @@ pub mod api { ::std::vec::Vec<( ::core::primitive::u32, runtime_types::polkadot_core_primitives::CandidateHash, - runtime_types::polkadot_primitives::v5::DisputeState< + runtime_types::polkadot_primitives::v6::DisputeState< ::core::primitive::u32, >, )>, @@ -1249,7 +1061,7 @@ pub mod api { ) -> ::subxt::runtime_api::Payload< types::SessionExecutorParams, ::core::option::Option< - runtime_types::polkadot_primitives::v5::executor_params::ExecutorParams, + runtime_types::polkadot_primitives::v6::executor_params::ExecutorParams, >, > { ::subxt::runtime_api::Payload::new_static( @@ -1272,7 +1084,7 @@ pub mod api { ::std::vec::Vec<( ::core::primitive::u32, runtime_types::polkadot_core_primitives::CandidateHash, - runtime_types::polkadot_primitives::v5::slashing::PendingSlashes, + runtime_types::polkadot_primitives::v6::slashing::PendingSlashes, )>, > { ::subxt::runtime_api::Payload::new_static( @@ -1290,11 +1102,11 @@ pub mod api { #[doc = " NOTE: This function is only available since parachain host version 5."] pub fn key_ownership_proof( &self, - validator_id: runtime_types::polkadot_primitives::v5::validator_app::Public, + validator_id: runtime_types::polkadot_primitives::v6::validator_app::Public, ) -> ::subxt::runtime_api::Payload< types::KeyOwnershipProof, ::core::option::Option< - runtime_types::polkadot_primitives::v5::slashing::OpaqueKeyOwnershipProof, + runtime_types::polkadot_primitives::v6::slashing::OpaqueKeyOwnershipProof, >, > { ::subxt::runtime_api::Payload::new_static( @@ -1313,8 +1125,8 @@ pub mod api { #[doc = " NOTE: This function is only available since parachain host version 5."] pub fn submit_report_dispute_lost( &self, - dispute_proof: runtime_types::polkadot_primitives::v5::slashing::DisputeProof, - key_ownership_proof : runtime_types :: polkadot_primitives :: v5 :: slashing :: OpaqueKeyOwnershipProof, + dispute_proof: runtime_types::polkadot_primitives::v6::slashing::DisputeProof, + key_ownership_proof : runtime_types :: polkadot_primitives :: v6 :: slashing :: OpaqueKeyOwnershipProof, ) -> ::subxt::runtime_api::Payload< types::SubmitReportDisputeLost, ::core::option::Option<()>, @@ -1333,6 +1145,86 @@ pub mod api { ], ) } + #[doc = " Get the minimum number of backing votes for a parachain candidate."] + #[doc = " This is a staging method! Do not use on production runtimes!"] + pub fn minimum_backing_votes( + &self, + ) -> ::subxt::runtime_api::Payload + { + ::subxt::runtime_api::Payload::new_static( + "ParachainHost", + "minimum_backing_votes", + types::MinimumBackingVotes {}, + [ + 222u8, 75u8, 167u8, 245u8, 183u8, 148u8, 14u8, 92u8, 54u8, 164u8, + 239u8, 183u8, 215u8, 170u8, 133u8, 71u8, 19u8, 131u8, 104u8, 28u8, + 219u8, 237u8, 178u8, 34u8, 190u8, 151u8, 48u8, 146u8, 78u8, 17u8, 66u8, + 146u8, + ], + ) + } + #[doc = " Returns the state of parachain backing for a given para."] + pub fn para_backing_state( + &self, + _0: runtime_types::polkadot_parachain_primitives::primitives::Id, + ) -> ::subxt::runtime_api::Payload< + types::ParaBackingState, + ::core::option::Option< + runtime_types::polkadot_primitives::v6::async_backing::BackingState< + ::subxt::utils::H256, + ::core::primitive::u32, + >, + >, + > { + ::subxt::runtime_api::Payload::new_static( + "ParachainHost", + "para_backing_state", + types::ParaBackingState { _0 }, + [ + 26u8, 210u8, 45u8, 233u8, 133u8, 180u8, 12u8, 156u8, 59u8, 249u8, 10u8, + 38u8, 32u8, 28u8, 25u8, 30u8, 83u8, 33u8, 142u8, 21u8, 12u8, 151u8, + 182u8, 128u8, 131u8, 192u8, 240u8, 73u8, 119u8, 64u8, 254u8, 139u8, + ], + ) + } + #[doc = " Returns candidate's acceptance limitations for asynchronous backing for a relay parent."] + pub fn async_backing_params( + &self, + ) -> ::subxt::runtime_api::Payload< + types::AsyncBackingParams, + runtime_types::polkadot_primitives::v6::async_backing::AsyncBackingParams, + > { + ::subxt::runtime_api::Payload::new_static( + "ParachainHost", + "async_backing_params", + types::AsyncBackingParams {}, + [ + 150u8, 157u8, 193u8, 44u8, 160u8, 18u8, 122u8, 188u8, 157u8, 84u8, + 202u8, 253u8, 55u8, 113u8, 188u8, 169u8, 216u8, 250u8, 145u8, 81u8, + 73u8, 194u8, 234u8, 237u8, 101u8, 250u8, 35u8, 52u8, 205u8, 38u8, 22u8, + 238u8, + ], + ) + } + #[doc = " Returns a list of all disabled validators at the given block."] + pub fn disabled_validators( + &self, + ) -> ::subxt::runtime_api::Payload< + types::DisabledValidators, + ::std::vec::Vec, + > { + ::subxt::runtime_api::Payload::new_static( + "ParachainHost", + "disabled_validators", + types::DisabledValidators {}, + [ + 121u8, 124u8, 228u8, 59u8, 10u8, 148u8, 131u8, 130u8, 221u8, 33u8, + 226u8, 13u8, 223u8, 67u8, 145u8, 39u8, 205u8, 237u8, 178u8, 249u8, + 126u8, 152u8, 65u8, 131u8, 111u8, 113u8, 194u8, 111u8, 37u8, 124u8, + 164u8, 212u8, + ], + ) + } } pub mod types { use super::runtime_types; @@ -1380,8 +1272,8 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PersistedValidationData { - pub para_id: runtime_types::polkadot_parachain::primitives::Id, - pub assumption: runtime_types::polkadot_primitives::v5::OccupiedCoreAssumption, + pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub assumption: runtime_types::polkadot_primitives::v6::OccupiedCoreAssumption, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1394,7 +1286,7 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AssumedValidationData { - pub para_id: runtime_types::polkadot_parachain::primitives::Id, + pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, pub expected_persisted_validation_data_hash: ::subxt::utils::H256, } #[derive( @@ -1408,8 +1300,8 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CheckValidationOutputs { - pub para_id: runtime_types::polkadot_parachain::primitives::Id, - pub outputs: runtime_types::polkadot_primitives::v5::CandidateCommitments< + pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub outputs: runtime_types::polkadot_primitives::v6::CandidateCommitments< ::core::primitive::u32, >, } @@ -1435,8 +1327,8 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ValidationCode { - pub para_id: runtime_types::polkadot_parachain::primitives::Id, - pub assumption: runtime_types::polkadot_primitives::v5::OccupiedCoreAssumption, + pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub assumption: runtime_types::polkadot_primitives::v6::OccupiedCoreAssumption, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1449,7 +1341,7 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CandidatePendingAvailability { - pub para_id: runtime_types::polkadot_parachain::primitives::Id, + pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1473,7 +1365,7 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct DmqContents { - pub recipient: runtime_types::polkadot_parachain::primitives::Id, + pub recipient: runtime_types::polkadot_parachain_primitives::primitives::Id, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1486,7 +1378,7 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct InboundHrmpChannelsContents { - pub recipient: runtime_types::polkadot_parachain::primitives::Id, + pub recipient: runtime_types::polkadot_parachain_primitives::primitives::Id, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1498,9 +1390,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ValidationCodeByHash { - pub hash: runtime_types::polkadot_parachain::primitives::ValidationCodeHash, - } + pub struct ValidationCodeByHash { pub hash : runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -1536,8 +1426,8 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SubmitPvfCheckStatement { - pub stmt: runtime_types::polkadot_primitives::v5::PvfCheckStatement, - pub signature: runtime_types::polkadot_primitives::v5::validator_app::Signature, + pub stmt: runtime_types::polkadot_primitives::v6::PvfCheckStatement, + pub signature: runtime_types::polkadot_primitives::v6::validator_app::Signature, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1561,8 +1451,8 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ValidationCodeHash { - pub para_id: runtime_types::polkadot_parachain::primitives::Id, - pub assumption: runtime_types::polkadot_primitives::v5::OccupiedCoreAssumption, + pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub assumption: runtime_types::polkadot_primitives::v6::OccupiedCoreAssumption, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1610,7 +1500,7 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct KeyOwnershipProof { - pub validator_id: runtime_types::polkadot_primitives::v5::validator_app::Public, + pub validator_id: runtime_types::polkadot_primitives::v6::validator_app::Public, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1624,10 +1514,56 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SubmitReportDisputeLost { pub dispute_proof: - runtime_types::polkadot_primitives::v5::slashing::DisputeProof, + runtime_types::polkadot_primitives::v6::slashing::DisputeProof, pub key_ownership_proof: - runtime_types::polkadot_primitives::v5::slashing::OpaqueKeyOwnershipProof, + runtime_types::polkadot_primitives::v6::slashing::OpaqueKeyOwnershipProof, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct MinimumBackingVotes {} + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ParaBackingState { + pub _0: runtime_types::polkadot_parachain_primitives::primitives::Id, } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct AsyncBackingParams {} + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct DisabledValidators {} } } pub mod beefy_api { @@ -1662,7 +1598,7 @@ pub mod api { types::ValidatorSet, ::core::option::Option< runtime_types::sp_consensus_beefy::ValidatorSet< - runtime_types::sp_consensus_beefy::crypto::Public, + runtime_types::sp_consensus_beefy::ecdsa_crypto::Public, >, >, > { @@ -1689,8 +1625,8 @@ pub mod api { &self, equivocation_proof: runtime_types::sp_consensus_beefy::EquivocationProof< ::core::primitive::u32, - runtime_types::sp_consensus_beefy::crypto::Public, - runtime_types::sp_consensus_beefy::crypto::Signature, + runtime_types::sp_consensus_beefy::ecdsa_crypto::Public, + runtime_types::sp_consensus_beefy::ecdsa_crypto::Signature, >, key_owner_proof: runtime_types::sp_consensus_beefy::OpaqueKeyOwnershipProof, ) -> ::subxt::runtime_api::Payload< @@ -1726,7 +1662,7 @@ pub mod api { pub fn generate_key_ownership_proof( &self, set_id: ::core::primitive::u64, - authority_id: runtime_types::sp_consensus_beefy::crypto::Public, + authority_id: runtime_types::sp_consensus_beefy::ecdsa_crypto::Public, ) -> ::subxt::runtime_api::Payload< types::GenerateKeyOwnershipProof, ::core::option::Option< @@ -1785,8 +1721,8 @@ pub mod api { pub struct SubmitReportEquivocationUnsignedExtrinsic { pub equivocation_proof: runtime_types::sp_consensus_beefy::EquivocationProof< ::core::primitive::u32, - runtime_types::sp_consensus_beefy::crypto::Public, - runtime_types::sp_consensus_beefy::crypto::Signature, + runtime_types::sp_consensus_beefy::ecdsa_crypto::Public, + runtime_types::sp_consensus_beefy::ecdsa_crypto::Signature, >, pub key_owner_proof: runtime_types::sp_consensus_beefy::OpaqueKeyOwnershipProof, } @@ -1802,7 +1738,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct GenerateKeyOwnershipProof { pub set_id: ::core::primitive::u64, - pub authority_id: runtime_types::sp_consensus_beefy::crypto::Public, + pub authority_id: runtime_types::sp_consensus_beefy::ecdsa_crypto::Public, } } } @@ -2326,10 +2262,7 @@ pub mod api { pub fn submit_report_equivocation_unsigned_extrinsic( &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_runtime::generic::header::Header<::core::primitive::u32>, runtime_types::sp_consensus_babe::app::Public, >, key_owner_proof: runtime_types::sp_consensus_babe::OpaqueKeyOwnershipProof, @@ -2424,10 +2357,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SubmitReportEquivocationUnsignedExtrinsic { pub 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_runtime::generic::header::Header<::core::primitive::u32>, runtime_types::sp_consensus_babe::app::Public, >, pub key_owner_proof: runtime_types::sp_consensus_babe::OpaqueKeyOwnershipProof, @@ -2569,7 +2499,7 @@ pub mod api { pub mod account_nonce_api { use super::root_mod; use super::runtime_types; - #[doc = " The API to query account nonce (aka transaction index)."] + #[doc = " The API to query account nonce."] pub struct AccountNonceApi; impl AccountNonceApi { #[doc = " Get current account nonce of given `AccountId`."] @@ -2615,7 +2545,7 @@ pub mod api { impl TransactionPaymentApi { pub fn query_info( &self, - uxt : runtime_types :: sp_runtime :: generic :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: polkadot_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: polkadot_runtime_common :: claims :: PrevalidateAttests ,) >, + uxt : :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) >, len: ::core::primitive::u32, ) -> ::subxt::runtime_api::Payload< types::QueryInfo, @@ -2637,7 +2567,7 @@ pub mod api { } pub fn query_fee_details( &self, - uxt : runtime_types :: sp_runtime :: generic :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: polkadot_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: polkadot_runtime_common :: claims :: PrevalidateAttests ,) >, + uxt : :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) >, len: ::core::primitive::u32, ) -> ::subxt::runtime_api::Payload< types::QueryFeeDetails, @@ -2703,7 +2633,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct QueryInfo { pub uxt : runtime_types :: sp_runtime :: generic :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: polkadot_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: polkadot_runtime_common :: claims :: PrevalidateAttests ,) > , pub len : :: core :: primitive :: u32 , } + pub struct QueryInfo { pub uxt : :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > , pub len : :: core :: primitive :: u32 , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -2714,7 +2644,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct QueryFeeDetails { pub uxt : runtime_types :: sp_runtime :: generic :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: polkadot_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: polkadot_runtime_common :: claims :: PrevalidateAttests ,) > , pub len : :: core :: primitive :: u32 , } + pub struct QueryFeeDetails { pub uxt : :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > , pub len : :: core :: primitive :: u32 , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -2743,88 +2673,46 @@ pub mod api { } } } - pub mod transaction_payment_call_api { + pub mod beefy_mmr_api { use super::root_mod; use super::runtime_types; - pub struct TransactionPaymentCallApi; - impl TransactionPaymentCallApi { - #[doc = " Query information of a dispatch class, weight, and fee of a given encoded `Call`."] - pub fn query_call_info( + #[doc = " API useful for BEEFY light clients."] + pub struct BeefyMmrApi; + impl BeefyMmrApi { + #[doc = " Return the currently active BEEFY authority set proof."] + pub fn authority_set_proof( &self, - call: runtime_types::polkadot_runtime::RuntimeCall, - len: ::core::primitive::u32, ) -> ::subxt::runtime_api::Payload< - types::QueryCallInfo, - runtime_types::pallet_transaction_payment::types::RuntimeDispatchInfo< - ::core::primitive::u128, - runtime_types::sp_weights::weight_v2::Weight, - >, + types::AuthoritySetProof, + runtime_types::sp_consensus_beefy::mmr::BeefyAuthoritySet<::subxt::utils::H256>, > { ::subxt::runtime_api::Payload::new_static( - "TransactionPaymentCallApi", - "query_call_info", - types::QueryCallInfo { call, len }, + "BeefyMmrApi", + "authority_set_proof", + types::AuthoritySetProof {}, [ - 170u8, 193u8, 123u8, 109u8, 45u8, 225u8, 83u8, 147u8, 7u8, 212u8, 48u8, - 215u8, 250u8, 154u8, 224u8, 162u8, 13u8, 183u8, 118u8, 49u8, 17u8, - 240u8, 44u8, 5u8, 45u8, 79u8, 92u8, 242u8, 90u8, 108u8, 153u8, 21u8, + 199u8, 220u8, 251u8, 219u8, 216u8, 5u8, 181u8, 172u8, 191u8, 209u8, + 123u8, 25u8, 151u8, 129u8, 166u8, 21u8, 107u8, 22u8, 74u8, 144u8, + 202u8, 6u8, 254u8, 197u8, 148u8, 227u8, 131u8, 244u8, 254u8, 193u8, + 212u8, 97u8, ], ) } - #[doc = " Query fee details of a given encoded `Call`."] - pub fn query_call_fee_details( + #[doc = " Return the next/queued BEEFY authority set proof."] + pub fn next_authority_set_proof( &self, - call: runtime_types::polkadot_runtime::RuntimeCall, - len: ::core::primitive::u32, ) -> ::subxt::runtime_api::Payload< - types::QueryCallFeeDetails, - runtime_types::pallet_transaction_payment::types::FeeDetails< - ::core::primitive::u128, - >, + types::NextAuthoritySetProof, + runtime_types::sp_consensus_beefy::mmr::BeefyAuthoritySet<::subxt::utils::H256>, > { ::subxt::runtime_api::Payload::new_static( - "TransactionPaymentCallApi", - "query_call_fee_details", - types::QueryCallFeeDetails { call, len }, + "BeefyMmrApi", + "next_authority_set_proof", + types::NextAuthoritySetProof {}, [ - 236u8, 197u8, 213u8, 110u8, 238u8, 96u8, 103u8, 223u8, 24u8, 25u8, - 148u8, 241u8, 99u8, 170u8, 141u8, 130u8, 84u8, 28u8, 162u8, 234u8, - 73u8, 25u8, 137u8, 136u8, 92u8, 242u8, 39u8, 178u8, 29u8, 30u8, 208u8, - 146u8, - ], - ) - } - #[doc = " Query the output of the current `WeightToFee` given some input."] - pub fn query_weight_to_fee( - &self, - weight: runtime_types::sp_weights::weight_v2::Weight, - ) -> ::subxt::runtime_api::Payload - { - ::subxt::runtime_api::Payload::new_static( - "TransactionPaymentCallApi", - "query_weight_to_fee", - types::QueryWeightToFee { weight }, - [ - 117u8, 91u8, 94u8, 22u8, 248u8, 212u8, 15u8, 23u8, 97u8, 116u8, 64u8, - 228u8, 83u8, 123u8, 87u8, 77u8, 97u8, 7u8, 98u8, 181u8, 6u8, 165u8, - 114u8, 141u8, 164u8, 113u8, 126u8, 88u8, 174u8, 171u8, 224u8, 35u8, - ], - ) - } - #[doc = " Query the output of the current `LengthToFee` given some input."] - pub fn query_length_to_fee( - &self, - length: ::core::primitive::u32, - ) -> ::subxt::runtime_api::Payload - { - ::subxt::runtime_api::Payload::new_static( - "TransactionPaymentCallApi", - "query_length_to_fee", - types::QueryLengthToFee { length }, - [ - 246u8, 40u8, 4u8, 160u8, 152u8, 94u8, 170u8, 53u8, 205u8, 122u8, 5u8, - 69u8, 70u8, 25u8, 128u8, 156u8, 119u8, 134u8, 116u8, 147u8, 14u8, - 164u8, 65u8, 140u8, 86u8, 13u8, 250u8, 218u8, 89u8, 95u8, 234u8, 228u8, + 66u8, 217u8, 48u8, 108u8, 211u8, 187u8, 61u8, 85u8, 210u8, 59u8, 128u8, + 159u8, 34u8, 151u8, 154u8, 140u8, 13u8, 244u8, 31u8, 216u8, 67u8, 67u8, + 171u8, 112u8, 51u8, 145u8, 4u8, 22u8, 252u8, 242u8, 192u8, 130u8, ], ) } @@ -2841,10 +2729,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct QueryCallInfo { - pub call: runtime_types::polkadot_runtime::RuntimeCall, - pub len: ::core::primitive::u32, - } + pub struct AuthoritySetProof {} #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -2855,10 +2740,65 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct QueryCallFeeDetails { - pub call: runtime_types::polkadot_runtime::RuntimeCall, - pub len: ::core::primitive::u32, + pub struct NextAuthoritySetProof {} + } + } + pub mod genesis_builder { + use super::root_mod; + use super::runtime_types; + #[doc = " API to interact with GenesisConfig for the runtime"] + pub struct GenesisBuilder; + impl GenesisBuilder { + #[doc = " Creates the default `GenesisConfig` and returns it as a JSON blob."] + #[doc = ""] + #[doc = " This function instantiates the default `GenesisConfig` struct for the runtime and serializes it into a JSON"] + #[doc = " blob. It returns a `Vec` containing the JSON representation of the default `GenesisConfig`."] + pub fn create_default_config( + &self, + ) -> ::subxt::runtime_api::Payload< + types::CreateDefaultConfig, + ::std::vec::Vec<::core::primitive::u8>, + > { + ::subxt::runtime_api::Payload::new_static( + "GenesisBuilder", + "create_default_config", + types::CreateDefaultConfig {}, + [ + 238u8, 5u8, 139u8, 81u8, 184u8, 155u8, 221u8, 118u8, 190u8, 76u8, + 229u8, 67u8, 132u8, 89u8, 83u8, 80u8, 56u8, 171u8, 169u8, 64u8, 123u8, + 20u8, 129u8, 159u8, 28u8, 135u8, 84u8, 52u8, 192u8, 98u8, 104u8, 214u8, + ], + ) + } + #[doc = " Build `GenesisConfig` from a JSON blob not using any defaults and store it in the storage."] + #[doc = ""] + #[doc = " This function deserializes the full `GenesisConfig` from the given JSON blob and puts it into the storage."] + #[doc = " If the provided JSON blob is incorrect or incomplete or the deserialization fails, an error is returned."] + #[doc = " It is recommended to log any errors encountered during the process."] + #[doc = ""] + #[doc = " Please note that provided json blob must contain all `GenesisConfig` fields, no defaults will be used."] + pub fn build_config( + &self, + json: ::std::vec::Vec<::core::primitive::u8>, + ) -> ::subxt::runtime_api::Payload< + types::BuildConfig, + ::core::result::Result<(), ::std::string::String>, + > { + ::subxt::runtime_api::Payload::new_static( + "GenesisBuilder", + "build_config", + types::BuildConfig { json }, + [ + 6u8, 98u8, 68u8, 125u8, 157u8, 26u8, 107u8, 86u8, 213u8, 227u8, 26u8, + 229u8, 122u8, 161u8, 229u8, 114u8, 123u8, 192u8, 66u8, 231u8, 148u8, + 175u8, 5u8, 185u8, 248u8, 88u8, 40u8, 122u8, 230u8, 209u8, 170u8, + 254u8, + ], + ) } + } + pub mod types { + use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -2869,9 +2809,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct QueryWeightToFee { - pub weight: runtime_types::sp_weights::weight_v2::Weight, - } + pub struct CreateDefaultConfig {} #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -2882,20 +2820,22 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct QueryLengthToFee { - pub length: ::core::primitive::u32, + pub struct BuildConfig { + pub json: ::std::vec::Vec<::core::primitive::u8>, } } } } + pub fn custom() -> CustomValuesApi { + CustomValuesApi + } + pub struct CustomValuesApi; + impl CustomValuesApi {} 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 fn babe(&self) -> babe::constants::ConstantsApi { babe::constants::ConstantsApi } @@ -2911,8 +2851,8 @@ pub mod api { pub fn transaction_payment(&self) -> transaction_payment::constants::ConstantsApi { transaction_payment::constants::ConstantsApi } - pub fn staking(&self) -> staking::constants::ConstantsApi { - staking::constants::ConstantsApi + pub fn beefy(&self) -> beefy::constants::ConstantsApi { + beefy::constants::ConstantsApi } pub fn grandpa(&self) -> grandpa::constants::ConstantsApi { grandpa::constants::ConstantsApi @@ -2920,18 +2860,6 @@ pub mod api { pub fn im_online(&self) -> im_online::constants::ConstantsApi { im_online::constants::ConstantsApi } - pub fn democracy(&self) -> democracy::constants::ConstantsApi { - democracy::constants::ConstantsApi - } - pub fn council(&self) -> council::constants::ConstantsApi { - council::constants::ConstantsApi - } - pub fn technical_committee(&self) -> technical_committee::constants::ConstantsApi { - technical_committee::constants::ConstantsApi - } - pub fn phragmen_election(&self) -> phragmen_election::constants::ConstantsApi { - phragmen_election::constants::ConstantsApi - } pub fn treasury(&self) -> treasury::constants::ConstantsApi { treasury::constants::ConstantsApi } @@ -2941,18 +2869,30 @@ pub mod api { pub fn referenda(&self) -> referenda::constants::ConstantsApi { referenda::constants::ConstantsApi } + pub fn fellowship_referenda(&self) -> fellowship_referenda::constants::ConstantsApi { + fellowship_referenda::constants::ConstantsApi + } pub fn claims(&self) -> claims::constants::ConstantsApi { claims::constants::ConstantsApi } - pub fn vesting(&self) -> vesting::constants::ConstantsApi { - vesting::constants::ConstantsApi - } pub fn utility(&self) -> utility::constants::ConstantsApi { utility::constants::ConstantsApi } pub fn identity(&self) -> identity::constants::ConstantsApi { identity::constants::ConstantsApi } + pub fn society(&self) -> society::constants::ConstantsApi { + society::constants::ConstantsApi + } + pub fn recovery(&self) -> recovery::constants::ConstantsApi { + recovery::constants::ConstantsApi + } + pub fn vesting(&self) -> vesting::constants::ConstantsApi { + vesting::constants::ConstantsApi + } + pub fn scheduler(&self) -> scheduler::constants::ConstantsApi { + scheduler::constants::ConstantsApi + } pub fn proxy(&self) -> proxy::constants::ConstantsApi { proxy::constants::ConstantsApi } @@ -2965,26 +2905,25 @@ pub mod api { 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 nis(&self) -> nis::constants::ConstantsApi { + nis::constants::ConstantsApi } - pub fn election_provider_multi_phase( + pub fn nis_counterpart_balances( &self, - ) -> election_provider_multi_phase::constants::ConstantsApi { - election_provider_multi_phase::constants::ConstantsApi - } - pub fn voter_list(&self) -> voter_list::constants::ConstantsApi { - voter_list::constants::ConstantsApi - } - pub fn nomination_pools(&self) -> nomination_pools::constants::ConstantsApi { - nomination_pools::constants::ConstantsApi - } - pub fn fast_unstake(&self) -> fast_unstake::constants::ConstantsApi { - fast_unstake::constants::ConstantsApi + ) -> nis_counterpart_balances::constants::ConstantsApi { + nis_counterpart_balances::constants::ConstantsApi } pub fn paras(&self) -> paras::constants::ConstantsApi { paras::constants::ConstantsApi } + pub fn message_queue(&self) -> message_queue::constants::ConstantsApi { + message_queue::constants::ConstantsApi + } + pub fn on_demand_assignment_provider( + &self, + ) -> on_demand_assignment_provider::constants::ConstantsApi { + on_demand_assignment_provider::constants::ConstantsApi + } pub fn registrar(&self) -> registrar::constants::ConstantsApi { registrar::constants::ConstantsApi } @@ -2997,8 +2936,11 @@ pub mod api { pub fn crowdloan(&self) -> crowdloan::constants::ConstantsApi { crowdloan::constants::ConstantsApi } - pub fn message_queue(&self) -> message_queue::constants::ConstantsApi { - message_queue::constants::ConstantsApi + pub fn assigned_slots(&self) -> assigned_slots::constants::ConstantsApi { + assigned_slots::constants::ConstantsApi + } + pub fn state_trie_migration(&self) -> state_trie_migration::constants::ConstantsApi { + state_trie_migration::constants::ConstantsApi } } pub struct StorageApi; @@ -3006,12 +2948,6 @@ pub mod api { pub fn system(&self) -> system::storage::StorageApi { system::storage::StorageApi } - pub fn scheduler(&self) -> scheduler::storage::StorageApi { - scheduler::storage::StorageApi - } - pub fn preimage(&self) -> preimage::storage::StorageApi { - preimage::storage::StorageApi - } pub fn babe(&self) -> babe::storage::StorageApi { babe::storage::StorageApi } @@ -3030,12 +2966,18 @@ pub mod api { pub fn authorship(&self) -> authorship::storage::StorageApi { authorship::storage::StorageApi } - pub fn staking(&self) -> staking::storage::StorageApi { - staking::storage::StorageApi - } pub fn offences(&self) -> offences::storage::StorageApi { offences::storage::StorageApi } + pub fn beefy(&self) -> beefy::storage::StorageApi { + beefy::storage::StorageApi + } + pub fn mmr(&self) -> mmr::storage::StorageApi { + mmr::storage::StorageApi + } + pub fn mmr_leaf(&self) -> mmr_leaf::storage::StorageApi { + mmr_leaf::storage::StorageApi + } pub fn session(&self) -> session::storage::StorageApi { session::storage::StorageApi } @@ -3045,21 +2987,6 @@ pub mod api { pub fn im_online(&self) -> im_online::storage::StorageApi { im_online::storage::StorageApi } - pub fn democracy(&self) -> democracy::storage::StorageApi { - democracy::storage::StorageApi - } - pub fn council(&self) -> council::storage::StorageApi { - council::storage::StorageApi - } - pub fn technical_committee(&self) -> technical_committee::storage::StorageApi { - technical_committee::storage::StorageApi - } - pub fn phragmen_election(&self) -> phragmen_election::storage::StorageApi { - phragmen_election::storage::StorageApi - } - pub fn technical_membership(&self) -> technical_membership::storage::StorageApi { - technical_membership::storage::StorageApi - } pub fn treasury(&self) -> treasury::storage::StorageApi { treasury::storage::StorageApi } @@ -3069,17 +2996,32 @@ pub mod api { pub fn referenda(&self) -> referenda::storage::StorageApi { referenda::storage::StorageApi } + pub fn fellowship_collective(&self) -> fellowship_collective::storage::StorageApi { + fellowship_collective::storage::StorageApi + } + pub fn fellowship_referenda(&self) -> fellowship_referenda::storage::StorageApi { + fellowship_referenda::storage::StorageApi + } pub fn whitelist(&self) -> whitelist::storage::StorageApi { whitelist::storage::StorageApi } pub fn claims(&self) -> claims::storage::StorageApi { claims::storage::StorageApi } + pub fn identity(&self) -> identity::storage::StorageApi { + identity::storage::StorageApi + } + pub fn society(&self) -> society::storage::StorageApi { + society::storage::StorageApi + } + pub fn recovery(&self) -> recovery::storage::StorageApi { + recovery::storage::StorageApi + } pub fn vesting(&self) -> vesting::storage::StorageApi { vesting::storage::StorageApi } - pub fn identity(&self) -> identity::storage::StorageApi { - identity::storage::StorageApi + pub fn scheduler(&self) -> scheduler::storage::StorageApi { + scheduler::storage::StorageApi } pub fn proxy(&self) -> proxy::storage::StorageApi { proxy::storage::StorageApi @@ -3087,28 +3029,23 @@ pub mod api { pub fn multisig(&self) -> multisig::storage::StorageApi { multisig::storage::StorageApi } + pub fn preimage(&self) -> preimage::storage::StorageApi { + preimage::storage::StorageApi + } + pub fn asset_rate(&self) -> asset_rate::storage::StorageApi { + asset_rate::storage::StorageApi + } pub fn bounties(&self) -> bounties::storage::StorageApi { bounties::storage::StorageApi } pub fn child_bounties(&self) -> child_bounties::storage::StorageApi { child_bounties::storage::StorageApi } - pub fn tips(&self) -> tips::storage::StorageApi { - tips::storage::StorageApi - } - pub fn election_provider_multi_phase( - &self, - ) -> election_provider_multi_phase::storage::StorageApi { - election_provider_multi_phase::storage::StorageApi - } - pub fn voter_list(&self) -> voter_list::storage::StorageApi { - voter_list::storage::StorageApi + pub fn nis(&self) -> nis::storage::StorageApi { + nis::storage::StorageApi } - pub fn nomination_pools(&self) -> nomination_pools::storage::StorageApi { - nomination_pools::storage::StorageApi - } - pub fn fast_unstake(&self) -> fast_unstake::storage::StorageApi { - fast_unstake::storage::StorageApi + pub fn nis_counterpart_balances(&self) -> nis_counterpart_balances::storage::StorageApi { + nis_counterpart_balances::storage::StorageApi } pub fn configuration(&self) -> configuration::storage::StorageApi { configuration::storage::StorageApi @@ -3146,6 +3083,17 @@ pub mod api { pub fn paras_slashing(&self) -> paras_slashing::storage::StorageApi { paras_slashing::storage::StorageApi } + pub fn message_queue(&self) -> message_queue::storage::StorageApi { + message_queue::storage::StorageApi + } + pub fn para_assignment_provider(&self) -> para_assignment_provider::storage::StorageApi { + para_assignment_provider::storage::StorageApi + } + pub fn on_demand_assignment_provider( + &self, + ) -> on_demand_assignment_provider::storage::StorageApi { + on_demand_assignment_provider::storage::StorageApi + } pub fn registrar(&self) -> registrar::storage::StorageApi { registrar::storage::StorageApi } @@ -3161,8 +3109,20 @@ pub mod api { pub fn xcm_pallet(&self) -> xcm_pallet::storage::StorageApi { xcm_pallet::storage::StorageApi } - pub fn message_queue(&self) -> message_queue::storage::StorageApi { - message_queue::storage::StorageApi + pub fn assigned_slots(&self) -> assigned_slots::storage::StorageApi { + assigned_slots::storage::StorageApi + } + pub fn validator_manager(&self) -> validator_manager::storage::StorageApi { + validator_manager::storage::StorageApi + } + pub fn state_trie_migration(&self) -> state_trie_migration::storage::StorageApi { + state_trie_migration::storage::StorageApi + } + pub fn root_testing(&self) -> root_testing::storage::StorageApi { + root_testing::storage::StorageApi + } + pub fn sudo(&self) -> sudo::storage::StorageApi { + sudo::storage::StorageApi } } pub struct TransactionApi; @@ -3170,12 +3130,6 @@ pub mod api { pub fn system(&self) -> system::calls::TransactionApi { system::calls::TransactionApi } - pub fn scheduler(&self) -> scheduler::calls::TransactionApi { - scheduler::calls::TransactionApi - } - pub fn preimage(&self) -> preimage::calls::TransactionApi { - preimage::calls::TransactionApi - } pub fn babe(&self) -> babe::calls::TransactionApi { babe::calls::TransactionApi } @@ -3188,8 +3142,8 @@ pub mod api { pub fn balances(&self) -> balances::calls::TransactionApi { balances::calls::TransactionApi } - pub fn staking(&self) -> staking::calls::TransactionApi { - staking::calls::TransactionApi + pub fn beefy(&self) -> beefy::calls::TransactionApi { + beefy::calls::TransactionApi } pub fn session(&self) -> session::calls::TransactionApi { session::calls::TransactionApi @@ -3200,21 +3154,6 @@ pub mod api { pub fn im_online(&self) -> im_online::calls::TransactionApi { im_online::calls::TransactionApi } - pub fn democracy(&self) -> democracy::calls::TransactionApi { - democracy::calls::TransactionApi - } - pub fn council(&self) -> council::calls::TransactionApi { - council::calls::TransactionApi - } - pub fn technical_committee(&self) -> technical_committee::calls::TransactionApi { - technical_committee::calls::TransactionApi - } - pub fn phragmen_election(&self) -> phragmen_election::calls::TransactionApi { - phragmen_election::calls::TransactionApi - } - pub fn technical_membership(&self) -> technical_membership::calls::TransactionApi { - technical_membership::calls::TransactionApi - } pub fn treasury(&self) -> treasury::calls::TransactionApi { treasury::calls::TransactionApi } @@ -3224,49 +3163,59 @@ pub mod api { pub fn referenda(&self) -> referenda::calls::TransactionApi { referenda::calls::TransactionApi } + pub fn fellowship_collective(&self) -> fellowship_collective::calls::TransactionApi { + fellowship_collective::calls::TransactionApi + } + pub fn fellowship_referenda(&self) -> fellowship_referenda::calls::TransactionApi { + fellowship_referenda::calls::TransactionApi + } pub fn whitelist(&self) -> whitelist::calls::TransactionApi { whitelist::calls::TransactionApi } pub fn claims(&self) -> claims::calls::TransactionApi { claims::calls::TransactionApi } - pub fn vesting(&self) -> vesting::calls::TransactionApi { - vesting::calls::TransactionApi - } pub fn utility(&self) -> utility::calls::TransactionApi { utility::calls::TransactionApi } pub fn identity(&self) -> identity::calls::TransactionApi { identity::calls::TransactionApi } + pub fn society(&self) -> society::calls::TransactionApi { + society::calls::TransactionApi + } + pub fn recovery(&self) -> recovery::calls::TransactionApi { + recovery::calls::TransactionApi + } + pub fn vesting(&self) -> vesting::calls::TransactionApi { + vesting::calls::TransactionApi + } + pub fn scheduler(&self) -> scheduler::calls::TransactionApi { + scheduler::calls::TransactionApi + } pub fn proxy(&self) -> proxy::calls::TransactionApi { proxy::calls::TransactionApi } pub fn multisig(&self) -> multisig::calls::TransactionApi { multisig::calls::TransactionApi } + pub fn preimage(&self) -> preimage::calls::TransactionApi { + preimage::calls::TransactionApi + } + pub fn asset_rate(&self) -> asset_rate::calls::TransactionApi { + asset_rate::calls::TransactionApi + } pub fn bounties(&self) -> bounties::calls::TransactionApi { bounties::calls::TransactionApi } pub fn child_bounties(&self) -> child_bounties::calls::TransactionApi { child_bounties::calls::TransactionApi } - pub fn tips(&self) -> tips::calls::TransactionApi { - tips::calls::TransactionApi - } - pub fn election_provider_multi_phase( - &self, - ) -> election_provider_multi_phase::calls::TransactionApi { - election_provider_multi_phase::calls::TransactionApi - } - pub fn voter_list(&self) -> voter_list::calls::TransactionApi { - voter_list::calls::TransactionApi + pub fn nis(&self) -> nis::calls::TransactionApi { + nis::calls::TransactionApi } - pub fn nomination_pools(&self) -> nomination_pools::calls::TransactionApi { - nomination_pools::calls::TransactionApi - } - pub fn fast_unstake(&self) -> fast_unstake::calls::TransactionApi { - fast_unstake::calls::TransactionApi + pub fn nis_counterpart_balances(&self) -> nis_counterpart_balances::calls::TransactionApi { + nis_counterpart_balances::calls::TransactionApi } pub fn configuration(&self) -> configuration::calls::TransactionApi { configuration::calls::TransactionApi @@ -3295,6 +3244,14 @@ pub mod api { pub fn paras_slashing(&self) -> paras_slashing::calls::TransactionApi { paras_slashing::calls::TransactionApi } + pub fn message_queue(&self) -> message_queue::calls::TransactionApi { + message_queue::calls::TransactionApi + } + pub fn on_demand_assignment_provider( + &self, + ) -> on_demand_assignment_provider::calls::TransactionApi { + on_demand_assignment_provider::calls::TransactionApi + } pub fn registrar(&self) -> registrar::calls::TransactionApi { registrar::calls::TransactionApi } @@ -3310,8 +3267,23 @@ pub mod api { pub fn xcm_pallet(&self) -> xcm_pallet::calls::TransactionApi { xcm_pallet::calls::TransactionApi } - pub fn message_queue(&self) -> message_queue::calls::TransactionApi { - message_queue::calls::TransactionApi + pub fn paras_sudo_wrapper(&self) -> paras_sudo_wrapper::calls::TransactionApi { + paras_sudo_wrapper::calls::TransactionApi + } + pub fn assigned_slots(&self) -> assigned_slots::calls::TransactionApi { + assigned_slots::calls::TransactionApi + } + pub fn validator_manager(&self) -> validator_manager::calls::TransactionApi { + validator_manager::calls::TransactionApi + } + pub fn state_trie_migration(&self) -> state_trie_migration::calls::TransactionApi { + state_trie_migration::calls::TransactionApi + } + pub fn root_testing(&self) -> root_testing::calls::TransactionApi { + root_testing::calls::TransactionApi + } + pub fn sudo(&self) -> sudo::calls::TransactionApi { + sudo::calls::TransactionApi } } #[doc = r" check whether the metadata provided is aligned with this statically generated code."] @@ -3323,9 +3295,9 @@ pub mod api { .hash(); runtime_metadata_hash == [ - 204u8, 158u8, 238u8, 144u8, 220u8, 96u8, 96u8, 35u8, 147u8, 66u8, 177u8, 19u8, - 58u8, 106u8, 24u8, 55u8, 42u8, 156u8, 131u8, 153u8, 182u8, 103u8, 67u8, 242u8, - 32u8, 199u8, 203u8, 120u8, 169u8, 2u8, 171u8, 125u8, + 210u8, 40u8, 238u8, 30u8, 170u8, 200u8, 235u8, 8u8, 143u8, 68u8, 193u8, 187u8, + 18u8, 7u8, 95u8, 2u8, 24u8, 155u8, 40u8, 65u8, 249u8, 78u8, 20u8, 5u8, 7u8, 140u8, + 114u8, 215u8, 65u8, 235u8, 62u8, 15u8, ] } pub mod system { @@ -3339,6 +3311,45 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod alias_types { + use super::runtime_types; + pub mod remark { + use super::runtime_types; + pub type Remark = ::std::vec::Vec<::core::primitive::u8>; + } + pub mod set_heap_pages { + use super::runtime_types; + pub type Pages = ::core::primitive::u64; + } + pub mod set_code { + use super::runtime_types; + pub type Code = ::std::vec::Vec<::core::primitive::u8>; + } + pub mod set_code_without_checks { + use super::runtime_types; + pub type Code = ::std::vec::Vec<::core::primitive::u8>; + } + pub mod set_storage { + use super::runtime_types; + pub type Items = ::std::vec::Vec<( + ::std::vec::Vec<::core::primitive::u8>, + ::std::vec::Vec<::core::primitive::u8>, + )>; + } + pub mod kill_storage { + use super::runtime_types; + pub type Keys = ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>; + } + pub mod kill_prefix { + use super::runtime_types; + pub type Prefix = ::std::vec::Vec<::core::primitive::u8>; + pub type Subkeys = ::core::primitive::u32; + } + pub mod remark_with_event { + use super::runtime_types; + pub type Remark = ::std::vec::Vec<::core::primitive::u8>; + } + } pub mod types { use super::runtime_types; #[derive( @@ -3488,7 +3499,7 @@ pub mod api { #[doc = "See [`Pallet::remark`]."] pub fn remark( &self, - remark: ::std::vec::Vec<::core::primitive::u8>, + remark: alias_types::remark::Remark, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "System", @@ -3505,7 +3516,7 @@ pub mod api { #[doc = "See [`Pallet::set_heap_pages`]."] pub fn set_heap_pages( &self, - pages: ::core::primitive::u64, + pages: alias_types::set_heap_pages::Pages, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "System", @@ -3522,7 +3533,7 @@ pub mod api { #[doc = "See [`Pallet::set_code`]."] pub fn set_code( &self, - code: ::std::vec::Vec<::core::primitive::u8>, + code: alias_types::set_code::Code, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "System", @@ -3538,7 +3549,7 @@ pub mod api { #[doc = "See [`Pallet::set_code_without_checks`]."] pub fn set_code_without_checks( &self, - code: ::std::vec::Vec<::core::primitive::u8>, + code: alias_types::set_code_without_checks::Code, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "System", @@ -3555,10 +3566,7 @@ pub mod api { #[doc = "See [`Pallet::set_storage`]."] pub fn set_storage( &self, - items: ::std::vec::Vec<( - ::std::vec::Vec<::core::primitive::u8>, - ::std::vec::Vec<::core::primitive::u8>, - )>, + items: alias_types::set_storage::Items, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "System", @@ -3575,7 +3583,7 @@ pub mod api { #[doc = "See [`Pallet::kill_storage`]."] pub fn kill_storage( &self, - keys: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, + keys: alias_types::kill_storage::Keys, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "System", @@ -3592,8 +3600,8 @@ pub mod api { #[doc = "See [`Pallet::kill_prefix`]."] pub fn kill_prefix( &self, - prefix: ::std::vec::Vec<::core::primitive::u8>, - subkeys: ::core::primitive::u32, + prefix: alias_types::kill_prefix::Prefix, + subkeys: alias_types::kill_prefix::Subkeys, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "System", @@ -3610,7 +3618,7 @@ pub mod api { #[doc = "See [`Pallet::remark_with_event`]."] pub fn remark_with_event( &self, - remark: ::std::vec::Vec<::core::primitive::u8>, + remark: alias_types::remark_with_event::Remark, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "System", @@ -3740,6 +3748,85 @@ pub mod api { } pub mod storage { use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod account { + use super::runtime_types; + pub type Account = runtime_types::frame_system::AccountInfo< + ::core::primitive::u32, + runtime_types::pallet_balances::types::AccountData<::core::primitive::u128>, + >; + } + pub mod extrinsic_count { + use super::runtime_types; + pub type ExtrinsicCount = ::core::primitive::u32; + } + pub mod block_weight { + use super::runtime_types; + pub type BlockWeight = runtime_types::frame_support::dispatch::PerDispatchClass< + runtime_types::sp_weights::weight_v2::Weight, + >; + } + pub mod all_extrinsics_len { + use super::runtime_types; + pub type AllExtrinsicsLen = ::core::primitive::u32; + } + pub mod block_hash { + use super::runtime_types; + pub type BlockHash = ::subxt::utils::H256; + } + pub mod extrinsic_data { + use super::runtime_types; + pub type ExtrinsicData = ::std::vec::Vec<::core::primitive::u8>; + } + pub mod number { + use super::runtime_types; + pub type Number = ::core::primitive::u32; + } + pub mod parent_hash { + use super::runtime_types; + pub type ParentHash = ::subxt::utils::H256; + } + pub mod digest { + use super::runtime_types; + pub type Digest = runtime_types::sp_runtime::generic::digest::Digest; + } + pub mod events { + use super::runtime_types; + pub type Events = ::std::vec::Vec< + runtime_types::frame_system::EventRecord< + runtime_types::rococo_runtime::RuntimeEvent, + ::subxt::utils::H256, + >, + >; + } + pub mod event_count { + use super::runtime_types; + pub type EventCount = ::core::primitive::u32; + } + pub mod event_topics { + use super::runtime_types; + pub type EventTopics = + ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::u32)>; + } + pub mod last_runtime_upgrade { + use super::runtime_types; + pub type LastRuntimeUpgrade = + runtime_types::frame_system::LastRuntimeUpgradeInfo; + } + pub mod upgraded_to_u32_ref_count { + use super::runtime_types; + pub type UpgradedToU32RefCount = ::core::primitive::bool; + } + pub mod upgraded_to_triple_ref_count { + use super::runtime_types; + pub type UpgradedToTripleRefCount = ::core::primitive::bool; + } + pub mod execution_phase { + use super::runtime_types; + pub type ExecutionPhase = runtime_types::frame_system::Phase; + } + } pub struct StorageApi; impl StorageApi { #[doc = " The full account information for a particular account ID."] @@ -3747,10 +3834,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::frame_system::AccountInfo< - ::core::primitive::u32, - runtime_types::pallet_balances::types::AccountData<::core::primitive::u128>, - >, + alias_types::account::Account, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -3772,10 +3856,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::frame_system::AccountInfo< - ::core::primitive::u32, - runtime_types::pallet_balances::types::AccountData<::core::primitive::u128>, - >, + alias_types::account::Account, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -3798,7 +3879,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, + alias_types::extrinsic_count::ExtrinsicCount, ::subxt::storage::address::Yes, (), (), @@ -3820,9 +3901,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::frame_support::dispatch::PerDispatchClass< - runtime_types::sp_weights::weight_v2::Weight, - >, + alias_types::block_weight::BlockWeight, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -3843,7 +3922,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, + alias_types::all_extrinsics_len::AllExtrinsicsLen, ::subxt::storage::address::Yes, (), (), @@ -3865,7 +3944,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::subxt::utils::H256, + alias_types::block_hash::BlockHash, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -3888,7 +3967,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::subxt::utils::H256, + alias_types::block_hash::BlockHash, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -3912,7 +3991,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<::core::primitive::u8>, + alias_types::extrinsic_data::ExtrinsicData, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -3934,7 +4013,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<::core::primitive::u8>, + alias_types::extrinsic_data::ExtrinsicData, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -3957,7 +4036,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, + alias_types::number::Number, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -3978,7 +4057,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::subxt::utils::H256, + alias_types::parent_hash::ParentHash, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -3999,7 +4078,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_runtime::generic::digest::Digest, + alias_types::digest::Digest, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -4026,12 +4105,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec< - runtime_types::frame_system::EventRecord< - runtime_types::polkadot_runtime::RuntimeEvent, - ::subxt::utils::H256, - >, - >, + alias_types::events::Events, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -4041,9 +4115,9 @@ pub mod api { "Events", vec![], [ - 210u8, 42u8, 79u8, 147u8, 133u8, 39u8, 183u8, 74u8, 10u8, 160u8, 71u8, - 241u8, 200u8, 12u8, 112u8, 165u8, 245u8, 59u8, 116u8, 151u8, 217u8, - 160u8, 19u8, 82u8, 237u8, 230u8, 66u8, 250u8, 71u8, 165u8, 187u8, 41u8, + 203u8, 185u8, 202u8, 46u8, 60u8, 247u8, 185u8, 43u8, 177u8, 237u8, + 118u8, 62u8, 238u8, 44u8, 3u8, 32u8, 190u8, 212u8, 99u8, 224u8, 24u8, + 233u8, 250u8, 1u8, 75u8, 204u8, 1u8, 179u8, 199u8, 201u8, 61u8, 228u8, ], ) } @@ -4052,7 +4126,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, + alias_types::event_count::EventCount, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -4076,14 +4150,14 @@ pub mod api { #[doc = " allows light-clients to leverage the changes trie storage tracking mechanism and"] #[doc = " in case of changes fetch the list of events of interest."] #[doc = ""] - #[doc = " The value has the type `(T::BlockNumber, EventIndex)` because if we used only just"] + #[doc = " The value has the type `(BlockNumberFor, EventIndex)` because if we used only just"] #[doc = " the `EventIndex` then in case if the topic has the same contents on the next block"] #[doc = " no notification will be triggered thus the event might be lost."] pub fn event_topics_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::u32)>, + alias_types::event_topics::EventTopics, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -4106,7 +4180,7 @@ pub mod api { #[doc = " allows light-clients to leverage the changes trie storage tracking mechanism and"] #[doc = " in case of changes fetch the list of events of interest."] #[doc = ""] - #[doc = " The value has the type `(T::BlockNumber, EventIndex)` because if we used only just"] + #[doc = " The value has the type `(BlockNumberFor, EventIndex)` because if we used only just"] #[doc = " the `EventIndex` then in case if the topic has the same contents on the next block"] #[doc = " no notification will be triggered thus the event might be lost."] pub fn event_topics( @@ -4114,7 +4188,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::u32)>, + alias_types::event_topics::EventTopics, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -4137,7 +4211,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::frame_system::LastRuntimeUpgradeInfo, + alias_types::last_runtime_upgrade::LastRuntimeUpgrade, ::subxt::storage::address::Yes, (), (), @@ -4158,7 +4232,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::bool, + alias_types::upgraded_to_u32_ref_count::UpgradedToU32RefCount, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -4180,7 +4254,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::bool, + alias_types::upgraded_to_triple_ref_count::UpgradedToTripleRefCount, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -4202,7 +4276,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::frame_system::Phase, + alias_types::execution_phase::ExecutionPhase, ::subxt::storage::address::Yes, (), (), @@ -4320,80 +4394,49 @@ pub mod api { } } } - pub mod scheduler { + pub mod babe { use super::root_mod; use super::runtime_types; #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_scheduler::pallet::Error; + pub type Error = runtime_types::pallet_babe::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::pallet_scheduler::pallet::Call; + pub type Call = runtime_types::pallet_babe::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { + pub mod alias_types { use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - 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, - } - impl ::subxt::blocks::StaticExtrinsic for Schedule { - const PALLET: &'static str = "Scheduler"; - const CALL: &'static str = "schedule"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Cancel { - pub when: ::core::primitive::u32, - pub index: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for Cancel { - const PALLET: &'static str = "Scheduler"; - const CALL: &'static str = "cancel"; + pub mod report_equivocation { + use super::runtime_types; + pub type EquivocationProof = + runtime_types::sp_consensus_slots::EquivocationProof< + runtime_types::sp_runtime::generic::header::Header< + ::core::primitive::u32, + >, + runtime_types::sp_consensus_babe::app::Public, + >; + pub type KeyOwnerProof = runtime_types::sp_session::MembershipProof; } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ScheduleNamed { - pub id: [::core::primitive::u8; 32usize], - 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, + pub mod report_equivocation_unsigned { + use super::runtime_types; + pub type EquivocationProof = + runtime_types::sp_consensus_slots::EquivocationProof< + runtime_types::sp_runtime::generic::header::Header< + ::core::primitive::u32, + >, + runtime_types::sp_consensus_babe::app::Public, + >; + pub type KeyOwnerProof = runtime_types::sp_session::MembershipProof; } - impl ::subxt::blocks::StaticExtrinsic for ScheduleNamed { - const PALLET: &'static str = "Scheduler"; - const CALL: &'static str = "schedule_named"; + pub mod plan_config_change { + use super::runtime_types; + pub type Config = + runtime_types::sp_consensus_babe::digests::NextConfigDescriptor; } + } + pub mod types { + use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -4404,12 +4447,20 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct CancelNamed { - pub id: [::core::primitive::u8; 32usize], + 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_consensus_babe::app::Public, + >, + >, + pub key_owner_proof: runtime_types::sp_session::MembershipProof, } - impl ::subxt::blocks::StaticExtrinsic for CancelNamed { - const PALLET: &'static str = "Scheduler"; - const CALL: &'static str = "cancel_named"; + impl ::subxt::blocks::StaticExtrinsic for ReportEquivocation { + const PALLET: &'static str = "Babe"; + const CALL: &'static str = "report_equivocation"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -4421,16 +4472,20 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - 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, + 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_consensus_babe::app::Public, + >, + >, + pub key_owner_proof: runtime_types::sp_session::MembershipProof, } - impl ::subxt::blocks::StaticExtrinsic for ScheduleAfter { - const PALLET: &'static str = "Scheduler"; - const CALL: &'static str = "schedule_after"; + impl ::subxt::blocks::StaticExtrinsic for ReportEquivocationUnsigned { + const PALLET: &'static str = "Babe"; + const CALL: &'static str = "report_equivocation_unsigned"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -4442,892 +4497,696 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ScheduleNamedAfter { - pub id: [::core::primitive::u8; 32usize], - 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, + pub struct PlanConfigChange { + pub config: runtime_types::sp_consensus_babe::digests::NextConfigDescriptor, } - impl ::subxt::blocks::StaticExtrinsic for ScheduleNamedAfter { - const PALLET: &'static str = "Scheduler"; - const CALL: &'static str = "schedule_named_after"; + impl ::subxt::blocks::StaticExtrinsic for PlanConfigChange { + const PALLET: &'static str = "Babe"; + const CALL: &'static str = "plan_config_change"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::schedule`]."] - pub fn schedule( + #[doc = "See [`Pallet::report_equivocation`]."] + pub fn report_equivocation( &self, - when: ::core::primitive::u32, - maybe_periodic: ::core::option::Option<( - ::core::primitive::u32, - ::core::primitive::u32, - )>, - priority: ::core::primitive::u8, - call: runtime_types::polkadot_runtime::RuntimeCall, - ) -> ::subxt::tx::Payload { + equivocation_proof: alias_types::report_equivocation::EquivocationProof, + key_owner_proof: alias_types::report_equivocation::KeyOwnerProof, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Scheduler", - "schedule", - types::Schedule { - when, - maybe_periodic, - priority, - call: ::std::boxed::Box::new(call), + "Babe", + "report_equivocation", + types::ReportEquivocation { + equivocation_proof: ::std::boxed::Box::new(equivocation_proof), + key_owner_proof, }, [ - 92u8, 46u8, 52u8, 78u8, 196u8, 242u8, 244u8, 47u8, 156u8, 9u8, 196u8, - 80u8, 247u8, 6u8, 211u8, 137u8, 24u8, 65u8, 148u8, 11u8, 137u8, 34u8, - 151u8, 180u8, 180u8, 80u8, 45u8, 35u8, 217u8, 229u8, 58u8, 189u8, - ], - ) - } - #[doc = "See [`Pallet::cancel`]."] - pub fn cancel( - &self, - when: ::core::primitive::u32, - index: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Scheduler", - "cancel", - types::Cancel { when, index }, - [ - 183u8, 204u8, 143u8, 86u8, 17u8, 130u8, 132u8, 91u8, 133u8, 168u8, - 103u8, 129u8, 114u8, 56u8, 123u8, 42u8, 123u8, 120u8, 221u8, 211u8, - 26u8, 85u8, 82u8, 246u8, 192u8, 39u8, 254u8, 45u8, 147u8, 56u8, 178u8, - 133u8, + 37u8, 70u8, 151u8, 149u8, 231u8, 197u8, 226u8, 88u8, 38u8, 138u8, + 147u8, 164u8, 250u8, 117u8, 156u8, 178u8, 44u8, 20u8, 123u8, 33u8, + 11u8, 106u8, 56u8, 122u8, 90u8, 11u8, 15u8, 219u8, 245u8, 18u8, 171u8, + 90u8, ], ) } - #[doc = "See [`Pallet::schedule_named`]."] - pub fn schedule_named( + #[doc = "See [`Pallet::report_equivocation_unsigned`]."] + pub fn report_equivocation_unsigned( &self, - id: [::core::primitive::u8; 32usize], - when: ::core::primitive::u32, - maybe_periodic: ::core::option::Option<( - ::core::primitive::u32, - ::core::primitive::u32, - )>, - priority: ::core::primitive::u8, - call: runtime_types::polkadot_runtime::RuntimeCall, - ) -> ::subxt::tx::Payload { + equivocation_proof : alias_types :: report_equivocation_unsigned :: EquivocationProof, + key_owner_proof: alias_types::report_equivocation_unsigned::KeyOwnerProof, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Scheduler", - "schedule_named", - types::ScheduleNamed { - id, - when, - maybe_periodic, - priority, - call: ::std::boxed::Box::new(call), + "Babe", + "report_equivocation_unsigned", + types::ReportEquivocationUnsigned { + equivocation_proof: ::std::boxed::Box::new(equivocation_proof), + key_owner_proof, }, [ - 64u8, 134u8, 161u8, 186u8, 121u8, 202u8, 68u8, 221u8, 62u8, 87u8, 15u8, - 15u8, 229u8, 123u8, 173u8, 45u8, 13u8, 193u8, 185u8, 156u8, 141u8, - 208u8, 147u8, 72u8, 212u8, 82u8, 54u8, 73u8, 87u8, 13u8, 139u8, 201u8, + 179u8, 248u8, 80u8, 171u8, 220u8, 8u8, 75u8, 215u8, 121u8, 151u8, + 255u8, 4u8, 6u8, 54u8, 141u8, 244u8, 111u8, 156u8, 183u8, 19u8, 192u8, + 195u8, 79u8, 53u8, 0u8, 170u8, 120u8, 227u8, 186u8, 45u8, 48u8, 57u8, ], ) } - #[doc = "See [`Pallet::cancel_named`]."] - pub fn cancel_named( + #[doc = "See [`Pallet::plan_config_change`]."] + pub fn plan_config_change( &self, - id: [::core::primitive::u8; 32usize], - ) -> ::subxt::tx::Payload { + config: alias_types::plan_config_change::Config, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Scheduler", - "cancel_named", - types::CancelNamed { id }, + "Babe", + "plan_config_change", + types::PlanConfigChange { config }, [ - 205u8, 35u8, 28u8, 57u8, 224u8, 7u8, 49u8, 233u8, 236u8, 163u8, 93u8, - 236u8, 103u8, 69u8, 65u8, 51u8, 121u8, 84u8, 9u8, 196u8, 147u8, 122u8, - 227u8, 200u8, 181u8, 233u8, 62u8, 240u8, 174u8, 83u8, 129u8, 193u8, + 227u8, 155u8, 182u8, 231u8, 240u8, 107u8, 30u8, 22u8, 15u8, 52u8, + 172u8, 203u8, 115u8, 47u8, 6u8, 66u8, 170u8, 231u8, 186u8, 77u8, 19u8, + 235u8, 91u8, 136u8, 95u8, 149u8, 188u8, 163u8, 161u8, 109u8, 164u8, + 179u8, ], ) } - #[doc = "See [`Pallet::schedule_after`]."] - pub fn schedule_after( + } + } + pub mod storage { + use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod epoch_index { + use super::runtime_types; + pub type EpochIndex = ::core::primitive::u64; + } + pub mod authorities { + use super::runtime_types; + pub type Authorities = + runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec<( + runtime_types::sp_consensus_babe::app::Public, + ::core::primitive::u64, + )>; + } + pub mod genesis_slot { + use super::runtime_types; + pub type GenesisSlot = runtime_types::sp_consensus_slots::Slot; + } + pub mod current_slot { + use super::runtime_types; + pub type CurrentSlot = runtime_types::sp_consensus_slots::Slot; + } + pub mod randomness { + use super::runtime_types; + pub type Randomness = [::core::primitive::u8; 32usize]; + } + pub mod pending_epoch_config_change { + use super::runtime_types; + pub type PendingEpochConfigChange = + runtime_types::sp_consensus_babe::digests::NextConfigDescriptor; + } + pub mod next_randomness { + use super::runtime_types; + pub type NextRandomness = [::core::primitive::u8; 32usize]; + } + pub mod next_authorities { + use super::runtime_types; + pub type NextAuthorities = + runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec<( + runtime_types::sp_consensus_babe::app::Public, + ::core::primitive::u64, + )>; + } + pub mod segment_index { + use super::runtime_types; + pub type SegmentIndex = ::core::primitive::u32; + } + pub mod under_construction { + use super::runtime_types; + pub type UnderConstruction = + runtime_types::bounded_collections::bounded_vec::BoundedVec< + [::core::primitive::u8; 32usize], + >; + } + pub mod initialized { + use super::runtime_types; + pub type Initialized = ::core::option::Option< + runtime_types::sp_consensus_babe::digests::PreDigest, + >; + } + pub mod author_vrf_randomness { + use super::runtime_types; + pub type AuthorVrfRandomness = + ::core::option::Option<[::core::primitive::u8; 32usize]>; + } + pub mod epoch_start { + use super::runtime_types; + pub type EpochStart = (::core::primitive::u32, ::core::primitive::u32); + } + pub mod lateness { + use super::runtime_types; + pub type Lateness = ::core::primitive::u32; + } + pub mod epoch_config { + use super::runtime_types; + pub type EpochConfig = runtime_types::sp_consensus_babe::BabeEpochConfiguration; + } + pub mod next_epoch_config { + use super::runtime_types; + pub type NextEpochConfig = + runtime_types::sp_consensus_babe::BabeEpochConfiguration; + } + pub mod skipped_epochs { + use super::runtime_types; + pub type SkippedEpochs = + runtime_types::bounded_collections::bounded_vec::BoundedVec<( + ::core::primitive::u64, + ::core::primitive::u32, + )>; + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " Current epoch index."] + pub fn epoch_index( &self, - after: ::core::primitive::u32, - maybe_periodic: ::core::option::Option<( - ::core::primitive::u32, - ::core::primitive::u32, - )>, - priority: ::core::primitive::u8, - call: runtime_types::polkadot_runtime::RuntimeCall, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Scheduler", - "schedule_after", - types::ScheduleAfter { - after, - maybe_periodic, - priority, - call: ::std::boxed::Box::new(call), - }, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::epoch_index::EpochIndex, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Babe", + "EpochIndex", + vec![], [ - 135u8, 194u8, 167u8, 15u8, 118u8, 34u8, 13u8, 0u8, 235u8, 218u8, 99u8, - 7u8, 147u8, 64u8, 250u8, 222u8, 16u8, 175u8, 35u8, 159u8, 223u8, 168u8, - 158u8, 109u8, 93u8, 165u8, 24u8, 143u8, 59u8, 164u8, 116u8, 136u8, + 32u8, 82u8, 130u8, 31u8, 190u8, 162u8, 237u8, 189u8, 104u8, 244u8, + 30u8, 199u8, 179u8, 0u8, 161u8, 107u8, 72u8, 240u8, 201u8, 222u8, + 177u8, 222u8, 35u8, 156u8, 81u8, 132u8, 162u8, 118u8, 238u8, 84u8, + 112u8, 89u8, ], ) } - #[doc = "See [`Pallet::schedule_named_after`]."] - pub fn schedule_named_after( + #[doc = " Current epoch authorities."] + pub fn authorities( &self, - id: [::core::primitive::u8; 32usize], - after: ::core::primitive::u32, - maybe_periodic: ::core::option::Option<( - ::core::primitive::u32, - ::core::primitive::u32, - )>, - priority: ::core::primitive::u8, - call: runtime_types::polkadot_runtime::RuntimeCall, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Scheduler", - "schedule_named_after", - types::ScheduleNamedAfter { - id, - after, - maybe_periodic, - priority, - call: ::std::boxed::Box::new(call), - }, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::authorities::Authorities, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Babe", + "Authorities", + vec![], [ - 66u8, 174u8, 223u8, 142u8, 132u8, 198u8, 68u8, 104u8, 186u8, 93u8, - 36u8, 11u8, 130u8, 199u8, 43u8, 42u8, 232u8, 79u8, 61u8, 98u8, 177u8, - 224u8, 148u8, 53u8, 146u8, 96u8, 104u8, 198u8, 126u8, 83u8, 155u8, 7u8, + 67u8, 196u8, 244u8, 13u8, 246u8, 245u8, 198u8, 98u8, 81u8, 55u8, 182u8, + 187u8, 214u8, 5u8, 181u8, 76u8, 251u8, 213u8, 144u8, 166u8, 36u8, + 153u8, 234u8, 181u8, 252u8, 55u8, 198u8, 175u8, 55u8, 211u8, 105u8, + 85u8, ], ) } - } - } - #[doc = "Events type."] - pub type Event = runtime_types::pallet_scheduler::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Scheduled some task."] - pub struct Scheduled { - pub when: ::core::primitive::u32, - pub index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Scheduled { - const PALLET: &'static str = "Scheduler"; - const EVENT: &'static str = "Scheduled"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Canceled some task."] - pub struct Canceled { - pub when: ::core::primitive::u32, - pub index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Canceled { - const PALLET: &'static str = "Scheduler"; - const EVENT: &'static str = "Canceled"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Dispatched some task."] - pub struct Dispatched { - pub task: (::core::primitive::u32, ::core::primitive::u32), - pub id: ::core::option::Option<[::core::primitive::u8; 32usize]>, - pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, - } - impl ::subxt::events::StaticEvent for Dispatched { - const PALLET: &'static str = "Scheduler"; - const EVENT: &'static str = "Dispatched"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The call for the provided hash was not found so the task has been aborted."] - pub struct CallUnavailable { - pub task: (::core::primitive::u32, ::core::primitive::u32), - pub id: ::core::option::Option<[::core::primitive::u8; 32usize]>, - } - impl ::subxt::events::StaticEvent for CallUnavailable { - const PALLET: &'static str = "Scheduler"; - const EVENT: &'static str = "CallUnavailable"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The given task was unable to be renewed since the agenda is full at that block."] - pub struct PeriodicFailed { - pub task: (::core::primitive::u32, ::core::primitive::u32), - pub id: ::core::option::Option<[::core::primitive::u8; 32usize]>, - } - impl ::subxt::events::StaticEvent for PeriodicFailed { - const PALLET: &'static str = "Scheduler"; - const EVENT: &'static str = "PeriodicFailed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The given task can never be executed since it is overweight."] - pub struct PermanentlyOverweight { - pub task: (::core::primitive::u32, ::core::primitive::u32), - pub id: ::core::option::Option<[::core::primitive::u8; 32usize]>, - } - impl ::subxt::events::StaticEvent for PermanentlyOverweight { - const PALLET: &'static str = "Scheduler"; - const EVENT: &'static str = "PermanentlyOverweight"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - pub fn incomplete_since( + #[doc = " The slot at which the first epoch actually started. This is 0"] + #[doc = " until the first block of the chain."] + pub fn genesis_slot( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, + alias_types::genesis_slot::GenesisSlot, + ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, - (), (), > { ::subxt::storage::address::Address::new_static( - "Scheduler", - "IncompleteSince", + "Babe", + "GenesisSlot", vec![], [ - 250u8, 83u8, 64u8, 167u8, 205u8, 59u8, 225u8, 97u8, 205u8, 12u8, 76u8, - 130u8, 197u8, 4u8, 111u8, 208u8, 92u8, 217u8, 145u8, 119u8, 38u8, - 135u8, 1u8, 242u8, 228u8, 143u8, 56u8, 25u8, 115u8, 233u8, 227u8, 66u8, + 218u8, 174u8, 152u8, 76u8, 188u8, 214u8, 7u8, 88u8, 253u8, 187u8, + 139u8, 234u8, 51u8, 28u8, 220u8, 57u8, 73u8, 1u8, 18u8, 205u8, 80u8, + 160u8, 120u8, 216u8, 139u8, 191u8, 100u8, 108u8, 162u8, 106u8, 175u8, + 107u8, ], ) } - #[doc = " Items to be executed, indexed by the block number that they should be executed on."] - pub fn agenda_iter( + #[doc = " Current slot number."] + pub fn current_slot( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::option::Option< - runtime_types::pallet_scheduler::Scheduled< - [::core::primitive::u8; 32usize], - runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::polkadot_runtime::RuntimeCall, - >, - ::core::primitive::u32, - runtime_types::polkadot_runtime::OriginCaller, - ::subxt::utils::AccountId32, - >, - >, - >, - (), + alias_types::current_slot::CurrentSlot, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, + (), > { ::subxt::storage::address::Address::new_static( - "Scheduler", - "Agenda", + "Babe", + "CurrentSlot", vec![], [ - 251u8, 39u8, 160u8, 19u8, 63u8, 135u8, 130u8, 64u8, 254u8, 182u8, - 210u8, 143u8, 162u8, 252u8, 114u8, 186u8, 94u8, 180u8, 155u8, 251u8, - 4u8, 194u8, 207u8, 194u8, 165u8, 164u8, 164u8, 162u8, 223u8, 50u8, - 221u8, 69u8, + 112u8, 199u8, 115u8, 248u8, 217u8, 242u8, 45u8, 231u8, 178u8, 53u8, + 236u8, 167u8, 219u8, 238u8, 81u8, 243u8, 39u8, 140u8, 68u8, 19u8, + 201u8, 169u8, 211u8, 133u8, 135u8, 213u8, 150u8, 105u8, 60u8, 252u8, + 43u8, 57u8, ], ) } - #[doc = " Items to be executed, indexed by the block number that they should be executed on."] - pub fn agenda( + #[doc = " The epoch randomness for the *current* epoch."] + #[doc = ""] + #[doc = " # Security"] + #[doc = ""] + #[doc = " This MUST NOT be used for gambling, as it can be influenced by a"] + #[doc = " malicious validator in the short term. It MAY be used in many"] + #[doc = " cryptographic protocols, however, so long as one remembers that this"] + #[doc = " (like everything else on-chain) it is public. For example, it can be"] + #[doc = " used where a number is needed that cannot have been chosen by an"] + #[doc = " adversary, for purposes such as public-coin zero-knowledge proofs."] + pub fn randomness( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::option::Option< - runtime_types::pallet_scheduler::Scheduled< - [::core::primitive::u8; 32usize], - runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::polkadot_runtime::RuntimeCall, - >, - ::core::primitive::u32, - runtime_types::polkadot_runtime::OriginCaller, - ::subxt::utils::AccountId32, - >, - >, - >, + alias_types::randomness::Randomness, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( - "Scheduler", - "Agenda", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], + "Babe", + "Randomness", + vec![], [ - 251u8, 39u8, 160u8, 19u8, 63u8, 135u8, 130u8, 64u8, 254u8, 182u8, - 210u8, 143u8, 162u8, 252u8, 114u8, 186u8, 94u8, 180u8, 155u8, 251u8, - 4u8, 194u8, 207u8, 194u8, 165u8, 164u8, 164u8, 162u8, 223u8, 50u8, - 221u8, 69u8, + 36u8, 15u8, 52u8, 73u8, 195u8, 177u8, 186u8, 125u8, 134u8, 11u8, 103u8, + 248u8, 170u8, 237u8, 105u8, 239u8, 168u8, 204u8, 147u8, 52u8, 15u8, + 226u8, 126u8, 176u8, 133u8, 186u8, 169u8, 241u8, 156u8, 118u8, 67u8, + 58u8, ], ) } - #[doc = " Lookup from a name to the block number and index of the task."] - #[doc = ""] - #[doc = " For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4"] - #[doc = " identities."] - pub fn lookup_iter( + #[doc = " Pending epoch configuration change that will be applied when the next epoch is enacted."] + pub fn pending_epoch_config_change( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - (::core::primitive::u32, ::core::primitive::u32), + alias_types::pending_epoch_config_change::PendingEpochConfigChange, + ::subxt::storage::address::Yes, (), (), - ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Scheduler", - "Lookup", + "Babe", + "PendingEpochConfigChange", vec![], [ - 24u8, 87u8, 96u8, 127u8, 136u8, 205u8, 238u8, 174u8, 71u8, 110u8, 65u8, - 98u8, 228u8, 167u8, 99u8, 71u8, 171u8, 186u8, 12u8, 218u8, 137u8, 70u8, - 70u8, 228u8, 153u8, 111u8, 165u8, 114u8, 229u8, 136u8, 118u8, 131u8, + 79u8, 216u8, 84u8, 210u8, 83u8, 149u8, 122u8, 160u8, 159u8, 164u8, + 16u8, 134u8, 154u8, 104u8, 77u8, 254u8, 139u8, 18u8, 163u8, 59u8, 92u8, + 9u8, 135u8, 141u8, 147u8, 86u8, 44u8, 95u8, 183u8, 101u8, 11u8, 58u8, ], ) } - #[doc = " Lookup from a name to the block number and index of the task."] - #[doc = ""] - #[doc = " For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4"] - #[doc = " identities."] - pub fn lookup( + #[doc = " Next epoch randomness."] + pub fn next_randomness( &self, - _0: impl ::std::borrow::Borrow<[::core::primitive::u8; 32usize]>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - (::core::primitive::u32, ::core::primitive::u32), + alias_types::next_randomness::NextRandomness, + ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, - (), (), > { ::subxt::storage::address::Address::new_static( - "Scheduler", - "Lookup", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], + "Babe", + "NextRandomness", + vec![], [ - 24u8, 87u8, 96u8, 127u8, 136u8, 205u8, 238u8, 174u8, 71u8, 110u8, 65u8, - 98u8, 228u8, 167u8, 99u8, 71u8, 171u8, 186u8, 12u8, 218u8, 137u8, 70u8, - 70u8, 228u8, 153u8, 111u8, 165u8, 114u8, 229u8, 136u8, 118u8, 131u8, + 96u8, 191u8, 139u8, 171u8, 144u8, 92u8, 33u8, 58u8, 23u8, 219u8, 164u8, + 121u8, 59u8, 209u8, 112u8, 244u8, 50u8, 8u8, 14u8, 244u8, 103u8, 125u8, + 120u8, 210u8, 16u8, 250u8, 54u8, 192u8, 72u8, 8u8, 219u8, 152u8, ], ) } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The maximum weight that may be scheduled per block for any dispatchables."] - pub fn maximum_weight( + #[doc = " Next epoch authorities."] + pub fn next_authorities( &self, - ) -> ::subxt::constants::Address - { - ::subxt::constants::Address::new_static( - "Scheduler", - "MaximumWeight", + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::next_authorities::NextAuthorities, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Babe", + "NextAuthorities", + vec![], [ - 149u8, 252u8, 129u8, 80u8, 169u8, 36u8, 79u8, 127u8, 240u8, 156u8, - 56u8, 202u8, 219u8, 86u8, 5u8, 65u8, 245u8, 148u8, 138u8, 243u8, 210u8, - 128u8, 234u8, 216u8, 240u8, 219u8, 123u8, 235u8, 21u8, 158u8, 237u8, - 112u8, + 116u8, 95u8, 126u8, 199u8, 237u8, 90u8, 202u8, 227u8, 247u8, 56u8, + 201u8, 113u8, 239u8, 191u8, 151u8, 56u8, 156u8, 133u8, 61u8, 64u8, + 141u8, 26u8, 8u8, 95u8, 177u8, 255u8, 54u8, 223u8, 132u8, 74u8, 210u8, + 128u8, ], ) } - #[doc = " The maximum number of scheduled calls in the queue for a single block."] + #[doc = " Randomness under construction."] #[doc = ""] - #[doc = " NOTE:"] - #[doc = " + Dependent pallets' benchmarks might require a higher limit for the setting. Set a"] - #[doc = " higher limit under `runtime-benchmarks` feature."] - pub fn max_scheduled_per_block( + #[doc = " We make a trade-off between storage accesses and list length."] + #[doc = " We store the under-construction randomness in segments of up to"] + #[doc = " `UNDER_CONSTRUCTION_SEGMENT_LENGTH`."] + #[doc = ""] + #[doc = " Once a segment reaches this length, we begin the next one."] + #[doc = " We reset all segments and return to `0` at the beginning of every"] + #[doc = " epoch."] + pub fn segment_index( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Scheduler", - "MaxScheduledPerBlock", + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::segment_index::SegmentIndex, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Babe", + "SegmentIndex", + vec![], [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, + 145u8, 91u8, 142u8, 240u8, 184u8, 94u8, 68u8, 52u8, 130u8, 3u8, 75u8, + 175u8, 155u8, 130u8, 66u8, 9u8, 150u8, 242u8, 123u8, 111u8, 124u8, + 241u8, 100u8, 128u8, 220u8, 133u8, 96u8, 227u8, 164u8, 241u8, 170u8, + 34u8, ], ) } - } - } - } - pub mod preimage { - use super::root_mod; - use super::runtime_types; - #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_preimage::pallet::Error; - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::pallet_preimage::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct NotePreimage { - pub bytes: ::std::vec::Vec<::core::primitive::u8>, - } - impl ::subxt::blocks::StaticExtrinsic for NotePreimage { - const PALLET: &'static str = "Preimage"; - const CALL: &'static str = "note_preimage"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct UnnotePreimage { - pub hash: ::subxt::utils::H256, - } - impl ::subxt::blocks::StaticExtrinsic for UnnotePreimage { - const PALLET: &'static str = "Preimage"; - const CALL: &'static str = "unnote_preimage"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct RequestPreimage { - pub hash: ::subxt::utils::H256, - } - impl ::subxt::blocks::StaticExtrinsic for RequestPreimage { - const PALLET: &'static str = "Preimage"; - const CALL: &'static str = "request_preimage"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct UnrequestPreimage { - pub hash: ::subxt::utils::H256, - } - impl ::subxt::blocks::StaticExtrinsic for UnrequestPreimage { - const PALLET: &'static str = "Preimage"; - const CALL: &'static str = "unrequest_preimage"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::note_preimage`]."] - pub fn note_preimage( + #[doc = " TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay."] + pub fn under_construction_iter( &self, - bytes: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Preimage", - "note_preimage", - types::NotePreimage { bytes }, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::under_construction::UnderConstruction, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Babe", + "UnderConstruction", + vec![], [ - 121u8, 88u8, 18u8, 92u8, 176u8, 15u8, 192u8, 198u8, 146u8, 198u8, 38u8, - 242u8, 213u8, 83u8, 7u8, 230u8, 14u8, 110u8, 235u8, 32u8, 215u8, 26u8, - 192u8, 217u8, 113u8, 224u8, 206u8, 96u8, 177u8, 198u8, 246u8, 33u8, + 120u8, 120u8, 59u8, 247u8, 50u8, 6u8, 220u8, 14u8, 2u8, 76u8, 203u8, + 244u8, 232u8, 144u8, 253u8, 191u8, 101u8, 35u8, 99u8, 85u8, 111u8, + 168u8, 31u8, 110u8, 187u8, 124u8, 72u8, 32u8, 43u8, 66u8, 8u8, 215u8, ], ) } - #[doc = "See [`Pallet::unnote_preimage`]."] - pub fn unnote_preimage( + #[doc = " TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay."] + pub fn under_construction( &self, - hash: ::subxt::utils::H256, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Preimage", - "unnote_preimage", - types::UnnotePreimage { hash }, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::under_construction::UnderConstruction, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Babe", + "UnderConstruction", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], [ - 188u8, 116u8, 222u8, 22u8, 127u8, 215u8, 2u8, 133u8, 96u8, 202u8, - 190u8, 123u8, 203u8, 43u8, 200u8, 161u8, 226u8, 24u8, 49u8, 36u8, - 221u8, 160u8, 130u8, 119u8, 30u8, 138u8, 144u8, 85u8, 5u8, 164u8, - 252u8, 222u8, + 120u8, 120u8, 59u8, 247u8, 50u8, 6u8, 220u8, 14u8, 2u8, 76u8, 203u8, + 244u8, 232u8, 144u8, 253u8, 191u8, 101u8, 35u8, 99u8, 85u8, 111u8, + 168u8, 31u8, 110u8, 187u8, 124u8, 72u8, 32u8, 43u8, 66u8, 8u8, 215u8, ], ) } - #[doc = "See [`Pallet::request_preimage`]."] - pub fn request_preimage( + #[doc = " Temporary value (cleared at block finalization) which is `Some`"] + #[doc = " if per-block initialization has already been called for current block."] + pub fn initialized( &self, - hash: ::subxt::utils::H256, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Preimage", - "request_preimage", - types::RequestPreimage { hash }, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::initialized::Initialized, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Babe", + "Initialized", + vec![], [ - 87u8, 0u8, 204u8, 111u8, 43u8, 115u8, 64u8, 209u8, 133u8, 13u8, 83u8, - 45u8, 164u8, 166u8, 233u8, 105u8, 242u8, 238u8, 235u8, 208u8, 113u8, - 134u8, 93u8, 242u8, 86u8, 32u8, 7u8, 152u8, 107u8, 208u8, 79u8, 59u8, + 137u8, 31u8, 4u8, 130u8, 35u8, 232u8, 67u8, 108u8, 17u8, 123u8, 26u8, + 96u8, 238u8, 95u8, 138u8, 208u8, 163u8, 83u8, 218u8, 143u8, 8u8, 119u8, + 138u8, 130u8, 9u8, 194u8, 92u8, 40u8, 7u8, 89u8, 53u8, 237u8, ], ) } - #[doc = "See [`Pallet::unrequest_preimage`]."] - pub fn unrequest_preimage( + #[doc = " This field should always be populated during block processing unless"] + #[doc = " secondary plain slots are enabled (which don't contain a VRF output)."] + #[doc = ""] + #[doc = " It is set in `on_finalize`, before it will contain the value from the last block."] + pub fn author_vrf_randomness( &self, - hash: ::subxt::utils::H256, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Preimage", - "unrequest_preimage", - types::UnrequestPreimage { hash }, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::author_vrf_randomness::AuthorVrfRandomness, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Babe", + "AuthorVrfRandomness", + vec![], [ - 55u8, 37u8, 224u8, 149u8, 142u8, 120u8, 8u8, 68u8, 183u8, 225u8, 255u8, - 240u8, 254u8, 111u8, 58u8, 200u8, 113u8, 217u8, 177u8, 203u8, 107u8, - 104u8, 233u8, 87u8, 252u8, 53u8, 33u8, 112u8, 116u8, 254u8, 117u8, - 134u8, + 160u8, 157u8, 62u8, 48u8, 196u8, 136u8, 63u8, 132u8, 155u8, 183u8, + 91u8, 201u8, 146u8, 29u8, 192u8, 142u8, 168u8, 152u8, 197u8, 233u8, + 5u8, 25u8, 0u8, 154u8, 234u8, 180u8, 146u8, 132u8, 106u8, 164u8, 149u8, + 63u8, ], ) } - } - } - #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_preimage::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A preimage has been noted."] - pub struct Noted { - pub hash: ::subxt::utils::H256, - } - impl ::subxt::events::StaticEvent for Noted { - const PALLET: &'static str = "Preimage"; - const EVENT: &'static str = "Noted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A preimage has been requested."] - pub struct Requested { - pub hash: ::subxt::utils::H256, - } - impl ::subxt::events::StaticEvent for Requested { - const PALLET: &'static str = "Preimage"; - const EVENT: &'static str = "Requested"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A preimage has ben cleared."] - pub struct Cleared { - pub hash: ::subxt::utils::H256, - } - impl ::subxt::events::StaticEvent for Cleared { - const PALLET: &'static str = "Preimage"; - const EVENT: &'static str = "Cleared"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The request status of a given hash."] - pub fn status_for_iter( + #[doc = " The block numbers when the last and current epoch have started, respectively `N-1` and"] + #[doc = " `N`."] + #[doc = " NOTE: We track this is in order to annotate the block number when a given pool of"] + #[doc = " entropy was fixed (i.e. it was known to chain observers). Since epochs are defined in"] + #[doc = " slots, which may be skipped, the block numbers may not line up with the slot numbers."] + pub fn epoch_start( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_preimage::RequestStatus< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, - (), - (), + alias_types::epoch_start::EpochStart, + ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, + (), > { ::subxt::storage::address::Address::new_static( - "Preimage", - "StatusFor", + "Babe", + "EpochStart", vec![], [ - 187u8, 100u8, 54u8, 112u8, 96u8, 129u8, 36u8, 149u8, 127u8, 226u8, - 126u8, 171u8, 72u8, 189u8, 59u8, 126u8, 204u8, 125u8, 67u8, 204u8, - 231u8, 6u8, 212u8, 135u8, 166u8, 252u8, 5u8, 46u8, 111u8, 120u8, 54u8, - 209u8, + 144u8, 133u8, 140u8, 56u8, 241u8, 203u8, 199u8, 123u8, 244u8, 126u8, + 196u8, 151u8, 214u8, 204u8, 243u8, 244u8, 210u8, 198u8, 174u8, 126u8, + 200u8, 236u8, 248u8, 190u8, 181u8, 152u8, 113u8, 224u8, 95u8, 234u8, + 169u8, 14u8, ], ) } - #[doc = " The request status of a given hash."] - pub fn status_for( + #[doc = " How late the current block is compared to its parent."] + #[doc = ""] + #[doc = " This entry is populated as part of block execution and is cleaned up"] + #[doc = " on block finalization. Querying this storage entry outside of block"] + #[doc = " execution context should always yield zero."] + pub fn lateness( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_preimage::RequestStatus< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, + alias_types::lateness::Lateness, + ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, - (), (), > { ::subxt::storage::address::Address::new_static( - "Preimage", - "StatusFor", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], + "Babe", + "Lateness", + vec![], [ - 187u8, 100u8, 54u8, 112u8, 96u8, 129u8, 36u8, 149u8, 127u8, 226u8, - 126u8, 171u8, 72u8, 189u8, 59u8, 126u8, 204u8, 125u8, 67u8, 204u8, - 231u8, 6u8, 212u8, 135u8, 166u8, 252u8, 5u8, 46u8, 111u8, 120u8, 54u8, - 209u8, + 229u8, 214u8, 133u8, 149u8, 32u8, 159u8, 26u8, 22u8, 252u8, 131u8, + 200u8, 191u8, 231u8, 176u8, 178u8, 127u8, 33u8, 212u8, 139u8, 220u8, + 157u8, 38u8, 4u8, 226u8, 204u8, 32u8, 55u8, 20u8, 205u8, 141u8, 29u8, + 87u8, ], ) } - pub fn preimage_for_iter( + #[doc = " The configuration for the current epoch. Should never be `None` as it is initialized in"] + #[doc = " genesis."] + pub fn epoch_config( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, + alias_types::epoch_config::EpochConfig, + ::subxt::storage::address::Yes, (), (), - ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Preimage", - "PreimageFor", + "Babe", + "EpochConfig", vec![], [ - 106u8, 5u8, 17u8, 46u8, 6u8, 184u8, 177u8, 113u8, 169u8, 34u8, 119u8, - 141u8, 117u8, 40u8, 30u8, 94u8, 187u8, 35u8, 206u8, 216u8, 143u8, - 208u8, 49u8, 156u8, 200u8, 255u8, 109u8, 200u8, 210u8, 134u8, 24u8, - 139u8, + 151u8, 58u8, 93u8, 2u8, 19u8, 98u8, 41u8, 144u8, 241u8, 70u8, 195u8, + 37u8, 126u8, 241u8, 111u8, 65u8, 16u8, 228u8, 111u8, 220u8, 241u8, + 215u8, 179u8, 235u8, 122u8, 88u8, 92u8, 95u8, 131u8, 252u8, 236u8, + 46u8, ], ) } - pub fn preimage_for_iter1( + #[doc = " The configuration for the next epoch, `None` if the config will not change"] + #[doc = " (you can fallback to `EpochConfig` instead in that case)."] + pub fn next_epoch_config( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, + alias_types::next_epoch_config::NextEpochConfig, + ::subxt::storage::address::Yes, (), (), - ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Preimage", - "PreimageFor", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], + "Babe", + "NextEpochConfig", + vec![], [ - 106u8, 5u8, 17u8, 46u8, 6u8, 184u8, 177u8, 113u8, 169u8, 34u8, 119u8, - 141u8, 117u8, 40u8, 30u8, 94u8, 187u8, 35u8, 206u8, 216u8, 143u8, - 208u8, 49u8, 156u8, 200u8, 255u8, 109u8, 200u8, 210u8, 134u8, 24u8, - 139u8, + 65u8, 54u8, 74u8, 141u8, 193u8, 124u8, 130u8, 238u8, 106u8, 27u8, + 221u8, 189u8, 103u8, 53u8, 39u8, 243u8, 212u8, 216u8, 75u8, 185u8, + 104u8, 220u8, 70u8, 108u8, 87u8, 172u8, 201u8, 185u8, 39u8, 55u8, + 145u8, 6u8, ], ) } - pub fn preimage_for( + #[doc = " A list of the last 100 skipped epochs and the corresponding session index"] + #[doc = " when the epoch was skipped."] + #[doc = ""] + #[doc = " This is only used for validating equivocation proofs. An equivocation proof"] + #[doc = " must contains a key-ownership proof for a given session, therefore we need a"] + #[doc = " way to tie together sessions and epoch indices, i.e. we need to validate that"] + #[doc = " a validator was the owner of a given key on a given session, and what the"] + #[doc = " active epoch index was during that session."] + pub fn skipped_epochs( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, - _1: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, + alias_types::skipped_epochs::SkippedEpochs, + ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, - (), (), > { ::subxt::storage::address::Address::new_static( - "Preimage", - "PreimageFor", - vec![ - ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), - ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + "Babe", + "SkippedEpochs", + vec![], + [ + 120u8, 167u8, 144u8, 97u8, 41u8, 216u8, 103u8, 90u8, 3u8, 86u8, 196u8, + 35u8, 160u8, 150u8, 144u8, 233u8, 128u8, 35u8, 119u8, 66u8, 6u8, 63u8, + 114u8, 140u8, 182u8, 228u8, 192u8, 30u8, 50u8, 145u8, 217u8, 108u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The amount of time, in slots, that each epoch should last."] + #[doc = " NOTE: Currently it is not possible to change the epoch duration after"] + #[doc = " the chain has started. Attempting to do so will brick block production."] + pub fn epoch_duration( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u64> { + ::subxt::constants::Address::new_static( + "Babe", + "EpochDuration", + [ + 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, + 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, + 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, + 246u8, ], + ) + } + #[doc = " The expected average block time at which BABE should be creating"] + #[doc = " blocks. Since BABE is probabilistic it is not trivial to figure out"] + #[doc = " what the expected average block time should be based on the slot"] + #[doc = " duration and the security parameter `c` (where `1 - c` represents"] + #[doc = " the probability of a slot being empty)."] + pub fn expected_block_time( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u64> { + ::subxt::constants::Address::new_static( + "Babe", + "ExpectedBlockTime", [ - 106u8, 5u8, 17u8, 46u8, 6u8, 184u8, 177u8, 113u8, 169u8, 34u8, 119u8, - 141u8, 117u8, 40u8, 30u8, 94u8, 187u8, 35u8, 206u8, 216u8, 143u8, - 208u8, 49u8, 156u8, 200u8, 255u8, 109u8, 200u8, 210u8, 134u8, 24u8, - 139u8, + 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, + 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, + 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, + 246u8, + ], + ) + } + #[doc = " Max number of authorities allowed"] + pub fn max_authorities( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Babe", + "MaxAuthorities", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The maximum number of nominators for each validator."] + pub fn max_nominators( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Babe", + "MaxNominators", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, ], ) } } } } - pub mod babe { + pub mod timestamp { use super::root_mod; use super::runtime_types; - #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_babe::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::pallet_babe::pallet::Call; + pub type Call = runtime_types::pallet_timestamp::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { + pub mod alias_types { use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - 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::blocks::StaticExtrinsic for ReportEquivocation { - const PALLET: &'static str = "Babe"; - const CALL: &'static str = "report_equivocation"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - 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::blocks::StaticExtrinsic for ReportEquivocationUnsigned { - const PALLET: &'static str = "Babe"; - const CALL: &'static str = "report_equivocation_unsigned"; + pub mod set { + use super::runtime_types; + pub type Now = ::core::primitive::u64; } + } + pub mod types { + use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -5338,83 +5197,27 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct PlanConfigChange { - pub config: runtime_types::sp_consensus_babe::digests::NextConfigDescriptor, + pub struct Set { + #[codec(compact)] + pub now: ::core::primitive::u64, } - impl ::subxt::blocks::StaticExtrinsic for PlanConfigChange { - const PALLET: &'static str = "Babe"; - const CALL: &'static str = "plan_config_change"; + impl ::subxt::blocks::StaticExtrinsic for Set { + const PALLET: &'static str = "Timestamp"; + const CALL: &'static str = "set"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::report_equivocation`]."] - pub fn report_equivocation( - &self, - equivocation_proof: runtime_types::sp_consensus_slots::EquivocationProof< - runtime_types::sp_runtime::generic::header::Header< - ::core::primitive::u32, - runtime_types::sp_runtime::traits::BlakeTwo256, - >, - runtime_types::sp_consensus_babe::app::Public, - >, - key_owner_proof: runtime_types::sp_session::MembershipProof, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Babe", - "report_equivocation", - types::ReportEquivocation { - equivocation_proof: ::std::boxed::Box::new(equivocation_proof), - key_owner_proof, - }, - [ - 37u8, 70u8, 151u8, 149u8, 231u8, 197u8, 226u8, 88u8, 38u8, 138u8, - 147u8, 164u8, 250u8, 117u8, 156u8, 178u8, 44u8, 20u8, 123u8, 33u8, - 11u8, 106u8, 56u8, 122u8, 90u8, 11u8, 15u8, 219u8, 245u8, 18u8, 171u8, - 90u8, - ], - ) - } - #[doc = "See [`Pallet::report_equivocation_unsigned`]."] - pub fn report_equivocation_unsigned( - &self, - equivocation_proof: runtime_types::sp_consensus_slots::EquivocationProof< - runtime_types::sp_runtime::generic::header::Header< - ::core::primitive::u32, - runtime_types::sp_runtime::traits::BlakeTwo256, - >, - runtime_types::sp_consensus_babe::app::Public, - >, - key_owner_proof: runtime_types::sp_session::MembershipProof, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Babe", - "report_equivocation_unsigned", - types::ReportEquivocationUnsigned { - equivocation_proof: ::std::boxed::Box::new(equivocation_proof), - key_owner_proof, - }, - [ - 179u8, 248u8, 80u8, 171u8, 220u8, 8u8, 75u8, 215u8, 121u8, 151u8, - 255u8, 4u8, 6u8, 54u8, 141u8, 244u8, 111u8, 156u8, 183u8, 19u8, 192u8, - 195u8, 79u8, 53u8, 0u8, 170u8, 120u8, 227u8, 186u8, 45u8, 48u8, 57u8, - ], - ) - } - #[doc = "See [`Pallet::plan_config_change`]."] - pub fn plan_config_change( - &self, - config: runtime_types::sp_consensus_babe::digests::NextConfigDescriptor, - ) -> ::subxt::tx::Payload { + #[doc = "See [`Pallet::set`]."] + pub fn set(&self, now: alias_types::set::Now) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Babe", - "plan_config_change", - types::PlanConfigChange { config }, + "Timestamp", + "set", + types::Set { now }, [ - 227u8, 155u8, 182u8, 231u8, 240u8, 107u8, 30u8, 22u8, 15u8, 52u8, - 172u8, 203u8, 115u8, 47u8, 6u8, 66u8, 170u8, 231u8, 186u8, 77u8, 19u8, - 235u8, 91u8, 136u8, 95u8, 149u8, 188u8, 163u8, 161u8, 109u8, 164u8, - 179u8, + 37u8, 95u8, 49u8, 218u8, 24u8, 22u8, 0u8, 95u8, 72u8, 35u8, 155u8, + 199u8, 213u8, 54u8, 207u8, 22u8, 185u8, 193u8, 221u8, 70u8, 18u8, + 200u8, 4u8, 231u8, 195u8, 173u8, 6u8, 122u8, 11u8, 203u8, 231u8, 227u8, ], ) } @@ -5422,522 +5225,510 @@ pub mod api { } pub mod storage { use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod now { + use super::runtime_types; + pub type Now = ::core::primitive::u64; + } + pub mod did_update { + use super::runtime_types; + pub type DidUpdate = ::core::primitive::bool; + } + } pub struct StorageApi; impl StorageApi { - #[doc = " Current epoch index."] - pub fn epoch_index( + #[doc = " The current time for the current block."] + pub fn now( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u64, + alias_types::now::Now, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( - "Babe", - "EpochIndex", + "Timestamp", + "Now", vec![], [ - 32u8, 82u8, 130u8, 31u8, 190u8, 162u8, 237u8, 189u8, 104u8, 244u8, - 30u8, 199u8, 179u8, 0u8, 161u8, 107u8, 72u8, 240u8, 201u8, 222u8, - 177u8, 222u8, 35u8, 156u8, 81u8, 132u8, 162u8, 118u8, 238u8, 84u8, - 112u8, 89u8, + 44u8, 50u8, 80u8, 30u8, 195u8, 146u8, 123u8, 238u8, 8u8, 163u8, 187u8, + 92u8, 61u8, 39u8, 51u8, 29u8, 173u8, 169u8, 217u8, 158u8, 85u8, 187u8, + 141u8, 26u8, 12u8, 115u8, 51u8, 11u8, 200u8, 244u8, 138u8, 152u8, ], ) } - #[doc = " Current epoch authorities."] - pub fn authorities( + #[doc = " Whether the timestamp has been updated in this block."] + #[doc = ""] + #[doc = " This value is updated to `true` upon successful submission of a timestamp by a node."] + #[doc = " It is then checked at the end of each block execution in the `on_finalize` hook."] + pub fn did_update( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec<( - runtime_types::sp_consensus_babe::app::Public, - ::core::primitive::u64, - )>, + alias_types::did_update::DidUpdate, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( - "Babe", - "Authorities", + "Timestamp", + "DidUpdate", vec![], [ - 67u8, 196u8, 244u8, 13u8, 246u8, 245u8, 198u8, 98u8, 81u8, 55u8, 182u8, - 187u8, 214u8, 5u8, 181u8, 76u8, 251u8, 213u8, 144u8, 166u8, 36u8, - 153u8, 234u8, 181u8, 252u8, 55u8, 198u8, 175u8, 55u8, 211u8, 105u8, - 85u8, + 229u8, 175u8, 246u8, 102u8, 237u8, 158u8, 212u8, 229u8, 238u8, 214u8, + 205u8, 160u8, 164u8, 252u8, 195u8, 75u8, 139u8, 110u8, 22u8, 34u8, + 248u8, 204u8, 107u8, 46u8, 20u8, 200u8, 238u8, 167u8, 71u8, 41u8, + 214u8, 140u8, ], ) } - #[doc = " The slot at which the first epoch actually started. This is 0"] - #[doc = " until the first block of the chain."] - pub fn genesis_slot( + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The minimum period between blocks."] + #[doc = ""] + #[doc = " Be aware that this is different to the *expected* period that the block production"] + #[doc = " apparatus provides. Your chosen consensus system will generally work with this to"] + #[doc = " determine a sensible block time. For example, in the Aura pallet it will be double this"] + #[doc = " period on default settings."] + pub fn minimum_period( &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_consensus_slots::Slot, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Babe", - "GenesisSlot", - vec![], + ) -> ::subxt::constants::Address<::core::primitive::u64> { + ::subxt::constants::Address::new_static( + "Timestamp", + "MinimumPeriod", [ - 218u8, 174u8, 152u8, 76u8, 188u8, 214u8, 7u8, 88u8, 253u8, 187u8, - 139u8, 234u8, 51u8, 28u8, 220u8, 57u8, 73u8, 1u8, 18u8, 205u8, 80u8, - 160u8, 120u8, 216u8, 139u8, 191u8, 100u8, 108u8, 162u8, 106u8, 175u8, - 107u8, + 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, + 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, + 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, + 246u8, ], ) } - #[doc = " Current slot number."] - pub fn current_slot( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_consensus_slots::Slot, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Babe", - "CurrentSlot", - vec![], - [ - 112u8, 199u8, 115u8, 248u8, 217u8, 242u8, 45u8, 231u8, 178u8, 53u8, - 236u8, 167u8, 219u8, 238u8, 81u8, 243u8, 39u8, 140u8, 68u8, 19u8, - 201u8, 169u8, 211u8, 133u8, 135u8, 213u8, 150u8, 105u8, 60u8, 252u8, - 43u8, 57u8, - ], - ) + } + } + } + pub mod indices { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Error` enum of this pallet."] + pub type Error = runtime_types::pallet_indices::pallet::Error; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::pallet_indices::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod alias_types { + use super::runtime_types; + pub mod claim { + use super::runtime_types; + pub type Index = ::core::primitive::u32; } - #[doc = " The epoch randomness for the *current* epoch."] - #[doc = ""] - #[doc = " # Security"] - #[doc = ""] - #[doc = " This MUST NOT be used for gambling, as it can be influenced by a"] - #[doc = " malicious validator in the short term. It MAY be used in many"] - #[doc = " cryptographic protocols, however, so long as one remembers that this"] - #[doc = " (like everything else on-chain) it is public. For example, it can be"] - #[doc = " used where a number is needed that cannot have been chosen by an"] - #[doc = " adversary, for purposes such as public-coin zero-knowledge proofs."] - pub fn randomness( + pub mod transfer { + use super::runtime_types; + pub type New = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Index = ::core::primitive::u32; + } + pub mod free { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + } + pub mod force_transfer { + use super::runtime_types; + pub type New = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Index = ::core::primitive::u32; + pub type Freeze = ::core::primitive::bool; + } + pub mod freeze { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + } + } + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Claim { + pub index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for Claim { + const PALLET: &'static str = "Indices"; + const CALL: &'static str = "claim"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Transfer { + pub new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for Transfer { + const PALLET: &'static str = "Indices"; + const CALL: &'static str = "transfer"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Free { + pub index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for Free { + const PALLET: &'static str = "Indices"; + const CALL: &'static str = "free"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ForceTransfer { + pub new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub index: ::core::primitive::u32, + pub freeze: ::core::primitive::bool, + } + impl ::subxt::blocks::StaticExtrinsic for ForceTransfer { + const PALLET: &'static str = "Indices"; + const CALL: &'static str = "force_transfer"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Freeze { + pub index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for Freeze { + const PALLET: &'static str = "Indices"; + const CALL: &'static str = "freeze"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::claim`]."] + pub fn claim( &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - [::core::primitive::u8; 32usize], - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Babe", - "Randomness", - vec![], + index: alias_types::claim::Index, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Indices", + "claim", + types::Claim { index }, [ - 36u8, 15u8, 52u8, 73u8, 195u8, 177u8, 186u8, 125u8, 134u8, 11u8, 103u8, - 248u8, 170u8, 237u8, 105u8, 239u8, 168u8, 204u8, 147u8, 52u8, 15u8, - 226u8, 126u8, 176u8, 133u8, 186u8, 169u8, 241u8, 156u8, 118u8, 67u8, - 58u8, + 146u8, 58u8, 246u8, 135u8, 59u8, 90u8, 3u8, 5u8, 140u8, 169u8, 232u8, + 195u8, 11u8, 107u8, 36u8, 141u8, 118u8, 174u8, 160u8, 160u8, 19u8, + 205u8, 177u8, 193u8, 18u8, 102u8, 115u8, 31u8, 72u8, 29u8, 91u8, 235u8, ], ) } - #[doc = " Pending epoch configuration change that will be applied when the next epoch is enacted."] - pub fn pending_epoch_config_change( + #[doc = "See [`Pallet::transfer`]."] + pub fn transfer( &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_consensus_babe::digests::NextConfigDescriptor, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Babe", - "PendingEpochConfigChange", - vec![], + new: alias_types::transfer::New, + index: alias_types::transfer::Index, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Indices", + "transfer", + types::Transfer { new, index }, [ - 79u8, 216u8, 84u8, 210u8, 83u8, 149u8, 122u8, 160u8, 159u8, 164u8, - 16u8, 134u8, 154u8, 104u8, 77u8, 254u8, 139u8, 18u8, 163u8, 59u8, 92u8, - 9u8, 135u8, 141u8, 147u8, 86u8, 44u8, 95u8, 183u8, 101u8, 11u8, 58u8, + 121u8, 156u8, 174u8, 248u8, 72u8, 126u8, 99u8, 188u8, 71u8, 134u8, + 107u8, 147u8, 139u8, 139u8, 57u8, 198u8, 17u8, 241u8, 142u8, 64u8, + 16u8, 121u8, 249u8, 146u8, 24u8, 86u8, 78u8, 187u8, 38u8, 146u8, 96u8, + 218u8, ], ) } - #[doc = " Next epoch randomness."] - pub fn next_randomness( + #[doc = "See [`Pallet::free`]."] + pub fn free( &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - [::core::primitive::u8; 32usize], - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Babe", - "NextRandomness", - vec![], + index: alias_types::free::Index, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Indices", + "free", + types::Free { index }, [ - 96u8, 191u8, 139u8, 171u8, 144u8, 92u8, 33u8, 58u8, 23u8, 219u8, 164u8, - 121u8, 59u8, 209u8, 112u8, 244u8, 50u8, 8u8, 14u8, 244u8, 103u8, 125u8, - 120u8, 210u8, 16u8, 250u8, 54u8, 192u8, 72u8, 8u8, 219u8, 152u8, + 241u8, 211u8, 234u8, 102u8, 189u8, 22u8, 209u8, 27u8, 8u8, 229u8, 80u8, + 227u8, 138u8, 252u8, 222u8, 111u8, 77u8, 201u8, 235u8, 51u8, 163u8, + 247u8, 13u8, 126u8, 216u8, 136u8, 57u8, 222u8, 56u8, 66u8, 215u8, + 244u8, ], ) } - #[doc = " Next epoch authorities."] - pub fn next_authorities( + #[doc = "See [`Pallet::force_transfer`]."] + pub fn force_transfer( &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec<( - runtime_types::sp_consensus_babe::app::Public, - ::core::primitive::u64, - )>, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Babe", - "NextAuthorities", - vec![], + new: alias_types::force_transfer::New, + index: alias_types::force_transfer::Index, + freeze: alias_types::force_transfer::Freeze, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Indices", + "force_transfer", + types::ForceTransfer { new, index, freeze }, [ - 116u8, 95u8, 126u8, 199u8, 237u8, 90u8, 202u8, 227u8, 247u8, 56u8, - 201u8, 113u8, 239u8, 191u8, 151u8, 56u8, 156u8, 133u8, 61u8, 64u8, - 141u8, 26u8, 8u8, 95u8, 177u8, 255u8, 54u8, 223u8, 132u8, 74u8, 210u8, - 128u8, + 137u8, 128u8, 43u8, 135u8, 129u8, 169u8, 162u8, 136u8, 175u8, 31u8, + 161u8, 120u8, 15u8, 176u8, 203u8, 23u8, 107u8, 31u8, 135u8, 200u8, + 221u8, 186u8, 162u8, 229u8, 238u8, 82u8, 192u8, 122u8, 136u8, 6u8, + 176u8, 42u8, ], ) } - #[doc = " Randomness under construction."] - #[doc = ""] - #[doc = " We make a trade-off between storage accesses and list length."] - #[doc = " We store the under-construction randomness in segments of up to"] - #[doc = " `UNDER_CONSTRUCTION_SEGMENT_LENGTH`."] - #[doc = ""] - #[doc = " Once a segment reaches this length, we begin the next one."] - #[doc = " We reset all segments and return to `0` at the beginning of every"] - #[doc = " epoch."] - pub fn segment_index( + #[doc = "See [`Pallet::freeze`]."] + pub fn freeze( &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Babe", - "SegmentIndex", - vec![], + index: alias_types::freeze::Index, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Indices", + "freeze", + types::Freeze { index }, [ - 145u8, 91u8, 142u8, 240u8, 184u8, 94u8, 68u8, 52u8, 130u8, 3u8, 75u8, - 175u8, 155u8, 130u8, 66u8, 9u8, 150u8, 242u8, 123u8, 111u8, 124u8, - 241u8, 100u8, 128u8, 220u8, 133u8, 96u8, 227u8, 164u8, 241u8, 170u8, - 34u8, + 238u8, 215u8, 108u8, 156u8, 84u8, 240u8, 130u8, 229u8, 27u8, 132u8, + 93u8, 78u8, 2u8, 251u8, 43u8, 203u8, 2u8, 142u8, 147u8, 48u8, 92u8, + 101u8, 207u8, 24u8, 51u8, 16u8, 36u8, 229u8, 188u8, 129u8, 160u8, + 117u8, ], ) } - #[doc = " TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay."] - pub fn under_construction_iter( + } + } + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_indices::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A account index was assigned."] + pub struct IndexAssigned { + pub who: ::subxt::utils::AccountId32, + pub index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for IndexAssigned { + const PALLET: &'static str = "Indices"; + const EVENT: &'static str = "IndexAssigned"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A account index has been freed up (unassigned)."] + pub struct IndexFreed { + pub index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for IndexFreed { + const PALLET: &'static str = "Indices"; + const EVENT: &'static str = "IndexFreed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A account index has been frozen to its current account ID."] + pub struct IndexFrozen { + pub index: ::core::primitive::u32, + pub who: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for IndexFrozen { + const PALLET: &'static str = "Indices"; + const EVENT: &'static str = "IndexFrozen"; + } + } + pub mod storage { + use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod accounts { + use super::runtime_types; + pub type Accounts = ( + ::subxt::utils::AccountId32, + ::core::primitive::u128, + ::core::primitive::bool, + ); + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " The lookup from index to account."] + pub fn accounts_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - [::core::primitive::u8; 32usize], - >, + alias_types::accounts::Accounts, + (), (), - ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Babe", - "UnderConstruction", + "Indices", + "Accounts", vec![], [ - 120u8, 120u8, 59u8, 247u8, 50u8, 6u8, 220u8, 14u8, 2u8, 76u8, 203u8, - 244u8, 232u8, 144u8, 253u8, 191u8, 101u8, 35u8, 99u8, 85u8, 111u8, - 168u8, 31u8, 110u8, 187u8, 124u8, 72u8, 32u8, 43u8, 66u8, 8u8, 215u8, + 48u8, 189u8, 43u8, 119u8, 32u8, 168u8, 28u8, 12u8, 245u8, 81u8, 119u8, + 182u8, 23u8, 201u8, 33u8, 147u8, 128u8, 171u8, 155u8, 134u8, 71u8, + 87u8, 100u8, 248u8, 107u8, 129u8, 36u8, 197u8, 220u8, 90u8, 11u8, + 238u8, ], ) } - #[doc = " TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay."] - pub fn under_construction( + #[doc = " The lookup from index to account."] + pub fn accounts( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - [::core::primitive::u8; 32usize], - >, - ::subxt::storage::address::Yes, + alias_types::accounts::Accounts, ::subxt::storage::address::Yes, (), + (), > { ::subxt::storage::address::Address::new_static( - "Babe", - "UnderConstruction", + "Indices", + "Accounts", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 120u8, 120u8, 59u8, 247u8, 50u8, 6u8, 220u8, 14u8, 2u8, 76u8, 203u8, - 244u8, 232u8, 144u8, 253u8, 191u8, 101u8, 35u8, 99u8, 85u8, 111u8, - 168u8, 31u8, 110u8, 187u8, 124u8, 72u8, 32u8, 43u8, 66u8, 8u8, 215u8, + 48u8, 189u8, 43u8, 119u8, 32u8, 168u8, 28u8, 12u8, 245u8, 81u8, 119u8, + 182u8, 23u8, 201u8, 33u8, 147u8, 128u8, 171u8, 155u8, 134u8, 71u8, + 87u8, 100u8, 248u8, 107u8, 129u8, 36u8, 197u8, 220u8, 90u8, 11u8, + 238u8, ], ) } - #[doc = " Temporary value (cleared at block finalization) which is `Some`"] - #[doc = " if per-block initialization has already been called for current block."] - pub fn initialized( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::option::Option, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Babe", - "Initialized", - vec![], + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The deposit needed for reserving an index."] + pub fn deposit(&self) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Indices", + "Deposit", [ - 137u8, 31u8, 4u8, 130u8, 35u8, 232u8, 67u8, 108u8, 17u8, 123u8, 26u8, - 96u8, 238u8, 95u8, 138u8, 208u8, 163u8, 83u8, 218u8, 143u8, 8u8, 119u8, - 138u8, 130u8, 9u8, 194u8, 92u8, 40u8, 7u8, 89u8, 53u8, 237u8, + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, ], ) } - #[doc = " This field should always be populated during block processing unless"] - #[doc = " secondary plain slots are enabled (which don't contain a VRF output)."] - #[doc = ""] - #[doc = " It is set in `on_finalize`, before it will contain the value from the last block."] - pub fn author_vrf_randomness( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::option::Option<[::core::primitive::u8; 32usize]>, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Babe", - "AuthorVrfRandomness", - vec![], - [ - 160u8, 157u8, 62u8, 48u8, 196u8, 136u8, 63u8, 132u8, 155u8, 183u8, - 91u8, 201u8, 146u8, 29u8, 192u8, 142u8, 168u8, 152u8, 197u8, 233u8, - 5u8, 25u8, 0u8, 154u8, 234u8, 180u8, 146u8, 132u8, 106u8, 164u8, 149u8, - 63u8, - ], - ) + } + } + } + pub mod balances { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Error` enum of this pallet."] + pub type Error = runtime_types::pallet_balances::pallet::Error; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::pallet_balances::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod alias_types { + use super::runtime_types; + pub mod transfer_allow_death { + use super::runtime_types; + pub type Dest = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Value = ::core::primitive::u128; } - #[doc = " The block numbers when the last and current epoch have started, respectively `N-1` and"] - #[doc = " `N`."] - #[doc = " NOTE: We track this is in order to annotate the block number when a given pool of"] - #[doc = " entropy was fixed (i.e. it was known to chain observers). Since epochs are defined in"] - #[doc = " slots, which may be skipped, the block numbers may not line up with the slot numbers."] - pub fn epoch_start( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - (::core::primitive::u32, ::core::primitive::u32), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Babe", - "EpochStart", - vec![], - [ - 144u8, 133u8, 140u8, 56u8, 241u8, 203u8, 199u8, 123u8, 244u8, 126u8, - 196u8, 151u8, 214u8, 204u8, 243u8, 244u8, 210u8, 198u8, 174u8, 126u8, - 200u8, 236u8, 248u8, 190u8, 181u8, 152u8, 113u8, 224u8, 95u8, 234u8, - 169u8, 14u8, - ], - ) + pub mod force_transfer { + use super::runtime_types; + pub type Source = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Dest = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Value = ::core::primitive::u128; } - #[doc = " How late the current block is compared to its parent."] - #[doc = ""] - #[doc = " This entry is populated as part of block execution and is cleaned up"] - #[doc = " on block finalization. Querying this storage entry outside of block"] - #[doc = " execution context should always yield zero."] - pub fn lateness( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Babe", - "Lateness", - vec![], - [ - 229u8, 214u8, 133u8, 149u8, 32u8, 159u8, 26u8, 22u8, 252u8, 131u8, - 200u8, 191u8, 231u8, 176u8, 178u8, 127u8, 33u8, 212u8, 139u8, 220u8, - 157u8, 38u8, 4u8, 226u8, 204u8, 32u8, 55u8, 20u8, 205u8, 141u8, 29u8, - 87u8, - ], - ) - } - #[doc = " The configuration for the current epoch. Should never be `None` as it is initialized in"] - #[doc = " genesis."] - pub fn epoch_config( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_consensus_babe::BabeEpochConfiguration, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Babe", - "EpochConfig", - vec![], - [ - 151u8, 58u8, 93u8, 2u8, 19u8, 98u8, 41u8, 144u8, 241u8, 70u8, 195u8, - 37u8, 126u8, 241u8, 111u8, 65u8, 16u8, 228u8, 111u8, 220u8, 241u8, - 215u8, 179u8, 235u8, 122u8, 88u8, 92u8, 95u8, 131u8, 252u8, 236u8, - 46u8, - ], - ) - } - #[doc = " The configuration for the next epoch, `None` if the config will not change"] - #[doc = " (you can fallback to `EpochConfig` instead in that case)."] - pub fn next_epoch_config( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_consensus_babe::BabeEpochConfiguration, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Babe", - "NextEpochConfig", - vec![], - [ - 65u8, 54u8, 74u8, 141u8, 193u8, 124u8, 130u8, 238u8, 106u8, 27u8, - 221u8, 189u8, 103u8, 53u8, 39u8, 243u8, 212u8, 216u8, 75u8, 185u8, - 104u8, 220u8, 70u8, 108u8, 87u8, 172u8, 201u8, 185u8, 39u8, 55u8, - 145u8, 6u8, - ], - ) + pub mod transfer_keep_alive { + use super::runtime_types; + pub type Dest = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Value = ::core::primitive::u128; } - #[doc = " A list of the last 100 skipped epochs and the corresponding session index"] - #[doc = " when the epoch was skipped."] - #[doc = ""] - #[doc = " This is only used for validating equivocation proofs. An equivocation proof"] - #[doc = " must contains a key-ownership proof for a given session, therefore we need a"] - #[doc = " way to tie together sessions and epoch indices, i.e. we need to validate that"] - #[doc = " a validator was the owner of a given key on a given session, and what the"] - #[doc = " active epoch index was during that session."] - pub fn skipped_epochs( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec<( - ::core::primitive::u64, - ::core::primitive::u32, - )>, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Babe", - "SkippedEpochs", - vec![], - [ - 120u8, 167u8, 144u8, 97u8, 41u8, 216u8, 103u8, 90u8, 3u8, 86u8, 196u8, - 35u8, 160u8, 150u8, 144u8, 233u8, 128u8, 35u8, 119u8, 66u8, 6u8, 63u8, - 114u8, 140u8, 182u8, 228u8, 192u8, 30u8, 50u8, 145u8, 217u8, 108u8, - ], - ) + pub mod transfer_all { + use super::runtime_types; + pub type Dest = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type KeepAlive = ::core::primitive::bool; } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The amount of time, in slots, that each epoch should last."] - #[doc = " NOTE: Currently it is not possible to change the epoch duration after"] - #[doc = " the chain has started. Attempting to do so will brick block production."] - pub fn epoch_duration( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u64> { - ::subxt::constants::Address::new_static( - "Babe", - "EpochDuration", - [ - 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, - 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, - 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, - 246u8, - ], - ) + pub mod force_unreserve { + use super::runtime_types; + pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Amount = ::core::primitive::u128; } - #[doc = " The expected average block time at which BABE should be creating"] - #[doc = " blocks. Since BABE is probabilistic it is not trivial to figure out"] - #[doc = " what the expected average block time should be based on the slot"] - #[doc = " duration and the security parameter `c` (where `1 - c` represents"] - #[doc = " the probability of a slot being empty)."] - pub fn expected_block_time( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u64> { - ::subxt::constants::Address::new_static( - "Babe", - "ExpectedBlockTime", - [ - 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, - 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, - 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, - 246u8, - ], - ) + pub mod upgrade_accounts { + use super::runtime_types; + pub type Who = ::std::vec::Vec<::subxt::utils::AccountId32>; } - #[doc = " Max number of authorities allowed"] - pub fn max_authorities( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Babe", - "MaxAuthorities", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) + pub mod force_set_balance { + use super::runtime_types; + pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type NewFree = ::core::primitive::u128; } } - } - } - pub mod timestamp { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::pallet_timestamp::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; #[derive( @@ -5950,121 +5741,36 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Set { + pub struct TransferAllowDeath { + pub dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, #[codec(compact)] - pub now: ::core::primitive::u64, - } - impl ::subxt::blocks::StaticExtrinsic for Set { - const PALLET: &'static str = "Timestamp"; - const CALL: &'static str = "set"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::set`]."] - pub fn set(&self, now: ::core::primitive::u64) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Timestamp", - "set", - types::Set { now }, - [ - 37u8, 95u8, 49u8, 218u8, 24u8, 22u8, 0u8, 95u8, 72u8, 35u8, 155u8, - 199u8, 213u8, 54u8, 207u8, 22u8, 185u8, 193u8, 221u8, 70u8, 18u8, - 200u8, 4u8, 231u8, 195u8, 173u8, 6u8, 122u8, 11u8, 203u8, 231u8, 227u8, - ], - ) + pub value: ::core::primitive::u128, } - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Current time for the current block."] - pub fn now( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u64, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Timestamp", - "Now", - vec![], - [ - 44u8, 50u8, 80u8, 30u8, 195u8, 146u8, 123u8, 238u8, 8u8, 163u8, 187u8, - 92u8, 61u8, 39u8, 51u8, 29u8, 173u8, 169u8, 217u8, 158u8, 85u8, 187u8, - 141u8, 26u8, 12u8, 115u8, 51u8, 11u8, 200u8, 244u8, 138u8, 152u8, - ], - ) + impl ::subxt::blocks::StaticExtrinsic for TransferAllowDeath { + const PALLET: &'static str = "Balances"; + const CALL: &'static str = "transfer_allow_death"; } - #[doc = " Did the timestamp get updated in this block?"] - pub fn did_update( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::bool, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Timestamp", - "DidUpdate", - vec![], - [ - 229u8, 175u8, 246u8, 102u8, 237u8, 158u8, 212u8, 229u8, 238u8, 214u8, - 205u8, 160u8, 164u8, 252u8, 195u8, 75u8, 139u8, 110u8, 22u8, 34u8, - 248u8, 204u8, 107u8, 46u8, 20u8, 200u8, 238u8, 167u8, 71u8, 41u8, - 214u8, 140u8, - ], - ) + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ForceTransfer { + pub source: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + #[codec(compact)] + pub value: ::core::primitive::u128, } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The minimum period between blocks. Beware that this is different to the *expected*"] - #[doc = " period that the block production apparatus provides. Your chosen consensus system will"] - #[doc = " generally work with this to determine a sensible block time. e.g. For Aura, it will be"] - #[doc = " double this period on default settings."] - pub fn minimum_period( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u64> { - ::subxt::constants::Address::new_static( - "Timestamp", - "MinimumPeriod", - [ - 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, - 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, - 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, - 246u8, - ], - ) + impl ::subxt::blocks::StaticExtrinsic for ForceTransfer { + const PALLET: &'static str = "Balances"; + const CALL: &'static str = "force_transfer"; } - } - } - } - pub mod indices { - use super::root_mod; - use super::runtime_types; - #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_indices::pallet::Error; - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::pallet_indices::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -6074,12 +5780,14 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Claim { - pub index: ::core::primitive::u32, + pub struct TransferKeepAlive { + pub dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + #[codec(compact)] + pub value: ::core::primitive::u128, } - impl ::subxt::blocks::StaticExtrinsic for Claim { - const PALLET: &'static str = "Indices"; - const CALL: &'static str = "claim"; + impl ::subxt::blocks::StaticExtrinsic for TransferKeepAlive { + const PALLET: &'static str = "Balances"; + const CALL: &'static str = "transfer_keep_alive"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6091,16 +5799,15 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Transfer { - pub new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub index: ::core::primitive::u32, + pub struct TransferAll { + pub dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub keep_alive: ::core::primitive::bool, } - impl ::subxt::blocks::StaticExtrinsic for Transfer { - const PALLET: &'static str = "Indices"; - const CALL: &'static str = "transfer"; + impl ::subxt::blocks::StaticExtrinsic for TransferAll { + const PALLET: &'static str = "Balances"; + const CALL: &'static str = "transfer_all"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -6110,12 +5817,13 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Free { - pub index: ::core::primitive::u32, + pub struct ForceUnreserve { + pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub amount: ::core::primitive::u128, } - impl ::subxt::blocks::StaticExtrinsic for Free { - const PALLET: &'static str = "Indices"; - const CALL: &'static str = "free"; + impl ::subxt::blocks::StaticExtrinsic for ForceUnreserve { + const PALLET: &'static str = "Balances"; + const CALL: &'static str = "force_unreserve"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6127,17 +5835,14 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ForceTransfer { - pub new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub index: ::core::primitive::u32, - pub freeze: ::core::primitive::bool, + pub struct UpgradeAccounts { + pub who: ::std::vec::Vec<::subxt::utils::AccountId32>, } - impl ::subxt::blocks::StaticExtrinsic for ForceTransfer { - const PALLET: &'static str = "Indices"; - const CALL: &'static str = "force_transfer"; + impl ::subxt::blocks::StaticExtrinsic for UpgradeAccounts { + const PALLET: &'static str = "Balances"; + const CALL: &'static str = "upgrade_accounts"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -6147,107 +5852,147 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Freeze { - pub index: ::core::primitive::u32, + pub struct ForceSetBalance { + pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + #[codec(compact)] + pub new_free: ::core::primitive::u128, } - impl ::subxt::blocks::StaticExtrinsic for Freeze { - const PALLET: &'static str = "Indices"; - const CALL: &'static str = "freeze"; + impl ::subxt::blocks::StaticExtrinsic for ForceSetBalance { + const PALLET: &'static str = "Balances"; + const CALL: &'static str = "force_set_balance"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::claim`]."] - pub fn claim( + #[doc = "See [`Pallet::transfer_allow_death`]."] + pub fn transfer_allow_death( &self, - index: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + dest: alias_types::transfer_allow_death::Dest, + value: alias_types::transfer_allow_death::Value, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Indices", - "claim", - types::Claim { index }, + "Balances", + "transfer_allow_death", + types::TransferAllowDeath { dest, value }, [ - 146u8, 58u8, 246u8, 135u8, 59u8, 90u8, 3u8, 5u8, 140u8, 169u8, 232u8, - 195u8, 11u8, 107u8, 36u8, 141u8, 118u8, 174u8, 160u8, 160u8, 19u8, - 205u8, 177u8, 193u8, 18u8, 102u8, 115u8, 31u8, 72u8, 29u8, 91u8, 235u8, + 51u8, 166u8, 195u8, 10u8, 139u8, 218u8, 55u8, 130u8, 6u8, 194u8, 35u8, + 140u8, 27u8, 205u8, 214u8, 222u8, 102u8, 43u8, 143u8, 145u8, 86u8, + 219u8, 210u8, 147u8, 13u8, 39u8, 51u8, 21u8, 237u8, 179u8, 132u8, + 130u8, ], ) } - #[doc = "See [`Pallet::transfer`]."] - pub fn transfer( + #[doc = "See [`Pallet::force_transfer`]."] + pub fn force_transfer( &self, - new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - index: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + source: alias_types::force_transfer::Source, + dest: alias_types::force_transfer::Dest, + value: alias_types::force_transfer::Value, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Indices", - "transfer", - types::Transfer { new, index }, + "Balances", + "force_transfer", + types::ForceTransfer { + source, + dest, + value, + }, [ - 121u8, 156u8, 174u8, 248u8, 72u8, 126u8, 99u8, 188u8, 71u8, 134u8, - 107u8, 147u8, 139u8, 139u8, 57u8, 198u8, 17u8, 241u8, 142u8, 64u8, - 16u8, 121u8, 249u8, 146u8, 24u8, 86u8, 78u8, 187u8, 38u8, 146u8, 96u8, - 218u8, + 154u8, 93u8, 222u8, 27u8, 12u8, 248u8, 63u8, 213u8, 224u8, 86u8, 250u8, + 153u8, 249u8, 102u8, 83u8, 160u8, 79u8, 125u8, 105u8, 222u8, 77u8, + 180u8, 90u8, 105u8, 81u8, 217u8, 60u8, 25u8, 213u8, 51u8, 185u8, 96u8, ], ) } - #[doc = "See [`Pallet::free`]."] - pub fn free( + #[doc = "See [`Pallet::transfer_keep_alive`]."] + pub fn transfer_keep_alive( &self, - index: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + dest: alias_types::transfer_keep_alive::Dest, + value: alias_types::transfer_keep_alive::Value, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Indices", - "free", - types::Free { index }, + "Balances", + "transfer_keep_alive", + types::TransferKeepAlive { dest, value }, [ - 241u8, 211u8, 234u8, 102u8, 189u8, 22u8, 209u8, 27u8, 8u8, 229u8, 80u8, - 227u8, 138u8, 252u8, 222u8, 111u8, 77u8, 201u8, 235u8, 51u8, 163u8, - 247u8, 13u8, 126u8, 216u8, 136u8, 57u8, 222u8, 56u8, 66u8, 215u8, - 244u8, + 245u8, 14u8, 190u8, 193u8, 32u8, 210u8, 74u8, 92u8, 25u8, 182u8, 76u8, + 55u8, 247u8, 83u8, 114u8, 75u8, 143u8, 236u8, 117u8, 25u8, 54u8, 157u8, + 208u8, 207u8, 233u8, 89u8, 70u8, 161u8, 235u8, 242u8, 222u8, 59u8, ], ) } - #[doc = "See [`Pallet::force_transfer`]."] - pub fn force_transfer( + #[doc = "See [`Pallet::transfer_all`]."] + pub fn transfer_all( &self, - new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - index: ::core::primitive::u32, - freeze: ::core::primitive::bool, - ) -> ::subxt::tx::Payload { + dest: alias_types::transfer_all::Dest, + keep_alive: alias_types::transfer_all::KeepAlive, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Indices", - "force_transfer", - types::ForceTransfer { new, index, freeze }, + "Balances", + "transfer_all", + types::TransferAll { dest, keep_alive }, [ - 137u8, 128u8, 43u8, 135u8, 129u8, 169u8, 162u8, 136u8, 175u8, 31u8, - 161u8, 120u8, 15u8, 176u8, 203u8, 23u8, 107u8, 31u8, 135u8, 200u8, - 221u8, 186u8, 162u8, 229u8, 238u8, 82u8, 192u8, 122u8, 136u8, 6u8, - 176u8, 42u8, + 105u8, 132u8, 49u8, 144u8, 195u8, 250u8, 34u8, 46u8, 213u8, 248u8, + 112u8, 188u8, 81u8, 228u8, 136u8, 18u8, 67u8, 172u8, 37u8, 38u8, 238u8, + 9u8, 34u8, 15u8, 67u8, 34u8, 148u8, 195u8, 223u8, 29u8, 154u8, 6u8, ], ) } - #[doc = "See [`Pallet::freeze`]."] - pub fn freeze( + #[doc = "See [`Pallet::force_unreserve`]."] + pub fn force_unreserve( &self, - index: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + who: alias_types::force_unreserve::Who, + amount: alias_types::force_unreserve::Amount, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Indices", - "freeze", - types::Freeze { index }, + "Balances", + "force_unreserve", + types::ForceUnreserve { who, amount }, [ - 238u8, 215u8, 108u8, 156u8, 84u8, 240u8, 130u8, 229u8, 27u8, 132u8, - 93u8, 78u8, 2u8, 251u8, 43u8, 203u8, 2u8, 142u8, 147u8, 48u8, 92u8, - 101u8, 207u8, 24u8, 51u8, 16u8, 36u8, 229u8, 188u8, 129u8, 160u8, - 117u8, + 142u8, 151u8, 64u8, 205u8, 46u8, 64u8, 62u8, 122u8, 108u8, 49u8, 223u8, + 140u8, 120u8, 153u8, 35u8, 165u8, 187u8, 38u8, 157u8, 200u8, 123u8, + 199u8, 198u8, 168u8, 208u8, 159u8, 39u8, 134u8, 92u8, 103u8, 84u8, + 171u8, + ], + ) + } + #[doc = "See [`Pallet::upgrade_accounts`]."] + pub fn upgrade_accounts( + &self, + who: alias_types::upgrade_accounts::Who, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Balances", + "upgrade_accounts", + types::UpgradeAccounts { who }, + [ + 66u8, 200u8, 179u8, 104u8, 65u8, 2u8, 101u8, 56u8, 130u8, 161u8, 224u8, + 233u8, 255u8, 124u8, 70u8, 122u8, 8u8, 49u8, 103u8, 178u8, 68u8, 47u8, + 214u8, 166u8, 217u8, 116u8, 178u8, 50u8, 212u8, 164u8, 98u8, 226u8, + ], + ) + } + #[doc = "See [`Pallet::force_set_balance`]."] + pub fn force_set_balance( + &self, + who: alias_types::force_set_balance::Who, + new_free: alias_types::force_set_balance::NewFree, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Balances", + "force_set_balance", + types::ForceSetBalance { who, new_free }, + [ + 114u8, 229u8, 59u8, 204u8, 180u8, 83u8, 17u8, 4u8, 59u8, 4u8, 55u8, + 39u8, 151u8, 196u8, 124u8, 60u8, 209u8, 65u8, 193u8, 11u8, 44u8, 164u8, + 116u8, 93u8, 169u8, 30u8, 199u8, 165u8, 55u8, 231u8, 223u8, 43u8, ], ) } } } #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_indices::pallet::Event; + pub type Event = runtime_types::pallet_balances::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -6260,17 +6005,16 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A account index was assigned."] - pub struct IndexAssigned { - pub who: ::subxt::utils::AccountId32, - pub index: ::core::primitive::u32, + #[doc = "An account was created with some free balance."] + pub struct Endowed { + pub account: ::subxt::utils::AccountId32, + pub free_balance: ::core::primitive::u128, } - impl ::subxt::events::StaticEvent for IndexAssigned { - const PALLET: &'static str = "Indices"; - const EVENT: &'static str = "IndexAssigned"; + impl ::subxt::events::StaticEvent for Endowed { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Endowed"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -6280,13 +6024,15 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A account index has been freed up (unassigned)."] - pub struct IndexFreed { - pub index: ::core::primitive::u32, + #[doc = "An account was removed whose balance was non-zero but below ExistentialDeposit,"] + #[doc = "resulting in an outright loss."] + pub struct DustLost { + pub account: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, } - impl ::subxt::events::StaticEvent for IndexFreed { - const PALLET: &'static str = "Indices"; - const EVENT: &'static str = "IndexFreed"; + impl ::subxt::events::StaticEvent for DustLost { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "DustLost"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6298,507 +6044,11 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A account index has been frozen to its current account ID."] - pub struct IndexFrozen { - pub index: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for IndexFrozen { - const PALLET: &'static str = "Indices"; - const EVENT: &'static str = "IndexFrozen"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The lookup from index to account."] - pub fn accounts_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ( - ::subxt::utils::AccountId32, - ::core::primitive::u128, - ::core::primitive::bool, - ), - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Indices", - "Accounts", - vec![], - [ - 48u8, 189u8, 43u8, 119u8, 32u8, 168u8, 28u8, 12u8, 245u8, 81u8, 119u8, - 182u8, 23u8, 201u8, 33u8, 147u8, 128u8, 171u8, 155u8, 134u8, 71u8, - 87u8, 100u8, 248u8, 107u8, 129u8, 36u8, 197u8, 220u8, 90u8, 11u8, - 238u8, - ], - ) - } - #[doc = " The lookup from index to account."] - pub fn accounts( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ( - ::subxt::utils::AccountId32, - ::core::primitive::u128, - ::core::primitive::bool, - ), - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Indices", - "Accounts", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 48u8, 189u8, 43u8, 119u8, 32u8, 168u8, 28u8, 12u8, 245u8, 81u8, 119u8, - 182u8, 23u8, 201u8, 33u8, 147u8, 128u8, 171u8, 155u8, 134u8, 71u8, - 87u8, 100u8, 248u8, 107u8, 129u8, 36u8, 197u8, 220u8, 90u8, 11u8, - 238u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The deposit needed for reserving an index."] - pub fn deposit(&self) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "Indices", - "Deposit", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ], - ) - } - } - } - } - pub mod balances { - use super::root_mod; - use super::runtime_types; - #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_balances::pallet::Error; - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::pallet_balances::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct TransferAllowDeath { - pub dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - #[codec(compact)] - pub value: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for TransferAllowDeath { - const PALLET: &'static str = "Balances"; - const CALL: &'static str = "transfer_allow_death"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SetBalanceDeprecated { - pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - #[codec(compact)] - pub new_free: ::core::primitive::u128, - #[codec(compact)] - pub old_reserved: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for SetBalanceDeprecated { - const PALLET: &'static str = "Balances"; - const CALL: &'static str = "set_balance_deprecated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ForceTransfer { - pub source: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - #[codec(compact)] - pub value: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for ForceTransfer { - const PALLET: &'static str = "Balances"; - const CALL: &'static str = "force_transfer"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct TransferKeepAlive { - pub dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - #[codec(compact)] - pub value: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for TransferKeepAlive { - const PALLET: &'static str = "Balances"; - const CALL: &'static str = "transfer_keep_alive"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct TransferAll { - pub dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub keep_alive: ::core::primitive::bool, - } - impl ::subxt::blocks::StaticExtrinsic for TransferAll { - const PALLET: &'static str = "Balances"; - const CALL: &'static str = "transfer_all"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ForceUnreserve { - pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub amount: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for ForceUnreserve { - const PALLET: &'static str = "Balances"; - const CALL: &'static str = "force_unreserve"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct UpgradeAccounts { - pub who: ::std::vec::Vec<::subxt::utils::AccountId32>, - } - impl ::subxt::blocks::StaticExtrinsic for UpgradeAccounts { - const PALLET: &'static str = "Balances"; - const CALL: &'static str = "upgrade_accounts"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Transfer { - pub dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - #[codec(compact)] - pub value: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for Transfer { - const PALLET: &'static str = "Balances"; - const CALL: &'static str = "transfer"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ForceSetBalance { - pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - #[codec(compact)] - pub new_free: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for ForceSetBalance { - const PALLET: &'static str = "Balances"; - const CALL: &'static str = "force_set_balance"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::transfer_allow_death`]."] - pub fn transfer_allow_death( - &self, - dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - value: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Balances", - "transfer_allow_death", - types::TransferAllowDeath { dest, value }, - [ - 51u8, 166u8, 195u8, 10u8, 139u8, 218u8, 55u8, 130u8, 6u8, 194u8, 35u8, - 140u8, 27u8, 205u8, 214u8, 222u8, 102u8, 43u8, 143u8, 145u8, 86u8, - 219u8, 210u8, 147u8, 13u8, 39u8, 51u8, 21u8, 237u8, 179u8, 132u8, - 130u8, - ], - ) - } - #[doc = "See [`Pallet::set_balance_deprecated`]."] - pub fn set_balance_deprecated( - &self, - who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - new_free: ::core::primitive::u128, - old_reserved: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Balances", - "set_balance_deprecated", - types::SetBalanceDeprecated { - who, - new_free, - old_reserved, - }, - [ - 125u8, 171u8, 21u8, 186u8, 108u8, 185u8, 241u8, 145u8, 125u8, 8u8, - 12u8, 42u8, 96u8, 114u8, 80u8, 80u8, 227u8, 76u8, 20u8, 208u8, 93u8, - 219u8, 36u8, 50u8, 209u8, 155u8, 70u8, 45u8, 6u8, 57u8, 156u8, 77u8, - ], - ) - } - #[doc = "See [`Pallet::force_transfer`]."] - pub fn force_transfer( - &self, - source: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - value: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Balances", - "force_transfer", - types::ForceTransfer { - source, - dest, - value, - }, - [ - 154u8, 93u8, 222u8, 27u8, 12u8, 248u8, 63u8, 213u8, 224u8, 86u8, 250u8, - 153u8, 249u8, 102u8, 83u8, 160u8, 79u8, 125u8, 105u8, 222u8, 77u8, - 180u8, 90u8, 105u8, 81u8, 217u8, 60u8, 25u8, 213u8, 51u8, 185u8, 96u8, - ], - ) - } - #[doc = "See [`Pallet::transfer_keep_alive`]."] - pub fn transfer_keep_alive( - &self, - dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - value: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Balances", - "transfer_keep_alive", - types::TransferKeepAlive { dest, value }, - [ - 245u8, 14u8, 190u8, 193u8, 32u8, 210u8, 74u8, 92u8, 25u8, 182u8, 76u8, - 55u8, 247u8, 83u8, 114u8, 75u8, 143u8, 236u8, 117u8, 25u8, 54u8, 157u8, - 208u8, 207u8, 233u8, 89u8, 70u8, 161u8, 235u8, 242u8, 222u8, 59u8, - ], - ) - } - #[doc = "See [`Pallet::transfer_all`]."] - pub fn transfer_all( - &self, - dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - keep_alive: ::core::primitive::bool, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Balances", - "transfer_all", - types::TransferAll { dest, keep_alive }, - [ - 105u8, 132u8, 49u8, 144u8, 195u8, 250u8, 34u8, 46u8, 213u8, 248u8, - 112u8, 188u8, 81u8, 228u8, 136u8, 18u8, 67u8, 172u8, 37u8, 38u8, 238u8, - 9u8, 34u8, 15u8, 67u8, 34u8, 148u8, 195u8, 223u8, 29u8, 154u8, 6u8, - ], - ) - } - #[doc = "See [`Pallet::force_unreserve`]."] - pub fn force_unreserve( - &self, - who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - amount: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Balances", - "force_unreserve", - types::ForceUnreserve { who, amount }, - [ - 142u8, 151u8, 64u8, 205u8, 46u8, 64u8, 62u8, 122u8, 108u8, 49u8, 223u8, - 140u8, 120u8, 153u8, 35u8, 165u8, 187u8, 38u8, 157u8, 200u8, 123u8, - 199u8, 198u8, 168u8, 208u8, 159u8, 39u8, 134u8, 92u8, 103u8, 84u8, - 171u8, - ], - ) - } - #[doc = "See [`Pallet::upgrade_accounts`]."] - pub fn upgrade_accounts( - &self, - who: ::std::vec::Vec<::subxt::utils::AccountId32>, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Balances", - "upgrade_accounts", - types::UpgradeAccounts { who }, - [ - 66u8, 200u8, 179u8, 104u8, 65u8, 2u8, 101u8, 56u8, 130u8, 161u8, 224u8, - 233u8, 255u8, 124u8, 70u8, 122u8, 8u8, 49u8, 103u8, 178u8, 68u8, 47u8, - 214u8, 166u8, 217u8, 116u8, 178u8, 50u8, 212u8, 164u8, 98u8, 226u8, - ], - ) - } - #[doc = "See [`Pallet::transfer`]."] - pub fn transfer( - &self, - dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - value: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Balances", - "transfer", - types::Transfer { dest, value }, - [ - 154u8, 145u8, 140u8, 54u8, 50u8, 123u8, 225u8, 249u8, 200u8, 217u8, - 172u8, 110u8, 233u8, 198u8, 77u8, 198u8, 211u8, 89u8, 8u8, 13u8, 240u8, - 94u8, 28u8, 13u8, 242u8, 217u8, 168u8, 23u8, 106u8, 254u8, 249u8, - 120u8, - ], - ) - } - #[doc = "See [`Pallet::force_set_balance`]."] - pub fn force_set_balance( - &self, - who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - new_free: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Balances", - "force_set_balance", - types::ForceSetBalance { who, new_free }, - [ - 114u8, 229u8, 59u8, 204u8, 180u8, 83u8, 17u8, 4u8, 59u8, 4u8, 55u8, - 39u8, 151u8, 196u8, 124u8, 60u8, 209u8, 65u8, 193u8, 11u8, 44u8, 164u8, - 116u8, 93u8, 169u8, 30u8, 199u8, 165u8, 55u8, 231u8, 223u8, 43u8, - ], - ) - } - } - } - #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_balances::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An account was created with some free balance."] - pub struct Endowed { - pub account: ::subxt::utils::AccountId32, - pub free_balance: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Endowed { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "Endowed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An account was removed whose balance was non-zero but below ExistentialDeposit,"] - #[doc = "resulting in an outright loss."] - pub struct DustLost { - pub account: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for DustLost { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "DustLost"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Transfer succeeded."] - pub struct Transfer { - pub from: ::subxt::utils::AccountId32, - pub to: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, + #[doc = "Transfer succeeded."] + pub struct Transfer { + pub from: ::subxt::utils::AccountId32, + pub to: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Transfer { const PALLET: &'static str = "Balances"; @@ -7152,6 +6402,58 @@ pub mod api { } pub mod storage { use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod total_issuance { + use super::runtime_types; + pub type TotalIssuance = ::core::primitive::u128; + } + pub mod inactive_issuance { + use super::runtime_types; + pub type InactiveIssuance = ::core::primitive::u128; + } + pub mod account { + use super::runtime_types; + pub type Account = + runtime_types::pallet_balances::types::AccountData<::core::primitive::u128>; + } + pub mod locks { + use super::runtime_types; + pub type Locks = + runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec< + runtime_types::pallet_balances::types::BalanceLock< + ::core::primitive::u128, + >, + >; + } + pub mod reserves { + use super::runtime_types; + pub type Reserves = runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_balances::types::ReserveData< + [::core::primitive::u8; 8usize], + ::core::primitive::u128, + >, + >; + } + pub mod holds { + use super::runtime_types; + pub type Holds = runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_balances::types::IdAmount< + runtime_types::rococo_runtime::RuntimeHoldReason, + ::core::primitive::u128, + >, + >; + } + pub mod freezes { + use super::runtime_types; + pub type Freezes = runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_balances::types::IdAmount< + (), + ::core::primitive::u128, + >, + >; + } + } pub struct StorageApi; impl StorageApi { #[doc = " The total units issued in the system."] @@ -7159,7 +6461,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, + alias_types::total_issuance::TotalIssuance, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -7181,7 +6483,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, + alias_types::inactive_issuance::InactiveIssuance, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -7225,7 +6527,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_balances::types::AccountData<::core::primitive::u128>, + alias_types::account::Account, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -7270,7 +6572,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_balances::types::AccountData<::core::primitive::u128>, + alias_types::account::Account, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -7294,9 +6596,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec< - runtime_types::pallet_balances::types::BalanceLock<::core::primitive::u128>, - >, + alias_types::locks::Locks, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -7319,9 +6619,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec< - runtime_types::pallet_balances::types::BalanceLock<::core::primitive::u128>, - >, + alias_types::locks::Locks, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -7344,12 +6642,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - runtime_types::pallet_balances::types::ReserveData< - [::core::primitive::u8; 8usize], - ::core::primitive::u128, - >, - >, + alias_types::reserves::Reserves, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -7371,12 +6664,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - runtime_types::pallet_balances::types::ReserveData< - [::core::primitive::u8; 8usize], - ::core::primitive::u128, - >, - >, + alias_types::reserves::Reserves, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -7399,12 +6687,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - runtime_types::pallet_balances::types::IdAmount< - runtime_types::polkadot_runtime::RuntimeHoldReason, - ::core::primitive::u128, - >, - >, + alias_types::holds::Holds, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -7414,9 +6697,10 @@ pub mod api { "Holds", vec![], [ - 37u8, 176u8, 2u8, 18u8, 109u8, 26u8, 66u8, 81u8, 28u8, 104u8, 149u8, - 117u8, 119u8, 114u8, 196u8, 35u8, 172u8, 155u8, 66u8, 195u8, 98u8, - 37u8, 134u8, 22u8, 106u8, 221u8, 215u8, 97u8, 25u8, 28u8, 21u8, 206u8, + 72u8, 161u8, 107u8, 123u8, 240u8, 3u8, 198u8, 75u8, 46u8, 131u8, 122u8, + 141u8, 253u8, 141u8, 232u8, 192u8, 146u8, 54u8, 174u8, 162u8, 48u8, + 165u8, 226u8, 233u8, 12u8, 227u8, 23u8, 17u8, 237u8, 179u8, 193u8, + 166u8, ], ) } @@ -7426,12 +6710,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - runtime_types::pallet_balances::types::IdAmount< - runtime_types::polkadot_runtime::RuntimeHoldReason, - ::core::primitive::u128, - >, - >, + alias_types::holds::Holds, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -7443,9 +6722,10 @@ pub mod api { _0.borrow(), )], [ - 37u8, 176u8, 2u8, 18u8, 109u8, 26u8, 66u8, 81u8, 28u8, 104u8, 149u8, - 117u8, 119u8, 114u8, 196u8, 35u8, 172u8, 155u8, 66u8, 195u8, 98u8, - 37u8, 134u8, 22u8, 106u8, 221u8, 215u8, 97u8, 25u8, 28u8, 21u8, 206u8, + 72u8, 161u8, 107u8, 123u8, 240u8, 3u8, 198u8, 75u8, 46u8, 131u8, 122u8, + 141u8, 253u8, 141u8, 232u8, 192u8, 146u8, 54u8, 174u8, 162u8, 48u8, + 165u8, 226u8, 233u8, 12u8, 227u8, 23u8, 17u8, 237u8, 179u8, 193u8, + 166u8, ], ) } @@ -7454,12 +6734,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - runtime_types::pallet_balances::types::IdAmount< - (), - ::core::primitive::u128, - >, - >, + alias_types::freezes::Freezes, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -7481,12 +6756,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - runtime_types::pallet_balances::types::IdAmount< - (), - ::core::primitive::u128, - >, - >, + alias_types::freezes::Freezes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -7618,13 +6888,25 @@ pub mod api { } pub mod storage { use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod next_fee_multiplier { + use super::runtime_types; + pub type NextFeeMultiplier = + runtime_types::sp_arithmetic::fixed_point::FixedU128; + } + pub mod storage_version { + use super::runtime_types; + pub type StorageVersion = runtime_types::pallet_transaction_payment::Releases; + } + } pub struct StorageApi; impl StorageApi { pub fn next_fee_multiplier( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_arithmetic::fixed_point::FixedU128, + alias_types::next_fee_multiplier::NextFeeMultiplier, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -7645,7 +6927,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_transaction_payment::Releases, + alias_types::storage_version::StorageVersion, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -7668,10 +6950,10 @@ pub mod api { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - #[doc = " A fee mulitplier for `Operational` extrinsics to compute \"virtual tip\" to boost their"] + #[doc = " A fee multiplier for `Operational` extrinsics to compute \"virtual tip\" to boost their"] #[doc = " `priority`"] #[doc = ""] - #[doc = " This value is multipled by the `final_fee` to obtain a \"virtual tip\" that is later"] + #[doc = " This value is multiplied by the `final_fee` to obtain a \"virtual tip\" that is later"] #[doc = " added to a tip component in regular `priority` calculations."] #[doc = " It means that a `Normal` transaction can front-run a similarly-sized `Operational`"] #[doc = " extrinsic (with no tip), by including a tip value greater than the virtual tip."] @@ -7711,6 +6993,13 @@ pub mod api { use super::runtime_types; pub mod storage { use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod author { + use super::runtime_types; + pub type Author = ::subxt::utils::AccountId32; + } + } pub struct StorageApi; impl StorageApi { #[doc = " Author of current block."] @@ -7718,7 +7007,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::subxt::utils::AccountId32, + alias_types::author::Author, ::subxt::storage::address::Yes, (), (), @@ -7738,384 +7027,221 @@ pub mod api { } } } - pub mod staking { + pub mod offences { use super::root_mod; use super::runtime_types; - #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_staking::pallet::pallet::Error; - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::pallet_staking::pallet::pallet::Call; - pub mod calls { - use super::root_mod; + #[doc = "Events type."] + pub type Event = runtime_types::pallet_offences::pallet::Event; + pub mod events { use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "There is an offence reported of the given `kind` happened at the `session_index` and"] + #[doc = "(kind-specific) time slot. This event is not deposited for duplicate slashes."] + #[doc = "\\[kind, timeslot\\]."] + pub struct Offence { + pub kind: [::core::primitive::u8; 16usize], + pub timeslot: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::events::StaticEvent for Offence { + const PALLET: &'static str = "Offences"; + const EVENT: &'static str = "Offence"; + } + } + pub mod storage { + use super::runtime_types; + pub mod alias_types { use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Bond { - #[codec(compact)] - pub value: ::core::primitive::u128, - pub payee: runtime_types::pallet_staking::RewardDestination< - ::subxt::utils::AccountId32, - >, - } - impl ::subxt::blocks::StaticExtrinsic for Bond { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "bond"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct BondExtra { - #[codec(compact)] - pub max_additional: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for BondExtra { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "bond_extra"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Unbond { - #[codec(compact)] - pub value: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for Unbond { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "unbond"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct WithdrawUnbonded { - pub num_slashing_spans: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for WithdrawUnbonded { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "withdraw_unbonded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Validate { - pub prefs: runtime_types::pallet_staking::ValidatorPrefs, - } - impl ::subxt::blocks::StaticExtrinsic for Validate { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "validate"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Nominate { - pub targets: ::std::vec::Vec< - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - >, - } - impl ::subxt::blocks::StaticExtrinsic for Nominate { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "nominate"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Chill; - impl ::subxt::blocks::StaticExtrinsic for Chill { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "chill"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SetPayee { - pub payee: runtime_types::pallet_staking::RewardDestination< + pub mod reports { + use super::runtime_types; + pub type Reports = runtime_types::sp_staking::offence::OffenceDetails< ::subxt::utils::AccountId32, - >, - } - impl ::subxt::blocks::StaticExtrinsic for SetPayee { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "set_payee"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SetController; - impl ::subxt::blocks::StaticExtrinsic for SetController { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "set_controller"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SetValidatorCount { - #[codec(compact)] - pub new: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for SetValidatorCount { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "set_validator_count"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct IncreaseValidatorCount { - #[codec(compact)] - pub additional: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for IncreaseValidatorCount { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "increase_validator_count"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ScaleValidatorCount { - pub factor: runtime_types::sp_arithmetic::per_things::Percent, - } - impl ::subxt::blocks::StaticExtrinsic for ScaleValidatorCount { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "scale_validator_count"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ForceNoEras; - impl ::subxt::blocks::StaticExtrinsic for ForceNoEras { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "force_no_eras"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ForceNewEra; - impl ::subxt::blocks::StaticExtrinsic for ForceNewEra { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "force_new_era"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SetInvulnerables { - pub invulnerables: ::std::vec::Vec<::subxt::utils::AccountId32>, + (::subxt::utils::AccountId32, ()), + >; } - impl ::subxt::blocks::StaticExtrinsic for SetInvulnerables { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "set_invulnerables"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ForceUnstake { - pub stash: ::subxt::utils::AccountId32, - pub num_slashing_spans: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for ForceUnstake { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "force_unstake"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ForceNewEraAlways; - impl ::subxt::blocks::StaticExtrinsic for ForceNewEraAlways { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "force_new_era_always"; + pub mod concurrent_reports_index { + use super::runtime_types; + pub type ConcurrentReportsIndex = ::std::vec::Vec<::subxt::utils::H256>; } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct CancelDeferredSlash { - pub era: ::core::primitive::u32, - pub slash_indices: ::std::vec::Vec<::core::primitive::u32>, + } + pub struct StorageApi; + impl StorageApi { + #[doc = " The primary structure that holds all offence records keyed by report identifiers."] + pub fn reports_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::reports::Reports, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Offences", + "Reports", + vec![], + [ + 255u8, 234u8, 162u8, 48u8, 243u8, 210u8, 198u8, 231u8, 218u8, 142u8, + 167u8, 10u8, 232u8, 223u8, 239u8, 55u8, 74u8, 23u8, 14u8, 236u8, 88u8, + 231u8, 152u8, 55u8, 91u8, 120u8, 11u8, 96u8, 100u8, 113u8, 131u8, + 173u8, + ], + ) } - impl ::subxt::blocks::StaticExtrinsic for CancelDeferredSlash { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "cancel_deferred_slash"; + #[doc = " The primary structure that holds all offence records keyed by report identifiers."] + pub fn reports( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::reports::Reports, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Offences", + "Reports", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 255u8, 234u8, 162u8, 48u8, 243u8, 210u8, 198u8, 231u8, 218u8, 142u8, + 167u8, 10u8, 232u8, 223u8, 239u8, 55u8, 74u8, 23u8, 14u8, 236u8, 88u8, + 231u8, 152u8, 55u8, 91u8, 120u8, 11u8, 96u8, 100u8, 113u8, 131u8, + 173u8, + ], + ) } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct PayoutStakers { - pub validator_stash: ::subxt::utils::AccountId32, - pub era: ::core::primitive::u32, + #[doc = " A vector of reports of the same kind that happened at the same time slot."] + pub fn concurrent_reports_index_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::concurrent_reports_index::ConcurrentReportsIndex, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Offences", + "ConcurrentReportsIndex", + vec![], + [ + 170u8, 186u8, 72u8, 29u8, 251u8, 38u8, 193u8, 195u8, 109u8, 86u8, 0u8, + 241u8, 20u8, 235u8, 108u8, 126u8, 215u8, 82u8, 73u8, 113u8, 199u8, + 138u8, 24u8, 58u8, 216u8, 72u8, 221u8, 232u8, 252u8, 244u8, 96u8, + 247u8, + ], + ) } - impl ::subxt::blocks::StaticExtrinsic for PayoutStakers { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "payout_stakers"; + #[doc = " A vector of reports of the same kind that happened at the same time slot."] + pub fn concurrent_reports_index_iter1( + &self, + _0: impl ::std::borrow::Borrow<[::core::primitive::u8; 16usize]>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::concurrent_reports_index::ConcurrentReportsIndex, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Offences", + "ConcurrentReportsIndex", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 170u8, 186u8, 72u8, 29u8, 251u8, 38u8, 193u8, 195u8, 109u8, 86u8, 0u8, + 241u8, 20u8, 235u8, 108u8, 126u8, 215u8, 82u8, 73u8, 113u8, 199u8, + 138u8, 24u8, 58u8, 216u8, 72u8, 221u8, 232u8, 252u8, 244u8, 96u8, + 247u8, + ], + ) } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Rebond { - #[codec(compact)] - pub value: ::core::primitive::u128, + #[doc = " A vector of reports of the same kind that happened at the same time slot."] + pub fn concurrent_reports_index( + &self, + _0: impl ::std::borrow::Borrow<[::core::primitive::u8; 16usize]>, + _1: impl ::std::borrow::Borrow<[::core::primitive::u8]>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::concurrent_reports_index::ConcurrentReportsIndex, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Offences", + "ConcurrentReportsIndex", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 170u8, 186u8, 72u8, 29u8, 251u8, 38u8, 193u8, 195u8, 109u8, 86u8, 0u8, + 241u8, 20u8, 235u8, 108u8, 126u8, 215u8, 82u8, 73u8, 113u8, 199u8, + 138u8, 24u8, 58u8, 216u8, 72u8, 221u8, 232u8, 252u8, 244u8, 96u8, + 247u8, + ], + ) } - impl ::subxt::blocks::StaticExtrinsic for Rebond { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "rebond"; + } + } + } + pub mod historical { + use super::root_mod; + use super::runtime_types; + } + pub mod beefy { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Error` enum of this pallet."] + pub type Error = runtime_types::pallet_beefy::pallet::Error; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::pallet_beefy::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod alias_types { + use super::runtime_types; + pub mod report_equivocation { + use super::runtime_types; + pub type EquivocationProof = + runtime_types::sp_consensus_beefy::EquivocationProof< + ::core::primitive::u32, + runtime_types::sp_consensus_beefy::ecdsa_crypto::Public, + runtime_types::sp_consensus_beefy::ecdsa_crypto::Signature, + >; + pub type KeyOwnerProof = runtime_types::sp_session::MembershipProof; } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ReapStash { - pub stash: ::subxt::utils::AccountId32, - pub num_slashing_spans: ::core::primitive::u32, + pub mod report_equivocation_unsigned { + use super::runtime_types; + pub type EquivocationProof = + runtime_types::sp_consensus_beefy::EquivocationProof< + ::core::primitive::u32, + runtime_types::sp_consensus_beefy::ecdsa_crypto::Public, + runtime_types::sp_consensus_beefy::ecdsa_crypto::Signature, + >; + pub type KeyOwnerProof = runtime_types::sp_session::MembershipProof; } - impl ::subxt::blocks::StaticExtrinsic for ReapStash { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "reap_stash"; + pub mod set_new_genesis { + use super::runtime_types; + pub type DelayInBlocks = ::core::primitive::u32; } + } + pub mod types { + use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -8126,14 +7252,19 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Kick { - pub who: ::std::vec::Vec< - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub struct ReportEquivocation { + pub equivocation_proof: ::std::boxed::Box< + runtime_types::sp_consensus_beefy::EquivocationProof< + ::core::primitive::u32, + runtime_types::sp_consensus_beefy::ecdsa_crypto::Public, + runtime_types::sp_consensus_beefy::ecdsa_crypto::Signature, + >, >, + pub key_owner_proof: runtime_types::sp_session::MembershipProof, } - impl ::subxt::blocks::StaticExtrinsic for Kick { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "kick"; + impl ::subxt::blocks::StaticExtrinsic for ReportEquivocation { + const PALLET: &'static str = "Beefy"; + const CALL: &'static str = "report_equivocation"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -8145,67 +7276,22 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - 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< + pub struct ReportEquivocationUnsigned { + pub equivocation_proof: ::std::boxed::Box< + runtime_types::sp_consensus_beefy::EquivocationProof< ::core::primitive::u32, + runtime_types::sp_consensus_beefy::ecdsa_crypto::Public, + runtime_types::sp_consensus_beefy::ecdsa_crypto::Signature, >, - 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, >, + pub key_owner_proof: runtime_types::sp_session::MembershipProof, } - impl ::subxt::blocks::StaticExtrinsic for SetStakingConfigs { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "set_staking_configs"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ChillOther { - pub controller: ::subxt::utils::AccountId32, - } - impl ::subxt::blocks::StaticExtrinsic for ChillOther { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "chill_other"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ForceApplyMinCommission { - pub validator_stash: ::subxt::utils::AccountId32, - } - impl ::subxt::blocks::StaticExtrinsic for ForceApplyMinCommission { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "force_apply_min_commission"; + impl ::subxt::blocks::StaticExtrinsic for ReportEquivocationUnsigned { + const PALLET: &'static str = "Beefy"; + const CALL: &'static str = "report_equivocation_unsigned"; } #[derive( + :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -8215,2488 +7301,2170 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SetMinCommission { - pub new: runtime_types::sp_arithmetic::per_things::Perbill, + pub struct SetNewGenesis { + pub delay_in_blocks: ::core::primitive::u32, } - impl ::subxt::blocks::StaticExtrinsic for SetMinCommission { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "set_min_commission"; + impl ::subxt::blocks::StaticExtrinsic for SetNewGenesis { + const PALLET: &'static str = "Beefy"; + const CALL: &'static str = "set_new_genesis"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::bond`]."] - pub fn bond( - &self, - value: ::core::primitive::u128, - payee: runtime_types::pallet_staking::RewardDestination< - ::subxt::utils::AccountId32, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "bond", - types::Bond { value, payee }, - [ - 45u8, 207u8, 34u8, 221u8, 252u8, 224u8, 162u8, 185u8, 67u8, 224u8, - 88u8, 91u8, 232u8, 114u8, 183u8, 44u8, 39u8, 5u8, 12u8, 163u8, 57u8, - 31u8, 251u8, 58u8, 37u8, 232u8, 206u8, 75u8, 164u8, 26u8, 170u8, 101u8, - ], - ) - } - #[doc = "See [`Pallet::bond_extra`]."] - pub fn bond_extra( + #[doc = "See [`Pallet::report_equivocation`]."] + pub fn report_equivocation( &self, - max_additional: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { + equivocation_proof: alias_types::report_equivocation::EquivocationProof, + key_owner_proof: alias_types::report_equivocation::KeyOwnerProof, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Staking", - "bond_extra", - types::BondExtra { max_additional }, + "Beefy", + "report_equivocation", + types::ReportEquivocation { + equivocation_proof: ::std::boxed::Box::new(equivocation_proof), + key_owner_proof, + }, [ - 9u8, 143u8, 179u8, 99u8, 91u8, 254u8, 114u8, 189u8, 202u8, 245u8, 48u8, - 130u8, 103u8, 17u8, 183u8, 177u8, 172u8, 156u8, 227u8, 145u8, 191u8, - 134u8, 81u8, 3u8, 170u8, 85u8, 40u8, 56u8, 216u8, 95u8, 232u8, 52u8, + 156u8, 32u8, 92u8, 179u8, 165u8, 93u8, 216u8, 130u8, 121u8, 225u8, + 33u8, 141u8, 255u8, 12u8, 101u8, 136u8, 177u8, 25u8, 23u8, 239u8, 12u8, + 142u8, 88u8, 228u8, 85u8, 171u8, 218u8, 185u8, 146u8, 245u8, 149u8, + 85u8, ], ) } - #[doc = "See [`Pallet::unbond`]."] - pub fn unbond( + #[doc = "See [`Pallet::report_equivocation_unsigned`]."] + pub fn report_equivocation_unsigned( &self, - value: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { + equivocation_proof : alias_types :: report_equivocation_unsigned :: EquivocationProof, + key_owner_proof: alias_types::report_equivocation_unsigned::KeyOwnerProof, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Staking", - "unbond", - types::Unbond { value }, + "Beefy", + "report_equivocation_unsigned", + types::ReportEquivocationUnsigned { + equivocation_proof: ::std::boxed::Box::new(equivocation_proof), + key_owner_proof, + }, [ - 70u8, 201u8, 146u8, 56u8, 51u8, 237u8, 90u8, 193u8, 69u8, 42u8, 168u8, - 96u8, 215u8, 128u8, 253u8, 22u8, 239u8, 14u8, 214u8, 103u8, 170u8, - 140u8, 2u8, 182u8, 3u8, 190u8, 184u8, 191u8, 231u8, 137u8, 50u8, 16u8, + 126u8, 201u8, 236u8, 234u8, 107u8, 52u8, 37u8, 115u8, 228u8, 232u8, + 103u8, 193u8, 143u8, 224u8, 79u8, 192u8, 207u8, 204u8, 161u8, 103u8, + 210u8, 131u8, 64u8, 251u8, 48u8, 196u8, 249u8, 148u8, 2u8, 179u8, + 135u8, 121u8, ], ) } - #[doc = "See [`Pallet::withdraw_unbonded`]."] - pub fn withdraw_unbonded( + #[doc = "See [`Pallet::set_new_genesis`]."] + pub fn set_new_genesis( &self, - num_slashing_spans: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + delay_in_blocks: alias_types::set_new_genesis::DelayInBlocks, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Staking", - "withdraw_unbonded", - types::WithdrawUnbonded { num_slashing_spans }, + "Beefy", + "set_new_genesis", + types::SetNewGenesis { delay_in_blocks }, [ - 229u8, 128u8, 177u8, 224u8, 197u8, 118u8, 239u8, 142u8, 179u8, 164u8, - 10u8, 205u8, 124u8, 254u8, 209u8, 157u8, 172u8, 87u8, 58u8, 120u8, - 74u8, 12u8, 150u8, 117u8, 234u8, 32u8, 191u8, 182u8, 92u8, 97u8, 77u8, - 59u8, + 147u8, 6u8, 252u8, 43u8, 77u8, 91u8, 170u8, 45u8, 112u8, 155u8, 158u8, + 79u8, 1u8, 116u8, 162u8, 146u8, 181u8, 9u8, 171u8, 48u8, 198u8, 210u8, + 243u8, 64u8, 229u8, 35u8, 28u8, 177u8, 144u8, 22u8, 165u8, 163u8, ], ) } - #[doc = "See [`Pallet::validate`]."] - pub fn validate( - &self, - prefs: runtime_types::pallet_staking::ValidatorPrefs, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "validate", - types::Validate { prefs }, - [ - 63u8, 83u8, 12u8, 16u8, 56u8, 84u8, 41u8, 141u8, 202u8, 0u8, 37u8, - 30u8, 115u8, 2u8, 145u8, 101u8, 168u8, 89u8, 94u8, 98u8, 8u8, 45u8, - 140u8, 237u8, 101u8, 136u8, 179u8, 162u8, 205u8, 41u8, 88u8, 248u8, - ], - ) - } - #[doc = "See [`Pallet::nominate`]."] - pub fn nominate( - &self, - targets: ::std::vec::Vec< - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "nominate", - types::Nominate { targets }, - [ - 14u8, 209u8, 112u8, 222u8, 40u8, 211u8, 118u8, 188u8, 26u8, 88u8, - 135u8, 233u8, 36u8, 99u8, 68u8, 189u8, 184u8, 169u8, 146u8, 217u8, - 87u8, 198u8, 89u8, 32u8, 193u8, 135u8, 251u8, 88u8, 241u8, 151u8, - 205u8, 138u8, - ], - ) - } - #[doc = "See [`Pallet::chill`]."] - pub fn chill(&self) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "chill", - types::Chill {}, - [ - 157u8, 75u8, 243u8, 69u8, 110u8, 192u8, 22u8, 27u8, 107u8, 68u8, 236u8, - 58u8, 179u8, 34u8, 118u8, 98u8, 131u8, 62u8, 242u8, 84u8, 149u8, 24u8, - 83u8, 223u8, 78u8, 12u8, 192u8, 22u8, 111u8, 11u8, 171u8, 149u8, - ], - ) - } - #[doc = "See [`Pallet::set_payee`]."] - pub fn set_payee( - &self, - payee: runtime_types::pallet_staking::RewardDestination< - ::subxt::utils::AccountId32, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "set_payee", - types::SetPayee { payee }, - [ - 86u8, 172u8, 187u8, 98u8, 106u8, 240u8, 184u8, 60u8, 163u8, 244u8, 7u8, - 64u8, 147u8, 168u8, 192u8, 177u8, 211u8, 138u8, 73u8, 188u8, 159u8, - 154u8, 175u8, 219u8, 231u8, 235u8, 93u8, 195u8, 204u8, 100u8, 196u8, - 241u8, - ], - ) - } - #[doc = "See [`Pallet::set_controller`]."] - pub fn set_controller(&self) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "set_controller", - types::SetController {}, - [ - 172u8, 27u8, 195u8, 188u8, 145u8, 203u8, 190u8, 174u8, 145u8, 43u8, - 253u8, 87u8, 11u8, 229u8, 112u8, 18u8, 57u8, 101u8, 84u8, 235u8, 109u8, - 228u8, 58u8, 129u8, 179u8, 174u8, 245u8, 169u8, 89u8, 240u8, 39u8, - 67u8, - ], - ) - } - #[doc = "See [`Pallet::set_validator_count`]."] - pub fn set_validator_count( - &self, - new: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "set_validator_count", - types::SetValidatorCount { new }, - [ - 172u8, 225u8, 157u8, 48u8, 242u8, 217u8, 126u8, 206u8, 26u8, 156u8, - 203u8, 100u8, 116u8, 189u8, 98u8, 89u8, 151u8, 101u8, 77u8, 236u8, - 101u8, 8u8, 148u8, 236u8, 180u8, 175u8, 232u8, 146u8, 141u8, 141u8, - 78u8, 165u8, - ], - ) - } - #[doc = "See [`Pallet::increase_validator_count`]."] - pub fn increase_validator_count( - &self, - additional: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "increase_validator_count", - types::IncreaseValidatorCount { additional }, - [ - 108u8, 67u8, 131u8, 248u8, 139u8, 227u8, 224u8, 221u8, 248u8, 94u8, - 141u8, 104u8, 131u8, 250u8, 127u8, 164u8, 137u8, 211u8, 5u8, 27u8, - 185u8, 251u8, 120u8, 243u8, 165u8, 50u8, 197u8, 161u8, 125u8, 195u8, - 16u8, 29u8, - ], - ) - } - #[doc = "See [`Pallet::scale_validator_count`]."] - pub fn scale_validator_count( - &self, - factor: runtime_types::sp_arithmetic::per_things::Percent, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "scale_validator_count", - types::ScaleValidatorCount { factor }, - [ - 93u8, 200u8, 119u8, 240u8, 148u8, 144u8, 175u8, 135u8, 102u8, 130u8, - 183u8, 216u8, 28u8, 215u8, 155u8, 233u8, 152u8, 65u8, 49u8, 125u8, - 196u8, 79u8, 31u8, 195u8, 233u8, 79u8, 150u8, 138u8, 103u8, 161u8, - 78u8, 154u8, - ], - ) - } - #[doc = "See [`Pallet::force_no_eras`]."] - pub fn force_no_eras(&self) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "force_no_eras", - types::ForceNoEras {}, - [ - 77u8, 5u8, 105u8, 167u8, 251u8, 78u8, 52u8, 80u8, 177u8, 226u8, 28u8, - 130u8, 106u8, 62u8, 40u8, 210u8, 110u8, 62u8, 21u8, 113u8, 234u8, - 227u8, 171u8, 205u8, 240u8, 46u8, 32u8, 84u8, 184u8, 208u8, 61u8, - 207u8, - ], - ) - } - #[doc = "See [`Pallet::force_new_era`]."] - pub fn force_new_era(&self) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "force_new_era", - types::ForceNewEra {}, - [ - 119u8, 45u8, 11u8, 87u8, 236u8, 189u8, 41u8, 142u8, 130u8, 10u8, 132u8, - 140u8, 210u8, 134u8, 66u8, 152u8, 149u8, 55u8, 60u8, 31u8, 190u8, 41u8, - 177u8, 103u8, 245u8, 193u8, 95u8, 255u8, 29u8, 79u8, 112u8, 188u8, - ], - ) - } - #[doc = "See [`Pallet::set_invulnerables`]."] - pub fn set_invulnerables( - &self, - invulnerables: ::std::vec::Vec<::subxt::utils::AccountId32>, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "set_invulnerables", - types::SetInvulnerables { invulnerables }, - [ - 31u8, 115u8, 221u8, 229u8, 187u8, 61u8, 33u8, 22u8, 126u8, 142u8, - 248u8, 190u8, 213u8, 35u8, 49u8, 208u8, 193u8, 0u8, 58u8, 18u8, 136u8, - 220u8, 32u8, 8u8, 121u8, 36u8, 184u8, 57u8, 6u8, 125u8, 199u8, 245u8, - ], - ) - } - #[doc = "See [`Pallet::force_unstake`]."] - pub fn force_unstake( - &self, - stash: ::subxt::utils::AccountId32, - num_slashing_spans: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "force_unstake", - types::ForceUnstake { - stash, - num_slashing_spans, - }, - [ - 205u8, 115u8, 222u8, 58u8, 168u8, 3u8, 59u8, 58u8, 220u8, 98u8, 204u8, - 90u8, 36u8, 250u8, 178u8, 45u8, 213u8, 158u8, 92u8, 107u8, 3u8, 94u8, - 118u8, 194u8, 187u8, 196u8, 101u8, 250u8, 36u8, 119u8, 21u8, 19u8, - ], - ) - } - #[doc = "See [`Pallet::force_new_era_always`]."] - pub fn force_new_era_always( - &self, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "force_new_era_always", - types::ForceNewEraAlways {}, - [ - 102u8, 153u8, 116u8, 85u8, 80u8, 52u8, 89u8, 215u8, 173u8, 159u8, 96u8, - 99u8, 180u8, 5u8, 62u8, 142u8, 181u8, 101u8, 160u8, 57u8, 177u8, 182u8, - 6u8, 252u8, 107u8, 252u8, 225u8, 104u8, 147u8, 123u8, 244u8, 134u8, - ], - ) - } - #[doc = "See [`Pallet::cancel_deferred_slash`]."] - pub fn cancel_deferred_slash( - &self, - era: ::core::primitive::u32, - slash_indices: ::std::vec::Vec<::core::primitive::u32>, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "cancel_deferred_slash", - types::CancelDeferredSlash { era, slash_indices }, - [ - 49u8, 208u8, 248u8, 109u8, 25u8, 132u8, 73u8, 172u8, 232u8, 194u8, - 114u8, 23u8, 114u8, 4u8, 64u8, 156u8, 70u8, 41u8, 207u8, 208u8, 78u8, - 199u8, 81u8, 125u8, 101u8, 31u8, 17u8, 140u8, 190u8, 254u8, 64u8, - 101u8, - ], - ) - } - #[doc = "See [`Pallet::payout_stakers`]."] - pub fn payout_stakers( - &self, - validator_stash: ::subxt::utils::AccountId32, - era: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "payout_stakers", - types::PayoutStakers { - validator_stash, - era, - }, - [ - 69u8, 67u8, 140u8, 197u8, 89u8, 20u8, 59u8, 55u8, 142u8, 197u8, 62u8, - 107u8, 239u8, 50u8, 237u8, 52u8, 4u8, 65u8, 119u8, 73u8, 138u8, 57u8, - 46u8, 78u8, 252u8, 157u8, 187u8, 14u8, 232u8, 244u8, 217u8, 171u8, - ], - ) - } - #[doc = "See [`Pallet::rebond`]."] - pub fn rebond( - &self, - value: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "rebond", - types::Rebond { value }, - [ - 204u8, 209u8, 27u8, 219u8, 45u8, 129u8, 15u8, 39u8, 105u8, 165u8, - 255u8, 55u8, 0u8, 59u8, 115u8, 79u8, 139u8, 82u8, 163u8, 197u8, 44u8, - 89u8, 41u8, 234u8, 116u8, 214u8, 248u8, 123u8, 250u8, 49u8, 15u8, 77u8, - ], - ) - } - #[doc = "See [`Pallet::reap_stash`]."] - pub fn reap_stash( - &self, - stash: ::subxt::utils::AccountId32, - num_slashing_spans: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "reap_stash", - types::ReapStash { - stash, - num_slashing_spans, - }, - [ - 231u8, 240u8, 152u8, 33u8, 10u8, 60u8, 18u8, 233u8, 0u8, 229u8, 90u8, - 45u8, 118u8, 29u8, 98u8, 109u8, 89u8, 7u8, 228u8, 254u8, 119u8, 125u8, - 172u8, 209u8, 217u8, 107u8, 50u8, 226u8, 31u8, 5u8, 153u8, 93u8, - ], - ) - } - #[doc = "See [`Pallet::kick`]."] - pub fn kick( - &self, - who: ::std::vec::Vec< - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "kick", - types::Kick { who }, - [ - 27u8, 64u8, 10u8, 21u8, 174u8, 6u8, 40u8, 249u8, 144u8, 247u8, 5u8, - 123u8, 225u8, 172u8, 143u8, 50u8, 192u8, 248u8, 160u8, 179u8, 119u8, - 122u8, 147u8, 92u8, 248u8, 123u8, 3u8, 154u8, 205u8, 199u8, 6u8, 126u8, - ], - ) + } + } + pub mod storage { + use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod authorities { + use super::runtime_types; + pub type Authorities = + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::sp_consensus_beefy::ecdsa_crypto::Public, + >; } - #[doc = "See [`Pallet::set_staking_configs`]."] - pub fn set_staking_configs( - &self, - min_nominator_bond: runtime_types::pallet_staking::pallet::pallet::ConfigOp< - ::core::primitive::u128, - >, - min_validator_bond: runtime_types::pallet_staking::pallet::pallet::ConfigOp< - ::core::primitive::u128, - >, - 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::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "set_staking_configs", - types::SetStakingConfigs { - min_nominator_bond, - min_validator_bond, - max_nominator_count, - max_validator_count, - chill_threshold, - min_commission, - }, - [ - 99u8, 61u8, 196u8, 68u8, 226u8, 64u8, 104u8, 70u8, 173u8, 108u8, 29u8, - 39u8, 61u8, 202u8, 72u8, 227u8, 190u8, 6u8, 138u8, 137u8, 207u8, 11u8, - 190u8, 79u8, 73u8, 7u8, 108u8, 131u8, 19u8, 7u8, 173u8, 60u8, - ], - ) + pub mod validator_set_id { + use super::runtime_types; + pub type ValidatorSetId = ::core::primitive::u64; } - #[doc = "See [`Pallet::chill_other`]."] - pub fn chill_other( - &self, - controller: ::subxt::utils::AccountId32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "chill_other", - types::ChillOther { controller }, - [ - 143u8, 82u8, 167u8, 43u8, 102u8, 136u8, 78u8, 139u8, 110u8, 159u8, - 235u8, 226u8, 237u8, 140u8, 142u8, 47u8, 77u8, 57u8, 209u8, 208u8, 9u8, - 193u8, 3u8, 77u8, 147u8, 41u8, 182u8, 122u8, 178u8, 185u8, 32u8, 182u8, - ], - ) + pub mod next_authorities { + use super::runtime_types; + pub type NextAuthorities = + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::sp_consensus_beefy::ecdsa_crypto::Public, + >; } - #[doc = "See [`Pallet::force_apply_min_commission`]."] - pub fn force_apply_min_commission( - &self, - validator_stash: ::subxt::utils::AccountId32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "force_apply_min_commission", - types::ForceApplyMinCommission { validator_stash }, - [ - 158u8, 27u8, 152u8, 23u8, 97u8, 53u8, 54u8, 49u8, 179u8, 236u8, 69u8, - 65u8, 253u8, 136u8, 232u8, 44u8, 207u8, 66u8, 5u8, 186u8, 49u8, 91u8, - 173u8, 5u8, 84u8, 45u8, 154u8, 91u8, 239u8, 97u8, 62u8, 42u8, - ], - ) + pub mod set_id_session { + use super::runtime_types; + pub type SetIdSession = ::core::primitive::u32; } - #[doc = "See [`Pallet::set_min_commission`]."] - pub fn set_min_commission( - &self, - new: runtime_types::sp_arithmetic::per_things::Perbill, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "set_min_commission", - types::SetMinCommission { new }, - [ - 96u8, 168u8, 55u8, 79u8, 79u8, 49u8, 8u8, 127u8, 98u8, 158u8, 106u8, - 187u8, 177u8, 201u8, 68u8, 181u8, 219u8, 172u8, 63u8, 120u8, 172u8, - 173u8, 251u8, 167u8, 84u8, 165u8, 238u8, 115u8, 110u8, 97u8, 144u8, - 50u8, - ], - ) + pub mod genesis_block { + use super::runtime_types; + pub type GenesisBlock = ::core::option::Option<::core::primitive::u32>; } } - } - #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_staking::pallet::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The era payout has been set; the first balance is the validator-payout; the second is"] - #[doc = "the remainder from the maximum amount of reward."] - pub struct EraPaid { - pub era_index: ::core::primitive::u32, - pub validator_payout: ::core::primitive::u128, - pub remainder: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for EraPaid { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "EraPaid"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The nominator has been rewarded by this amount."] - pub struct Rewarded { - pub stash: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Rewarded { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "Rewarded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A staker (validator or nominator) has been slashed by the given amount."] - pub struct Slashed { - pub staker: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Slashed { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "Slashed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A slash for the given validator, for the given percentage of their stake, at the given"] - #[doc = "era as been reported."] - pub struct SlashReported { - pub validator: ::subxt::utils::AccountId32, - pub fraction: runtime_types::sp_arithmetic::per_things::Perbill, - pub slash_era: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for SlashReported { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "SlashReported"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An old slashing report from a prior era was discarded because it could"] - #[doc = "not be processed."] - pub struct OldSlashingReportDiscarded { - pub session_index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for OldSlashingReportDiscarded { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "OldSlashingReportDiscarded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A new set of stakers was elected."] - pub struct StakersElected; - impl ::subxt::events::StaticEvent for StakersElected { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "StakersElected"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An account has bonded this amount. \\[stash, amount\\]"] - #[doc = ""] - #[doc = "NOTE: This event is only emitted when funds are bonded via a dispatchable. Notably,"] - #[doc = "it will not be emitted for staking rewards when they are added to stake."] - pub struct Bonded { - pub stash: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Bonded { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "Bonded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An account has unbonded this amount."] - pub struct Unbonded { - pub stash: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Unbonded { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "Unbonded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance`"] - #[doc = "from the unlocking queue."] - pub struct Withdrawn { - pub stash: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Withdrawn { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "Withdrawn"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A nominator has been kicked from a validator."] - pub struct Kicked { - pub nominator: ::subxt::utils::AccountId32, - pub stash: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for Kicked { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "Kicked"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The election failed. No new era is planned."] - pub struct StakingElectionFailed; - impl ::subxt::events::StaticEvent for StakingElectionFailed { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "StakingElectionFailed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An account has stopped participating as either a validator or nominator."] - pub struct Chilled { - pub stash: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for Chilled { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "Chilled"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The stakers' rewards are getting paid."] - pub struct PayoutStarted { - pub era_index: ::core::primitive::u32, - pub validator_stash: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for PayoutStarted { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "PayoutStarted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A validator has set their preferences."] - pub struct ValidatorPrefsSet { - pub stash: ::subxt::utils::AccountId32, - pub prefs: runtime_types::pallet_staking::ValidatorPrefs, - } - impl ::subxt::events::StaticEvent for ValidatorPrefsSet { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "ValidatorPrefsSet"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A new force era mode was set."] - pub struct ForceEra { - pub mode: runtime_types::pallet_staking::Forcing, - } - impl ::subxt::events::StaticEvent for ForceEra { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "ForceEra"; - } - } - pub mod storage { - use super::runtime_types; pub struct StorageApi; impl StorageApi { - #[doc = " The ideal number of active validators."] - pub fn validator_count( + #[doc = " The current authorities set"] + pub fn authorities( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, + alias_types::authorities::Authorities, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( - "Staking", - "ValidatorCount", + "Beefy", + "Authorities", vec![], [ - 105u8, 251u8, 193u8, 198u8, 232u8, 118u8, 73u8, 115u8, 205u8, 78u8, - 49u8, 253u8, 140u8, 193u8, 161u8, 205u8, 13u8, 147u8, 125u8, 102u8, - 142u8, 244u8, 210u8, 227u8, 225u8, 46u8, 144u8, 122u8, 254u8, 48u8, - 44u8, 169u8, + 53u8, 171u8, 94u8, 33u8, 46u8, 83u8, 105u8, 120u8, 123u8, 201u8, 141u8, + 71u8, 131u8, 150u8, 51u8, 121u8, 67u8, 45u8, 249u8, 146u8, 85u8, 113u8, + 23u8, 59u8, 59u8, 41u8, 0u8, 226u8, 98u8, 166u8, 253u8, 59u8, ], ) } - #[doc = " Minimum number of staking participants before emergency conditions are imposed."] - pub fn minimum_validator_count( + #[doc = " The current validator set id"] + pub fn validator_set_id( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, + alias_types::validator_set_id::ValidatorSetId, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( - "Staking", - "MinimumValidatorCount", + "Beefy", + "ValidatorSetId", vec![], [ - 103u8, 178u8, 29u8, 91u8, 90u8, 31u8, 49u8, 9u8, 11u8, 58u8, 178u8, - 30u8, 219u8, 55u8, 58u8, 181u8, 80u8, 155u8, 9u8, 11u8, 38u8, 46u8, - 125u8, 179u8, 220u8, 20u8, 212u8, 181u8, 136u8, 103u8, 58u8, 48u8, + 168u8, 84u8, 23u8, 134u8, 153u8, 30u8, 183u8, 176u8, 206u8, 100u8, + 109u8, 86u8, 109u8, 126u8, 146u8, 175u8, 173u8, 1u8, 253u8, 42u8, + 122u8, 207u8, 71u8, 4u8, 145u8, 83u8, 148u8, 29u8, 243u8, 52u8, 29u8, + 78u8, ], ) } - #[doc = " Any validators that may never be slashed or forcibly kicked. It's a Vec since they're"] - #[doc = " easy to initialize and the performance hit is minimal (we expect no more than four"] - #[doc = " invulnerables) and restricted to testnets."] - pub fn invulnerables( + #[doc = " Authorities set scheduled to be used with the next session"] + pub fn next_authorities( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<::subxt::utils::AccountId32>, + alias_types::next_authorities::NextAuthorities, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( - "Staking", - "Invulnerables", + "Beefy", + "NextAuthorities", vec![], [ - 199u8, 35u8, 0u8, 229u8, 160u8, 128u8, 139u8, 245u8, 27u8, 133u8, 47u8, - 240u8, 86u8, 195u8, 90u8, 169u8, 158u8, 231u8, 128u8, 58u8, 24u8, - 173u8, 138u8, 122u8, 226u8, 104u8, 239u8, 114u8, 91u8, 165u8, 207u8, - 150u8, + 87u8, 180u8, 0u8, 85u8, 209u8, 13u8, 131u8, 103u8, 8u8, 226u8, 42u8, + 72u8, 38u8, 47u8, 190u8, 78u8, 62u8, 4u8, 161u8, 130u8, 87u8, 196u8, + 13u8, 209u8, 205u8, 98u8, 104u8, 91u8, 3u8, 47u8, 82u8, 11u8, ], ) } - #[doc = " Map from all locked \"stash\" accounts to the controller account."] + #[doc = " A mapping from BEEFY set ID to the index of the *most recent* session for which its"] + #[doc = " members were responsible."] + #[doc = ""] + #[doc = " This is only used for validating equivocation proofs. An equivocation proof must"] + #[doc = " contains a key-ownership proof for a given session, therefore we need a way to tie"] + #[doc = " together sessions and BEEFY set ids, i.e. we need to validate that a validator"] + #[doc = " was the owner of a given key on a given session, and what the active set ID was"] + #[doc = " during that session."] #[doc = ""] - #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] - pub fn bonded_iter( + #[doc = " TWOX-NOTE: `ValidatorSetId` is not under user control."] + pub fn set_id_session_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::subxt::utils::AccountId32, + alias_types::set_id_session::SetIdSession, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Staking", - "Bonded", + "Beefy", + "SetIdSession", vec![], [ - 99u8, 128u8, 108u8, 100u8, 235u8, 102u8, 243u8, 95u8, 61u8, 206u8, - 220u8, 49u8, 155u8, 85u8, 236u8, 110u8, 99u8, 21u8, 117u8, 127u8, - 157u8, 226u8, 108u8, 80u8, 126u8, 93u8, 203u8, 0u8, 160u8, 253u8, 56u8, - 101u8, + 47u8, 0u8, 239u8, 121u8, 187u8, 213u8, 254u8, 50u8, 238u8, 10u8, 162u8, + 65u8, 189u8, 166u8, 37u8, 74u8, 82u8, 81u8, 160u8, 20u8, 180u8, 253u8, + 238u8, 18u8, 209u8, 203u8, 38u8, 148u8, 16u8, 105u8, 72u8, 169u8, ], ) } - #[doc = " Map from all locked \"stash\" accounts to the controller account."] + #[doc = " A mapping from BEEFY set ID to the index of the *most recent* session for which its"] + #[doc = " members were responsible."] + #[doc = ""] + #[doc = " This is only used for validating equivocation proofs. An equivocation proof must"] + #[doc = " contains a key-ownership proof for a given session, therefore we need a way to tie"] + #[doc = " together sessions and BEEFY set ids, i.e. we need to validate that a validator"] + #[doc = " was the owner of a given key on a given session, and what the active set ID was"] + #[doc = " during that session."] #[doc = ""] - #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] - pub fn bonded( + #[doc = " TWOX-NOTE: `ValidatorSetId` is not under user control."] + pub fn set_id_session( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _0: impl ::std::borrow::Borrow<::core::primitive::u64>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::subxt::utils::AccountId32, + alias_types::set_id_session::SetIdSession, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( - "Staking", - "Bonded", + "Beefy", + "SetIdSession", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 99u8, 128u8, 108u8, 100u8, 235u8, 102u8, 243u8, 95u8, 61u8, 206u8, - 220u8, 49u8, 155u8, 85u8, 236u8, 110u8, 99u8, 21u8, 117u8, 127u8, - 157u8, 226u8, 108u8, 80u8, 126u8, 93u8, 203u8, 0u8, 160u8, 253u8, 56u8, - 101u8, + 47u8, 0u8, 239u8, 121u8, 187u8, 213u8, 254u8, 50u8, 238u8, 10u8, 162u8, + 65u8, 189u8, 166u8, 37u8, 74u8, 82u8, 81u8, 160u8, 20u8, 180u8, 253u8, + 238u8, 18u8, 209u8, 203u8, 38u8, 148u8, 16u8, 105u8, 72u8, 169u8, ], ) } - #[doc = " The minimum active bond to become and maintain the role of a nominator."] - pub fn min_nominator_bond( + #[doc = " Block number where BEEFY consensus is enabled/started."] + #[doc = " By changing this (through privileged `set_new_genesis()`), BEEFY consensus is effectively"] + #[doc = " restarted from the newly set block number."] + pub fn genesis_block( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, + alias_types::genesis_block::GenesisBlock, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( - "Staking", - "MinNominatorBond", + "Beefy", + "GenesisBlock", vec![], [ - 102u8, 115u8, 254u8, 15u8, 191u8, 228u8, 85u8, 249u8, 112u8, 190u8, - 129u8, 243u8, 236u8, 39u8, 195u8, 232u8, 10u8, 230u8, 11u8, 144u8, - 115u8, 1u8, 45u8, 70u8, 181u8, 161u8, 17u8, 92u8, 19u8, 70u8, 100u8, - 94u8, + 198u8, 155u8, 11u8, 240u8, 189u8, 245u8, 159u8, 127u8, 55u8, 33u8, + 48u8, 29u8, 209u8, 119u8, 163u8, 24u8, 28u8, 22u8, 163u8, 163u8, 124u8, + 88u8, 126u8, 4u8, 193u8, 158u8, 29u8, 243u8, 212u8, 4u8, 41u8, 22u8, ], ) } - #[doc = " The minimum active bond to become and maintain the role of a validator."] - pub fn min_validator_bond( + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The maximum number of authorities that can be added."] + pub fn max_authorities( &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "MinValidatorBond", - vec![], + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Beefy", + "MaxAuthorities", [ - 146u8, 249u8, 26u8, 52u8, 224u8, 81u8, 85u8, 153u8, 118u8, 169u8, - 140u8, 37u8, 208u8, 242u8, 8u8, 29u8, 156u8, 73u8, 154u8, 162u8, 186u8, - 159u8, 119u8, 100u8, 109u8, 227u8, 6u8, 139u8, 155u8, 203u8, 167u8, - 244u8, + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, ], ) } - #[doc = " The minimum active nominator stake of the last successful election."] - pub fn minimum_active_stake( + #[doc = " The maximum number of nominators for each validator."] + pub fn max_nominators( &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "MinimumActiveStake", - vec![], + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Beefy", + "MaxNominators", [ - 166u8, 211u8, 59u8, 23u8, 2u8, 160u8, 244u8, 52u8, 153u8, 12u8, 103u8, - 113u8, 51u8, 232u8, 145u8, 188u8, 54u8, 67u8, 227u8, 221u8, 186u8, 6u8, - 28u8, 63u8, 146u8, 212u8, 233u8, 173u8, 134u8, 41u8, 169u8, 153u8, + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, ], ) } - #[doc = " The minimum amount of commission that validators can set."] + #[doc = " The maximum number of entries to keep in the set id to session index mapping."] #[doc = ""] - #[doc = " If set to `0`, no limit exists."] - pub fn min_commission( + #[doc = " Since the `SetIdSession` map is only used for validating equivocations this"] + #[doc = " value should relate to the bonding duration of whatever staking system is"] + #[doc = " being used (if any). If equivocation handling is not enabled then this value"] + #[doc = " can be zero."] + pub fn max_set_id_session_entries( &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_arithmetic::per_things::Perbill, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "MinCommission", - vec![], + ) -> ::subxt::constants::Address<::core::primitive::u64> { + ::subxt::constants::Address::new_static( + "Beefy", + "MaxSetIdSessionEntries", [ - 220u8, 197u8, 232u8, 212u8, 205u8, 242u8, 121u8, 165u8, 255u8, 199u8, - 122u8, 20u8, 145u8, 245u8, 175u8, 26u8, 45u8, 70u8, 207u8, 26u8, 112u8, - 234u8, 181u8, 167u8, 140u8, 75u8, 15u8, 1u8, 221u8, 168u8, 17u8, 211u8, + 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, + 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, + 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, + 246u8, ], ) } - #[doc = " Map from all (unlocked) \"controller\" accounts to the info regarding the staking."] - pub fn ledger_iter( + } + } + } + pub mod mmr { + use super::root_mod; + use super::runtime_types; + pub mod storage { + use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod root_hash { + use super::runtime_types; + pub type RootHash = ::subxt::utils::H256; + } + pub mod number_of_leaves { + use super::runtime_types; + pub type NumberOfLeaves = ::core::primitive::u64; + } + pub mod nodes { + use super::runtime_types; + pub type Nodes = ::subxt::utils::H256; + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " Latest MMR Root hash."] + pub fn root_hash( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::StakingLedger, - (), - (), + alias_types::root_hash::RootHash, + ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, + (), > { ::subxt::storage::address::Address::new_static( - "Staking", - "Ledger", + "Mmr", + "RootHash", vec![], [ - 210u8, 236u8, 6u8, 49u8, 200u8, 118u8, 116u8, 25u8, 66u8, 60u8, 18u8, - 75u8, 240u8, 156u8, 58u8, 48u8, 176u8, 10u8, 175u8, 0u8, 86u8, 7u8, - 16u8, 134u8, 64u8, 41u8, 46u8, 128u8, 33u8, 40u8, 10u8, 129u8, + 111u8, 206u8, 173u8, 92u8, 67u8, 49u8, 150u8, 113u8, 90u8, 245u8, 38u8, + 254u8, 76u8, 250u8, 167u8, 66u8, 130u8, 129u8, 251u8, 220u8, 172u8, + 229u8, 162u8, 251u8, 36u8, 227u8, 43u8, 189u8, 7u8, 106u8, 23u8, 13u8, ], ) } - #[doc = " Map from all (unlocked) \"controller\" accounts to the info regarding the staking."] - pub fn ledger( + #[doc = " Current size of the MMR (number of leaves)."] + pub fn number_of_leaves( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::StakingLedger, + alias_types::number_of_leaves::NumberOfLeaves, + ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, - (), (), > { ::subxt::storage::address::Address::new_static( - "Staking", - "Ledger", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], + "Mmr", + "NumberOfLeaves", + vec![], [ - 210u8, 236u8, 6u8, 49u8, 200u8, 118u8, 116u8, 25u8, 66u8, 60u8, 18u8, - 75u8, 240u8, 156u8, 58u8, 48u8, 176u8, 10u8, 175u8, 0u8, 86u8, 7u8, - 16u8, 134u8, 64u8, 41u8, 46u8, 128u8, 33u8, 40u8, 10u8, 129u8, + 123u8, 58u8, 149u8, 174u8, 85u8, 45u8, 20u8, 115u8, 241u8, 0u8, 51u8, + 174u8, 234u8, 60u8, 230u8, 59u8, 237u8, 144u8, 170u8, 32u8, 4u8, 0u8, + 34u8, 163u8, 238u8, 205u8, 93u8, 208u8, 53u8, 38u8, 141u8, 195u8, ], ) } - #[doc = " Where the reward payment should be made. Keyed by stash."] + #[doc = " Hashes of the nodes in the MMR."] #[doc = ""] - #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] - pub fn payee_iter( + #[doc = " Note this collection only contains MMR peaks, the inner nodes (and leaves)"] + #[doc = " are pruned and only stored in the Offchain DB."] + pub fn nodes_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::RewardDestination<::subxt::utils::AccountId32>, + alias_types::nodes::Nodes, + (), (), - ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Staking", - "Payee", + "Mmr", + "Nodes", vec![], [ - 141u8, 225u8, 44u8, 134u8, 50u8, 229u8, 64u8, 186u8, 166u8, 88u8, - 213u8, 118u8, 32u8, 154u8, 151u8, 204u8, 104u8, 216u8, 198u8, 66u8, - 123u8, 143u8, 206u8, 245u8, 53u8, 67u8, 78u8, 82u8, 115u8, 31u8, 39u8, - 76u8, + 27u8, 84u8, 41u8, 195u8, 146u8, 81u8, 211u8, 189u8, 63u8, 125u8, 173u8, + 206u8, 69u8, 198u8, 202u8, 213u8, 89u8, 31u8, 89u8, 177u8, 76u8, 154u8, + 249u8, 197u8, 133u8, 78u8, 142u8, 71u8, 183u8, 3u8, 132u8, 25u8, ], ) } - #[doc = " Where the reward payment should be made. Keyed by stash."] + #[doc = " Hashes of the nodes in the MMR."] #[doc = ""] - #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] - pub fn payee( + #[doc = " Note this collection only contains MMR peaks, the inner nodes (and leaves)"] + #[doc = " are pruned and only stored in the Offchain DB."] + pub fn nodes( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _0: impl ::std::borrow::Borrow<::core::primitive::u64>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::RewardDestination<::subxt::utils::AccountId32>, - ::subxt::storage::address::Yes, + alias_types::nodes::Nodes, ::subxt::storage::address::Yes, (), + (), > { ::subxt::storage::address::Address::new_static( - "Staking", - "Payee", + "Mmr", + "Nodes", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 141u8, 225u8, 44u8, 134u8, 50u8, 229u8, 64u8, 186u8, 166u8, 88u8, - 213u8, 118u8, 32u8, 154u8, 151u8, 204u8, 104u8, 216u8, 198u8, 66u8, - 123u8, 143u8, 206u8, 245u8, 53u8, 67u8, 78u8, 82u8, 115u8, 31u8, 39u8, - 76u8, + 27u8, 84u8, 41u8, 195u8, 146u8, 81u8, 211u8, 189u8, 63u8, 125u8, 173u8, + 206u8, 69u8, 198u8, 202u8, 213u8, 89u8, 31u8, 89u8, 177u8, 76u8, 154u8, + 249u8, 197u8, 133u8, 78u8, 142u8, 71u8, 183u8, 3u8, 132u8, 25u8, ], ) } - #[doc = " The map from (wannabe) validator stash key to the preferences of that validator."] - #[doc = ""] - #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] - pub fn validators_iter( + } + } + } + pub mod mmr_leaf { + use super::root_mod; + use super::runtime_types; + pub mod storage { + use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod beefy_authorities { + use super::runtime_types; + pub type BeefyAuthorities = + runtime_types::sp_consensus_beefy::mmr::BeefyAuthoritySet< + ::subxt::utils::H256, + >; + } + pub mod beefy_next_authorities { + use super::runtime_types; + pub type BeefyNextAuthorities = + runtime_types::sp_consensus_beefy::mmr::BeefyAuthoritySet< + ::subxt::utils::H256, + >; + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " Details of current BEEFY authority set."] + pub fn beefy_authorities( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::ValidatorPrefs, - (), + alias_types::beefy_authorities::BeefyAuthorities, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, + (), > { ::subxt::storage::address::Address::new_static( - "Staking", - "Validators", + "MmrLeaf", + "BeefyAuthorities", vec![], [ - 149u8, 207u8, 68u8, 38u8, 24u8, 220u8, 207u8, 84u8, 236u8, 33u8, 210u8, - 124u8, 200u8, 99u8, 98u8, 29u8, 235u8, 46u8, 124u8, 4u8, 203u8, 6u8, - 209u8, 21u8, 124u8, 236u8, 112u8, 118u8, 180u8, 85u8, 78u8, 13u8, + 128u8, 35u8, 176u8, 79u8, 224u8, 58u8, 214u8, 234u8, 231u8, 71u8, + 227u8, 153u8, 180u8, 189u8, 66u8, 44u8, 47u8, 174u8, 0u8, 83u8, 121u8, + 182u8, 226u8, 44u8, 224u8, 173u8, 237u8, 102u8, 231u8, 146u8, 110u8, + 7u8, ], ) } - #[doc = " The map from (wannabe) validator stash key to the preferences of that validator."] + #[doc = " Details of next BEEFY authority set."] #[doc = ""] - #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] - pub fn validators( + #[doc = " This storage entry is used as cache for calls to `update_beefy_next_authority_set`."] + pub fn beefy_next_authorities( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::ValidatorPrefs, + alias_types::beefy_next_authorities::BeefyNextAuthorities, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( - "Staking", - "Validators", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], + "MmrLeaf", + "BeefyNextAuthorities", + vec![], [ - 149u8, 207u8, 68u8, 38u8, 24u8, 220u8, 207u8, 84u8, 236u8, 33u8, 210u8, - 124u8, 200u8, 99u8, 98u8, 29u8, 235u8, 46u8, 124u8, 4u8, 203u8, 6u8, - 209u8, 21u8, 124u8, 236u8, 112u8, 118u8, 180u8, 85u8, 78u8, 13u8, + 97u8, 71u8, 52u8, 111u8, 120u8, 251u8, 183u8, 155u8, 177u8, 100u8, + 236u8, 142u8, 204u8, 117u8, 95u8, 40u8, 201u8, 36u8, 32u8, 82u8, 38u8, + 234u8, 135u8, 39u8, 224u8, 69u8, 94u8, 85u8, 12u8, 89u8, 97u8, 218u8, ], ) } - #[doc = "Counter for the related counted storage map"] - pub fn counter_for_validators( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "CounterForValidators", - vec![], - [ - 169u8, 146u8, 194u8, 114u8, 57u8, 232u8, 137u8, 93u8, 214u8, 98u8, - 176u8, 151u8, 237u8, 165u8, 176u8, 252u8, 73u8, 124u8, 22u8, 166u8, - 225u8, 217u8, 65u8, 56u8, 174u8, 12u8, 32u8, 2u8, 7u8, 173u8, 125u8, - 235u8, - ], - ) + } + } + } + pub mod session { + use super::root_mod; + use super::runtime_types; + #[doc = "Error for the session pallet."] + pub type Error = runtime_types::pallet_session::pallet::Error; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::pallet_session::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod alias_types { + use super::runtime_types; + pub mod set_keys { + use super::runtime_types; + pub type Keys = runtime_types::rococo_runtime::SessionKeys; + pub type Proof = ::std::vec::Vec<::core::primitive::u8>; } - #[doc = " The maximum validator count before we stop allowing new validators to join."] - #[doc = ""] - #[doc = " When this value is not set, no limits are enforced."] - pub fn max_validators_count( + pub mod purge_keys { + use super::runtime_types; + } + } + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SetKeys { + pub keys: runtime_types::rococo_runtime::SessionKeys, + pub proof: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::blocks::StaticExtrinsic for SetKeys { + const PALLET: &'static str = "Session"; + const CALL: &'static str = "set_keys"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct PurgeKeys; + impl ::subxt::blocks::StaticExtrinsic for PurgeKeys { + const PALLET: &'static str = "Session"; + const CALL: &'static str = "purge_keys"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::set_keys`]."] + pub fn set_keys( &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "MaxValidatorsCount", - vec![], + keys: alias_types::set_keys::Keys, + proof: alias_types::set_keys::Proof, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Session", + "set_keys", + types::SetKeys { keys, proof }, [ - 139u8, 116u8, 236u8, 217u8, 110u8, 47u8, 140u8, 197u8, 184u8, 246u8, - 180u8, 188u8, 233u8, 99u8, 102u8, 21u8, 114u8, 23u8, 143u8, 163u8, - 224u8, 250u8, 248u8, 185u8, 235u8, 94u8, 110u8, 83u8, 170u8, 123u8, - 113u8, 168u8, + 50u8, 154u8, 235u8, 252u8, 160u8, 25u8, 233u8, 90u8, 76u8, 227u8, 22u8, + 129u8, 221u8, 129u8, 95u8, 124u8, 117u8, 117u8, 43u8, 17u8, 109u8, + 252u8, 39u8, 115u8, 150u8, 80u8, 38u8, 34u8, 62u8, 237u8, 248u8, 246u8, ], ) } - #[doc = " The map from nominator stash key to their nomination preferences, namely the validators that"] - #[doc = " they wish to support."] - #[doc = ""] - #[doc = " Note that the keys of this storage map might become non-decodable in case the"] - #[doc = " [`Config::MaxNominations`] configuration is decreased. In this rare case, these nominators"] - #[doc = " are still existent in storage, their key is correct and retrievable (i.e. `contains_key`"] - #[doc = " indicates that they exist), but their value cannot be decoded. Therefore, the non-decodable"] - #[doc = " nominators will effectively not-exist, until they re-submit their preferences such that it"] - #[doc = " is within the bounds of the newly set `Config::MaxNominations`."] - #[doc = ""] - #[doc = " This implies that `::iter_keys().count()` and `::iter().count()` might return different"] - #[doc = " values for this map. Moreover, the main `::count()` is aligned with the former, namely the"] - #[doc = " number of keys that exist."] - #[doc = ""] - #[doc = " Lastly, if any of the nominators become non-decodable, they can be chilled immediately via"] - #[doc = " [`Call::chill_other`] dispatchable by anyone."] - #[doc = ""] - #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] - pub fn nominators_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::Nominations, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "Nominators", - vec![], + #[doc = "See [`Pallet::purge_keys`]."] + pub fn purge_keys(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Session", + "purge_keys", + types::PurgeKeys {}, [ - 244u8, 174u8, 214u8, 105u8, 215u8, 218u8, 241u8, 145u8, 155u8, 54u8, - 219u8, 34u8, 158u8, 224u8, 251u8, 17u8, 245u8, 9u8, 150u8, 36u8, 2u8, - 233u8, 222u8, 218u8, 136u8, 86u8, 37u8, 244u8, 18u8, 50u8, 91u8, 120u8, + 215u8, 204u8, 146u8, 236u8, 32u8, 78u8, 198u8, 79u8, 85u8, 214u8, 15u8, + 151u8, 158u8, 31u8, 146u8, 119u8, 119u8, 204u8, 151u8, 169u8, 226u8, + 67u8, 217u8, 39u8, 241u8, 245u8, 203u8, 240u8, 203u8, 172u8, 16u8, + 209u8, ], ) } - #[doc = " The map from nominator stash key to their nomination preferences, namely the validators that"] - #[doc = " they wish to support."] - #[doc = ""] - #[doc = " Note that the keys of this storage map might become non-decodable in case the"] - #[doc = " [`Config::MaxNominations`] configuration is decreased. In this rare case, these nominators"] - #[doc = " are still existent in storage, their key is correct and retrievable (i.e. `contains_key`"] - #[doc = " indicates that they exist), but their value cannot be decoded. Therefore, the non-decodable"] - #[doc = " nominators will effectively not-exist, until they re-submit their preferences such that it"] - #[doc = " is within the bounds of the newly set `Config::MaxNominations`."] - #[doc = ""] - #[doc = " This implies that `::iter_keys().count()` and `::iter().count()` might return different"] - #[doc = " values for this map. Moreover, the main `::count()` is aligned with the former, namely the"] - #[doc = " number of keys that exist."] - #[doc = ""] - #[doc = " Lastly, if any of the nominators become non-decodable, they can be chilled immediately via"] - #[doc = " [`Call::chill_other`] dispatchable by anyone."] - #[doc = ""] - #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] - pub fn nominators( + } + } + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_session::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "New session has happened. Note that the argument is the session index, not the"] + #[doc = "block number as the type might suggest."] + pub struct NewSession { + pub session_index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for NewSession { + const PALLET: &'static str = "Session"; + const EVENT: &'static str = "NewSession"; + } + } + pub mod storage { + use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod validators { + use super::runtime_types; + pub type Validators = ::std::vec::Vec<::subxt::utils::AccountId32>; + } + pub mod current_index { + use super::runtime_types; + pub type CurrentIndex = ::core::primitive::u32; + } + pub mod queued_changed { + use super::runtime_types; + pub type QueuedChanged = ::core::primitive::bool; + } + pub mod queued_keys { + use super::runtime_types; + pub type QueuedKeys = ::std::vec::Vec<( + ::subxt::utils::AccountId32, + runtime_types::rococo_runtime::SessionKeys, + )>; + } + pub mod disabled_validators { + use super::runtime_types; + pub type DisabledValidators = ::std::vec::Vec<::core::primitive::u32>; + } + pub mod next_keys { + use super::runtime_types; + pub type NextKeys = runtime_types::rococo_runtime::SessionKeys; + } + pub mod key_owner { + use super::runtime_types; + pub type KeyOwner = ::subxt::utils::AccountId32; + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " The current set of validators."] + pub fn validators( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::Nominations, + alias_types::validators::Validators, + ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, - (), (), > { ::subxt::storage::address::Address::new_static( - "Staking", - "Nominators", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], + "Session", + "Validators", + vec![], [ - 244u8, 174u8, 214u8, 105u8, 215u8, 218u8, 241u8, 145u8, 155u8, 54u8, - 219u8, 34u8, 158u8, 224u8, 251u8, 17u8, 245u8, 9u8, 150u8, 36u8, 2u8, - 233u8, 222u8, 218u8, 136u8, 86u8, 37u8, 244u8, 18u8, 50u8, 91u8, 120u8, + 50u8, 86u8, 154u8, 222u8, 249u8, 209u8, 156u8, 22u8, 155u8, 25u8, + 133u8, 194u8, 210u8, 50u8, 38u8, 28u8, 139u8, 201u8, 90u8, 139u8, + 115u8, 12u8, 12u8, 141u8, 4u8, 178u8, 201u8, 241u8, 223u8, 234u8, 6u8, + 86u8, ], ) } - #[doc = "Counter for the related counted storage map"] - pub fn counter_for_nominators( + #[doc = " Current index of the session."] + pub fn current_index( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, + alias_types::current_index::CurrentIndex, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( - "Staking", - "CounterForNominators", + "Session", + "CurrentIndex", vec![], [ - 150u8, 236u8, 184u8, 12u8, 224u8, 26u8, 13u8, 204u8, 208u8, 178u8, - 68u8, 148u8, 232u8, 85u8, 74u8, 248u8, 167u8, 61u8, 88u8, 126u8, 40u8, - 20u8, 73u8, 47u8, 94u8, 57u8, 144u8, 77u8, 156u8, 179u8, 55u8, 49u8, + 167u8, 151u8, 125u8, 150u8, 159u8, 21u8, 78u8, 217u8, 237u8, 183u8, + 135u8, 65u8, 187u8, 114u8, 188u8, 206u8, 16u8, 32u8, 69u8, 208u8, + 134u8, 159u8, 232u8, 224u8, 243u8, 27u8, 31u8, 166u8, 145u8, 44u8, + 221u8, 230u8, ], ) } - #[doc = " The maximum nominator count before we stop allowing new validators to join."] - #[doc = ""] - #[doc = " When this value is not set, no limits are enforced."] - pub fn max_nominators_count( + #[doc = " True if the underlying economic identities or weighting behind the validators"] + #[doc = " has changed in the queued validator set."] + pub fn queued_changed( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, + alias_types::queued_changed::QueuedChanged, + ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, - (), (), > { ::subxt::storage::address::Address::new_static( - "Staking", - "MaxNominatorsCount", + "Session", + "QueuedChanged", vec![], [ - 11u8, 234u8, 179u8, 254u8, 95u8, 119u8, 35u8, 255u8, 141u8, 95u8, - 148u8, 209u8, 43u8, 202u8, 19u8, 57u8, 185u8, 50u8, 152u8, 192u8, 95u8, - 13u8, 158u8, 245u8, 113u8, 199u8, 255u8, 187u8, 37u8, 44u8, 8u8, 119u8, + 184u8, 137u8, 224u8, 137u8, 31u8, 236u8, 95u8, 164u8, 102u8, 225u8, + 198u8, 227u8, 140u8, 37u8, 113u8, 57u8, 59u8, 4u8, 202u8, 102u8, 117u8, + 36u8, 226u8, 64u8, 113u8, 141u8, 199u8, 111u8, 99u8, 144u8, 198u8, + 153u8, ], ) } - #[doc = " The current era index."] - #[doc = ""] - #[doc = " This is the latest planned era, depending on how the Session pallet queues the validator"] - #[doc = " set, it might be active or not."] - pub fn current_era( + #[doc = " The queued keys for the next session. When the next session begins, these keys"] + #[doc = " will be used to determine the validator's session keys."] + pub fn queued_keys( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, + alias_types::queued_keys::QueuedKeys, + ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, - (), (), > { ::subxt::storage::address::Address::new_static( - "Staking", - "CurrentEra", + "Session", + "QueuedKeys", vec![], [ - 247u8, 239u8, 171u8, 18u8, 137u8, 240u8, 213u8, 3u8, 173u8, 173u8, - 236u8, 141u8, 202u8, 191u8, 228u8, 120u8, 196u8, 188u8, 13u8, 66u8, - 253u8, 117u8, 90u8, 8u8, 158u8, 11u8, 236u8, 141u8, 178u8, 44u8, 119u8, - 25u8, + 251u8, 240u8, 64u8, 86u8, 241u8, 74u8, 141u8, 38u8, 46u8, 18u8, 92u8, + 101u8, 227u8, 161u8, 58u8, 222u8, 17u8, 29u8, 248u8, 237u8, 74u8, 69u8, + 18u8, 16u8, 129u8, 187u8, 172u8, 249u8, 162u8, 96u8, 218u8, 186u8, ], ) } - #[doc = " The active era information, it holds index and start."] + #[doc = " Indices of disabled validators."] #[doc = ""] - #[doc = " The active era is the era being currently rewarded. Validator set of this era must be"] - #[doc = " equal to [`SessionInterface::validators`]."] - pub fn active_era( + #[doc = " The vec is always kept sorted so that we can find whether a given validator is"] + #[doc = " disabled using binary search. It gets cleared when `on_session_ending` returns"] + #[doc = " a new set of identities."] + pub fn disabled_validators( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::ActiveEraInfo, + alias_types::disabled_validators::DisabledValidators, + ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, - (), (), > { ::subxt::storage::address::Address::new_static( - "Staking", - "ActiveEra", + "Session", + "DisabledValidators", vec![], [ - 24u8, 229u8, 66u8, 56u8, 111u8, 234u8, 139u8, 93u8, 245u8, 137u8, - 110u8, 110u8, 121u8, 15u8, 216u8, 207u8, 97u8, 120u8, 125u8, 45u8, - 61u8, 2u8, 50u8, 100u8, 3u8, 106u8, 12u8, 233u8, 123u8, 156u8, 145u8, - 38u8, + 213u8, 19u8, 168u8, 234u8, 187u8, 200u8, 180u8, 97u8, 234u8, 189u8, + 36u8, 233u8, 158u8, 184u8, 45u8, 35u8, 129u8, 213u8, 133u8, 8u8, 104u8, + 183u8, 46u8, 68u8, 154u8, 240u8, 132u8, 22u8, 247u8, 11u8, 54u8, 221u8, ], ) } - #[doc = " The session index at which the era start for the last `HISTORY_DEPTH` eras."] - #[doc = ""] - #[doc = " Note: This tracks the starting session (i.e. session index when era start being active)"] - #[doc = " for the eras in `[CurrentEra - HISTORY_DEPTH, CurrentEra]`."] - pub fn eras_start_session_index_iter( + #[doc = " The next session keys for a validator."] + pub fn next_keys_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, + alias_types::next_keys::NextKeys, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Staking", - "ErasStartSessionIndex", + "Session", + "NextKeys", vec![], [ - 104u8, 76u8, 102u8, 20u8, 9u8, 146u8, 55u8, 204u8, 12u8, 15u8, 117u8, - 22u8, 54u8, 230u8, 98u8, 105u8, 191u8, 136u8, 140u8, 65u8, 48u8, 29u8, - 19u8, 144u8, 159u8, 241u8, 158u8, 77u8, 4u8, 230u8, 216u8, 52u8, + 87u8, 61u8, 243u8, 159u8, 164u8, 196u8, 130u8, 218u8, 136u8, 189u8, + 253u8, 151u8, 230u8, 9u8, 214u8, 58u8, 102u8, 67u8, 61u8, 138u8, 242u8, + 214u8, 80u8, 166u8, 130u8, 47u8, 141u8, 197u8, 11u8, 73u8, 100u8, 16u8, ], ) } - #[doc = " The session index at which the era start for the last `HISTORY_DEPTH` eras."] - #[doc = ""] - #[doc = " Note: This tracks the starting session (i.e. session index when era start being active)"] - #[doc = " for the eras in `[CurrentEra - HISTORY_DEPTH, CurrentEra]`."] - pub fn eras_start_session_index( + #[doc = " The next session keys for a validator."] + pub fn next_keys( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, + alias_types::next_keys::NextKeys, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( - "Staking", - "ErasStartSessionIndex", + "Session", + "NextKeys", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 104u8, 76u8, 102u8, 20u8, 9u8, 146u8, 55u8, 204u8, 12u8, 15u8, 117u8, - 22u8, 54u8, 230u8, 98u8, 105u8, 191u8, 136u8, 140u8, 65u8, 48u8, 29u8, - 19u8, 144u8, 159u8, 241u8, 158u8, 77u8, 4u8, 230u8, 216u8, 52u8, + 87u8, 61u8, 243u8, 159u8, 164u8, 196u8, 130u8, 218u8, 136u8, 189u8, + 253u8, 151u8, 230u8, 9u8, 214u8, 58u8, 102u8, 67u8, 61u8, 138u8, 242u8, + 214u8, 80u8, 166u8, 130u8, 47u8, 141u8, 197u8, 11u8, 73u8, 100u8, 16u8, ], ) } - #[doc = " Exposure of validator at era."] - #[doc = ""] - #[doc = " This is keyed first by the era index to allow bulk deletion and then the stash account."] - #[doc = ""] - #[doc = " Is it removed after `HISTORY_DEPTH` eras."] - #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] - pub fn eras_stakers_iter( + #[doc = " The owner of a key. The key is the `KeyTypeId` + the encoded key."] + pub fn key_owner_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::Exposure< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, + alias_types::key_owner::KeyOwner, + (), (), - ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Staking", - "ErasStakers", + "Session", + "KeyOwner", vec![], [ - 120u8, 64u8, 232u8, 134u8, 109u8, 212u8, 242u8, 64u8, 68u8, 196u8, - 108u8, 91u8, 255u8, 123u8, 245u8, 27u8, 55u8, 254u8, 60u8, 74u8, 183u8, - 183u8, 226u8, 159u8, 244u8, 56u8, 139u8, 34u8, 228u8, 176u8, 241u8, - 76u8, + 217u8, 204u8, 21u8, 114u8, 247u8, 129u8, 32u8, 242u8, 93u8, 91u8, + 253u8, 253u8, 248u8, 90u8, 12u8, 202u8, 195u8, 25u8, 18u8, 100u8, + 253u8, 109u8, 88u8, 77u8, 217u8, 140u8, 51u8, 40u8, 118u8, 35u8, 107u8, + 206u8, ], ) } - #[doc = " Exposure of validator at era."] - #[doc = ""] - #[doc = " This is keyed first by the era index to allow bulk deletion and then the stash account."] - #[doc = ""] - #[doc = " Is it removed after `HISTORY_DEPTH` eras."] - #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] - pub fn eras_stakers_iter1( + #[doc = " The owner of a key. The key is the `KeyTypeId` + the encoded key."] + pub fn key_owner_iter1( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::Exposure< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, + alias_types::key_owner::KeyOwner, + (), (), - ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Staking", - "ErasStakers", + "Session", + "KeyOwner", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 120u8, 64u8, 232u8, 134u8, 109u8, 212u8, 242u8, 64u8, 68u8, 196u8, - 108u8, 91u8, 255u8, 123u8, 245u8, 27u8, 55u8, 254u8, 60u8, 74u8, 183u8, - 183u8, 226u8, 159u8, 244u8, 56u8, 139u8, 34u8, 228u8, 176u8, 241u8, - 76u8, + 217u8, 204u8, 21u8, 114u8, 247u8, 129u8, 32u8, 242u8, 93u8, 91u8, + 253u8, 253u8, 248u8, 90u8, 12u8, 202u8, 195u8, 25u8, 18u8, 100u8, + 253u8, 109u8, 88u8, 77u8, 217u8, 140u8, 51u8, 40u8, 118u8, 35u8, 107u8, + 206u8, ], ) } - #[doc = " Exposure of validator at era."] - #[doc = ""] - #[doc = " This is keyed first by the era index to allow bulk deletion and then the stash account."] - #[doc = ""] - #[doc = " Is it removed after `HISTORY_DEPTH` eras."] - #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] - pub fn eras_stakers( + #[doc = " The owner of a key. The key is the `KeyTypeId` + the encoded key."] + pub fn key_owner( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow<[::core::primitive::u8]>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::Exposure< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, - ::subxt::storage::address::Yes, + alias_types::key_owner::KeyOwner, ::subxt::storage::address::Yes, (), + (), > { ::subxt::storage::address::Address::new_static( - "Staking", - "ErasStakers", + "Session", + "KeyOwner", vec![ ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), ], [ - 120u8, 64u8, 232u8, 134u8, 109u8, 212u8, 242u8, 64u8, 68u8, 196u8, - 108u8, 91u8, 255u8, 123u8, 245u8, 27u8, 55u8, 254u8, 60u8, 74u8, 183u8, - 183u8, 226u8, 159u8, 244u8, 56u8, 139u8, 34u8, 228u8, 176u8, 241u8, - 76u8, + 217u8, 204u8, 21u8, 114u8, 247u8, 129u8, 32u8, 242u8, 93u8, 91u8, + 253u8, 253u8, 248u8, 90u8, 12u8, 202u8, 195u8, 25u8, 18u8, 100u8, + 253u8, 109u8, 88u8, 77u8, 217u8, 140u8, 51u8, 40u8, 118u8, 35u8, 107u8, + 206u8, ], ) } - #[doc = " Clipped Exposure of validator at era."] - #[doc = ""] - #[doc = " This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the"] - #[doc = " `T::MaxNominatorRewardedPerValidator` biggest stakers."] - #[doc = " (Note: the field `total` and `own` of the exposure remains unchanged)."] - #[doc = " This is used to limit the i/o cost for the nominator payout."] - #[doc = ""] - #[doc = " This is keyed fist by the era index to allow bulk deletion and then the stash account."] - #[doc = ""] - #[doc = " Is it removed after `HISTORY_DEPTH` eras."] - #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] - pub fn eras_stakers_clipped_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::Exposure< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "ErasStakersClipped", - vec![], - [ - 85u8, 192u8, 164u8, 53u8, 181u8, 61u8, 132u8, 255u8, 144u8, 41u8, 44u8, - 199u8, 34u8, 11u8, 248u8, 81u8, 203u8, 204u8, 152u8, 138u8, 112u8, - 229u8, 145u8, 253u8, 111u8, 111u8, 38u8, 74u8, 199u8, 164u8, 16u8, - 45u8, - ], - ) + } + } + } + pub mod grandpa { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Error` enum of this pallet."] + pub type Error = runtime_types::pallet_grandpa::pallet::Error; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::pallet_grandpa::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod alias_types { + use super::runtime_types; + pub mod report_equivocation { + use super::runtime_types; + pub type EquivocationProof = + runtime_types::sp_consensus_grandpa::EquivocationProof< + ::subxt::utils::H256, + ::core::primitive::u32, + >; + pub type KeyOwnerProof = runtime_types::sp_session::MembershipProof; } - #[doc = " Clipped Exposure of validator at era."] - #[doc = ""] - #[doc = " This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the"] - #[doc = " `T::MaxNominatorRewardedPerValidator` biggest stakers."] - #[doc = " (Note: the field `total` and `own` of the exposure remains unchanged)."] - #[doc = " This is used to limit the i/o cost for the nominator payout."] - #[doc = ""] - #[doc = " This is keyed fist by the era index to allow bulk deletion and then the stash account."] - #[doc = ""] - #[doc = " Is it removed after `HISTORY_DEPTH` eras."] - #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] - pub fn eras_stakers_clipped_iter1( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::Exposure< - ::subxt::utils::AccountId32, - ::core::primitive::u128, + pub mod report_equivocation_unsigned { + use super::runtime_types; + pub type EquivocationProof = + runtime_types::sp_consensus_grandpa::EquivocationProof< + ::subxt::utils::H256, + ::core::primitive::u32, + >; + pub type KeyOwnerProof = runtime_types::sp_session::MembershipProof; + } + pub mod note_stalled { + use super::runtime_types; + pub type Delay = ::core::primitive::u32; + pub type BestFinalizedBlockNumber = ::core::primitive::u32; + } + } + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ReportEquivocation { + pub equivocation_proof: ::std::boxed::Box< + runtime_types::sp_consensus_grandpa::EquivocationProof< + ::subxt::utils::H256, + ::core::primitive::u32, + >, >, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "ErasStakersClipped", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 85u8, 192u8, 164u8, 53u8, 181u8, 61u8, 132u8, 255u8, 144u8, 41u8, 44u8, - 199u8, 34u8, 11u8, 248u8, 81u8, 203u8, 204u8, 152u8, 138u8, 112u8, - 229u8, 145u8, 253u8, 111u8, 111u8, 38u8, 74u8, 199u8, 164u8, 16u8, - 45u8, - ], - ) + pub key_owner_proof: runtime_types::sp_session::MembershipProof, } - #[doc = " Clipped Exposure of validator at era."] - #[doc = ""] - #[doc = " This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the"] - #[doc = " `T::MaxNominatorRewardedPerValidator` biggest stakers."] - #[doc = " (Note: the field `total` and `own` of the exposure remains unchanged)."] - #[doc = " This is used to limit the i/o cost for the nominator payout."] - #[doc = ""] - #[doc = " This is keyed fist by the era index to allow bulk deletion and then the stash account."] - #[doc = ""] - #[doc = " Is it removed after `HISTORY_DEPTH` eras."] - #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] - pub fn eras_stakers_clipped( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::Exposure< - ::subxt::utils::AccountId32, - ::core::primitive::u128, + impl ::subxt::blocks::StaticExtrinsic for ReportEquivocation { + const PALLET: &'static str = "Grandpa"; + const CALL: &'static str = "report_equivocation"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ReportEquivocationUnsigned { + pub equivocation_proof: ::std::boxed::Box< + runtime_types::sp_consensus_grandpa::EquivocationProof< + ::subxt::utils::H256, + ::core::primitive::u32, + >, >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "ErasStakersClipped", - vec![ - ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), - ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), - ], - [ - 85u8, 192u8, 164u8, 53u8, 181u8, 61u8, 132u8, 255u8, 144u8, 41u8, 44u8, - 199u8, 34u8, 11u8, 248u8, 81u8, 203u8, 204u8, 152u8, 138u8, 112u8, - 229u8, 145u8, 253u8, 111u8, 111u8, 38u8, 74u8, 199u8, 164u8, 16u8, - 45u8, - ], - ) + pub key_owner_proof: runtime_types::sp_session::MembershipProof, } - #[doc = " Similar to `ErasStakers`, this holds the preferences of validators."] - #[doc = ""] - #[doc = " This is keyed first by the era index to allow bulk deletion and then the stash account."] - #[doc = ""] - #[doc = " Is it removed after `HISTORY_DEPTH` eras."] - pub fn eras_validator_prefs_iter( + impl ::subxt::blocks::StaticExtrinsic for ReportEquivocationUnsigned { + const PALLET: &'static str = "Grandpa"; + const CALL: &'static str = "report_equivocation_unsigned"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct NoteStalled { + pub delay: ::core::primitive::u32, + pub best_finalized_block_number: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for NoteStalled { + const PALLET: &'static str = "Grandpa"; + const CALL: &'static str = "note_stalled"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::report_equivocation`]."] + pub fn report_equivocation( &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::ValidatorPrefs, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "ErasValidatorPrefs", - vec![], + equivocation_proof: alias_types::report_equivocation::EquivocationProof, + key_owner_proof: alias_types::report_equivocation::KeyOwnerProof, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Grandpa", + "report_equivocation", + types::ReportEquivocation { + equivocation_proof: ::std::boxed::Box::new(equivocation_proof), + key_owner_proof, + }, [ - 134u8, 250u8, 229u8, 21u8, 44u8, 119u8, 43u8, 99u8, 69u8, 94u8, 177u8, - 180u8, 174u8, 134u8, 54u8, 25u8, 56u8, 144u8, 194u8, 149u8, 56u8, - 234u8, 78u8, 238u8, 78u8, 247u8, 205u8, 43u8, 16u8, 159u8, 92u8, 169u8, + 11u8, 183u8, 81u8, 93u8, 41u8, 7u8, 70u8, 155u8, 8u8, 57u8, 177u8, + 245u8, 131u8, 79u8, 236u8, 118u8, 147u8, 114u8, 40u8, 204u8, 177u8, + 2u8, 43u8, 42u8, 2u8, 201u8, 202u8, 120u8, 150u8, 109u8, 108u8, 156u8, ], ) } - #[doc = " Similar to `ErasStakers`, this holds the preferences of validators."] - #[doc = ""] - #[doc = " This is keyed first by the era index to allow bulk deletion and then the stash account."] - #[doc = ""] - #[doc = " Is it removed after `HISTORY_DEPTH` eras."] - pub fn eras_validator_prefs_iter1( + #[doc = "See [`Pallet::report_equivocation_unsigned`]."] + pub fn report_equivocation_unsigned( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::ValidatorPrefs, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "ErasValidatorPrefs", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], + equivocation_proof : alias_types :: report_equivocation_unsigned :: EquivocationProof, + key_owner_proof: alias_types::report_equivocation_unsigned::KeyOwnerProof, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Grandpa", + "report_equivocation_unsigned", + types::ReportEquivocationUnsigned { + equivocation_proof: ::std::boxed::Box::new(equivocation_proof), + key_owner_proof, + }, [ - 134u8, 250u8, 229u8, 21u8, 44u8, 119u8, 43u8, 99u8, 69u8, 94u8, 177u8, - 180u8, 174u8, 134u8, 54u8, 25u8, 56u8, 144u8, 194u8, 149u8, 56u8, - 234u8, 78u8, 238u8, 78u8, 247u8, 205u8, 43u8, 16u8, 159u8, 92u8, 169u8, + 141u8, 133u8, 227u8, 65u8, 22u8, 181u8, 108u8, 9u8, 157u8, 27u8, 124u8, + 53u8, 177u8, 27u8, 5u8, 16u8, 193u8, 66u8, 59u8, 87u8, 143u8, 238u8, + 251u8, 167u8, 117u8, 138u8, 246u8, 236u8, 65u8, 148u8, 20u8, 131u8, ], ) } - #[doc = " Similar to `ErasStakers`, this holds the preferences of validators."] - #[doc = ""] - #[doc = " This is keyed first by the era index to allow bulk deletion and then the stash account."] - #[doc = ""] - #[doc = " Is it removed after `HISTORY_DEPTH` eras."] - pub fn eras_validator_prefs( + #[doc = "See [`Pallet::note_stalled`]."] + pub fn note_stalled( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::ValidatorPrefs, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "ErasValidatorPrefs", - vec![ - ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), - ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), - ], + delay: alias_types::note_stalled::Delay, + best_finalized_block_number : alias_types :: note_stalled :: BestFinalizedBlockNumber, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Grandpa", + "note_stalled", + types::NoteStalled { + delay, + best_finalized_block_number, + }, [ - 134u8, 250u8, 229u8, 21u8, 44u8, 119u8, 43u8, 99u8, 69u8, 94u8, 177u8, - 180u8, 174u8, 134u8, 54u8, 25u8, 56u8, 144u8, 194u8, 149u8, 56u8, - 234u8, 78u8, 238u8, 78u8, 247u8, 205u8, 43u8, 16u8, 159u8, 92u8, 169u8, + 158u8, 25u8, 64u8, 114u8, 131u8, 139u8, 227u8, 132u8, 42u8, 107u8, + 40u8, 249u8, 18u8, 93u8, 254u8, 86u8, 37u8, 67u8, 250u8, 35u8, 241u8, + 194u8, 209u8, 20u8, 39u8, 75u8, 186u8, 21u8, 48u8, 124u8, 151u8, 31u8, ], ) } - #[doc = " The total validator era payout for the last `HISTORY_DEPTH` eras."] - #[doc = ""] - #[doc = " Eras that haven't finished yet or has been removed doesn't have reward."] - pub fn eras_validator_reward_iter( + } + } + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_grandpa::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "New authority set has been applied."] + pub struct NewAuthorities { + pub authority_set: ::std::vec::Vec<( + runtime_types::sp_consensus_grandpa::app::Public, + ::core::primitive::u64, + )>, + } + impl ::subxt::events::StaticEvent for NewAuthorities { + const PALLET: &'static str = "Grandpa"; + const EVENT: &'static str = "NewAuthorities"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Current authority set has been paused."] + pub struct Paused; + impl ::subxt::events::StaticEvent for Paused { + const PALLET: &'static str = "Grandpa"; + const EVENT: &'static str = "Paused"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Current authority set has been resumed."] + pub struct Resumed; + impl ::subxt::events::StaticEvent for Resumed { + const PALLET: &'static str = "Grandpa"; + const EVENT: &'static str = "Resumed"; + } + } + pub mod storage { + use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod state { + use super::runtime_types; + pub type State = + runtime_types::pallet_grandpa::StoredState<::core::primitive::u32>; + } + pub mod pending_change { + use super::runtime_types; + pub type PendingChange = + runtime_types::pallet_grandpa::StoredPendingChange<::core::primitive::u32>; + } + pub mod next_forced { + use super::runtime_types; + pub type NextForced = ::core::primitive::u32; + } + pub mod stalled { + use super::runtime_types; + pub type Stalled = (::core::primitive::u32, ::core::primitive::u32); + } + pub mod current_set_id { + use super::runtime_types; + pub type CurrentSetId = ::core::primitive::u64; + } + pub mod set_id_session { + use super::runtime_types; + pub type SetIdSession = ::core::primitive::u32; + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " State of the current authority set."] + pub fn state( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - (), - (), + alias_types::state::State, + ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, + (), > { ::subxt::storage::address::Address::new_static( - "Staking", - "ErasValidatorReward", + "Grandpa", + "State", vec![], [ - 185u8, 85u8, 179u8, 163u8, 178u8, 168u8, 141u8, 200u8, 59u8, 77u8, 2u8, - 197u8, 36u8, 188u8, 133u8, 117u8, 2u8, 25u8, 105u8, 132u8, 44u8, 75u8, - 15u8, 82u8, 57u8, 89u8, 242u8, 234u8, 70u8, 244u8, 198u8, 126u8, + 73u8, 71u8, 112u8, 83u8, 238u8, 75u8, 44u8, 9u8, 180u8, 33u8, 30u8, + 121u8, 98u8, 96u8, 61u8, 133u8, 16u8, 70u8, 30u8, 249u8, 34u8, 148u8, + 15u8, 239u8, 164u8, 157u8, 52u8, 27u8, 144u8, 52u8, 223u8, 109u8, ], ) } - #[doc = " The total validator era payout for the last `HISTORY_DEPTH` eras."] - #[doc = ""] - #[doc = " Eras that haven't finished yet or has been removed doesn't have reward."] - pub fn eras_validator_reward( + #[doc = " Pending change: (signaled at, scheduled change)."] + pub fn pending_change( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, + alias_types::pending_change::PendingChange, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( - "Staking", - "ErasValidatorReward", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], + "Grandpa", + "PendingChange", + vec![], [ - 185u8, 85u8, 179u8, 163u8, 178u8, 168u8, 141u8, 200u8, 59u8, 77u8, 2u8, - 197u8, 36u8, 188u8, 133u8, 117u8, 2u8, 25u8, 105u8, 132u8, 44u8, 75u8, - 15u8, 82u8, 57u8, 89u8, 242u8, 234u8, 70u8, 244u8, 198u8, 126u8, + 150u8, 194u8, 185u8, 248u8, 239u8, 43u8, 141u8, 253u8, 61u8, 106u8, + 74u8, 164u8, 209u8, 204u8, 206u8, 200u8, 32u8, 38u8, 11u8, 78u8, 84u8, + 243u8, 181u8, 142u8, 179u8, 151u8, 81u8, 204u8, 244u8, 150u8, 137u8, + 250u8, ], ) } - #[doc = " Rewards for the last `HISTORY_DEPTH` eras."] - #[doc = " If reward hasn't been set or has been removed then 0 reward is returned."] - pub fn eras_reward_points_iter( + #[doc = " next block number where we can force a change."] + pub fn next_forced( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::EraRewardPoints<::subxt::utils::AccountId32>, - (), - ::subxt::storage::address::Yes, + alias_types::next_forced::NextForced, ::subxt::storage::address::Yes, + (), + (), > { ::subxt::storage::address::Address::new_static( - "Staking", - "ErasRewardPoints", + "Grandpa", + "NextForced", vec![], [ - 135u8, 0u8, 85u8, 241u8, 213u8, 133u8, 30u8, 192u8, 251u8, 191u8, 41u8, - 38u8, 233u8, 236u8, 218u8, 246u8, 166u8, 93u8, 46u8, 37u8, 48u8, 187u8, - 172u8, 48u8, 251u8, 178u8, 75u8, 203u8, 60u8, 188u8, 204u8, 207u8, + 3u8, 231u8, 56u8, 18u8, 87u8, 112u8, 227u8, 126u8, 180u8, 131u8, 255u8, + 141u8, 82u8, 34u8, 61u8, 47u8, 234u8, 37u8, 95u8, 62u8, 33u8, 235u8, + 231u8, 122u8, 125u8, 8u8, 223u8, 95u8, 255u8, 204u8, 40u8, 97u8, ], ) } - #[doc = " Rewards for the last `HISTORY_DEPTH` eras."] - #[doc = " If reward hasn't been set or has been removed then 0 reward is returned."] - pub fn eras_reward_points( + #[doc = " `true` if we are currently stalled."] + pub fn stalled( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::EraRewardPoints<::subxt::utils::AccountId32>, - ::subxt::storage::address::Yes, + alias_types::stalled::Stalled, ::subxt::storage::address::Yes, (), + (), > { ::subxt::storage::address::Address::new_static( - "Staking", - "ErasRewardPoints", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], + "Grandpa", + "Stalled", + vec![], [ - 135u8, 0u8, 85u8, 241u8, 213u8, 133u8, 30u8, 192u8, 251u8, 191u8, 41u8, - 38u8, 233u8, 236u8, 218u8, 246u8, 166u8, 93u8, 46u8, 37u8, 48u8, 187u8, - 172u8, 48u8, 251u8, 178u8, 75u8, 203u8, 60u8, 188u8, 204u8, 207u8, + 6u8, 81u8, 205u8, 142u8, 195u8, 48u8, 0u8, 247u8, 108u8, 170u8, 10u8, + 249u8, 72u8, 206u8, 32u8, 103u8, 109u8, 57u8, 51u8, 21u8, 144u8, 204u8, + 79u8, 8u8, 191u8, 185u8, 38u8, 34u8, 118u8, 223u8, 75u8, 241u8, ], ) } - #[doc = " The total amount staked for the last `HISTORY_DEPTH` eras."] - #[doc = " If total hasn't been set or has been removed then 0 stake is returned."] - pub fn eras_total_stake_iter( + #[doc = " The number of changes (both in terms of keys and underlying economic responsibilities)"] + #[doc = " in the \"set\" of Grandpa validators from genesis."] + pub fn current_set_id( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - (), + alias_types::current_set_id::CurrentSetId, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, + (), > { ::subxt::storage::address::Address::new_static( - "Staking", - "ErasTotalStake", + "Grandpa", + "CurrentSetId", vec![], [ - 8u8, 78u8, 101u8, 62u8, 124u8, 126u8, 66u8, 26u8, 47u8, 126u8, 239u8, - 204u8, 222u8, 104u8, 19u8, 108u8, 238u8, 160u8, 112u8, 242u8, 56u8, - 2u8, 250u8, 164u8, 250u8, 213u8, 201u8, 84u8, 193u8, 117u8, 108u8, - 146u8, + 234u8, 215u8, 218u8, 42u8, 30u8, 76u8, 129u8, 40u8, 125u8, 137u8, + 207u8, 47u8, 46u8, 213u8, 159u8, 50u8, 175u8, 81u8, 155u8, 123u8, + 246u8, 175u8, 156u8, 68u8, 22u8, 113u8, 135u8, 137u8, 163u8, 18u8, + 115u8, 73u8, ], ) } - #[doc = " The total amount staked for the last `HISTORY_DEPTH` eras."] - #[doc = " If total hasn't been set or has been removed then 0 stake is returned."] - pub fn eras_total_stake( + #[doc = " A mapping from grandpa set ID to the index of the *most recent* session for which its"] + #[doc = " members were responsible."] + #[doc = ""] + #[doc = " This is only used for validating equivocation proofs. An equivocation proof must"] + #[doc = " contains a key-ownership proof for a given session, therefore we need a way to tie"] + #[doc = " together sessions and GRANDPA set ids, i.e. we need to validate that a validator"] + #[doc = " was the owner of a given key on a given session, and what the active set ID was"] + #[doc = " during that session."] + #[doc = ""] + #[doc = " TWOX-NOTE: `SetId` is not under user control."] + pub fn set_id_session_iter( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, + alias_types::set_id_session::SetIdSession, + (), (), + ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Staking", - "ErasTotalStake", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], + "Grandpa", + "SetIdSession", + vec![], [ - 8u8, 78u8, 101u8, 62u8, 124u8, 126u8, 66u8, 26u8, 47u8, 126u8, 239u8, - 204u8, 222u8, 104u8, 19u8, 108u8, 238u8, 160u8, 112u8, 242u8, 56u8, - 2u8, 250u8, 164u8, 250u8, 213u8, 201u8, 84u8, 193u8, 117u8, 108u8, - 146u8, + 47u8, 0u8, 239u8, 121u8, 187u8, 213u8, 254u8, 50u8, 238u8, 10u8, 162u8, + 65u8, 189u8, 166u8, 37u8, 74u8, 82u8, 81u8, 160u8, 20u8, 180u8, 253u8, + 238u8, 18u8, 209u8, 203u8, 38u8, 148u8, 16u8, 105u8, 72u8, 169u8, ], ) } - #[doc = " Mode of era forcing."] - pub fn force_era( + #[doc = " A mapping from grandpa set ID to the index of the *most recent* session for which its"] + #[doc = " members were responsible."] + #[doc = ""] + #[doc = " This is only used for validating equivocation proofs. An equivocation proof must"] + #[doc = " contains a key-ownership proof for a given session, therefore we need a way to tie"] + #[doc = " together sessions and GRANDPA set ids, i.e. we need to validate that a validator"] + #[doc = " was the owner of a given key on a given session, and what the active set ID was"] + #[doc = " during that session."] + #[doc = ""] + #[doc = " TWOX-NOTE: `SetId` is not under user control."] + pub fn set_id_session( &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u64>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::Forcing, - ::subxt::storage::address::Yes, + alias_types::set_id_session::SetIdSession, ::subxt::storage::address::Yes, (), + (), > { ::subxt::storage::address::Address::new_static( - "Staking", - "ForceEra", - vec![], + "Grandpa", + "SetIdSession", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], [ - 177u8, 148u8, 73u8, 108u8, 136u8, 126u8, 89u8, 18u8, 124u8, 66u8, 30u8, - 102u8, 133u8, 164u8, 78u8, 214u8, 184u8, 163u8, 75u8, 164u8, 117u8, - 233u8, 209u8, 158u8, 99u8, 208u8, 21u8, 194u8, 152u8, 82u8, 16u8, - 222u8, + 47u8, 0u8, 239u8, 121u8, 187u8, 213u8, 254u8, 50u8, 238u8, 10u8, 162u8, + 65u8, 189u8, 166u8, 37u8, 74u8, 82u8, 81u8, 160u8, 20u8, 180u8, 253u8, + 238u8, 18u8, 209u8, 203u8, 38u8, 148u8, 16u8, 105u8, 72u8, 169u8, ], ) } - #[doc = " The percentage of the slash that is distributed to reporters."] - #[doc = ""] - #[doc = " The rest of the slashed value is handled by the `Slash`."] - pub fn slash_reward_fraction( + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " Max Authorities in use"] + pub fn max_authorities( &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_arithmetic::per_things::Perbill, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "SlashRewardFraction", - vec![], + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Grandpa", + "MaxAuthorities", [ - 53u8, 88u8, 253u8, 237u8, 84u8, 228u8, 187u8, 130u8, 108u8, 195u8, - 135u8, 25u8, 75u8, 52u8, 238u8, 62u8, 133u8, 38u8, 139u8, 129u8, 216u8, - 193u8, 197u8, 216u8, 245u8, 171u8, 128u8, 207u8, 125u8, 246u8, 248u8, - 7u8, + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, ], ) } - #[doc = " The amount of currency given to reporters of a slash event which was"] - #[doc = " canceled by extraordinary circumstances (e.g. governance)."] - pub fn canceled_slash_payout( + #[doc = " The maximum number of nominators for each validator."] + pub fn max_nominators( &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "CanceledSlashPayout", - vec![], + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Grandpa", + "MaxNominators", [ - 221u8, 88u8, 134u8, 81u8, 22u8, 229u8, 100u8, 27u8, 86u8, 244u8, 229u8, - 107u8, 251u8, 119u8, 58u8, 153u8, 19u8, 20u8, 254u8, 169u8, 248u8, - 220u8, 98u8, 118u8, 48u8, 213u8, 22u8, 79u8, 242u8, 250u8, 147u8, - 173u8, + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, ], ) } - #[doc = " All unapplied slashes that are queued for later."] - pub fn unapplied_slashes_iter( + #[doc = " The maximum number of entries to keep in the set id to session index mapping."] + #[doc = ""] + #[doc = " Since the `SetIdSession` map is only used for validating equivocations this"] + #[doc = " value should relate to the bonding duration of whatever staking system is"] + #[doc = " being used (if any). If equivocation handling is not enabled then this value"] + #[doc = " can be zero."] + pub fn max_set_id_session_entries( &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec< - runtime_types::pallet_staking::UnappliedSlash< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, - >, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "UnappliedSlashes", - vec![], + ) -> ::subxt::constants::Address<::core::primitive::u64> { + ::subxt::constants::Address::new_static( + "Grandpa", + "MaxSetIdSessionEntries", [ - 158u8, 134u8, 7u8, 21u8, 200u8, 222u8, 197u8, 166u8, 199u8, 39u8, 1u8, - 167u8, 164u8, 154u8, 165u8, 118u8, 92u8, 223u8, 219u8, 136u8, 196u8, - 155u8, 243u8, 20u8, 198u8, 92u8, 198u8, 61u8, 252u8, 176u8, 175u8, - 172u8, + 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, + 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, + 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, + 246u8, ], ) } - #[doc = " All unapplied slashes that are queued for later."] - pub fn unapplied_slashes( + } + } + } + pub mod im_online { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Error` enum of this pallet."] + pub type Error = runtime_types::pallet_im_online::pallet::Error; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::pallet_im_online::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod alias_types { + use super::runtime_types; + pub mod heartbeat { + use super::runtime_types; + pub type Heartbeat = + runtime_types::pallet_im_online::Heartbeat<::core::primitive::u32>; + pub type Signature = + runtime_types::pallet_im_online::sr25519::app_sr25519::Signature; + } + } + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + 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::blocks::StaticExtrinsic for Heartbeat { + const PALLET: &'static str = "ImOnline"; + const CALL: &'static str = "heartbeat"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::heartbeat`]."] + pub fn heartbeat( + &self, + heartbeat: alias_types::heartbeat::Heartbeat, + signature: alias_types::heartbeat::Signature, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "ImOnline", + "heartbeat", + types::Heartbeat { + heartbeat, + signature, + }, + [ + 41u8, 78u8, 115u8, 250u8, 94u8, 34u8, 215u8, 28u8, 33u8, 175u8, 203u8, + 205u8, 14u8, 40u8, 197u8, 51u8, 24u8, 198u8, 173u8, 32u8, 119u8, 154u8, + 213u8, 125u8, 219u8, 3u8, 128u8, 52u8, 166u8, 223u8, 241u8, 129u8, + ], + ) + } + } + } + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_im_online::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A new heartbeat was received from `AuthorityId`."] + pub struct HeartbeatReceived { + pub authority_id: runtime_types::pallet_im_online::sr25519::app_sr25519::Public, + } + impl ::subxt::events::StaticEvent for HeartbeatReceived { + const PALLET: &'static str = "ImOnline"; + const EVENT: &'static str = "HeartbeatReceived"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "At the end of the session, no offence was committed."] + pub struct AllGood; + impl ::subxt::events::StaticEvent for AllGood { + const PALLET: &'static str = "ImOnline"; + const EVENT: &'static str = "AllGood"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "At the end of the session, at least one validator was found to be offline."] + pub struct SomeOffline { + pub offline: ::std::vec::Vec<(::subxt::utils::AccountId32, ())>, + } + impl ::subxt::events::StaticEvent for SomeOffline { + const PALLET: &'static str = "ImOnline"; + const EVENT: &'static str = "SomeOffline"; + } + } + pub mod storage { + use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod heartbeat_after { + use super::runtime_types; + pub type HeartbeatAfter = ::core::primitive::u32; + } + pub mod keys { + use super::runtime_types; + pub type Keys = + runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec< + runtime_types::pallet_im_online::sr25519::app_sr25519::Public, + >; + } + pub mod received_heartbeats { + use super::runtime_types; + pub type ReceivedHeartbeats = ::core::primitive::bool; + } + pub mod authored_blocks { + use super::runtime_types; + pub type AuthoredBlocks = ::core::primitive::u32; + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " The block number after which it's ok to send heartbeats in the current"] + #[doc = " session."] + #[doc = ""] + #[doc = " At the beginning of each session we set this to a value that should fall"] + #[doc = " roughly in the middle of the session duration. The idea is to first wait for"] + #[doc = " the validators to produce a block in the current session, so that the"] + #[doc = " heartbeat later on will not be necessary."] + #[doc = ""] + #[doc = " This value will only be used as a fallback if we fail to get a proper session"] + #[doc = " progress estimate from `NextSessionRotation`, as those estimates should be"] + #[doc = " more accurate then the value we calculate for `HeartbeatAfter`."] + pub fn heartbeat_after( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec< - runtime_types::pallet_staking::UnappliedSlash< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, - >, + alias_types::heartbeat_after::HeartbeatAfter, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( - "Staking", - "UnappliedSlashes", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], + "ImOnline", + "HeartbeatAfter", + vec![], [ - 158u8, 134u8, 7u8, 21u8, 200u8, 222u8, 197u8, 166u8, 199u8, 39u8, 1u8, - 167u8, 164u8, 154u8, 165u8, 118u8, 92u8, 223u8, 219u8, 136u8, 196u8, - 155u8, 243u8, 20u8, 198u8, 92u8, 198u8, 61u8, 252u8, 176u8, 175u8, - 172u8, + 36u8, 179u8, 76u8, 254u8, 3u8, 184u8, 154u8, 142u8, 70u8, 104u8, 44u8, + 244u8, 39u8, 97u8, 31u8, 31u8, 93u8, 228u8, 185u8, 224u8, 13u8, 160u8, + 231u8, 210u8, 110u8, 143u8, 116u8, 29u8, 0u8, 215u8, 217u8, 137u8, ], ) } - #[doc = " A mapping from still-bonded eras to the first session index of that era."] - #[doc = ""] - #[doc = " Must contains information for eras for the range:"] - #[doc = " `[active_era - bounding_duration; active_era]`"] - pub fn bonded_eras( + #[doc = " The current set of keys that may issue a heartbeat."] + pub fn keys( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::u32)>, + alias_types::keys::Keys, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( - "Staking", - "BondedEras", + "ImOnline", + "Keys", vec![], [ - 20u8, 0u8, 164u8, 169u8, 183u8, 130u8, 242u8, 167u8, 92u8, 254u8, - 191u8, 206u8, 177u8, 182u8, 219u8, 162u8, 7u8, 116u8, 223u8, 166u8, - 239u8, 216u8, 140u8, 42u8, 174u8, 237u8, 134u8, 186u8, 180u8, 62u8, - 175u8, 239u8, + 111u8, 104u8, 188u8, 46u8, 152u8, 140u8, 137u8, 244u8, 52u8, 214u8, + 115u8, 156u8, 39u8, 239u8, 15u8, 168u8, 193u8, 125u8, 57u8, 195u8, + 250u8, 156u8, 234u8, 222u8, 222u8, 253u8, 135u8, 232u8, 196u8, 163u8, + 29u8, 218u8, ], ) } - #[doc = " All slashing events on validators, mapped by era to the highest slash proportion"] - #[doc = " and slash value of the era."] - pub fn validator_slash_in_era_iter( + #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`."] + pub fn received_heartbeats_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ( - runtime_types::sp_arithmetic::per_things::Perbill, - ::core::primitive::u128, - ), + alias_types::received_heartbeats::ReceivedHeartbeats, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Staking", - "ValidatorSlashInEra", + "ImOnline", + "ReceivedHeartbeats", vec![], [ - 245u8, 72u8, 52u8, 22u8, 10u8, 177u8, 127u8, 83u8, 180u8, 246u8, 17u8, - 82u8, 6u8, 231u8, 131u8, 68u8, 73u8, 92u8, 241u8, 251u8, 32u8, 97u8, - 121u8, 137u8, 190u8, 227u8, 162u8, 16u8, 224u8, 207u8, 63u8, 184u8, + 30u8, 155u8, 42u8, 200u8, 223u8, 48u8, 127u8, 31u8, 253u8, 195u8, + 234u8, 108u8, 64u8, 27u8, 247u8, 17u8, 187u8, 199u8, 41u8, 138u8, 55u8, + 163u8, 94u8, 226u8, 10u8, 3u8, 132u8, 129u8, 8u8, 138u8, 137u8, 171u8, ], ) } - #[doc = " All slashing events on validators, mapped by era to the highest slash proportion"] - #[doc = " and slash value of the era."] - pub fn validator_slash_in_era_iter1( + #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`."] + pub fn received_heartbeats_iter1( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ( - runtime_types::sp_arithmetic::per_things::Perbill, - ::core::primitive::u128, - ), + alias_types::received_heartbeats::ReceivedHeartbeats, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Staking", - "ValidatorSlashInEra", + "ImOnline", + "ReceivedHeartbeats", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 245u8, 72u8, 52u8, 22u8, 10u8, 177u8, 127u8, 83u8, 180u8, 246u8, 17u8, - 82u8, 6u8, 231u8, 131u8, 68u8, 73u8, 92u8, 241u8, 251u8, 32u8, 97u8, - 121u8, 137u8, 190u8, 227u8, 162u8, 16u8, 224u8, 207u8, 63u8, 184u8, + 30u8, 155u8, 42u8, 200u8, 223u8, 48u8, 127u8, 31u8, 253u8, 195u8, + 234u8, 108u8, 64u8, 27u8, 247u8, 17u8, 187u8, 199u8, 41u8, 138u8, 55u8, + 163u8, 94u8, 226u8, 10u8, 3u8, 132u8, 129u8, 8u8, 138u8, 137u8, 171u8, ], ) } - #[doc = " All slashing events on validators, mapped by era to the highest slash proportion"] - #[doc = " and slash value of the era."] - pub fn validator_slash_in_era( + #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`."] + pub fn received_heartbeats( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _1: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ( - runtime_types::sp_arithmetic::per_things::Perbill, - ::core::primitive::u128, - ), + alias_types::received_heartbeats::ReceivedHeartbeats, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( - "Staking", - "ValidatorSlashInEra", + "ImOnline", + "ReceivedHeartbeats", vec![ ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), ], [ - 245u8, 72u8, 52u8, 22u8, 10u8, 177u8, 127u8, 83u8, 180u8, 246u8, 17u8, - 82u8, 6u8, 231u8, 131u8, 68u8, 73u8, 92u8, 241u8, 251u8, 32u8, 97u8, - 121u8, 137u8, 190u8, 227u8, 162u8, 16u8, 224u8, 207u8, 63u8, 184u8, + 30u8, 155u8, 42u8, 200u8, 223u8, 48u8, 127u8, 31u8, 253u8, 195u8, + 234u8, 108u8, 64u8, 27u8, 247u8, 17u8, 187u8, 199u8, 41u8, 138u8, 55u8, + 163u8, 94u8, 226u8, 10u8, 3u8, 132u8, 129u8, 8u8, 138u8, 137u8, 171u8, ], ) } - #[doc = " All slashing events on nominators, mapped by era to the highest slash value of the era."] - pub fn nominator_slash_in_era_iter( + #[doc = " For each session index, we keep a mapping of `ValidatorId` to the"] + #[doc = " number of blocks authored by the given authority."] + pub fn authored_blocks_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - (), + alias_types::authored_blocks::AuthoredBlocks, (), ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Staking", - "NominatorSlashInEra", + "ImOnline", + "AuthoredBlocks", vec![], [ - 8u8, 89u8, 171u8, 183u8, 64u8, 29u8, 44u8, 185u8, 11u8, 204u8, 67u8, - 60u8, 208u8, 132u8, 9u8, 214u8, 13u8, 148u8, 205u8, 26u8, 5u8, 7u8, - 250u8, 191u8, 83u8, 118u8, 95u8, 17u8, 40u8, 126u8, 16u8, 135u8, + 123u8, 76u8, 230u8, 113u8, 65u8, 255u8, 99u8, 79u8, 131u8, 139u8, + 218u8, 20u8, 174u8, 191u8, 224u8, 67u8, 137u8, 48u8, 146u8, 209u8, + 148u8, 69u8, 130u8, 9u8, 173u8, 253u8, 206u8, 196u8, 68u8, 160u8, + 233u8, 126u8, ], ) } - #[doc = " All slashing events on nominators, mapped by era to the highest slash value of the era."] - pub fn nominator_slash_in_era_iter1( + #[doc = " For each session index, we keep a mapping of `ValidatorId` to the"] + #[doc = " number of blocks authored by the given authority."] + pub fn authored_blocks_iter1( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - (), + alias_types::authored_blocks::AuthoredBlocks, (), ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Staking", - "NominatorSlashInEra", + "ImOnline", + "AuthoredBlocks", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 8u8, 89u8, 171u8, 183u8, 64u8, 29u8, 44u8, 185u8, 11u8, 204u8, 67u8, - 60u8, 208u8, 132u8, 9u8, 214u8, 13u8, 148u8, 205u8, 26u8, 5u8, 7u8, - 250u8, 191u8, 83u8, 118u8, 95u8, 17u8, 40u8, 126u8, 16u8, 135u8, + 123u8, 76u8, 230u8, 113u8, 65u8, 255u8, 99u8, 79u8, 131u8, 139u8, + 218u8, 20u8, 174u8, 191u8, 224u8, 67u8, 137u8, 48u8, 146u8, 209u8, + 148u8, 69u8, 130u8, 9u8, 173u8, 253u8, 206u8, 196u8, 68u8, 160u8, + 233u8, 126u8, ], ) } - #[doc = " All slashing events on nominators, mapped by era to the highest slash value of the era."] - pub fn nominator_slash_in_era( + #[doc = " For each session index, we keep a mapping of `ValidatorId` to the"] + #[doc = " number of blocks authored by the given authority."] + pub fn authored_blocks( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, + alias_types::authored_blocks::AuthoredBlocks, + ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, - (), (), > { ::subxt::storage::address::Address::new_static( - "Staking", - "NominatorSlashInEra", + "ImOnline", + "AuthoredBlocks", vec![ ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), ], [ - 8u8, 89u8, 171u8, 183u8, 64u8, 29u8, 44u8, 185u8, 11u8, 204u8, 67u8, - 60u8, 208u8, 132u8, 9u8, 214u8, 13u8, 148u8, 205u8, 26u8, 5u8, 7u8, - 250u8, 191u8, 83u8, 118u8, 95u8, 17u8, 40u8, 126u8, 16u8, 135u8, + 123u8, 76u8, 230u8, 113u8, 65u8, 255u8, 99u8, 79u8, 131u8, 139u8, + 218u8, 20u8, 174u8, 191u8, 224u8, 67u8, 137u8, 48u8, 146u8, 209u8, + 148u8, 69u8, 130u8, 9u8, 173u8, 253u8, 206u8, 196u8, 68u8, 160u8, + 233u8, 126u8, ], ) } - #[doc = " Slashing spans for stash accounts."] - pub fn slashing_spans_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::slashing::SlashingSpans, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "SlashingSpans", - vec![], - [ - 74u8, 169u8, 189u8, 252u8, 193u8, 191u8, 114u8, 107u8, 158u8, 125u8, - 252u8, 35u8, 177u8, 129u8, 99u8, 24u8, 77u8, 223u8, 238u8, 24u8, 237u8, - 225u8, 5u8, 117u8, 163u8, 180u8, 139u8, 22u8, 169u8, 185u8, 60u8, - 217u8, - ], - ) - } - #[doc = " Slashing spans for stash accounts."] - pub fn slashing_spans( + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " A configuration for base priority of unsigned transactions."] + #[doc = ""] + #[doc = " This is exposed so that it can be tuned for particular runtime, when"] + #[doc = " multiple pallets send unsigned transactions."] + pub fn unsigned_priority( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::slashing::SlashingSpans, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "SlashingSpans", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], + ) -> ::subxt::constants::Address<::core::primitive::u64> { + ::subxt::constants::Address::new_static( + "ImOnline", + "UnsignedPriority", [ - 74u8, 169u8, 189u8, 252u8, 193u8, 191u8, 114u8, 107u8, 158u8, 125u8, - 252u8, 35u8, 177u8, 129u8, 99u8, 24u8, 77u8, 223u8, 238u8, 24u8, 237u8, - 225u8, 5u8, 117u8, 163u8, 180u8, 139u8, 22u8, 169u8, 185u8, 60u8, - 217u8, + 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, + 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, + 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, + 246u8, ], ) } - #[doc = " Records information about the maximum slash of a stash within a slashing span,"] - #[doc = " as well as how much reward has been paid out."] - pub fn span_slash_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::slashing::SpanRecord<::core::primitive::u128>, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "SpanSlash", - vec![], - [ - 158u8, 168u8, 151u8, 108u8, 4u8, 168u8, 253u8, 28u8, 69u8, 111u8, 99u8, - 235u8, 175u8, 72u8, 48u8, 238u8, 239u8, 142u8, 40u8, 142u8, 97u8, 77u8, - 72u8, 123u8, 210u8, 157u8, 119u8, 180u8, 205u8, 98u8, 110u8, 215u8, - ], - ) + } + } + } + pub mod authority_discovery { + use super::root_mod; + use super::runtime_types; + } + pub mod treasury { + use super::root_mod; + use super::runtime_types; + #[doc = "Error for the treasury pallet."] + pub type Error = runtime_types::pallet_treasury::pallet::Error; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::pallet_treasury::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod alias_types { + use super::runtime_types; + pub mod propose_spend { + use super::runtime_types; + pub type Value = ::core::primitive::u128; + pub type Beneficiary = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; } - #[doc = " Records information about the maximum slash of a stash within a slashing span,"] - #[doc = " as well as how much reward has been paid out."] - pub fn span_slash_iter1( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::slashing::SpanRecord<::core::primitive::u128>, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "SpanSlash", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 158u8, 168u8, 151u8, 108u8, 4u8, 168u8, 253u8, 28u8, 69u8, 111u8, 99u8, - 235u8, 175u8, 72u8, 48u8, 238u8, 239u8, 142u8, 40u8, 142u8, 97u8, 77u8, - 72u8, 123u8, 210u8, 157u8, 119u8, 180u8, 205u8, 98u8, 110u8, 215u8, - ], - ) + pub mod reject_proposal { + use super::runtime_types; + pub type ProposalId = ::core::primitive::u32; } - #[doc = " Records information about the maximum slash of a stash within a slashing span,"] - #[doc = " as well as how much reward has been paid out."] - pub fn span_slash( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - _1: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::slashing::SpanRecord<::core::primitive::u128>, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "SpanSlash", - vec![ - ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), - ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), - ], - [ - 158u8, 168u8, 151u8, 108u8, 4u8, 168u8, 253u8, 28u8, 69u8, 111u8, 99u8, - 235u8, 175u8, 72u8, 48u8, 238u8, 239u8, 142u8, 40u8, 142u8, 97u8, 77u8, - 72u8, 123u8, 210u8, 157u8, 119u8, 180u8, 205u8, 98u8, 110u8, 215u8, - ], - ) + pub mod approve_proposal { + use super::runtime_types; + pub type ProposalId = ::core::primitive::u32; } - #[doc = " The last planned session scheduled by the session pallet."] - #[doc = ""] - #[doc = " This is basically in sync with the call to [`pallet_session::SessionManager::new_session`]."] - pub fn current_planned_session( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "CurrentPlannedSession", - vec![], - [ - 12u8, 47u8, 20u8, 104u8, 155u8, 181u8, 35u8, 91u8, 172u8, 97u8, 206u8, - 135u8, 185u8, 142u8, 46u8, 72u8, 32u8, 118u8, 225u8, 191u8, 28u8, - 130u8, 7u8, 38u8, 181u8, 233u8, 201u8, 8u8, 160u8, 161u8, 86u8, 204u8, - ], - ) + pub mod spend_local { + use super::runtime_types; + pub type Amount = ::core::primitive::u128; + pub type Beneficiary = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; } - #[doc = " Indices of validators that have offended in the active era and whether they are currently"] - #[doc = " disabled."] - #[doc = ""] - #[doc = " This value should be a superset of disabled validators since not all offences lead to the"] - #[doc = " validator being disabled (if there was no slash). This is needed to track the percentage of"] - #[doc = " validators that have offended in the current era, ensuring a new era is forced if"] - #[doc = " `OffendingValidatorsThreshold` is reached. The vec is always kept sorted so that we can find"] - #[doc = " whether a given validator has previously offended using binary search. It gets cleared when"] - #[doc = " the era ends."] - pub fn offending_validators( + pub mod remove_approval { + use super::runtime_types; + pub type ProposalId = ::core::primitive::u32; + } + pub mod spend { + use super::runtime_types; + pub type AssetKind = + runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset; + pub type Amount = ::core::primitive::u128; + pub type Beneficiary = runtime_types::xcm::VersionedMultiLocation; + pub type ValidFrom = ::core::option::Option<::core::primitive::u32>; + } + pub mod payout { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + } + pub mod check_status { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + } + pub mod void_spend { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + } + } + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ProposeSpend { + #[codec(compact)] + pub value: ::core::primitive::u128, + pub beneficiary: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + } + impl ::subxt::blocks::StaticExtrinsic for ProposeSpend { + const PALLET: &'static str = "Treasury"; + const CALL: &'static str = "propose_spend"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct RejectProposal { + #[codec(compact)] + pub proposal_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for RejectProposal { + const PALLET: &'static str = "Treasury"; + const CALL: &'static str = "reject_proposal"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ApproveProposal { + #[codec(compact)] + pub proposal_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for ApproveProposal { + const PALLET: &'static str = "Treasury"; + const CALL: &'static str = "approve_proposal"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SpendLocal { + #[codec(compact)] + pub amount: ::core::primitive::u128, + pub beneficiary: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + } + impl ::subxt::blocks::StaticExtrinsic for SpendLocal { + const PALLET: &'static str = "Treasury"; + const CALL: &'static str = "spend_local"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct RemoveApproval { + #[codec(compact)] + pub proposal_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for RemoveApproval { + const PALLET: &'static str = "Treasury"; + const CALL: &'static str = "remove_approval"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Spend { + pub asset_kind: ::std::boxed::Box< + runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset, + >, + #[codec(compact)] + pub amount: ::core::primitive::u128, + pub beneficiary: ::std::boxed::Box, + pub valid_from: ::core::option::Option<::core::primitive::u32>, + } + impl ::subxt::blocks::StaticExtrinsic for Spend { + const PALLET: &'static str = "Treasury"; + const CALL: &'static str = "spend"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Payout { + pub index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for Payout { + const PALLET: &'static str = "Treasury"; + const CALL: &'static str = "payout"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CheckStatus { + pub index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for CheckStatus { + const PALLET: &'static str = "Treasury"; + const CALL: &'static str = "check_status"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct VoidSpend { + pub index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for VoidSpend { + const PALLET: &'static str = "Treasury"; + const CALL: &'static str = "void_spend"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::propose_spend`]."] + pub fn propose_spend( &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::bool)>, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "OffendingValidators", - vec![], + value: alias_types::propose_spend::Value, + beneficiary: alias_types::propose_spend::Beneficiary, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Treasury", + "propose_spend", + types::ProposeSpend { value, beneficiary }, [ - 201u8, 31u8, 141u8, 182u8, 160u8, 180u8, 37u8, 226u8, 50u8, 65u8, - 103u8, 11u8, 38u8, 120u8, 200u8, 219u8, 219u8, 98u8, 185u8, 137u8, - 154u8, 20u8, 130u8, 163u8, 126u8, 185u8, 33u8, 194u8, 76u8, 172u8, - 70u8, 220u8, + 250u8, 230u8, 64u8, 10u8, 93u8, 132u8, 194u8, 69u8, 91u8, 50u8, 98u8, + 212u8, 72u8, 218u8, 29u8, 149u8, 2u8, 190u8, 219u8, 4u8, 25u8, 110u8, + 5u8, 199u8, 196u8, 37u8, 64u8, 57u8, 207u8, 235u8, 164u8, 226u8, ], ) } - #[doc = " The threshold for when users can start calling `chill_other` for other validators /"] - #[doc = " nominators. The threshold is compared to the actual number of validators / nominators"] - #[doc = " (`CountFor*`) in the system compared to the configured max (`Max*Count`)."] - pub fn chill_threshold( + #[doc = "See [`Pallet::reject_proposal`]."] + pub fn reject_proposal( &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_arithmetic::per_things::Percent, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "ChillThreshold", - vec![], + proposal_id: alias_types::reject_proposal::ProposalId, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Treasury", + "reject_proposal", + types::RejectProposal { proposal_id }, [ - 133u8, 222u8, 1u8, 208u8, 212u8, 216u8, 247u8, 66u8, 178u8, 96u8, 35u8, - 112u8, 33u8, 245u8, 11u8, 249u8, 255u8, 212u8, 204u8, 161u8, 44u8, - 38u8, 126u8, 151u8, 140u8, 42u8, 253u8, 101u8, 1u8, 23u8, 239u8, 39u8, + 18u8, 166u8, 80u8, 141u8, 222u8, 230u8, 4u8, 36u8, 7u8, 76u8, 12u8, + 40u8, 145u8, 114u8, 12u8, 43u8, 223u8, 78u8, 189u8, 222u8, 120u8, 80u8, + 225u8, 215u8, 119u8, 68u8, 200u8, 15u8, 25u8, 172u8, 192u8, 173u8, ], ) } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " Maximum number of nominations per nominator."] - pub fn max_nominations( + #[doc = "See [`Pallet::approve_proposal`]."] + pub fn approve_proposal( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Staking", - "MaxNominations", + proposal_id: alias_types::approve_proposal::ProposalId, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Treasury", + "approve_proposal", + types::ApproveProposal { proposal_id }, [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, + 154u8, 176u8, 152u8, 97u8, 167u8, 177u8, 78u8, 9u8, 235u8, 229u8, + 199u8, 193u8, 214u8, 3u8, 16u8, 30u8, 4u8, 104u8, 27u8, 184u8, 100u8, + 65u8, 179u8, 13u8, 91u8, 62u8, 115u8, 5u8, 219u8, 211u8, 251u8, 153u8, ], ) } - #[doc = " Number of eras to keep in history."] - #[doc = ""] - #[doc = " Following information is kept for eras in `[current_era -"] - #[doc = " HistoryDepth, current_era]`: `ErasStakers`, `ErasStakersClipped`,"] - #[doc = " `ErasValidatorPrefs`, `ErasValidatorReward`, `ErasRewardPoints`,"] - #[doc = " `ErasTotalStake`, `ErasStartSessionIndex`,"] - #[doc = " `StakingLedger.claimed_rewards`."] - #[doc = ""] - #[doc = " Must be more than the number of eras delayed by session."] - #[doc = " I.e. active era must always be in history. I.e. `active_era >"] - #[doc = " current_era - history_depth` must be guaranteed."] - #[doc = ""] - #[doc = " If migrating an existing pallet from storage value to config value,"] - #[doc = " this should be set to same value or greater as in storage."] - #[doc = ""] - #[doc = " Note: `HistoryDepth` is used as the upper bound for the `BoundedVec`"] - #[doc = " item `StakingLedger.claimed_rewards`. Setting this value lower than"] - #[doc = " the existing value can lead to inconsistencies in the"] - #[doc = " `StakingLedger` and will need to be handled properly in a migration."] - #[doc = " The test `reducing_history_depth_abrupt` shows this effect."] - pub fn history_depth(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Staking", - "HistoryDepth", + #[doc = "See [`Pallet::spend_local`]."] + pub fn spend_local( + &self, + amount: alias_types::spend_local::Amount, + beneficiary: alias_types::spend_local::Beneficiary, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Treasury", + "spend_local", + types::SpendLocal { + amount, + beneficiary, + }, [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, + 137u8, 171u8, 83u8, 247u8, 245u8, 212u8, 152u8, 127u8, 210u8, 71u8, + 254u8, 134u8, 189u8, 26u8, 249u8, 41u8, 214u8, 175u8, 24u8, 64u8, 33u8, + 90u8, 23u8, 134u8, 44u8, 110u8, 63u8, 46u8, 46u8, 146u8, 222u8, 79u8, ], ) } - #[doc = " Number of sessions per era."] - pub fn sessions_per_era( + #[doc = "See [`Pallet::remove_approval`]."] + pub fn remove_approval( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Staking", - "SessionsPerEra", + proposal_id: alias_types::remove_approval::ProposalId, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Treasury", + "remove_approval", + types::RemoveApproval { proposal_id }, [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, + 180u8, 20u8, 39u8, 227u8, 29u8, 228u8, 234u8, 36u8, 155u8, 114u8, + 197u8, 135u8, 185u8, 31u8, 56u8, 247u8, 224u8, 168u8, 254u8, 233u8, + 250u8, 134u8, 186u8, 155u8, 108u8, 84u8, 94u8, 226u8, 207u8, 130u8, + 196u8, 100u8, ], ) } - #[doc = " Number of eras that staked funds must remain bonded for."] - pub fn bonding_duration( + #[doc = "See [`Pallet::spend`]."] + pub fn spend( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Staking", - "BondingDuration", + asset_kind: alias_types::spend::AssetKind, + amount: alias_types::spend::Amount, + beneficiary: alias_types::spend::Beneficiary, + valid_from: alias_types::spend::ValidFrom, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Treasury", + "spend", + types::Spend { + asset_kind: ::std::boxed::Box::new(asset_kind), + amount, + beneficiary: ::std::boxed::Box::new(beneficiary), + valid_from, + }, [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, + 124u8, 75u8, 215u8, 13u8, 48u8, 105u8, 201u8, 35u8, 199u8, 228u8, 38u8, + 229u8, 147u8, 255u8, 237u8, 249u8, 114u8, 154u8, 129u8, 209u8, 177u8, + 17u8, 70u8, 107u8, 74u8, 175u8, 244u8, 132u8, 206u8, 24u8, 224u8, + 156u8, ], ) } - #[doc = " Number of eras that slashes are deferred by, after computation."] - #[doc = ""] - #[doc = " This should be less than the bonding duration. Set to 0 if slashes"] - #[doc = " should be applied immediately, without opportunity for intervention."] - pub fn slash_defer_duration( + #[doc = "See [`Pallet::payout`]."] + pub fn payout( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Staking", - "SlashDeferDuration", + index: alias_types::payout::Index, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Treasury", + "payout", + types::Payout { index }, [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, + 179u8, 254u8, 82u8, 94u8, 248u8, 26u8, 6u8, 34u8, 93u8, 244u8, 186u8, + 199u8, 163u8, 32u8, 110u8, 220u8, 78u8, 11u8, 168u8, 182u8, 169u8, + 56u8, 53u8, 194u8, 168u8, 218u8, 131u8, 38u8, 46u8, 156u8, 93u8, 234u8, ], ) } - #[doc = " The maximum number of nominators rewarded for each validator."] - #[doc = ""] - #[doc = " For each validator only the `$MaxNominatorRewardedPerValidator` biggest stakers can"] - #[doc = " claim their reward. This used to limit the i/o cost for the nominator payout."] - pub fn max_nominator_rewarded_per_validator( + #[doc = "See [`Pallet::check_status`]."] + pub fn check_status( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Staking", - "MaxNominatorRewardedPerValidator", + index: alias_types::check_status::Index, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Treasury", + "check_status", + types::CheckStatus { index }, [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, + 164u8, 111u8, 10u8, 11u8, 104u8, 237u8, 112u8, 240u8, 104u8, 130u8, + 179u8, 221u8, 54u8, 18u8, 8u8, 172u8, 148u8, 245u8, 110u8, 174u8, 75u8, + 38u8, 46u8, 143u8, 101u8, 232u8, 65u8, 252u8, 36u8, 152u8, 29u8, 209u8, ], ) } - #[doc = " The maximum number of `unlocking` chunks a [`StakingLedger`] can"] - #[doc = " have. Effectively determines how many unique eras a staker may be"] - #[doc = " unbonding in."] - #[doc = ""] - #[doc = " Note: `MaxUnlockingChunks` is used as the upper bound for the"] - #[doc = " `BoundedVec` item `StakingLedger.unlocking`. Setting this value"] - #[doc = " lower than the existing value can lead to inconsistencies in the"] - #[doc = " `StakingLedger` and will need to be handled properly in a runtime"] - #[doc = " migration. The test `reducing_max_unlocking_chunks_abrupt` shows"] - #[doc = " this effect."] - pub fn max_unlocking_chunks( + #[doc = "See [`Pallet::void_spend`]."] + pub fn void_spend( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Staking", - "MaxUnlockingChunks", + index: alias_types::void_spend::Index, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Treasury", + "void_spend", + types::VoidSpend { index }, [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, + 9u8, 212u8, 174u8, 92u8, 43u8, 102u8, 224u8, 124u8, 247u8, 239u8, + 196u8, 68u8, 132u8, 171u8, 116u8, 206u8, 52u8, 23u8, 92u8, 31u8, 156u8, + 160u8, 25u8, 16u8, 125u8, 60u8, 9u8, 109u8, 145u8, 139u8, 102u8, 224u8, ], ) } } } - } - pub mod offences { - use super::root_mod; - use super::runtime_types; - #[doc = "Events type."] - pub type Event = runtime_types::pallet_offences::pallet::Event; + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_treasury::pallet::Event; pub mod events { use super::runtime_types; #[derive( + :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -10706,252 +9474,72 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "There is an offence reported of the given `kind` happened at the `session_index` and"] - #[doc = "(kind-specific) time slot. This event is not deposited for duplicate slashes."] - #[doc = "\\[kind, timeslot\\]."] - pub struct Offence { - pub kind: [::core::primitive::u8; 16usize], - pub timeslot: ::std::vec::Vec<::core::primitive::u8>, + #[doc = "New proposal."] + pub struct Proposed { + pub proposal_index: ::core::primitive::u32, } - impl ::subxt::events::StaticEvent for Offence { - const PALLET: &'static str = "Offences"; - const EVENT: &'static str = "Offence"; + impl ::subxt::events::StaticEvent for Proposed { + const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "Proposed"; } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The primary structure that holds all offence records keyed by report identifiers."] - pub fn reports_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_staking::offence::OffenceDetails< - ::subxt::utils::AccountId32, - ( - ::subxt::utils::AccountId32, - runtime_types::pallet_staking::Exposure< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, - ), - >, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Offences", - "Reports", - vec![], - [ - 140u8, 14u8, 199u8, 180u8, 83u8, 5u8, 23u8, 57u8, 241u8, 41u8, 240u8, - 35u8, 80u8, 12u8, 115u8, 16u8, 2u8, 15u8, 22u8, 77u8, 25u8, 92u8, - 100u8, 39u8, 226u8, 55u8, 240u8, 80u8, 190u8, 196u8, 234u8, 177u8, - ], - ) - } - #[doc = " The primary structure that holds all offence records keyed by report identifiers."] - pub fn reports( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_staking::offence::OffenceDetails< - ::subxt::utils::AccountId32, - ( - ::subxt::utils::AccountId32, - runtime_types::pallet_staking::Exposure< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, - ), - >, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Offences", - "Reports", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 140u8, 14u8, 199u8, 180u8, 83u8, 5u8, 23u8, 57u8, 241u8, 41u8, 240u8, - 35u8, 80u8, 12u8, 115u8, 16u8, 2u8, 15u8, 22u8, 77u8, 25u8, 92u8, - 100u8, 39u8, 226u8, 55u8, 240u8, 80u8, 190u8, 196u8, 234u8, 177u8, - ], - ) - } - #[doc = " A vector of reports of the same kind that happened at the same time slot."] - pub fn concurrent_reports_index_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<::subxt::utils::H256>, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Offences", - "ConcurrentReportsIndex", - vec![], - [ - 170u8, 186u8, 72u8, 29u8, 251u8, 38u8, 193u8, 195u8, 109u8, 86u8, 0u8, - 241u8, 20u8, 235u8, 108u8, 126u8, 215u8, 82u8, 73u8, 113u8, 199u8, - 138u8, 24u8, 58u8, 216u8, 72u8, 221u8, 232u8, 252u8, 244u8, 96u8, - 247u8, - ], - ) - } - #[doc = " A vector of reports of the same kind that happened at the same time slot."] - pub fn concurrent_reports_index_iter1( - &self, - _0: impl ::std::borrow::Borrow<[::core::primitive::u8; 16usize]>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<::subxt::utils::H256>, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Offences", - "ConcurrentReportsIndex", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 170u8, 186u8, 72u8, 29u8, 251u8, 38u8, 193u8, 195u8, 109u8, 86u8, 0u8, - 241u8, 20u8, 235u8, 108u8, 126u8, 215u8, 82u8, 73u8, 113u8, 199u8, - 138u8, 24u8, 58u8, 216u8, 72u8, 221u8, 232u8, 252u8, 244u8, 96u8, - 247u8, - ], - ) - } - #[doc = " A vector of reports of the same kind that happened at the same time slot."] - pub fn concurrent_reports_index( - &self, - _0: impl ::std::borrow::Borrow<[::core::primitive::u8; 16usize]>, - _1: impl ::std::borrow::Borrow<[::core::primitive::u8]>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<::subxt::utils::H256>, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Offences", - "ConcurrentReportsIndex", - vec![ - ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), - ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), - ], - [ - 170u8, 186u8, 72u8, 29u8, 251u8, 38u8, 193u8, 195u8, 109u8, 86u8, 0u8, - 241u8, 20u8, 235u8, 108u8, 126u8, 215u8, 82u8, 73u8, 113u8, 199u8, - 138u8, 24u8, 58u8, 216u8, 72u8, 221u8, 232u8, 252u8, 244u8, 96u8, - 247u8, - ], - ) - } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "We have ended a spend period and will now allocate funds."] + pub struct Spending { + pub budget_remaining: ::core::primitive::u128, } - } - } - pub mod historical { - use super::root_mod; - use super::runtime_types; - } - pub mod session { - use super::root_mod; - use super::runtime_types; - #[doc = "Error for the session pallet."] - pub type Error = runtime_types::pallet_session::pallet::Error; - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::pallet_session::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SetKeys { - pub keys: runtime_types::polkadot_runtime::SessionKeys, - pub proof: ::std::vec::Vec<::core::primitive::u8>, - } - impl ::subxt::blocks::StaticExtrinsic for SetKeys { - const PALLET: &'static str = "Session"; - const CALL: &'static str = "set_keys"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct PurgeKeys; - impl ::subxt::blocks::StaticExtrinsic for PurgeKeys { - const PALLET: &'static str = "Session"; - const CALL: &'static str = "purge_keys"; - } + impl ::subxt::events::StaticEvent for Spending { + const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "Spending"; } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::set_keys`]."] - pub fn set_keys( - &self, - keys: runtime_types::polkadot_runtime::SessionKeys, - proof: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Session", - "set_keys", - types::SetKeys { keys, proof }, - [ - 34u8, 174u8, 125u8, 16u8, 173u8, 107u8, 253u8, 141u8, 27u8, 177u8, - 211u8, 118u8, 29u8, 108u8, 84u8, 116u8, 138u8, 212u8, 123u8, 27u8, - 87u8, 60u8, 198u8, 48u8, 4u8, 150u8, 230u8, 8u8, 36u8, 1u8, 74u8, 13u8, - ], - ) - } - #[doc = "See [`Pallet::purge_keys`]."] - pub fn purge_keys(&self) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Session", - "purge_keys", - types::PurgeKeys {}, - [ - 215u8, 204u8, 146u8, 236u8, 32u8, 78u8, 198u8, 79u8, 85u8, 214u8, 15u8, - 151u8, 158u8, 31u8, 146u8, 119u8, 119u8, 204u8, 151u8, 169u8, 226u8, - 67u8, 217u8, 39u8, 241u8, 245u8, 203u8, 240u8, 203u8, 172u8, 16u8, - 209u8, - ], - ) - } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some funds have been allocated."] + pub struct Awarded { + pub proposal_index: ::core::primitive::u32, + pub award: ::core::primitive::u128, + pub account: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for Awarded { + const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "Awarded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A proposal was rejected; funds were slashed."] + pub struct Rejected { + pub proposal_index: ::core::primitive::u32, + pub slashed: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Rejected { + const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "Rejected"; } - } - #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_session::pallet::Event; - pub mod events { - use super::runtime_types; #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, @@ -10963,271 +9551,591 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "New session has happened. Note that the argument is the session index, not the"] - #[doc = "block number as the type might suggest."] - pub struct NewSession { - pub session_index: ::core::primitive::u32, + #[doc = "Some of our funds have been burnt."] + pub struct Burnt { + pub burnt_funds: ::core::primitive::u128, } - impl ::subxt::events::StaticEvent for NewSession { - const PALLET: &'static str = "Session"; - const EVENT: &'static str = "NewSession"; + impl ::subxt::events::StaticEvent for Burnt { + const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "Burnt"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Spending has finished; this is the amount that rolls over until next spend."] + pub struct Rollover { + pub rollover_balance: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Rollover { + const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "Rollover"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some funds have been deposited."] + pub struct Deposit { + pub value: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Deposit { + const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "Deposit"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A new spend proposal has been approved."] + pub struct SpendApproved { + pub proposal_index: ::core::primitive::u32, + pub amount: ::core::primitive::u128, + pub beneficiary: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for SpendApproved { + const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "SpendApproved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The inactive funds of the pallet have been updated."] + pub struct UpdatedInactive { + pub reactivated: ::core::primitive::u128, + pub deactivated: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for UpdatedInactive { + const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "UpdatedInactive"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A new asset spend proposal has been approved."] + pub struct AssetSpendApproved { + pub index: ::core::primitive::u32, + pub asset_kind: + runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset, + pub amount: ::core::primitive::u128, + pub beneficiary: runtime_types::xcm::VersionedMultiLocation, + pub valid_from: ::core::primitive::u32, + pub expire_at: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for AssetSpendApproved { + const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "AssetSpendApproved"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An approved spend was voided."] + pub struct AssetSpendVoided { + pub index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for AssetSpendVoided { + const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "AssetSpendVoided"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A payment happened."] + pub struct Paid { + pub index: ::core::primitive::u32, + pub payment_id: ::core::primitive::u64, + } + impl ::subxt::events::StaticEvent for Paid { + const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "Paid"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A payment failed and can be retried."] + pub struct PaymentFailed { + pub index: ::core::primitive::u32, + pub payment_id: ::core::primitive::u64, + } + impl ::subxt::events::StaticEvent for PaymentFailed { + const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "PaymentFailed"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A spend was processed and removed from the storage. It might have been successfully"] + #[doc = "paid or it may have expired."] + pub struct SpendProcessed { + pub index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for SpendProcessed { + const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "SpendProcessed"; } } pub mod storage { use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod proposal_count { + use super::runtime_types; + pub type ProposalCount = ::core::primitive::u32; + } + pub mod proposals { + use super::runtime_types; + pub type Proposals = runtime_types::pallet_treasury::Proposal< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >; + } + pub mod deactivated { + use super::runtime_types; + pub type Deactivated = ::core::primitive::u128; + } + pub mod approvals { + use super::runtime_types; + pub type Approvals = + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u32, + >; + } + pub mod spend_count { + use super::runtime_types; + pub type SpendCount = ::core::primitive::u32; + } + pub mod spends { + use super::runtime_types; + pub type Spends = runtime_types::pallet_treasury::SpendStatus< + runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset, + ::core::primitive::u128, + runtime_types::xcm::VersionedMultiLocation, + ::core::primitive::u32, + ::core::primitive::u64, + >; + } + } pub struct StorageApi; impl StorageApi { - #[doc = " The current set of validators."] - pub fn validators( + #[doc = " Number of proposals that have been made."] + pub fn proposal_count( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<::subxt::utils::AccountId32>, + alias_types::proposal_count::ProposalCount, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( - "Session", - "Validators", + "Treasury", + "ProposalCount", vec![], [ - 50u8, 86u8, 154u8, 222u8, 249u8, 209u8, 156u8, 22u8, 155u8, 25u8, - 133u8, 194u8, 210u8, 50u8, 38u8, 28u8, 139u8, 201u8, 90u8, 139u8, - 115u8, 12u8, 12u8, 141u8, 4u8, 178u8, 201u8, 241u8, 223u8, 234u8, 6u8, - 86u8, + 91u8, 238u8, 246u8, 106u8, 95u8, 66u8, 83u8, 134u8, 1u8, 225u8, 164u8, + 216u8, 113u8, 101u8, 203u8, 200u8, 113u8, 97u8, 246u8, 228u8, 140u8, + 29u8, 29u8, 48u8, 176u8, 137u8, 93u8, 230u8, 56u8, 75u8, 51u8, 149u8, ], ) } - #[doc = " Current index of the session."] - pub fn current_index( + #[doc = " Proposals that have been made."] + pub fn proposals_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, + alias_types::proposals::Proposals, + (), + (), ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Treasury", + "Proposals", + vec![], + [ + 207u8, 135u8, 145u8, 146u8, 48u8, 10u8, 252u8, 40u8, 20u8, 115u8, + 205u8, 41u8, 173u8, 83u8, 115u8, 46u8, 106u8, 40u8, 130u8, 157u8, + 213u8, 87u8, 45u8, 23u8, 14u8, 167u8, 99u8, 208u8, 153u8, 163u8, 141u8, + 55u8, + ], + ) + } + #[doc = " Proposals that have been made."] + pub fn proposals( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::proposals::Proposals, ::subxt::storage::address::Yes, (), + (), > { ::subxt::storage::address::Address::new_static( - "Session", - "CurrentIndex", - vec![], + "Treasury", + "Proposals", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], [ - 167u8, 151u8, 125u8, 150u8, 159u8, 21u8, 78u8, 217u8, 237u8, 183u8, - 135u8, 65u8, 187u8, 114u8, 188u8, 206u8, 16u8, 32u8, 69u8, 208u8, - 134u8, 159u8, 232u8, 224u8, 243u8, 27u8, 31u8, 166u8, 145u8, 44u8, - 221u8, 230u8, + 207u8, 135u8, 145u8, 146u8, 48u8, 10u8, 252u8, 40u8, 20u8, 115u8, + 205u8, 41u8, 173u8, 83u8, 115u8, 46u8, 106u8, 40u8, 130u8, 157u8, + 213u8, 87u8, 45u8, 23u8, 14u8, 167u8, 99u8, 208u8, 153u8, 163u8, 141u8, + 55u8, ], ) } - #[doc = " True if the underlying economic identities or weighting behind the validators"] - #[doc = " has changed in the queued validator set."] - pub fn queued_changed( + #[doc = " The amount which has been reported as inactive to Currency."] + pub fn deactivated( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::bool, + alias_types::deactivated::Deactivated, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( - "Session", - "QueuedChanged", + "Treasury", + "Deactivated", vec![], [ - 184u8, 137u8, 224u8, 137u8, 31u8, 236u8, 95u8, 164u8, 102u8, 225u8, - 198u8, 227u8, 140u8, 37u8, 113u8, 57u8, 59u8, 4u8, 202u8, 102u8, 117u8, - 36u8, 226u8, 64u8, 113u8, 141u8, 199u8, 111u8, 99u8, 144u8, 198u8, - 153u8, + 120u8, 221u8, 159u8, 56u8, 161u8, 44u8, 54u8, 233u8, 47u8, 114u8, + 170u8, 150u8, 52u8, 24u8, 137u8, 212u8, 122u8, 247u8, 40u8, 17u8, + 208u8, 130u8, 42u8, 154u8, 33u8, 222u8, 59u8, 116u8, 0u8, 15u8, 79u8, + 123u8, ], ) } - #[doc = " The queued keys for the next session. When the next session begins, these keys"] - #[doc = " will be used to determine the validator's session keys."] - pub fn queued_keys( + #[doc = " Proposal indices that have been approved but not yet awarded."] + pub fn approvals( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<( - ::subxt::utils::AccountId32, - runtime_types::polkadot_runtime::SessionKeys, - )>, + alias_types::approvals::Approvals, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( - "Session", - "QueuedKeys", + "Treasury", + "Approvals", vec![], [ - 112u8, 98u8, 60u8, 1u8, 187u8, 198u8, 207u8, 148u8, 164u8, 235u8, - 211u8, 169u8, 230u8, 39u8, 145u8, 166u8, 131u8, 53u8, 85u8, 171u8, - 223u8, 147u8, 137u8, 135u8, 42u8, 203u8, 37u8, 27u8, 67u8, 129u8, - 103u8, 129u8, + 78u8, 147u8, 186u8, 235u8, 17u8, 40u8, 247u8, 235u8, 67u8, 222u8, 3u8, + 14u8, 248u8, 17u8, 67u8, 180u8, 93u8, 161u8, 64u8, 35u8, 119u8, 194u8, + 187u8, 226u8, 135u8, 162u8, 147u8, 174u8, 139u8, 72u8, 99u8, 212u8, ], ) } - #[doc = " Indices of disabled validators."] - #[doc = ""] - #[doc = " The vec is always kept sorted so that we can find whether a given validator is"] - #[doc = " disabled using binary search. It gets cleared when `on_session_ending` returns"] - #[doc = " a new set of identities."] - pub fn disabled_validators( + #[doc = " The count of spends that have been made."] + pub fn spend_count( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<::core::primitive::u32>, + alias_types::spend_count::SpendCount, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( - "Session", - "DisabledValidators", + "Treasury", + "SpendCount", vec![], [ - 213u8, 19u8, 168u8, 234u8, 187u8, 200u8, 180u8, 97u8, 234u8, 189u8, - 36u8, 233u8, 158u8, 184u8, 45u8, 35u8, 129u8, 213u8, 133u8, 8u8, 104u8, - 183u8, 46u8, 68u8, 154u8, 240u8, 132u8, 22u8, 247u8, 11u8, 54u8, 221u8, + 220u8, 74u8, 248u8, 52u8, 243u8, 209u8, 42u8, 236u8, 27u8, 98u8, 76u8, + 153u8, 129u8, 176u8, 34u8, 177u8, 33u8, 132u8, 21u8, 71u8, 206u8, + 146u8, 222u8, 44u8, 232u8, 246u8, 205u8, 92u8, 240u8, 136u8, 182u8, + 30u8, ], ) } - #[doc = " The next session keys for a validator."] - pub fn next_keys_iter( + #[doc = " Spends that have been approved and being processed."] + pub fn spends_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_runtime::SessionKeys, + alias_types::spends::Spends, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Session", - "NextKeys", + "Treasury", + "Spends", vec![], [ - 204u8, 75u8, 94u8, 239u8, 45u8, 174u8, 177u8, 27u8, 185u8, 143u8, 4u8, - 2u8, 157u8, 212u8, 9u8, 103u8, 51u8, 160u8, 35u8, 61u8, 118u8, 144u8, - 32u8, 217u8, 9u8, 159u8, 15u8, 177u8, 91u8, 108u8, 0u8, 219u8, + 231u8, 192u8, 40u8, 149u8, 163u8, 98u8, 111u8, 136u8, 44u8, 162u8, + 87u8, 181u8, 233u8, 204u8, 87u8, 111u8, 210u8, 225u8, 235u8, 73u8, + 217u8, 8u8, 129u8, 51u8, 54u8, 85u8, 33u8, 103u8, 186u8, 128u8, 61u8, + 5u8, ], ) } - #[doc = " The next session keys for a validator."] - pub fn next_keys( + #[doc = " Spends that have been approved and being processed."] + pub fn spends( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_runtime::SessionKeys, + alias_types::spends::Spends, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( - "Session", - "NextKeys", + "Treasury", + "Spends", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 204u8, 75u8, 94u8, 239u8, 45u8, 174u8, 177u8, 27u8, 185u8, 143u8, 4u8, - 2u8, 157u8, 212u8, 9u8, 103u8, 51u8, 160u8, 35u8, 61u8, 118u8, 144u8, - 32u8, 217u8, 9u8, 159u8, 15u8, 177u8, 91u8, 108u8, 0u8, 219u8, + 231u8, 192u8, 40u8, 149u8, 163u8, 98u8, 111u8, 136u8, 44u8, 162u8, + 87u8, 181u8, 233u8, 204u8, 87u8, 111u8, 210u8, 225u8, 235u8, 73u8, + 217u8, 8u8, 129u8, 51u8, 54u8, 85u8, 33u8, 103u8, 186u8, 128u8, 61u8, + 5u8, ], ) } - #[doc = " The owner of a key. The key is the `KeyTypeId` + the encoded key."] - pub fn key_owner_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::subxt::utils::AccountId32, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Session", - "KeyOwner", - vec![], + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " Fraction of a proposal's value that should be bonded in order to place the proposal."] + #[doc = " An accepted proposal gets these back. A rejected proposal does not."] + pub fn proposal_bond( + &self, + ) -> ::subxt::constants::Address + { + ::subxt::constants::Address::new_static( + "Treasury", + "ProposalBond", [ - 217u8, 204u8, 21u8, 114u8, 247u8, 129u8, 32u8, 242u8, 93u8, 91u8, - 253u8, 253u8, 248u8, 90u8, 12u8, 202u8, 195u8, 25u8, 18u8, 100u8, - 253u8, 109u8, 88u8, 77u8, 217u8, 140u8, 51u8, 40u8, 118u8, 35u8, 107u8, - 206u8, + 65u8, 93u8, 120u8, 165u8, 204u8, 81u8, 159u8, 163u8, 93u8, 135u8, + 114u8, 121u8, 147u8, 35u8, 215u8, 213u8, 4u8, 223u8, 83u8, 37u8, 225u8, + 200u8, 189u8, 156u8, 140u8, 36u8, 58u8, 46u8, 42u8, 232u8, 155u8, 0u8, ], ) } - #[doc = " The owner of a key. The key is the `KeyTypeId` + the encoded key."] - pub fn key_owner_iter1( + #[doc = " Minimum amount of funds that should be placed in a deposit for making a proposal."] + pub fn proposal_bond_minimum( &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::subxt::utils::AccountId32, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Session", - "KeyOwner", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Treasury", + "ProposalBondMinimum", [ - 217u8, 204u8, 21u8, 114u8, 247u8, 129u8, 32u8, 242u8, 93u8, 91u8, - 253u8, 253u8, 248u8, 90u8, 12u8, 202u8, 195u8, 25u8, 18u8, 100u8, - 253u8, 109u8, 88u8, 77u8, 217u8, 140u8, 51u8, 40u8, 118u8, 35u8, 107u8, - 206u8, + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, ], ) } - #[doc = " The owner of a key. The key is the `KeyTypeId` + the encoded key."] - pub fn key_owner( + #[doc = " Maximum amount of funds that should be placed in a deposit for making a proposal."] + pub fn proposal_bond_maximum( &self, - _0: impl ::std::borrow::Borrow, - _1: impl ::std::borrow::Borrow<[::core::primitive::u8]>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::subxt::utils::AccountId32, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Session", - "KeyOwner", - vec![ - ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), - ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ) -> ::subxt::constants::Address<::core::option::Option<::core::primitive::u128>> + { + ::subxt::constants::Address::new_static( + "Treasury", + "ProposalBondMaximum", + [ + 198u8, 51u8, 89u8, 159u8, 124u8, 251u8, 51u8, 80u8, 167u8, 193u8, 44u8, + 199u8, 80u8, 36u8, 41u8, 130u8, 137u8, 229u8, 178u8, 208u8, 37u8, + 215u8, 169u8, 183u8, 180u8, 191u8, 140u8, 240u8, 250u8, 61u8, 42u8, + 147u8, ], + ) + } + #[doc = " Period between successive spends."] + pub fn spend_period(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Treasury", + "SpendPeriod", [ - 217u8, 204u8, 21u8, 114u8, 247u8, 129u8, 32u8, 242u8, 93u8, 91u8, - 253u8, 253u8, 248u8, 90u8, 12u8, 202u8, 195u8, 25u8, 18u8, 100u8, - 253u8, 109u8, 88u8, 77u8, 217u8, 140u8, 51u8, 40u8, 118u8, 35u8, 107u8, - 206u8, + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " Percentage of spare funds (if any) that are burnt per spend period."] + pub fn burn( + &self, + ) -> ::subxt::constants::Address + { + ::subxt::constants::Address::new_static( + "Treasury", + "Burn", + [ + 65u8, 93u8, 120u8, 165u8, 204u8, 81u8, 159u8, 163u8, 93u8, 135u8, + 114u8, 121u8, 147u8, 35u8, 215u8, 213u8, 4u8, 223u8, 83u8, 37u8, 225u8, + 200u8, 189u8, 156u8, 140u8, 36u8, 58u8, 46u8, 42u8, 232u8, 155u8, 0u8, + ], + ) + } + #[doc = " The treasury's pallet id, used for deriving its sovereign account ID."] + pub fn pallet_id( + &self, + ) -> ::subxt::constants::Address + { + ::subxt::constants::Address::new_static( + "Treasury", + "PalletId", + [ + 56u8, 243u8, 53u8, 83u8, 154u8, 179u8, 170u8, 80u8, 133u8, 173u8, 61u8, + 161u8, 47u8, 225u8, 146u8, 21u8, 50u8, 229u8, 248u8, 27u8, 104u8, 58u8, + 129u8, 197u8, 102u8, 160u8, 168u8, 205u8, 154u8, 42u8, 217u8, 53u8, + ], + ) + } + #[doc = " The maximum number of approvals that can wait in the spending queue."] + #[doc = ""] + #[doc = " NOTE: This parameter is also used within the Bounties Pallet extension if enabled."] + pub fn max_approvals(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Treasury", + "MaxApprovals", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The period during which an approved treasury spend has to be claimed."] + pub fn payout_period(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Treasury", + "PayoutPeriod", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, ], ) } } } } - pub mod grandpa { + pub mod conviction_voting { use super::root_mod; use super::runtime_types; #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_grandpa::pallet::Error; + pub type Error = runtime_types::pallet_conviction_voting::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::pallet_grandpa::pallet::Call; + pub type Call = runtime_types::pallet_conviction_voting::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod alias_types { + use super::runtime_types; + pub mod vote { + use super::runtime_types; + pub type PollIndex = ::core::primitive::u32; + pub type Vote = runtime_types::pallet_conviction_voting::vote::AccountVote< + ::core::primitive::u128, + >; + } + pub mod delegate { + use super::runtime_types; + pub type Class = ::core::primitive::u16; + pub type To = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Conviction = + runtime_types::pallet_conviction_voting::conviction::Conviction; + pub type Balance = ::core::primitive::u128; + } + pub mod undelegate { + use super::runtime_types; + pub type Class = ::core::primitive::u16; + } + pub mod unlock { + use super::runtime_types; + pub type Class = ::core::primitive::u16; + pub type Target = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + } + pub mod remove_vote { + use super::runtime_types; + pub type Class = ::core::option::Option<::core::primitive::u16>; + pub type Index = ::core::primitive::u32; + } + pub mod remove_other_vote { + use super::runtime_types; + pub type Target = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Class = ::core::primitive::u16; + pub type Index = ::core::primitive::u32; + } + } pub mod types { use super::runtime_types; #[derive( @@ -11240,18 +10148,16 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ReportEquivocation { - pub equivocation_proof: ::std::boxed::Box< - runtime_types::sp_consensus_grandpa::EquivocationProof< - ::subxt::utils::H256, - ::core::primitive::u32, - >, + pub struct Vote { + #[codec(compact)] + pub poll_index: ::core::primitive::u32, + pub vote: runtime_types::pallet_conviction_voting::vote::AccountVote< + ::core::primitive::u128, >, - pub key_owner_proof: runtime_types::sp_session::MembershipProof, } - impl ::subxt::blocks::StaticExtrinsic for ReportEquivocation { - const PALLET: &'static str = "Grandpa"; - const CALL: &'static str = "report_equivocation"; + impl ::subxt::blocks::StaticExtrinsic for Vote { + const PALLET: &'static str = "ConvictionVoting"; + const CALL: &'static str = "vote"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -11263,20 +10169,18 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ReportEquivocationUnsigned { - pub equivocation_proof: ::std::boxed::Box< - runtime_types::sp_consensus_grandpa::EquivocationProof< - ::subxt::utils::H256, - ::core::primitive::u32, - >, - >, - pub key_owner_proof: runtime_types::sp_session::MembershipProof, + pub struct Delegate { + pub class: ::core::primitive::u16, + pub to: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub conviction: runtime_types::pallet_conviction_voting::conviction::Conviction, + pub balance: ::core::primitive::u128, } - impl ::subxt::blocks::StaticExtrinsic for ReportEquivocationUnsigned { - const PALLET: &'static str = "Grandpa"; - const CALL: &'static str = "report_equivocation_unsigned"; + impl ::subxt::blocks::StaticExtrinsic for Delegate { + const PALLET: &'static str = "ConvictionVoting"; + const CALL: &'static str = "delegate"; } #[derive( + :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -11286,87 +10190,192 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct NoteStalled { - pub delay: ::core::primitive::u32, - pub best_finalized_block_number: ::core::primitive::u32, + pub struct Undelegate { + pub class: ::core::primitive::u16, } - impl ::subxt::blocks::StaticExtrinsic for NoteStalled { - const PALLET: &'static str = "Grandpa"; - const CALL: &'static str = "note_stalled"; + impl ::subxt::blocks::StaticExtrinsic for Undelegate { + const PALLET: &'static str = "ConvictionVoting"; + const CALL: &'static str = "undelegate"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Unlock { + pub class: ::core::primitive::u16, + pub target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + } + impl ::subxt::blocks::StaticExtrinsic for Unlock { + const PALLET: &'static str = "ConvictionVoting"; + const CALL: &'static str = "unlock"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct RemoveVote { + pub class: ::core::option::Option<::core::primitive::u16>, + pub index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for RemoveVote { + const PALLET: &'static str = "ConvictionVoting"; + const CALL: &'static str = "remove_vote"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct RemoveOtherVote { + pub target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub class: ::core::primitive::u16, + pub index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for RemoveOtherVote { + const PALLET: &'static str = "ConvictionVoting"; + const CALL: &'static str = "remove_other_vote"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::report_equivocation`]."] - pub fn report_equivocation( + #[doc = "See [`Pallet::vote`]."] + pub fn vote( &self, - equivocation_proof: runtime_types::sp_consensus_grandpa::EquivocationProof< - ::subxt::utils::H256, - ::core::primitive::u32, - >, - key_owner_proof: runtime_types::sp_session::MembershipProof, - ) -> ::subxt::tx::Payload { + poll_index: alias_types::vote::PollIndex, + vote: alias_types::vote::Vote, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Grandpa", - "report_equivocation", - types::ReportEquivocation { - equivocation_proof: ::std::boxed::Box::new(equivocation_proof), - key_owner_proof, - }, + "ConvictionVoting", + "vote", + types::Vote { poll_index, vote }, [ - 11u8, 183u8, 81u8, 93u8, 41u8, 7u8, 70u8, 155u8, 8u8, 57u8, 177u8, - 245u8, 131u8, 79u8, 236u8, 118u8, 147u8, 114u8, 40u8, 204u8, 177u8, - 2u8, 43u8, 42u8, 2u8, 201u8, 202u8, 120u8, 150u8, 109u8, 108u8, 156u8, + 57u8, 170u8, 177u8, 168u8, 158u8, 43u8, 87u8, 242u8, 176u8, 85u8, + 230u8, 64u8, 103u8, 239u8, 190u8, 6u8, 228u8, 165u8, 248u8, 77u8, + 231u8, 221u8, 186u8, 107u8, 249u8, 201u8, 226u8, 52u8, 129u8, 90u8, + 142u8, 159u8, ], ) } - #[doc = "See [`Pallet::report_equivocation_unsigned`]."] - pub fn report_equivocation_unsigned( + #[doc = "See [`Pallet::delegate`]."] + pub fn delegate( &self, - equivocation_proof: runtime_types::sp_consensus_grandpa::EquivocationProof< - ::subxt::utils::H256, - ::core::primitive::u32, - >, - key_owner_proof: runtime_types::sp_session::MembershipProof, - ) -> ::subxt::tx::Payload { + class: alias_types::delegate::Class, + to: alias_types::delegate::To, + conviction: alias_types::delegate::Conviction, + balance: alias_types::delegate::Balance, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Grandpa", - "report_equivocation_unsigned", - types::ReportEquivocationUnsigned { - equivocation_proof: ::std::boxed::Box::new(equivocation_proof), - key_owner_proof, + "ConvictionVoting", + "delegate", + types::Delegate { + class, + to, + conviction, + balance, }, [ - 141u8, 133u8, 227u8, 65u8, 22u8, 181u8, 108u8, 9u8, 157u8, 27u8, 124u8, - 53u8, 177u8, 27u8, 5u8, 16u8, 193u8, 66u8, 59u8, 87u8, 143u8, 238u8, - 251u8, 167u8, 117u8, 138u8, 246u8, 236u8, 65u8, 148u8, 20u8, 131u8, + 223u8, 143u8, 33u8, 94u8, 32u8, 156u8, 43u8, 40u8, 142u8, 134u8, 209u8, + 134u8, 255u8, 179u8, 97u8, 46u8, 8u8, 140u8, 5u8, 29u8, 76u8, 22u8, + 36u8, 7u8, 108u8, 190u8, 220u8, 151u8, 10u8, 47u8, 89u8, 55u8, ], ) } - #[doc = "See [`Pallet::note_stalled`]."] - pub fn note_stalled( + #[doc = "See [`Pallet::undelegate`]."] + pub fn undelegate( &self, - delay: ::core::primitive::u32, - best_finalized_block_number: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + class: alias_types::undelegate::Class, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Grandpa", - "note_stalled", - types::NoteStalled { - delay, - best_finalized_block_number, + "ConvictionVoting", + "undelegate", + types::Undelegate { class }, + [ + 140u8, 232u8, 6u8, 53u8, 228u8, 8u8, 131u8, 144u8, 65u8, 66u8, 245u8, + 247u8, 147u8, 135u8, 198u8, 57u8, 82u8, 212u8, 89u8, 46u8, 236u8, + 168u8, 200u8, 220u8, 93u8, 168u8, 101u8, 29u8, 110u8, 76u8, 67u8, + 181u8, + ], + ) + } + #[doc = "See [`Pallet::unlock`]."] + pub fn unlock( + &self, + class: alias_types::unlock::Class, + target: alias_types::unlock::Target, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "ConvictionVoting", + "unlock", + types::Unlock { class, target }, + [ + 79u8, 5u8, 252u8, 237u8, 109u8, 238u8, 157u8, 237u8, 125u8, 171u8, + 65u8, 160u8, 102u8, 192u8, 5u8, 141u8, 179u8, 249u8, 253u8, 213u8, + 105u8, 251u8, 241u8, 145u8, 186u8, 177u8, 244u8, 139u8, 71u8, 140u8, + 173u8, 108u8, + ], + ) + } + #[doc = "See [`Pallet::remove_vote`]."] + pub fn remove_vote( + &self, + class: alias_types::remove_vote::Class, + index: alias_types::remove_vote::Index, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "ConvictionVoting", + "remove_vote", + types::RemoveVote { class, index }, + [ + 255u8, 108u8, 211u8, 146u8, 168u8, 231u8, 207u8, 44u8, 76u8, 24u8, + 235u8, 60u8, 23u8, 79u8, 192u8, 192u8, 46u8, 40u8, 134u8, 27u8, 125u8, + 114u8, 125u8, 247u8, 85u8, 102u8, 76u8, 159u8, 34u8, 167u8, 152u8, + 148u8, + ], + ) + } + #[doc = "See [`Pallet::remove_other_vote`]."] + pub fn remove_other_vote( + &self, + target: alias_types::remove_other_vote::Target, + class: alias_types::remove_other_vote::Class, + index: alias_types::remove_other_vote::Index, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "ConvictionVoting", + "remove_other_vote", + types::RemoveOtherVote { + target, + class, + index, }, [ - 158u8, 25u8, 64u8, 114u8, 131u8, 139u8, 227u8, 132u8, 42u8, 107u8, - 40u8, 249u8, 18u8, 93u8, 254u8, 86u8, 37u8, 67u8, 250u8, 35u8, 241u8, - 194u8, 209u8, 20u8, 39u8, 75u8, 186u8, 21u8, 48u8, 124u8, 151u8, 31u8, + 165u8, 26u8, 166u8, 37u8, 10u8, 174u8, 243u8, 10u8, 73u8, 93u8, 213u8, + 69u8, 200u8, 16u8, 48u8, 146u8, 160u8, 92u8, 28u8, 26u8, 158u8, 55u8, + 6u8, 251u8, 36u8, 132u8, 46u8, 195u8, 107u8, 34u8, 0u8, 100u8, ], ) } } } #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_grandpa::pallet::Event; + pub type Event = runtime_types::pallet_conviction_voting::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -11379,32 +10388,14 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "New authority set has been applied."] - pub struct NewAuthorities { - pub authority_set: ::std::vec::Vec<( - runtime_types::sp_consensus_grandpa::app::Public, - ::core::primitive::u64, - )>, - } - impl ::subxt::events::StaticEvent for NewAuthorities { - const PALLET: &'static str = "Grandpa"; - const EVENT: &'static str = "NewAuthorities"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Current authority set has been paused."] - pub struct Paused; - impl ::subxt::events::StaticEvent for Paused { - const PALLET: &'static str = "Grandpa"; - const EVENT: &'static str = "Paused"; + #[doc = "An account has delegated their vote to another account. \\[who, target\\]"] + pub struct Delegated( + pub ::subxt::utils::AccountId32, + pub ::subxt::utils::AccountId32, + ); + impl ::subxt::events::StaticEvent for Delegated { + const PALLET: &'static str = "ConvictionVoting"; + const EVENT: &'static str = "Delegated"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -11416,185 +10407,157 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Current authority set has been resumed."] - pub struct Resumed; - impl ::subxt::events::StaticEvent for Resumed { - const PALLET: &'static str = "Grandpa"; - const EVENT: &'static str = "Resumed"; + #[doc = "An \\[account\\] has cancelled a previous delegation operation."] + pub struct Undelegated(pub ::subxt::utils::AccountId32); + impl ::subxt::events::StaticEvent for Undelegated { + const PALLET: &'static str = "ConvictionVoting"; + const EVENT: &'static str = "Undelegated"; } } pub mod storage { use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod voting_for { + use super::runtime_types; + pub type VotingFor = runtime_types::pallet_conviction_voting::vote::Voting< + ::core::primitive::u128, + ::subxt::utils::AccountId32, + ::core::primitive::u32, + ::core::primitive::u32, + >; + } + pub mod class_locks_for { + use super::runtime_types; + pub type ClassLocksFor = + runtime_types::bounded_collections::bounded_vec::BoundedVec<( + ::core::primitive::u16, + ::core::primitive::u128, + )>; + } + } pub struct StorageApi; impl StorageApi { - #[doc = " State of the current authority set."] - pub fn state( + #[doc = " All voting for a particular voter in a particular voting class. We store the balance for the"] + #[doc = " number of votes that we have recorded."] + pub fn voting_for_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_grandpa::StoredState<::core::primitive::u32>, + alias_types::voting_for::VotingFor, + (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, - (), > { ::subxt::storage::address::Address::new_static( - "Grandpa", - "State", + "ConvictionVoting", + "VotingFor", vec![], [ - 73u8, 71u8, 112u8, 83u8, 238u8, 75u8, 44u8, 9u8, 180u8, 33u8, 30u8, - 121u8, 98u8, 96u8, 61u8, 133u8, 16u8, 70u8, 30u8, 249u8, 34u8, 148u8, - 15u8, 239u8, 164u8, 157u8, 52u8, 27u8, 144u8, 52u8, 223u8, 109u8, + 76u8, 63u8, 153u8, 193u8, 39u8, 137u8, 186u8, 29u8, 202u8, 56u8, 169u8, + 56u8, 103u8, 138u8, 192u8, 18u8, 179u8, 114u8, 56u8, 121u8, 197u8, + 12u8, 29u8, 239u8, 220u8, 231u8, 24u8, 46u8, 134u8, 99u8, 53u8, 206u8, ], ) } - #[doc = " Pending change: (signaled at, scheduled change)."] - pub fn pending_change( + #[doc = " All voting for a particular voter in a particular voting class. We store the balance for the"] + #[doc = " number of votes that we have recorded."] + pub fn voting_for_iter1( &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_grandpa::StoredPendingChange<::core::primitive::u32>, - ::subxt::storage::address::Yes, - (), + alias_types::voting_for::VotingFor, (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Grandpa", - "PendingChange", - vec![], + "ConvictionVoting", + "VotingFor", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], [ - 150u8, 194u8, 185u8, 248u8, 239u8, 43u8, 141u8, 253u8, 61u8, 106u8, - 74u8, 164u8, 209u8, 204u8, 206u8, 200u8, 32u8, 38u8, 11u8, 78u8, 84u8, - 243u8, 181u8, 142u8, 179u8, 151u8, 81u8, 204u8, 244u8, 150u8, 137u8, - 250u8, + 76u8, 63u8, 153u8, 193u8, 39u8, 137u8, 186u8, 29u8, 202u8, 56u8, 169u8, + 56u8, 103u8, 138u8, 192u8, 18u8, 179u8, 114u8, 56u8, 121u8, 197u8, + 12u8, 29u8, 239u8, 220u8, 231u8, 24u8, 46u8, 134u8, 99u8, 53u8, 206u8, ], ) } - #[doc = " next block number where we can force a change."] - pub fn next_forced( + #[doc = " All voting for a particular voter in a particular voting class. We store the balance for the"] + #[doc = " number of votes that we have recorded."] + pub fn voting_for( &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _1: impl ::std::borrow::Borrow<::core::primitive::u16>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, + alias_types::voting_for::VotingFor, + ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), - (), > { ::subxt::storage::address::Address::new_static( - "Grandpa", - "NextForced", - vec![], - [ - 3u8, 231u8, 56u8, 18u8, 87u8, 112u8, 227u8, 126u8, 180u8, 131u8, 255u8, - 141u8, 82u8, 34u8, 61u8, 47u8, 234u8, 37u8, 95u8, 62u8, 33u8, 235u8, - 231u8, 122u8, 125u8, 8u8, 223u8, 95u8, 255u8, 204u8, 40u8, 97u8, + "ConvictionVoting", + "VotingFor", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), ], - ) - } - #[doc = " `true` if we are currently stalled."] - pub fn stalled( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - (::core::primitive::u32, ::core::primitive::u32), - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Grandpa", - "Stalled", - vec![], [ - 6u8, 81u8, 205u8, 142u8, 195u8, 48u8, 0u8, 247u8, 108u8, 170u8, 10u8, - 249u8, 72u8, 206u8, 32u8, 103u8, 109u8, 57u8, 51u8, 21u8, 144u8, 204u8, - 79u8, 8u8, 191u8, 185u8, 38u8, 34u8, 118u8, 223u8, 75u8, 241u8, + 76u8, 63u8, 153u8, 193u8, 39u8, 137u8, 186u8, 29u8, 202u8, 56u8, 169u8, + 56u8, 103u8, 138u8, 192u8, 18u8, 179u8, 114u8, 56u8, 121u8, 197u8, + 12u8, 29u8, 239u8, 220u8, 231u8, 24u8, 46u8, 134u8, 99u8, 53u8, 206u8, ], ) } - #[doc = " The number of changes (both in terms of keys and underlying economic responsibilities)"] - #[doc = " in the \"set\" of Grandpa validators from genesis."] - pub fn current_set_id( + #[doc = " The voting classes which have a non-zero lock requirement and the lock amounts which they"] + #[doc = " require. The actual amount locked on behalf of this pallet should always be the maximum of"] + #[doc = " this list."] + pub fn class_locks_for_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u64, + alias_types::class_locks_for::ClassLocksFor, + (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, - (), > { ::subxt::storage::address::Address::new_static( - "Grandpa", - "CurrentSetId", + "ConvictionVoting", + "ClassLocksFor", vec![], [ - 234u8, 215u8, 218u8, 42u8, 30u8, 76u8, 129u8, 40u8, 125u8, 137u8, - 207u8, 47u8, 46u8, 213u8, 159u8, 50u8, 175u8, 81u8, 155u8, 123u8, - 246u8, 175u8, 156u8, 68u8, 22u8, 113u8, 135u8, 137u8, 163u8, 18u8, - 115u8, 73u8, + 74u8, 74u8, 8u8, 82u8, 215u8, 61u8, 13u8, 9u8, 44u8, 222u8, 33u8, + 245u8, 195u8, 124u8, 6u8, 174u8, 65u8, 245u8, 71u8, 42u8, 47u8, 46u8, + 164u8, 231u8, 11u8, 245u8, 115u8, 207u8, 209u8, 137u8, 90u8, 6u8, ], ) } - #[doc = " A mapping from grandpa set ID to the index of the *most recent* session for which its"] - #[doc = " members were responsible."] - #[doc = ""] - #[doc = " This is only used for validating equivocation proofs. An equivocation proof must"] - #[doc = " contains a key-ownership proof for a given session, therefore we need a way to tie"] - #[doc = " together sessions and GRANDPA set ids, i.e. we need to validate that a validator"] - #[doc = " was the owner of a given key on a given session, and what the active set ID was"] - #[doc = " during that session."] - #[doc = ""] - #[doc = " TWOX-NOTE: `SetId` is not under user control."] - pub fn set_id_session_iter( + #[doc = " The voting classes which have a non-zero lock requirement and the lock amounts which they"] + #[doc = " require. The actual amount locked on behalf of this pallet should always be the maximum of"] + #[doc = " this list."] + pub fn class_locks_for( &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - (), - (), + alias_types::class_locks_for::ClassLocksFor, ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Grandpa", - "SetIdSession", - vec![], - [ - 47u8, 0u8, 239u8, 121u8, 187u8, 213u8, 254u8, 50u8, 238u8, 10u8, 162u8, - 65u8, 189u8, 166u8, 37u8, 74u8, 82u8, 81u8, 160u8, 20u8, 180u8, 253u8, - 238u8, 18u8, 209u8, 203u8, 38u8, 148u8, 16u8, 105u8, 72u8, 169u8, - ], - ) - } - #[doc = " A mapping from grandpa set ID to the index of the *most recent* session for which its"] - #[doc = " members were responsible."] - #[doc = ""] - #[doc = " This is only used for validating equivocation proofs. An equivocation proof must"] - #[doc = " contains a key-ownership proof for a given session, therefore we need a way to tie"] - #[doc = " together sessions and GRANDPA set ids, i.e. we need to validate that a validator"] - #[doc = " was the owner of a given key on a given session, and what the active set ID was"] - #[doc = " during that session."] - #[doc = ""] - #[doc = " TWOX-NOTE: `SetId` is not under user control."] - pub fn set_id_session( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u64>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, ::subxt::storage::address::Yes, (), - (), > { ::subxt::storage::address::Address::new_static( - "Grandpa", - "SetIdSession", + "ConvictionVoting", + "ClassLocksFor", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 47u8, 0u8, 239u8, 121u8, 187u8, 213u8, 254u8, 50u8, 238u8, 10u8, 162u8, - 65u8, 189u8, 166u8, 37u8, 74u8, 82u8, 81u8, 160u8, 20u8, 180u8, 253u8, - 238u8, 18u8, 209u8, 203u8, 38u8, 148u8, 16u8, 105u8, 72u8, 169u8, + 74u8, 74u8, 8u8, 82u8, 215u8, 61u8, 13u8, 9u8, 44u8, 222u8, 33u8, + 245u8, 195u8, 124u8, 6u8, 174u8, 65u8, 245u8, 71u8, 42u8, 47u8, 46u8, + 164u8, 231u8, 11u8, 245u8, 115u8, 207u8, 209u8, 137u8, 90u8, 6u8, ], ) } @@ -11604,13 +10567,14 @@ pub mod api { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - #[doc = " Max Authorities in use"] - pub fn max_authorities( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + #[doc = " The maximum number of concurrent votes an account may have."] + #[doc = ""] + #[doc = " Also used to compute weight, an overly large value can lead to extrinsics with large"] + #[doc = " weight estimation: see `delegate` for instance."] + pub fn max_votes(&self) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( - "Grandpa", - "MaxAuthorities", + "ConvictionVoting", + "MaxVotes", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, @@ -11619,40 +10583,86 @@ pub mod api { ], ) } - #[doc = " The maximum number of entries to keep in the set id to session index mapping."] + #[doc = " The minimum period of vote locking."] #[doc = ""] - #[doc = " Since the `SetIdSession` map is only used for validating equivocations this"] - #[doc = " value should relate to the bonding duration of whatever staking system is"] - #[doc = " being used (if any). If equivocation handling is not enabled then this value"] - #[doc = " can be zero."] - pub fn max_set_id_session_entries( + #[doc = " It should be no shorter than enactment period to ensure that in the case of an approval,"] + #[doc = " those successful voters are locked into the consequences that their votes entail."] + pub fn vote_locking_period( &self, - ) -> ::subxt::constants::Address<::core::primitive::u64> { + ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( - "Grandpa", - "MaxSetIdSessionEntries", + "ConvictionVoting", + "VoteLockingPeriod", [ - 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, - 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, - 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, - 246u8, + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, ], ) } } } } - pub mod im_online { + pub mod referenda { use super::root_mod; use super::runtime_types; #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_im_online::pallet::Error; + pub type Error = runtime_types::pallet_referenda::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::pallet_im_online::pallet::Call; + pub type Call = runtime_types::pallet_referenda::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod alias_types { + use super::runtime_types; + pub mod submit { + use super::runtime_types; + pub type ProposalOrigin = runtime_types::rococo_runtime::OriginCaller; + pub type Proposal = runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::rococo_runtime::RuntimeCall, + runtime_types::sp_runtime::traits::BlakeTwo256, + >; + pub type EnactmentMoment = + runtime_types::frame_support::traits::schedule::DispatchTime< + ::core::primitive::u32, + >; + } + pub mod place_decision_deposit { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + } + pub mod refund_decision_deposit { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + } + pub mod cancel { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + } + pub mod kill { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + } + pub mod nudge_referendum { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + } + pub mod one_fewer_deciding { + use super::runtime_types; + pub type Track = ::core::primitive::u16; + } + pub mod refund_submission_deposit { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + } + pub mod set_metadata { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type MaybeHash = ::core::option::Option<::subxt::utils::H256>; + } + } pub mod types { use super::runtime_types; #[derive( @@ -11665,42 +10675,330 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - 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, + pub struct Submit { + pub proposal_origin: + ::std::boxed::Box, + pub proposal: runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::rococo_runtime::RuntimeCall, + runtime_types::sp_runtime::traits::BlakeTwo256, + >, + pub enactment_moment: + runtime_types::frame_support::traits::schedule::DispatchTime< + ::core::primitive::u32, + >, } - impl ::subxt::blocks::StaticExtrinsic for Heartbeat { - const PALLET: &'static str = "ImOnline"; - const CALL: &'static str = "heartbeat"; + impl ::subxt::blocks::StaticExtrinsic for Submit { + const PALLET: &'static str = "Referenda"; + const CALL: &'static str = "submit"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct PlaceDecisionDeposit { + pub index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for PlaceDecisionDeposit { + const PALLET: &'static str = "Referenda"; + const CALL: &'static str = "place_decision_deposit"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct RefundDecisionDeposit { + pub index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for RefundDecisionDeposit { + const PALLET: &'static str = "Referenda"; + const CALL: &'static str = "refund_decision_deposit"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Cancel { + pub index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for Cancel { + const PALLET: &'static str = "Referenda"; + const CALL: &'static str = "cancel"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Kill { + pub index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for Kill { + const PALLET: &'static str = "Referenda"; + const CALL: &'static str = "kill"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct NudgeReferendum { + pub index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for NudgeReferendum { + const PALLET: &'static str = "Referenda"; + const CALL: &'static str = "nudge_referendum"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct OneFewerDeciding { + pub track: ::core::primitive::u16, + } + impl ::subxt::blocks::StaticExtrinsic for OneFewerDeciding { + const PALLET: &'static str = "Referenda"; + const CALL: &'static str = "one_fewer_deciding"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct RefundSubmissionDeposit { + pub index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for RefundSubmissionDeposit { + const PALLET: &'static str = "Referenda"; + const CALL: &'static str = "refund_submission_deposit"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SetMetadata { + pub index: ::core::primitive::u32, + pub maybe_hash: ::core::option::Option<::subxt::utils::H256>, + } + impl ::subxt::blocks::StaticExtrinsic for SetMetadata { + const PALLET: &'static str = "Referenda"; + const CALL: &'static str = "set_metadata"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::heartbeat`]."] - pub fn heartbeat( + #[doc = "See [`Pallet::submit`]."] + pub fn submit( &self, - heartbeat: runtime_types::pallet_im_online::Heartbeat<::core::primitive::u32>, - signature: runtime_types::pallet_im_online::sr25519::app_sr25519::Signature, - ) -> ::subxt::tx::Payload { + proposal_origin: alias_types::submit::ProposalOrigin, + proposal: alias_types::submit::Proposal, + enactment_moment: alias_types::submit::EnactmentMoment, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "ImOnline", - "heartbeat", - types::Heartbeat { - heartbeat, - signature, + "Referenda", + "submit", + types::Submit { + proposal_origin: ::std::boxed::Box::new(proposal_origin), + proposal, + enactment_moment, }, [ - 41u8, 78u8, 115u8, 250u8, 94u8, 34u8, 215u8, 28u8, 33u8, 175u8, 203u8, - 205u8, 14u8, 40u8, 197u8, 51u8, 24u8, 198u8, 173u8, 32u8, 119u8, 154u8, - 213u8, 125u8, 219u8, 3u8, 128u8, 52u8, 166u8, 223u8, 241u8, 129u8, + 116u8, 212u8, 158u8, 18u8, 89u8, 136u8, 153u8, 97u8, 43u8, 197u8, + 200u8, 161u8, 145u8, 102u8, 19u8, 25u8, 135u8, 13u8, 199u8, 101u8, + 107u8, 221u8, 244u8, 15u8, 192u8, 176u8, 3u8, 154u8, 248u8, 70u8, + 113u8, 69u8, + ], + ) + } + #[doc = "See [`Pallet::place_decision_deposit`]."] + pub fn place_decision_deposit( + &self, + index: alias_types::place_decision_deposit::Index, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Referenda", + "place_decision_deposit", + types::PlaceDecisionDeposit { index }, + [ + 247u8, 158u8, 55u8, 191u8, 188u8, 200u8, 3u8, 47u8, 20u8, 175u8, 86u8, + 203u8, 52u8, 253u8, 91u8, 131u8, 21u8, 213u8, 56u8, 68u8, 40u8, 84u8, + 184u8, 30u8, 9u8, 193u8, 63u8, 182u8, 178u8, 241u8, 247u8, 220u8, + ], + ) + } + #[doc = "See [`Pallet::refund_decision_deposit`]."] + pub fn refund_decision_deposit( + &self, + index: alias_types::refund_decision_deposit::Index, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Referenda", + "refund_decision_deposit", + types::RefundDecisionDeposit { index }, + [ + 159u8, 19u8, 35u8, 216u8, 114u8, 105u8, 18u8, 42u8, 148u8, 151u8, + 136u8, 92u8, 117u8, 30u8, 29u8, 41u8, 238u8, 58u8, 195u8, 91u8, 115u8, + 135u8, 96u8, 99u8, 154u8, 233u8, 8u8, 249u8, 145u8, 165u8, 77u8, 164u8, + ], + ) + } + #[doc = "See [`Pallet::cancel`]."] + pub fn cancel( + &self, + index: alias_types::cancel::Index, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Referenda", + "cancel", + types::Cancel { index }, + [ + 55u8, 206u8, 119u8, 156u8, 238u8, 165u8, 193u8, 73u8, 242u8, 13u8, + 212u8, 75u8, 136u8, 156u8, 151u8, 14u8, 35u8, 41u8, 156u8, 107u8, 60u8, + 190u8, 39u8, 216u8, 8u8, 74u8, 213u8, 130u8, 160u8, 131u8, 237u8, + 122u8, + ], + ) + } + #[doc = "See [`Pallet::kill`]."] + pub fn kill( + &self, + index: alias_types::kill::Index, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Referenda", + "kill", + types::Kill { index }, + [ + 50u8, 89u8, 57u8, 0u8, 87u8, 129u8, 113u8, 140u8, 179u8, 178u8, 126u8, + 198u8, 92u8, 92u8, 189u8, 64u8, 123u8, 232u8, 57u8, 227u8, 223u8, + 219u8, 73u8, 217u8, 179u8, 44u8, 210u8, 125u8, 180u8, 10u8, 143u8, + 48u8, + ], + ) + } + #[doc = "See [`Pallet::nudge_referendum`]."] + pub fn nudge_referendum( + &self, + index: alias_types::nudge_referendum::Index, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Referenda", + "nudge_referendum", + types::NudgeReferendum { index }, + [ + 75u8, 99u8, 172u8, 30u8, 170u8, 150u8, 211u8, 229u8, 249u8, 128u8, + 194u8, 246u8, 100u8, 142u8, 193u8, 184u8, 232u8, 81u8, 29u8, 17u8, + 99u8, 91u8, 236u8, 85u8, 230u8, 226u8, 57u8, 115u8, 45u8, 170u8, 54u8, + 213u8, + ], + ) + } + #[doc = "See [`Pallet::one_fewer_deciding`]."] + pub fn one_fewer_deciding( + &self, + track: alias_types::one_fewer_deciding::Track, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Referenda", + "one_fewer_deciding", + types::OneFewerDeciding { track }, + [ + 15u8, 84u8, 79u8, 231u8, 21u8, 239u8, 244u8, 143u8, 183u8, 215u8, + 181u8, 25u8, 225u8, 195u8, 95u8, 171u8, 17u8, 156u8, 182u8, 128u8, + 111u8, 40u8, 151u8, 102u8, 196u8, 55u8, 36u8, 212u8, 89u8, 190u8, + 131u8, 167u8, + ], + ) + } + #[doc = "See [`Pallet::refund_submission_deposit`]."] + pub fn refund_submission_deposit( + &self, + index: alias_types::refund_submission_deposit::Index, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Referenda", + "refund_submission_deposit", + types::RefundSubmissionDeposit { index }, + [ + 20u8, 217u8, 115u8, 6u8, 1u8, 60u8, 54u8, 136u8, 35u8, 41u8, 38u8, + 23u8, 85u8, 100u8, 141u8, 126u8, 30u8, 160u8, 61u8, 46u8, 134u8, 98u8, + 82u8, 38u8, 211u8, 124u8, 208u8, 222u8, 210u8, 10u8, 155u8, 122u8, + ], + ) + } + #[doc = "See [`Pallet::set_metadata`]."] + pub fn set_metadata( + &self, + index: alias_types::set_metadata::Index, + maybe_hash: alias_types::set_metadata::MaybeHash, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Referenda", + "set_metadata", + types::SetMetadata { index, maybe_hash }, + [ + 207u8, 29u8, 146u8, 233u8, 219u8, 205u8, 88u8, 118u8, 106u8, 61u8, + 124u8, 101u8, 2u8, 41u8, 169u8, 70u8, 114u8, 189u8, 162u8, 118u8, 1u8, + 108u8, 234u8, 98u8, 245u8, 245u8, 183u8, 126u8, 89u8, 13u8, 112u8, + 88u8, ], ) } } } #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_im_online::pallet::Event; + pub type Event = runtime_types::pallet_referenda::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -11713,13 +11011,18 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A new heartbeat was received from `AuthorityId`."] - pub struct HeartbeatReceived { - pub authority_id: runtime_types::pallet_im_online::sr25519::app_sr25519::Public, + #[doc = "A referendum has been submitted."] + pub struct Submitted { + pub index: ::core::primitive::u32, + pub track: ::core::primitive::u16, + pub proposal: runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::rococo_runtime::RuntimeCall, + runtime_types::sp_runtime::traits::BlakeTwo256, + >, } - impl ::subxt::events::StaticEvent for HeartbeatReceived { - const PALLET: &'static str = "ImOnline"; - const EVENT: &'static str = "HeartbeatReceived"; + impl ::subxt::events::StaticEvent for Submitted { + const PALLET: &'static str = "Referenda"; + const EVENT: &'static str = "Submitted"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -11731,14 +11034,18 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "At the end of the session, no offence was committed."] - pub struct AllGood; - impl ::subxt::events::StaticEvent for AllGood { - const PALLET: &'static str = "ImOnline"; - const EVENT: &'static str = "AllGood"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, + #[doc = "The decision deposit has been placed."] + pub struct DecisionDepositPlaced { + pub index: ::core::primitive::u32, + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for DecisionDepositPlaced { + const PALLET: &'static str = "Referenda"; + const EVENT: &'static str = "DecisionDepositPlaced"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, @@ -11747,509 +11054,677 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "At the end of the session, at least one validator was found to be offline."] - pub struct SomeOffline { - pub offline: ::std::vec::Vec<( - ::subxt::utils::AccountId32, - runtime_types::pallet_staking::Exposure< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, - )>, + #[doc = "The decision deposit has been refunded."] + pub struct DecisionDepositRefunded { + pub index: ::core::primitive::u32, + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, } - impl ::subxt::events::StaticEvent for SomeOffline { - const PALLET: &'static str = "ImOnline"; - const EVENT: &'static str = "SomeOffline"; + impl ::subxt::events::StaticEvent for DecisionDepositRefunded { + const PALLET: &'static str = "Referenda"; + const EVENT: &'static str = "DecisionDepositRefunded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A deposit has been slashed."] + pub struct DepositSlashed { + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for DepositSlashed { + const PALLET: &'static str = "Referenda"; + const EVENT: &'static str = "DepositSlashed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A referendum has moved into the deciding phase."] + pub struct DecisionStarted { + pub index: ::core::primitive::u32, + pub track: ::core::primitive::u16, + pub proposal: runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::rococo_runtime::RuntimeCall, + runtime_types::sp_runtime::traits::BlakeTwo256, + >, + pub tally: + runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>, + } + impl ::subxt::events::StaticEvent for DecisionStarted { + const PALLET: &'static str = "Referenda"; + const EVENT: &'static str = "DecisionStarted"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ConfirmStarted { + pub index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for ConfirmStarted { + const PALLET: &'static str = "Referenda"; + const EVENT: &'static str = "ConfirmStarted"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ConfirmAborted { + pub index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for ConfirmAborted { + const PALLET: &'static str = "Referenda"; + const EVENT: &'static str = "ConfirmAborted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A referendum has ended its confirmation phase and is ready for approval."] + pub struct Confirmed { + pub index: ::core::primitive::u32, + pub tally: + runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>, + } + impl ::subxt::events::StaticEvent for Confirmed { + const PALLET: &'static str = "Referenda"; + const EVENT: &'static str = "Confirmed"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A referendum has been approved and its proposal has been scheduled."] + pub struct Approved { + pub index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for Approved { + const PALLET: &'static str = "Referenda"; + const EVENT: &'static str = "Approved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A proposal has been rejected by referendum."] + pub struct Rejected { + pub index: ::core::primitive::u32, + pub tally: + runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>, + } + impl ::subxt::events::StaticEvent for Rejected { + const PALLET: &'static str = "Referenda"; + const EVENT: &'static str = "Rejected"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A referendum has been timed out without being decided."] + pub struct TimedOut { + pub index: ::core::primitive::u32, + pub tally: + runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>, + } + impl ::subxt::events::StaticEvent for TimedOut { + const PALLET: &'static str = "Referenda"; + const EVENT: &'static str = "TimedOut"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A referendum has been cancelled."] + pub struct Cancelled { + pub index: ::core::primitive::u32, + pub tally: + runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>, + } + impl ::subxt::events::StaticEvent for Cancelled { + const PALLET: &'static str = "Referenda"; + const EVENT: &'static str = "Cancelled"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A referendum has been killed."] + pub struct Killed { + pub index: ::core::primitive::u32, + pub tally: + runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>, + } + impl ::subxt::events::StaticEvent for Killed { + const PALLET: &'static str = "Referenda"; + const EVENT: &'static str = "Killed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The submission deposit has been refunded."] + pub struct SubmissionDepositRefunded { + pub index: ::core::primitive::u32, + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for SubmissionDepositRefunded { + const PALLET: &'static str = "Referenda"; + const EVENT: &'static str = "SubmissionDepositRefunded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Metadata for a referendum has been set."] + pub struct MetadataSet { + pub index: ::core::primitive::u32, + pub hash: ::subxt::utils::H256, + } + impl ::subxt::events::StaticEvent for MetadataSet { + const PALLET: &'static str = "Referenda"; + const EVENT: &'static str = "MetadataSet"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Metadata for a referendum has been cleared."] + pub struct MetadataCleared { + pub index: ::core::primitive::u32, + pub hash: ::subxt::utils::H256, + } + impl ::subxt::events::StaticEvent for MetadataCleared { + const PALLET: &'static str = "Referenda"; + const EVENT: &'static str = "MetadataCleared"; } } pub mod storage { use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod referendum_count { + use super::runtime_types; + pub type ReferendumCount = ::core::primitive::u32; + } + pub mod referendum_info_for { + use super::runtime_types; + pub type ReferendumInfoFor = + runtime_types::pallet_referenda::types::ReferendumInfo< + ::core::primitive::u16, + runtime_types::rococo_runtime::OriginCaller, + ::core::primitive::u32, + runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::rococo_runtime::RuntimeCall, + runtime_types::sp_runtime::traits::BlakeTwo256, + >, + ::core::primitive::u128, + runtime_types::pallet_conviction_voting::types::Tally< + ::core::primitive::u128, + >, + ::subxt::utils::AccountId32, + (::core::primitive::u32, ::core::primitive::u32), + >; + } + pub mod track_queue { + use super::runtime_types; + pub type TrackQueue = + runtime_types::bounded_collections::bounded_vec::BoundedVec<( + ::core::primitive::u32, + ::core::primitive::u128, + )>; + } + pub mod deciding_count { + use super::runtime_types; + pub type DecidingCount = ::core::primitive::u32; + } + pub mod metadata_of { + use super::runtime_types; + pub type MetadataOf = ::subxt::utils::H256; + } + } pub struct StorageApi; impl StorageApi { - #[doc = " The block number after which it's ok to send heartbeats in the current"] - #[doc = " session."] - #[doc = ""] - #[doc = " At the beginning of each session we set this to a value that should fall"] - #[doc = " roughly in the middle of the session duration. The idea is to first wait for"] - #[doc = " the validators to produce a block in the current session, so that the"] - #[doc = " heartbeat later on will not be necessary."] - #[doc = ""] - #[doc = " This value will only be used as a fallback if we fail to get a proper session"] - #[doc = " progress estimate from `NextSessionRotation`, as those estimates should be"] - #[doc = " more accurate then the value we calculate for `HeartbeatAfter`."] - pub fn heartbeat_after( + #[doc = " The next free referendum index, aka the number of referenda started so far."] + pub fn referendum_count( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, + alias_types::referendum_count::ReferendumCount, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( - "ImOnline", - "HeartbeatAfter", + "Referenda", + "ReferendumCount", vec![], [ - 36u8, 179u8, 76u8, 254u8, 3u8, 184u8, 154u8, 142u8, 70u8, 104u8, 44u8, - 244u8, 39u8, 97u8, 31u8, 31u8, 93u8, 228u8, 185u8, 224u8, 13u8, 160u8, - 231u8, 210u8, 110u8, 143u8, 116u8, 29u8, 0u8, 215u8, 217u8, 137u8, + 64u8, 145u8, 232u8, 153u8, 121u8, 87u8, 128u8, 253u8, 170u8, 192u8, + 139u8, 18u8, 0u8, 33u8, 243u8, 11u8, 238u8, 222u8, 244u8, 5u8, 247u8, + 198u8, 149u8, 31u8, 122u8, 208u8, 86u8, 179u8, 166u8, 167u8, 93u8, + 67u8, ], ) } - #[doc = " The current set of keys that may issue a heartbeat."] - pub fn keys( + #[doc = " Information concerning any given referendum."] + pub fn referendum_info_for_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec< - runtime_types::pallet_im_online::sr25519::app_sr25519::Public, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, + alias_types::referendum_info_for::ReferendumInfoFor, + (), (), + ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "ImOnline", - "Keys", + "Referenda", + "ReferendumInfoFor", vec![], [ - 111u8, 104u8, 188u8, 46u8, 152u8, 140u8, 137u8, 244u8, 52u8, 214u8, - 115u8, 156u8, 39u8, 239u8, 15u8, 168u8, 193u8, 125u8, 57u8, 195u8, - 250u8, 156u8, 234u8, 222u8, 222u8, 253u8, 135u8, 232u8, 196u8, 163u8, - 29u8, 218u8, + 82u8, 199u8, 121u8, 36u8, 81u8, 129u8, 79u8, 226u8, 19u8, 57u8, 26u8, + 76u8, 195u8, 60u8, 78u8, 91u8, 198u8, 250u8, 105u8, 111u8, 235u8, 11u8, + 195u8, 4u8, 39u8, 92u8, 156u8, 53u8, 248u8, 89u8, 26u8, 112u8, ], ) } - #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`."] - pub fn received_heartbeats_iter( + #[doc = " Information concerning any given referendum."] + pub fn referendum_info_for( &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::bool, + alias_types::referendum_info_for::ReferendumInfoFor, + ::subxt::storage::address::Yes, (), (), - ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "ImOnline", - "ReceivedHeartbeats", - vec![], + "Referenda", + "ReferendumInfoFor", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], [ - 30u8, 155u8, 42u8, 200u8, 223u8, 48u8, 127u8, 31u8, 253u8, 195u8, - 234u8, 108u8, 64u8, 27u8, 247u8, 17u8, 187u8, 199u8, 41u8, 138u8, 55u8, - 163u8, 94u8, 226u8, 10u8, 3u8, 132u8, 129u8, 8u8, 138u8, 137u8, 171u8, + 82u8, 199u8, 121u8, 36u8, 81u8, 129u8, 79u8, 226u8, 19u8, 57u8, 26u8, + 76u8, 195u8, 60u8, 78u8, 91u8, 198u8, 250u8, 105u8, 111u8, 235u8, 11u8, + 195u8, 4u8, 39u8, 92u8, 156u8, 53u8, 248u8, 89u8, 26u8, 112u8, ], ) } - #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`."] - pub fn received_heartbeats_iter1( + #[doc = " The sorted list of referenda ready to be decided but not yet being decided, ordered by"] + #[doc = " conviction-weighted approvals."] + #[doc = ""] + #[doc = " This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`."] + pub fn track_queue_iter( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::bool, - (), + alias_types::track_queue::TrackQueue, (), ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "ImOnline", - "ReceivedHeartbeats", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], + "Referenda", + "TrackQueue", + vec![], [ - 30u8, 155u8, 42u8, 200u8, 223u8, 48u8, 127u8, 31u8, 253u8, 195u8, - 234u8, 108u8, 64u8, 27u8, 247u8, 17u8, 187u8, 199u8, 41u8, 138u8, 55u8, - 163u8, 94u8, 226u8, 10u8, 3u8, 132u8, 129u8, 8u8, 138u8, 137u8, 171u8, + 125u8, 59u8, 111u8, 68u8, 27u8, 236u8, 82u8, 55u8, 83u8, 159u8, 105u8, + 20u8, 241u8, 118u8, 58u8, 141u8, 103u8, 60u8, 246u8, 49u8, 121u8, + 183u8, 7u8, 203u8, 225u8, 67u8, 132u8, 79u8, 150u8, 107u8, 71u8, 89u8, ], ) } - #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`."] - pub fn received_heartbeats( + #[doc = " The sorted list of referenda ready to be decided but not yet being decided, ordered by"] + #[doc = " conviction-weighted approvals."] + #[doc = ""] + #[doc = " This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`."] + pub fn track_queue( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow<::core::primitive::u16>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::bool, + alias_types::track_queue::TrackQueue, + ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, - (), (), > { ::subxt::storage::address::Address::new_static( - "ImOnline", - "ReceivedHeartbeats", - vec![ - ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), - ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), - ], + "Referenda", + "TrackQueue", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], [ - 30u8, 155u8, 42u8, 200u8, 223u8, 48u8, 127u8, 31u8, 253u8, 195u8, - 234u8, 108u8, 64u8, 27u8, 247u8, 17u8, 187u8, 199u8, 41u8, 138u8, 55u8, - 163u8, 94u8, 226u8, 10u8, 3u8, 132u8, 129u8, 8u8, 138u8, 137u8, 171u8, + 125u8, 59u8, 111u8, 68u8, 27u8, 236u8, 82u8, 55u8, 83u8, 159u8, 105u8, + 20u8, 241u8, 118u8, 58u8, 141u8, 103u8, 60u8, 246u8, 49u8, 121u8, + 183u8, 7u8, 203u8, 225u8, 67u8, 132u8, 79u8, 150u8, 107u8, 71u8, 89u8, ], ) } - #[doc = " For each session index, we keep a mapping of `ValidatorId` to the"] - #[doc = " number of blocks authored by the given authority."] - pub fn authored_blocks_iter( + #[doc = " The number of referenda being decided currently."] + pub fn deciding_count_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, + alias_types::deciding_count::DecidingCount, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "ImOnline", - "AuthoredBlocks", + "Referenda", + "DecidingCount", vec![], [ - 123u8, 76u8, 230u8, 113u8, 65u8, 255u8, 99u8, 79u8, 131u8, 139u8, - 218u8, 20u8, 174u8, 191u8, 224u8, 67u8, 137u8, 48u8, 146u8, 209u8, - 148u8, 69u8, 130u8, 9u8, 173u8, 253u8, 206u8, 196u8, 68u8, 160u8, - 233u8, 126u8, + 203u8, 89u8, 158u8, 179u8, 194u8, 82u8, 248u8, 162u8, 93u8, 140u8, + 146u8, 51u8, 110u8, 232u8, 51u8, 1u8, 128u8, 212u8, 199u8, 14u8, 182u8, + 103u8, 47u8, 252u8, 126u8, 108u8, 166u8, 69u8, 252u8, 179u8, 126u8, + 245u8, ], ) } - #[doc = " For each session index, we keep a mapping of `ValidatorId` to the"] - #[doc = " number of blocks authored by the given authority."] - pub fn authored_blocks_iter1( + #[doc = " The number of referenda being decided currently."] + pub fn deciding_count( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow<::core::primitive::u16>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - (), + alias_types::deciding_count::DecidingCount, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, + (), > { ::subxt::storage::address::Address::new_static( - "ImOnline", - "AuthoredBlocks", + "Referenda", + "DecidingCount", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 123u8, 76u8, 230u8, 113u8, 65u8, 255u8, 99u8, 79u8, 131u8, 139u8, - 218u8, 20u8, 174u8, 191u8, 224u8, 67u8, 137u8, 48u8, 146u8, 209u8, - 148u8, 69u8, 130u8, 9u8, 173u8, 253u8, 206u8, 196u8, 68u8, 160u8, - 233u8, 126u8, + 203u8, 89u8, 158u8, 179u8, 194u8, 82u8, 248u8, 162u8, 93u8, 140u8, + 146u8, 51u8, 110u8, 232u8, 51u8, 1u8, 128u8, 212u8, 199u8, 14u8, 182u8, + 103u8, 47u8, 252u8, 126u8, 108u8, 166u8, 69u8, 252u8, 179u8, 126u8, + 245u8, ], ) } - #[doc = " For each session index, we keep a mapping of `ValidatorId` to the"] - #[doc = " number of blocks authored by the given authority."] - pub fn authored_blocks( + #[doc = " The metadata is a general information concerning the referendum."] + #[doc = " The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON"] + #[doc = " dump or IPFS hash of a JSON file."] + #[doc = ""] + #[doc = " Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)"] + #[doc = " large preimages."] + pub fn metadata_of_iter( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, + alias_types::metadata_of::MetadataOf, + (), (), + ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "ImOnline", - "AuthoredBlocks", - vec![ - ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), - ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), - ], + "Referenda", + "MetadataOf", + vec![], [ - 123u8, 76u8, 230u8, 113u8, 65u8, 255u8, 99u8, 79u8, 131u8, 139u8, - 218u8, 20u8, 174u8, 191u8, 224u8, 67u8, 137u8, 48u8, 146u8, 209u8, - 148u8, 69u8, 130u8, 9u8, 173u8, 253u8, 206u8, 196u8, 68u8, 160u8, - 233u8, 126u8, + 159u8, 250u8, 56u8, 189u8, 247u8, 165u8, 206u8, 166u8, 91u8, 139u8, + 124u8, 164u8, 25u8, 246u8, 199u8, 36u8, 159u8, 56u8, 227u8, 136u8, 4u8, + 45u8, 193u8, 72u8, 200u8, 164u8, 39u8, 207u8, 224u8, 124u8, 191u8, + 110u8, ], ) } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " A configuration for base priority of unsigned transactions."] + #[doc = " The metadata is a general information concerning the referendum."] + #[doc = " The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON"] + #[doc = " dump or IPFS hash of a JSON file."] #[doc = ""] - #[doc = " This is exposed so that it can be tuned for particular runtime, when"] - #[doc = " multiple pallets send unsigned transactions."] - pub fn unsigned_priority( + #[doc = " Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)"] + #[doc = " large preimages."] + pub fn metadata_of( &self, - ) -> ::subxt::constants::Address<::core::primitive::u64> { - ::subxt::constants::Address::new_static( - "ImOnline", - "UnsignedPriority", + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::metadata_of::MetadataOf, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Referenda", + "MetadataOf", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], [ - 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, - 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, - 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, - 246u8, + 159u8, 250u8, 56u8, 189u8, 247u8, 165u8, 206u8, 166u8, 91u8, 139u8, + 124u8, 164u8, 25u8, 246u8, 199u8, 36u8, 159u8, 56u8, 227u8, 136u8, 4u8, + 45u8, 193u8, 72u8, 200u8, 164u8, 39u8, 207u8, 224u8, 124u8, 191u8, + 110u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The minimum amount to be used as a deposit for a public referendum proposal."] + pub fn submission_deposit( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Referenda", + "SubmissionDeposit", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[doc = " Maximum size of the referendum queue for a single track."] + pub fn max_queued(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Referenda", + "MaxQueued", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The number of blocks after submission that a referendum must begin being decided by."] + #[doc = " Once this passes, then anyone may cancel the referendum."] + pub fn undeciding_timeout( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Referenda", + "UndecidingTimeout", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " Quantization level for the referendum wakeup scheduler. A higher number will result in"] + #[doc = " fewer storage reads/writes needed for smaller voters, but also result in delays to the"] + #[doc = " automatic referendum status changes. Explicit servicing instructions are unaffected."] + pub fn alarm_interval( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Referenda", + "AlarmInterval", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " Information concerning the different referendum tracks."] + pub fn tracks( + &self, + ) -> ::subxt::constants::Address< + ::std::vec::Vec<( + ::core::primitive::u16, + runtime_types::pallet_referenda::types::TrackInfo< + ::core::primitive::u128, + ::core::primitive::u32, + >, + )>, + > { + ::subxt::constants::Address::new_static( + "Referenda", + "Tracks", + [ + 35u8, 226u8, 207u8, 234u8, 184u8, 139u8, 187u8, 184u8, 128u8, 199u8, + 227u8, 15u8, 31u8, 196u8, 5u8, 207u8, 138u8, 174u8, 130u8, 201u8, + 200u8, 113u8, 86u8, 93u8, 221u8, 243u8, 229u8, 24u8, 18u8, 150u8, 56u8, + 159u8, ], ) } } } } - pub mod authority_discovery { - use super::root_mod; - use super::runtime_types; - } - pub mod democracy { + pub mod fellowship_collective { use super::root_mod; use super::runtime_types; #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_democracy::pallet::Error; + pub type Error = runtime_types::pallet_ranked_collective::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::pallet_democracy::pallet::Call; + pub type Call = runtime_types::pallet_ranked_collective::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { + pub mod alias_types { use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Propose { - pub proposal: runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::polkadot_runtime::RuntimeCall, - >, - #[codec(compact)] - pub value: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for Propose { - const PALLET: &'static str = "Democracy"; - const CALL: &'static str = "propose"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Second { - #[codec(compact)] - pub proposal: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for Second { - const PALLET: &'static str = "Democracy"; - const CALL: &'static str = "second"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Vote { - #[codec(compact)] - pub ref_index: ::core::primitive::u32, - pub vote: - runtime_types::pallet_democracy::vote::AccountVote<::core::primitive::u128>, - } - impl ::subxt::blocks::StaticExtrinsic for Vote { - const PALLET: &'static str = "Democracy"; - const CALL: &'static str = "vote"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct EmergencyCancel { - pub ref_index: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for EmergencyCancel { - const PALLET: &'static str = "Democracy"; - const CALL: &'static str = "emergency_cancel"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ExternalPropose { - pub proposal: runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::polkadot_runtime::RuntimeCall, - >, - } - impl ::subxt::blocks::StaticExtrinsic for ExternalPropose { - const PALLET: &'static str = "Democracy"; - const CALL: &'static str = "external_propose"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ExternalProposeMajority { - pub proposal: runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::polkadot_runtime::RuntimeCall, - >, - } - impl ::subxt::blocks::StaticExtrinsic for ExternalProposeMajority { - const PALLET: &'static str = "Democracy"; - const CALL: &'static str = "external_propose_majority"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ExternalProposeDefault { - pub proposal: runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::polkadot_runtime::RuntimeCall, - >, - } - impl ::subxt::blocks::StaticExtrinsic for ExternalProposeDefault { - const PALLET: &'static str = "Democracy"; - const CALL: &'static str = "external_propose_default"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct FastTrack { - pub proposal_hash: ::subxt::utils::H256, - pub voting_period: ::core::primitive::u32, - pub delay: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for FastTrack { - const PALLET: &'static str = "Democracy"; - const CALL: &'static str = "fast_track"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct VetoExternal { - pub proposal_hash: ::subxt::utils::H256, - } - impl ::subxt::blocks::StaticExtrinsic for VetoExternal { - const PALLET: &'static str = "Democracy"; - const CALL: &'static str = "veto_external"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct CancelReferendum { - #[codec(compact)] - pub ref_index: ::core::primitive::u32, + pub mod add_member { + use super::runtime_types; + pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; } - impl ::subxt::blocks::StaticExtrinsic for CancelReferendum { - const PALLET: &'static str = "Democracy"; - const CALL: &'static str = "cancel_referendum"; + pub mod promote_member { + use super::runtime_types; + pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Delegate { - pub to: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub conviction: runtime_types::pallet_democracy::conviction::Conviction, - pub balance: ::core::primitive::u128, + pub mod demote_member { + use super::runtime_types; + pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; } - impl ::subxt::blocks::StaticExtrinsic for Delegate { - const PALLET: &'static str = "Democracy"; - const CALL: &'static str = "delegate"; + pub mod remove_member { + use super::runtime_types; + pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type MinRank = ::core::primitive::u16; } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Undelegate; - impl ::subxt::blocks::StaticExtrinsic for Undelegate { - const PALLET: &'static str = "Democracy"; - const CALL: &'static str = "undelegate"; + pub mod vote { + use super::runtime_types; + pub type Poll = ::core::primitive::u32; + pub type Aye = ::core::primitive::bool; } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ClearPublicProposals; - impl ::subxt::blocks::StaticExtrinsic for ClearPublicProposals { - const PALLET: &'static str = "Democracy"; - const CALL: &'static str = "clear_public_proposals"; + pub mod cleanup_poll { + use super::runtime_types; + pub type PollIndex = ::core::primitive::u32; + pub type Max = ::core::primitive::u32; } + } + pub mod types { + use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -12260,15 +11735,14 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Unlock { - pub target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub struct AddMember { + pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, } - impl ::subxt::blocks::StaticExtrinsic for Unlock { - const PALLET: &'static str = "Democracy"; - const CALL: &'static str = "unlock"; + impl ::subxt::blocks::StaticExtrinsic for AddMember { + const PALLET: &'static str = "FellowshipCollective"; + const CALL: &'static str = "add_member"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -12278,12 +11752,12 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct RemoveVote { - pub index: ::core::primitive::u32, + pub struct PromoteMember { + pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, } - impl ::subxt::blocks::StaticExtrinsic for RemoveVote { - const PALLET: &'static str = "Democracy"; - const CALL: &'static str = "remove_vote"; + impl ::subxt::blocks::StaticExtrinsic for PromoteMember { + const PALLET: &'static str = "FellowshipCollective"; + const CALL: &'static str = "promote_member"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -12295,13 +11769,12 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct RemoveOtherVote { - pub target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub index: ::core::primitive::u32, + pub struct DemoteMember { + pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, } - impl ::subxt::blocks::StaticExtrinsic for RemoveOtherVote { - const PALLET: &'static str = "Democracy"; - const CALL: &'static str = "remove_other_vote"; + impl ::subxt::blocks::StaticExtrinsic for DemoteMember { + const PALLET: &'static str = "FellowshipCollective"; + const CALL: &'static str = "demote_member"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -12313,13 +11786,13 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Blacklist { - pub proposal_hash: ::subxt::utils::H256, - pub maybe_ref_index: ::core::option::Option<::core::primitive::u32>, + pub struct RemoveMember { + pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub min_rank: ::core::primitive::u16, } - impl ::subxt::blocks::StaticExtrinsic for Blacklist { - const PALLET: &'static str = "Democracy"; - const CALL: &'static str = "blacklist"; + impl ::subxt::blocks::StaticExtrinsic for RemoveMember { + const PALLET: &'static str = "FellowshipCollective"; + const CALL: &'static str = "remove_member"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -12331,13 +11804,13 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct CancelProposal { - #[codec(compact)] - pub prop_index: ::core::primitive::u32, + pub struct Vote { + pub poll: ::core::primitive::u32, + pub aye: ::core::primitive::bool, } - impl ::subxt::blocks::StaticExtrinsic for CancelProposal { - const PALLET: &'static str = "Democracy"; - const CALL: &'static str = "cancel_proposal"; + impl ::subxt::blocks::StaticExtrinsic for Vote { + const PALLET: &'static str = "FellowshipCollective"; + const CALL: &'static str = "vote"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -12349,362 +11822,124 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SetMetadata { - pub owner: runtime_types::pallet_democracy::types::MetadataOwner, - pub maybe_hash: ::core::option::Option<::subxt::utils::H256>, + pub struct CleanupPoll { + pub poll_index: ::core::primitive::u32, + pub max: ::core::primitive::u32, } - impl ::subxt::blocks::StaticExtrinsic for SetMetadata { - const PALLET: &'static str = "Democracy"; - const CALL: &'static str = "set_metadata"; + impl ::subxt::blocks::StaticExtrinsic for CleanupPoll { + const PALLET: &'static str = "FellowshipCollective"; + const CALL: &'static str = "cleanup_poll"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::propose`]."] - pub fn propose( - &self, - proposal: runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::polkadot_runtime::RuntimeCall, - >, - value: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Democracy", - "propose", - types::Propose { proposal, value }, - [ - 164u8, 45u8, 183u8, 137u8, 222u8, 27u8, 138u8, 45u8, 20u8, 18u8, 234u8, - 211u8, 52u8, 184u8, 234u8, 222u8, 193u8, 9u8, 160u8, 58u8, 198u8, - 106u8, 236u8, 210u8, 172u8, 34u8, 194u8, 107u8, 135u8, 83u8, 22u8, - 238u8, - ], - ) - } - #[doc = "See [`Pallet::second`]."] - pub fn second( - &self, - proposal: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Democracy", - "second", - types::Second { proposal }, - [ - 195u8, 55u8, 178u8, 55u8, 129u8, 64u8, 10u8, 131u8, 217u8, 79u8, 1u8, - 187u8, 73u8, 126u8, 191u8, 221u8, 110u8, 10u8, 13u8, 65u8, 190u8, - 107u8, 21u8, 236u8, 175u8, 130u8, 227u8, 179u8, 173u8, 39u8, 32u8, - 147u8, - ], - ) - } - #[doc = "See [`Pallet::vote`]."] - pub fn vote( - &self, - ref_index: ::core::primitive::u32, - vote: runtime_types::pallet_democracy::vote::AccountVote< - ::core::primitive::u128, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Democracy", - "vote", - types::Vote { ref_index, vote }, - [ - 106u8, 195u8, 229u8, 44u8, 217u8, 214u8, 8u8, 234u8, 175u8, 62u8, 97u8, - 83u8, 193u8, 180u8, 103u8, 26u8, 174u8, 8u8, 2u8, 158u8, 25u8, 122u8, - 203u8, 122u8, 32u8, 14u8, 107u8, 169u8, 43u8, 240u8, 143u8, 103u8, - ], - ) - } - #[doc = "See [`Pallet::emergency_cancel`]."] - pub fn emergency_cancel( - &self, - ref_index: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Democracy", - "emergency_cancel", - types::EmergencyCancel { ref_index }, - [ - 82u8, 232u8, 19u8, 158u8, 88u8, 69u8, 96u8, 225u8, 106u8, 253u8, 6u8, - 136u8, 87u8, 0u8, 68u8, 128u8, 122u8, 16u8, 107u8, 76u8, 209u8, 14u8, - 230u8, 49u8, 228u8, 100u8, 187u8, 10u8, 76u8, 71u8, 197u8, 72u8, - ], - ) - } - #[doc = "See [`Pallet::external_propose`]."] - pub fn external_propose( - &self, - proposal: runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::polkadot_runtime::RuntimeCall, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Democracy", - "external_propose", - types::ExternalPropose { proposal }, - [ - 99u8, 120u8, 61u8, 124u8, 244u8, 68u8, 12u8, 240u8, 11u8, 168u8, 4u8, - 50u8, 19u8, 152u8, 255u8, 97u8, 20u8, 195u8, 141u8, 199u8, 31u8, 250u8, - 222u8, 136u8, 47u8, 162u8, 0u8, 32u8, 215u8, 110u8, 94u8, 109u8, - ], - ) - } - #[doc = "See [`Pallet::external_propose_majority`]."] - pub fn external_propose_majority( + #[doc = "See [`Pallet::add_member`]."] + pub fn add_member( &self, - proposal: runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::polkadot_runtime::RuntimeCall, - >, - ) -> ::subxt::tx::Payload { + who: alias_types::add_member::Who, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Democracy", - "external_propose_majority", - types::ExternalProposeMajority { proposal }, + "FellowshipCollective", + "add_member", + types::AddMember { who }, [ - 35u8, 61u8, 130u8, 81u8, 81u8, 180u8, 127u8, 202u8, 67u8, 84u8, 105u8, - 113u8, 112u8, 210u8, 1u8, 191u8, 10u8, 39u8, 157u8, 164u8, 9u8, 231u8, - 75u8, 25u8, 17u8, 175u8, 128u8, 180u8, 238u8, 58u8, 236u8, 214u8, + 2u8, 131u8, 37u8, 217u8, 112u8, 46u8, 86u8, 165u8, 248u8, 244u8, 33u8, + 236u8, 155u8, 28u8, 163u8, 169u8, 213u8, 32u8, 70u8, 217u8, 97u8, + 194u8, 138u8, 77u8, 133u8, 97u8, 188u8, 49u8, 49u8, 31u8, 177u8, 206u8, ], ) } - #[doc = "See [`Pallet::external_propose_default`]."] - pub fn external_propose_default( + #[doc = "See [`Pallet::promote_member`]."] + pub fn promote_member( &self, - proposal: runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::polkadot_runtime::RuntimeCall, - >, - ) -> ::subxt::tx::Payload { + who: alias_types::promote_member::Who, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Democracy", - "external_propose_default", - types::ExternalProposeDefault { proposal }, + "FellowshipCollective", + "promote_member", + types::PromoteMember { who }, [ - 136u8, 199u8, 244u8, 69u8, 5u8, 174u8, 166u8, 251u8, 102u8, 196u8, - 25u8, 6u8, 33u8, 216u8, 141u8, 78u8, 118u8, 125u8, 128u8, 218u8, 120u8, - 170u8, 166u8, 15u8, 124u8, 216u8, 128u8, 178u8, 5u8, 74u8, 170u8, 25u8, + 169u8, 155u8, 9u8, 50u8, 144u8, 133u8, 230u8, 60u8, 216u8, 147u8, 3u8, + 236u8, 94u8, 185u8, 106u8, 139u8, 235u8, 143u8, 189u8, 135u8, 208u8, + 176u8, 126u8, 124u8, 85u8, 140u8, 189u8, 125u8, 87u8, 56u8, 57u8, + 246u8, ], ) } - #[doc = "See [`Pallet::fast_track`]."] - pub fn fast_track( + #[doc = "See [`Pallet::demote_member`]."] + pub fn demote_member( &self, - proposal_hash: ::subxt::utils::H256, - voting_period: ::core::primitive::u32, - delay: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + who: alias_types::demote_member::Who, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Democracy", - "fast_track", - types::FastTrack { - proposal_hash, - voting_period, - delay, - }, + "FellowshipCollective", + "demote_member", + types::DemoteMember { who }, [ - 96u8, 201u8, 216u8, 109u8, 4u8, 244u8, 52u8, 237u8, 120u8, 234u8, 30u8, - 102u8, 186u8, 132u8, 214u8, 22u8, 40u8, 75u8, 118u8, 23u8, 56u8, 68u8, - 192u8, 129u8, 74u8, 61u8, 247u8, 98u8, 103u8, 127u8, 200u8, 171u8, + 21u8, 185u8, 71u8, 166u8, 106u8, 88u8, 74u8, 251u8, 78u8, 28u8, 205u8, + 171u8, 199u8, 195u8, 97u8, 149u8, 175u8, 229u8, 25u8, 113u8, 96u8, + 25u8, 240u8, 64u8, 109u8, 246u8, 203u8, 45u8, 110u8, 205u8, 115u8, + 178u8, ], ) } - #[doc = "See [`Pallet::veto_external`]."] - pub fn veto_external( + #[doc = "See [`Pallet::remove_member`]."] + pub fn remove_member( &self, - proposal_hash: ::subxt::utils::H256, - ) -> ::subxt::tx::Payload { + who: alias_types::remove_member::Who, + min_rank: alias_types::remove_member::MinRank, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Democracy", - "veto_external", - types::VetoExternal { proposal_hash }, + "FellowshipCollective", + "remove_member", + types::RemoveMember { who, min_rank }, [ - 121u8, 217u8, 249u8, 134u8, 45u8, 19u8, 126u8, 166u8, 218u8, 223u8, - 165u8, 124u8, 162u8, 59u8, 56u8, 200u8, 227u8, 125u8, 23u8, 133u8, - 196u8, 93u8, 210u8, 15u8, 39u8, 26u8, 58u8, 236u8, 9u8, 101u8, 202u8, - 168u8, + 23u8, 156u8, 32u8, 64u8, 158u8, 50u8, 64u8, 199u8, 108u8, 67u8, 133u8, + 128u8, 138u8, 241u8, 14u8, 238u8, 192u8, 173u8, 250u8, 11u8, 124u8, + 119u8, 177u8, 190u8, 152u8, 116u8, 134u8, 42u8, 216u8, 49u8, 113u8, + 49u8, ], ) } - #[doc = "See [`Pallet::cancel_referendum`]."] - pub fn cancel_referendum( + #[doc = "See [`Pallet::vote`]."] + pub fn vote( &self, - ref_index: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + poll: alias_types::vote::Poll, + aye: alias_types::vote::Aye, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Democracy", - "cancel_referendum", - types::CancelReferendum { ref_index }, + "FellowshipCollective", + "vote", + types::Vote { poll, aye }, [ - 149u8, 120u8, 70u8, 20u8, 126u8, 21u8, 30u8, 33u8, 82u8, 124u8, 229u8, - 179u8, 169u8, 243u8, 173u8, 146u8, 140u8, 22u8, 124u8, 154u8, 228u8, - 117u8, 109u8, 88u8, 11u8, 100u8, 235u8, 243u8, 118u8, 99u8, 250u8, - 140u8, + 54u8, 116u8, 81u8, 239u8, 223u8, 35u8, 11u8, 244u8, 245u8, 94u8, 23u8, + 241u8, 125u8, 231u8, 56u8, 150u8, 105u8, 125u8, 100u8, 171u8, 182u8, + 186u8, 134u8, 40u8, 4u8, 121u8, 119u8, 11u8, 93u8, 158u8, 59u8, 209u8, ], ) } - #[doc = "See [`Pallet::delegate`]."] - pub fn delegate( + #[doc = "See [`Pallet::cleanup_poll`]."] + pub fn cleanup_poll( &self, - to: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - conviction: runtime_types::pallet_democracy::conviction::Conviction, - balance: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { + poll_index: alias_types::cleanup_poll::PollIndex, + max: alias_types::cleanup_poll::Max, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Democracy", - "delegate", - types::Delegate { - to, - conviction, - balance, - }, + "FellowshipCollective", + "cleanup_poll", + types::CleanupPoll { poll_index, max }, [ - 98u8, 120u8, 223u8, 48u8, 181u8, 91u8, 232u8, 157u8, 124u8, 249u8, - 137u8, 195u8, 211u8, 199u8, 173u8, 118u8, 164u8, 196u8, 253u8, 53u8, - 214u8, 120u8, 138u8, 7u8, 129u8, 85u8, 217u8, 172u8, 98u8, 78u8, 165u8, + 157u8, 109u8, 86u8, 253u8, 62u8, 107u8, 235u8, 255u8, 171u8, 68u8, + 103u8, 92u8, 245u8, 25u8, 252u8, 158u8, 174u8, 137u8, 77u8, 251u8, + 105u8, 113u8, 165u8, 46u8, 39u8, 55u8, 166u8, 79u8, 103u8, 81u8, 121u8, 37u8, ], ) } - #[doc = "See [`Pallet::undelegate`]."] - pub fn undelegate(&self) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Democracy", - "undelegate", - types::Undelegate {}, - [ - 225u8, 156u8, 102u8, 1u8, 172u8, 145u8, 88u8, 12u8, 89u8, 32u8, 51u8, - 83u8, 25u8, 149u8, 132u8, 203u8, 246u8, 98u8, 155u8, 36u8, 165u8, - 206u8, 233u8, 169u8, 91u8, 85u8, 105u8, 67u8, 46u8, 134u8, 244u8, - 250u8, - ], - ) - } - #[doc = "See [`Pallet::clear_public_proposals`]."] - pub fn clear_public_proposals( - &self, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Democracy", - "clear_public_proposals", - types::ClearPublicProposals {}, - [ - 116u8, 160u8, 246u8, 216u8, 23u8, 188u8, 144u8, 63u8, 97u8, 198u8, - 11u8, 243u8, 165u8, 84u8, 159u8, 153u8, 235u8, 169u8, 166u8, 15u8, - 23u8, 116u8, 30u8, 56u8, 133u8, 31u8, 158u8, 114u8, 158u8, 86u8, 106u8, - 93u8, - ], - ) - } - #[doc = "See [`Pallet::unlock`]."] - pub fn unlock( - &self, - target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Democracy", - "unlock", - types::Unlock { target }, - [ - 168u8, 111u8, 199u8, 137u8, 136u8, 162u8, 69u8, 122u8, 130u8, 226u8, - 234u8, 79u8, 214u8, 164u8, 127u8, 217u8, 140u8, 10u8, 116u8, 94u8, 5u8, - 58u8, 208u8, 255u8, 136u8, 147u8, 148u8, 133u8, 136u8, 206u8, 219u8, - 94u8, - ], - ) - } - #[doc = "See [`Pallet::remove_vote`]."] - pub fn remove_vote( - &self, - index: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Democracy", - "remove_vote", - types::RemoveVote { index }, - [ - 98u8, 146u8, 215u8, 63u8, 222u8, 70u8, 61u8, 186u8, 90u8, 34u8, 63u8, - 25u8, 195u8, 119u8, 228u8, 189u8, 38u8, 163u8, 58u8, 210u8, 216u8, - 156u8, 20u8, 204u8, 136u8, 192u8, 33u8, 210u8, 124u8, 65u8, 153u8, - 105u8, - ], - ) - } - #[doc = "See [`Pallet::remove_other_vote`]."] - pub fn remove_other_vote( - &self, - target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - index: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Democracy", - "remove_other_vote", - types::RemoveOtherVote { target, index }, - [ - 144u8, 81u8, 115u8, 108u8, 30u8, 235u8, 166u8, 115u8, 147u8, 56u8, - 144u8, 196u8, 252u8, 166u8, 201u8, 131u8, 0u8, 193u8, 21u8, 234u8, - 55u8, 253u8, 165u8, 149u8, 38u8, 47u8, 241u8, 140u8, 186u8, 139u8, - 227u8, 165u8, - ], - ) - } - #[doc = "See [`Pallet::blacklist`]."] - pub fn blacklist( - &self, - proposal_hash: ::subxt::utils::H256, - maybe_ref_index: ::core::option::Option<::core::primitive::u32>, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Democracy", - "blacklist", - types::Blacklist { - proposal_hash, - maybe_ref_index, - }, - [ - 227u8, 200u8, 88u8, 154u8, 134u8, 121u8, 131u8, 177u8, 94u8, 119u8, - 12u8, 129u8, 150u8, 59u8, 108u8, 103u8, 109u8, 55u8, 220u8, 211u8, - 250u8, 103u8, 160u8, 170u8, 63u8, 142u8, 112u8, 244u8, 29u8, 238u8, - 101u8, 24u8, - ], - ) - } - #[doc = "See [`Pallet::cancel_proposal`]."] - pub fn cancel_proposal( - &self, - prop_index: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Democracy", - "cancel_proposal", - types::CancelProposal { prop_index }, - [ - 213u8, 5u8, 215u8, 209u8, 71u8, 229u8, 66u8, 38u8, 171u8, 38u8, 14u8, - 103u8, 248u8, 176u8, 217u8, 143u8, 234u8, 89u8, 110u8, 250u8, 3u8, - 190u8, 151u8, 74u8, 55u8, 58u8, 249u8, 138u8, 25u8, 191u8, 55u8, 142u8, - ], - ) - } - #[doc = "See [`Pallet::set_metadata`]."] - pub fn set_metadata( - &self, - owner: runtime_types::pallet_democracy::types::MetadataOwner, - maybe_hash: ::core::option::Option<::subxt::utils::H256>, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Democracy", - "set_metadata", - types::SetMetadata { owner, maybe_hash }, - [ - 191u8, 200u8, 139u8, 27u8, 167u8, 250u8, 72u8, 78u8, 18u8, 98u8, 108u8, - 1u8, 122u8, 120u8, 47u8, 77u8, 174u8, 60u8, 247u8, 69u8, 228u8, 196u8, - 149u8, 107u8, 239u8, 45u8, 47u8, 118u8, 87u8, 233u8, 79u8, 29u8, - ], - ) - } } } #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_democracy::pallet::Event; + pub type Event = runtime_types::pallet_ranked_collective::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -12717,14 +11952,13 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A motion has been proposed by a public account."] - pub struct Proposed { - pub proposal_index: ::core::primitive::u32, - pub deposit: ::core::primitive::u128, + #[doc = "A member `who` has been added."] + pub struct MemberAdded { + pub who: ::subxt::utils::AccountId32, } - impl ::subxt::events::StaticEvent for Proposed { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Proposed"; + impl ::subxt::events::StaticEvent for MemberAdded { + const PALLET: &'static str = "FellowshipCollective"; + const EVENT: &'static str = "MemberAdded"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -12736,30 +11970,14 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A public proposal has been tabled for referendum vote."] - pub struct Tabled { - pub proposal_index: ::core::primitive::u32, - pub deposit: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Tabled { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Tabled"; + #[doc = "The member `who`se rank has been changed to the given `rank`."] + pub struct RankChanged { + pub who: ::subxt::utils::AccountId32, + pub rank: ::core::primitive::u16, } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An external proposal has been tabled."] - pub struct ExternalTabled; - impl ::subxt::events::StaticEvent for ExternalTabled { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "ExternalTabled"; + impl ::subxt::events::StaticEvent for RankChanged { + const PALLET: &'static str = "FellowshipCollective"; + const EVENT: &'static str = "RankChanged"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -12771,17 +11989,16 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A referendum has begun."] - pub struct Started { - pub ref_index: ::core::primitive::u32, - pub threshold: runtime_types::pallet_democracy::vote_threshold::VoteThreshold, + #[doc = "The member `who` of given `rank` has been removed from the collective."] + pub struct MemberRemoved { + pub who: ::subxt::utils::AccountId32, + pub rank: ::core::primitive::u16, } - impl ::subxt::events::StaticEvent for Started { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Started"; + impl ::subxt::events::StaticEvent for MemberRemoved { + const PALLET: &'static str = "FellowshipCollective"; + const EVENT: &'static str = "MemberRemoved"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -12791,941 +12008,477 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A proposal has been approved by referendum."] - pub struct Passed { - pub ref_index: ::core::primitive::u32, + #[doc = "The member `who` has voted for the `poll` with the given `vote` leading to an updated"] + #[doc = "`tally`."] + pub struct Voted { + pub who: ::subxt::utils::AccountId32, + pub poll: ::core::primitive::u32, + pub vote: runtime_types::pallet_ranked_collective::VoteRecord, + pub tally: runtime_types::pallet_ranked_collective::Tally, } - impl ::subxt::events::StaticEvent for Passed { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Passed"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A proposal has been rejected by referendum."] - pub struct NotPassed { - pub ref_index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for NotPassed { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "NotPassed"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A referendum has been cancelled."] - pub struct Cancelled { - pub ref_index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Cancelled { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Cancelled"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An account has delegated their vote to another account."] - pub struct Delegated { - pub who: ::subxt::utils::AccountId32, - pub target: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for Delegated { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Delegated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An account has cancelled a previous delegation operation."] - pub struct Undelegated { - pub account: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for Undelegated { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Undelegated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An external proposal has been vetoed."] - pub struct Vetoed { - pub who: ::subxt::utils::AccountId32, - pub proposal_hash: ::subxt::utils::H256, - pub until: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Vetoed { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Vetoed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A proposal_hash has been blacklisted permanently."] - pub struct Blacklisted { - pub proposal_hash: ::subxt::utils::H256, - } - impl ::subxt::events::StaticEvent for Blacklisted { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Blacklisted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An account has voted in a referendum"] - pub struct Voted { - pub voter: ::subxt::utils::AccountId32, - pub ref_index: ::core::primitive::u32, - pub vote: - runtime_types::pallet_democracy::vote::AccountVote<::core::primitive::u128>, - } - impl ::subxt::events::StaticEvent for Voted { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Voted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An account has secconded a proposal"] - pub struct Seconded { - pub seconder: ::subxt::utils::AccountId32, - pub prop_index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Seconded { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Seconded"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A proposal got canceled."] - pub struct ProposalCanceled { - pub prop_index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for ProposalCanceled { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "ProposalCanceled"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Metadata for a proposal or a referendum has been set."] - pub struct MetadataSet { - pub owner: runtime_types::pallet_democracy::types::MetadataOwner, - pub hash: ::subxt::utils::H256, - } - impl ::subxt::events::StaticEvent for MetadataSet { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "MetadataSet"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Metadata for a proposal or a referendum has been cleared."] - pub struct MetadataCleared { - pub owner: runtime_types::pallet_democracy::types::MetadataOwner, - pub hash: ::subxt::utils::H256, - } - impl ::subxt::events::StaticEvent for MetadataCleared { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "MetadataCleared"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Metadata has been transferred to new owner."] - pub struct MetadataTransferred { - pub prev_owner: runtime_types::pallet_democracy::types::MetadataOwner, - pub owner: runtime_types::pallet_democracy::types::MetadataOwner, - pub hash: ::subxt::utils::H256, - } - impl ::subxt::events::StaticEvent for MetadataTransferred { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "MetadataTransferred"; + impl ::subxt::events::StaticEvent for Voted { + const PALLET: &'static str = "FellowshipCollective"; + const EVENT: &'static str = "Voted"; } } pub mod storage { use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod member_count { + use super::runtime_types; + pub type MemberCount = ::core::primitive::u32; + } + pub mod members { + use super::runtime_types; + pub type Members = runtime_types::pallet_ranked_collective::MemberRecord; + } + pub mod id_to_index { + use super::runtime_types; + pub type IdToIndex = ::core::primitive::u32; + } + pub mod index_to_id { + use super::runtime_types; + pub type IndexToId = ::subxt::utils::AccountId32; + } + pub mod voting { + use super::runtime_types; + pub type Voting = runtime_types::pallet_ranked_collective::VoteRecord; + } + pub mod voting_cleanup { + use super::runtime_types; + pub type VotingCleanup = + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; + } + } pub struct StorageApi; impl StorageApi { - #[doc = " The number of (public) proposals that have been made so far."] - pub fn public_prop_count( + #[doc = " The number of members in the collective who have at least the rank according to the index"] + #[doc = " of the vec."] + pub fn member_count_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, + alias_types::member_count::MemberCount, + (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, - (), > { ::subxt::storage::address::Address::new_static( - "Democracy", - "PublicPropCount", + "FellowshipCollective", + "MemberCount", vec![], [ - 51u8, 175u8, 184u8, 94u8, 91u8, 212u8, 100u8, 108u8, 127u8, 162u8, - 233u8, 137u8, 12u8, 209u8, 29u8, 130u8, 125u8, 179u8, 208u8, 160u8, - 173u8, 149u8, 12u8, 111u8, 1u8, 82u8, 196u8, 137u8, 51u8, 204u8, 153u8, - 198u8, + 0u8, 141u8, 66u8, 91u8, 155u8, 74u8, 17u8, 191u8, 143u8, 41u8, 231u8, + 56u8, 123u8, 219u8, 145u8, 27u8, 197u8, 62u8, 118u8, 237u8, 30u8, 7u8, + 107u8, 96u8, 95u8, 17u8, 242u8, 206u8, 246u8, 79u8, 53u8, 214u8, ], ) } - #[doc = " The public proposals. Unsorted. The second item is the proposal."] - pub fn public_props( + #[doc = " The number of members in the collective who have at least the rank according to the index"] + #[doc = " of the vec."] + pub fn member_count( &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u16>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec<( - ::core::primitive::u32, - runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::polkadot_runtime::RuntimeCall, - >, - ::subxt::utils::AccountId32, - )>, + alias_types::member_count::MemberCount, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( - "Democracy", - "PublicProps", - vec![], + "FellowshipCollective", + "MemberCount", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], [ - 174u8, 85u8, 209u8, 117u8, 29u8, 193u8, 230u8, 16u8, 94u8, 219u8, 69u8, - 29u8, 116u8, 35u8, 252u8, 43u8, 127u8, 0u8, 43u8, 218u8, 240u8, 176u8, - 73u8, 81u8, 207u8, 131u8, 227u8, 132u8, 242u8, 45u8, 172u8, 50u8, + 0u8, 141u8, 66u8, 91u8, 155u8, 74u8, 17u8, 191u8, 143u8, 41u8, 231u8, + 56u8, 123u8, 219u8, 145u8, 27u8, 197u8, 62u8, 118u8, 237u8, 30u8, 7u8, + 107u8, 96u8, 95u8, 17u8, 242u8, 206u8, 246u8, 79u8, 53u8, 214u8, ], ) } - #[doc = " Those who have locked a deposit."] - #[doc = ""] - #[doc = " TWOX-NOTE: Safe, as increasing integer keys are safe."] - pub fn deposit_of_iter( + #[doc = " The current members of the collective."] + pub fn members_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ( - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::subxt::utils::AccountId32, - >, - ::core::primitive::u128, - ), + alias_types::members::Members, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Democracy", - "DepositOf", + "FellowshipCollective", + "Members", vec![], [ - 115u8, 12u8, 250u8, 191u8, 201u8, 165u8, 90u8, 140u8, 101u8, 47u8, - 46u8, 3u8, 78u8, 30u8, 180u8, 22u8, 28u8, 154u8, 36u8, 99u8, 255u8, - 84u8, 33u8, 21u8, 65u8, 110u8, 52u8, 245u8, 19u8, 6u8, 104u8, 167u8, + 101u8, 183u8, 36u8, 241u8, 67u8, 8u8, 252u8, 116u8, 110u8, 153u8, + 117u8, 210u8, 128u8, 80u8, 130u8, 163u8, 38u8, 76u8, 230u8, 107u8, + 112u8, 90u8, 102u8, 24u8, 217u8, 2u8, 244u8, 197u8, 103u8, 215u8, + 247u8, 133u8, ], ) } - #[doc = " Those who have locked a deposit."] - #[doc = ""] - #[doc = " TWOX-NOTE: Safe, as increasing integer keys are safe."] - pub fn deposit_of( + #[doc = " The current members of the collective."] + pub fn members( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ( - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::subxt::utils::AccountId32, - >, - ::core::primitive::u128, - ), + alias_types::members::Members, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( - "Democracy", - "DepositOf", + "FellowshipCollective", + "Members", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 115u8, 12u8, 250u8, 191u8, 201u8, 165u8, 90u8, 140u8, 101u8, 47u8, - 46u8, 3u8, 78u8, 30u8, 180u8, 22u8, 28u8, 154u8, 36u8, 99u8, 255u8, - 84u8, 33u8, 21u8, 65u8, 110u8, 52u8, 245u8, 19u8, 6u8, 104u8, 167u8, + 101u8, 183u8, 36u8, 241u8, 67u8, 8u8, 252u8, 116u8, 110u8, 153u8, + 117u8, 210u8, 128u8, 80u8, 130u8, 163u8, 38u8, 76u8, 230u8, 107u8, + 112u8, 90u8, 102u8, 24u8, 217u8, 2u8, 244u8, 197u8, 103u8, 215u8, + 247u8, 133u8, ], ) } - #[doc = " The next free referendum index, aka the number of referenda started so far."] - pub fn referendum_count( + #[doc = " The index of each ranks's member into the group of members who have at least that rank."] + pub fn id_to_index_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, + alias_types::id_to_index::IdToIndex, (), - > { - ::subxt::storage::address::Address::new_static( - "Democracy", - "ReferendumCount", - vec![], - [ - 64u8, 145u8, 232u8, 153u8, 121u8, 87u8, 128u8, 253u8, 170u8, 192u8, - 139u8, 18u8, 0u8, 33u8, 243u8, 11u8, 238u8, 222u8, 244u8, 5u8, 247u8, - 198u8, 149u8, 31u8, 122u8, 208u8, 86u8, 179u8, 166u8, 167u8, 93u8, - 67u8, - ], - ) - } - #[doc = " The lowest referendum index representing an unbaked referendum. Equal to"] - #[doc = " `ReferendumCount` if there isn't a unbaked referendum."] - pub fn lowest_unbaked( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, (), + ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Democracy", - "LowestUnbaked", + "FellowshipCollective", + "IdToIndex", vec![], [ - 237u8, 222u8, 144u8, 214u8, 0u8, 186u8, 81u8, 176u8, 51u8, 14u8, 204u8, - 184u8, 147u8, 97u8, 187u8, 84u8, 40u8, 8u8, 86u8, 241u8, 16u8, 157u8, - 202u8, 44u8, 185u8, 111u8, 70u8, 114u8, 40u8, 135u8, 1u8, 155u8, + 121u8, 225u8, 69u8, 131u8, 194u8, 3u8, 82u8, 27u8, 129u8, 152u8, 157u8, + 45u8, 39u8, 47u8, 166u8, 28u8, 42u8, 92u8, 217u8, 189u8, 160u8, 102u8, + 153u8, 196u8, 94u8, 48u8, 248u8, 113u8, 164u8, 111u8, 27u8, 9u8, ], ) } - #[doc = " Information concerning any given referendum."] - #[doc = ""] - #[doc = " TWOX-NOTE: SAFE as indexes are not under an attacker’s control."] - pub fn referendum_info_of_iter( + #[doc = " The index of each ranks's member into the group of members who have at least that rank."] + pub fn id_to_index_iter1( &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u16>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_democracy::types::ReferendumInfo< - ::core::primitive::u32, - runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::polkadot_runtime::RuntimeCall, - >, - ::core::primitive::u128, - >, + alias_types::id_to_index::IdToIndex, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Democracy", - "ReferendumInfoOf", - vec![], + "FellowshipCollective", + "IdToIndex", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], [ - 245u8, 152u8, 149u8, 236u8, 59u8, 164u8, 120u8, 142u8, 130u8, 25u8, - 119u8, 158u8, 103u8, 140u8, 203u8, 213u8, 110u8, 151u8, 137u8, 226u8, - 186u8, 130u8, 233u8, 245u8, 145u8, 145u8, 140u8, 54u8, 222u8, 219u8, - 234u8, 206u8, + 121u8, 225u8, 69u8, 131u8, 194u8, 3u8, 82u8, 27u8, 129u8, 152u8, 157u8, + 45u8, 39u8, 47u8, 166u8, 28u8, 42u8, 92u8, 217u8, 189u8, 160u8, 102u8, + 153u8, 196u8, 94u8, 48u8, 248u8, 113u8, 164u8, 111u8, 27u8, 9u8, ], ) } - #[doc = " Information concerning any given referendum."] - #[doc = ""] - #[doc = " TWOX-NOTE: SAFE as indexes are not under an attacker’s control."] - pub fn referendum_info_of( + #[doc = " The index of each ranks's member into the group of members who have at least that rank."] + pub fn id_to_index( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow<::core::primitive::u16>, + _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_democracy::types::ReferendumInfo< - ::core::primitive::u32, - runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::polkadot_runtime::RuntimeCall, - >, - ::core::primitive::u128, - >, + alias_types::id_to_index::IdToIndex, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( - "Democracy", - "ReferendumInfoOf", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], + "FellowshipCollective", + "IdToIndex", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], [ - 245u8, 152u8, 149u8, 236u8, 59u8, 164u8, 120u8, 142u8, 130u8, 25u8, - 119u8, 158u8, 103u8, 140u8, 203u8, 213u8, 110u8, 151u8, 137u8, 226u8, - 186u8, 130u8, 233u8, 245u8, 145u8, 145u8, 140u8, 54u8, 222u8, 219u8, - 234u8, 206u8, + 121u8, 225u8, 69u8, 131u8, 194u8, 3u8, 82u8, 27u8, 129u8, 152u8, 157u8, + 45u8, 39u8, 47u8, 166u8, 28u8, 42u8, 92u8, 217u8, 189u8, 160u8, 102u8, + 153u8, 196u8, 94u8, 48u8, 248u8, 113u8, 164u8, 111u8, 27u8, 9u8, ], ) } - #[doc = " All votes for a particular voter. We store the balance for the number of votes that we"] - #[doc = " have recorded. The second item is the total amount of delegations, that will be added."] - #[doc = ""] - #[doc = " TWOX-NOTE: SAFE as `AccountId`s are crypto hashes anyway."] - pub fn voting_of_iter( + #[doc = " The members in the collective by index. All indices in the range `0..MemberCount` will"] + #[doc = " return `Some`, however a member's index is not guaranteed to remain unchanged over time."] + pub fn index_to_id_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_democracy::vote::Voting< - ::core::primitive::u128, - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, + alias_types::index_to_id::IndexToId, + (), (), - ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Democracy", - "VotingOf", + "FellowshipCollective", + "IndexToId", vec![], [ - 234u8, 35u8, 206u8, 197u8, 17u8, 251u8, 1u8, 230u8, 80u8, 235u8, 108u8, - 126u8, 82u8, 145u8, 39u8, 104u8, 209u8, 16u8, 209u8, 52u8, 165u8, - 231u8, 110u8, 92u8, 113u8, 212u8, 72u8, 57u8, 60u8, 73u8, 107u8, 118u8, + 110u8, 48u8, 214u8, 224u8, 56u8, 195u8, 186u8, 24u8, 111u8, 37u8, 15u8, + 153u8, 245u8, 101u8, 229u8, 149u8, 216u8, 185u8, 7u8, 242u8, 196u8, + 29u8, 205u8, 243u8, 162u8, 92u8, 71u8, 253u8, 102u8, 152u8, 137u8, + 70u8, ], ) } - #[doc = " All votes for a particular voter. We store the balance for the number of votes that we"] - #[doc = " have recorded. The second item is the total amount of delegations, that will be added."] - #[doc = ""] - #[doc = " TWOX-NOTE: SAFE as `AccountId`s are crypto hashes anyway."] - pub fn voting_of( + #[doc = " The members in the collective by index. All indices in the range `0..MemberCount` will"] + #[doc = " return `Some`, however a member's index is not guaranteed to remain unchanged over time."] + pub fn index_to_id_iter1( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _0: impl ::std::borrow::Borrow<::core::primitive::u16>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_democracy::vote::Voting< - ::core::primitive::u128, - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, + alias_types::index_to_id::IndexToId, (), + (), + ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Democracy", - "VotingOf", + "FellowshipCollective", + "IndexToId", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 234u8, 35u8, 206u8, 197u8, 17u8, 251u8, 1u8, 230u8, 80u8, 235u8, 108u8, - 126u8, 82u8, 145u8, 39u8, 104u8, 209u8, 16u8, 209u8, 52u8, 165u8, - 231u8, 110u8, 92u8, 113u8, 212u8, 72u8, 57u8, 60u8, 73u8, 107u8, 118u8, - ], - ) - } - #[doc = " True if the last referendum tabled was submitted externally. False if it was a public"] - #[doc = " proposal."] - pub fn last_tabled_was_external( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::bool, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Democracy", - "LastTabledWasExternal", - vec![], - [ - 162u8, 201u8, 72u8, 9u8, 78u8, 49u8, 72u8, 62u8, 240u8, 69u8, 20u8, - 135u8, 26u8, 59u8, 71u8, 46u8, 19u8, 25u8, 195u8, 11u8, 99u8, 31u8, - 104u8, 4u8, 24u8, 129u8, 47u8, 69u8, 219u8, 178u8, 104u8, 190u8, + 110u8, 48u8, 214u8, 224u8, 56u8, 195u8, 186u8, 24u8, 111u8, 37u8, 15u8, + 153u8, 245u8, 101u8, 229u8, 149u8, 216u8, 185u8, 7u8, 242u8, 196u8, + 29u8, 205u8, 243u8, 162u8, 92u8, 71u8, 253u8, 102u8, 152u8, 137u8, + 70u8, ], ) } - #[doc = " The referendum to be tabled whenever it would be valid to table an external proposal."] - #[doc = " This happens when a referendum needs to be tabled and one of two conditions are met:"] - #[doc = " - `LastTabledWasExternal` is `false`; or"] - #[doc = " - `PublicProps` is empty."] - pub fn next_external( + #[doc = " The members in the collective by index. All indices in the range `0..MemberCount` will"] + #[doc = " return `Some`, however a member's index is not guaranteed to remain unchanged over time."] + pub fn index_to_id( &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u16>, + _1: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ( - runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::polkadot_runtime::RuntimeCall, - >, - runtime_types::pallet_democracy::vote_threshold::VoteThreshold, - ), + alias_types::index_to_id::IndexToId, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( - "Democracy", - "NextExternal", - vec![], + "FellowshipCollective", + "IndexToId", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], [ - 240u8, 58u8, 238u8, 86u8, 35u8, 48u8, 192u8, 51u8, 91u8, 4u8, 47u8, - 202u8, 21u8, 74u8, 158u8, 64u8, 107u8, 247u8, 248u8, 240u8, 122u8, - 109u8, 204u8, 180u8, 103u8, 239u8, 156u8, 68u8, 141u8, 253u8, 131u8, - 239u8, + 110u8, 48u8, 214u8, 224u8, 56u8, 195u8, 186u8, 24u8, 111u8, 37u8, 15u8, + 153u8, 245u8, 101u8, 229u8, 149u8, 216u8, 185u8, 7u8, 242u8, 196u8, + 29u8, 205u8, 243u8, 162u8, 92u8, 71u8, 253u8, 102u8, 152u8, 137u8, + 70u8, ], ) } - #[doc = " A record of who vetoed what. Maps proposal hash to a possible existent block number"] - #[doc = " (until when it may not be resubmitted) and who vetoed it."] - pub fn blacklist_iter( + #[doc = " Votes on a given proposal, if it is ongoing."] + pub fn voting_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ( - ::core::primitive::u32, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::subxt::utils::AccountId32, - >, - ), + alias_types::voting::Voting, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Democracy", - "Blacklist", + "FellowshipCollective", + "Voting", vec![], [ - 12u8, 231u8, 204u8, 151u8, 57u8, 182u8, 5u8, 74u8, 231u8, 100u8, 165u8, - 28u8, 147u8, 109u8, 119u8, 37u8, 138u8, 159u8, 7u8, 175u8, 41u8, 110u8, - 205u8, 69u8, 17u8, 9u8, 39u8, 102u8, 90u8, 244u8, 165u8, 141u8, + 180u8, 146u8, 236u8, 178u8, 30u8, 50u8, 161u8, 50u8, 140u8, 110u8, + 220u8, 1u8, 109u8, 209u8, 17u8, 94u8, 234u8, 223u8, 222u8, 177u8, + 243u8, 194u8, 246u8, 48u8, 178u8, 86u8, 30u8, 185u8, 56u8, 206u8, + 175u8, 18u8, ], ) } - #[doc = " A record of who vetoed what. Maps proposal hash to a possible existent block number"] - #[doc = " (until when it may not be resubmitted) and who vetoed it."] - pub fn blacklist( + #[doc = " Votes on a given proposal, if it is ongoing."] + pub fn voting_iter1( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ( - ::core::primitive::u32, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::subxt::utils::AccountId32, - >, - ), - ::subxt::storage::address::Yes, + alias_types::voting::Voting, (), (), + ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Democracy", - "Blacklist", + "FellowshipCollective", + "Voting", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 12u8, 231u8, 204u8, 151u8, 57u8, 182u8, 5u8, 74u8, 231u8, 100u8, 165u8, - 28u8, 147u8, 109u8, 119u8, 37u8, 138u8, 159u8, 7u8, 175u8, 41u8, 110u8, - 205u8, 69u8, 17u8, 9u8, 39u8, 102u8, 90u8, 244u8, 165u8, 141u8, - ], - ) - } - #[doc = " Record of all proposals that have been subject to emergency cancellation."] - pub fn cancellations_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::bool, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Democracy", - "Cancellations", - vec![], - [ - 80u8, 190u8, 98u8, 105u8, 129u8, 25u8, 167u8, 180u8, 74u8, 128u8, - 232u8, 29u8, 193u8, 209u8, 185u8, 60u8, 18u8, 180u8, 59u8, 192u8, - 149u8, 13u8, 123u8, 232u8, 34u8, 208u8, 48u8, 104u8, 35u8, 181u8, - 186u8, 244u8, + 180u8, 146u8, 236u8, 178u8, 30u8, 50u8, 161u8, 50u8, 140u8, 110u8, + 220u8, 1u8, 109u8, 209u8, 17u8, 94u8, 234u8, 223u8, 222u8, 177u8, + 243u8, 194u8, 246u8, 48u8, 178u8, 86u8, 30u8, 185u8, 56u8, 206u8, + 175u8, 18u8, ], ) } - #[doc = " Record of all proposals that have been subject to emergency cancellation."] - pub fn cancellations( + #[doc = " Votes on a given proposal, if it is ongoing."] + pub fn voting( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::bool, - ::subxt::storage::address::Yes, + alias_types::voting::Voting, ::subxt::storage::address::Yes, (), + (), > { ::subxt::storage::address::Address::new_static( - "Democracy", - "Cancellations", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], + "FellowshipCollective", + "Voting", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], [ - 80u8, 190u8, 98u8, 105u8, 129u8, 25u8, 167u8, 180u8, 74u8, 128u8, - 232u8, 29u8, 193u8, 209u8, 185u8, 60u8, 18u8, 180u8, 59u8, 192u8, - 149u8, 13u8, 123u8, 232u8, 34u8, 208u8, 48u8, 104u8, 35u8, 181u8, - 186u8, 244u8, + 180u8, 146u8, 236u8, 178u8, 30u8, 50u8, 161u8, 50u8, 140u8, 110u8, + 220u8, 1u8, 109u8, 209u8, 17u8, 94u8, 234u8, 223u8, 222u8, 177u8, + 243u8, 194u8, 246u8, 48u8, 178u8, 86u8, 30u8, 185u8, 56u8, 206u8, + 175u8, 18u8, ], ) } - #[doc = " General information concerning any proposal or referendum."] - #[doc = " The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON"] - #[doc = " dump or IPFS hash of a JSON file."] - #[doc = ""] - #[doc = " Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)"] - #[doc = " large preimages."] - pub fn metadata_of_iter( + pub fn voting_cleanup_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::subxt::utils::H256, + alias_types::voting_cleanup::VotingCleanup, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Democracy", - "MetadataOf", + "FellowshipCollective", + "VotingCleanup", vec![], [ - 52u8, 151u8, 124u8, 110u8, 85u8, 173u8, 181u8, 86u8, 174u8, 183u8, - 102u8, 22u8, 8u8, 36u8, 224u8, 114u8, 98u8, 0u8, 220u8, 215u8, 19u8, - 147u8, 32u8, 238u8, 242u8, 187u8, 235u8, 163u8, 183u8, 235u8, 9u8, - 180u8, + 223u8, 130u8, 79u8, 104u8, 94u8, 221u8, 222u8, 72u8, 187u8, 95u8, + 231u8, 59u8, 28u8, 119u8, 191u8, 63u8, 40u8, 186u8, 58u8, 254u8, 14u8, + 233u8, 152u8, 36u8, 2u8, 231u8, 120u8, 13u8, 120u8, 211u8, 232u8, 11u8, ], ) } - #[doc = " General information concerning any proposal or referendum."] - #[doc = " The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON"] - #[doc = " dump or IPFS hash of a JSON file."] - #[doc = ""] - #[doc = " Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)"] - #[doc = " large preimages."] - pub fn metadata_of( + pub fn voting_cleanup( &self, - _0: impl ::std::borrow::Borrow< - runtime_types::pallet_democracy::types::MetadataOwner, - >, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::subxt::utils::H256, + alias_types::voting_cleanup::VotingCleanup, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( - "Democracy", - "MetadataOf", + "FellowshipCollective", + "VotingCleanup", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 52u8, 151u8, 124u8, 110u8, 85u8, 173u8, 181u8, 86u8, 174u8, 183u8, - 102u8, 22u8, 8u8, 36u8, 224u8, 114u8, 98u8, 0u8, 220u8, 215u8, 19u8, - 147u8, 32u8, 238u8, 242u8, 187u8, 235u8, 163u8, 183u8, 235u8, 9u8, - 180u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The period between a proposal being approved and enacted."] - #[doc = ""] - #[doc = " It should generally be a little more than the unstake period to ensure that"] - #[doc = " voting stakers have an opportunity to remove themselves from the system in the case"] - #[doc = " where they are on the losing side of a vote."] - pub fn enactment_period( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Democracy", - "EnactmentPeriod", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " How often (in blocks) new public referenda are launched."] - pub fn launch_period(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Democracy", - "LaunchPeriod", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " How often (in blocks) to check for new votes."] - pub fn voting_period(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Democracy", - "VotingPeriod", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The minimum period of vote locking."] - #[doc = ""] - #[doc = " It should be no shorter than enactment period to ensure that in the case of an approval,"] - #[doc = " those successful voters are locked into the consequences that their votes entail."] - pub fn vote_locking_period( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Democracy", - "VoteLockingPeriod", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The minimum amount to be used as a deposit for a public referendum proposal."] - pub fn minimum_deposit( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "Democracy", - "MinimumDeposit", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ], - ) - } - #[doc = " Indicator for whether an emergency origin is even allowed to happen. Some chains may"] - #[doc = " want to set this permanently to `false`, others may want to condition it on things such"] - #[doc = " as an upgrade having happened recently."] - pub fn instant_allowed( - &self, - ) -> ::subxt::constants::Address<::core::primitive::bool> { - ::subxt::constants::Address::new_static( - "Democracy", - "InstantAllowed", - [ - 165u8, 28u8, 112u8, 190u8, 18u8, 129u8, 182u8, 206u8, 237u8, 1u8, 68u8, - 252u8, 125u8, 234u8, 185u8, 50u8, 149u8, 164u8, 47u8, 126u8, 134u8, - 100u8, 14u8, 86u8, 209u8, 39u8, 20u8, 4u8, 233u8, 115u8, 102u8, 131u8, - ], - ) - } - #[doc = " Minimum voting period allowed for a fast-track referendum."] - pub fn fast_track_voting_period( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Democracy", - "FastTrackVotingPeriod", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " Period in blocks where an external proposal may not be re-submitted after being vetoed."] - pub fn cooloff_period( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Democracy", - "CooloffPeriod", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The maximum number of votes for an account."] - #[doc = ""] - #[doc = " Also used to compute weight, an overly big value can"] - #[doc = " lead to extrinsic with very big weight: see `delegate` for instance."] - pub fn max_votes(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Democracy", - "MaxVotes", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The maximum number of public proposals that can exist at any time."] - pub fn max_proposals(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Democracy", - "MaxProposals", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The maximum number of deposits a public proposal may have at any time."] - pub fn max_deposits(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Democracy", - "MaxDeposits", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The maximum number of items which can be blacklisted."] - pub fn max_blacklisted( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Democracy", - "MaxBlacklisted", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, + 223u8, 130u8, 79u8, 104u8, 94u8, 221u8, 222u8, 72u8, 187u8, 95u8, + 231u8, 59u8, 28u8, 119u8, 191u8, 63u8, 40u8, 186u8, 58u8, 254u8, 14u8, + 233u8, 152u8, 36u8, 2u8, 231u8, 120u8, 13u8, 120u8, 211u8, 232u8, 11u8, ], ) } } } } - pub mod council { + pub mod fellowship_referenda { use super::root_mod; use super::runtime_types; #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_collective::pallet::Error; + pub type Error = runtime_types::pallet_referenda::pallet::Error2; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::pallet_collective::pallet::Call; + pub type Call = runtime_types::pallet_referenda::pallet::Call2; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { + pub mod alias_types { use super::runtime_types; - #[derive( + pub mod submit { + use super::runtime_types; + pub type ProposalOrigin = runtime_types::rococo_runtime::OriginCaller; + pub type Proposal = runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::rococo_runtime::RuntimeCall, + runtime_types::sp_runtime::traits::BlakeTwo256, + >; + pub type EnactmentMoment = + runtime_types::frame_support::traits::schedule::DispatchTime< + ::core::primitive::u32, + >; + } + pub mod place_decision_deposit { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + } + pub mod refund_decision_deposit { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + } + pub mod cancel { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + } + pub mod kill { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + } + pub mod nudge_referendum { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + } + pub mod one_fewer_deciding { + use super::runtime_types; + pub type Track = ::core::primitive::u16; + } + pub mod refund_submission_deposit { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + } + pub mod set_metadata { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type MaybeHash = ::core::option::Option<::subxt::utils::H256>; + } + } + pub mod types { + use super::runtime_types; + #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -13735,16 +12488,24 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SetMembers { - pub new_members: ::std::vec::Vec<::subxt::utils::AccountId32>, - pub prime: ::core::option::Option<::subxt::utils::AccountId32>, - pub old_count: ::core::primitive::u32, + pub struct Submit { + pub proposal_origin: + ::std::boxed::Box, + pub proposal: runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::rococo_runtime::RuntimeCall, + runtime_types::sp_runtime::traits::BlakeTwo256, + >, + pub enactment_moment: + runtime_types::frame_support::traits::schedule::DispatchTime< + ::core::primitive::u32, + >, } - impl ::subxt::blocks::StaticExtrinsic for SetMembers { - const PALLET: &'static str = "Council"; - const CALL: &'static str = "set_members"; + impl ::subxt::blocks::StaticExtrinsic for Submit { + const PALLET: &'static str = "FellowshipReferenda"; + const CALL: &'static str = "submit"; } #[derive( + :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -13754,16 +12515,15 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Execute { - pub proposal: ::std::boxed::Box, - #[codec(compact)] - pub length_bound: ::core::primitive::u32, + pub struct PlaceDecisionDeposit { + pub index: ::core::primitive::u32, } - impl ::subxt::blocks::StaticExtrinsic for Execute { - const PALLET: &'static str = "Council"; - const CALL: &'static str = "execute"; + impl ::subxt::blocks::StaticExtrinsic for PlaceDecisionDeposit { + const PALLET: &'static str = "FellowshipReferenda"; + const CALL: &'static str = "place_decision_deposit"; } #[derive( + :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -13773,18 +12533,15 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Propose { - #[codec(compact)] - pub threshold: ::core::primitive::u32, - pub proposal: ::std::boxed::Box, - #[codec(compact)] - pub length_bound: ::core::primitive::u32, + pub struct RefundDecisionDeposit { + pub index: ::core::primitive::u32, } - impl ::subxt::blocks::StaticExtrinsic for Propose { - const PALLET: &'static str = "Council"; - const CALL: &'static str = "propose"; + impl ::subxt::blocks::StaticExtrinsic for RefundDecisionDeposit { + const PALLET: &'static str = "FellowshipReferenda"; + const CALL: &'static str = "refund_decision_deposit"; } #[derive( + :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -13794,17 +12551,33 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Vote { - pub proposal: ::subxt::utils::H256, - #[codec(compact)] + pub struct Cancel { pub index: ::core::primitive::u32, - pub approve: ::core::primitive::bool, } - impl ::subxt::blocks::StaticExtrinsic for Vote { - const PALLET: &'static str = "Council"; - const CALL: &'static str = "vote"; + impl ::subxt::blocks::StaticExtrinsic for Cancel { + const PALLET: &'static str = "FellowshipReferenda"; + const CALL: &'static str = "cancel"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Kill { + pub index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for Kill { + const PALLET: &'static str = "FellowshipReferenda"; + const CALL: &'static str = "kill"; } #[derive( + :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -13814,14 +12587,15 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct DisapproveProposal { - pub proposal_hash: ::subxt::utils::H256, + pub struct NudgeReferendum { + pub index: ::core::primitive::u32, } - impl ::subxt::blocks::StaticExtrinsic for DisapproveProposal { - const PALLET: &'static str = "Council"; - const CALL: &'static str = "disapprove_proposal"; + impl ::subxt::blocks::StaticExtrinsic for NudgeReferendum { + const PALLET: &'static str = "FellowshipReferenda"; + const CALL: &'static str = "nudge_referendum"; } #[derive( + :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -13831,154 +12605,213 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Close { - pub proposal_hash: ::subxt::utils::H256, - #[codec(compact)] + pub struct OneFewerDeciding { + pub track: ::core::primitive::u16, + } + impl ::subxt::blocks::StaticExtrinsic for OneFewerDeciding { + const PALLET: &'static str = "FellowshipReferenda"; + const CALL: &'static str = "one_fewer_deciding"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct RefundSubmissionDeposit { pub index: ::core::primitive::u32, - pub proposal_weight_bound: runtime_types::sp_weights::weight_v2::Weight, - #[codec(compact)] - pub length_bound: ::core::primitive::u32, } - impl ::subxt::blocks::StaticExtrinsic for Close { - const PALLET: &'static str = "Council"; - const CALL: &'static str = "close"; + impl ::subxt::blocks::StaticExtrinsic for RefundSubmissionDeposit { + const PALLET: &'static str = "FellowshipReferenda"; + const CALL: &'static str = "refund_submission_deposit"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SetMetadata { + pub index: ::core::primitive::u32, + pub maybe_hash: ::core::option::Option<::subxt::utils::H256>, + } + impl ::subxt::blocks::StaticExtrinsic for SetMetadata { + const PALLET: &'static str = "FellowshipReferenda"; + const CALL: &'static str = "set_metadata"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::set_members`]."] - pub fn set_members( - &self, - new_members: ::std::vec::Vec<::subxt::utils::AccountId32>, - prime: ::core::option::Option<::subxt::utils::AccountId32>, - old_count: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Council", - "set_members", - types::SetMembers { - new_members, - prime, - old_count, + #[doc = "See [`Pallet::submit`]."] + pub fn submit( + &self, + proposal_origin: alias_types::submit::ProposalOrigin, + proposal: alias_types::submit::Proposal, + enactment_moment: alias_types::submit::EnactmentMoment, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "FellowshipReferenda", + "submit", + types::Submit { + proposal_origin: ::std::boxed::Box::new(proposal_origin), + proposal, + enactment_moment, }, [ - 66u8, 224u8, 186u8, 178u8, 41u8, 208u8, 67u8, 192u8, 57u8, 242u8, - 141u8, 31u8, 216u8, 118u8, 192u8, 43u8, 125u8, 213u8, 226u8, 85u8, - 142u8, 225u8, 131u8, 45u8, 172u8, 142u8, 12u8, 9u8, 73u8, 7u8, 218u8, - 61u8, + 116u8, 212u8, 158u8, 18u8, 89u8, 136u8, 153u8, 97u8, 43u8, 197u8, + 200u8, 161u8, 145u8, 102u8, 19u8, 25u8, 135u8, 13u8, 199u8, 101u8, + 107u8, 221u8, 244u8, 15u8, 192u8, 176u8, 3u8, 154u8, 248u8, 70u8, + 113u8, 69u8, ], ) } - #[doc = "See [`Pallet::execute`]."] - pub fn execute( + #[doc = "See [`Pallet::place_decision_deposit`]."] + pub fn place_decision_deposit( &self, - proposal: runtime_types::polkadot_runtime::RuntimeCall, - length_bound: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + index: alias_types::place_decision_deposit::Index, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Council", - "execute", - types::Execute { - proposal: ::std::boxed::Box::new(proposal), - length_bound, - }, + "FellowshipReferenda", + "place_decision_deposit", + types::PlaceDecisionDeposit { index }, [ - 57u8, 78u8, 135u8, 149u8, 15u8, 44u8, 123u8, 161u8, 121u8, 152u8, 73u8, - 76u8, 23u8, 178u8, 128u8, 134u8, 229u8, 116u8, 220u8, 209u8, 124u8, - 175u8, 9u8, 173u8, 123u8, 76u8, 137u8, 124u8, 232u8, 100u8, 217u8, - 233u8, + 247u8, 158u8, 55u8, 191u8, 188u8, 200u8, 3u8, 47u8, 20u8, 175u8, 86u8, + 203u8, 52u8, 253u8, 91u8, 131u8, 21u8, 213u8, 56u8, 68u8, 40u8, 84u8, + 184u8, 30u8, 9u8, 193u8, 63u8, 182u8, 178u8, 241u8, 247u8, 220u8, ], ) } - #[doc = "See [`Pallet::propose`]."] - pub fn propose( + #[doc = "See [`Pallet::refund_decision_deposit`]."] + pub fn refund_decision_deposit( &self, - threshold: ::core::primitive::u32, - proposal: runtime_types::polkadot_runtime::RuntimeCall, - length_bound: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + index: alias_types::refund_decision_deposit::Index, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Council", - "propose", - types::Propose { - threshold, - proposal: ::std::boxed::Box::new(proposal), - length_bound, - }, + "FellowshipReferenda", + "refund_decision_deposit", + types::RefundDecisionDeposit { index }, [ - 92u8, 0u8, 105u8, 179u8, 198u8, 127u8, 109u8, 59u8, 52u8, 164u8, 49u8, - 190u8, 20u8, 241u8, 90u8, 62u8, 104u8, 148u8, 58u8, 135u8, 184u8, 51u8, - 119u8, 48u8, 219u8, 241u8, 173u8, 77u8, 233u8, 109u8, 237u8, 25u8, + 159u8, 19u8, 35u8, 216u8, 114u8, 105u8, 18u8, 42u8, 148u8, 151u8, + 136u8, 92u8, 117u8, 30u8, 29u8, 41u8, 238u8, 58u8, 195u8, 91u8, 115u8, + 135u8, 96u8, 99u8, 154u8, 233u8, 8u8, 249u8, 145u8, 165u8, 77u8, 164u8, ], ) } - #[doc = "See [`Pallet::vote`]."] - pub fn vote( + #[doc = "See [`Pallet::cancel`]."] + pub fn cancel( &self, - proposal: ::subxt::utils::H256, - index: ::core::primitive::u32, - approve: ::core::primitive::bool, - ) -> ::subxt::tx::Payload { + index: alias_types::cancel::Index, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Council", - "vote", - types::Vote { - proposal, - index, - approve, - }, + "FellowshipReferenda", + "cancel", + types::Cancel { index }, [ - 110u8, 141u8, 24u8, 33u8, 91u8, 7u8, 89u8, 198u8, 54u8, 10u8, 76u8, - 129u8, 45u8, 20u8, 216u8, 104u8, 231u8, 246u8, 174u8, 205u8, 190u8, - 176u8, 171u8, 113u8, 33u8, 37u8, 155u8, 203u8, 251u8, 34u8, 25u8, - 120u8, + 55u8, 206u8, 119u8, 156u8, 238u8, 165u8, 193u8, 73u8, 242u8, 13u8, + 212u8, 75u8, 136u8, 156u8, 151u8, 14u8, 35u8, 41u8, 156u8, 107u8, 60u8, + 190u8, 39u8, 216u8, 8u8, 74u8, 213u8, 130u8, 160u8, 131u8, 237u8, + 122u8, ], ) } - #[doc = "See [`Pallet::disapprove_proposal`]."] - pub fn disapprove_proposal( + #[doc = "See [`Pallet::kill`]."] + pub fn kill( &self, - proposal_hash: ::subxt::utils::H256, - ) -> ::subxt::tx::Payload { + index: alias_types::kill::Index, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Council", - "disapprove_proposal", - types::DisapproveProposal { proposal_hash }, + "FellowshipReferenda", + "kill", + types::Kill { index }, [ - 26u8, 140u8, 111u8, 193u8, 229u8, 59u8, 53u8, 196u8, 230u8, 60u8, 7u8, - 155u8, 168u8, 7u8, 201u8, 177u8, 70u8, 103u8, 190u8, 57u8, 244u8, - 156u8, 67u8, 101u8, 228u8, 6u8, 213u8, 83u8, 225u8, 95u8, 148u8, 96u8, + 50u8, 89u8, 57u8, 0u8, 87u8, 129u8, 113u8, 140u8, 179u8, 178u8, 126u8, + 198u8, 92u8, 92u8, 189u8, 64u8, 123u8, 232u8, 57u8, 227u8, 223u8, + 219u8, 73u8, 217u8, 179u8, 44u8, 210u8, 125u8, 180u8, 10u8, 143u8, + 48u8, ], ) } - #[doc = "See [`Pallet::close`]."] - pub fn close( + #[doc = "See [`Pallet::nudge_referendum`]."] + pub fn nudge_referendum( &self, - proposal_hash: ::subxt::utils::H256, - index: ::core::primitive::u32, - proposal_weight_bound: runtime_types::sp_weights::weight_v2::Weight, - length_bound: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Council", - "close", - types::Close { - proposal_hash, - index, - proposal_weight_bound, - length_bound, - }, + index: alias_types::nudge_referendum::Index, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "FellowshipReferenda", + "nudge_referendum", + types::NudgeReferendum { index }, + [ + 75u8, 99u8, 172u8, 30u8, 170u8, 150u8, 211u8, 229u8, 249u8, 128u8, + 194u8, 246u8, 100u8, 142u8, 193u8, 184u8, 232u8, 81u8, 29u8, 17u8, + 99u8, 91u8, 236u8, 85u8, 230u8, 226u8, 57u8, 115u8, 45u8, 170u8, 54u8, + 213u8, + ], + ) + } + #[doc = "See [`Pallet::one_fewer_deciding`]."] + pub fn one_fewer_deciding( + &self, + track: alias_types::one_fewer_deciding::Track, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "FellowshipReferenda", + "one_fewer_deciding", + types::OneFewerDeciding { track }, + [ + 15u8, 84u8, 79u8, 231u8, 21u8, 239u8, 244u8, 143u8, 183u8, 215u8, + 181u8, 25u8, 225u8, 195u8, 95u8, 171u8, 17u8, 156u8, 182u8, 128u8, + 111u8, 40u8, 151u8, 102u8, 196u8, 55u8, 36u8, 212u8, 89u8, 190u8, + 131u8, 167u8, + ], + ) + } + #[doc = "See [`Pallet::refund_submission_deposit`]."] + pub fn refund_submission_deposit( + &self, + index: alias_types::refund_submission_deposit::Index, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "FellowshipReferenda", + "refund_submission_deposit", + types::RefundSubmissionDeposit { index }, + [ + 20u8, 217u8, 115u8, 6u8, 1u8, 60u8, 54u8, 136u8, 35u8, 41u8, 38u8, + 23u8, 85u8, 100u8, 141u8, 126u8, 30u8, 160u8, 61u8, 46u8, 134u8, 98u8, + 82u8, 38u8, 211u8, 124u8, 208u8, 222u8, 210u8, 10u8, 155u8, 122u8, + ], + ) + } + #[doc = "See [`Pallet::set_metadata`]."] + pub fn set_metadata( + &self, + index: alias_types::set_metadata::Index, + maybe_hash: alias_types::set_metadata::MaybeHash, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "FellowshipReferenda", + "set_metadata", + types::SetMetadata { index, maybe_hash }, [ - 136u8, 48u8, 243u8, 34u8, 60u8, 109u8, 186u8, 158u8, 72u8, 48u8, 62u8, - 34u8, 167u8, 46u8, 33u8, 142u8, 239u8, 43u8, 238u8, 125u8, 94u8, 80u8, - 157u8, 245u8, 220u8, 126u8, 58u8, 244u8, 186u8, 195u8, 30u8, 127u8, + 207u8, 29u8, 146u8, 233u8, 219u8, 205u8, 88u8, 118u8, 106u8, 61u8, + 124u8, 101u8, 2u8, 41u8, 169u8, 70u8, 114u8, 189u8, 162u8, 118u8, 1u8, + 108u8, 234u8, 98u8, 245u8, 245u8, 183u8, 126u8, 89u8, 13u8, 112u8, + 88u8, ], ) } } } #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_collective::pallet::Event; + pub type Event = runtime_types::pallet_referenda::pallet::Event2; pub mod events { use super::runtime_types; #[derive( @@ -13991,17 +12824,18 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A motion (given hash) has been proposed (by given account) with a threshold (given"] - #[doc = "`MemberCount`)."] - pub struct Proposed { - pub account: ::subxt::utils::AccountId32, - pub proposal_index: ::core::primitive::u32, - pub proposal_hash: ::subxt::utils::H256, - pub threshold: ::core::primitive::u32, + #[doc = "A referendum has been submitted."] + pub struct Submitted { + pub index: ::core::primitive::u32, + pub track: ::core::primitive::u16, + pub proposal: runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::rococo_runtime::RuntimeCall, + runtime_types::sp_runtime::traits::BlakeTwo256, + >, } - impl ::subxt::events::StaticEvent for Proposed { - const PALLET: &'static str = "Council"; - const EVENT: &'static str = "Proposed"; + impl ::subxt::events::StaticEvent for Submitted { + const PALLET: &'static str = "FellowshipReferenda"; + const EVENT: &'static str = "Submitted"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -14013,20 +12847,136 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A motion (given hash) has been voted on by given account, leaving"] - #[doc = "a tally (yes votes and no votes given respectively as `MemberCount`)."] - pub struct Voted { - pub account: ::subxt::utils::AccountId32, - pub proposal_hash: ::subxt::utils::H256, - pub voted: ::core::primitive::bool, - pub yes: ::core::primitive::u32, - pub no: ::core::primitive::u32, + #[doc = "The decision deposit has been placed."] + pub struct DecisionDepositPlaced { + pub index: ::core::primitive::u32, + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, } - impl ::subxt::events::StaticEvent for Voted { - const PALLET: &'static str = "Council"; - const EVENT: &'static str = "Voted"; + impl ::subxt::events::StaticEvent for DecisionDepositPlaced { + const PALLET: &'static str = "FellowshipReferenda"; + const EVENT: &'static str = "DecisionDepositPlaced"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The decision deposit has been refunded."] + pub struct DecisionDepositRefunded { + pub index: ::core::primitive::u32, + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for DecisionDepositRefunded { + const PALLET: &'static str = "FellowshipReferenda"; + const EVENT: &'static str = "DecisionDepositRefunded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A deposit has been slashed."] + pub struct DepositSlashed { + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for DepositSlashed { + const PALLET: &'static str = "FellowshipReferenda"; + const EVENT: &'static str = "DepositSlashed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A referendum has moved into the deciding phase."] + pub struct DecisionStarted { + pub index: ::core::primitive::u32, + pub track: ::core::primitive::u16, + pub proposal: runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::rococo_runtime::RuntimeCall, + runtime_types::sp_runtime::traits::BlakeTwo256, + >, + pub tally: runtime_types::pallet_ranked_collective::Tally, + } + impl ::subxt::events::StaticEvent for DecisionStarted { + const PALLET: &'static str = "FellowshipReferenda"; + const EVENT: &'static str = "DecisionStarted"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ConfirmStarted { + pub index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for ConfirmStarted { + const PALLET: &'static str = "FellowshipReferenda"; + const EVENT: &'static str = "ConfirmStarted"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ConfirmAborted { + pub index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for ConfirmAborted { + const PALLET: &'static str = "FellowshipReferenda"; + const EVENT: &'static str = "ConfirmAborted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A referendum has ended its confirmation phase and is ready for approval."] + pub struct Confirmed { + pub index: ::core::primitive::u32, + pub tally: runtime_types::pallet_ranked_collective::Tally, + } + impl ::subxt::events::StaticEvent for Confirmed { + const PALLET: &'static str = "FellowshipReferenda"; + const EVENT: &'static str = "Confirmed"; } #[derive( + :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -14036,12 +12986,12 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A motion was approved by the required threshold."] + #[doc = "A referendum has been approved and its proposal has been scheduled."] pub struct Approved { - pub proposal_hash: ::subxt::utils::H256, + pub index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Approved { - const PALLET: &'static str = "Council"; + const PALLET: &'static str = "FellowshipReferenda"; const EVENT: &'static str = "Approved"; } #[derive( @@ -14054,13 +13004,14 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A motion was not approved by the required threshold."] - pub struct Disapproved { - pub proposal_hash: ::subxt::utils::H256, + #[doc = "A proposal has been rejected by referendum."] + pub struct Rejected { + pub index: ::core::primitive::u32, + pub tally: runtime_types::pallet_ranked_collective::Tally, } - impl ::subxt::events::StaticEvent for Disapproved { - const PALLET: &'static str = "Council"; - const EVENT: &'static str = "Disapproved"; + impl ::subxt::events::StaticEvent for Rejected { + const PALLET: &'static str = "FellowshipReferenda"; + const EVENT: &'static str = "Rejected"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -14072,14 +13023,14 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A motion was executed; result will be `Ok` if it returned without error."] - pub struct Executed { - pub proposal_hash: ::subxt::utils::H256, - pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + #[doc = "A referendum has been timed out without being decided."] + pub struct TimedOut { + pub index: ::core::primitive::u32, + pub tally: runtime_types::pallet_ranked_collective::Tally, } - impl ::subxt::events::StaticEvent for Executed { - const PALLET: &'static str = "Council"; - const EVENT: &'static str = "Executed"; + impl ::subxt::events::StaticEvent for TimedOut { + const PALLET: &'static str = "FellowshipReferenda"; + const EVENT: &'static str = "TimedOut"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -14091,14 +13042,72 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A single member did some action; result will be `Ok` if it returned without error."] - pub struct MemberExecuted { - pub proposal_hash: ::subxt::utils::H256, - pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + #[doc = "A referendum has been cancelled."] + pub struct Cancelled { + pub index: ::core::primitive::u32, + pub tally: runtime_types::pallet_ranked_collective::Tally, + } + impl ::subxt::events::StaticEvent for Cancelled { + const PALLET: &'static str = "FellowshipReferenda"; + const EVENT: &'static str = "Cancelled"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A referendum has been killed."] + pub struct Killed { + pub index: ::core::primitive::u32, + pub tally: runtime_types::pallet_ranked_collective::Tally, + } + impl ::subxt::events::StaticEvent for Killed { + const PALLET: &'static str = "FellowshipReferenda"; + const EVENT: &'static str = "Killed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The submission deposit has been refunded."] + pub struct SubmissionDepositRefunded { + pub index: ::core::primitive::u32, + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for SubmissionDepositRefunded { + const PALLET: &'static str = "FellowshipReferenda"; + const EVENT: &'static str = "SubmissionDepositRefunded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Metadata for a referendum has been set."] + pub struct MetadataSet { + pub index: ::core::primitive::u32, + pub hash: ::subxt::utils::H256, } - impl ::subxt::events::StaticEvent for MemberExecuted { - const PALLET: &'static str = "Council"; - const EVENT: &'static str = "MemberExecuted"; + impl ::subxt::events::StaticEvent for MetadataSet { + const PALLET: &'static str = "FellowshipReferenda"; + const EVENT: &'static str = "MetadataSet"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -14110,202 +13119,281 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A proposal was closed because its threshold was reached or after its duration was up."] - pub struct Closed { - pub proposal_hash: ::subxt::utils::H256, - pub yes: ::core::primitive::u32, - pub no: ::core::primitive::u32, + #[doc = "Metadata for a referendum has been cleared."] + pub struct MetadataCleared { + pub index: ::core::primitive::u32, + pub hash: ::subxt::utils::H256, } - impl ::subxt::events::StaticEvent for Closed { - const PALLET: &'static str = "Council"; - const EVENT: &'static str = "Closed"; + impl ::subxt::events::StaticEvent for MetadataCleared { + const PALLET: &'static str = "FellowshipReferenda"; + const EVENT: &'static str = "MetadataCleared"; } } pub mod storage { use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod referendum_count { + use super::runtime_types; + pub type ReferendumCount = ::core::primitive::u32; + } + pub mod referendum_info_for { + use super::runtime_types; + pub type ReferendumInfoFor = + runtime_types::pallet_referenda::types::ReferendumInfo< + ::core::primitive::u16, + runtime_types::rococo_runtime::OriginCaller, + ::core::primitive::u32, + runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::rococo_runtime::RuntimeCall, + runtime_types::sp_runtime::traits::BlakeTwo256, + >, + ::core::primitive::u128, + runtime_types::pallet_ranked_collective::Tally, + ::subxt::utils::AccountId32, + (::core::primitive::u32, ::core::primitive::u32), + >; + } + pub mod track_queue { + use super::runtime_types; + pub type TrackQueue = + runtime_types::bounded_collections::bounded_vec::BoundedVec<( + ::core::primitive::u32, + ::core::primitive::u32, + )>; + } + pub mod deciding_count { + use super::runtime_types; + pub type DecidingCount = ::core::primitive::u32; + } + pub mod metadata_of { + use super::runtime_types; + pub type MetadataOf = ::subxt::utils::H256; + } + } pub struct StorageApi; impl StorageApi { - #[doc = " The hashes of the active proposals."] - pub fn proposals( + #[doc = " The next free referendum index, aka the number of referenda started so far."] + pub fn referendum_count( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::subxt::utils::H256, - >, + alias_types::referendum_count::ReferendumCount, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( - "Council", - "Proposals", + "FellowshipReferenda", + "ReferendumCount", vec![], [ - 210u8, 234u8, 7u8, 29u8, 231u8, 80u8, 17u8, 36u8, 189u8, 34u8, 175u8, - 147u8, 56u8, 92u8, 201u8, 104u8, 207u8, 150u8, 58u8, 110u8, 90u8, 28u8, - 198u8, 79u8, 236u8, 245u8, 19u8, 38u8, 68u8, 59u8, 215u8, 74u8, + 64u8, 145u8, 232u8, 153u8, 121u8, 87u8, 128u8, 253u8, 170u8, 192u8, + 139u8, 18u8, 0u8, 33u8, 243u8, 11u8, 238u8, 222u8, 244u8, 5u8, 247u8, + 198u8, 149u8, 31u8, 122u8, 208u8, 86u8, 179u8, 166u8, 167u8, 93u8, + 67u8, ], ) } - #[doc = " Actual proposal for a given hash, if it's current."] - pub fn proposal_of_iter( + #[doc = " Information concerning any given referendum."] + pub fn referendum_info_for_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_runtime::RuntimeCall, + alias_types::referendum_info_for::ReferendumInfoFor, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Council", - "ProposalOf", + "FellowshipReferenda", + "ReferendumInfoFor", vec![], [ - 195u8, 20u8, 2u8, 141u8, 194u8, 2u8, 242u8, 114u8, 171u8, 16u8, 47u8, - 26u8, 11u8, 186u8, 159u8, 123u8, 59u8, 163u8, 129u8, 101u8, 0u8, 132u8, - 45u8, 116u8, 249u8, 72u8, 247u8, 143u8, 35u8, 163u8, 132u8, 246u8, + 154u8, 115u8, 139u8, 27u8, 56u8, 76u8, 212u8, 73u8, 155u8, 177u8, 26u8, + 156u8, 1u8, 163u8, 243u8, 143u8, 10u8, 188u8, 63u8, 63u8, 190u8, 158u8, + 142u8, 61u8, 245u8, 254u8, 11u8, 109u8, 170u8, 98u8, 77u8, 95u8, ], ) } - #[doc = " Actual proposal for a given hash, if it's current."] - pub fn proposal_of( + #[doc = " Information concerning any given referendum."] + pub fn referendum_info_for( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_runtime::RuntimeCall, + alias_types::referendum_info_for::ReferendumInfoFor, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( - "Council", - "ProposalOf", + "FellowshipReferenda", + "ReferendumInfoFor", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 195u8, 20u8, 2u8, 141u8, 194u8, 2u8, 242u8, 114u8, 171u8, 16u8, 47u8, - 26u8, 11u8, 186u8, 159u8, 123u8, 59u8, 163u8, 129u8, 101u8, 0u8, 132u8, - 45u8, 116u8, 249u8, 72u8, 247u8, 143u8, 35u8, 163u8, 132u8, 246u8, + 154u8, 115u8, 139u8, 27u8, 56u8, 76u8, 212u8, 73u8, 155u8, 177u8, 26u8, + 156u8, 1u8, 163u8, 243u8, 143u8, 10u8, 188u8, 63u8, 63u8, 190u8, 158u8, + 142u8, 61u8, 245u8, 254u8, 11u8, 109u8, 170u8, 98u8, 77u8, 95u8, ], ) } - #[doc = " Votes on a given proposal, if it is ongoing."] - pub fn voting_iter( + #[doc = " The sorted list of referenda ready to be decided but not yet being decided, ordered by"] + #[doc = " conviction-weighted approvals."] + #[doc = ""] + #[doc = " This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`."] + pub fn track_queue_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_collective::Votes< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - (), + alias_types::track_queue::TrackQueue, (), ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Council", - "Voting", + "FellowshipReferenda", + "TrackQueue", vec![], [ - 109u8, 198u8, 2u8, 13u8, 29u8, 14u8, 241u8, 217u8, 55u8, 147u8, 147u8, - 4u8, 176u8, 69u8, 132u8, 228u8, 158u8, 203u8, 110u8, 239u8, 158u8, - 137u8, 97u8, 46u8, 228u8, 118u8, 251u8, 201u8, 88u8, 208u8, 94u8, - 132u8, + 187u8, 113u8, 225u8, 99u8, 159u8, 207u8, 182u8, 41u8, 116u8, 136u8, + 119u8, 196u8, 152u8, 50u8, 192u8, 22u8, 171u8, 182u8, 237u8, 228u8, + 80u8, 255u8, 227u8, 141u8, 155u8, 83u8, 71u8, 131u8, 118u8, 109u8, + 186u8, 65u8, ], ) } - #[doc = " Votes on a given proposal, if it is ongoing."] - pub fn voting( + #[doc = " The sorted list of referenda ready to be decided but not yet being decided, ordered by"] + #[doc = " conviction-weighted approvals."] + #[doc = ""] + #[doc = " This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`."] + pub fn track_queue( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, + _0: impl ::std::borrow::Borrow<::core::primitive::u16>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_collective::Votes< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, + alias_types::track_queue::TrackQueue, + ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, - (), (), > { ::subxt::storage::address::Address::new_static( - "Council", - "Voting", + "FellowshipReferenda", + "TrackQueue", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 109u8, 198u8, 2u8, 13u8, 29u8, 14u8, 241u8, 217u8, 55u8, 147u8, 147u8, - 4u8, 176u8, 69u8, 132u8, 228u8, 158u8, 203u8, 110u8, 239u8, 158u8, - 137u8, 97u8, 46u8, 228u8, 118u8, 251u8, 201u8, 88u8, 208u8, 94u8, - 132u8, + 187u8, 113u8, 225u8, 99u8, 159u8, 207u8, 182u8, 41u8, 116u8, 136u8, + 119u8, 196u8, 152u8, 50u8, 192u8, 22u8, 171u8, 182u8, 237u8, 228u8, + 80u8, 255u8, 227u8, 141u8, 155u8, 83u8, 71u8, 131u8, 118u8, 109u8, + 186u8, 65u8, ], ) } - #[doc = " Proposals so far."] - pub fn proposal_count( + #[doc = " The number of referenda being decided currently."] + pub fn deciding_count_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, + alias_types::deciding_count::DecidingCount, + (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, - (), > { ::subxt::storage::address::Address::new_static( - "Council", - "ProposalCount", + "FellowshipReferenda", + "DecidingCount", vec![], [ - 91u8, 238u8, 246u8, 106u8, 95u8, 66u8, 83u8, 134u8, 1u8, 225u8, 164u8, - 216u8, 113u8, 101u8, 203u8, 200u8, 113u8, 97u8, 246u8, 228u8, 140u8, - 29u8, 29u8, 48u8, 176u8, 137u8, 93u8, 230u8, 56u8, 75u8, 51u8, 149u8, + 203u8, 89u8, 158u8, 179u8, 194u8, 82u8, 248u8, 162u8, 93u8, 140u8, + 146u8, 51u8, 110u8, 232u8, 51u8, 1u8, 128u8, 212u8, 199u8, 14u8, 182u8, + 103u8, 47u8, 252u8, 126u8, 108u8, 166u8, 69u8, 252u8, 179u8, 126u8, + 245u8, ], ) } - #[doc = " The current members of the collective. This is stored sorted (just by value)."] - pub fn members( + #[doc = " The number of referenda being decided currently."] + pub fn deciding_count( &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u16>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<::subxt::utils::AccountId32>, + alias_types::deciding_count::DecidingCount, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( - "Council", - "Members", + "FellowshipReferenda", + "DecidingCount", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 203u8, 89u8, 158u8, 179u8, 194u8, 82u8, 248u8, 162u8, 93u8, 140u8, + 146u8, 51u8, 110u8, 232u8, 51u8, 1u8, 128u8, 212u8, 199u8, 14u8, 182u8, + 103u8, 47u8, 252u8, 126u8, 108u8, 166u8, 69u8, 252u8, 179u8, 126u8, + 245u8, + ], + ) + } + #[doc = " The metadata is a general information concerning the referendum."] + #[doc = " The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON"] + #[doc = " dump or IPFS hash of a JSON file."] + #[doc = ""] + #[doc = " Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)"] + #[doc = " large preimages."] + pub fn metadata_of_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::metadata_of::MetadataOf, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "FellowshipReferenda", + "MetadataOf", vec![], [ - 16u8, 29u8, 32u8, 222u8, 175u8, 136u8, 111u8, 101u8, 43u8, 74u8, 209u8, - 81u8, 47u8, 97u8, 129u8, 39u8, 225u8, 243u8, 110u8, 229u8, 237u8, 21u8, - 90u8, 127u8, 80u8, 239u8, 156u8, 32u8, 90u8, 109u8, 179u8, 0u8, + 159u8, 250u8, 56u8, 189u8, 247u8, 165u8, 206u8, 166u8, 91u8, 139u8, + 124u8, 164u8, 25u8, 246u8, 199u8, 36u8, 159u8, 56u8, 227u8, 136u8, 4u8, + 45u8, 193u8, 72u8, 200u8, 164u8, 39u8, 207u8, 224u8, 124u8, 191u8, + 110u8, ], ) } - #[doc = " The prime member that helps determine the default vote behavior in case of absentations."] - pub fn prime( + #[doc = " The metadata is a general information concerning the referendum."] + #[doc = " The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON"] + #[doc = " dump or IPFS hash of a JSON file."] + #[doc = ""] + #[doc = " Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)"] + #[doc = " large preimages."] + pub fn metadata_of( &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::subxt::utils::AccountId32, + alias_types::metadata_of::MetadataOf, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( - "Council", - "Prime", - vec![], + "FellowshipReferenda", + "MetadataOf", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], [ - 72u8, 128u8, 214u8, 72u8, 78u8, 80u8, 100u8, 198u8, 114u8, 215u8, 59u8, - 3u8, 103u8, 14u8, 152u8, 202u8, 12u8, 165u8, 224u8, 10u8, 41u8, 154u8, - 77u8, 95u8, 116u8, 143u8, 250u8, 250u8, 176u8, 92u8, 238u8, 154u8, + 159u8, 250u8, 56u8, 189u8, 247u8, 165u8, 206u8, 166u8, 91u8, 139u8, + 124u8, 164u8, 25u8, 246u8, 199u8, 36u8, 159u8, 56u8, 227u8, 136u8, 4u8, + 45u8, 193u8, 72u8, 200u8, 164u8, 39u8, 207u8, 224u8, 124u8, 191u8, + 110u8, ], ) } @@ -14315,76 +13403,126 @@ pub mod api { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - #[doc = " The maximum weight of a dispatch call that can be proposed and executed."] - pub fn max_proposal_weight( + #[doc = " The minimum amount to be used as a deposit for a public referendum proposal."] + pub fn submission_deposit( &self, - ) -> ::subxt::constants::Address - { + ) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( - "Council", - "MaxProposalWeight", + "FellowshipReferenda", + "SubmissionDeposit", [ - 149u8, 252u8, 129u8, 80u8, 169u8, 36u8, 79u8, 127u8, 240u8, 156u8, - 56u8, 202u8, 219u8, 86u8, 5u8, 65u8, 245u8, 148u8, 138u8, 243u8, 210u8, - 128u8, 234u8, 216u8, 240u8, 219u8, 123u8, 235u8, 21u8, 158u8, 237u8, - 112u8, + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[doc = " Maximum size of the referendum queue for a single track."] + pub fn max_queued(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "FellowshipReferenda", + "MaxQueued", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The number of blocks after submission that a referendum must begin being decided by."] + #[doc = " Once this passes, then anyone may cancel the referendum."] + pub fn undeciding_timeout( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "FellowshipReferenda", + "UndecidingTimeout", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " Quantization level for the referendum wakeup scheduler. A higher number will result in"] + #[doc = " fewer storage reads/writes needed for smaller voters, but also result in delays to the"] + #[doc = " automatic referendum status changes. Explicit servicing instructions are unaffected."] + pub fn alarm_interval( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "FellowshipReferenda", + "AlarmInterval", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " Information concerning the different referendum tracks."] + pub fn tracks( + &self, + ) -> ::subxt::constants::Address< + ::std::vec::Vec<( + ::core::primitive::u16, + runtime_types::pallet_referenda::types::TrackInfo< + ::core::primitive::u128, + ::core::primitive::u32, + >, + )>, + > { + ::subxt::constants::Address::new_static( + "FellowshipReferenda", + "Tracks", + [ + 35u8, 226u8, 207u8, 234u8, 184u8, 139u8, 187u8, 184u8, 128u8, 199u8, + 227u8, 15u8, 31u8, 196u8, 5u8, 207u8, 138u8, 174u8, 130u8, 201u8, + 200u8, 113u8, 86u8, 93u8, 221u8, 243u8, 229u8, 24u8, 18u8, 150u8, 56u8, + 159u8, ], ) } } } } - pub mod technical_committee { + pub mod whitelist { use super::root_mod; use super::runtime_types; #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_collective::pallet::Error2; + pub type Error = runtime_types::pallet_whitelist::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::pallet_collective::pallet::Call2; + pub type Call = runtime_types::pallet_whitelist::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { + pub mod alias_types { use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SetMembers { - pub new_members: ::std::vec::Vec<::subxt::utils::AccountId32>, - pub prime: ::core::option::Option<::subxt::utils::AccountId32>, - pub old_count: ::core::primitive::u32, + pub mod whitelist_call { + use super::runtime_types; + pub type CallHash = ::subxt::utils::H256; } - impl ::subxt::blocks::StaticExtrinsic for SetMembers { - const PALLET: &'static str = "TechnicalCommittee"; - const CALL: &'static str = "set_members"; + pub mod remove_whitelisted_call { + use super::runtime_types; + pub type CallHash = ::subxt::utils::H256; } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Execute { - pub proposal: ::std::boxed::Box, - #[codec(compact)] - pub length_bound: ::core::primitive::u32, + pub mod dispatch_whitelisted_call { + use super::runtime_types; + pub type CallHash = ::subxt::utils::H256; + pub type CallEncodedLen = ::core::primitive::u32; + pub type CallWeightWitness = runtime_types::sp_weights::weight_v2::Weight; } - impl ::subxt::blocks::StaticExtrinsic for Execute { - const PALLET: &'static str = "TechnicalCommittee"; - const CALL: &'static str = "execute"; + pub mod dispatch_whitelisted_call_with_preimage { + use super::runtime_types; + pub type Call = runtime_types::rococo_runtime::RuntimeCall; } + } + pub mod types { + use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -14395,16 +13533,12 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Propose { - #[codec(compact)] - pub threshold: ::core::primitive::u32, - pub proposal: ::std::boxed::Box, - #[codec(compact)] - pub length_bound: ::core::primitive::u32, + pub struct WhitelistCall { + pub call_hash: ::subxt::utils::H256, } - impl ::subxt::blocks::StaticExtrinsic for Propose { - const PALLET: &'static str = "TechnicalCommittee"; - const CALL: &'static str = "propose"; + impl ::subxt::blocks::StaticExtrinsic for WhitelistCall { + const PALLET: &'static str = "Whitelist"; + const CALL: &'static str = "whitelist_call"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -14416,15 +13550,12 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Vote { - pub proposal: ::subxt::utils::H256, - #[codec(compact)] - pub index: ::core::primitive::u32, - pub approve: ::core::primitive::bool, + pub struct RemoveWhitelistedCall { + pub call_hash: ::subxt::utils::H256, } - impl ::subxt::blocks::StaticExtrinsic for Vote { - const PALLET: &'static str = "TechnicalCommittee"; - const CALL: &'static str = "vote"; + impl ::subxt::blocks::StaticExtrinsic for RemoveWhitelistedCall { + const PALLET: &'static str = "Whitelist"; + const CALL: &'static str = "remove_whitelisted_call"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -14436,12 +13567,14 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct DisapproveProposal { - pub proposal_hash: ::subxt::utils::H256, + pub struct DispatchWhitelistedCall { + pub call_hash: ::subxt::utils::H256, + pub call_encoded_len: ::core::primitive::u32, + pub call_weight_witness: runtime_types::sp_weights::weight_v2::Weight, } - impl ::subxt::blocks::StaticExtrinsic for DisapproveProposal { - const PALLET: &'static str = "TechnicalCommittee"; - const CALL: &'static str = "disapprove_proposal"; + impl ::subxt::blocks::StaticExtrinsic for DispatchWhitelistedCall { + const PALLET: &'static str = "Whitelist"; + const CALL: &'static str = "dispatch_whitelisted_call"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -14453,154 +13586,97 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Close { - pub proposal_hash: ::subxt::utils::H256, - #[codec(compact)] - pub index: ::core::primitive::u32, - pub proposal_weight_bound: runtime_types::sp_weights::weight_v2::Weight, - #[codec(compact)] - pub length_bound: ::core::primitive::u32, + pub struct DispatchWhitelistedCallWithPreimage { + pub call: ::std::boxed::Box, } - impl ::subxt::blocks::StaticExtrinsic for Close { - const PALLET: &'static str = "TechnicalCommittee"; - const CALL: &'static str = "close"; + impl ::subxt::blocks::StaticExtrinsic for DispatchWhitelistedCallWithPreimage { + const PALLET: &'static str = "Whitelist"; + const CALL: &'static str = "dispatch_whitelisted_call_with_preimage"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::set_members`]."] - pub fn set_members( - &self, - new_members: ::std::vec::Vec<::subxt::utils::AccountId32>, - prime: ::core::option::Option<::subxt::utils::AccountId32>, - old_count: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "TechnicalCommittee", - "set_members", - types::SetMembers { - new_members, - prime, - old_count, - }, - [ - 66u8, 224u8, 186u8, 178u8, 41u8, 208u8, 67u8, 192u8, 57u8, 242u8, - 141u8, 31u8, 216u8, 118u8, 192u8, 43u8, 125u8, 213u8, 226u8, 85u8, - 142u8, 225u8, 131u8, 45u8, 172u8, 142u8, 12u8, 9u8, 73u8, 7u8, 218u8, - 61u8, - ], - ) - } - #[doc = "See [`Pallet::execute`]."] - pub fn execute( + #[doc = "See [`Pallet::whitelist_call`]."] + pub fn whitelist_call( &self, - proposal: runtime_types::polkadot_runtime::RuntimeCall, - length_bound: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + call_hash: alias_types::whitelist_call::CallHash, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "TechnicalCommittee", - "execute", - types::Execute { - proposal: ::std::boxed::Box::new(proposal), - length_bound, - }, + "Whitelist", + "whitelist_call", + types::WhitelistCall { call_hash }, [ - 57u8, 78u8, 135u8, 149u8, 15u8, 44u8, 123u8, 161u8, 121u8, 152u8, 73u8, - 76u8, 23u8, 178u8, 128u8, 134u8, 229u8, 116u8, 220u8, 209u8, 124u8, - 175u8, 9u8, 173u8, 123u8, 76u8, 137u8, 124u8, 232u8, 100u8, 217u8, - 233u8, + 121u8, 165u8, 49u8, 37u8, 127u8, 38u8, 126u8, 213u8, 115u8, 148u8, + 122u8, 211u8, 24u8, 91u8, 147u8, 27u8, 87u8, 210u8, 84u8, 104u8, 229u8, + 155u8, 133u8, 30u8, 34u8, 249u8, 107u8, 110u8, 31u8, 191u8, 128u8, + 28u8, ], ) } - #[doc = "See [`Pallet::propose`]."] - pub fn propose( + #[doc = "See [`Pallet::remove_whitelisted_call`]."] + pub fn remove_whitelisted_call( &self, - threshold: ::core::primitive::u32, - proposal: runtime_types::polkadot_runtime::RuntimeCall, - length_bound: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + call_hash: alias_types::remove_whitelisted_call::CallHash, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "TechnicalCommittee", - "propose", - types::Propose { - threshold, - proposal: ::std::boxed::Box::new(proposal), - length_bound, - }, + "Whitelist", + "remove_whitelisted_call", + types::RemoveWhitelistedCall { call_hash }, [ - 92u8, 0u8, 105u8, 179u8, 198u8, 127u8, 109u8, 59u8, 52u8, 164u8, 49u8, - 190u8, 20u8, 241u8, 90u8, 62u8, 104u8, 148u8, 58u8, 135u8, 184u8, 51u8, - 119u8, 48u8, 219u8, 241u8, 173u8, 77u8, 233u8, 109u8, 237u8, 25u8, + 30u8, 47u8, 13u8, 231u8, 165u8, 219u8, 246u8, 210u8, 11u8, 38u8, 219u8, + 218u8, 151u8, 226u8, 101u8, 175u8, 0u8, 239u8, 35u8, 46u8, 156u8, + 104u8, 145u8, 173u8, 105u8, 100u8, 21u8, 189u8, 123u8, 227u8, 196u8, + 40u8, ], ) } - #[doc = "See [`Pallet::vote`]."] - pub fn vote( + #[doc = "See [`Pallet::dispatch_whitelisted_call`]."] + pub fn dispatch_whitelisted_call( &self, - proposal: ::subxt::utils::H256, - index: ::core::primitive::u32, - approve: ::core::primitive::bool, - ) -> ::subxt::tx::Payload { + call_hash: alias_types::dispatch_whitelisted_call::CallHash, + call_encoded_len: alias_types::dispatch_whitelisted_call::CallEncodedLen, + call_weight_witness: alias_types::dispatch_whitelisted_call::CallWeightWitness, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "TechnicalCommittee", - "vote", - types::Vote { - proposal, - index, - approve, + "Whitelist", + "dispatch_whitelisted_call", + types::DispatchWhitelistedCall { + call_hash, + call_encoded_len, + call_weight_witness, }, [ - 110u8, 141u8, 24u8, 33u8, 91u8, 7u8, 89u8, 198u8, 54u8, 10u8, 76u8, - 129u8, 45u8, 20u8, 216u8, 104u8, 231u8, 246u8, 174u8, 205u8, 190u8, - 176u8, 171u8, 113u8, 33u8, 37u8, 155u8, 203u8, 251u8, 34u8, 25u8, - 120u8, + 112u8, 67u8, 72u8, 26u8, 3u8, 214u8, 86u8, 102u8, 29u8, 96u8, 222u8, + 24u8, 115u8, 15u8, 124u8, 160u8, 148u8, 184u8, 56u8, 162u8, 188u8, + 123u8, 213u8, 234u8, 208u8, 123u8, 133u8, 253u8, 43u8, 226u8, 66u8, + 116u8, ], ) } - #[doc = "See [`Pallet::disapprove_proposal`]."] - pub fn disapprove_proposal( + #[doc = "See [`Pallet::dispatch_whitelisted_call_with_preimage`]."] + pub fn dispatch_whitelisted_call_with_preimage( &self, - proposal_hash: ::subxt::utils::H256, - ) -> ::subxt::tx::Payload { + call: alias_types::dispatch_whitelisted_call_with_preimage::Call, + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( - "TechnicalCommittee", - "disapprove_proposal", - types::DisapproveProposal { proposal_hash }, - [ - 26u8, 140u8, 111u8, 193u8, 229u8, 59u8, 53u8, 196u8, 230u8, 60u8, 7u8, - 155u8, 168u8, 7u8, 201u8, 177u8, 70u8, 103u8, 190u8, 57u8, 244u8, - 156u8, 67u8, 101u8, 228u8, 6u8, 213u8, 83u8, 225u8, 95u8, 148u8, 96u8, - ], - ) - } - #[doc = "See [`Pallet::close`]."] - pub fn close( - &self, - proposal_hash: ::subxt::utils::H256, - index: ::core::primitive::u32, - proposal_weight_bound: runtime_types::sp_weights::weight_v2::Weight, - length_bound: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "TechnicalCommittee", - "close", - types::Close { - proposal_hash, - index, - proposal_weight_bound, - length_bound, + "Whitelist", + "dispatch_whitelisted_call_with_preimage", + types::DispatchWhitelistedCallWithPreimage { + call: ::std::boxed::Box::new(call), }, [ - 136u8, 48u8, 243u8, 34u8, 60u8, 109u8, 186u8, 158u8, 72u8, 48u8, 62u8, - 34u8, 167u8, 46u8, 33u8, 142u8, 239u8, 43u8, 238u8, 125u8, 94u8, 80u8, - 157u8, 245u8, 220u8, 126u8, 58u8, 244u8, 186u8, 195u8, 30u8, 127u8, + 149u8, 115u8, 81u8, 76u8, 235u8, 167u8, 31u8, 227u8, 153u8, 46u8, + 233u8, 199u8, 94u8, 30u8, 253u8, 19u8, 189u8, 77u8, 151u8, 249u8, 68u8, + 207u8, 139u8, 67u8, 6u8, 193u8, 131u8, 123u8, 101u8, 100u8, 13u8, + 222u8, ], ) } } } #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_collective::pallet::Event2; + pub type Event = runtime_types::pallet_whitelist::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -14613,95 +13689,12 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A motion (given hash) has been proposed (by given account) with a threshold (given"] - #[doc = "`MemberCount`)."] - pub struct Proposed { - pub account: ::subxt::utils::AccountId32, - pub proposal_index: ::core::primitive::u32, - pub proposal_hash: ::subxt::utils::H256, - pub threshold: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Proposed { - const PALLET: &'static str = "TechnicalCommittee"; - const EVENT: &'static str = "Proposed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A motion (given hash) has been voted on by given account, leaving"] - #[doc = "a tally (yes votes and no votes given respectively as `MemberCount`)."] - pub struct Voted { - pub account: ::subxt::utils::AccountId32, - pub proposal_hash: ::subxt::utils::H256, - pub voted: ::core::primitive::bool, - pub yes: ::core::primitive::u32, - pub no: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Voted { - const PALLET: &'static str = "TechnicalCommittee"; - const EVENT: &'static str = "Voted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A motion was approved by the required threshold."] - pub struct Approved { - pub proposal_hash: ::subxt::utils::H256, - } - impl ::subxt::events::StaticEvent for Approved { - const PALLET: &'static str = "TechnicalCommittee"; - const EVENT: &'static str = "Approved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A motion was not approved by the required threshold."] - pub struct Disapproved { - pub proposal_hash: ::subxt::utils::H256, - } - impl ::subxt::events::StaticEvent for Disapproved { - const PALLET: &'static str = "TechnicalCommittee"; - const EVENT: &'static str = "Disapproved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A motion was executed; result will be `Ok` if it returned without error."] - pub struct Executed { - pub proposal_hash: ::subxt::utils::H256, - pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + pub struct CallWhitelisted { + pub call_hash: ::subxt::utils::H256, } - impl ::subxt::events::StaticEvent for Executed { - const PALLET: &'static str = "TechnicalCommittee"; - const EVENT: &'static str = "Executed"; + impl ::subxt::events::StaticEvent for CallWhitelisted { + const PALLET: &'static str = "Whitelist"; + const EVENT: &'static str = "CallWhitelisted"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -14713,14 +13706,12 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A single member did some action; result will be `Ok` if it returned without error."] - pub struct MemberExecuted { - pub proposal_hash: ::subxt::utils::H256, - pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + pub struct WhitelistedCallRemoved { + pub call_hash: ::subxt::utils::H256, } - impl ::subxt::events::StaticEvent for MemberExecuted { - const PALLET: &'static str = "TechnicalCommittee"; - const EVENT: &'static str = "MemberExecuted"; + impl ::subxt::events::StaticEvent for WhitelistedCallRemoved { + const PALLET: &'static str = "Whitelist"; + const EVENT: &'static str = "WhitelistedCallRemoved"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -14732,241 +13723,127 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A proposal was closed because its threshold was reached or after its duration was up."] - pub struct Closed { - pub proposal_hash: ::subxt::utils::H256, - pub yes: ::core::primitive::u32, - pub no: ::core::primitive::u32, + pub struct WhitelistedCallDispatched { + pub call_hash: ::subxt::utils::H256, + pub result: ::core::result::Result< + runtime_types::frame_support::dispatch::PostDispatchInfo, + runtime_types::sp_runtime::DispatchErrorWithPostInfo< + runtime_types::frame_support::dispatch::PostDispatchInfo, + >, + >, } - impl ::subxt::events::StaticEvent for Closed { - const PALLET: &'static str = "TechnicalCommittee"; - const EVENT: &'static str = "Closed"; + impl ::subxt::events::StaticEvent for WhitelistedCallDispatched { + const PALLET: &'static str = "Whitelist"; + const EVENT: &'static str = "WhitelistedCallDispatched"; } } pub mod storage { use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod whitelisted_call { + use super::runtime_types; + pub type WhitelistedCall = (); + } + } pub struct StorageApi; impl StorageApi { - #[doc = " The hashes of the active proposals."] - pub fn proposals( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::subxt::utils::H256, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "TechnicalCommittee", - "Proposals", - vec![], - [ - 210u8, 234u8, 7u8, 29u8, 231u8, 80u8, 17u8, 36u8, 189u8, 34u8, 175u8, - 147u8, 56u8, 92u8, 201u8, 104u8, 207u8, 150u8, 58u8, 110u8, 90u8, 28u8, - 198u8, 79u8, 236u8, 245u8, 19u8, 38u8, 68u8, 59u8, 215u8, 74u8, - ], - ) - } - #[doc = " Actual proposal for a given hash, if it's current."] - pub fn proposal_of_iter( + pub fn whitelisted_call_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_runtime::RuntimeCall, + alias_types::whitelisted_call::WhitelistedCall, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "TechnicalCommittee", - "ProposalOf", + "Whitelist", + "WhitelistedCall", vec![], [ - 195u8, 20u8, 2u8, 141u8, 194u8, 2u8, 242u8, 114u8, 171u8, 16u8, 47u8, - 26u8, 11u8, 186u8, 159u8, 123u8, 59u8, 163u8, 129u8, 101u8, 0u8, 132u8, - 45u8, 116u8, 249u8, 72u8, 247u8, 143u8, 35u8, 163u8, 132u8, 246u8, + 82u8, 208u8, 214u8, 72u8, 225u8, 35u8, 51u8, 212u8, 25u8, 138u8, 30u8, + 87u8, 54u8, 232u8, 72u8, 132u8, 4u8, 9u8, 28u8, 143u8, 251u8, 106u8, + 167u8, 218u8, 130u8, 185u8, 253u8, 185u8, 113u8, 154u8, 202u8, 66u8, ], ) } - #[doc = " Actual proposal for a given hash, if it's current."] - pub fn proposal_of( + pub fn whitelisted_call( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_runtime::RuntimeCall, + alias_types::whitelisted_call::WhitelistedCall, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( - "TechnicalCommittee", - "ProposalOf", + "Whitelist", + "WhitelistedCall", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 195u8, 20u8, 2u8, 141u8, 194u8, 2u8, 242u8, 114u8, 171u8, 16u8, 47u8, - 26u8, 11u8, 186u8, 159u8, 123u8, 59u8, 163u8, 129u8, 101u8, 0u8, 132u8, - 45u8, 116u8, 249u8, 72u8, 247u8, 143u8, 35u8, 163u8, 132u8, 246u8, + 82u8, 208u8, 214u8, 72u8, 225u8, 35u8, 51u8, 212u8, 25u8, 138u8, 30u8, + 87u8, 54u8, 232u8, 72u8, 132u8, 4u8, 9u8, 28u8, 143u8, 251u8, 106u8, + 167u8, 218u8, 130u8, 185u8, 253u8, 185u8, 113u8, 154u8, 202u8, 66u8, ], ) } - #[doc = " Votes on a given proposal, if it is ongoing."] - pub fn voting_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_collective::Votes< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "TechnicalCommittee", - "Voting", - vec![], - [ - 109u8, 198u8, 2u8, 13u8, 29u8, 14u8, 241u8, 217u8, 55u8, 147u8, 147u8, - 4u8, 176u8, 69u8, 132u8, 228u8, 158u8, 203u8, 110u8, 239u8, 158u8, - 137u8, 97u8, 46u8, 228u8, 118u8, 251u8, 201u8, 88u8, 208u8, 94u8, - 132u8, - ], - ) + } + } + } + pub mod claims { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Error` enum of this pallet."] + pub type Error = runtime_types::polkadot_runtime_common::claims::pallet::Error; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::polkadot_runtime_common::claims::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod alias_types { + use super::runtime_types; + pub mod claim { + use super::runtime_types; + pub type Dest = ::subxt::utils::AccountId32; + pub type EthereumSignature = + runtime_types::polkadot_runtime_common::claims::EcdsaSignature; } - #[doc = " Votes on a given proposal, if it is ongoing."] - pub fn voting( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_collective::Votes< - ::subxt::utils::AccountId32, + pub mod mint_claim { + use super::runtime_types; + pub type Who = runtime_types::polkadot_runtime_common::claims::EthereumAddress; + pub type Value = ::core::primitive::u128; + pub type VestingSchedule = ::core::option::Option<( + ::core::primitive::u128, + ::core::primitive::u128, ::core::primitive::u32, - >, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "TechnicalCommittee", - "Voting", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 109u8, 198u8, 2u8, 13u8, 29u8, 14u8, 241u8, 217u8, 55u8, 147u8, 147u8, - 4u8, 176u8, 69u8, 132u8, 228u8, 158u8, 203u8, 110u8, 239u8, 158u8, - 137u8, 97u8, 46u8, 228u8, 118u8, 251u8, 201u8, 88u8, 208u8, 94u8, - 132u8, - ], - ) + )>; + pub type Statement = ::core::option::Option< + runtime_types::polkadot_runtime_common::claims::StatementKind, + >; } - #[doc = " Proposals so far."] - pub fn proposal_count( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "TechnicalCommittee", - "ProposalCount", - vec![], - [ - 91u8, 238u8, 246u8, 106u8, 95u8, 66u8, 83u8, 134u8, 1u8, 225u8, 164u8, - 216u8, 113u8, 101u8, 203u8, 200u8, 113u8, 97u8, 246u8, 228u8, 140u8, - 29u8, 29u8, 48u8, 176u8, 137u8, 93u8, 230u8, 56u8, 75u8, 51u8, 149u8, - ], - ) + pub mod claim_attest { + use super::runtime_types; + pub type Dest = ::subxt::utils::AccountId32; + pub type EthereumSignature = + runtime_types::polkadot_runtime_common::claims::EcdsaSignature; + pub type Statement = ::std::vec::Vec<::core::primitive::u8>; } - #[doc = " The current members of the collective. This is stored sorted (just by value)."] - pub fn members( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<::subxt::utils::AccountId32>, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "TechnicalCommittee", - "Members", - vec![], - [ - 16u8, 29u8, 32u8, 222u8, 175u8, 136u8, 111u8, 101u8, 43u8, 74u8, 209u8, - 81u8, 47u8, 97u8, 129u8, 39u8, 225u8, 243u8, 110u8, 229u8, 237u8, 21u8, - 90u8, 127u8, 80u8, 239u8, 156u8, 32u8, 90u8, 109u8, 179u8, 0u8, - ], - ) + pub mod attest { + use super::runtime_types; + pub type Statement = ::std::vec::Vec<::core::primitive::u8>; } - #[doc = " The prime member that helps determine the default vote behavior in case of absentations."] - pub fn prime( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::subxt::utils::AccountId32, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "TechnicalCommittee", - "Prime", - vec![], - [ - 72u8, 128u8, 214u8, 72u8, 78u8, 80u8, 100u8, 198u8, 114u8, 215u8, 59u8, - 3u8, 103u8, 14u8, 152u8, 202u8, 12u8, 165u8, 224u8, 10u8, 41u8, 154u8, - 77u8, 95u8, 116u8, 143u8, 250u8, 250u8, 176u8, 92u8, 238u8, 154u8, - ], - ) + pub mod move_claim { + use super::runtime_types; + pub type Old = runtime_types::polkadot_runtime_common::claims::EthereumAddress; + pub type New = runtime_types::polkadot_runtime_common::claims::EthereumAddress; + pub type MaybePreclaim = ::core::option::Option<::subxt::utils::AccountId32>; } } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The maximum weight of a dispatch call that can be proposed and executed."] - pub fn max_proposal_weight( - &self, - ) -> ::subxt::constants::Address - { - ::subxt::constants::Address::new_static( - "TechnicalCommittee", - "MaxProposalWeight", - [ - 149u8, 252u8, 129u8, 80u8, 169u8, 36u8, 79u8, 127u8, 240u8, 156u8, - 56u8, 202u8, 219u8, 86u8, 5u8, 65u8, 245u8, 148u8, 138u8, 243u8, 210u8, - 128u8, 234u8, 216u8, 240u8, 219u8, 123u8, 235u8, 21u8, 158u8, 237u8, - 112u8, - ], - ) - } - } - } - } - pub mod phragmen_election { - use super::root_mod; - use super::runtime_types; - #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_elections_phragmen::pallet::Error; - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::pallet_elections_phragmen::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; #[derive( @@ -14979,29 +13856,14 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Vote { - pub votes: ::std::vec::Vec<::subxt::utils::AccountId32>, - #[codec(compact)] - pub value: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for Vote { - const PALLET: &'static str = "PhragmenElection"; - const CALL: &'static str = "vote"; + pub struct Claim { + pub dest: ::subxt::utils::AccountId32, + pub ethereum_signature: + runtime_types::polkadot_runtime_common::claims::EcdsaSignature, } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct RemoveVoter; - impl ::subxt::blocks::StaticExtrinsic for RemoveVoter { - const PALLET: &'static str = "PhragmenElection"; - const CALL: &'static str = "remove_voter"; + impl ::subxt::blocks::StaticExtrinsic for Claim { + const PALLET: &'static str = "Claims"; + const CALL: &'static str = "claim"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -15013,13 +13875,21 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SubmitCandidacy { - #[codec(compact)] - pub candidate_count: ::core::primitive::u32, + 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::blocks::StaticExtrinsic for SubmitCandidacy { - const PALLET: &'static str = "PhragmenElection"; - const CALL: &'static str = "submit_candidacy"; + impl ::subxt::blocks::StaticExtrinsic for MintClaim { + const PALLET: &'static str = "Claims"; + const CALL: &'static str = "mint_claim"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -15031,12 +13901,15 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct RenounceCandidacy { - pub renouncing: runtime_types::pallet_elections_phragmen::Renouncing, + pub struct ClaimAttest { + pub dest: ::subxt::utils::AccountId32, + pub ethereum_signature: + runtime_types::polkadot_runtime_common::claims::EcdsaSignature, + pub statement: ::std::vec::Vec<::core::primitive::u8>, } - impl ::subxt::blocks::StaticExtrinsic for RenounceCandidacy { - const PALLET: &'static str = "PhragmenElection"; - const CALL: &'static str = "renounce_candidacy"; + impl ::subxt::blocks::StaticExtrinsic for ClaimAttest { + const PALLET: &'static str = "Claims"; + const CALL: &'static str = "claim_attest"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -15048,14 +13921,12 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct RemoveMember { - pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub slash_bond: ::core::primitive::bool, - pub rerun_election: ::core::primitive::bool, + pub struct Attest { + pub statement: ::std::vec::Vec<::core::primitive::u8>, } - impl ::subxt::blocks::StaticExtrinsic for RemoveMember { - const PALLET: &'static str = "PhragmenElection"; - const CALL: &'static str = "remove_member"; + impl ::subxt::blocks::StaticExtrinsic for Attest { + const PALLET: &'static str = "Claims"; + const CALL: &'static str = "attest"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -15067,128 +13938,129 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct CleanDefunctVoters { - pub num_voters: ::core::primitive::u32, - pub num_defunct: ::core::primitive::u32, + 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::utils::AccountId32>, } - impl ::subxt::blocks::StaticExtrinsic for CleanDefunctVoters { - const PALLET: &'static str = "PhragmenElection"; - const CALL: &'static str = "clean_defunct_voters"; + impl ::subxt::blocks::StaticExtrinsic for MoveClaim { + const PALLET: &'static str = "Claims"; + const CALL: &'static str = "move_claim"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::vote`]."] - pub fn vote( + #[doc = "See [`Pallet::claim`]."] + pub fn claim( &self, - votes: ::std::vec::Vec<::subxt::utils::AccountId32>, - value: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "PhragmenElection", - "vote", - types::Vote { votes, value }, - [ - 229u8, 163u8, 1u8, 49u8, 26u8, 130u8, 7u8, 228u8, 34u8, 80u8, 17u8, - 125u8, 32u8, 180u8, 174u8, 69u8, 17u8, 171u8, 163u8, 54u8, 42u8, 139u8, - 201u8, 205u8, 196u8, 18u8, 16u8, 211u8, 252u8, 64u8, 73u8, 5u8, - ], - ) - } - #[doc = "See [`Pallet::remove_voter`]."] - pub fn remove_voter(&self) -> ::subxt::tx::Payload { + dest: alias_types::claim::Dest, + ethereum_signature: alias_types::claim::EthereumSignature, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "PhragmenElection", - "remove_voter", - types::RemoveVoter {}, + "Claims", + "claim", + types::Claim { + dest, + ethereum_signature, + }, [ - 89u8, 43u8, 70u8, 117u8, 76u8, 84u8, 230u8, 114u8, 229u8, 91u8, 75u8, - 213u8, 47u8, 143u8, 233u8, 47u8, 108u8, 120u8, 171u8, 167u8, 14u8, - 62u8, 52u8, 20u8, 227u8, 106u8, 249u8, 239u8, 33u8, 115u8, 155u8, - 106u8, + 218u8, 236u8, 60u8, 12u8, 231u8, 72u8, 155u8, 30u8, 116u8, 126u8, + 145u8, 166u8, 135u8, 118u8, 22u8, 112u8, 212u8, 140u8, 129u8, 97u8, + 9u8, 241u8, 159u8, 140u8, 252u8, 128u8, 4u8, 175u8, 180u8, 133u8, 70u8, + 55u8, ], ) } - #[doc = "See [`Pallet::submit_candidacy`]."] - pub fn submit_candidacy( + #[doc = "See [`Pallet::mint_claim`]."] + pub fn mint_claim( &self, - candidate_count: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + who: alias_types::mint_claim::Who, + value: alias_types::mint_claim::Value, + vesting_schedule: alias_types::mint_claim::VestingSchedule, + statement: alias_types::mint_claim::Statement, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "PhragmenElection", - "submit_candidacy", - types::SubmitCandidacy { candidate_count }, + "Claims", + "mint_claim", + types::MintClaim { + who, + value, + vesting_schedule, + statement, + }, [ - 229u8, 169u8, 247u8, 102u8, 33u8, 7u8, 9u8, 125u8, 190u8, 179u8, 241u8, - 220u8, 205u8, 242u8, 168u8, 112u8, 197u8, 169u8, 135u8, 133u8, 102u8, - 173u8, 168u8, 203u8, 17u8, 135u8, 224u8, 145u8, 101u8, 204u8, 253u8, - 4u8, + 59u8, 71u8, 27u8, 16u8, 177u8, 189u8, 53u8, 54u8, 86u8, 157u8, 122u8, + 182u8, 246u8, 113u8, 225u8, 10u8, 31u8, 253u8, 15u8, 48u8, 182u8, + 198u8, 38u8, 211u8, 90u8, 75u8, 10u8, 68u8, 70u8, 152u8, 141u8, 222u8, ], ) } - #[doc = "See [`Pallet::renounce_candidacy`]."] - pub fn renounce_candidacy( + #[doc = "See [`Pallet::claim_attest`]."] + pub fn claim_attest( &self, - renouncing: runtime_types::pallet_elections_phragmen::Renouncing, - ) -> ::subxt::tx::Payload { + dest: alias_types::claim_attest::Dest, + ethereum_signature: alias_types::claim_attest::EthereumSignature, + statement: alias_types::claim_attest::Statement, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "PhragmenElection", - "renounce_candidacy", - types::RenounceCandidacy { renouncing }, + "Claims", + "claim_attest", + types::ClaimAttest { + dest, + ethereum_signature, + statement, + }, [ - 230u8, 140u8, 205u8, 240u8, 110u8, 247u8, 242u8, 185u8, 228u8, 135u8, - 243u8, 73u8, 71u8, 200u8, 88u8, 134u8, 132u8, 174u8, 190u8, 251u8, - 81u8, 85u8, 174u8, 230u8, 94u8, 97u8, 96u8, 230u8, 15u8, 204u8, 247u8, - 214u8, + 61u8, 16u8, 39u8, 50u8, 23u8, 249u8, 217u8, 155u8, 138u8, 128u8, 247u8, + 214u8, 185u8, 7u8, 87u8, 108u8, 15u8, 43u8, 44u8, 224u8, 204u8, 39u8, + 219u8, 188u8, 197u8, 104u8, 120u8, 144u8, 152u8, 161u8, 244u8, 37u8, ], ) } - #[doc = "See [`Pallet::remove_member`]."] - pub fn remove_member( + #[doc = "See [`Pallet::attest`]."] + pub fn attest( &self, - who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - slash_bond: ::core::primitive::bool, - rerun_election: ::core::primitive::bool, - ) -> ::subxt::tx::Payload { + statement: alias_types::attest::Statement, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "PhragmenElection", - "remove_member", - types::RemoveMember { - who, - slash_bond, - rerun_election, - }, + "Claims", + "attest", + types::Attest { statement }, [ - 230u8, 64u8, 250u8, 74u8, 77u8, 87u8, 67u8, 109u8, 160u8, 123u8, 236u8, - 144u8, 158u8, 95u8, 32u8, 80u8, 151u8, 10u8, 217u8, 128u8, 233u8, - 254u8, 255u8, 229u8, 57u8, 191u8, 56u8, 29u8, 23u8, 11u8, 45u8, 194u8, + 254u8, 56u8, 140u8, 129u8, 227u8, 155u8, 161u8, 107u8, 167u8, 148u8, + 167u8, 104u8, 139u8, 174u8, 204u8, 124u8, 126u8, 198u8, 165u8, 61u8, + 83u8, 197u8, 242u8, 13u8, 70u8, 153u8, 14u8, 62u8, 214u8, 129u8, 64u8, + 93u8, ], ) } - #[doc = "See [`Pallet::clean_defunct_voters`]."] - pub fn clean_defunct_voters( + #[doc = "See [`Pallet::move_claim`]."] + pub fn move_claim( &self, - num_voters: ::core::primitive::u32, - num_defunct: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + old: alias_types::move_claim::Old, + new: alias_types::move_claim::New, + maybe_preclaim: alias_types::move_claim::MaybePreclaim, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "PhragmenElection", - "clean_defunct_voters", - types::CleanDefunctVoters { - num_voters, - num_defunct, + "Claims", + "move_claim", + types::MoveClaim { + old, + new, + maybe_preclaim, }, [ - 99u8, 129u8, 198u8, 141u8, 41u8, 90u8, 151u8, 167u8, 50u8, 236u8, 88u8, - 57u8, 25u8, 26u8, 130u8, 61u8, 123u8, 177u8, 98u8, 57u8, 39u8, 204u8, - 29u8, 24u8, 191u8, 229u8, 224u8, 110u8, 223u8, 248u8, 191u8, 177u8, + 187u8, 200u8, 222u8, 83u8, 110u8, 49u8, 60u8, 134u8, 91u8, 215u8, 67u8, + 18u8, 187u8, 241u8, 191u8, 127u8, 222u8, 171u8, 151u8, 245u8, 161u8, + 196u8, 123u8, 99u8, 206u8, 110u8, 55u8, 82u8, 210u8, 151u8, 116u8, + 230u8, ], ) } } } #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_elections_phragmen::pallet::Event; + pub type Event = runtime_types::polkadot_runtime_common::claims::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -15201,292 +14073,265 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A new term with new_members. This indicates that enough candidates existed to run"] - #[doc = "the election, not that enough have has been elected. The inner value must be examined"] - #[doc = "for this purpose. A `NewTerm(\\[\\])` indicates that some candidates got their bond"] - #[doc = "slashed and none were elected, whilst `EmptyTerm` means that no candidates existed to"] - #[doc = "begin with."] - pub struct NewTerm { - pub new_members: - ::std::vec::Vec<(::subxt::utils::AccountId32, ::core::primitive::u128)>, - } - impl ::subxt::events::StaticEvent for NewTerm { - const PALLET: &'static str = "PhragmenElection"; - const EVENT: &'static str = "NewTerm"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "No (or not enough) candidates existed for this round. This is different from"] - #[doc = "`NewTerm(\\[\\])`. See the description of `NewTerm`."] - pub struct EmptyTerm; - impl ::subxt::events::StaticEvent for EmptyTerm { - const PALLET: &'static str = "PhragmenElection"; - const EVENT: &'static str = "EmptyTerm"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Internal error happened while trying to perform election."] - pub struct ElectionError; - impl ::subxt::events::StaticEvent for ElectionError { - const PALLET: &'static str = "PhragmenElection"; - const EVENT: &'static str = "ElectionError"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A member has been removed. This should always be followed by either `NewTerm` or"] - #[doc = "`EmptyTerm`."] - pub struct MemberKicked { - pub member: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for MemberKicked { - const PALLET: &'static str = "PhragmenElection"; - const EVENT: &'static str = "MemberKicked"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Someone has renounced their candidacy."] - pub struct Renounced { - pub candidate: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for Renounced { - const PALLET: &'static str = "PhragmenElection"; - const EVENT: &'static str = "Renounced"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A candidate was slashed by amount due to failing to obtain a seat as member or"] - #[doc = "runner-up."] - #[doc = ""] - #[doc = "Note that old members and runners-up are also candidates."] - pub struct CandidateSlashed { - pub candidate: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for CandidateSlashed { - const PALLET: &'static str = "PhragmenElection"; - const EVENT: &'static str = "CandidateSlashed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A seat holder was slashed by amount by being forcefully removed from the set."] - pub struct SeatHolderSlashed { - pub seat_holder: ::subxt::utils::AccountId32, + #[doc = "Someone claimed some DOTs."] + pub struct Claimed { + pub who: ::subxt::utils::AccountId32, + pub ethereum_address: + runtime_types::polkadot_runtime_common::claims::EthereumAddress, pub amount: ::core::primitive::u128, } - impl ::subxt::events::StaticEvent for SeatHolderSlashed { - const PALLET: &'static str = "PhragmenElection"; - const EVENT: &'static str = "SeatHolderSlashed"; + impl ::subxt::events::StaticEvent for Claimed { + const PALLET: &'static str = "Claims"; + const EVENT: &'static str = "Claimed"; } } pub mod storage { use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod claims { + use super::runtime_types; + pub type Claims = ::core::primitive::u128; + } + pub mod total { + use super::runtime_types; + pub type Total = ::core::primitive::u128; + } + pub mod vesting { + use super::runtime_types; + pub type Vesting = ( + ::core::primitive::u128, + ::core::primitive::u128, + ::core::primitive::u32, + ); + } + pub mod signing { + use super::runtime_types; + pub type Signing = + runtime_types::polkadot_runtime_common::claims::StatementKind; + } + pub mod preclaims { + use super::runtime_types; + pub type Preclaims = + runtime_types::polkadot_runtime_common::claims::EthereumAddress; + } + } pub struct StorageApi; impl StorageApi { - #[doc = " The current elected members."] - #[doc = ""] - #[doc = " Invariant: Always sorted based on account id."] - pub fn members( + pub fn claims_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec< - runtime_types::pallet_elections_phragmen::SeatHolder< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, - >, + alias_types::claims::Claims, + (), + (), ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Claims", + "Claims", + vec![], + [ + 148u8, 115u8, 159u8, 169u8, 36u8, 116u8, 15u8, 108u8, 57u8, 195u8, + 226u8, 180u8, 187u8, 112u8, 114u8, 63u8, 3u8, 205u8, 113u8, 141u8, + 149u8, 149u8, 118u8, 246u8, 45u8, 245u8, 148u8, 108u8, 22u8, 184u8, + 152u8, 132u8, + ], + ) + } + pub fn claims( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::polkadot_runtime_common::claims::EthereumAddress, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::claims::Claims, ::subxt::storage::address::Yes, (), + (), > { ::subxt::storage::address::Address::new_static( - "PhragmenElection", - "Members", - vec![], + "Claims", + "Claims", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], [ - 121u8, 128u8, 120u8, 242u8, 54u8, 127u8, 90u8, 113u8, 74u8, 54u8, - 181u8, 207u8, 213u8, 130u8, 123u8, 238u8, 66u8, 247u8, 177u8, 209u8, - 47u8, 106u8, 3u8, 130u8, 57u8, 217u8, 190u8, 164u8, 92u8, 223u8, 53u8, - 8u8, + 148u8, 115u8, 159u8, 169u8, 36u8, 116u8, 15u8, 108u8, 57u8, 195u8, + 226u8, 180u8, 187u8, 112u8, 114u8, 63u8, 3u8, 205u8, 113u8, 141u8, + 149u8, 149u8, 118u8, 246u8, 45u8, 245u8, 148u8, 108u8, 22u8, 184u8, + 152u8, 132u8, ], ) } - #[doc = " The current reserved runners-up."] - #[doc = ""] - #[doc = " Invariant: Always sorted based on rank (worse to best). Upon removal of a member, the"] - #[doc = " last (i.e. _best_) runner-up will be replaced."] - pub fn runners_up( + pub fn total( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec< - runtime_types::pallet_elections_phragmen::SeatHolder< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, - >, + alias_types::total::Total, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( - "PhragmenElection", - "RunnersUp", + "Claims", + "Total", vec![], [ - 252u8, 213u8, 152u8, 58u8, 93u8, 84u8, 170u8, 162u8, 180u8, 51u8, 52u8, - 156u8, 18u8, 58u8, 210u8, 150u8, 76u8, 159u8, 75u8, 43u8, 103u8, 21u8, - 181u8, 184u8, 155u8, 198u8, 236u8, 173u8, 245u8, 49u8, 134u8, 153u8, + 188u8, 31u8, 219u8, 189u8, 49u8, 213u8, 203u8, 89u8, 125u8, 58u8, + 232u8, 159u8, 131u8, 155u8, 166u8, 113u8, 99u8, 24u8, 40u8, 242u8, + 118u8, 183u8, 108u8, 230u8, 135u8, 150u8, 84u8, 86u8, 118u8, 91u8, + 168u8, 62u8, ], ) } - #[doc = " The present candidate list. A current member or runner-up can never enter this vector"] - #[doc = " and is always implicitly assumed to be a candidate."] - #[doc = ""] - #[doc = " Second element is the deposit."] - #[doc = ""] - #[doc = " Invariant: Always sorted based on account id."] - pub fn candidates( + #[doc = " Vesting schedule for a claim."] + #[doc = " First balance is the total amount that should be held for vesting."] + #[doc = " Second balance is how much should be unlocked per block."] + #[doc = " The block number is when the vesting should start."] + pub fn vesting_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<(::subxt::utils::AccountId32, ::core::primitive::u128)>, + alias_types::vesting::Vesting, + (), + (), ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Claims", + "Vesting", + vec![], + [ + 206u8, 106u8, 195u8, 101u8, 55u8, 137u8, 50u8, 105u8, 137u8, 87u8, + 230u8, 34u8, 255u8, 94u8, 210u8, 186u8, 179u8, 72u8, 24u8, 194u8, + 209u8, 173u8, 115u8, 65u8, 227u8, 224u8, 58u8, 113u8, 200u8, 166u8, + 108u8, 198u8, + ], + ) + } + #[doc = " Vesting schedule for a claim."] + #[doc = " First balance is the total amount that should be held for vesting."] + #[doc = " Second balance is how much should be unlocked per block."] + #[doc = " The block number is when the vesting should start."] + pub fn vesting( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::polkadot_runtime_common::claims::EthereumAddress, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::vesting::Vesting, ::subxt::storage::address::Yes, (), + (), > { ::subxt::storage::address::Address::new_static( - "PhragmenElection", - "Candidates", - vec![], + "Claims", + "Vesting", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], [ - 220u8, 219u8, 115u8, 204u8, 15u8, 0u8, 135u8, 72u8, 241u8, 89u8, 10u8, - 105u8, 106u8, 93u8, 18u8, 63u8, 43u8, 117u8, 120u8, 73u8, 8u8, 143u8, - 244u8, 144u8, 223u8, 155u8, 217u8, 132u8, 246u8, 228u8, 210u8, 53u8, + 206u8, 106u8, 195u8, 101u8, 55u8, 137u8, 50u8, 105u8, 137u8, 87u8, + 230u8, 34u8, 255u8, 94u8, 210u8, 186u8, 179u8, 72u8, 24u8, 194u8, + 209u8, 173u8, 115u8, 65u8, 227u8, 224u8, 58u8, 113u8, 200u8, 166u8, + 108u8, 198u8, ], ) } - #[doc = " The total number of vote rounds that have happened, excluding the upcoming one."] - pub fn election_rounds( + #[doc = " The statement kind that must be signed, if any."] + pub fn signing_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, + alias_types::signing::Signing, + (), + (), ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Claims", + "Signing", + vec![], + [ + 111u8, 90u8, 178u8, 121u8, 241u8, 28u8, 169u8, 231u8, 61u8, 189u8, + 113u8, 207u8, 26u8, 153u8, 189u8, 15u8, 192u8, 25u8, 22u8, 22u8, 124u8, + 26u8, 191u8, 39u8, 130u8, 164u8, 34u8, 4u8, 44u8, 91u8, 82u8, 186u8, + ], + ) + } + #[doc = " The statement kind that must be signed, if any."] + pub fn signing( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::polkadot_runtime_common::claims::EthereumAddress, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::signing::Signing, ::subxt::storage::address::Yes, (), + (), > { ::subxt::storage::address::Address::new_static( - "PhragmenElection", - "ElectionRounds", - vec![], + "Claims", + "Signing", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], [ - 97u8, 151u8, 159u8, 133u8, 59u8, 215u8, 12u8, 178u8, 203u8, 24u8, - 138u8, 36u8, 108u8, 134u8, 217u8, 137u8, 24u8, 6u8, 126u8, 87u8, 49u8, - 90u8, 198u8, 16u8, 36u8, 109u8, 223u8, 190u8, 81u8, 7u8, 239u8, 243u8, + 111u8, 90u8, 178u8, 121u8, 241u8, 28u8, 169u8, 231u8, 61u8, 189u8, + 113u8, 207u8, 26u8, 153u8, 189u8, 15u8, 192u8, 25u8, 22u8, 22u8, 124u8, + 26u8, 191u8, 39u8, 130u8, 164u8, 34u8, 4u8, 44u8, 91u8, 82u8, 186u8, ], ) } - #[doc = " Votes and locked stake of a particular voter."] - #[doc = ""] - #[doc = " TWOX-NOTE: SAFE as `AccountId` is a crypto hash."] - pub fn voting_iter( + #[doc = " Pre-claimed Ethereum accounts, by the Account ID that they are claimed to."] + pub fn preclaims_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_elections_phragmen::Voter< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, + alias_types::preclaims::Preclaims, + (), (), - ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "PhragmenElection", - "Voting", + "Claims", + "Preclaims", vec![], [ - 37u8, 74u8, 221u8, 188u8, 168u8, 43u8, 125u8, 246u8, 191u8, 21u8, 85u8, - 87u8, 124u8, 180u8, 218u8, 43u8, 186u8, 170u8, 140u8, 186u8, 88u8, - 71u8, 111u8, 22u8, 46u8, 207u8, 178u8, 96u8, 55u8, 203u8, 21u8, 92u8, + 197u8, 114u8, 147u8, 235u8, 203u8, 255u8, 94u8, 113u8, 151u8, 119u8, + 224u8, 147u8, 48u8, 246u8, 124u8, 38u8, 190u8, 237u8, 226u8, 65u8, + 91u8, 163u8, 129u8, 40u8, 71u8, 137u8, 220u8, 242u8, 51u8, 75u8, 3u8, + 204u8, ], ) } - #[doc = " Votes and locked stake of a particular voter."] - #[doc = ""] - #[doc = " TWOX-NOTE: SAFE as `AccountId` is a crypto hash."] - pub fn voting( + #[doc = " Pre-claimed Ethereum accounts, by the Account ID that they are claimed to."] + pub fn preclaims( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_elections_phragmen::Voter< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, - ::subxt::storage::address::Yes, + alias_types::preclaims::Preclaims, ::subxt::storage::address::Yes, (), + (), > { ::subxt::storage::address::Address::new_static( - "PhragmenElection", - "Voting", + "Claims", + "Preclaims", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 37u8, 74u8, 221u8, 188u8, 168u8, 43u8, 125u8, 246u8, 191u8, 21u8, 85u8, - 87u8, 124u8, 180u8, 218u8, 43u8, 186u8, 170u8, 140u8, 186u8, 88u8, - 71u8, 111u8, 22u8, 46u8, 207u8, 178u8, 96u8, 55u8, 203u8, 21u8, 92u8, + 197u8, 114u8, 147u8, 235u8, 203u8, 255u8, 94u8, 113u8, 151u8, 119u8, + 224u8, 147u8, 48u8, 246u8, 124u8, 38u8, 190u8, 237u8, 226u8, 65u8, + 91u8, 163u8, 129u8, 40u8, 71u8, 137u8, 220u8, 242u8, 51u8, 75u8, 3u8, + 204u8, ], ) } @@ -15496,180 +14341,65 @@ pub mod api { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - #[doc = " Identifier for the elections-phragmen pallet's lock"] - pub fn pallet_id( + pub fn prefix( &self, - ) -> ::subxt::constants::Address<[::core::primitive::u8; 8usize]> { + ) -> ::subxt::constants::Address<::std::vec::Vec<::core::primitive::u8>> + { ::subxt::constants::Address::new_static( - "PhragmenElection", - "PalletId", + "Claims", + "Prefix", [ - 157u8, 118u8, 79u8, 88u8, 241u8, 22u8, 185u8, 37u8, 42u8, 20u8, 133u8, - 240u8, 11u8, 25u8, 66u8, 154u8, 84u8, 163u8, 78u8, 92u8, 171u8, 82u8, - 248u8, 76u8, 189u8, 70u8, 142u8, 249u8, 153u8, 84u8, 180u8, 60u8, + 64u8, 190u8, 244u8, 122u8, 87u8, 182u8, 217u8, 16u8, 55u8, 223u8, + 128u8, 6u8, 112u8, 30u8, 236u8, 222u8, 153u8, 53u8, 247u8, 102u8, + 196u8, 31u8, 6u8, 186u8, 251u8, 209u8, 114u8, 125u8, 213u8, 222u8, + 240u8, 8u8, ], ) } - #[doc = " How much should be locked up in order to submit one's candidacy."] - pub fn candidacy_bond( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "PhragmenElection", - "CandidacyBond", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ], - ) + } + } + } + pub mod utility { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Error` enum of this pallet."] + pub type Error = runtime_types::pallet_utility::pallet::Error; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::pallet_utility::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod alias_types { + use super::runtime_types; + pub mod batch { + use super::runtime_types; + pub type Calls = ::std::vec::Vec; } - #[doc = " Base deposit associated with voting."] - #[doc = ""] - #[doc = " This should be sensibly high to economically ensure the pallet cannot be attacked by"] - #[doc = " creating a gigantic number of votes."] - pub fn voting_bond_base( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "PhragmenElection", - "VotingBondBase", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ], - ) + pub mod as_derivative { + use super::runtime_types; + pub type Index = ::core::primitive::u16; + pub type Call = runtime_types::rococo_runtime::RuntimeCall; } - #[doc = " The amount of bond that need to be locked for each vote (32 bytes)."] - pub fn voting_bond_factor( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "PhragmenElection", - "VotingBondFactor", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ], - ) + pub mod batch_all { + use super::runtime_types; + pub type Calls = ::std::vec::Vec; } - #[doc = " Number of members to elect."] - pub fn desired_members( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "PhragmenElection", - "DesiredMembers", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) + pub mod dispatch_as { + use super::runtime_types; + pub type AsOrigin = runtime_types::rococo_runtime::OriginCaller; + pub type Call = runtime_types::rococo_runtime::RuntimeCall; } - #[doc = " Number of runners_up to keep."] - pub fn desired_runners_up( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "PhragmenElection", - "DesiredRunnersUp", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " How long each seat is kept. This defines the next block number at which an election"] - #[doc = " round will happen. If set to zero, no elections are ever triggered and the module will"] - #[doc = " be in passive mode."] - pub fn term_duration(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "PhragmenElection", - "TermDuration", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The maximum number of candidates in a phragmen election."] - #[doc = ""] - #[doc = " Warning: This impacts the size of the election which is run onchain. Chose wisely, and"] - #[doc = " consider how it will impact `T::WeightInfo::election_phragmen`."] - #[doc = ""] - #[doc = " When this limit is reached no more candidates are accepted in the election."] - pub fn max_candidates( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "PhragmenElection", - "MaxCandidates", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The maximum number of voters to allow in a phragmen election."] - #[doc = ""] - #[doc = " Warning: This impacts the size of the election which is run onchain. Chose wisely, and"] - #[doc = " consider how it will impact `T::WeightInfo::election_phragmen`."] - #[doc = ""] - #[doc = " When the limit is reached the new voters are ignored."] - pub fn max_voters(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "PhragmenElection", - "MaxVoters", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) + pub mod force_batch { + use super::runtime_types; + pub type Calls = ::std::vec::Vec; } - #[doc = " Maximum numbers of votes per voter."] - #[doc = ""] - #[doc = " Warning: This impacts the size of the election which is run onchain. Chose wisely, and"] - #[doc = " consider how it will impact `T::WeightInfo::election_phragmen`."] - pub fn max_votes_per_voter( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "PhragmenElection", - "MaxVotesPerVoter", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) + pub mod with_weight { + use super::runtime_types; + pub type Call = runtime_types::rococo_runtime::RuntimeCall; + pub type Weight = runtime_types::sp_weights::weight_v2::Weight; } } - } - } - pub mod technical_membership { - use super::root_mod; - use super::runtime_types; - #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_membership::pallet::Error; - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::pallet_membership::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; #[derive( @@ -15682,12 +14412,12 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct AddMember { - pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub struct Batch { + pub calls: ::std::vec::Vec, } - impl ::subxt::blocks::StaticExtrinsic for AddMember { - const PALLET: &'static str = "TechnicalMembership"; - const CALL: &'static str = "add_member"; + impl ::subxt::blocks::StaticExtrinsic for Batch { + const PALLET: &'static str = "Utility"; + const CALL: &'static str = "batch"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -15699,12 +14429,13 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct RemoveMember { - pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub struct AsDerivative { + pub index: ::core::primitive::u16, + pub call: ::std::boxed::Box, } - impl ::subxt::blocks::StaticExtrinsic for RemoveMember { - const PALLET: &'static str = "TechnicalMembership"; - const CALL: &'static str = "remove_member"; + impl ::subxt::blocks::StaticExtrinsic for AsDerivative { + const PALLET: &'static str = "Utility"; + const CALL: &'static str = "as_derivative"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -15716,13 +14447,12 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SwapMember { - pub remove: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub add: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub struct BatchAll { + pub calls: ::std::vec::Vec, } - impl ::subxt::blocks::StaticExtrinsic for SwapMember { - const PALLET: &'static str = "TechnicalMembership"; - const CALL: &'static str = "swap_member"; + impl ::subxt::blocks::StaticExtrinsic for BatchAll { + const PALLET: &'static str = "Utility"; + const CALL: &'static str = "batch_all"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -15734,12 +14464,13 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ResetMembers { - pub members: ::std::vec::Vec<::subxt::utils::AccountId32>, + pub struct DispatchAs { + pub as_origin: ::std::boxed::Box, + pub call: ::std::boxed::Box, } - impl ::subxt::blocks::StaticExtrinsic for ResetMembers { - const PALLET: &'static str = "TechnicalMembership"; - const CALL: &'static str = "reset_members"; + impl ::subxt::blocks::StaticExtrinsic for DispatchAs { + const PALLET: &'static str = "Utility"; + const CALL: &'static str = "dispatch_as"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -15751,12 +14482,12 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ChangeKey { - pub new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub struct ForceBatch { + pub calls: ::std::vec::Vec, } - impl ::subxt::blocks::StaticExtrinsic for ChangeKey { - const PALLET: &'static str = "TechnicalMembership"; - const CALL: &'static str = "change_key"; + impl ::subxt::blocks::StaticExtrinsic for ForceBatch { + const PALLET: &'static str = "Utility"; + const CALL: &'static str = "force_batch"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -15768,149 +14499,134 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SetPrime { - pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - } - impl ::subxt::blocks::StaticExtrinsic for SetPrime { - const PALLET: &'static str = "TechnicalMembership"; - const CALL: &'static str = "set_prime"; + pub struct WithWeight { + pub call: ::std::boxed::Box, + pub weight: runtime_types::sp_weights::weight_v2::Weight, } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ClearPrime; - impl ::subxt::blocks::StaticExtrinsic for ClearPrime { - const PALLET: &'static str = "TechnicalMembership"; - const CALL: &'static str = "clear_prime"; + impl ::subxt::blocks::StaticExtrinsic for WithWeight { + const PALLET: &'static str = "Utility"; + const CALL: &'static str = "with_weight"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::add_member`]."] - pub fn add_member( + #[doc = "See [`Pallet::batch`]."] + pub fn batch( &self, - who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - ) -> ::subxt::tx::Payload { + calls: alias_types::batch::Calls, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "TechnicalMembership", - "add_member", - types::AddMember { who }, + "Utility", + "batch", + types::Batch { calls }, [ - 2u8, 131u8, 37u8, 217u8, 112u8, 46u8, 86u8, 165u8, 248u8, 244u8, 33u8, - 236u8, 155u8, 28u8, 163u8, 169u8, 213u8, 32u8, 70u8, 217u8, 97u8, - 194u8, 138u8, 77u8, 133u8, 97u8, 188u8, 49u8, 49u8, 31u8, 177u8, 206u8, + 78u8, 111u8, 192u8, 46u8, 34u8, 172u8, 232u8, 158u8, 67u8, 231u8, + 116u8, 182u8, 17u8, 178u8, 31u8, 98u8, 146u8, 71u8, 226u8, 56u8, 105u8, + 184u8, 75u8, 175u8, 78u8, 225u8, 25u8, 5u8, 226u8, 195u8, 199u8, 41u8, ], ) } - #[doc = "See [`Pallet::remove_member`]."] - pub fn remove_member( + #[doc = "See [`Pallet::as_derivative`]."] + pub fn as_derivative( &self, - who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - ) -> ::subxt::tx::Payload { + index: alias_types::as_derivative::Index, + call: alias_types::as_derivative::Call, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "TechnicalMembership", - "remove_member", - types::RemoveMember { who }, + "Utility", + "as_derivative", + types::AsDerivative { + index, + call: ::std::boxed::Box::new(call), + }, [ - 78u8, 153u8, 97u8, 110u8, 121u8, 242u8, 112u8, 56u8, 195u8, 217u8, - 10u8, 202u8, 114u8, 134u8, 220u8, 237u8, 198u8, 109u8, 247u8, 85u8, - 156u8, 88u8, 138u8, 79u8, 189u8, 37u8, 230u8, 55u8, 1u8, 27u8, 89u8, - 80u8, + 112u8, 49u8, 70u8, 206u8, 54u8, 117u8, 186u8, 83u8, 25u8, 68u8, 8u8, + 255u8, 91u8, 43u8, 254u8, 165u8, 230u8, 24u8, 104u8, 176u8, 236u8, + 166u8, 147u8, 244u8, 103u8, 208u8, 164u8, 26u8, 72u8, 44u8, 143u8, + 209u8, ], ) } - #[doc = "See [`Pallet::swap_member`]."] - pub fn swap_member( + #[doc = "See [`Pallet::batch_all`]."] + pub fn batch_all( &self, - remove: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - add: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - ) -> ::subxt::tx::Payload { + calls: alias_types::batch_all::Calls, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "TechnicalMembership", - "swap_member", - types::SwapMember { remove, add }, + "Utility", + "batch_all", + types::BatchAll { calls }, [ - 170u8, 68u8, 212u8, 185u8, 186u8, 38u8, 222u8, 227u8, 255u8, 119u8, - 187u8, 170u8, 247u8, 101u8, 138u8, 167u8, 232u8, 33u8, 116u8, 1u8, - 229u8, 171u8, 94u8, 150u8, 193u8, 51u8, 254u8, 106u8, 44u8, 96u8, 28u8, - 88u8, + 163u8, 4u8, 232u8, 21u8, 56u8, 119u8, 67u8, 62u8, 223u8, 193u8, 23u8, + 181u8, 202u8, 55u8, 186u8, 155u8, 169u8, 187u8, 213u8, 34u8, 153u8, + 255u8, 210u8, 170u8, 187u8, 212u8, 71u8, 92u8, 173u8, 145u8, 91u8, + 218u8, ], ) } - #[doc = "See [`Pallet::reset_members`]."] - pub fn reset_members( + #[doc = "See [`Pallet::dispatch_as`]."] + pub fn dispatch_as( &self, - members: ::std::vec::Vec<::subxt::utils::AccountId32>, - ) -> ::subxt::tx::Payload { + as_origin: alias_types::dispatch_as::AsOrigin, + call: alias_types::dispatch_as::Call, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "TechnicalMembership", - "reset_members", - types::ResetMembers { members }, + "Utility", + "dispatch_as", + types::DispatchAs { + as_origin: ::std::boxed::Box::new(as_origin), + call: ::std::boxed::Box::new(call), + }, [ - 212u8, 144u8, 99u8, 156u8, 70u8, 4u8, 219u8, 227u8, 150u8, 25u8, 86u8, - 8u8, 215u8, 128u8, 193u8, 206u8, 33u8, 193u8, 71u8, 15u8, 20u8, 92u8, - 99u8, 89u8, 174u8, 236u8, 102u8, 82u8, 164u8, 234u8, 12u8, 45u8, + 91u8, 220u8, 144u8, 201u8, 69u8, 201u8, 58u8, 205u8, 190u8, 98u8, + 138u8, 115u8, 107u8, 54u8, 190u8, 44u8, 9u8, 46u8, 109u8, 80u8, 102u8, + 167u8, 139u8, 162u8, 61u8, 191u8, 159u8, 217u8, 207u8, 236u8, 20u8, + 213u8, ], ) } - #[doc = "See [`Pallet::change_key`]."] - pub fn change_key( + #[doc = "See [`Pallet::force_batch`]."] + pub fn force_batch( &self, - new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - ) -> ::subxt::tx::Payload { + calls: alias_types::force_batch::Calls, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "TechnicalMembership", - "change_key", - types::ChangeKey { new }, + "Utility", + "force_batch", + types::ForceBatch { calls }, [ - 129u8, 233u8, 205u8, 107u8, 5u8, 50u8, 160u8, 60u8, 161u8, 248u8, 44u8, - 53u8, 50u8, 141u8, 169u8, 36u8, 182u8, 195u8, 173u8, 142u8, 121u8, - 153u8, 249u8, 234u8, 253u8, 64u8, 110u8, 51u8, 207u8, 127u8, 166u8, - 108u8, + 255u8, 125u8, 65u8, 157u8, 224u8, 195u8, 44u8, 249u8, 206u8, 224u8, + 11u8, 66u8, 67u8, 139u8, 24u8, 136u8, 57u8, 79u8, 85u8, 26u8, 51u8, + 170u8, 205u8, 52u8, 181u8, 94u8, 125u8, 250u8, 163u8, 126u8, 140u8, + 43u8, ], ) } - #[doc = "See [`Pallet::set_prime`]."] - pub fn set_prime( + #[doc = "See [`Pallet::with_weight`]."] + pub fn with_weight( &self, - who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "TechnicalMembership", - "set_prime", - types::SetPrime { who }, - [ - 213u8, 60u8, 220u8, 4u8, 28u8, 111u8, 6u8, 128u8, 228u8, 150u8, 14u8, - 182u8, 183u8, 94u8, 120u8, 238u8, 15u8, 241u8, 107u8, 152u8, 182u8, - 33u8, 154u8, 203u8, 172u8, 217u8, 31u8, 212u8, 112u8, 158u8, 17u8, - 188u8, - ], - ) - } - #[doc = "See [`Pallet::clear_prime`]."] - pub fn clear_prime(&self) -> ::subxt::tx::Payload { + call: alias_types::with_weight::Call, + weight: alias_types::with_weight::Weight, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "TechnicalMembership", - "clear_prime", - types::ClearPrime {}, + "Utility", + "with_weight", + types::WithWeight { + call: ::std::boxed::Box::new(call), + weight, + }, [ - 71u8, 213u8, 34u8, 23u8, 186u8, 63u8, 240u8, 216u8, 190u8, 251u8, 84u8, - 109u8, 140u8, 137u8, 210u8, 211u8, 242u8, 231u8, 212u8, 133u8, 151u8, - 125u8, 25u8, 46u8, 210u8, 53u8, 133u8, 222u8, 21u8, 107u8, 120u8, 52u8, + 187u8, 254u8, 162u8, 240u8, 54u8, 31u8, 44u8, 138u8, 164u8, 40u8, + 207u8, 170u8, 80u8, 220u8, 64u8, 162u8, 39u8, 87u8, 132u8, 169u8, 14u8, + 193u8, 69u8, 251u8, 171u8, 148u8, 107u8, 163u8, 73u8, 193u8, 46u8, + 26u8, ], ) } } } #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_membership::pallet::Event; + pub type Event = runtime_types::pallet_utility::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -15923,11 +14639,15 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The given member was added; see the transaction for who."] - pub struct MemberAdded; - impl ::subxt::events::StaticEvent for MemberAdded { - const PALLET: &'static str = "TechnicalMembership"; - const EVENT: &'static str = "MemberAdded"; + #[doc = "Batch of dispatches did not complete fully. Index of first failing dispatch given, as"] + #[doc = "well as the error."] + pub struct BatchInterrupted { + pub index: ::core::primitive::u32, + pub error: runtime_types::sp_runtime::DispatchError, + } + impl ::subxt::events::StaticEvent for BatchInterrupted { + const PALLET: &'static str = "Utility"; + const EVENT: &'static str = "BatchInterrupted"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -15939,11 +14659,11 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The given member was removed; see the transaction for who."] - pub struct MemberRemoved; - impl ::subxt::events::StaticEvent for MemberRemoved { - const PALLET: &'static str = "TechnicalMembership"; - const EVENT: &'static str = "MemberRemoved"; + #[doc = "Batch of dispatches completed fully with no error."] + pub struct BatchCompleted; + impl ::subxt::events::StaticEvent for BatchCompleted { + const PALLET: &'static str = "Utility"; + const EVENT: &'static str = "BatchCompleted"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -15955,11 +14675,11 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Two members were swapped; see the transaction for who."] - pub struct MembersSwapped; - impl ::subxt::events::StaticEvent for MembersSwapped { - const PALLET: &'static str = "TechnicalMembership"; - const EVENT: &'static str = "MembersSwapped"; + #[doc = "Batch of dispatches completed but has errors."] + pub struct BatchCompletedWithErrors; + impl ::subxt::events::StaticEvent for BatchCompletedWithErrors { + const PALLET: &'static str = "Utility"; + const EVENT: &'static str = "BatchCompletedWithErrors"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -15971,11 +14691,11 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The membership was reset; see the transaction for who the new set is."] - pub struct MembersReset; - impl ::subxt::events::StaticEvent for MembersReset { - const PALLET: &'static str = "TechnicalMembership"; - const EVENT: &'static str = "MembersReset"; + #[doc = "A single item within a Batch of dispatches has completed with no error."] + pub struct ItemCompleted; + impl ::subxt::events::StaticEvent for ItemCompleted { + const PALLET: &'static str = "Utility"; + const EVENT: &'static str = "ItemCompleted"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -15987,11 +14707,13 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "One of the members' keys changed."] - pub struct KeyChanged; - impl ::subxt::events::StaticEvent for KeyChanged { - const PALLET: &'static str = "TechnicalMembership"; - const EVENT: &'static str = "KeyChanged"; + #[doc = "A single item within a Batch of dispatches has completed with error."] + pub struct ItemFailed { + pub error: runtime_types::sp_runtime::DispatchError, + } + impl ::subxt::events::StaticEvent for ItemFailed { + const PALLET: &'static str = "Utility"; + const EVENT: &'static str = "ItemFailed"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16003,76 +14725,123 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Phantom member, never used."] - pub struct Dummy; - impl ::subxt::events::StaticEvent for Dummy { - const PALLET: &'static str = "TechnicalMembership"; - const EVENT: &'static str = "Dummy"; + #[doc = "A call was dispatched."] + pub struct DispatchedAs { + pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + } + impl ::subxt::events::StaticEvent for DispatchedAs { + const PALLET: &'static str = "Utility"; + const EVENT: &'static str = "DispatchedAs"; } } - pub mod storage { + pub mod constants { use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The current membership, stored as an ordered Vec."] - pub fn members( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::subxt::utils::AccountId32, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "TechnicalMembership", - "Members", - vec![], - [ - 109u8, 100u8, 14u8, 195u8, 213u8, 67u8, 44u8, 218u8, 84u8, 254u8, 76u8, - 80u8, 210u8, 155u8, 155u8, 30u8, 18u8, 169u8, 195u8, 92u8, 208u8, - 223u8, 242u8, 97u8, 147u8, 20u8, 168u8, 145u8, 254u8, 115u8, 225u8, - 193u8, - ], - ) - } - #[doc = " The current prime member, if one exists."] - pub fn prime( + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The limit on the number of batched calls."] + pub fn batched_calls_limit( &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::subxt::utils::AccountId32, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "TechnicalMembership", - "Prime", - vec![], + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Utility", + "batched_calls_limit", [ - 72u8, 128u8, 214u8, 72u8, 78u8, 80u8, 100u8, 198u8, 114u8, 215u8, 59u8, - 3u8, 103u8, 14u8, 152u8, 202u8, 12u8, 165u8, 224u8, 10u8, 41u8, 154u8, - 77u8, 95u8, 116u8, 143u8, 250u8, 250u8, 176u8, 92u8, 238u8, 154u8, + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, ], ) } } } } - pub mod treasury { + pub mod identity { use super::root_mod; use super::runtime_types; - #[doc = "Error for the treasury pallet."] - pub type Error = runtime_types::pallet_treasury::pallet::Error; - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::pallet_treasury::pallet::Call; + #[doc = "The `Error` enum of this pallet."] + pub type Error = runtime_types::pallet_identity::pallet::Error; + #[doc = "Identity pallet declaration."] + pub type Call = runtime_types::pallet_identity::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod alias_types { + use super::runtime_types; + pub mod add_registrar { + use super::runtime_types; + pub type Account = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + } + pub mod set_identity { + use super::runtime_types; + pub type Info = runtime_types::pallet_identity::legacy::IdentityInfo; + } + pub mod set_subs { + use super::runtime_types; + pub type Subs = ::std::vec::Vec<( + ::subxt::utils::AccountId32, + runtime_types::pallet_identity::types::Data, + )>; + } + pub mod clear_identity { + use super::runtime_types; + } + pub mod request_judgement { + use super::runtime_types; + pub type RegIndex = ::core::primitive::u32; + pub type MaxFee = ::core::primitive::u128; + } + pub mod cancel_request { + use super::runtime_types; + pub type RegIndex = ::core::primitive::u32; + } + pub mod set_fee { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Fee = ::core::primitive::u128; + } + pub mod set_account_id { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type New = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + } + pub mod set_fields { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Fields = ::core::primitive::u64; + } + pub mod provide_judgement { + use super::runtime_types; + pub type RegIndex = ::core::primitive::u32; + pub type Target = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Judgement = + runtime_types::pallet_identity::types::Judgement<::core::primitive::u128>; + pub type Identity = ::subxt::utils::H256; + } + pub mod kill_identity { + use super::runtime_types; + pub type Target = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + } + pub mod add_sub { + use super::runtime_types; + pub type Sub = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Data = runtime_types::pallet_identity::types::Data; + } + pub mod rename_sub { + use super::runtime_types; + pub type Sub = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Data = runtime_types::pallet_identity::types::Data; + } + pub mod remove_sub { + use super::runtime_types; + pub type Sub = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + } + pub mod quit_sub { + use super::runtime_types; + } + } pub mod types { use super::runtime_types; #[derive( @@ -16085,14 +14854,12 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ProposeSpend { - #[codec(compact)] - pub value: ::core::primitive::u128, - pub beneficiary: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub struct AddRegistrar { + pub account: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, } - impl ::subxt::blocks::StaticExtrinsic for ProposeSpend { - const PALLET: &'static str = "Treasury"; - const CALL: &'static str = "propose_spend"; + impl ::subxt::blocks::StaticExtrinsic for AddRegistrar { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "add_registrar"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16104,13 +14871,13 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct RejectProposal { - #[codec(compact)] - pub proposal_id: ::core::primitive::u32, + pub struct SetIdentity { + pub info: + ::std::boxed::Box, } - impl ::subxt::blocks::StaticExtrinsic for RejectProposal { - const PALLET: &'static str = "Treasury"; - const CALL: &'static str = "reject_proposal"; + impl ::subxt::blocks::StaticExtrinsic for SetIdentity { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "set_identity"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16122,15 +14889,53 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ApproveProposal { + pub struct SetSubs { + pub subs: ::std::vec::Vec<( + ::subxt::utils::AccountId32, + runtime_types::pallet_identity::types::Data, + )>, + } + impl ::subxt::blocks::StaticExtrinsic for SetSubs { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "set_subs"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ClearIdentity; + impl ::subxt::blocks::StaticExtrinsic for ClearIdentity { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "clear_identity"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct RequestJudgement { #[codec(compact)] - pub proposal_id: ::core::primitive::u32, + pub reg_index: ::core::primitive::u32, + #[codec(compact)] + pub max_fee: ::core::primitive::u128, } - impl ::subxt::blocks::StaticExtrinsic for ApproveProposal { - const PALLET: &'static str = "Treasury"; - const CALL: &'static str = "approve_proposal"; + impl ::subxt::blocks::StaticExtrinsic for RequestJudgement { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "request_judgement"; } #[derive( + :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -16140,14 +14945,32 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Spend { + pub struct CancelRequest { + pub reg_index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for CancelRequest { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "cancel_request"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SetFee { #[codec(compact)] - pub amount: ::core::primitive::u128, - pub beneficiary: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub index: ::core::primitive::u32, + #[codec(compact)] + pub fee: ::core::primitive::u128, } - impl ::subxt::blocks::StaticExtrinsic for Spend { - const PALLET: &'static str = "Treasury"; - const CALL: &'static str = "spend"; + impl ::subxt::blocks::StaticExtrinsic for SetFee { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "set_fee"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16159,111 +14982,412 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct RemoveApproval { + pub struct SetAccountId { #[codec(compact)] - pub proposal_id: ::core::primitive::u32, + pub index: ::core::primitive::u32, + pub new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, } - impl ::subxt::blocks::StaticExtrinsic for RemoveApproval { - const PALLET: &'static str = "Treasury"; - const CALL: &'static str = "remove_approval"; + impl ::subxt::blocks::StaticExtrinsic for SetAccountId { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "set_account_id"; } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::propose_spend`]."] - pub fn propose_spend( - &self, - value: ::core::primitive::u128, - beneficiary: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Treasury", - "propose_spend", - types::ProposeSpend { value, beneficiary }, - [ - 250u8, 230u8, 64u8, 10u8, 93u8, 132u8, 194u8, 69u8, 91u8, 50u8, 98u8, - 212u8, 72u8, 218u8, 29u8, 149u8, 2u8, 190u8, 219u8, 4u8, 25u8, 110u8, - 5u8, 199u8, 196u8, 37u8, 64u8, 57u8, 207u8, 235u8, 164u8, 226u8, - ], - ) + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SetFields { + #[codec(compact)] + pub index: ::core::primitive::u32, + pub fields: ::core::primitive::u64, } - #[doc = "See [`Pallet::reject_proposal`]."] - pub fn reject_proposal( - &self, - proposal_id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Treasury", - "reject_proposal", - types::RejectProposal { proposal_id }, - [ - 18u8, 166u8, 80u8, 141u8, 222u8, 230u8, 4u8, 36u8, 7u8, 76u8, 12u8, - 40u8, 145u8, 114u8, 12u8, 43u8, 223u8, 78u8, 189u8, 222u8, 120u8, 80u8, - 225u8, 215u8, 119u8, 68u8, 200u8, 15u8, 25u8, 172u8, 192u8, 173u8, - ], - ) + impl ::subxt::blocks::StaticExtrinsic for SetFields { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "set_fields"; } - #[doc = "See [`Pallet::approve_proposal`]."] - pub fn approve_proposal( - &self, - proposal_id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Treasury", - "approve_proposal", - types::ApproveProposal { proposal_id }, - [ - 154u8, 176u8, 152u8, 97u8, 167u8, 177u8, 78u8, 9u8, 235u8, 229u8, - 199u8, 193u8, 214u8, 3u8, 16u8, 30u8, 4u8, 104u8, 27u8, 184u8, 100u8, - 65u8, 179u8, 13u8, 91u8, 62u8, 115u8, 5u8, 219u8, 211u8, 251u8, 153u8, - ], - ) + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ProvideJudgement { + #[codec(compact)] + pub reg_index: ::core::primitive::u32, + pub target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub judgement: + runtime_types::pallet_identity::types::Judgement<::core::primitive::u128>, + pub identity: ::subxt::utils::H256, } - #[doc = "See [`Pallet::spend`]."] - pub fn spend( - &self, - amount: ::core::primitive::u128, - beneficiary: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Treasury", - "spend", - types::Spend { - amount, - beneficiary, - }, - [ - 67u8, 164u8, 134u8, 175u8, 103u8, 211u8, 117u8, 233u8, 164u8, 176u8, - 180u8, 84u8, 147u8, 120u8, 81u8, 75u8, 167u8, 98u8, 218u8, 173u8, 67u8, - 0u8, 21u8, 190u8, 134u8, 18u8, 183u8, 6u8, 161u8, 43u8, 50u8, 83u8, - ], - ) + impl ::subxt::blocks::StaticExtrinsic for ProvideJudgement { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "provide_judgement"; } - #[doc = "See [`Pallet::remove_approval`]."] - pub fn remove_approval( + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct KillIdentity { + pub target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + } + impl ::subxt::blocks::StaticExtrinsic for KillIdentity { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "kill_identity"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct AddSub { + pub sub: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub data: runtime_types::pallet_identity::types::Data, + } + impl ::subxt::blocks::StaticExtrinsic for AddSub { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "add_sub"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct RenameSub { + pub sub: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub data: runtime_types::pallet_identity::types::Data, + } + impl ::subxt::blocks::StaticExtrinsic for RenameSub { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "rename_sub"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct RemoveSub { + pub sub: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + } + impl ::subxt::blocks::StaticExtrinsic for RemoveSub { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "remove_sub"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct QuitSub; + impl ::subxt::blocks::StaticExtrinsic for QuitSub { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "quit_sub"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::add_registrar`]."] + pub fn add_registrar( &self, - proposal_id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + account: alias_types::add_registrar::Account, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Treasury", - "remove_approval", - types::RemoveApproval { proposal_id }, + "Identity", + "add_registrar", + types::AddRegistrar { account }, [ - 180u8, 20u8, 39u8, 227u8, 29u8, 228u8, 234u8, 36u8, 155u8, 114u8, - 197u8, 135u8, 185u8, 31u8, 56u8, 247u8, 224u8, 168u8, 254u8, 233u8, - 250u8, 134u8, 186u8, 155u8, 108u8, 84u8, 94u8, 226u8, 207u8, 130u8, - 196u8, 100u8, + 6u8, 131u8, 82u8, 191u8, 37u8, 240u8, 158u8, 187u8, 247u8, 98u8, 175u8, + 200u8, 147u8, 78u8, 88u8, 176u8, 227u8, 179u8, 184u8, 194u8, 91u8, 1u8, + 1u8, 20u8, 121u8, 4u8, 96u8, 94u8, 103u8, 140u8, 247u8, 253u8, + ], + ) + } + #[doc = "See [`Pallet::set_identity`]."] + pub fn set_identity( + &self, + info: alias_types::set_identity::Info, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Identity", + "set_identity", + types::SetIdentity { + info: ::std::boxed::Box::new(info), + }, + [ + 18u8, 86u8, 67u8, 10u8, 116u8, 254u8, 94u8, 95u8, 166u8, 30u8, 204u8, + 189u8, 174u8, 70u8, 191u8, 255u8, 149u8, 93u8, 156u8, 120u8, 105u8, + 138u8, 199u8, 181u8, 43u8, 150u8, 143u8, 254u8, 182u8, 81u8, 86u8, + 45u8, + ], + ) + } + #[doc = "See [`Pallet::set_subs`]."] + pub fn set_subs( + &self, + subs: alias_types::set_subs::Subs, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Identity", + "set_subs", + types::SetSubs { subs }, + [ + 34u8, 184u8, 18u8, 155u8, 112u8, 247u8, 235u8, 75u8, 209u8, 236u8, + 21u8, 238u8, 43u8, 237u8, 223u8, 147u8, 48u8, 6u8, 39u8, 231u8, 174u8, + 164u8, 243u8, 184u8, 220u8, 151u8, 165u8, 69u8, 219u8, 122u8, 234u8, + 100u8, + ], + ) + } + #[doc = "See [`Pallet::clear_identity`]."] + pub fn clear_identity(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Identity", + "clear_identity", + types::ClearIdentity {}, + [ + 43u8, 115u8, 205u8, 44u8, 24u8, 130u8, 220u8, 69u8, 247u8, 176u8, + 200u8, 175u8, 67u8, 183u8, 36u8, 200u8, 162u8, 132u8, 242u8, 25u8, + 21u8, 106u8, 197u8, 219u8, 141u8, 51u8, 204u8, 13u8, 191u8, 201u8, + 31u8, 31u8, + ], + ) + } + #[doc = "See [`Pallet::request_judgement`]."] + pub fn request_judgement( + &self, + reg_index: alias_types::request_judgement::RegIndex, + max_fee: alias_types::request_judgement::MaxFee, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Identity", + "request_judgement", + types::RequestJudgement { reg_index, max_fee }, + [ + 83u8, 85u8, 55u8, 184u8, 14u8, 54u8, 49u8, 212u8, 26u8, 148u8, 33u8, + 147u8, 182u8, 54u8, 180u8, 12u8, 61u8, 179u8, 216u8, 157u8, 103u8, + 52u8, 120u8, 252u8, 83u8, 203u8, 144u8, 65u8, 15u8, 3u8, 21u8, 33u8, + ], + ) + } + #[doc = "See [`Pallet::cancel_request`]."] + pub fn cancel_request( + &self, + reg_index: alias_types::cancel_request::RegIndex, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Identity", + "cancel_request", + types::CancelRequest { reg_index }, + [ + 81u8, 14u8, 133u8, 219u8, 43u8, 84u8, 163u8, 208u8, 21u8, 185u8, 75u8, + 117u8, 126u8, 33u8, 210u8, 106u8, 122u8, 210u8, 35u8, 207u8, 104u8, + 206u8, 41u8, 117u8, 247u8, 108u8, 56u8, 23u8, 123u8, 169u8, 169u8, + 61u8, + ], + ) + } + #[doc = "See [`Pallet::set_fee`]."] + pub fn set_fee( + &self, + index: alias_types::set_fee::Index, + fee: alias_types::set_fee::Fee, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Identity", + "set_fee", + types::SetFee { index, fee }, + [ + 131u8, 20u8, 17u8, 127u8, 180u8, 65u8, 225u8, 144u8, 193u8, 60u8, + 131u8, 241u8, 30u8, 149u8, 8u8, 76u8, 29u8, 52u8, 102u8, 108u8, 127u8, + 130u8, 70u8, 18u8, 94u8, 145u8, 179u8, 109u8, 252u8, 219u8, 58u8, + 163u8, + ], + ) + } + #[doc = "See [`Pallet::set_account_id`]."] + pub fn set_account_id( + &self, + index: alias_types::set_account_id::Index, + new: alias_types::set_account_id::New, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Identity", + "set_account_id", + types::SetAccountId { index, new }, + [ + 68u8, 57u8, 39u8, 134u8, 39u8, 82u8, 156u8, 107u8, 113u8, 99u8, 9u8, + 163u8, 58u8, 249u8, 247u8, 208u8, 38u8, 203u8, 54u8, 153u8, 116u8, + 143u8, 81u8, 46u8, 228u8, 149u8, 127u8, 115u8, 252u8, 83u8, 33u8, + 101u8, + ], + ) + } + #[doc = "See [`Pallet::set_fields`]."] + pub fn set_fields( + &self, + index: alias_types::set_fields::Index, + fields: alias_types::set_fields::Fields, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Identity", + "set_fields", + types::SetFields { index, fields }, + [ + 75u8, 38u8, 58u8, 93u8, 92u8, 164u8, 146u8, 146u8, 183u8, 245u8, 135u8, + 235u8, 12u8, 148u8, 37u8, 193u8, 58u8, 66u8, 173u8, 223u8, 166u8, + 169u8, 54u8, 159u8, 141u8, 36u8, 25u8, 231u8, 190u8, 211u8, 254u8, + 38u8, + ], + ) + } + #[doc = "See [`Pallet::provide_judgement`]."] + pub fn provide_judgement( + &self, + reg_index: alias_types::provide_judgement::RegIndex, + target: alias_types::provide_judgement::Target, + judgement: alias_types::provide_judgement::Judgement, + identity: alias_types::provide_judgement::Identity, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Identity", + "provide_judgement", + types::ProvideJudgement { + reg_index, + target, + judgement, + identity, + }, + [ + 145u8, 188u8, 61u8, 236u8, 183u8, 49u8, 49u8, 149u8, 240u8, 184u8, + 202u8, 75u8, 69u8, 0u8, 95u8, 103u8, 132u8, 24u8, 107u8, 221u8, 236u8, + 75u8, 231u8, 125u8, 39u8, 189u8, 45u8, 202u8, 116u8, 123u8, 236u8, + 96u8, + ], + ) + } + #[doc = "See [`Pallet::kill_identity`]."] + pub fn kill_identity( + &self, + target: alias_types::kill_identity::Target, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Identity", + "kill_identity", + types::KillIdentity { target }, + [ + 114u8, 249u8, 102u8, 62u8, 118u8, 105u8, 185u8, 61u8, 173u8, 52u8, + 57u8, 190u8, 102u8, 74u8, 108u8, 239u8, 142u8, 176u8, 116u8, 51u8, + 49u8, 197u8, 6u8, 183u8, 248u8, 202u8, 202u8, 140u8, 134u8, 59u8, + 103u8, 182u8, + ], + ) + } + #[doc = "See [`Pallet::add_sub`]."] + pub fn add_sub( + &self, + sub: alias_types::add_sub::Sub, + data: alias_types::add_sub::Data, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Identity", + "add_sub", + types::AddSub { sub, data }, + [ + 3u8, 65u8, 137u8, 35u8, 238u8, 133u8, 56u8, 233u8, 37u8, 125u8, 221u8, + 186u8, 153u8, 74u8, 69u8, 196u8, 244u8, 82u8, 51u8, 7u8, 216u8, 29u8, + 18u8, 16u8, 198u8, 184u8, 0u8, 181u8, 71u8, 227u8, 144u8, 33u8, + ], + ) + } + #[doc = "See [`Pallet::rename_sub`]."] + pub fn rename_sub( + &self, + sub: alias_types::rename_sub::Sub, + data: alias_types::rename_sub::Data, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Identity", + "rename_sub", + types::RenameSub { sub, data }, + [ + 252u8, 50u8, 201u8, 112u8, 49u8, 248u8, 223u8, 239u8, 219u8, 226u8, + 64u8, 68u8, 227u8, 20u8, 30u8, 24u8, 36u8, 77u8, 26u8, 235u8, 144u8, + 240u8, 11u8, 111u8, 145u8, 167u8, 184u8, 207u8, 173u8, 58u8, 152u8, + 202u8, + ], + ) + } + #[doc = "See [`Pallet::remove_sub`]."] + pub fn remove_sub( + &self, + sub: alias_types::remove_sub::Sub, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Identity", + "remove_sub", + types::RemoveSub { sub }, + [ + 95u8, 249u8, 171u8, 27u8, 100u8, 186u8, 67u8, 214u8, 226u8, 6u8, 118u8, + 39u8, 91u8, 122u8, 1u8, 87u8, 1u8, 226u8, 101u8, 9u8, 199u8, 167u8, + 84u8, 202u8, 141u8, 196u8, 80u8, 195u8, 15u8, 114u8, 140u8, 144u8, + ], + ) + } + #[doc = "See [`Pallet::quit_sub`]."] + pub fn quit_sub(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Identity", + "quit_sub", + types::QuitSub {}, + [ + 147u8, 131u8, 175u8, 171u8, 187u8, 201u8, 240u8, 26u8, 146u8, 224u8, + 74u8, 166u8, 242u8, 193u8, 204u8, 247u8, 168u8, 93u8, 18u8, 32u8, 27u8, + 208u8, 149u8, 146u8, 179u8, 172u8, 75u8, 112u8, 84u8, 141u8, 233u8, + 223u8, ], ) } } } #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_treasury::pallet::Event; + pub type Event = runtime_types::pallet_identity::pallet::Event; pub mod events { use super::runtime_types; #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -16273,16 +15397,15 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "New proposal."] - pub struct Proposed { - pub proposal_index: ::core::primitive::u32, + #[doc = "A name was set or reset (which will remove all judgements)."] + pub struct IdentitySet { + pub who: ::subxt::utils::AccountId32, } - impl ::subxt::events::StaticEvent for Proposed { - const PALLET: &'static str = "Treasury"; - const EVENT: &'static str = "Proposed"; + impl ::subxt::events::StaticEvent for IdentitySet { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "IdentitySet"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -16292,13 +15415,14 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "We have ended a spend period and will now allocate funds."] - pub struct Spending { - pub budget_remaining: ::core::primitive::u128, + #[doc = "A name was cleared, and the given balance returned."] + pub struct IdentityCleared { + pub who: ::subxt::utils::AccountId32, + pub deposit: ::core::primitive::u128, } - impl ::subxt::events::StaticEvent for Spending { - const PALLET: &'static str = "Treasury"; - const EVENT: &'static str = "Spending"; + impl ::subxt::events::StaticEvent for IdentityCleared { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "IdentityCleared"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16310,15 +15434,14 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some funds have been allocated."] - pub struct Awarded { - pub proposal_index: ::core::primitive::u32, - pub award: ::core::primitive::u128, - pub account: ::subxt::utils::AccountId32, + #[doc = "A name was removed and the given balance slashed."] + pub struct IdentityKilled { + pub who: ::subxt::utils::AccountId32, + pub deposit: ::core::primitive::u128, } - impl ::subxt::events::StaticEvent for Awarded { - const PALLET: &'static str = "Treasury"; - const EVENT: &'static str = "Awarded"; + impl ::subxt::events::StaticEvent for IdentityKilled { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "IdentityKilled"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16330,17 +15453,16 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A proposal was rejected; funds were slashed."] - pub struct Rejected { - pub proposal_index: ::core::primitive::u32, - pub slashed: ::core::primitive::u128, + #[doc = "A judgement was asked from a registrar."] + pub struct JudgementRequested { + pub who: ::subxt::utils::AccountId32, + pub registrar_index: ::core::primitive::u32, } - impl ::subxt::events::StaticEvent for Rejected { - const PALLET: &'static str = "Treasury"; - const EVENT: &'static str = "Rejected"; + impl ::subxt::events::StaticEvent for JudgementRequested { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "JudgementRequested"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -16350,16 +15472,16 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some of our funds have been burnt."] - pub struct Burnt { - pub burnt_funds: ::core::primitive::u128, + #[doc = "A judgement request was retracted."] + pub struct JudgementUnrequested { + pub who: ::subxt::utils::AccountId32, + pub registrar_index: ::core::primitive::u32, } - impl ::subxt::events::StaticEvent for Burnt { - const PALLET: &'static str = "Treasury"; - const EVENT: &'static str = "Burnt"; + impl ::subxt::events::StaticEvent for JudgementUnrequested { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "JudgementUnrequested"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -16369,13 +15491,14 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Spending has finished; this is the amount that rolls over until next spend."] - pub struct Rollover { - pub rollover_balance: ::core::primitive::u128, + #[doc = "A judgement was given by a registrar."] + pub struct JudgementGiven { + pub target: ::subxt::utils::AccountId32, + pub registrar_index: ::core::primitive::u32, } - impl ::subxt::events::StaticEvent for Rollover { - const PALLET: &'static str = "Treasury"; - const EVENT: &'static str = "Rollover"; + impl ::subxt::events::StaticEvent for JudgementGiven { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "JudgementGiven"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -16388,13 +15511,13 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some funds have been deposited."] - pub struct Deposit { - pub value: ::core::primitive::u128, + #[doc = "A registrar was added."] + pub struct RegistrarAdded { + pub registrar_index: ::core::primitive::u32, } - impl ::subxt::events::StaticEvent for Deposit { - const PALLET: &'static str = "Treasury"; - const EVENT: &'static str = "Deposit"; + impl ::subxt::events::StaticEvent for RegistrarAdded { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "RegistrarAdded"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16406,15 +15529,15 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A new spend proposal has been approved."] - pub struct SpendApproved { - pub proposal_index: ::core::primitive::u32, - pub amount: ::core::primitive::u128, - pub beneficiary: ::subxt::utils::AccountId32, + #[doc = "A sub-identity was added to an identity and the deposit paid."] + pub struct SubIdentityAdded { + pub sub: ::subxt::utils::AccountId32, + pub main: ::subxt::utils::AccountId32, + pub deposit: ::core::primitive::u128, } - impl ::subxt::events::StaticEvent for SpendApproved { - const PALLET: &'static str = "Treasury"; - const EVENT: &'static str = "SpendApproved"; + impl ::subxt::events::StaticEvent for SubIdentityAdded { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "SubIdentityAdded"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16426,136 +15549,254 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The inactive funds of the pallet have been updated."] - pub struct UpdatedInactive { - pub reactivated: ::core::primitive::u128, - pub deactivated: ::core::primitive::u128, + #[doc = "A sub-identity was removed from an identity and the deposit freed."] + pub struct SubIdentityRemoved { + pub sub: ::subxt::utils::AccountId32, + pub main: ::subxt::utils::AccountId32, + pub deposit: ::core::primitive::u128, } - impl ::subxt::events::StaticEvent for UpdatedInactive { - const PALLET: &'static str = "Treasury"; - const EVENT: &'static str = "UpdatedInactive"; + impl ::subxt::events::StaticEvent for SubIdentityRemoved { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "SubIdentityRemoved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A sub-identity was cleared, and the given deposit repatriated from the"] + #[doc = "main identity account to the sub-identity account."] + pub struct SubIdentityRevoked { + pub sub: ::subxt::utils::AccountId32, + pub main: ::subxt::utils::AccountId32, + pub deposit: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for SubIdentityRevoked { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "SubIdentityRevoked"; } } pub mod storage { use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod identity_of { + use super::runtime_types; + pub type IdentityOf = runtime_types::pallet_identity::types::Registration< + ::core::primitive::u128, + runtime_types::pallet_identity::legacy::IdentityInfo, + >; + } + pub mod super_of { + use super::runtime_types; + pub type SuperOf = ( + ::subxt::utils::AccountId32, + runtime_types::pallet_identity::types::Data, + ); + } + pub mod subs_of { + use super::runtime_types; + pub type SubsOf = ( + ::core::primitive::u128, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::subxt::utils::AccountId32, + >, + ); + } + pub mod registrars { + use super::runtime_types; + pub type Registrars = + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::option::Option< + runtime_types::pallet_identity::types::RegistrarInfo< + ::core::primitive::u128, + ::subxt::utils::AccountId32, + ::core::primitive::u64, + >, + >, + >; + } + } pub struct StorageApi; impl StorageApi { - #[doc = " Number of proposals that have been made."] - pub fn proposal_count( + #[doc = " Information that is pertinent to identify the entity behind an account."] + #[doc = ""] + #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] + pub fn identity_of_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, + alias_types::identity_of::IdentityOf, (), + (), + ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Treasury", - "ProposalCount", + "Identity", + "IdentityOf", vec![], [ - 91u8, 238u8, 246u8, 106u8, 95u8, 66u8, 83u8, 134u8, 1u8, 225u8, 164u8, - 216u8, 113u8, 101u8, 203u8, 200u8, 113u8, 97u8, 246u8, 228u8, 140u8, - 29u8, 29u8, 48u8, 176u8, 137u8, 93u8, 230u8, 56u8, 75u8, 51u8, 149u8, + 112u8, 2u8, 209u8, 123u8, 138u8, 171u8, 80u8, 243u8, 226u8, 88u8, 81u8, + 49u8, 59u8, 172u8, 88u8, 180u8, 255u8, 119u8, 57u8, 16u8, 169u8, 149u8, + 77u8, 239u8, 73u8, 182u8, 28u8, 112u8, 150u8, 110u8, 65u8, 139u8, ], ) } - #[doc = " Proposals that have been made."] - pub fn proposals_iter( + #[doc = " Information that is pertinent to identify the entity behind an account."] + #[doc = ""] + #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] + pub fn identity_of( &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_treasury::Proposal< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, + alias_types::identity_of::IdentityOf, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Identity", + "IdentityOf", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 112u8, 2u8, 209u8, 123u8, 138u8, 171u8, 80u8, 243u8, 226u8, 88u8, 81u8, + 49u8, 59u8, 172u8, 88u8, 180u8, 255u8, 119u8, 57u8, 16u8, 169u8, 149u8, + 77u8, 239u8, 73u8, 182u8, 28u8, 112u8, 150u8, 110u8, 65u8, 139u8, + ], + ) + } + #[doc = " The super-identity of an alternative \"sub\" identity together with its name, within that"] + #[doc = " context. If the account is not some other account's sub-identity, then just `None`."] + pub fn super_of_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::super_of::SuperOf, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Treasury", - "Proposals", + "Identity", + "SuperOf", vec![], [ - 207u8, 135u8, 145u8, 146u8, 48u8, 10u8, 252u8, 40u8, 20u8, 115u8, - 205u8, 41u8, 173u8, 83u8, 115u8, 46u8, 106u8, 40u8, 130u8, 157u8, - 213u8, 87u8, 45u8, 23u8, 14u8, 167u8, 99u8, 208u8, 153u8, 163u8, 141u8, - 55u8, + 84u8, 72u8, 64u8, 14u8, 56u8, 9u8, 143u8, 100u8, 141u8, 163u8, 36u8, + 55u8, 38u8, 254u8, 164u8, 17u8, 3u8, 110u8, 88u8, 175u8, 161u8, 65u8, + 159u8, 40u8, 46u8, 8u8, 177u8, 81u8, 130u8, 38u8, 193u8, 28u8, ], ) } - #[doc = " Proposals that have been made."] - pub fn proposals( + #[doc = " The super-identity of an alternative \"sub\" identity together with its name, within that"] + #[doc = " context. If the account is not some other account's sub-identity, then just `None`."] + pub fn super_of( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_treasury::Proposal< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, + alias_types::super_of::SuperOf, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( - "Treasury", - "Proposals", + "Identity", + "SuperOf", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 207u8, 135u8, 145u8, 146u8, 48u8, 10u8, 252u8, 40u8, 20u8, 115u8, - 205u8, 41u8, 173u8, 83u8, 115u8, 46u8, 106u8, 40u8, 130u8, 157u8, - 213u8, 87u8, 45u8, 23u8, 14u8, 167u8, 99u8, 208u8, 153u8, 163u8, 141u8, - 55u8, + 84u8, 72u8, 64u8, 14u8, 56u8, 9u8, 143u8, 100u8, 141u8, 163u8, 36u8, + 55u8, 38u8, 254u8, 164u8, 17u8, 3u8, 110u8, 88u8, 175u8, 161u8, 65u8, + 159u8, 40u8, 46u8, 8u8, 177u8, 81u8, 130u8, 38u8, 193u8, 28u8, ], ) } - #[doc = " The amount which has been reported as inactive to Currency."] - pub fn deactivated( + #[doc = " Alternative \"sub\" identities of this account."] + #[doc = ""] + #[doc = " The first item is the deposit, the second is a vector of the accounts."] + #[doc = ""] + #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] + pub fn subs_of_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, + alias_types::subs_of::SubsOf, + (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, - (), > { ::subxt::storage::address::Address::new_static( - "Treasury", - "Deactivated", + "Identity", + "SubsOf", vec![], [ - 120u8, 221u8, 159u8, 56u8, 161u8, 44u8, 54u8, 233u8, 47u8, 114u8, - 170u8, 150u8, 52u8, 24u8, 137u8, 212u8, 122u8, 247u8, 40u8, 17u8, - 208u8, 130u8, 42u8, 154u8, 33u8, 222u8, 59u8, 116u8, 0u8, 15u8, 79u8, - 123u8, + 164u8, 140u8, 52u8, 123u8, 220u8, 118u8, 147u8, 3u8, 67u8, 22u8, 191u8, + 18u8, 186u8, 21u8, 154u8, 8u8, 205u8, 224u8, 163u8, 173u8, 174u8, + 107u8, 144u8, 215u8, 116u8, 64u8, 159u8, 115u8, 159u8, 205u8, 91u8, + 28u8, ], ) } - #[doc = " Proposal indices that have been approved but not yet awarded."] - pub fn approvals( + #[doc = " Alternative \"sub\" identities of this account."] + #[doc = ""] + #[doc = " The first item is the deposit, the second is a vector of the accounts."] + #[doc = ""] + #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] + pub fn subs_of( &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u32, - >, + alias_types::subs_of::SubsOf, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( - "Treasury", - "Approvals", + "Identity", + "SubsOf", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 164u8, 140u8, 52u8, 123u8, 220u8, 118u8, 147u8, 3u8, 67u8, 22u8, 191u8, + 18u8, 186u8, 21u8, 154u8, 8u8, 205u8, 224u8, 163u8, 173u8, 174u8, + 107u8, 144u8, 215u8, 116u8, 64u8, 159u8, 115u8, 159u8, 205u8, 91u8, + 28u8, + ], + ) + } + #[doc = " The set of registrars. Not expected to get very big as can only be added through a"] + #[doc = " special origin (likely a council motion)."] + #[doc = ""] + #[doc = " The index into this can be cast to `RegistrarIndex` to get a valid value."] + pub fn registrars( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::registrars::Registrars, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Identity", + "Registrars", vec![], [ - 78u8, 147u8, 186u8, 235u8, 17u8, 40u8, 247u8, 235u8, 67u8, 222u8, 3u8, - 14u8, 248u8, 17u8, 67u8, 180u8, 93u8, 161u8, 64u8, 35u8, 119u8, 194u8, - 187u8, 226u8, 135u8, 162u8, 147u8, 174u8, 139u8, 72u8, 99u8, 212u8, + 167u8, 99u8, 159u8, 117u8, 103u8, 243u8, 208u8, 113u8, 57u8, 225u8, + 27u8, 25u8, 188u8, 120u8, 15u8, 40u8, 134u8, 169u8, 108u8, 134u8, 83u8, + 184u8, 223u8, 170u8, 194u8, 19u8, 168u8, 43u8, 119u8, 76u8, 94u8, + 154u8, ], ) } @@ -16565,29 +15806,25 @@ pub mod api { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - #[doc = " Fraction of a proposal's value that should be bonded in order to place the proposal."] - #[doc = " An accepted proposal gets these back. A rejected proposal does not."] - pub fn proposal_bond( + #[doc = " The amount held on deposit for a registered identity"] + pub fn basic_deposit( &self, - ) -> ::subxt::constants::Address - { + ) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( - "Treasury", - "ProposalBond", + "Identity", + "BasicDeposit", [ - 65u8, 93u8, 120u8, 165u8, 204u8, 81u8, 159u8, 163u8, 93u8, 135u8, - 114u8, 121u8, 147u8, 35u8, 215u8, 213u8, 4u8, 223u8, 83u8, 37u8, 225u8, - 200u8, 189u8, 156u8, 140u8, 36u8, 58u8, 46u8, 42u8, 232u8, 155u8, 0u8, + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, ], ) } - #[doc = " Minimum amount of funds that should be placed in a deposit for making a proposal."] - pub fn proposal_bond_minimum( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { + #[doc = " The amount held on deposit per encoded byte for a registered identity."] + pub fn byte_deposit(&self) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( - "Treasury", - "ProposalBondMinimum", + "Identity", + "ByteDeposit", [ 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, @@ -16595,27 +15832,29 @@ pub mod api { ], ) } - #[doc = " Maximum amount of funds that should be placed in a deposit for making a proposal."] - pub fn proposal_bond_maximum( + #[doc = " The amount held on deposit for a registered subaccount. This should account for the fact"] + #[doc = " that one storage item's value will increase by the size of an account ID, and there will"] + #[doc = " be another trie item whose value is the size of an account ID plus 32 bytes."] + pub fn sub_account_deposit( &self, - ) -> ::subxt::constants::Address<::core::option::Option<::core::primitive::u128>> - { + ) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( - "Treasury", - "ProposalBondMaximum", + "Identity", + "SubAccountDeposit", [ - 198u8, 51u8, 89u8, 159u8, 124u8, 251u8, 51u8, 80u8, 167u8, 193u8, 44u8, - 199u8, 80u8, 36u8, 41u8, 130u8, 137u8, 229u8, 178u8, 208u8, 37u8, - 215u8, 169u8, 183u8, 180u8, 191u8, 140u8, 240u8, 250u8, 61u8, 42u8, - 147u8, + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, ], ) } - #[doc = " Period between successive spends."] - pub fn spend_period(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + #[doc = " The maximum number of sub-accounts allowed per identified account."] + pub fn max_sub_accounts( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( - "Treasury", - "SpendPeriod", + "Identity", + "MaxSubAccounts", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, @@ -16624,43 +15863,14 @@ pub mod api { ], ) } - #[doc = " Percentage of spare funds (if any) that are burnt per spend period."] - pub fn burn( - &self, - ) -> ::subxt::constants::Address - { - ::subxt::constants::Address::new_static( - "Treasury", - "Burn", - [ - 65u8, 93u8, 120u8, 165u8, 204u8, 81u8, 159u8, 163u8, 93u8, 135u8, - 114u8, 121u8, 147u8, 35u8, 215u8, 213u8, 4u8, 223u8, 83u8, 37u8, 225u8, - 200u8, 189u8, 156u8, 140u8, 36u8, 58u8, 46u8, 42u8, 232u8, 155u8, 0u8, - ], - ) - } - #[doc = " The treasury's pallet id, used for deriving its sovereign account ID."] - pub fn pallet_id( + #[doc = " Maxmimum number of registrars allowed in the system. Needed to bound the complexity"] + #[doc = " of, e.g., updating judgements."] + pub fn max_registrars( &self, - ) -> ::subxt::constants::Address - { - ::subxt::constants::Address::new_static( - "Treasury", - "PalletId", - [ - 56u8, 243u8, 53u8, 83u8, 154u8, 179u8, 170u8, 80u8, 133u8, 173u8, 61u8, - 161u8, 47u8, 225u8, 146u8, 21u8, 50u8, 229u8, 248u8, 27u8, 104u8, 58u8, - 129u8, 197u8, 102u8, 160u8, 168u8, 205u8, 154u8, 42u8, 217u8, 53u8, - ], - ) - } - #[doc = " The maximum number of approvals that can wait in the spending queue."] - #[doc = ""] - #[doc = " NOTE: This parameter is also used within the Bounties Pallet extension if enabled."] - pub fn max_approvals(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( - "Treasury", - "MaxApprovals", + "Identity", + "MaxRegistrars", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, @@ -16672,19 +15882,178 @@ pub mod api { } } } - pub mod conviction_voting { + pub mod society { use super::root_mod; use super::runtime_types; #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_conviction_voting::pallet::Error; + pub type Error = runtime_types::pallet_society::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::pallet_conviction_voting::pallet::Call; + pub type Call = runtime_types::pallet_society::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod alias_types { + use super::runtime_types; + pub mod bid { + use super::runtime_types; + pub type Value = ::core::primitive::u128; + } + pub mod unbid { + use super::runtime_types; + } + pub mod vouch { + use super::runtime_types; + pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Value = ::core::primitive::u128; + pub type Tip = ::core::primitive::u128; + } + pub mod unvouch { + use super::runtime_types; + } + pub mod vote { + use super::runtime_types; + pub type Candidate = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Approve = ::core::primitive::bool; + } + pub mod defender_vote { + use super::runtime_types; + pub type Approve = ::core::primitive::bool; + } + pub mod payout { + use super::runtime_types; + } + pub mod waive_repay { + use super::runtime_types; + pub type Amount = ::core::primitive::u128; + } + pub mod found_society { + use super::runtime_types; + pub type Founder = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type MaxMembers = ::core::primitive::u32; + pub type MaxIntake = ::core::primitive::u32; + pub type MaxStrikes = ::core::primitive::u32; + pub type CandidateDeposit = ::core::primitive::u128; + pub type Rules = ::std::vec::Vec<::core::primitive::u8>; + } + pub mod dissolve { + use super::runtime_types; + } + pub mod judge_suspended_member { + use super::runtime_types; + pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Forgive = ::core::primitive::bool; + } + pub mod set_parameters { + use super::runtime_types; + pub type MaxMembers = ::core::primitive::u32; + pub type MaxIntake = ::core::primitive::u32; + pub type MaxStrikes = ::core::primitive::u32; + pub type CandidateDeposit = ::core::primitive::u128; + } + pub mod punish_skeptic { + use super::runtime_types; + } + pub mod claim_membership { + use super::runtime_types; + } + pub mod bestow_membership { + use super::runtime_types; + pub type Candidate = ::subxt::utils::AccountId32; + } + pub mod kick_candidate { + use super::runtime_types; + pub type Candidate = ::subxt::utils::AccountId32; + } + pub mod resign_candidacy { + use super::runtime_types; + } + pub mod drop_candidate { + use super::runtime_types; + pub type Candidate = ::subxt::utils::AccountId32; + } + pub mod cleanup_candidacy { + use super::runtime_types; + pub type Candidate = ::subxt::utils::AccountId32; + pub type Max = ::core::primitive::u32; + } + pub mod cleanup_challenge { + use super::runtime_types; + pub type ChallengeRound = ::core::primitive::u32; + pub type Max = ::core::primitive::u32; + } + } pub mod types { use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Bid { + pub value: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for Bid { + const PALLET: &'static str = "Society"; + const CALL: &'static str = "bid"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Unbid; + impl ::subxt::blocks::StaticExtrinsic for Unbid { + const PALLET: &'static str = "Society"; + const CALL: &'static str = "unbid"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Vouch { + pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub value: ::core::primitive::u128, + pub tip: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for Vouch { + const PALLET: &'static str = "Society"; + const CALL: &'static str = "vouch"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Unvouch; + impl ::subxt::blocks::StaticExtrinsic for Unvouch { + const PALLET: &'static str = "Society"; + const CALL: &'static str = "unvouch"; + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -16696,14 +16065,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Vote { - #[codec(compact)] - pub poll_index: ::core::primitive::u32, - pub vote: runtime_types::pallet_conviction_voting::vote::AccountVote< - ::core::primitive::u128, - >, + pub candidate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub approve: ::core::primitive::bool, } impl ::subxt::blocks::StaticExtrinsic for Vote { - const PALLET: &'static str = "ConvictionVoting"; + const PALLET: &'static str = "Society"; const CALL: &'static str = "vote"; } #[derive( @@ -16716,15 +16082,27 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Delegate { - pub class: ::core::primitive::u16, - pub to: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub conviction: runtime_types::pallet_conviction_voting::conviction::Conviction, - pub balance: ::core::primitive::u128, + pub struct DefenderVote { + pub approve: ::core::primitive::bool, } - impl ::subxt::blocks::StaticExtrinsic for Delegate { - const PALLET: &'static str = "ConvictionVoting"; - const CALL: &'static str = "delegate"; + impl ::subxt::blocks::StaticExtrinsic for DefenderVote { + const PALLET: &'static str = "Society"; + const CALL: &'static str = "defender_vote"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Payout; + impl ::subxt::blocks::StaticExtrinsic for Payout { + const PALLET: &'static str = "Society"; + const CALL: &'static str = "payout"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -16737,12 +16115,12 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Undelegate { - pub class: ::core::primitive::u16, + pub struct WaiveRepay { + pub amount: ::core::primitive::u128, } - impl ::subxt::blocks::StaticExtrinsic for Undelegate { - const PALLET: &'static str = "ConvictionVoting"; - const CALL: &'static str = "undelegate"; + impl ::subxt::blocks::StaticExtrinsic for WaiveRepay { + const PALLET: &'static str = "Society"; + const CALL: &'static str = "waive_repay"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16754,13 +16132,17 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Unlock { - pub class: ::core::primitive::u16, - pub target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub struct FoundSociety { + pub founder: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub max_members: ::core::primitive::u32, + pub max_intake: ::core::primitive::u32, + pub max_strikes: ::core::primitive::u32, + pub candidate_deposit: ::core::primitive::u128, + pub rules: ::std::vec::Vec<::core::primitive::u8>, } - impl ::subxt::blocks::StaticExtrinsic for Unlock { - const PALLET: &'static str = "ConvictionVoting"; - const CALL: &'static str = "unlock"; + impl ::subxt::blocks::StaticExtrinsic for FoundSociety { + const PALLET: &'static str = "Society"; + const CALL: &'static str = "found_society"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16772,13 +16154,28 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct RemoveVote { - pub class: ::core::option::Option<::core::primitive::u16>, - pub index: ::core::primitive::u32, + pub struct Dissolve; + impl ::subxt::blocks::StaticExtrinsic for Dissolve { + const PALLET: &'static str = "Society"; + const CALL: &'static str = "dissolve"; } - impl ::subxt::blocks::StaticExtrinsic for RemoveVote { - const PALLET: &'static str = "ConvictionVoting"; - const CALL: &'static str = "remove_vote"; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct JudgeSuspendedMember { + pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub forgive: ::core::primitive::bool, + } + impl ::subxt::blocks::StaticExtrinsic for JudgeSuspendedMember { + const PALLET: &'static str = "Society"; + const CALL: &'static str = "judge_suspended_member"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16790,141 +16187,493 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct RemoveOtherVote { - pub target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub class: ::core::primitive::u16, - pub index: ::core::primitive::u32, + pub struct SetParameters { + pub max_members: ::core::primitive::u32, + pub max_intake: ::core::primitive::u32, + pub max_strikes: ::core::primitive::u32, + pub candidate_deposit: ::core::primitive::u128, } - impl ::subxt::blocks::StaticExtrinsic for RemoveOtherVote { - const PALLET: &'static str = "ConvictionVoting"; - const CALL: &'static str = "remove_other_vote"; + impl ::subxt::blocks::StaticExtrinsic for SetParameters { + const PALLET: &'static str = "Society"; + const CALL: &'static str = "set_parameters"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct PunishSkeptic; + impl ::subxt::blocks::StaticExtrinsic for PunishSkeptic { + const PALLET: &'static str = "Society"; + const CALL: &'static str = "punish_skeptic"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ClaimMembership; + impl ::subxt::blocks::StaticExtrinsic for ClaimMembership { + const PALLET: &'static str = "Society"; + const CALL: &'static str = "claim_membership"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct BestowMembership { + pub candidate: ::subxt::utils::AccountId32, + } + impl ::subxt::blocks::StaticExtrinsic for BestowMembership { + const PALLET: &'static str = "Society"; + const CALL: &'static str = "bestow_membership"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct KickCandidate { + pub candidate: ::subxt::utils::AccountId32, + } + impl ::subxt::blocks::StaticExtrinsic for KickCandidate { + const PALLET: &'static str = "Society"; + const CALL: &'static str = "kick_candidate"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ResignCandidacy; + impl ::subxt::blocks::StaticExtrinsic for ResignCandidacy { + const PALLET: &'static str = "Society"; + const CALL: &'static str = "resign_candidacy"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct DropCandidate { + pub candidate: ::subxt::utils::AccountId32, + } + impl ::subxt::blocks::StaticExtrinsic for DropCandidate { + const PALLET: &'static str = "Society"; + const CALL: &'static str = "drop_candidate"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CleanupCandidacy { + pub candidate: ::subxt::utils::AccountId32, + pub max: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for CleanupCandidacy { + const PALLET: &'static str = "Society"; + const CALL: &'static str = "cleanup_candidacy"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CleanupChallenge { + pub challenge_round: ::core::primitive::u32, + pub max: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for CleanupChallenge { + const PALLET: &'static str = "Society"; + const CALL: &'static str = "cleanup_challenge"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::vote`]."] - pub fn vote( + #[doc = "See [`Pallet::bid`]."] + pub fn bid( &self, - poll_index: ::core::primitive::u32, - vote: runtime_types::pallet_conviction_voting::vote::AccountVote< - ::core::primitive::u128, - >, - ) -> ::subxt::tx::Payload { + value: alias_types::bid::Value, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "ConvictionVoting", - "vote", - types::Vote { poll_index, vote }, + "Society", + "bid", + types::Bid { value }, [ - 57u8, 170u8, 177u8, 168u8, 158u8, 43u8, 87u8, 242u8, 176u8, 85u8, - 230u8, 64u8, 103u8, 239u8, 190u8, 6u8, 228u8, 165u8, 248u8, 77u8, - 231u8, 221u8, 186u8, 107u8, 249u8, 201u8, 226u8, 52u8, 129u8, 90u8, - 142u8, 159u8, + 196u8, 8u8, 236u8, 188u8, 3u8, 185u8, 190u8, 227u8, 11u8, 146u8, 225u8, + 241u8, 196u8, 125u8, 128u8, 67u8, 244u8, 144u8, 10u8, 152u8, 161u8, + 60u8, 72u8, 33u8, 124u8, 137u8, 40u8, 200u8, 177u8, 21u8, 27u8, 45u8, ], ) } - #[doc = "See [`Pallet::delegate`]."] - pub fn delegate( + #[doc = "See [`Pallet::unbid`]."] + pub fn unbid(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Society", + "unbid", + types::Unbid {}, + [ + 188u8, 248u8, 46u8, 6u8, 82u8, 191u8, 129u8, 234u8, 187u8, 249u8, 69u8, + 242u8, 173u8, 185u8, 209u8, 51u8, 228u8, 80u8, 27u8, 111u8, 59u8, + 110u8, 180u8, 106u8, 205u8, 6u8, 121u8, 66u8, 232u8, 89u8, 166u8, + 154u8, + ], + ) + } + #[doc = "See [`Pallet::vouch`]."] + pub fn vouch( &self, - class: ::core::primitive::u16, - to: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - conviction: runtime_types::pallet_conviction_voting::conviction::Conviction, - balance: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { + who: alias_types::vouch::Who, + value: alias_types::vouch::Value, + tip: alias_types::vouch::Tip, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "ConvictionVoting", - "delegate", - types::Delegate { - class, - to, - conviction, - balance, + "Society", + "vouch", + types::Vouch { who, value, tip }, + [ + 112u8, 149u8, 72u8, 181u8, 135u8, 149u8, 62u8, 134u8, 12u8, 214u8, 0u8, + 31u8, 142u8, 128u8, 27u8, 243u8, 210u8, 197u8, 72u8, 177u8, 164u8, + 112u8, 223u8, 28u8, 43u8, 149u8, 5u8, 249u8, 157u8, 150u8, 123u8, 58u8, + ], + ) + } + #[doc = "See [`Pallet::unvouch`]."] + pub fn unvouch(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Society", + "unvouch", + types::Unvouch {}, + [ + 205u8, 176u8, 119u8, 76u8, 199u8, 30u8, 22u8, 108u8, 111u8, 117u8, + 24u8, 9u8, 164u8, 14u8, 126u8, 124u8, 224u8, 50u8, 195u8, 136u8, 244u8, + 77u8, 238u8, 99u8, 97u8, 133u8, 151u8, 109u8, 245u8, 83u8, 159u8, + 136u8, + ], + ) + } + #[doc = "See [`Pallet::vote`]."] + pub fn vote( + &self, + candidate: alias_types::vote::Candidate, + approve: alias_types::vote::Approve, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Society", + "vote", + types::Vote { candidate, approve }, + [ + 64u8, 168u8, 166u8, 195u8, 208u8, 246u8, 156u8, 39u8, 195u8, 28u8, + 153u8, 58u8, 52u8, 185u8, 166u8, 8u8, 108u8, 169u8, 44u8, 70u8, 244u8, + 244u8, 81u8, 27u8, 236u8, 79u8, 123u8, 176u8, 155u8, 40u8, 154u8, 70u8, + ], + ) + } + #[doc = "See [`Pallet::defender_vote`]."] + pub fn defender_vote( + &self, + approve: alias_types::defender_vote::Approve, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Society", + "defender_vote", + types::DefenderVote { approve }, + [ + 38u8, 196u8, 123u8, 172u8, 243u8, 40u8, 208u8, 63u8, 231u8, 155u8, + 151u8, 181u8, 58u8, 122u8, 185u8, 86u8, 76u8, 124u8, 168u8, 225u8, + 37u8, 13u8, 127u8, 250u8, 122u8, 124u8, 140u8, 57u8, 242u8, 214u8, + 145u8, 119u8, + ], + ) + } + #[doc = "See [`Pallet::payout`]."] + pub fn payout(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Society", + "payout", + types::Payout {}, + [ + 214u8, 12u8, 233u8, 89u8, 186u8, 0u8, 61u8, 206u8, 251u8, 1u8, 55u8, + 0u8, 126u8, 105u8, 55u8, 109u8, 101u8, 104u8, 46u8, 98u8, 62u8, 228u8, + 64u8, 195u8, 61u8, 24u8, 48u8, 148u8, 146u8, 108u8, 67u8, 52u8, + ], + ) + } + #[doc = "See [`Pallet::waive_repay`]."] + pub fn waive_repay( + &self, + amount: alias_types::waive_repay::Amount, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Society", + "waive_repay", + types::WaiveRepay { amount }, + [ + 83u8, 11u8, 65u8, 16u8, 92u8, 73u8, 39u8, 178u8, 16u8, 170u8, 41u8, + 70u8, 241u8, 255u8, 89u8, 121u8, 50u8, 140u8, 240u8, 31u8, 27u8, 51u8, + 51u8, 22u8, 241u8, 218u8, 127u8, 76u8, 52u8, 246u8, 214u8, 52u8, + ], + ) + } + #[doc = "See [`Pallet::found_society`]."] + pub fn found_society( + &self, + founder: alias_types::found_society::Founder, + max_members: alias_types::found_society::MaxMembers, + max_intake: alias_types::found_society::MaxIntake, + max_strikes: alias_types::found_society::MaxStrikes, + candidate_deposit: alias_types::found_society::CandidateDeposit, + rules: alias_types::found_society::Rules, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Society", + "found_society", + types::FoundSociety { + founder, + max_members, + max_intake, + max_strikes, + candidate_deposit, + rules, }, [ - 223u8, 143u8, 33u8, 94u8, 32u8, 156u8, 43u8, 40u8, 142u8, 134u8, 209u8, - 134u8, 255u8, 179u8, 97u8, 46u8, 8u8, 140u8, 5u8, 29u8, 76u8, 22u8, - 36u8, 7u8, 108u8, 190u8, 220u8, 151u8, 10u8, 47u8, 89u8, 55u8, + 232u8, 23u8, 175u8, 166u8, 217u8, 99u8, 210u8, 160u8, 122u8, 68u8, + 169u8, 134u8, 248u8, 126u8, 186u8, 130u8, 97u8, 245u8, 69u8, 159u8, + 19u8, 52u8, 67u8, 144u8, 77u8, 154u8, 215u8, 67u8, 233u8, 96u8, 40u8, + 81u8, ], ) } - #[doc = "See [`Pallet::undelegate`]."] - pub fn undelegate( + #[doc = "See [`Pallet::dissolve`]."] + pub fn dissolve(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Society", + "dissolve", + types::Dissolve {}, + [ + 159u8, 138u8, 214u8, 34u8, 208u8, 201u8, 11u8, 33u8, 173u8, 66u8, + 243u8, 3u8, 226u8, 190u8, 199u8, 200u8, 215u8, 210u8, 226u8, 213u8, + 150u8, 217u8, 192u8, 88u8, 87u8, 202u8, 226u8, 105u8, 20u8, 201u8, + 50u8, 242u8, + ], + ) + } + #[doc = "See [`Pallet::judge_suspended_member`]."] + pub fn judge_suspended_member( &self, - class: ::core::primitive::u16, - ) -> ::subxt::tx::Payload { + who: alias_types::judge_suspended_member::Who, + forgive: alias_types::judge_suspended_member::Forgive, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "ConvictionVoting", - "undelegate", - types::Undelegate { class }, + "Society", + "judge_suspended_member", + types::JudgeSuspendedMember { who, forgive }, [ - 140u8, 232u8, 6u8, 53u8, 228u8, 8u8, 131u8, 144u8, 65u8, 66u8, 245u8, - 247u8, 147u8, 135u8, 198u8, 57u8, 82u8, 212u8, 89u8, 46u8, 236u8, - 168u8, 200u8, 220u8, 93u8, 168u8, 101u8, 29u8, 110u8, 76u8, 67u8, - 181u8, + 219u8, 45u8, 90u8, 201u8, 128u8, 28u8, 215u8, 68u8, 125u8, 127u8, 57u8, + 207u8, 25u8, 110u8, 162u8, 30u8, 211u8, 208u8, 192u8, 182u8, 69u8, + 151u8, 233u8, 84u8, 81u8, 72u8, 74u8, 253u8, 106u8, 46u8, 157u8, 21u8, ], ) } - #[doc = "See [`Pallet::unlock`]."] - pub fn unlock( + #[doc = "See [`Pallet::set_parameters`]."] + pub fn set_parameters( &self, - class: ::core::primitive::u16, - target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - ) -> ::subxt::tx::Payload { + max_members: alias_types::set_parameters::MaxMembers, + max_intake: alias_types::set_parameters::MaxIntake, + max_strikes: alias_types::set_parameters::MaxStrikes, + candidate_deposit: alias_types::set_parameters::CandidateDeposit, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "ConvictionVoting", - "unlock", - types::Unlock { class, target }, + "Society", + "set_parameters", + types::SetParameters { + max_members, + max_intake, + max_strikes, + candidate_deposit, + }, [ - 79u8, 5u8, 252u8, 237u8, 109u8, 238u8, 157u8, 237u8, 125u8, 171u8, - 65u8, 160u8, 102u8, 192u8, 5u8, 141u8, 179u8, 249u8, 253u8, 213u8, - 105u8, 251u8, 241u8, 145u8, 186u8, 177u8, 244u8, 139u8, 71u8, 140u8, - 173u8, 108u8, + 141u8, 29u8, 233u8, 249u8, 125u8, 139u8, 186u8, 89u8, 112u8, 201u8, + 38u8, 108u8, 79u8, 204u8, 140u8, 185u8, 156u8, 202u8, 77u8, 178u8, + 205u8, 99u8, 36u8, 78u8, 68u8, 94u8, 160u8, 198u8, 176u8, 226u8, 35u8, + 229u8, ], ) } - #[doc = "See [`Pallet::remove_vote`]."] - pub fn remove_vote( + #[doc = "See [`Pallet::punish_skeptic`]."] + pub fn punish_skeptic(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Society", + "punish_skeptic", + types::PunishSkeptic {}, + [ + 69u8, 32u8, 105u8, 1u8, 25u8, 240u8, 148u8, 136u8, 141u8, 97u8, 247u8, + 14u8, 18u8, 169u8, 184u8, 247u8, 89u8, 145u8, 239u8, 51u8, 161u8, + 149u8, 37u8, 127u8, 160u8, 54u8, 144u8, 222u8, 54u8, 135u8, 184u8, + 244u8, + ], + ) + } + #[doc = "See [`Pallet::claim_membership`]."] + pub fn claim_membership(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Society", + "claim_membership", + types::ClaimMembership {}, + [ + 129u8, 50u8, 134u8, 231u8, 159u8, 194u8, 140u8, 16u8, 139u8, 189u8, + 131u8, 82u8, 150u8, 112u8, 138u8, 116u8, 3u8, 28u8, 183u8, 151u8, 19u8, + 122u8, 29u8, 152u8, 88u8, 123u8, 34u8, 84u8, 42u8, 12u8, 230u8, 220u8, + ], + ) + } + #[doc = "See [`Pallet::bestow_membership`]."] + pub fn bestow_membership( &self, - class: ::core::option::Option<::core::primitive::u16>, - index: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + candidate: alias_types::bestow_membership::Candidate, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "ConvictionVoting", - "remove_vote", - types::RemoveVote { class, index }, + "Society", + "bestow_membership", + types::BestowMembership { candidate }, [ - 255u8, 108u8, 211u8, 146u8, 168u8, 231u8, 207u8, 44u8, 76u8, 24u8, - 235u8, 60u8, 23u8, 79u8, 192u8, 192u8, 46u8, 40u8, 134u8, 27u8, 125u8, - 114u8, 125u8, 247u8, 85u8, 102u8, 76u8, 159u8, 34u8, 167u8, 152u8, - 148u8, + 146u8, 123u8, 220u8, 105u8, 41u8, 24u8, 3u8, 83u8, 38u8, 64u8, 93u8, + 69u8, 149u8, 46u8, 177u8, 32u8, 197u8, 152u8, 186u8, 198u8, 39u8, 47u8, + 54u8, 174u8, 86u8, 41u8, 170u8, 74u8, 107u8, 141u8, 169u8, 222u8, ], ) } - #[doc = "See [`Pallet::remove_other_vote`]."] - pub fn remove_other_vote( + #[doc = "See [`Pallet::kick_candidate`]."] + pub fn kick_candidate( &self, - target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - class: ::core::primitive::u16, - index: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + candidate: alias_types::kick_candidate::Candidate, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "ConvictionVoting", - "remove_other_vote", - types::RemoveOtherVote { - target, - class, - index, + "Society", + "kick_candidate", + types::KickCandidate { candidate }, + [ + 51u8, 17u8, 10u8, 153u8, 91u8, 22u8, 117u8, 204u8, 32u8, 141u8, 59u8, + 94u8, 240u8, 99u8, 247u8, 217u8, 233u8, 39u8, 132u8, 191u8, 225u8, + 74u8, 140u8, 182u8, 106u8, 74u8, 90u8, 129u8, 71u8, 240u8, 5u8, 70u8, + ], + ) + } + #[doc = "See [`Pallet::resign_candidacy`]."] + pub fn resign_candidacy(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Society", + "resign_candidacy", + types::ResignCandidacy {}, + [ + 40u8, 237u8, 128u8, 221u8, 162u8, 143u8, 104u8, 151u8, 11u8, 97u8, + 212u8, 53u8, 26u8, 145u8, 124u8, 196u8, 155u8, 118u8, 232u8, 251u8, + 42u8, 35u8, 11u8, 149u8, 78u8, 99u8, 6u8, 56u8, 23u8, 166u8, 167u8, + 116u8, + ], + ) + } + #[doc = "See [`Pallet::drop_candidate`]."] + pub fn drop_candidate( + &self, + candidate: alias_types::drop_candidate::Candidate, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Society", + "drop_candidate", + types::DropCandidate { candidate }, + [ + 140u8, 7u8, 82u8, 134u8, 101u8, 180u8, 217u8, 22u8, 204u8, 194u8, + 125u8, 165u8, 69u8, 7u8, 193u8, 0u8, 33u8, 246u8, 43u8, 221u8, 110u8, + 105u8, 227u8, 61u8, 22u8, 110u8, 98u8, 141u8, 44u8, 212u8, 55u8, 157u8, + ], + ) + } + #[doc = "See [`Pallet::cleanup_candidacy`]."] + pub fn cleanup_candidacy( + &self, + candidate: alias_types::cleanup_candidacy::Candidate, + max: alias_types::cleanup_candidacy::Max, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Society", + "cleanup_candidacy", + types::CleanupCandidacy { candidate, max }, + [ + 115u8, 111u8, 140u8, 201u8, 68u8, 53u8, 116u8, 204u8, 131u8, 66u8, + 13u8, 123u8, 157u8, 235u8, 252u8, 24u8, 126u8, 233u8, 80u8, 227u8, + 130u8, 231u8, 81u8, 23u8, 104u8, 39u8, 166u8, 3u8, 231u8, 137u8, 172u8, + 107u8, + ], + ) + } + #[doc = "See [`Pallet::cleanup_challenge`]."] + pub fn cleanup_challenge( + &self, + challenge_round: alias_types::cleanup_challenge::ChallengeRound, + max: alias_types::cleanup_challenge::Max, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Society", + "cleanup_challenge", + types::CleanupChallenge { + challenge_round, + max, }, [ - 165u8, 26u8, 166u8, 37u8, 10u8, 174u8, 243u8, 10u8, 73u8, 93u8, 213u8, - 69u8, 200u8, 16u8, 48u8, 146u8, 160u8, 92u8, 28u8, 26u8, 158u8, 55u8, - 6u8, 251u8, 36u8, 132u8, 46u8, 195u8, 107u8, 34u8, 0u8, 100u8, + 255u8, 67u8, 39u8, 222u8, 23u8, 216u8, 63u8, 255u8, 82u8, 135u8, 30u8, + 135u8, 120u8, 255u8, 56u8, 223u8, 137u8, 72u8, 128u8, 165u8, 147u8, + 167u8, 93u8, 17u8, 118u8, 27u8, 32u8, 187u8, 220u8, 206u8, 123u8, + 242u8, ], ) } } } #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_conviction_voting::pallet::Event; + pub type Event = runtime_types::pallet_society::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -16937,14 +16686,13 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An account has delegated their vote to another account. \\[who, target\\]"] - pub struct Delegated( - pub ::subxt::utils::AccountId32, - pub ::subxt::utils::AccountId32, - ); - impl ::subxt::events::StaticEvent for Delegated { - const PALLET: &'static str = "ConvictionVoting"; - const EVENT: &'static str = "Delegated"; + #[doc = "The society is founded by the given identity."] + pub struct Founded { + pub founder: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for Founded { + const PALLET: &'static str = "Society"; + const EVENT: &'static str = "Founded"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16956,158 +16704,1091 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An \\[account\\] has cancelled a previous delegation operation."] - pub struct Undelegated(pub ::subxt::utils::AccountId32); - impl ::subxt::events::StaticEvent for Undelegated { - const PALLET: &'static str = "ConvictionVoting"; - const EVENT: &'static str = "Undelegated"; + #[doc = "A membership bid just happened. The given account is the candidate's ID and their offer"] + #[doc = "is the second."] + pub struct Bid { + pub candidate_id: ::subxt::utils::AccountId32, + pub offer: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Bid { + const PALLET: &'static str = "Society"; + const EVENT: &'static str = "Bid"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A membership bid just happened by vouching. The given account is the candidate's ID and"] + #[doc = "their offer is the second. The vouching party is the third."] + pub struct Vouch { + pub candidate_id: ::subxt::utils::AccountId32, + pub offer: ::core::primitive::u128, + pub vouching: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for Vouch { + const PALLET: &'static str = "Society"; + const EVENT: &'static str = "Vouch"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A candidate was dropped (due to an excess of bids in the system)."] + pub struct AutoUnbid { + pub candidate: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for AutoUnbid { + const PALLET: &'static str = "Society"; + const EVENT: &'static str = "AutoUnbid"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A candidate was dropped (by their request)."] + pub struct Unbid { + pub candidate: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for Unbid { + const PALLET: &'static str = "Society"; + const EVENT: &'static str = "Unbid"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A candidate was dropped (by request of who vouched for them)."] + pub struct Unvouch { + pub candidate: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for Unvouch { + const PALLET: &'static str = "Society"; + const EVENT: &'static str = "Unvouch"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A group of candidates have been inducted. The batch's primary is the first value, the"] + #[doc = "batch in full is the second."] + pub struct Inducted { + pub primary: ::subxt::utils::AccountId32, + pub candidates: ::std::vec::Vec<::subxt::utils::AccountId32>, + } + impl ::subxt::events::StaticEvent for Inducted { + const PALLET: &'static str = "Society"; + const EVENT: &'static str = "Inducted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A suspended member has been judged."] + pub struct SuspendedMemberJudgement { + pub who: ::subxt::utils::AccountId32, + pub judged: ::core::primitive::bool, + } + impl ::subxt::events::StaticEvent for SuspendedMemberJudgement { + const PALLET: &'static str = "Society"; + const EVENT: &'static str = "SuspendedMemberJudgement"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A candidate has been suspended"] + pub struct CandidateSuspended { + pub candidate: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for CandidateSuspended { + const PALLET: &'static str = "Society"; + const EVENT: &'static str = "CandidateSuspended"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A member has been suspended"] + pub struct MemberSuspended { + pub member: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for MemberSuspended { + const PALLET: &'static str = "Society"; + const EVENT: &'static str = "MemberSuspended"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A member has been challenged"] + pub struct Challenged { + pub member: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for Challenged { + const PALLET: &'static str = "Society"; + const EVENT: &'static str = "Challenged"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A vote has been placed"] + pub struct Vote { + pub candidate: ::subxt::utils::AccountId32, + pub voter: ::subxt::utils::AccountId32, + pub vote: ::core::primitive::bool, + } + impl ::subxt::events::StaticEvent for Vote { + const PALLET: &'static str = "Society"; + const EVENT: &'static str = "Vote"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A vote has been placed for a defending member"] + pub struct DefenderVote { + pub voter: ::subxt::utils::AccountId32, + pub vote: ::core::primitive::bool, + } + impl ::subxt::events::StaticEvent for DefenderVote { + const PALLET: &'static str = "Society"; + const EVENT: &'static str = "DefenderVote"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A new set of \\[params\\] has been set for the group."] + pub struct NewParams { + pub params: runtime_types::pallet_society::GroupParams<::core::primitive::u128>, + } + impl ::subxt::events::StaticEvent for NewParams { + const PALLET: &'static str = "Society"; + const EVENT: &'static str = "NewParams"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Society is unfounded."] + pub struct Unfounded { + pub founder: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for Unfounded { + const PALLET: &'static str = "Society"; + const EVENT: &'static str = "Unfounded"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some funds were deposited into the society account."] + pub struct Deposit { + pub value: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Deposit { + const PALLET: &'static str = "Society"; + const EVENT: &'static str = "Deposit"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A \\[member\\] got elevated to \\[rank\\]."] + pub struct Elevated { + pub member: ::subxt::utils::AccountId32, + pub rank: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for Elevated { + const PALLET: &'static str = "Society"; + const EVENT: &'static str = "Elevated"; } } pub mod storage { use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod parameters { + use super::runtime_types; + pub type Parameters = + runtime_types::pallet_society::GroupParams<::core::primitive::u128>; + } + pub mod pot { + use super::runtime_types; + pub type Pot = ::core::primitive::u128; + } + pub mod founder { + use super::runtime_types; + pub type Founder = ::subxt::utils::AccountId32; + } + pub mod head { + use super::runtime_types; + pub type Head = ::subxt::utils::AccountId32; + } + pub mod rules { + use super::runtime_types; + pub type Rules = ::subxt::utils::H256; + } + pub mod members { + use super::runtime_types; + pub type Members = runtime_types::pallet_society::MemberRecord; + } + pub mod payouts { + use super::runtime_types; + pub type Payouts = runtime_types::pallet_society::PayoutRecord< + ::core::primitive::u128, + runtime_types::bounded_collections::bounded_vec::BoundedVec<( + ::core::primitive::u32, + ::core::primitive::u128, + )>, + >; + } + pub mod member_count { + use super::runtime_types; + pub type MemberCount = ::core::primitive::u32; + } + pub mod member_by_index { + use super::runtime_types; + pub type MemberByIndex = ::subxt::utils::AccountId32; + } + pub mod suspended_members { + use super::runtime_types; + pub type SuspendedMembers = runtime_types::pallet_society::MemberRecord; + } + pub mod round_count { + use super::runtime_types; + pub type RoundCount = ::core::primitive::u32; + } + pub mod bids { + use super::runtime_types; + pub type Bids = runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_society::Bid< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + >; + } + pub mod candidates { + use super::runtime_types; + pub type Candidates = runtime_types::pallet_society::Candidacy< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >; + } + pub mod skeptic { + use super::runtime_types; + pub type Skeptic = ::subxt::utils::AccountId32; + } + pub mod votes { + use super::runtime_types; + pub type Votes = runtime_types::pallet_society::Vote; + } + pub mod vote_clear_cursor { + use super::runtime_types; + pub type VoteClearCursor = + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; + } + pub mod next_head { + use super::runtime_types; + pub type NextHead = runtime_types::pallet_society::IntakeRecord< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >; + } + pub mod challenge_round_count { + use super::runtime_types; + pub type ChallengeRoundCount = ::core::primitive::u32; + } + pub mod defending { + use super::runtime_types; + pub type Defending = ( + ::subxt::utils::AccountId32, + ::subxt::utils::AccountId32, + runtime_types::pallet_society::Tally, + ); + } + pub mod defender_votes { + use super::runtime_types; + pub type DefenderVotes = runtime_types::pallet_society::Vote; + } + } pub struct StorageApi; impl StorageApi { - #[doc = " All voting for a particular voter in a particular voting class. We store the balance for the"] - #[doc = " number of votes that we have recorded."] - pub fn voting_for_iter( + #[doc = " The max number of members for the society at one time."] + pub fn parameters( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_conviction_voting::vote::Voting< - ::core::primitive::u128, - ::subxt::utils::AccountId32, - ::core::primitive::u32, - ::core::primitive::u32, - >, - (), - ::subxt::storage::address::Yes, + alias_types::parameters::Parameters, ::subxt::storage::address::Yes, + (), + (), > { ::subxt::storage::address::Address::new_static( - "ConvictionVoting", - "VotingFor", + "Society", + "Parameters", vec![], [ - 76u8, 63u8, 153u8, 193u8, 39u8, 137u8, 186u8, 29u8, 202u8, 56u8, 169u8, - 56u8, 103u8, 138u8, 192u8, 18u8, 179u8, 114u8, 56u8, 121u8, 197u8, - 12u8, 29u8, 239u8, 220u8, 231u8, 24u8, 46u8, 134u8, 99u8, 53u8, 206u8, + 69u8, 147u8, 95u8, 26u8, 245u8, 207u8, 83u8, 57u8, 229u8, 34u8, 205u8, + 202u8, 182u8, 180u8, 219u8, 86u8, 152u8, 140u8, 212u8, 145u8, 7u8, + 98u8, 185u8, 36u8, 60u8, 173u8, 120u8, 49u8, 164u8, 102u8, 133u8, + 248u8, ], ) } - #[doc = " All voting for a particular voter in a particular voting class. We store the balance for the"] - #[doc = " number of votes that we have recorded."] - pub fn voting_for_iter1( + #[doc = " Amount of our account balance that is specifically for the next round's bid(s)."] + pub fn pot( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_conviction_voting::vote::Voting< - ::core::primitive::u128, - ::subxt::utils::AccountId32, - ::core::primitive::u32, - ::core::primitive::u32, - >, - (), + alias_types::pot::Pot, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, + (), > { ::subxt::storage::address::Address::new_static( - "ConvictionVoting", - "VotingFor", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], + "Society", + "Pot", + vec![], [ - 76u8, 63u8, 153u8, 193u8, 39u8, 137u8, 186u8, 29u8, 202u8, 56u8, 169u8, - 56u8, 103u8, 138u8, 192u8, 18u8, 179u8, 114u8, 56u8, 121u8, 197u8, - 12u8, 29u8, 239u8, 220u8, 231u8, 24u8, 46u8, 134u8, 99u8, 53u8, 206u8, + 98u8, 77u8, 215u8, 220u8, 51u8, 87u8, 188u8, 65u8, 72u8, 231u8, 34u8, + 161u8, 61u8, 59u8, 66u8, 105u8, 128u8, 23u8, 249u8, 27u8, 10u8, 0u8, + 251u8, 16u8, 235u8, 163u8, 239u8, 74u8, 197u8, 226u8, 58u8, 215u8, ], ) } - #[doc = " All voting for a particular voter in a particular voting class. We store the balance for the"] - #[doc = " number of votes that we have recorded."] - pub fn voting_for( + #[doc = " The first member."] + pub fn founder( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - _1: impl ::std::borrow::Borrow<::core::primitive::u16>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_conviction_voting::vote::Voting< - ::core::primitive::u128, - ::subxt::utils::AccountId32, - ::core::primitive::u32, - ::core::primitive::u32, - >, - ::subxt::storage::address::Yes, + alias_types::founder::Founder, ::subxt::storage::address::Yes, (), + (), > { ::subxt::storage::address::Address::new_static( - "ConvictionVoting", - "VotingFor", - vec![ - ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), - ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), - ], + "Society", + "Founder", + vec![], [ - 76u8, 63u8, 153u8, 193u8, 39u8, 137u8, 186u8, 29u8, 202u8, 56u8, 169u8, - 56u8, 103u8, 138u8, 192u8, 18u8, 179u8, 114u8, 56u8, 121u8, 197u8, - 12u8, 29u8, 239u8, 220u8, 231u8, 24u8, 46u8, 134u8, 99u8, 53u8, 206u8, + 14u8, 6u8, 181u8, 186u8, 64u8, 213u8, 48u8, 110u8, 242u8, 50u8, 144u8, + 77u8, 38u8, 127u8, 161u8, 54u8, 204u8, 119u8, 1u8, 218u8, 12u8, 57u8, + 165u8, 32u8, 28u8, 34u8, 46u8, 12u8, 217u8, 65u8, 27u8, 1u8, ], ) } - #[doc = " The voting classes which have a non-zero lock requirement and the lock amounts which they"] - #[doc = " require. The actual amount locked on behalf of this pallet should always be the maximum of"] - #[doc = " this list."] - pub fn class_locks_for_iter( + #[doc = " The most primary from the most recently approved rank 0 members in the society."] + pub fn head( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec<( - ::core::primitive::u16, - ::core::primitive::u128, - )>, - (), - ::subxt::storage::address::Yes, + alias_types::head::Head, ::subxt::storage::address::Yes, + (), + (), > { ::subxt::storage::address::Address::new_static( - "ConvictionVoting", - "ClassLocksFor", + "Society", + "Head", vec![], [ - 74u8, 74u8, 8u8, 82u8, 215u8, 61u8, 13u8, 9u8, 44u8, 222u8, 33u8, - 245u8, 195u8, 124u8, 6u8, 174u8, 65u8, 245u8, 71u8, 42u8, 47u8, 46u8, - 164u8, 231u8, 11u8, 245u8, 115u8, 207u8, 209u8, 137u8, 90u8, 6u8, + 95u8, 2u8, 23u8, 237u8, 130u8, 169u8, 84u8, 51u8, 1u8, 178u8, 234u8, + 194u8, 139u8, 35u8, 222u8, 150u8, 246u8, 176u8, 97u8, 103u8, 211u8, + 198u8, 165u8, 1u8, 224u8, 204u8, 10u8, 91u8, 6u8, 179u8, 189u8, 170u8, ], ) } - #[doc = " The voting classes which have a non-zero lock requirement and the lock amounts which they"] - #[doc = " require. The actual amount locked on behalf of this pallet should always be the maximum of"] - #[doc = " this list."] - pub fn class_locks_for( + #[doc = " A hash of the rules of this society concerning membership. Can only be set once and"] + #[doc = " only by the founder."] + pub fn rules( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec<( - ::core::primitive::u16, - ::core::primitive::u128, - )>, - ::subxt::storage::address::Yes, + alias_types::rules::Rules, ::subxt::storage::address::Yes, (), + (), > { ::subxt::storage::address::Address::new_static( - "ConvictionVoting", - "ClassLocksFor", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], + "Society", + "Rules", + vec![], [ - 74u8, 74u8, 8u8, 82u8, 215u8, 61u8, 13u8, 9u8, 44u8, 222u8, 33u8, - 245u8, 195u8, 124u8, 6u8, 174u8, 65u8, 245u8, 71u8, 42u8, 47u8, 46u8, - 164u8, 231u8, 11u8, 245u8, 115u8, 207u8, 209u8, 137u8, 90u8, 6u8, + 119u8, 249u8, 119u8, 89u8, 243u8, 239u8, 149u8, 15u8, 238u8, 40u8, + 172u8, 198u8, 24u8, 107u8, 57u8, 39u8, 155u8, 36u8, 13u8, 72u8, 153u8, + 101u8, 39u8, 146u8, 38u8, 161u8, 195u8, 69u8, 79u8, 204u8, 172u8, + 207u8, + ], + ) + } + #[doc = " The current members and their rank. Doesn't include `SuspendedMembers`."] + pub fn members_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::members::Members, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Society", + "Members", + vec![], + [ + 207u8, 227u8, 130u8, 247u8, 29u8, 198u8, 129u8, 83u8, 3u8, 6u8, 19u8, + 37u8, 163u8, 227u8, 0u8, 94u8, 8u8, 166u8, 111u8, 70u8, 101u8, 65u8, + 104u8, 8u8, 94u8, 84u8, 80u8, 158u8, 208u8, 152u8, 4u8, 33u8, + ], + ) + } + #[doc = " The current members and their rank. Doesn't include `SuspendedMembers`."] + pub fn members( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::members::Members, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Society", + "Members", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 207u8, 227u8, 130u8, 247u8, 29u8, 198u8, 129u8, 83u8, 3u8, 6u8, 19u8, + 37u8, 163u8, 227u8, 0u8, 94u8, 8u8, 166u8, 111u8, 70u8, 101u8, 65u8, + 104u8, 8u8, 94u8, 84u8, 80u8, 158u8, 208u8, 152u8, 4u8, 33u8, + ], + ) + } + #[doc = " Information regarding rank-0 payouts, past and future."] + pub fn payouts_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::payouts::Payouts, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Society", + "Payouts", + vec![], + [ + 251u8, 249u8, 170u8, 219u8, 131u8, 113u8, 178u8, 165u8, 173u8, 36u8, + 175u8, 199u8, 57u8, 188u8, 59u8, 226u8, 4u8, 45u8, 36u8, 173u8, 113u8, + 50u8, 153u8, 205u8, 21u8, 132u8, 30u8, 111u8, 95u8, 51u8, 194u8, 126u8, + ], + ) + } + #[doc = " Information regarding rank-0 payouts, past and future."] + pub fn payouts( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::payouts::Payouts, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Society", + "Payouts", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 251u8, 249u8, 170u8, 219u8, 131u8, 113u8, 178u8, 165u8, 173u8, 36u8, + 175u8, 199u8, 57u8, 188u8, 59u8, 226u8, 4u8, 45u8, 36u8, 173u8, 113u8, + 50u8, 153u8, 205u8, 21u8, 132u8, 30u8, 111u8, 95u8, 51u8, 194u8, 126u8, + ], + ) + } + #[doc = " The number of items in `Members` currently. (Doesn't include `SuspendedMembers`.)"] + pub fn member_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::member_count::MemberCount, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Society", + "MemberCount", + vec![], + [ + 251u8, 200u8, 97u8, 38u8, 125u8, 162u8, 19u8, 100u8, 249u8, 254u8, + 42u8, 93u8, 64u8, 171u8, 2u8, 200u8, 129u8, 228u8, 211u8, 229u8, 152u8, + 170u8, 228u8, 158u8, 212u8, 94u8, 17u8, 226u8, 194u8, 87u8, 189u8, + 213u8, + ], + ) + } + #[doc = " The current items in `Members` keyed by their unique index. Keys are densely populated"] + #[doc = " `0..MemberCount` (does not include `MemberCount`)."] + pub fn member_by_index_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::member_by_index::MemberByIndex, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Society", + "MemberByIndex", + vec![], + [ + 13u8, 233u8, 212u8, 149u8, 220u8, 158u8, 17u8, 27u8, 201u8, 61u8, + 202u8, 248u8, 192u8, 37u8, 199u8, 73u8, 32u8, 140u8, 204u8, 206u8, + 239u8, 43u8, 241u8, 41u8, 9u8, 51u8, 125u8, 171u8, 47u8, 149u8, 63u8, + 159u8, + ], + ) + } + #[doc = " The current items in `Members` keyed by their unique index. Keys are densely populated"] + #[doc = " `0..MemberCount` (does not include `MemberCount`)."] + pub fn member_by_index( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::member_by_index::MemberByIndex, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Society", + "MemberByIndex", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 13u8, 233u8, 212u8, 149u8, 220u8, 158u8, 17u8, 27u8, 201u8, 61u8, + 202u8, 248u8, 192u8, 37u8, 199u8, 73u8, 32u8, 140u8, 204u8, 206u8, + 239u8, 43u8, 241u8, 41u8, 9u8, 51u8, 125u8, 171u8, 47u8, 149u8, 63u8, + 159u8, + ], + ) + } + #[doc = " The set of suspended members, with their old membership record."] + pub fn suspended_members_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::suspended_members::SuspendedMembers, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Society", + "SuspendedMembers", + vec![], + [ + 156u8, 11u8, 75u8, 79u8, 74u8, 79u8, 98u8, 89u8, 63u8, 83u8, 84u8, + 249u8, 177u8, 227u8, 113u8, 21u8, 26u8, 165u8, 129u8, 5u8, 129u8, + 152u8, 241u8, 85u8, 231u8, 139u8, 54u8, 102u8, 230u8, 203u8, 26u8, + 94u8, + ], + ) + } + #[doc = " The set of suspended members, with their old membership record."] + pub fn suspended_members( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::suspended_members::SuspendedMembers, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Society", + "SuspendedMembers", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 156u8, 11u8, 75u8, 79u8, 74u8, 79u8, 98u8, 89u8, 63u8, 83u8, 84u8, + 249u8, 177u8, 227u8, 113u8, 21u8, 26u8, 165u8, 129u8, 5u8, 129u8, + 152u8, 241u8, 85u8, 231u8, 139u8, 54u8, 102u8, 230u8, 203u8, 26u8, + 94u8, + ], + ) + } + #[doc = " The number of rounds which have passed."] + pub fn round_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::round_count::RoundCount, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Society", + "RoundCount", + vec![], + [ + 61u8, 189u8, 115u8, 157u8, 36u8, 97u8, 192u8, 96u8, 138u8, 168u8, + 222u8, 58u8, 117u8, 199u8, 176u8, 146u8, 232u8, 167u8, 52u8, 190u8, + 41u8, 11u8, 181u8, 214u8, 79u8, 183u8, 134u8, 86u8, 164u8, 47u8, 178u8, + 192u8, + ], + ) + } + #[doc = " The current bids, stored ordered by the value of the bid."] + pub fn bids( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::bids::Bids, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Society", + "Bids", + vec![], + [ + 220u8, 159u8, 208u8, 176u8, 118u8, 11u8, 21u8, 34u8, 3u8, 101u8, 233u8, + 212u8, 149u8, 156u8, 235u8, 135u8, 142u8, 220u8, 76u8, 99u8, 60u8, + 29u8, 204u8, 134u8, 53u8, 82u8, 80u8, 129u8, 208u8, 149u8, 96u8, 231u8, + ], + ) + } + pub fn candidates_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::candidates::Candidates, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Society", + "Candidates", + vec![], + [ + 52u8, 250u8, 201u8, 163u8, 0u8, 5u8, 156u8, 84u8, 96u8, 130u8, 228u8, + 205u8, 34u8, 75u8, 121u8, 209u8, 82u8, 15u8, 247u8, 21u8, 54u8, 177u8, + 138u8, 183u8, 64u8, 191u8, 209u8, 19u8, 38u8, 235u8, 129u8, 136u8, + ], + ) + } + pub fn candidates( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::candidates::Candidates, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Society", + "Candidates", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 52u8, 250u8, 201u8, 163u8, 0u8, 5u8, 156u8, 84u8, 96u8, 130u8, 228u8, + 205u8, 34u8, 75u8, 121u8, 209u8, 82u8, 15u8, 247u8, 21u8, 54u8, 177u8, + 138u8, 183u8, 64u8, 191u8, 209u8, 19u8, 38u8, 235u8, 129u8, 136u8, + ], + ) + } + #[doc = " The current skeptic."] + pub fn skeptic( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::skeptic::Skeptic, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Society", + "Skeptic", + vec![], + [ + 121u8, 103u8, 195u8, 11u8, 87u8, 129u8, 61u8, 69u8, 218u8, 17u8, 101u8, + 207u8, 249u8, 207u8, 18u8, 103u8, 253u8, 240u8, 132u8, 46u8, 47u8, + 27u8, 85u8, 194u8, 34u8, 145u8, 16u8, 208u8, 245u8, 192u8, 191u8, + 118u8, + ], + ) + } + #[doc = " Double map from Candidate -> Voter -> (Maybe) Vote."] + pub fn votes_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::votes::Votes, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Society", + "Votes", + vec![], + [ + 34u8, 201u8, 151u8, 130u8, 149u8, 159u8, 32u8, 201u8, 127u8, 178u8, + 77u8, 214u8, 73u8, 158u8, 11u8, 247u8, 188u8, 156u8, 146u8, 59u8, + 160u8, 7u8, 109u8, 7u8, 131u8, 212u8, 185u8, 92u8, 172u8, 219u8, 140u8, + 238u8, + ], + ) + } + #[doc = " Double map from Candidate -> Voter -> (Maybe) Vote."] + pub fn votes_iter1( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::votes::Votes, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Society", + "Votes", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 34u8, 201u8, 151u8, 130u8, 149u8, 159u8, 32u8, 201u8, 127u8, 178u8, + 77u8, 214u8, 73u8, 158u8, 11u8, 247u8, 188u8, 156u8, 146u8, 59u8, + 160u8, 7u8, 109u8, 7u8, 131u8, 212u8, 185u8, 92u8, 172u8, 219u8, 140u8, + 238u8, + ], + ) + } + #[doc = " Double map from Candidate -> Voter -> (Maybe) Vote."] + pub fn votes( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::votes::Votes, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Society", + "Votes", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 34u8, 201u8, 151u8, 130u8, 149u8, 159u8, 32u8, 201u8, 127u8, 178u8, + 77u8, 214u8, 73u8, 158u8, 11u8, 247u8, 188u8, 156u8, 146u8, 59u8, + 160u8, 7u8, 109u8, 7u8, 131u8, 212u8, 185u8, 92u8, 172u8, 219u8, 140u8, + 238u8, + ], + ) + } + #[doc = " Clear-cursor for Vote, map from Candidate -> (Maybe) Cursor."] + pub fn vote_clear_cursor_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::vote_clear_cursor::VoteClearCursor, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Society", + "VoteClearCursor", + vec![], + [ + 157u8, 200u8, 216u8, 228u8, 235u8, 144u8, 13u8, 111u8, 252u8, 213u8, + 209u8, 114u8, 157u8, 159u8, 47u8, 125u8, 45u8, 152u8, 27u8, 145u8, + 55u8, 108u8, 217u8, 16u8, 251u8, 98u8, 172u8, 108u8, 23u8, 136u8, 93u8, + 250u8, + ], + ) + } + #[doc = " Clear-cursor for Vote, map from Candidate -> (Maybe) Cursor."] + pub fn vote_clear_cursor( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::vote_clear_cursor::VoteClearCursor, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Society", + "VoteClearCursor", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 157u8, 200u8, 216u8, 228u8, 235u8, 144u8, 13u8, 111u8, 252u8, 213u8, + 209u8, 114u8, 157u8, 159u8, 47u8, 125u8, 45u8, 152u8, 27u8, 145u8, + 55u8, 108u8, 217u8, 16u8, 251u8, 98u8, 172u8, 108u8, 23u8, 136u8, 93u8, + 250u8, + ], + ) + } + #[doc = " At the end of the claim period, this contains the most recently approved members (along with"] + #[doc = " their bid and round ID) who is from the most recent round with the lowest bid. They will"] + #[doc = " become the new `Head`."] + pub fn next_head( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::next_head::NextHead, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Society", + "NextHead", + vec![], + [ + 64u8, 118u8, 253u8, 247u8, 56u8, 39u8, 156u8, 38u8, 150u8, 234u8, + 190u8, 11u8, 45u8, 236u8, 15u8, 181u8, 6u8, 165u8, 226u8, 99u8, 46u8, + 55u8, 254u8, 40u8, 2u8, 233u8, 22u8, 211u8, 133u8, 36u8, 177u8, 46u8, + ], + ) + } + #[doc = " The number of challenge rounds there have been. Used to identify stale DefenderVotes."] + pub fn challenge_round_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::challenge_round_count::ChallengeRoundCount, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Society", + "ChallengeRoundCount", + vec![], + [ + 111u8, 74u8, 218u8, 126u8, 43u8, 20u8, 75u8, 119u8, 166u8, 4u8, 56u8, + 24u8, 206u8, 10u8, 236u8, 17u8, 62u8, 124u8, 129u8, 39u8, 197u8, 157u8, + 153u8, 147u8, 68u8, 167u8, 220u8, 125u8, 44u8, 95u8, 82u8, 64u8, + ], + ) + } + #[doc = " The defending member currently being challenged, along with a running tally of votes."] + pub fn defending( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::defending::Defending, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Society", + "Defending", + vec![], + [ + 22u8, 165u8, 42u8, 82u8, 129u8, 214u8, 77u8, 50u8, 110u8, 35u8, 16u8, + 44u8, 222u8, 47u8, 238u8, 209u8, 171u8, 254u8, 208u8, 3u8, 2u8, 87u8, + 48u8, 20u8, 227u8, 127u8, 188u8, 84u8, 118u8, 207u8, 68u8, 247u8, + ], + ) + } + #[doc = " Votes for the defender, keyed by challenge round."] + pub fn defender_votes_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::defender_votes::DefenderVotes, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Society", + "DefenderVotes", + vec![], + [ + 208u8, 137u8, 138u8, 215u8, 215u8, 207u8, 236u8, 140u8, 175u8, 50u8, + 110u8, 228u8, 48u8, 174u8, 16u8, 59u8, 72u8, 108u8, 7u8, 183u8, 119u8, + 171u8, 125u8, 159u8, 93u8, 129u8, 186u8, 115u8, 208u8, 5u8, 194u8, + 199u8, + ], + ) + } + #[doc = " Votes for the defender, keyed by challenge round."] + pub fn defender_votes_iter1( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::defender_votes::DefenderVotes, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Society", + "DefenderVotes", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 208u8, 137u8, 138u8, 215u8, 215u8, 207u8, 236u8, 140u8, 175u8, 50u8, + 110u8, 228u8, 48u8, 174u8, 16u8, 59u8, 72u8, 108u8, 7u8, 183u8, 119u8, + 171u8, 125u8, 159u8, 93u8, 129u8, 186u8, 115u8, 208u8, 5u8, 194u8, + 199u8, + ], + ) + } + #[doc = " Votes for the defender, keyed by challenge round."] + pub fn defender_votes( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::defender_votes::DefenderVotes, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Society", + "DefenderVotes", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 208u8, 137u8, 138u8, 215u8, 215u8, 207u8, 236u8, 140u8, 175u8, 50u8, + 110u8, 228u8, 48u8, 174u8, 16u8, 59u8, 72u8, 108u8, 7u8, 183u8, 119u8, + 171u8, 125u8, 159u8, 93u8, 129u8, 186u8, 115u8, 208u8, 5u8, 194u8, + 199u8, ], ) } @@ -17117,14 +17798,26 @@ pub mod api { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - #[doc = " The maximum number of concurrent votes an account may have."] - #[doc = ""] - #[doc = " Also used to compute weight, an overly large value can lead to extrinsics with large"] - #[doc = " weight estimation: see `delegate` for instance."] - pub fn max_votes(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + #[doc = " The societies's pallet id"] + pub fn pallet_id( + &self, + ) -> ::subxt::constants::Address + { ::subxt::constants::Address::new_static( - "ConvictionVoting", - "MaxVotes", + "Society", + "PalletId", + [ + 56u8, 243u8, 53u8, 83u8, 154u8, 179u8, 170u8, 80u8, 133u8, 173u8, 61u8, + 161u8, 47u8, 225u8, 146u8, 21u8, 50u8, 229u8, 248u8, 27u8, 104u8, 58u8, + 129u8, 197u8, 102u8, 160u8, 168u8, 205u8, 154u8, 42u8, 217u8, 53u8, + ], + ) + } + #[doc = " The maximum number of strikes before a member gets funds slashed."] + pub fn grace_strikes(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Society", + "GraceStrikes", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, @@ -17133,16 +17826,94 @@ pub mod api { ], ) } - #[doc = " The minimum period of vote locking."] - #[doc = ""] - #[doc = " It should be no shorter than enactment period to ensure that in the case of an approval,"] - #[doc = " those successful voters are locked into the consequences that their votes entail."] - pub fn vote_locking_period( + #[doc = " The amount of incentive paid within each period. Doesn't include VoterTip."] + pub fn period_spend(&self) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Society", + "PeriodSpend", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[doc = " The number of blocks on which new candidates should be voted on. Together with"] + #[doc = " `ClaimPeriod`, this sums to the number of blocks between candidate intake periods."] + pub fn voting_period(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Society", + "VotingPeriod", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The number of blocks on which new candidates can claim their membership and be the"] + #[doc = " named head."] + pub fn claim_period(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Society", + "ClaimPeriod", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The maximum duration of the payout lock."] + pub fn max_lock_duration( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( - "ConvictionVoting", - "VoteLockingPeriod", + "Society", + "MaxLockDuration", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The number of blocks between membership challenges."] + pub fn challenge_period( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Society", + "ChallengePeriod", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The maximum number of payouts a member may have waiting unclaimed."] + pub fn max_payouts(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Society", + "MaxPayouts", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The maximum number of bids at once."] + pub fn max_bids(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Society", + "MaxBids", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, @@ -17154,17 +17925,67 @@ pub mod api { } } } - pub mod referenda { + pub mod recovery { use super::root_mod; use super::runtime_types; #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_referenda::pallet::Error; + pub type Error = runtime_types::pallet_recovery::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::pallet_referenda::pallet::Call; + pub type Call = runtime_types::pallet_recovery::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod alias_types { + use super::runtime_types; + pub mod as_recovered { + use super::runtime_types; + pub type Account = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Call = runtime_types::rococo_runtime::RuntimeCall; + } + pub mod set_recovered { + use super::runtime_types; + pub type Lost = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Rescuer = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + } + pub mod create_recovery { + use super::runtime_types; + pub type Friends = ::std::vec::Vec<::subxt::utils::AccountId32>; + pub type Threshold = ::core::primitive::u16; + pub type DelayPeriod = ::core::primitive::u32; + } + pub mod initiate_recovery { + use super::runtime_types; + pub type Account = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + } + pub mod vouch_recovery { + use super::runtime_types; + pub type Lost = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Rescuer = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + } + pub mod claim_recovery { + use super::runtime_types; + pub type Account = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + } + pub mod close_recovery { + use super::runtime_types; + pub type Rescuer = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + } + pub mod remove_recovery { + use super::runtime_types; + } + pub mod cancel_recovered { + use super::runtime_types; + pub type Account = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + } + } pub mod types { use super::runtime_types; #[derive( @@ -17177,23 +17998,15 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Submit { - pub proposal_origin: - ::std::boxed::Box, - pub proposal: runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::polkadot_runtime::RuntimeCall, - >, - pub enactment_moment: - runtime_types::frame_support::traits::schedule::DispatchTime< - ::core::primitive::u32, - >, + pub struct AsRecovered { + pub account: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub call: ::std::boxed::Box, } - impl ::subxt::blocks::StaticExtrinsic for Submit { - const PALLET: &'static str = "Referenda"; - const CALL: &'static str = "submit"; + impl ::subxt::blocks::StaticExtrinsic for AsRecovered { + const PALLET: &'static str = "Recovery"; + const CALL: &'static str = "as_recovered"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -17203,15 +18016,15 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct PlaceDecisionDeposit { - pub index: ::core::primitive::u32, + pub struct SetRecovered { + pub lost: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub rescuer: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, } - impl ::subxt::blocks::StaticExtrinsic for PlaceDecisionDeposit { - const PALLET: &'static str = "Referenda"; - const CALL: &'static str = "place_decision_deposit"; + impl ::subxt::blocks::StaticExtrinsic for SetRecovered { + const PALLET: &'static str = "Recovery"; + const CALL: &'static str = "set_recovered"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -17221,15 +18034,16 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct RefundDecisionDeposit { - pub index: ::core::primitive::u32, + pub struct CreateRecovery { + pub friends: ::std::vec::Vec<::subxt::utils::AccountId32>, + pub threshold: ::core::primitive::u16, + pub delay_period: ::core::primitive::u32, } - impl ::subxt::blocks::StaticExtrinsic for RefundDecisionDeposit { - const PALLET: &'static str = "Referenda"; - const CALL: &'static str = "refund_decision_deposit"; + impl ::subxt::blocks::StaticExtrinsic for CreateRecovery { + const PALLET: &'static str = "Recovery"; + const CALL: &'static str = "create_recovery"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -17239,15 +18053,14 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Cancel { - pub index: ::core::primitive::u32, + pub struct InitiateRecovery { + pub account: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, } - impl ::subxt::blocks::StaticExtrinsic for Cancel { - const PALLET: &'static str = "Referenda"; - const CALL: &'static str = "cancel"; + impl ::subxt::blocks::StaticExtrinsic for InitiateRecovery { + const PALLET: &'static str = "Recovery"; + const CALL: &'static str = "initiate_recovery"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -17257,15 +18070,15 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Kill { - pub index: ::core::primitive::u32, + pub struct VouchRecovery { + pub lost: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub rescuer: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, } - impl ::subxt::blocks::StaticExtrinsic for Kill { - const PALLET: &'static str = "Referenda"; - const CALL: &'static str = "kill"; + impl ::subxt::blocks::StaticExtrinsic for VouchRecovery { + const PALLET: &'static str = "Recovery"; + const CALL: &'static str = "vouch_recovery"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -17275,15 +18088,14 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct NudgeReferendum { - pub index: ::core::primitive::u32, + pub struct ClaimRecovery { + pub account: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, } - impl ::subxt::blocks::StaticExtrinsic for NudgeReferendum { - const PALLET: &'static str = "Referenda"; - const CALL: &'static str = "nudge_referendum"; + impl ::subxt::blocks::StaticExtrinsic for ClaimRecovery { + const PALLET: &'static str = "Recovery"; + const CALL: &'static str = "claim_recovery"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -17293,15 +18105,14 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct OneFewerDeciding { - pub track: ::core::primitive::u16, + pub struct CloseRecovery { + pub rescuer: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, } - impl ::subxt::blocks::StaticExtrinsic for OneFewerDeciding { - const PALLET: &'static str = "Referenda"; - const CALL: &'static str = "one_fewer_deciding"; + impl ::subxt::blocks::StaticExtrinsic for CloseRecovery { + const PALLET: &'static str = "Recovery"; + const CALL: &'static str = "close_recovery"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -17311,12 +18122,10 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct RefundSubmissionDeposit { - pub index: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for RefundSubmissionDeposit { - const PALLET: &'static str = "Referenda"; - const CALL: &'static str = "refund_submission_deposit"; + pub struct RemoveRecovery; + impl ::subxt::blocks::StaticExtrinsic for RemoveRecovery { + const PALLET: &'static str = "Recovery"; + const CALL: &'static str = "remove_recovery"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -17328,182 +18137,178 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SetMetadata { - pub index: ::core::primitive::u32, - pub maybe_hash: ::core::option::Option<::subxt::utils::H256>, + pub struct CancelRecovered { + pub account: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, } - impl ::subxt::blocks::StaticExtrinsic for SetMetadata { - const PALLET: &'static str = "Referenda"; - const CALL: &'static str = "set_metadata"; + impl ::subxt::blocks::StaticExtrinsic for CancelRecovered { + const PALLET: &'static str = "Recovery"; + const CALL: &'static str = "cancel_recovered"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::submit`]."] - pub fn submit( + #[doc = "See [`Pallet::as_recovered`]."] + pub fn as_recovered( &self, - proposal_origin: runtime_types::polkadot_runtime::OriginCaller, - proposal: runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::polkadot_runtime::RuntimeCall, - >, - enactment_moment: runtime_types::frame_support::traits::schedule::DispatchTime< - ::core::primitive::u32, - >, - ) -> ::subxt::tx::Payload { + account: alias_types::as_recovered::Account, + call: alias_types::as_recovered::Call, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Referenda", - "submit", - types::Submit { - proposal_origin: ::std::boxed::Box::new(proposal_origin), - proposal, - enactment_moment, + "Recovery", + "as_recovered", + types::AsRecovered { + account, + call: ::std::boxed::Box::new(call), }, [ - 27u8, 68u8, 3u8, 170u8, 74u8, 43u8, 11u8, 147u8, 35u8, 174u8, 234u8, - 118u8, 27u8, 235u8, 186u8, 21u8, 31u8, 242u8, 224u8, 26u8, 179u8, - 169u8, 177u8, 186u8, 16u8, 147u8, 222u8, 159u8, 249u8, 70u8, 7u8, - 248u8, + 226u8, 94u8, 208u8, 74u8, 163u8, 132u8, 180u8, 25u8, 34u8, 222u8, + 242u8, 194u8, 224u8, 188u8, 18u8, 229u8, 55u8, 248u8, 19u8, 244u8, + 182u8, 148u8, 138u8, 228u8, 2u8, 55u8, 50u8, 36u8, 32u8, 115u8, 147u8, + 149u8, ], ) } - #[doc = "See [`Pallet::place_decision_deposit`]."] - pub fn place_decision_deposit( + #[doc = "See [`Pallet::set_recovered`]."] + pub fn set_recovered( &self, - index: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + lost: alias_types::set_recovered::Lost, + rescuer: alias_types::set_recovered::Rescuer, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Referenda", - "place_decision_deposit", - types::PlaceDecisionDeposit { index }, + "Recovery", + "set_recovered", + types::SetRecovered { lost, rescuer }, [ - 247u8, 158u8, 55u8, 191u8, 188u8, 200u8, 3u8, 47u8, 20u8, 175u8, 86u8, - 203u8, 52u8, 253u8, 91u8, 131u8, 21u8, 213u8, 56u8, 68u8, 40u8, 84u8, - 184u8, 30u8, 9u8, 193u8, 63u8, 182u8, 178u8, 241u8, 247u8, 220u8, + 194u8, 147u8, 14u8, 197u8, 132u8, 185u8, 122u8, 81u8, 61u8, 14u8, 10u8, + 177u8, 74u8, 184u8, 150u8, 217u8, 246u8, 149u8, 26u8, 165u8, 196u8, + 83u8, 230u8, 195u8, 213u8, 40u8, 51u8, 180u8, 23u8, 90u8, 3u8, 14u8, ], ) } - #[doc = "See [`Pallet::refund_decision_deposit`]."] - pub fn refund_decision_deposit( + #[doc = "See [`Pallet::create_recovery`]."] + pub fn create_recovery( &self, - index: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + friends: alias_types::create_recovery::Friends, + threshold: alias_types::create_recovery::Threshold, + delay_period: alias_types::create_recovery::DelayPeriod, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Referenda", - "refund_decision_deposit", - types::RefundDecisionDeposit { index }, + "Recovery", + "create_recovery", + types::CreateRecovery { + friends, + threshold, + delay_period, + }, [ - 159u8, 19u8, 35u8, 216u8, 114u8, 105u8, 18u8, 42u8, 148u8, 151u8, - 136u8, 92u8, 117u8, 30u8, 29u8, 41u8, 238u8, 58u8, 195u8, 91u8, 115u8, - 135u8, 96u8, 99u8, 154u8, 233u8, 8u8, 249u8, 145u8, 165u8, 77u8, 164u8, + 36u8, 175u8, 11u8, 85u8, 95u8, 170u8, 58u8, 193u8, 102u8, 18u8, 117u8, + 27u8, 199u8, 214u8, 70u8, 47u8, 129u8, 130u8, 109u8, 242u8, 240u8, + 255u8, 120u8, 176u8, 40u8, 243u8, 175u8, 71u8, 3u8, 91u8, 186u8, 220u8, ], ) } - #[doc = "See [`Pallet::cancel`]."] - pub fn cancel( + #[doc = "See [`Pallet::initiate_recovery`]."] + pub fn initiate_recovery( &self, - index: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + account: alias_types::initiate_recovery::Account, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Referenda", - "cancel", - types::Cancel { index }, + "Recovery", + "initiate_recovery", + types::InitiateRecovery { account }, [ - 55u8, 206u8, 119u8, 156u8, 238u8, 165u8, 193u8, 73u8, 242u8, 13u8, - 212u8, 75u8, 136u8, 156u8, 151u8, 14u8, 35u8, 41u8, 156u8, 107u8, 60u8, - 190u8, 39u8, 216u8, 8u8, 74u8, 213u8, 130u8, 160u8, 131u8, 237u8, - 122u8, + 60u8, 243u8, 229u8, 176u8, 221u8, 52u8, 44u8, 224u8, 233u8, 14u8, 89u8, + 100u8, 174u8, 74u8, 38u8, 32u8, 97u8, 48u8, 53u8, 74u8, 30u8, 242u8, + 19u8, 114u8, 145u8, 74u8, 69u8, 125u8, 227u8, 214u8, 144u8, 58u8, ], ) } - #[doc = "See [`Pallet::kill`]."] - pub fn kill( + #[doc = "See [`Pallet::vouch_recovery`]."] + pub fn vouch_recovery( &self, - index: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + lost: alias_types::vouch_recovery::Lost, + rescuer: alias_types::vouch_recovery::Rescuer, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Referenda", - "kill", - types::Kill { index }, + "Recovery", + "vouch_recovery", + types::VouchRecovery { lost, rescuer }, [ - 50u8, 89u8, 57u8, 0u8, 87u8, 129u8, 113u8, 140u8, 179u8, 178u8, 126u8, - 198u8, 92u8, 92u8, 189u8, 64u8, 123u8, 232u8, 57u8, 227u8, 223u8, - 219u8, 73u8, 217u8, 179u8, 44u8, 210u8, 125u8, 180u8, 10u8, 143u8, - 48u8, + 97u8, 190u8, 60u8, 15u8, 191u8, 117u8, 1u8, 217u8, 62u8, 40u8, 210u8, + 1u8, 237u8, 111u8, 48u8, 196u8, 180u8, 154u8, 198u8, 12u8, 108u8, 42u8, + 6u8, 234u8, 2u8, 113u8, 163u8, 111u8, 80u8, 146u8, 6u8, 73u8, ], ) } - #[doc = "See [`Pallet::nudge_referendum`]."] - pub fn nudge_referendum( + #[doc = "See [`Pallet::claim_recovery`]."] + pub fn claim_recovery( &self, - index: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + account: alias_types::claim_recovery::Account, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Referenda", - "nudge_referendum", - types::NudgeReferendum { index }, + "Recovery", + "claim_recovery", + types::ClaimRecovery { account }, [ - 75u8, 99u8, 172u8, 30u8, 170u8, 150u8, 211u8, 229u8, 249u8, 128u8, - 194u8, 246u8, 100u8, 142u8, 193u8, 184u8, 232u8, 81u8, 29u8, 17u8, - 99u8, 91u8, 236u8, 85u8, 230u8, 226u8, 57u8, 115u8, 45u8, 170u8, 54u8, - 213u8, + 41u8, 47u8, 162u8, 88u8, 13u8, 166u8, 130u8, 146u8, 218u8, 162u8, + 166u8, 33u8, 89u8, 129u8, 177u8, 178u8, 68u8, 128u8, 161u8, 229u8, + 207u8, 3u8, 57u8, 35u8, 211u8, 208u8, 74u8, 155u8, 183u8, 173u8, 74u8, + 56u8, ], ) } - #[doc = "See [`Pallet::one_fewer_deciding`]."] - pub fn one_fewer_deciding( + #[doc = "See [`Pallet::close_recovery`]."] + pub fn close_recovery( &self, - track: ::core::primitive::u16, - ) -> ::subxt::tx::Payload { + rescuer: alias_types::close_recovery::Rescuer, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Referenda", - "one_fewer_deciding", - types::OneFewerDeciding { track }, + "Recovery", + "close_recovery", + types::CloseRecovery { rescuer }, [ - 15u8, 84u8, 79u8, 231u8, 21u8, 239u8, 244u8, 143u8, 183u8, 215u8, - 181u8, 25u8, 225u8, 195u8, 95u8, 171u8, 17u8, 156u8, 182u8, 128u8, - 111u8, 40u8, 151u8, 102u8, 196u8, 55u8, 36u8, 212u8, 89u8, 190u8, - 131u8, 167u8, + 161u8, 178u8, 117u8, 209u8, 119u8, 164u8, 135u8, 41u8, 25u8, 108u8, + 194u8, 175u8, 221u8, 65u8, 184u8, 137u8, 171u8, 97u8, 204u8, 61u8, + 159u8, 39u8, 192u8, 53u8, 246u8, 69u8, 113u8, 16u8, 170u8, 232u8, + 163u8, 10u8, ], ) } - #[doc = "See [`Pallet::refund_submission_deposit`]."] - pub fn refund_submission_deposit( - &self, - index: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + #[doc = "See [`Pallet::remove_recovery`]."] + pub fn remove_recovery(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Referenda", - "refund_submission_deposit", - types::RefundSubmissionDeposit { index }, + "Recovery", + "remove_recovery", + types::RemoveRecovery {}, [ - 20u8, 217u8, 115u8, 6u8, 1u8, 60u8, 54u8, 136u8, 35u8, 41u8, 38u8, - 23u8, 85u8, 100u8, 141u8, 126u8, 30u8, 160u8, 61u8, 46u8, 134u8, 98u8, - 82u8, 38u8, 211u8, 124u8, 208u8, 222u8, 210u8, 10u8, 155u8, 122u8, + 11u8, 38u8, 133u8, 172u8, 212u8, 252u8, 57u8, 216u8, 42u8, 202u8, + 206u8, 91u8, 115u8, 91u8, 242u8, 123u8, 95u8, 196u8, 172u8, 243u8, + 164u8, 1u8, 69u8, 180u8, 40u8, 68u8, 208u8, 221u8, 161u8, 250u8, 8u8, + 72u8, ], ) } - #[doc = "See [`Pallet::set_metadata`]."] - pub fn set_metadata( + #[doc = "See [`Pallet::cancel_recovered`]."] + pub fn cancel_recovered( &self, - index: ::core::primitive::u32, - maybe_hash: ::core::option::Option<::subxt::utils::H256>, - ) -> ::subxt::tx::Payload { + account: alias_types::cancel_recovered::Account, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Referenda", - "set_metadata", - types::SetMetadata { index, maybe_hash }, + "Recovery", + "cancel_recovered", + types::CancelRecovered { account }, [ - 207u8, 29u8, 146u8, 233u8, 219u8, 205u8, 88u8, 118u8, 106u8, 61u8, - 124u8, 101u8, 2u8, 41u8, 169u8, 70u8, 114u8, 189u8, 162u8, 118u8, 1u8, - 108u8, 234u8, 98u8, 245u8, 245u8, 183u8, 126u8, 89u8, 13u8, 112u8, - 88u8, + 100u8, 222u8, 80u8, 226u8, 187u8, 188u8, 111u8, 58u8, 190u8, 5u8, + 178u8, 144u8, 37u8, 98u8, 71u8, 145u8, 28u8, 248u8, 222u8, 188u8, 53u8, + 21u8, 127u8, 176u8, 249u8, 166u8, 250u8, 59u8, 170u8, 33u8, 251u8, + 239u8, ], ) } } } - #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_referenda::pallet::Event; + #[doc = "Events type."] + pub type Event = runtime_types::pallet_recovery::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -17516,215 +18321,13 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A referendum has been submitted."] - pub struct Submitted { - pub index: ::core::primitive::u32, - pub track: ::core::primitive::u16, - pub proposal: runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::polkadot_runtime::RuntimeCall, - >, - } - impl ::subxt::events::StaticEvent for Submitted { - const PALLET: &'static str = "Referenda"; - const EVENT: &'static str = "Submitted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The decision deposit has been placed."] - pub struct DecisionDepositPlaced { - pub index: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for DecisionDepositPlaced { - const PALLET: &'static str = "Referenda"; - const EVENT: &'static str = "DecisionDepositPlaced"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The decision deposit has been refunded."] - pub struct DecisionDepositRefunded { - pub index: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for DecisionDepositRefunded { - const PALLET: &'static str = "Referenda"; - const EVENT: &'static str = "DecisionDepositRefunded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A deposit has been slashaed."] - pub struct DepositSlashed { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for DepositSlashed { - const PALLET: &'static str = "Referenda"; - const EVENT: &'static str = "DepositSlashed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A referendum has moved into the deciding phase."] - pub struct DecisionStarted { - pub index: ::core::primitive::u32, - pub track: ::core::primitive::u16, - pub proposal: runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::polkadot_runtime::RuntimeCall, - >, - pub tally: - runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>, - } - impl ::subxt::events::StaticEvent for DecisionStarted { - const PALLET: &'static str = "Referenda"; - const EVENT: &'static str = "DecisionStarted"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ConfirmStarted { - pub index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for ConfirmStarted { - const PALLET: &'static str = "Referenda"; - const EVENT: &'static str = "ConfirmStarted"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ConfirmAborted { - pub index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for ConfirmAborted { - const PALLET: &'static str = "Referenda"; - const EVENT: &'static str = "ConfirmAborted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A referendum has ended its confirmation phase and is ready for approval."] - pub struct Confirmed { - pub index: ::core::primitive::u32, - pub tally: - runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>, - } - impl ::subxt::events::StaticEvent for Confirmed { - const PALLET: &'static str = "Referenda"; - const EVENT: &'static str = "Confirmed"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A referendum has been approved and its proposal has been scheduled."] - pub struct Approved { - pub index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Approved { - const PALLET: &'static str = "Referenda"; - const EVENT: &'static str = "Approved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A proposal has been rejected by referendum."] - pub struct Rejected { - pub index: ::core::primitive::u32, - pub tally: - runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>, - } - impl ::subxt::events::StaticEvent for Rejected { - const PALLET: &'static str = "Referenda"; - const EVENT: &'static str = "Rejected"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A referendum has been timed out without being decided."] - pub struct TimedOut { - pub index: ::core::primitive::u32, - pub tally: - runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>, + #[doc = "A recovery process has been set up for an account."] + pub struct RecoveryCreated { + pub account: ::subxt::utils::AccountId32, } - impl ::subxt::events::StaticEvent for TimedOut { - const PALLET: &'static str = "Referenda"; - const EVENT: &'static str = "TimedOut"; + impl ::subxt::events::StaticEvent for RecoveryCreated { + const PALLET: &'static str = "Recovery"; + const EVENT: &'static str = "RecoveryCreated"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -17736,15 +18339,14 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A referendum has been cancelled."] - pub struct Cancelled { - pub index: ::core::primitive::u32, - pub tally: - runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>, + #[doc = "A recovery process has been initiated for lost account by rescuer account."] + pub struct RecoveryInitiated { + pub lost_account: ::subxt::utils::AccountId32, + pub rescuer_account: ::subxt::utils::AccountId32, } - impl ::subxt::events::StaticEvent for Cancelled { - const PALLET: &'static str = "Referenda"; - const EVENT: &'static str = "Cancelled"; + impl ::subxt::events::StaticEvent for RecoveryInitiated { + const PALLET: &'static str = "Recovery"; + const EVENT: &'static str = "RecoveryInitiated"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -17756,15 +18358,15 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A referendum has been killed."] - pub struct Killed { - pub index: ::core::primitive::u32, - pub tally: - runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>, + #[doc = "A recovery process for lost account by rescuer account has been vouched for by sender."] + pub struct RecoveryVouched { + pub lost_account: ::subxt::utils::AccountId32, + pub rescuer_account: ::subxt::utils::AccountId32, + pub sender: ::subxt::utils::AccountId32, } - impl ::subxt::events::StaticEvent for Killed { - const PALLET: &'static str = "Referenda"; - const EVENT: &'static str = "Killed"; + impl ::subxt::events::StaticEvent for RecoveryVouched { + const PALLET: &'static str = "Recovery"; + const EVENT: &'static str = "RecoveryVouched"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -17776,15 +18378,14 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The submission deposit has been refunded."] - pub struct SubmissionDepositRefunded { - pub index: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, + #[doc = "A recovery process for lost account by rescuer account has been closed."] + pub struct RecoveryClosed { + pub lost_account: ::subxt::utils::AccountId32, + pub rescuer_account: ::subxt::utils::AccountId32, } - impl ::subxt::events::StaticEvent for SubmissionDepositRefunded { - const PALLET: &'static str = "Referenda"; - const EVENT: &'static str = "SubmissionDepositRefunded"; + impl ::subxt::events::StaticEvent for RecoveryClosed { + const PALLET: &'static str = "Recovery"; + const EVENT: &'static str = "RecoveryClosed"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -17796,14 +18397,14 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Metadata for a referendum has been set."] - pub struct MetadataSet { - pub index: ::core::primitive::u32, - pub hash: ::subxt::utils::H256, + #[doc = "Lost account has been successfully recovered by rescuer account."] + pub struct AccountRecovered { + pub lost_account: ::subxt::utils::AccountId32, + pub rescuer_account: ::subxt::utils::AccountId32, } - impl ::subxt::events::StaticEvent for MetadataSet { - const PALLET: &'static str = "Referenda"; - const EVENT: &'static str = "MetadataSet"; + impl ::subxt::events::StaticEvent for AccountRecovered { + const PALLET: &'static str = "Recovery"; + const EVENT: &'static str = "AccountRecovered"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -17815,273 +18416,220 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Metadata for a referendum has been cleared."] - pub struct MetadataCleared { - pub index: ::core::primitive::u32, - pub hash: ::subxt::utils::H256, + #[doc = "A recovery process has been removed for an account."] + pub struct RecoveryRemoved { + pub lost_account: ::subxt::utils::AccountId32, } - impl ::subxt::events::StaticEvent for MetadataCleared { - const PALLET: &'static str = "Referenda"; - const EVENT: &'static str = "MetadataCleared"; + impl ::subxt::events::StaticEvent for RecoveryRemoved { + const PALLET: &'static str = "Recovery"; + const EVENT: &'static str = "RecoveryRemoved"; } } pub mod storage { use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod recoverable { + use super::runtime_types; + pub type Recoverable = runtime_types::pallet_recovery::RecoveryConfig< + ::core::primitive::u32, + ::core::primitive::u128, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::subxt::utils::AccountId32, + >, + >; + } + pub mod active_recoveries { + use super::runtime_types; + pub type ActiveRecoveries = runtime_types::pallet_recovery::ActiveRecovery< + ::core::primitive::u32, + ::core::primitive::u128, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::subxt::utils::AccountId32, + >, + >; + } + pub mod proxy { + use super::runtime_types; + pub type Proxy = ::subxt::utils::AccountId32; + } + } pub struct StorageApi; impl StorageApi { - #[doc = " The next free referendum index, aka the number of referenda started so far."] - pub fn referendum_count( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Referenda", - "ReferendumCount", - vec![], - [ - 64u8, 145u8, 232u8, 153u8, 121u8, 87u8, 128u8, 253u8, 170u8, 192u8, - 139u8, 18u8, 0u8, 33u8, 243u8, 11u8, 238u8, 222u8, 244u8, 5u8, 247u8, - 198u8, 149u8, 31u8, 122u8, 208u8, 86u8, 179u8, 166u8, 167u8, 93u8, - 67u8, - ], - ) - } - #[doc = " Information concerning any given referendum."] - pub fn referendum_info_for_iter( + #[doc = " The set of recoverable accounts and their recovery configuration."] + pub fn recoverable_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_referenda::types::ReferendumInfo< - ::core::primitive::u16, - runtime_types::polkadot_runtime::OriginCaller, - ::core::primitive::u32, - runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::polkadot_runtime::RuntimeCall, - >, - ::core::primitive::u128, - runtime_types::pallet_conviction_voting::types::Tally< - ::core::primitive::u128, - >, - ::subxt::utils::AccountId32, - (::core::primitive::u32, ::core::primitive::u32), - >, + alias_types::recoverable::Recoverable, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Referenda", - "ReferendumInfoFor", + "Recovery", + "Recoverable", vec![], [ - 213u8, 12u8, 72u8, 151u8, 25u8, 196u8, 73u8, 199u8, 83u8, 109u8, 28u8, - 164u8, 121u8, 236u8, 136u8, 242u8, 124u8, 45u8, 112u8, 158u8, 132u8, - 152u8, 217u8, 84u8, 241u8, 115u8, 146u8, 203u8, 225u8, 186u8, 116u8, - 80u8, + 112u8, 7u8, 56u8, 46u8, 138u8, 197u8, 63u8, 234u8, 140u8, 123u8, 145u8, + 106u8, 189u8, 190u8, 247u8, 61u8, 250u8, 67u8, 107u8, 42u8, 170u8, + 79u8, 54u8, 168u8, 33u8, 214u8, 91u8, 227u8, 5u8, 107u8, 38u8, 26u8, ], ) } - #[doc = " Information concerning any given referendum."] - pub fn referendum_info_for( + #[doc = " The set of recoverable accounts and their recovery configuration."] + pub fn recoverable( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_referenda::types::ReferendumInfo< - ::core::primitive::u16, - runtime_types::polkadot_runtime::OriginCaller, - ::core::primitive::u32, - runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::polkadot_runtime::RuntimeCall, - >, - ::core::primitive::u128, - runtime_types::pallet_conviction_voting::types::Tally< - ::core::primitive::u128, - >, - ::subxt::utils::AccountId32, - (::core::primitive::u32, ::core::primitive::u32), - >, + alias_types::recoverable::Recoverable, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( - "Referenda", - "ReferendumInfoFor", + "Recovery", + "Recoverable", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 213u8, 12u8, 72u8, 151u8, 25u8, 196u8, 73u8, 199u8, 83u8, 109u8, 28u8, - 164u8, 121u8, 236u8, 136u8, 242u8, 124u8, 45u8, 112u8, 158u8, 132u8, - 152u8, 217u8, 84u8, 241u8, 115u8, 146u8, 203u8, 225u8, 186u8, 116u8, - 80u8, + 112u8, 7u8, 56u8, 46u8, 138u8, 197u8, 63u8, 234u8, 140u8, 123u8, 145u8, + 106u8, 189u8, 190u8, 247u8, 61u8, 250u8, 67u8, 107u8, 42u8, 170u8, + 79u8, 54u8, 168u8, 33u8, 214u8, 91u8, 227u8, 5u8, 107u8, 38u8, 26u8, ], ) } - #[doc = " The sorted list of referenda ready to be decided but not yet being decided, ordered by"] - #[doc = " conviction-weighted approvals."] + #[doc = " Active recovery attempts."] #[doc = ""] - #[doc = " This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`."] - pub fn track_queue_iter( + #[doc = " First account is the account to be recovered, and the second account"] + #[doc = " is the user trying to recover the account."] + pub fn active_recoveries_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec<( - ::core::primitive::u32, - ::core::primitive::u128, - )>, + alias_types::active_recoveries::ActiveRecoveries, + (), (), - ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Referenda", - "TrackQueue", + "Recovery", + "ActiveRecoveries", vec![], [ - 125u8, 59u8, 111u8, 68u8, 27u8, 236u8, 82u8, 55u8, 83u8, 159u8, 105u8, - 20u8, 241u8, 118u8, 58u8, 141u8, 103u8, 60u8, 246u8, 49u8, 121u8, - 183u8, 7u8, 203u8, 225u8, 67u8, 132u8, 79u8, 150u8, 107u8, 71u8, 89u8, + 104u8, 252u8, 28u8, 142u8, 48u8, 26u8, 91u8, 201u8, 184u8, 163u8, + 180u8, 197u8, 189u8, 71u8, 144u8, 88u8, 225u8, 13u8, 183u8, 84u8, + 244u8, 41u8, 164u8, 212u8, 153u8, 247u8, 191u8, 25u8, 162u8, 25u8, + 91u8, 123u8, ], ) } - #[doc = " The sorted list of referenda ready to be decided but not yet being decided, ordered by"] - #[doc = " conviction-weighted approvals."] + #[doc = " Active recovery attempts."] #[doc = ""] - #[doc = " This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`."] - pub fn track_queue( + #[doc = " First account is the account to be recovered, and the second account"] + #[doc = " is the user trying to recover the account."] + pub fn active_recoveries_iter1( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u16>, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec<( - ::core::primitive::u32, - ::core::primitive::u128, - )>, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, + alias_types::active_recoveries::ActiveRecoveries, (), + (), + ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Referenda", - "TrackQueue", + "Recovery", + "ActiveRecoveries", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 125u8, 59u8, 111u8, 68u8, 27u8, 236u8, 82u8, 55u8, 83u8, 159u8, 105u8, - 20u8, 241u8, 118u8, 58u8, 141u8, 103u8, 60u8, 246u8, 49u8, 121u8, - 183u8, 7u8, 203u8, 225u8, 67u8, 132u8, 79u8, 150u8, 107u8, 71u8, 89u8, + 104u8, 252u8, 28u8, 142u8, 48u8, 26u8, 91u8, 201u8, 184u8, 163u8, + 180u8, 197u8, 189u8, 71u8, 144u8, 88u8, 225u8, 13u8, 183u8, 84u8, + 244u8, 41u8, 164u8, 212u8, 153u8, 247u8, 191u8, 25u8, 162u8, 25u8, + 91u8, 123u8, ], ) } - #[doc = " The number of referenda being decided currently."] - pub fn deciding_count_iter( + #[doc = " Active recovery attempts."] + #[doc = ""] + #[doc = " First account is the account to be recovered, and the second account"] + #[doc = " is the user trying to recover the account."] + pub fn active_recoveries( &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - (), - ::subxt::storage::address::Yes, + alias_types::active_recoveries::ActiveRecoveries, ::subxt::storage::address::Yes, + (), + (), > { ::subxt::storage::address::Address::new_static( - "Referenda", - "DecidingCount", - vec![], + "Recovery", + "ActiveRecoveries", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], [ - 203u8, 89u8, 158u8, 179u8, 194u8, 82u8, 248u8, 162u8, 93u8, 140u8, - 146u8, 51u8, 110u8, 232u8, 51u8, 1u8, 128u8, 212u8, 199u8, 14u8, 182u8, - 103u8, 47u8, 252u8, 126u8, 108u8, 166u8, 69u8, 252u8, 179u8, 126u8, - 245u8, + 104u8, 252u8, 28u8, 142u8, 48u8, 26u8, 91u8, 201u8, 184u8, 163u8, + 180u8, 197u8, 189u8, 71u8, 144u8, 88u8, 225u8, 13u8, 183u8, 84u8, + 244u8, 41u8, 164u8, 212u8, 153u8, 247u8, 191u8, 25u8, 162u8, 25u8, + 91u8, 123u8, ], ) } - #[doc = " The number of referenda being decided currently."] - pub fn deciding_count( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u16>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Referenda", - "DecidingCount", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 203u8, 89u8, 158u8, 179u8, 194u8, 82u8, 248u8, 162u8, 93u8, 140u8, - 146u8, 51u8, 110u8, 232u8, 51u8, 1u8, 128u8, 212u8, 199u8, 14u8, 182u8, - 103u8, 47u8, 252u8, 126u8, 108u8, 166u8, 69u8, 252u8, 179u8, 126u8, - 245u8, - ], - ) - } - #[doc = " The metadata is a general information concerning the referendum."] - #[doc = " The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON"] - #[doc = " dump or IPFS hash of a JSON file."] + #[doc = " The list of allowed proxy accounts."] #[doc = ""] - #[doc = " Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)"] - #[doc = " large preimages."] - pub fn metadata_of_iter( + #[doc = " Map from the user who can access it to the recovered account."] + pub fn proxy_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::subxt::utils::H256, + alias_types::proxy::Proxy, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Referenda", - "MetadataOf", + "Recovery", + "Proxy", vec![], [ - 159u8, 250u8, 56u8, 189u8, 247u8, 165u8, 206u8, 166u8, 91u8, 139u8, - 124u8, 164u8, 25u8, 246u8, 199u8, 36u8, 159u8, 56u8, 227u8, 136u8, 4u8, - 45u8, 193u8, 72u8, 200u8, 164u8, 39u8, 207u8, 224u8, 124u8, 191u8, - 110u8, + 161u8, 242u8, 17u8, 183u8, 161u8, 47u8, 87u8, 110u8, 201u8, 177u8, + 199u8, 157u8, 30u8, 131u8, 49u8, 89u8, 182u8, 86u8, 152u8, 19u8, 199u8, + 33u8, 12u8, 138u8, 51u8, 215u8, 130u8, 5u8, 251u8, 115u8, 69u8, 159u8, ], ) } - #[doc = " The metadata is a general information concerning the referendum."] - #[doc = " The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON"] - #[doc = " dump or IPFS hash of a JSON file."] + #[doc = " The list of allowed proxy accounts."] #[doc = ""] - #[doc = " Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)"] - #[doc = " large preimages."] - pub fn metadata_of( + #[doc = " Map from the user who can access it to the recovered account."] + pub fn proxy( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::subxt::utils::H256, + alias_types::proxy::Proxy, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( - "Referenda", - "MetadataOf", + "Recovery", + "Proxy", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 159u8, 250u8, 56u8, 189u8, 247u8, 165u8, 206u8, 166u8, 91u8, 139u8, - 124u8, 164u8, 25u8, 246u8, 199u8, 36u8, 159u8, 56u8, 227u8, 136u8, 4u8, - 45u8, 193u8, 72u8, 200u8, 164u8, 39u8, 207u8, 224u8, 124u8, 191u8, - 110u8, + 161u8, 242u8, 17u8, 183u8, 161u8, 47u8, 87u8, 110u8, 201u8, 177u8, + 199u8, 157u8, 30u8, 131u8, 49u8, 89u8, 182u8, 86u8, 152u8, 19u8, 199u8, + 33u8, 12u8, 138u8, 51u8, 215u8, 130u8, 5u8, 251u8, 115u8, 69u8, 159u8, ], ) } @@ -18091,13 +18639,16 @@ pub mod api { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - #[doc = " The minimum amount to be used as a deposit for a public referendum proposal."] - pub fn submission_deposit( + #[doc = " The base amount of currency needed to reserve for creating a recovery configuration."] + #[doc = ""] + #[doc = " This is held for an additional storage item whose value size is"] + #[doc = " `2 + sizeof(BlockNumber, Balance)` bytes."] + pub fn config_deposit_base( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( - "Referenda", - "SubmissionDeposit", + "Recovery", + "ConfigDepositBase", [ 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, @@ -18105,44 +18656,34 @@ pub mod api { ], ) } - #[doc = " Maximum size of the referendum queue for a single track."] - pub fn max_queued(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Referenda", - "MaxQueued", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The number of blocks after submission that a referendum must begin being decided by."] - #[doc = " Once this passes, then anyone may cancel the referendum."] - pub fn undeciding_timeout( + #[doc = " The amount of currency needed per additional user when creating a recovery"] + #[doc = " configuration."] + #[doc = ""] + #[doc = " This is held for adding `sizeof(AccountId)` bytes more into a pre-existing storage"] + #[doc = " value."] + pub fn friend_deposit_factor( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( - "Referenda", - "UndecidingTimeout", + "Recovery", + "FriendDepositFactor", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, ], ) } - #[doc = " Quantization level for the referendum wakeup scheduler. A higher number will result in"] - #[doc = " fewer storage reads/writes needed for smaller voters, but also result in delays to the"] - #[doc = " automatic referendum status changes. Explicit servicing instructions are unaffected."] - pub fn alarm_interval( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + #[doc = " The maximum amount of friends allowed in a recovery configuration."] + #[doc = ""] + #[doc = " NOTE: The threshold programmed in this Pallet uses u16, so it does"] + #[doc = " not really make sense to have a limit here greater than u16::MAX."] + #[doc = " But also, that is a lot more than you should probably set this value"] + #[doc = " to anyway..."] + pub fn max_friends(&self) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( - "Referenda", - "AlarmInterval", + "Recovery", + "MaxFriends", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, @@ -18151,43 +18692,77 @@ pub mod api { ], ) } - #[doc = " Information concerning the different referendum tracks."] - pub fn tracks( + #[doc = " The base amount of currency needed to reserve for starting a recovery."] + #[doc = ""] + #[doc = " This is primarily held for deterring malicious recovery attempts, and should"] + #[doc = " have a value large enough that a bad actor would choose not to place this"] + #[doc = " deposit. It also acts to fund additional storage item whose value size is"] + #[doc = " `sizeof(BlockNumber, Balance + T * AccountId)` bytes. Where T is a configurable"] + #[doc = " threshold."] + pub fn recovery_deposit( &self, - ) -> ::subxt::constants::Address< - ::std::vec::Vec<( - ::core::primitive::u16, - runtime_types::pallet_referenda::types::TrackInfo< - ::core::primitive::u128, - ::core::primitive::u32, - >, - )>, - > { + ) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( - "Referenda", - "Tracks", + "Recovery", + "RecoveryDeposit", [ - 35u8, 226u8, 207u8, 234u8, 184u8, 139u8, 187u8, 184u8, 128u8, 199u8, - 227u8, 15u8, 31u8, 196u8, 5u8, 207u8, 138u8, 174u8, 130u8, 201u8, - 200u8, 113u8, 86u8, 93u8, 221u8, 243u8, 229u8, 24u8, 18u8, 150u8, 56u8, - 159u8, + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, ], ) } } } } - pub mod whitelist { + pub mod vesting { use super::root_mod; use super::runtime_types; - #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_whitelist::pallet::Error; + #[doc = "Error for the vesting pallet."] + pub type Error = runtime_types::pallet_vesting::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::pallet_whitelist::pallet::Call; + pub type Call = runtime_types::pallet_vesting::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod alias_types { + use super::runtime_types; + pub mod vest { + use super::runtime_types; + } + pub mod vest_other { + use super::runtime_types; + pub type Target = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + } + pub mod vested_transfer { + use super::runtime_types; + pub type Target = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Schedule = runtime_types::pallet_vesting::vesting_info::VestingInfo< + ::core::primitive::u128, + ::core::primitive::u32, + >; + } + pub mod force_vested_transfer { + use super::runtime_types; + pub type Source = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Target = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Schedule = runtime_types::pallet_vesting::vesting_info::VestingInfo< + ::core::primitive::u128, + ::core::primitive::u32, + >; + } + pub mod merge_schedules { + use super::runtime_types; + pub type Schedule1Index = ::core::primitive::u32; + pub type Schedule2Index = ::core::primitive::u32; + } + pub mod force_remove_vesting_schedule { + use super::runtime_types; + pub type Target = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type ScheduleIndex = ::core::primitive::u32; + } + } pub mod types { use super::runtime_types; #[derive( @@ -18200,12 +18775,27 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct WhitelistCall { - pub call_hash: ::subxt::utils::H256, + pub struct Vest; + impl ::subxt::blocks::StaticExtrinsic for Vest { + const PALLET: &'static str = "Vesting"; + const CALL: &'static str = "vest"; } - impl ::subxt::blocks::StaticExtrinsic for WhitelistCall { - const PALLET: &'static str = "Whitelist"; - const CALL: &'static str = "whitelist_call"; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct VestOther { + pub target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + } + impl ::subxt::blocks::StaticExtrinsic for VestOther { + const PALLET: &'static str = "Vesting"; + const CALL: &'static str = "vest_other"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -18217,12 +18807,16 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct RemoveWhitelistedCall { - pub call_hash: ::subxt::utils::H256, + pub struct VestedTransfer { + pub target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub schedule: runtime_types::pallet_vesting::vesting_info::VestingInfo< + ::core::primitive::u128, + ::core::primitive::u32, + >, } - impl ::subxt::blocks::StaticExtrinsic for RemoveWhitelistedCall { - const PALLET: &'static str = "Whitelist"; - const CALL: &'static str = "remove_whitelisted_call"; + impl ::subxt::blocks::StaticExtrinsic for VestedTransfer { + const PALLET: &'static str = "Vesting"; + const CALL: &'static str = "vested_transfer"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -18234,14 +18828,17 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct DispatchWhitelistedCall { - pub call_hash: ::subxt::utils::H256, - pub call_encoded_len: ::core::primitive::u32, - pub call_weight_witness: runtime_types::sp_weights::weight_v2::Weight, + pub struct ForceVestedTransfer { + pub source: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub schedule: runtime_types::pallet_vesting::vesting_info::VestingInfo< + ::core::primitive::u128, + ::core::primitive::u32, + >, } - impl ::subxt::blocks::StaticExtrinsic for DispatchWhitelistedCall { - const PALLET: &'static str = "Whitelist"; - const CALL: &'static str = "dispatch_whitelisted_call"; + impl ::subxt::blocks::StaticExtrinsic for ForceVestedTransfer { + const PALLET: &'static str = "Vesting"; + const CALL: &'static str = "force_vested_transfer"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -18253,97 +18850,149 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct DispatchWhitelistedCallWithPreimage { - pub call: ::std::boxed::Box, + pub struct MergeSchedules { + pub schedule1_index: ::core::primitive::u32, + pub schedule2_index: ::core::primitive::u32, } - impl ::subxt::blocks::StaticExtrinsic for DispatchWhitelistedCallWithPreimage { - const PALLET: &'static str = "Whitelist"; - const CALL: &'static str = "dispatch_whitelisted_call_with_preimage"; + impl ::subxt::blocks::StaticExtrinsic for MergeSchedules { + const PALLET: &'static str = "Vesting"; + const CALL: &'static str = "merge_schedules"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ForceRemoveVestingSchedule { + pub target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub schedule_index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for ForceRemoveVestingSchedule { + const PALLET: &'static str = "Vesting"; + const CALL: &'static str = "force_remove_vesting_schedule"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::whitelist_call`]."] - pub fn whitelist_call( + #[doc = "See [`Pallet::vest`]."] + pub fn vest(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Vesting", + "vest", + types::Vest {}, + [ + 149u8, 89u8, 178u8, 148u8, 127u8, 127u8, 155u8, 60u8, 114u8, 126u8, + 204u8, 123u8, 166u8, 70u8, 104u8, 208u8, 186u8, 69u8, 139u8, 181u8, + 151u8, 154u8, 235u8, 161u8, 191u8, 35u8, 111u8, 60u8, 21u8, 165u8, + 44u8, 122u8, + ], + ) + } + #[doc = "See [`Pallet::vest_other`]."] + pub fn vest_other( &self, - call_hash: ::subxt::utils::H256, - ) -> ::subxt::tx::Payload { + target: alias_types::vest_other::Target, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Whitelist", - "whitelist_call", - types::WhitelistCall { call_hash }, + "Vesting", + "vest_other", + types::VestOther { target }, [ - 121u8, 165u8, 49u8, 37u8, 127u8, 38u8, 126u8, 213u8, 115u8, 148u8, - 122u8, 211u8, 24u8, 91u8, 147u8, 27u8, 87u8, 210u8, 84u8, 104u8, 229u8, - 155u8, 133u8, 30u8, 34u8, 249u8, 107u8, 110u8, 31u8, 191u8, 128u8, - 28u8, + 238u8, 92u8, 25u8, 149u8, 27u8, 211u8, 196u8, 31u8, 211u8, 28u8, 241u8, + 30u8, 128u8, 35u8, 0u8, 227u8, 202u8, 215u8, 186u8, 69u8, 216u8, 110u8, + 199u8, 120u8, 134u8, 141u8, 176u8, 224u8, 234u8, 42u8, 152u8, 128u8, ], ) } - #[doc = "See [`Pallet::remove_whitelisted_call`]."] - pub fn remove_whitelisted_call( + #[doc = "See [`Pallet::vested_transfer`]."] + pub fn vested_transfer( &self, - call_hash: ::subxt::utils::H256, - ) -> ::subxt::tx::Payload { + target: alias_types::vested_transfer::Target, + schedule: alias_types::vested_transfer::Schedule, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Whitelist", - "remove_whitelisted_call", - types::RemoveWhitelistedCall { call_hash }, + "Vesting", + "vested_transfer", + types::VestedTransfer { target, schedule }, [ - 30u8, 47u8, 13u8, 231u8, 165u8, 219u8, 246u8, 210u8, 11u8, 38u8, 219u8, - 218u8, 151u8, 226u8, 101u8, 175u8, 0u8, 239u8, 35u8, 46u8, 156u8, - 104u8, 145u8, 173u8, 105u8, 100u8, 21u8, 189u8, 123u8, 227u8, 196u8, - 40u8, + 198u8, 133u8, 254u8, 5u8, 22u8, 170u8, 205u8, 79u8, 218u8, 30u8, 81u8, + 207u8, 227u8, 121u8, 132u8, 14u8, 217u8, 43u8, 66u8, 206u8, 15u8, 80u8, + 173u8, 208u8, 128u8, 72u8, 223u8, 175u8, 93u8, 69u8, 128u8, 88u8, ], ) } - #[doc = "See [`Pallet::dispatch_whitelisted_call`]."] - pub fn dispatch_whitelisted_call( + #[doc = "See [`Pallet::force_vested_transfer`]."] + pub fn force_vested_transfer( &self, - call_hash: ::subxt::utils::H256, - call_encoded_len: ::core::primitive::u32, - call_weight_witness: runtime_types::sp_weights::weight_v2::Weight, - ) -> ::subxt::tx::Payload { + source: alias_types::force_vested_transfer::Source, + target: alias_types::force_vested_transfer::Target, + schedule: alias_types::force_vested_transfer::Schedule, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Whitelist", - "dispatch_whitelisted_call", - types::DispatchWhitelistedCall { - call_hash, - call_encoded_len, - call_weight_witness, + "Vesting", + "force_vested_transfer", + types::ForceVestedTransfer { + source, + target, + schedule, }, [ - 112u8, 67u8, 72u8, 26u8, 3u8, 214u8, 86u8, 102u8, 29u8, 96u8, 222u8, - 24u8, 115u8, 15u8, 124u8, 160u8, 148u8, 184u8, 56u8, 162u8, 188u8, - 123u8, 213u8, 234u8, 208u8, 123u8, 133u8, 253u8, 43u8, 226u8, 66u8, - 116u8, + 112u8, 17u8, 176u8, 133u8, 169u8, 192u8, 155u8, 217u8, 153u8, 36u8, + 230u8, 45u8, 9u8, 192u8, 2u8, 201u8, 165u8, 60u8, 206u8, 226u8, 95u8, + 86u8, 239u8, 196u8, 109u8, 62u8, 224u8, 237u8, 88u8, 74u8, 209u8, + 251u8, ], ) } - #[doc = "See [`Pallet::dispatch_whitelisted_call_with_preimage`]."] - pub fn dispatch_whitelisted_call_with_preimage( + #[doc = "See [`Pallet::merge_schedules`]."] + pub fn merge_schedules( &self, - call: runtime_types::polkadot_runtime::RuntimeCall, - ) -> ::subxt::tx::Payload - { + schedule1_index: alias_types::merge_schedules::Schedule1Index, + schedule2_index: alias_types::merge_schedules::Schedule2Index, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Whitelist", - "dispatch_whitelisted_call_with_preimage", - types::DispatchWhitelistedCallWithPreimage { - call: ::std::boxed::Box::new(call), + "Vesting", + "merge_schedules", + types::MergeSchedules { + schedule1_index, + schedule2_index, + }, + [ + 45u8, 24u8, 13u8, 108u8, 26u8, 99u8, 61u8, 117u8, 195u8, 218u8, 182u8, + 23u8, 188u8, 157u8, 181u8, 81u8, 38u8, 136u8, 31u8, 226u8, 8u8, 190u8, + 33u8, 81u8, 86u8, 185u8, 156u8, 77u8, 157u8, 197u8, 41u8, 58u8, + ], + ) + } + #[doc = "See [`Pallet::force_remove_vesting_schedule`]."] + pub fn force_remove_vesting_schedule( + &self, + target: alias_types::force_remove_vesting_schedule::Target, + schedule_index: alias_types::force_remove_vesting_schedule::ScheduleIndex, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Vesting", + "force_remove_vesting_schedule", + types::ForceRemoveVestingSchedule { + target, + schedule_index, }, [ - 89u8, 130u8, 130u8, 37u8, 20u8, 229u8, 91u8, 200u8, 190u8, 63u8, 19u8, - 65u8, 27u8, 165u8, 215u8, 147u8, 124u8, 61u8, 48u8, 197u8, 185u8, - 174u8, 153u8, 124u8, 154u8, 91u8, 222u8, 11u8, 161u8, 208u8, 48u8, - 95u8, + 211u8, 253u8, 60u8, 15u8, 20u8, 53u8, 23u8, 13u8, 45u8, 223u8, 136u8, + 183u8, 162u8, 143u8, 196u8, 188u8, 35u8, 64u8, 174u8, 16u8, 47u8, 13u8, + 147u8, 173u8, 120u8, 143u8, 75u8, 89u8, 128u8, 187u8, 9u8, 18u8, ], ) } } } #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_whitelist::pallet::Event; + pub type Event = runtime_types::pallet_vesting::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -18356,29 +19005,15 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct CallWhitelisted { - pub call_hash: ::subxt::utils::H256, - } - impl ::subxt::events::StaticEvent for CallWhitelisted { - const PALLET: &'static str = "Whitelist"; - const EVENT: &'static str = "CallWhitelisted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct WhitelistedCallRemoved { - pub call_hash: ::subxt::utils::H256, + #[doc = "The amount vested has been updated. This could indicate a change in funds available."] + #[doc = "The balance given is the amount which is left unvested (and thus locked)."] + pub struct VestingUpdated { + pub account: ::subxt::utils::AccountId32, + pub unvested: ::core::primitive::u128, } - impl ::subxt::events::StaticEvent for WhitelistedCallRemoved { - const PALLET: &'static str = "Whitelist"; - const EVENT: &'static str = "WhitelistedCallRemoved"; + impl ::subxt::events::StaticEvent for VestingUpdated { + const PALLET: &'static str = "Vesting"; + const EVENT: &'static str = "VestingUpdated"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -18390,81 +19025,199 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct WhitelistedCallDispatched { - pub call_hash: ::subxt::utils::H256, - pub result: ::core::result::Result< - runtime_types::frame_support::dispatch::PostDispatchInfo, - runtime_types::sp_runtime::DispatchErrorWithPostInfo< - runtime_types::frame_support::dispatch::PostDispatchInfo, - >, - >, + #[doc = "An \\[account\\] has become fully vested."] + pub struct VestingCompleted { + pub account: ::subxt::utils::AccountId32, } - impl ::subxt::events::StaticEvent for WhitelistedCallDispatched { - const PALLET: &'static str = "Whitelist"; - const EVENT: &'static str = "WhitelistedCallDispatched"; + impl ::subxt::events::StaticEvent for VestingCompleted { + const PALLET: &'static str = "Vesting"; + const EVENT: &'static str = "VestingCompleted"; } } pub mod storage { use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod vesting { + use super::runtime_types; + pub type Vesting = runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_vesting::vesting_info::VestingInfo< + ::core::primitive::u128, + ::core::primitive::u32, + >, + >; + } + pub mod storage_version { + use super::runtime_types; + pub type StorageVersion = runtime_types::pallet_vesting::Releases; + } + } pub struct StorageApi; impl StorageApi { - pub fn whitelisted_call_iter( + #[doc = " Information regarding the vesting of a given account."] + pub fn vesting_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - (), + alias_types::vesting::Vesting, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Whitelist", - "WhitelistedCall", + "Vesting", + "Vesting", vec![], [ - 82u8, 208u8, 214u8, 72u8, 225u8, 35u8, 51u8, 212u8, 25u8, 138u8, 30u8, - 87u8, 54u8, 232u8, 72u8, 132u8, 4u8, 9u8, 28u8, 143u8, 251u8, 106u8, - 167u8, 218u8, 130u8, 185u8, 253u8, 185u8, 113u8, 154u8, 202u8, 66u8, + 95u8, 168u8, 217u8, 248u8, 149u8, 86u8, 195u8, 93u8, 73u8, 206u8, + 105u8, 165u8, 33u8, 173u8, 232u8, 81u8, 147u8, 254u8, 50u8, 228u8, + 156u8, 92u8, 242u8, 149u8, 42u8, 91u8, 58u8, 209u8, 142u8, 221u8, + 230u8, 112u8, ], ) } - pub fn whitelisted_call( + #[doc = " Information regarding the vesting of a given account."] + pub fn vesting( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - (), + alias_types::vesting::Vesting, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( - "Whitelist", - "WhitelistedCall", + "Vesting", + "Vesting", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 82u8, 208u8, 214u8, 72u8, 225u8, 35u8, 51u8, 212u8, 25u8, 138u8, 30u8, - 87u8, 54u8, 232u8, 72u8, 132u8, 4u8, 9u8, 28u8, 143u8, 251u8, 106u8, - 167u8, 218u8, 130u8, 185u8, 253u8, 185u8, 113u8, 154u8, 202u8, 66u8, + 95u8, 168u8, 217u8, 248u8, 149u8, 86u8, 195u8, 93u8, 73u8, 206u8, + 105u8, 165u8, 33u8, 173u8, 232u8, 81u8, 147u8, 254u8, 50u8, 228u8, + 156u8, 92u8, 242u8, 149u8, 42u8, 91u8, 58u8, 209u8, 142u8, 221u8, + 230u8, 112u8, + ], + ) + } + #[doc = " Storage version of the pallet."] + #[doc = ""] + #[doc = " New networks start with latest version, as determined by the genesis build."] + pub fn storage_version( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::storage_version::StorageVersion, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Vesting", + "StorageVersion", + vec![], + [ + 230u8, 137u8, 180u8, 133u8, 142u8, 124u8, 231u8, 234u8, 223u8, 10u8, + 154u8, 98u8, 158u8, 253u8, 228u8, 80u8, 5u8, 9u8, 91u8, 210u8, 252u8, + 9u8, 13u8, 195u8, 193u8, 164u8, 129u8, 113u8, 128u8, 218u8, 8u8, 40u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The minimum amount transferred to call `vested_transfer`."] + pub fn min_vested_transfer( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Vesting", + "MinVestedTransfer", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + pub fn max_vesting_schedules( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Vesting", + "MaxVestingSchedules", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, ], ) } } } } - pub mod claims { + pub mod scheduler { use super::root_mod; use super::runtime_types; #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::polkadot_runtime_common::claims::pallet::Error; + pub type Error = runtime_types::pallet_scheduler::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::polkadot_runtime_common::claims::pallet::Call; + pub type Call = runtime_types::pallet_scheduler::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod alias_types { + use super::runtime_types; + pub mod schedule { + use super::runtime_types; + pub type When = ::core::primitive::u32; + pub type MaybePeriodic = + ::core::option::Option<(::core::primitive::u32, ::core::primitive::u32)>; + pub type Priority = ::core::primitive::u8; + pub type Call = runtime_types::rococo_runtime::RuntimeCall; + } + pub mod cancel { + use super::runtime_types; + pub type When = ::core::primitive::u32; + pub type Index = ::core::primitive::u32; + } + pub mod schedule_named { + use super::runtime_types; + pub type Id = [::core::primitive::u8; 32usize]; + pub type When = ::core::primitive::u32; + pub type MaybePeriodic = + ::core::option::Option<(::core::primitive::u32, ::core::primitive::u32)>; + pub type Priority = ::core::primitive::u8; + pub type Call = runtime_types::rococo_runtime::RuntimeCall; + } + pub mod cancel_named { + use super::runtime_types; + pub type Id = [::core::primitive::u8; 32usize]; + } + pub mod schedule_after { + use super::runtime_types; + pub type After = ::core::primitive::u32; + pub type MaybePeriodic = + ::core::option::Option<(::core::primitive::u32, ::core::primitive::u32)>; + pub type Priority = ::core::primitive::u8; + pub type Call = runtime_types::rococo_runtime::RuntimeCall; + } + pub mod schedule_named_after { + use super::runtime_types; + pub type Id = [::core::primitive::u8; 32usize]; + pub type After = ::core::primitive::u32; + pub type MaybePeriodic = + ::core::option::Option<(::core::primitive::u32, ::core::primitive::u32)>; + pub type Priority = ::core::primitive::u8; + pub type Call = runtime_types::rococo_runtime::RuntimeCall; + } + } pub mod types { use super::runtime_types; #[derive( @@ -18477,14 +19230,16 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Claim { - pub dest: ::subxt::utils::AccountId32, - pub ethereum_signature: - runtime_types::polkadot_runtime_common::claims::EcdsaSignature, + 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, } - impl ::subxt::blocks::StaticExtrinsic for Claim { - const PALLET: &'static str = "Claims"; - const CALL: &'static str = "claim"; + impl ::subxt::blocks::StaticExtrinsic for Schedule { + const PALLET: &'static str = "Scheduler"; + const CALL: &'static str = "schedule"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -18496,21 +19251,13 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - 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, - >, + pub struct Cancel { + pub when: ::core::primitive::u32, + pub index: ::core::primitive::u32, } - impl ::subxt::blocks::StaticExtrinsic for MintClaim { - const PALLET: &'static str = "Claims"; - const CALL: &'static str = "mint_claim"; + impl ::subxt::blocks::StaticExtrinsic for Cancel { + const PALLET: &'static str = "Scheduler"; + const CALL: &'static str = "cancel"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -18522,15 +19269,17 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ClaimAttest { - pub dest: ::subxt::utils::AccountId32, - pub ethereum_signature: - runtime_types::polkadot_runtime_common::claims::EcdsaSignature, - pub statement: ::std::vec::Vec<::core::primitive::u8>, + pub struct ScheduleNamed { + pub id: [::core::primitive::u8; 32usize], + 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, } - impl ::subxt::blocks::StaticExtrinsic for ClaimAttest { - const PALLET: &'static str = "Claims"; - const CALL: &'static str = "claim_attest"; + impl ::subxt::blocks::StaticExtrinsic for ScheduleNamed { + const PALLET: &'static str = "Scheduler"; + const CALL: &'static str = "schedule_named"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -18542,12 +19291,12 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Attest { - pub statement: ::std::vec::Vec<::core::primitive::u8>, + pub struct CancelNamed { + pub id: [::core::primitive::u8; 32usize], } - impl ::subxt::blocks::StaticExtrinsic for Attest { - const PALLET: &'static str = "Claims"; - const CALL: &'static str = "attest"; + impl ::subxt::blocks::StaticExtrinsic for CancelNamed { + const PALLET: &'static str = "Scheduler"; + const CALL: &'static str = "cancel_named"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -18559,135 +19308,180 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - 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::utils::AccountId32>, + 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, } - impl ::subxt::blocks::StaticExtrinsic for MoveClaim { - const PALLET: &'static str = "Claims"; - const CALL: &'static str = "move_claim"; + impl ::subxt::blocks::StaticExtrinsic for ScheduleAfter { + const PALLET: &'static str = "Scheduler"; + const CALL: &'static str = "schedule_after"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ScheduleNamedAfter { + pub id: [::core::primitive::u8; 32usize], + 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, + } + impl ::subxt::blocks::StaticExtrinsic for ScheduleNamedAfter { + const PALLET: &'static str = "Scheduler"; + const CALL: &'static str = "schedule_named_after"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::claim`]."] - pub fn claim( + #[doc = "See [`Pallet::schedule`]."] + pub fn schedule( &self, - dest: ::subxt::utils::AccountId32, - ethereum_signature : runtime_types :: polkadot_runtime_common :: claims :: EcdsaSignature, - ) -> ::subxt::tx::Payload { + when: alias_types::schedule::When, + maybe_periodic: alias_types::schedule::MaybePeriodic, + priority: alias_types::schedule::Priority, + call: alias_types::schedule::Call, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Claims", - "claim", - types::Claim { - dest, - ethereum_signature, + "Scheduler", + "schedule", + types::Schedule { + when, + maybe_periodic, + priority, + call: ::std::boxed::Box::new(call), }, [ - 218u8, 236u8, 60u8, 12u8, 231u8, 72u8, 155u8, 30u8, 116u8, 126u8, - 145u8, 166u8, 135u8, 118u8, 22u8, 112u8, 212u8, 140u8, 129u8, 97u8, - 9u8, 241u8, 159u8, 140u8, 252u8, 128u8, 4u8, 175u8, 180u8, 133u8, 70u8, - 55u8, + 122u8, 88u8, 251u8, 25u8, 239u8, 91u8, 220u8, 116u8, 155u8, 219u8, + 129u8, 170u8, 81u8, 4u8, 224u8, 195u8, 83u8, 196u8, 48u8, 159u8, 222u8, + 72u8, 2u8, 131u8, 14u8, 204u8, 21u8, 234u8, 2u8, 237u8, 69u8, 28u8, ], ) } - #[doc = "See [`Pallet::mint_claim`]."] - pub fn mint_claim( + #[doc = "See [`Pallet::cancel`]."] + pub fn cancel( &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::tx::Payload { + when: alias_types::cancel::When, + index: alias_types::cancel::Index, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Claims", - "mint_claim", - types::MintClaim { - who, - value, - vesting_schedule, - statement, - }, + "Scheduler", + "cancel", + types::Cancel { when, index }, [ - 59u8, 71u8, 27u8, 16u8, 177u8, 189u8, 53u8, 54u8, 86u8, 157u8, 122u8, - 182u8, 246u8, 113u8, 225u8, 10u8, 31u8, 253u8, 15u8, 48u8, 182u8, - 198u8, 38u8, 211u8, 90u8, 75u8, 10u8, 68u8, 70u8, 152u8, 141u8, 222u8, + 183u8, 204u8, 143u8, 86u8, 17u8, 130u8, 132u8, 91u8, 133u8, 168u8, + 103u8, 129u8, 114u8, 56u8, 123u8, 42u8, 123u8, 120u8, 221u8, 211u8, + 26u8, 85u8, 82u8, 246u8, 192u8, 39u8, 254u8, 45u8, 147u8, 56u8, 178u8, + 133u8, ], ) } - #[doc = "See [`Pallet::claim_attest`]."] - pub fn claim_attest( + #[doc = "See [`Pallet::schedule_named`]."] + pub fn schedule_named( &self, - dest: ::subxt::utils::AccountId32, - ethereum_signature : runtime_types :: polkadot_runtime_common :: claims :: EcdsaSignature, - statement: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::Payload { + id: alias_types::schedule_named::Id, + when: alias_types::schedule_named::When, + maybe_periodic: alias_types::schedule_named::MaybePeriodic, + priority: alias_types::schedule_named::Priority, + call: alias_types::schedule_named::Call, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Claims", - "claim_attest", - types::ClaimAttest { - dest, - ethereum_signature, - statement, + "Scheduler", + "schedule_named", + types::ScheduleNamed { + id, + when, + maybe_periodic, + priority, + call: ::std::boxed::Box::new(call), }, [ - 61u8, 16u8, 39u8, 50u8, 23u8, 249u8, 217u8, 155u8, 138u8, 128u8, 247u8, - 214u8, 185u8, 7u8, 87u8, 108u8, 15u8, 43u8, 44u8, 224u8, 204u8, 39u8, - 219u8, 188u8, 197u8, 104u8, 120u8, 144u8, 152u8, 161u8, 244u8, 37u8, + 4u8, 172u8, 69u8, 211u8, 77u8, 162u8, 70u8, 8u8, 60u8, 79u8, 223u8, + 222u8, 210u8, 64u8, 116u8, 53u8, 161u8, 251u8, 28u8, 236u8, 12u8, + 212u8, 174u8, 0u8, 10u8, 78u8, 132u8, 232u8, 163u8, 44u8, 9u8, 200u8, ], ) } - #[doc = "See [`Pallet::attest`]."] - pub fn attest( + #[doc = "See [`Pallet::cancel_named`]."] + pub fn cancel_named( &self, - statement: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::Payload { + id: alias_types::cancel_named::Id, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Claims", - "attest", - types::Attest { statement }, + "Scheduler", + "cancel_named", + types::CancelNamed { id }, [ - 254u8, 56u8, 140u8, 129u8, 227u8, 155u8, 161u8, 107u8, 167u8, 148u8, - 167u8, 104u8, 139u8, 174u8, 204u8, 124u8, 126u8, 198u8, 165u8, 61u8, - 83u8, 197u8, 242u8, 13u8, 70u8, 153u8, 14u8, 62u8, 214u8, 129u8, 64u8, - 93u8, + 205u8, 35u8, 28u8, 57u8, 224u8, 7u8, 49u8, 233u8, 236u8, 163u8, 93u8, + 236u8, 103u8, 69u8, 65u8, 51u8, 121u8, 84u8, 9u8, 196u8, 147u8, 122u8, + 227u8, 200u8, 181u8, 233u8, 62u8, 240u8, 174u8, 83u8, 129u8, 193u8, ], ) } - #[doc = "See [`Pallet::move_claim`]."] - pub fn move_claim( + #[doc = "See [`Pallet::schedule_after`]."] + pub fn schedule_after( &self, - old: runtime_types::polkadot_runtime_common::claims::EthereumAddress, - new: runtime_types::polkadot_runtime_common::claims::EthereumAddress, - maybe_preclaim: ::core::option::Option<::subxt::utils::AccountId32>, - ) -> ::subxt::tx::Payload { + after: alias_types::schedule_after::After, + maybe_periodic: alias_types::schedule_after::MaybePeriodic, + priority: alias_types::schedule_after::Priority, + call: alias_types::schedule_after::Call, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Claims", - "move_claim", - types::MoveClaim { - old, - new, - maybe_preclaim, + "Scheduler", + "schedule_after", + types::ScheduleAfter { + after, + maybe_periodic, + priority, + call: ::std::boxed::Box::new(call), }, [ - 187u8, 200u8, 222u8, 83u8, 110u8, 49u8, 60u8, 134u8, 91u8, 215u8, 67u8, - 18u8, 187u8, 241u8, 191u8, 127u8, 222u8, 171u8, 151u8, 245u8, 161u8, - 196u8, 123u8, 99u8, 206u8, 110u8, 55u8, 82u8, 210u8, 151u8, 116u8, - 230u8, + 218u8, 190u8, 254u8, 33u8, 44u8, 21u8, 3u8, 225u8, 106u8, 85u8, 42u8, + 102u8, 206u8, 52u8, 225u8, 78u8, 220u8, 205u8, 130u8, 191u8, 223u8, + 152u8, 7u8, 46u8, 168u8, 251u8, 167u8, 72u8, 186u8, 102u8, 239u8, 95u8, + ], + ) + } + #[doc = "See [`Pallet::schedule_named_after`]."] + pub fn schedule_named_after( + &self, + id: alias_types::schedule_named_after::Id, + after: alias_types::schedule_named_after::After, + maybe_periodic: alias_types::schedule_named_after::MaybePeriodic, + priority: alias_types::schedule_named_after::Priority, + call: alias_types::schedule_named_after::Call, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Scheduler", + "schedule_named_after", + types::ScheduleNamedAfter { + id, + after, + maybe_periodic, + priority, + call: ::std::boxed::Box::new(call), + }, + [ + 87u8, 222u8, 30u8, 136u8, 12u8, 96u8, 70u8, 211u8, 190u8, 75u8, 247u8, + 231u8, 71u8, 59u8, 62u8, 126u8, 22u8, 4u8, 237u8, 153u8, 26u8, 180u8, + 88u8, 128u8, 69u8, 55u8, 31u8, 201u8, 227u8, 95u8, 38u8, 67u8, ], ) } } } - #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::polkadot_runtime_common::claims::pallet::Event; + #[doc = "Events type."] + pub type Event = runtime_types::pallet_scheduler::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -18700,299 +19494,384 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Someone claimed some DOTs."] - pub struct Claimed { - pub who: ::subxt::utils::AccountId32, - pub ethereum_address: - runtime_types::polkadot_runtime_common::claims::EthereumAddress, - pub amount: ::core::primitive::u128, + #[doc = "Scheduled some task."] + pub struct Scheduled { + pub when: ::core::primitive::u32, + pub index: ::core::primitive::u32, } - impl ::subxt::events::StaticEvent for Claimed { - const PALLET: &'static str = "Claims"; - const EVENT: &'static str = "Claimed"; + impl ::subxt::events::StaticEvent for Scheduled { + const PALLET: &'static str = "Scheduler"; + const EVENT: &'static str = "Scheduled"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Canceled some task."] + pub struct Canceled { + pub when: ::core::primitive::u32, + pub index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for Canceled { + const PALLET: &'static str = "Scheduler"; + const EVENT: &'static str = "Canceled"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Dispatched some task."] + pub struct Dispatched { + pub task: (::core::primitive::u32, ::core::primitive::u32), + pub id: ::core::option::Option<[::core::primitive::u8; 32usize]>, + pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + } + impl ::subxt::events::StaticEvent for Dispatched { + const PALLET: &'static str = "Scheduler"; + const EVENT: &'static str = "Dispatched"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The call for the provided hash was not found so the task has been aborted."] + pub struct CallUnavailable { + pub task: (::core::primitive::u32, ::core::primitive::u32), + pub id: ::core::option::Option<[::core::primitive::u8; 32usize]>, + } + impl ::subxt::events::StaticEvent for CallUnavailable { + const PALLET: &'static str = "Scheduler"; + const EVENT: &'static str = "CallUnavailable"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The given task was unable to be renewed since the agenda is full at that block."] + pub struct PeriodicFailed { + pub task: (::core::primitive::u32, ::core::primitive::u32), + pub id: ::core::option::Option<[::core::primitive::u8; 32usize]>, + } + impl ::subxt::events::StaticEvent for PeriodicFailed { + const PALLET: &'static str = "Scheduler"; + const EVENT: &'static str = "PeriodicFailed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The given task can never be executed since it is overweight."] + pub struct PermanentlyOverweight { + pub task: (::core::primitive::u32, ::core::primitive::u32), + pub id: ::core::option::Option<[::core::primitive::u8; 32usize]>, + } + impl ::subxt::events::StaticEvent for PermanentlyOverweight { + const PALLET: &'static str = "Scheduler"; + const EVENT: &'static str = "PermanentlyOverweight"; } } pub mod storage { use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod incomplete_since { + use super::runtime_types; + pub type IncompleteSince = ::core::primitive::u32; + } + pub mod agenda { + use super::runtime_types; + pub type Agenda = runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::option::Option< + runtime_types::pallet_scheduler::Scheduled< + [::core::primitive::u8; 32usize], + runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::rococo_runtime::RuntimeCall, + runtime_types::sp_runtime::traits::BlakeTwo256, + >, + ::core::primitive::u32, + runtime_types::rococo_runtime::OriginCaller, + ::subxt::utils::AccountId32, + >, + >, + >; + } + pub mod lookup { + use super::runtime_types; + pub type Lookup = (::core::primitive::u32, ::core::primitive::u32); + } + } pub struct StorageApi; impl StorageApi { - pub fn claims_iter( + pub fn incomplete_since( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, + alias_types::incomplete_since::IncompleteSince, + ::subxt::storage::address::Yes, (), (), - ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Claims", - "Claims", + "Scheduler", + "IncompleteSince", vec![], [ - 148u8, 115u8, 159u8, 169u8, 36u8, 116u8, 15u8, 108u8, 57u8, 195u8, - 226u8, 180u8, 187u8, 112u8, 114u8, 63u8, 3u8, 205u8, 113u8, 141u8, - 149u8, 149u8, 118u8, 246u8, 45u8, 245u8, 148u8, 108u8, 22u8, 184u8, - 152u8, 132u8, + 250u8, 83u8, 64u8, 167u8, 205u8, 59u8, 225u8, 97u8, 205u8, 12u8, 76u8, + 130u8, 197u8, 4u8, 111u8, 208u8, 92u8, 217u8, 145u8, 119u8, 38u8, + 135u8, 1u8, 242u8, 228u8, 143u8, 56u8, 25u8, 115u8, 233u8, 227u8, 66u8, ], ) } - pub fn claims( + #[doc = " Items to be executed, indexed by the block number that they should be executed on."] + pub fn agenda_iter( &self, - _0: impl ::std::borrow::Borrow< - runtime_types::polkadot_runtime_common::claims::EthereumAddress, - >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - ::subxt::storage::address::Yes, - (), + alias_types::agenda::Agenda, (), - > { - ::subxt::storage::address::Address::new_static( - "Claims", - "Claims", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 148u8, 115u8, 159u8, 169u8, 36u8, 116u8, 15u8, 108u8, 57u8, 195u8, - 226u8, 180u8, 187u8, 112u8, 114u8, 63u8, 3u8, 205u8, 113u8, 141u8, - 149u8, 149u8, 118u8, 246u8, 45u8, 245u8, 148u8, 108u8, 22u8, 184u8, - 152u8, 132u8, - ], - ) - } - pub fn total( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, - (), > { ::subxt::storage::address::Address::new_static( - "Claims", - "Total", + "Scheduler", + "Agenda", vec![], [ - 188u8, 31u8, 219u8, 189u8, 49u8, 213u8, 203u8, 89u8, 125u8, 58u8, - 232u8, 159u8, 131u8, 155u8, 166u8, 113u8, 99u8, 24u8, 40u8, 242u8, - 118u8, 183u8, 108u8, 230u8, 135u8, 150u8, 84u8, 86u8, 118u8, 91u8, - 168u8, 62u8, + 247u8, 226u8, 115u8, 70u8, 172u8, 69u8, 26u8, 24u8, 46u8, 202u8, 118u8, + 250u8, 111u8, 236u8, 77u8, 255u8, 26u8, 125u8, 18u8, 8u8, 24u8, 230u8, + 222u8, 140u8, 179u8, 235u8, 19u8, 161u8, 40u8, 78u8, 26u8, 173u8, ], ) } - #[doc = " Vesting schedule for a claim."] - #[doc = " First balance is the total amount that should be held for vesting."] - #[doc = " Second balance is how much should be unlocked per block."] - #[doc = " The block number is when the vesting should start."] - pub fn vesting_iter( + #[doc = " Items to be executed, indexed by the block number that they should be executed on."] + pub fn agenda( &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ( - ::core::primitive::u128, - ::core::primitive::u128, - ::core::primitive::u32, - ), - (), - (), + alias_types::agenda::Agenda, ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Claims", - "Vesting", - vec![], - [ - 206u8, 106u8, 195u8, 101u8, 55u8, 137u8, 50u8, 105u8, 137u8, 87u8, - 230u8, 34u8, 255u8, 94u8, 210u8, 186u8, 179u8, 72u8, 24u8, 194u8, - 209u8, 173u8, 115u8, 65u8, 227u8, 224u8, 58u8, 113u8, 200u8, 166u8, - 108u8, 198u8, - ], - ) - } - #[doc = " Vesting schedule for a claim."] - #[doc = " First balance is the total amount that should be held for vesting."] - #[doc = " Second balance is how much should be unlocked per block."] - #[doc = " The block number is when the vesting should start."] - pub fn vesting( - &self, - _0: impl ::std::borrow::Borrow< - runtime_types::polkadot_runtime_common::claims::EthereumAddress, - >, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ( - ::core::primitive::u128, - ::core::primitive::u128, - ::core::primitive::u32, - ), ::subxt::storage::address::Yes, (), - (), > { ::subxt::storage::address::Address::new_static( - "Claims", - "Vesting", + "Scheduler", + "Agenda", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 206u8, 106u8, 195u8, 101u8, 55u8, 137u8, 50u8, 105u8, 137u8, 87u8, - 230u8, 34u8, 255u8, 94u8, 210u8, 186u8, 179u8, 72u8, 24u8, 194u8, - 209u8, 173u8, 115u8, 65u8, 227u8, 224u8, 58u8, 113u8, 200u8, 166u8, - 108u8, 198u8, + 247u8, 226u8, 115u8, 70u8, 172u8, 69u8, 26u8, 24u8, 46u8, 202u8, 118u8, + 250u8, 111u8, 236u8, 77u8, 255u8, 26u8, 125u8, 18u8, 8u8, 24u8, 230u8, + 222u8, 140u8, 179u8, 235u8, 19u8, 161u8, 40u8, 78u8, 26u8, 173u8, ], ) } - #[doc = " The statement kind that must be signed, if any."] - pub fn signing_iter( + #[doc = " Lookup from a name to the block number and index of the task."] + #[doc = ""] + #[doc = " For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4"] + #[doc = " identities."] + pub fn lookup_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_runtime_common::claims::StatementKind, + alias_types::lookup::Lookup, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Claims", - "Signing", + "Scheduler", + "Lookup", vec![], [ - 111u8, 90u8, 178u8, 121u8, 241u8, 28u8, 169u8, 231u8, 61u8, 189u8, - 113u8, 207u8, 26u8, 153u8, 189u8, 15u8, 192u8, 25u8, 22u8, 22u8, 124u8, - 26u8, 191u8, 39u8, 130u8, 164u8, 34u8, 4u8, 44u8, 91u8, 82u8, 186u8, + 24u8, 87u8, 96u8, 127u8, 136u8, 205u8, 238u8, 174u8, 71u8, 110u8, 65u8, + 98u8, 228u8, 167u8, 99u8, 71u8, 171u8, 186u8, 12u8, 218u8, 137u8, 70u8, + 70u8, 228u8, 153u8, 111u8, 165u8, 114u8, 229u8, 136u8, 118u8, 131u8, ], ) } - #[doc = " The statement kind that must be signed, if any."] - pub fn signing( + #[doc = " Lookup from a name to the block number and index of the task."] + #[doc = ""] + #[doc = " For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4"] + #[doc = " identities."] + pub fn lookup( &self, - _0: impl ::std::borrow::Borrow< - runtime_types::polkadot_runtime_common::claims::EthereumAddress, - >, + _0: impl ::std::borrow::Borrow<[::core::primitive::u8; 32usize]>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_runtime_common::claims::StatementKind, + alias_types::lookup::Lookup, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( - "Claims", - "Signing", + "Scheduler", + "Lookup", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 111u8, 90u8, 178u8, 121u8, 241u8, 28u8, 169u8, 231u8, 61u8, 189u8, - 113u8, 207u8, 26u8, 153u8, 189u8, 15u8, 192u8, 25u8, 22u8, 22u8, 124u8, - 26u8, 191u8, 39u8, 130u8, 164u8, 34u8, 4u8, 44u8, 91u8, 82u8, 186u8, + 24u8, 87u8, 96u8, 127u8, 136u8, 205u8, 238u8, 174u8, 71u8, 110u8, 65u8, + 98u8, 228u8, 167u8, 99u8, 71u8, 171u8, 186u8, 12u8, 218u8, 137u8, 70u8, + 70u8, 228u8, 153u8, 111u8, 165u8, 114u8, 229u8, 136u8, 118u8, 131u8, ], ) } - #[doc = " Pre-claimed Ethereum accounts, by the Account ID that they are claimed to."] - pub fn preclaims_iter( + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The maximum weight that may be scheduled per block for any dispatchables."] + pub fn maximum_weight( &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_runtime_common::claims::EthereumAddress, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Claims", - "Preclaims", - vec![], - [ - 197u8, 114u8, 147u8, 235u8, 203u8, 255u8, 94u8, 113u8, 151u8, 119u8, - 224u8, 147u8, 48u8, 246u8, 124u8, 38u8, 190u8, 237u8, 226u8, 65u8, - 91u8, 163u8, 129u8, 40u8, 71u8, 137u8, 220u8, 242u8, 51u8, 75u8, 3u8, - 204u8, - ], - ) - } - #[doc = " Pre-claimed Ethereum accounts, by the Account ID that they are claimed to."] - pub fn preclaims( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_runtime_common::claims::EthereumAddress, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Claims", - "Preclaims", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], + ) -> ::subxt::constants::Address + { + ::subxt::constants::Address::new_static( + "Scheduler", + "MaximumWeight", [ - 197u8, 114u8, 147u8, 235u8, 203u8, 255u8, 94u8, 113u8, 151u8, 119u8, - 224u8, 147u8, 48u8, 246u8, 124u8, 38u8, 190u8, 237u8, 226u8, 65u8, - 91u8, 163u8, 129u8, 40u8, 71u8, 137u8, 220u8, 242u8, 51u8, 75u8, 3u8, - 204u8, + 149u8, 252u8, 129u8, 80u8, 169u8, 36u8, 79u8, 127u8, 240u8, 156u8, + 56u8, 202u8, 219u8, 86u8, 5u8, 65u8, 245u8, 148u8, 138u8, 243u8, 210u8, + 128u8, 234u8, 216u8, 240u8, 219u8, 123u8, 235u8, 21u8, 158u8, 237u8, + 112u8, ], ) } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - pub fn prefix( + #[doc = " The maximum number of scheduled calls in the queue for a single block."] + #[doc = ""] + #[doc = " NOTE:"] + #[doc = " + Dependent pallets' benchmarks might require a higher limit for the setting. Set a"] + #[doc = " higher limit under `runtime-benchmarks` feature."] + pub fn max_scheduled_per_block( &self, - ) -> ::subxt::constants::Address<::std::vec::Vec<::core::primitive::u8>> - { + ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( - "Claims", - "Prefix", + "Scheduler", + "MaxScheduledPerBlock", [ - 64u8, 190u8, 244u8, 122u8, 87u8, 182u8, 217u8, 16u8, 55u8, 223u8, - 128u8, 6u8, 112u8, 30u8, 236u8, 222u8, 153u8, 53u8, 247u8, 102u8, - 196u8, 31u8, 6u8, 186u8, 251u8, 209u8, 114u8, 125u8, 213u8, 222u8, - 240u8, 8u8, + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, ], ) } } } } - pub mod vesting { + pub mod proxy { use super::root_mod; use super::runtime_types; - #[doc = "Error for the vesting pallet."] - pub type Error = runtime_types::pallet_vesting::pallet::Error; + #[doc = "The `Error` enum of this pallet."] + pub type Error = runtime_types::pallet_proxy::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::pallet_vesting::pallet::Call; + pub type Call = runtime_types::pallet_proxy::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { + pub mod alias_types { use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Vest; - impl ::subxt::blocks::StaticExtrinsic for Vest { - const PALLET: &'static str = "Vesting"; - const CALL: &'static str = "vest"; + pub mod proxy { + use super::runtime_types; + pub type Real = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type ForceProxyType = + ::core::option::Option; + pub type Call = runtime_types::rococo_runtime::RuntimeCall; + } + pub mod add_proxy { + use super::runtime_types; + pub type Delegate = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type ProxyType = runtime_types::rococo_runtime::ProxyType; + pub type Delay = ::core::primitive::u32; + } + pub mod remove_proxy { + use super::runtime_types; + pub type Delegate = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type ProxyType = runtime_types::rococo_runtime::ProxyType; + pub type Delay = ::core::primitive::u32; } + pub mod remove_proxies { + use super::runtime_types; + } + pub mod create_pure { + use super::runtime_types; + pub type ProxyType = runtime_types::rococo_runtime::ProxyType; + pub type Delay = ::core::primitive::u32; + pub type Index = ::core::primitive::u16; + } + pub mod kill_pure { + use super::runtime_types; + pub type Spawner = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type ProxyType = runtime_types::rococo_runtime::ProxyType; + pub type Index = ::core::primitive::u16; + pub type Height = ::core::primitive::u32; + pub type ExtIndex = ::core::primitive::u32; + } + pub mod announce { + use super::runtime_types; + pub type Real = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type CallHash = ::subxt::utils::H256; + } + pub mod remove_announcement { + use super::runtime_types; + pub type Real = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type CallHash = ::subxt::utils::H256; + } + pub mod reject_announcement { + use super::runtime_types; + pub type Delegate = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type CallHash = ::subxt::utils::H256; + } + pub mod proxy_announced { + use super::runtime_types; + pub type Delegate = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Real = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type ForceProxyType = + ::core::option::Option; + pub type Call = runtime_types::rococo_runtime::RuntimeCall; + } + } + pub mod types { + use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -19003,12 +19882,15 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct VestOther { - pub target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub struct Proxy { + pub real: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub force_proxy_type: + ::core::option::Option, + pub call: ::std::boxed::Box, } - impl ::subxt::blocks::StaticExtrinsic for VestOther { - const PALLET: &'static str = "Vesting"; - const CALL: &'static str = "vest_other"; + impl ::subxt::blocks::StaticExtrinsic for Proxy { + const PALLET: &'static str = "Proxy"; + const CALL: &'static str = "proxy"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -19020,16 +19902,14 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct VestedTransfer { - pub target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub schedule: runtime_types::pallet_vesting::vesting_info::VestingInfo< - ::core::primitive::u128, - ::core::primitive::u32, - >, + pub struct AddProxy { + pub delegate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub proxy_type: runtime_types::rococo_runtime::ProxyType, + pub delay: ::core::primitive::u32, } - impl ::subxt::blocks::StaticExtrinsic for VestedTransfer { - const PALLET: &'static str = "Vesting"; - const CALL: &'static str = "vested_transfer"; + impl ::subxt::blocks::StaticExtrinsic for AddProxy { + const PALLET: &'static str = "Proxy"; + const CALL: &'static str = "add_proxy"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -19041,17 +19921,14 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ForceVestedTransfer { - pub source: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub schedule: runtime_types::pallet_vesting::vesting_info::VestingInfo< - ::core::primitive::u128, - ::core::primitive::u32, - >, + pub struct RemoveProxy { + pub delegate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub proxy_type: runtime_types::rococo_runtime::ProxyType, + pub delay: ::core::primitive::u32, } - impl ::subxt::blocks::StaticExtrinsic for ForceVestedTransfer { - const PALLET: &'static str = "Vesting"; - const CALL: &'static str = "force_vested_transfer"; + impl ::subxt::blocks::StaticExtrinsic for RemoveProxy { + const PALLET: &'static str = "Proxy"; + const CALL: &'static str = "remove_proxy"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -19063,292 +19940,11 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct MergeSchedules { - pub schedule1_index: ::core::primitive::u32, - pub schedule2_index: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for MergeSchedules { - const PALLET: &'static str = "Vesting"; - const CALL: &'static str = "merge_schedules"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::vest`]."] - pub fn vest(&self) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Vesting", - "vest", - types::Vest {}, - [ - 149u8, 89u8, 178u8, 148u8, 127u8, 127u8, 155u8, 60u8, 114u8, 126u8, - 204u8, 123u8, 166u8, 70u8, 104u8, 208u8, 186u8, 69u8, 139u8, 181u8, - 151u8, 154u8, 235u8, 161u8, 191u8, 35u8, 111u8, 60u8, 21u8, 165u8, - 44u8, 122u8, - ], - ) - } - #[doc = "See [`Pallet::vest_other`]."] - pub fn vest_other( - &self, - target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Vesting", - "vest_other", - types::VestOther { target }, - [ - 238u8, 92u8, 25u8, 149u8, 27u8, 211u8, 196u8, 31u8, 211u8, 28u8, 241u8, - 30u8, 128u8, 35u8, 0u8, 227u8, 202u8, 215u8, 186u8, 69u8, 216u8, 110u8, - 199u8, 120u8, 134u8, 141u8, 176u8, 224u8, 234u8, 42u8, 152u8, 128u8, - ], - ) - } - #[doc = "See [`Pallet::vested_transfer`]."] - pub fn vested_transfer( - &self, - target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - schedule: runtime_types::pallet_vesting::vesting_info::VestingInfo< - ::core::primitive::u128, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Vesting", - "vested_transfer", - types::VestedTransfer { target, schedule }, - [ - 198u8, 133u8, 254u8, 5u8, 22u8, 170u8, 205u8, 79u8, 218u8, 30u8, 81u8, - 207u8, 227u8, 121u8, 132u8, 14u8, 217u8, 43u8, 66u8, 206u8, 15u8, 80u8, - 173u8, 208u8, 128u8, 72u8, 223u8, 175u8, 93u8, 69u8, 128u8, 88u8, - ], - ) - } - #[doc = "See [`Pallet::force_vested_transfer`]."] - pub fn force_vested_transfer( - &self, - source: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - schedule: runtime_types::pallet_vesting::vesting_info::VestingInfo< - ::core::primitive::u128, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Vesting", - "force_vested_transfer", - types::ForceVestedTransfer { - source, - target, - schedule, - }, - [ - 112u8, 17u8, 176u8, 133u8, 169u8, 192u8, 155u8, 217u8, 153u8, 36u8, - 230u8, 45u8, 9u8, 192u8, 2u8, 201u8, 165u8, 60u8, 206u8, 226u8, 95u8, - 86u8, 239u8, 196u8, 109u8, 62u8, 224u8, 237u8, 88u8, 74u8, 209u8, - 251u8, - ], - ) - } - #[doc = "See [`Pallet::merge_schedules`]."] - pub fn merge_schedules( - &self, - schedule1_index: ::core::primitive::u32, - schedule2_index: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Vesting", - "merge_schedules", - types::MergeSchedules { - schedule1_index, - schedule2_index, - }, - [ - 45u8, 24u8, 13u8, 108u8, 26u8, 99u8, 61u8, 117u8, 195u8, 218u8, 182u8, - 23u8, 188u8, 157u8, 181u8, 81u8, 38u8, 136u8, 31u8, 226u8, 8u8, 190u8, - 33u8, 81u8, 86u8, 185u8, 156u8, 77u8, 157u8, 197u8, 41u8, 58u8, - ], - ) - } - } - } - #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_vesting::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The amount vested has been updated. This could indicate a change in funds available."] - #[doc = "The balance given is the amount which is left unvested (and thus locked)."] - pub struct VestingUpdated { - pub account: ::subxt::utils::AccountId32, - pub unvested: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for VestingUpdated { - const PALLET: &'static str = "Vesting"; - const EVENT: &'static str = "VestingUpdated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An \\[account\\] has become fully vested."] - pub struct VestingCompleted { - pub account: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for VestingCompleted { - const PALLET: &'static str = "Vesting"; - const EVENT: &'static str = "VestingCompleted"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Information regarding the vesting of a given account."] - pub fn vesting_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - runtime_types::pallet_vesting::vesting_info::VestingInfo< - ::core::primitive::u128, - ::core::primitive::u32, - >, - >, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Vesting", - "Vesting", - vec![], - [ - 95u8, 168u8, 217u8, 248u8, 149u8, 86u8, 195u8, 93u8, 73u8, 206u8, - 105u8, 165u8, 33u8, 173u8, 232u8, 81u8, 147u8, 254u8, 50u8, 228u8, - 156u8, 92u8, 242u8, 149u8, 42u8, 91u8, 58u8, 209u8, 142u8, 221u8, - 230u8, 112u8, - ], - ) - } - #[doc = " Information regarding the vesting of a given account."] - pub fn vesting( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - runtime_types::pallet_vesting::vesting_info::VestingInfo< - ::core::primitive::u128, - ::core::primitive::u32, - >, - >, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Vesting", - "Vesting", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 95u8, 168u8, 217u8, 248u8, 149u8, 86u8, 195u8, 93u8, 73u8, 206u8, - 105u8, 165u8, 33u8, 173u8, 232u8, 81u8, 147u8, 254u8, 50u8, 228u8, - 156u8, 92u8, 242u8, 149u8, 42u8, 91u8, 58u8, 209u8, 142u8, 221u8, - 230u8, 112u8, - ], - ) - } - #[doc = " Storage version of the pallet."] - #[doc = ""] - #[doc = " New networks start with latest version, as determined by the genesis build."] - pub fn storage_version( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_vesting::Releases, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Vesting", - "StorageVersion", - vec![], - [ - 230u8, 137u8, 180u8, 133u8, 142u8, 124u8, 231u8, 234u8, 223u8, 10u8, - 154u8, 98u8, 158u8, 253u8, 228u8, 80u8, 5u8, 9u8, 91u8, 210u8, 252u8, - 9u8, 13u8, 195u8, 193u8, 164u8, 129u8, 113u8, 128u8, 218u8, 8u8, 40u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The minimum amount transferred to call `vested_transfer`."] - pub fn min_vested_transfer( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "Vesting", - "MinVestedTransfer", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ], - ) - } - pub fn max_vesting_schedules( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Vesting", - "MaxVestingSchedules", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) + pub struct RemoveProxies; + impl ::subxt::blocks::StaticExtrinsic for RemoveProxies { + const PALLET: &'static str = "Proxy"; + const CALL: &'static str = "remove_proxies"; } - } - } - } - pub mod utility { - use super::root_mod; - use super::runtime_types; - #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_utility::pallet::Error; - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::pallet_utility::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -19359,12 +19955,14 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Batch { - pub calls: ::std::vec::Vec, + pub struct CreatePure { + pub proxy_type: runtime_types::rococo_runtime::ProxyType, + pub delay: ::core::primitive::u32, + pub index: ::core::primitive::u16, } - impl ::subxt::blocks::StaticExtrinsic for Batch { - const PALLET: &'static str = "Utility"; - const CALL: &'static str = "batch"; + impl ::subxt::blocks::StaticExtrinsic for CreatePure { + const PALLET: &'static str = "Proxy"; + const CALL: &'static str = "create_pure"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -19376,13 +19974,18 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct AsDerivative { + pub struct KillPure { + pub spawner: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub proxy_type: runtime_types::rococo_runtime::ProxyType, pub index: ::core::primitive::u16, - pub call: ::std::boxed::Box, + #[codec(compact)] + pub height: ::core::primitive::u32, + #[codec(compact)] + pub ext_index: ::core::primitive::u32, } - impl ::subxt::blocks::StaticExtrinsic for AsDerivative { - const PALLET: &'static str = "Utility"; - const CALL: &'static str = "as_derivative"; + impl ::subxt::blocks::StaticExtrinsic for KillPure { + const PALLET: &'static str = "Proxy"; + const CALL: &'static str = "kill_pure"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -19394,12 +19997,13 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct BatchAll { - pub calls: ::std::vec::Vec, + pub struct Announce { + pub real: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub call_hash: ::subxt::utils::H256, } - impl ::subxt::blocks::StaticExtrinsic for BatchAll { - const PALLET: &'static str = "Utility"; - const CALL: &'static str = "batch_all"; + impl ::subxt::blocks::StaticExtrinsic for Announce { + const PALLET: &'static str = "Proxy"; + const CALL: &'static str = "announce"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -19411,13 +20015,13 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct DispatchAs { - pub as_origin: ::std::boxed::Box, - pub call: ::std::boxed::Box, + pub struct RemoveAnnouncement { + pub real: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub call_hash: ::subxt::utils::H256, } - impl ::subxt::blocks::StaticExtrinsic for DispatchAs { - const PALLET: &'static str = "Utility"; - const CALL: &'static str = "dispatch_as"; + impl ::subxt::blocks::StaticExtrinsic for RemoveAnnouncement { + const PALLET: &'static str = "Proxy"; + const CALL: &'static str = "remove_announcement"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -19429,12 +20033,13 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ForceBatch { - pub calls: ::std::vec::Vec, + pub struct RejectAnnouncement { + pub delegate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub call_hash: ::subxt::utils::H256, } - impl ::subxt::blocks::StaticExtrinsic for ForceBatch { - const PALLET: &'static str = "Utility"; - const CALL: &'static str = "force_batch"; + impl ::subxt::blocks::StaticExtrinsic for RejectAnnouncement { + const PALLET: &'static str = "Proxy"; + const CALL: &'static str = "reject_announcement"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -19446,132 +20051,233 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct WithWeight { - pub call: ::std::boxed::Box, - pub weight: runtime_types::sp_weights::weight_v2::Weight, + pub struct ProxyAnnounced { + pub delegate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub real: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub force_proxy_type: + ::core::option::Option, + pub call: ::std::boxed::Box, } - impl ::subxt::blocks::StaticExtrinsic for WithWeight { - const PALLET: &'static str = "Utility"; - const CALL: &'static str = "with_weight"; + impl ::subxt::blocks::StaticExtrinsic for ProxyAnnounced { + const PALLET: &'static str = "Proxy"; + const CALL: &'static str = "proxy_announced"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::batch`]."] - pub fn batch( + #[doc = "See [`Pallet::proxy`]."] + pub fn proxy( &self, - calls: ::std::vec::Vec, - ) -> ::subxt::tx::Payload { + real: alias_types::proxy::Real, + force_proxy_type: alias_types::proxy::ForceProxyType, + call: alias_types::proxy::Call, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Utility", - "batch", - types::Batch { calls }, - [ - 182u8, 167u8, 83u8, 183u8, 115u8, 20u8, 90u8, 60u8, 18u8, 8u8, 78u8, - 51u8, 122u8, 27u8, 88u8, 130u8, 186u8, 66u8, 26u8, 13u8, 185u8, 206u8, - 16u8, 243u8, 130u8, 87u8, 242u8, 255u8, 110u8, 216u8, 117u8, 99u8, - ], - ) - } - #[doc = "See [`Pallet::as_derivative`]."] - pub fn as_derivative( + "Proxy", + "proxy", + types::Proxy { + real, + force_proxy_type, + call: ::std::boxed::Box::new(call), + }, + [ + 244u8, 249u8, 206u8, 185u8, 48u8, 156u8, 194u8, 100u8, 198u8, 133u8, + 26u8, 248u8, 122u8, 194u8, 19u8, 42u8, 6u8, 201u8, 112u8, 79u8, 19u8, + 134u8, 145u8, 157u8, 129u8, 237u8, 139u8, 133u8, 227u8, 43u8, 56u8, + 153u8, + ], + ) + } + #[doc = "See [`Pallet::add_proxy`]."] + pub fn add_proxy( &self, - index: ::core::primitive::u16, - call: runtime_types::polkadot_runtime::RuntimeCall, - ) -> ::subxt::tx::Payload { + delegate: alias_types::add_proxy::Delegate, + proxy_type: alias_types::add_proxy::ProxyType, + delay: alias_types::add_proxy::Delay, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Utility", - "as_derivative", - types::AsDerivative { - index, - call: ::std::boxed::Box::new(call), + "Proxy", + "add_proxy", + types::AddProxy { + delegate, + proxy_type, + delay, }, [ - 162u8, 98u8, 19u8, 183u8, 155u8, 194u8, 169u8, 46u8, 67u8, 134u8, - 119u8, 147u8, 198u8, 59u8, 188u8, 212u8, 2u8, 177u8, 151u8, 122u8, - 24u8, 157u8, 132u8, 84u8, 15u8, 4u8, 169u8, 171u8, 84u8, 36u8, 149u8, - 66u8, + 183u8, 95u8, 175u8, 194u8, 140u8, 90u8, 170u8, 28u8, 251u8, 192u8, + 151u8, 138u8, 76u8, 170u8, 207u8, 228u8, 169u8, 124u8, 19u8, 161u8, + 181u8, 87u8, 121u8, 214u8, 101u8, 16u8, 30u8, 122u8, 125u8, 33u8, + 156u8, 197u8, ], ) } - #[doc = "See [`Pallet::batch_all`]."] - pub fn batch_all( + #[doc = "See [`Pallet::remove_proxy`]."] + pub fn remove_proxy( &self, - calls: ::std::vec::Vec, - ) -> ::subxt::tx::Payload { + delegate: alias_types::remove_proxy::Delegate, + proxy_type: alias_types::remove_proxy::ProxyType, + delay: alias_types::remove_proxy::Delay, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Utility", - "batch_all", - types::BatchAll { calls }, + "Proxy", + "remove_proxy", + types::RemoveProxy { + delegate, + proxy_type, + delay, + }, [ - 108u8, 114u8, 118u8, 9u8, 102u8, 178u8, 77u8, 32u8, 118u8, 36u8, 19u8, - 32u8, 135u8, 140u8, 165u8, 72u8, 254u8, 20u8, 69u8, 240u8, 76u8, 173u8, - 146u8, 199u8, 62u8, 14u8, 54u8, 161u8, 13u8, 162u8, 176u8, 138u8, + 225u8, 127u8, 66u8, 209u8, 96u8, 176u8, 66u8, 143u8, 58u8, 248u8, 7u8, + 95u8, 206u8, 250u8, 239u8, 199u8, 58u8, 128u8, 118u8, 204u8, 148u8, + 80u8, 4u8, 147u8, 20u8, 29u8, 35u8, 188u8, 21u8, 175u8, 107u8, 223u8, ], ) } - #[doc = "See [`Pallet::dispatch_as`]."] - pub fn dispatch_as( + #[doc = "See [`Pallet::remove_proxies`]."] + pub fn remove_proxies(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Proxy", + "remove_proxies", + types::RemoveProxies {}, + [ + 1u8, 126u8, 36u8, 227u8, 185u8, 34u8, 218u8, 236u8, 125u8, 231u8, 68u8, + 185u8, 145u8, 63u8, 250u8, 225u8, 103u8, 3u8, 189u8, 37u8, 172u8, + 195u8, 197u8, 216u8, 99u8, 210u8, 240u8, 162u8, 158u8, 132u8, 24u8, + 6u8, + ], + ) + } + #[doc = "See [`Pallet::create_pure`]."] + pub fn create_pure( &self, - as_origin: runtime_types::polkadot_runtime::OriginCaller, - call: runtime_types::polkadot_runtime::RuntimeCall, - ) -> ::subxt::tx::Payload { + proxy_type: alias_types::create_pure::ProxyType, + delay: alias_types::create_pure::Delay, + index: alias_types::create_pure::Index, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Utility", - "dispatch_as", - types::DispatchAs { - as_origin: ::std::boxed::Box::new(as_origin), - call: ::std::boxed::Box::new(call), + "Proxy", + "create_pure", + types::CreatePure { + proxy_type, + delay, + index, }, [ - 183u8, 200u8, 46u8, 162u8, 103u8, 250u8, 167u8, 160u8, 2u8, 135u8, - 221u8, 42u8, 132u8, 255u8, 217u8, 49u8, 235u8, 180u8, 104u8, 89u8, - 161u8, 112u8, 106u8, 61u8, 216u8, 69u8, 67u8, 113u8, 178u8, 2u8, 240u8, - 74u8, + 224u8, 201u8, 76u8, 254u8, 224u8, 64u8, 123u8, 29u8, 77u8, 114u8, + 213u8, 47u8, 9u8, 51u8, 87u8, 4u8, 142u8, 93u8, 212u8, 229u8, 148u8, + 159u8, 143u8, 56u8, 0u8, 34u8, 249u8, 228u8, 37u8, 242u8, 188u8, 28u8, ], ) } - #[doc = "See [`Pallet::force_batch`]."] - pub fn force_batch( + #[doc = "See [`Pallet::kill_pure`]."] + pub fn kill_pure( &self, - calls: ::std::vec::Vec, - ) -> ::subxt::tx::Payload { + spawner: alias_types::kill_pure::Spawner, + proxy_type: alias_types::kill_pure::ProxyType, + index: alias_types::kill_pure::Index, + height: alias_types::kill_pure::Height, + ext_index: alias_types::kill_pure::ExtIndex, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Utility", - "force_batch", - types::ForceBatch { calls }, + "Proxy", + "kill_pure", + types::KillPure { + spawner, + proxy_type, + index, + height, + ext_index, + }, [ - 175u8, 214u8, 12u8, 39u8, 47u8, 227u8, 43u8, 157u8, 243u8, 132u8, - 225u8, 222u8, 17u8, 40u8, 162u8, 175u8, 56u8, 67u8, 29u8, 130u8, 253u8, - 60u8, 63u8, 46u8, 130u8, 52u8, 149u8, 144u8, 150u8, 164u8, 30u8, 153u8, + 59u8, 143u8, 9u8, 128u8, 44u8, 243u8, 110u8, 190u8, 82u8, 230u8, 253u8, + 123u8, 30u8, 59u8, 114u8, 141u8, 255u8, 162u8, 42u8, 179u8, 222u8, + 124u8, 235u8, 148u8, 5u8, 45u8, 254u8, 235u8, 75u8, 224u8, 58u8, 148u8, ], ) } - #[doc = "See [`Pallet::with_weight`]."] - pub fn with_weight( + #[doc = "See [`Pallet::announce`]."] + pub fn announce( &self, - call: runtime_types::polkadot_runtime::RuntimeCall, - weight: runtime_types::sp_weights::weight_v2::Weight, - ) -> ::subxt::tx::Payload { + real: alias_types::announce::Real, + call_hash: alias_types::announce::CallHash, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Utility", - "with_weight", - types::WithWeight { + "Proxy", + "announce", + types::Announce { real, call_hash }, + [ + 105u8, 218u8, 232u8, 82u8, 80u8, 10u8, 11u8, 1u8, 93u8, 241u8, 121u8, + 198u8, 167u8, 218u8, 95u8, 15u8, 75u8, 122u8, 155u8, 233u8, 10u8, + 175u8, 145u8, 73u8, 214u8, 230u8, 67u8, 107u8, 23u8, 239u8, 69u8, + 240u8, + ], + ) + } + #[doc = "See [`Pallet::remove_announcement`]."] + pub fn remove_announcement( + &self, + real: alias_types::remove_announcement::Real, + call_hash: alias_types::remove_announcement::CallHash, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Proxy", + "remove_announcement", + types::RemoveAnnouncement { real, call_hash }, + [ + 40u8, 237u8, 179u8, 128u8, 201u8, 183u8, 20u8, 47u8, 99u8, 182u8, 81u8, + 31u8, 27u8, 212u8, 133u8, 36u8, 8u8, 248u8, 57u8, 230u8, 138u8, 80u8, + 241u8, 147u8, 69u8, 236u8, 156u8, 167u8, 205u8, 49u8, 60u8, 16u8, + ], + ) + } + #[doc = "See [`Pallet::reject_announcement`]."] + pub fn reject_announcement( + &self, + delegate: alias_types::reject_announcement::Delegate, + call_hash: alias_types::reject_announcement::CallHash, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Proxy", + "reject_announcement", + types::RejectAnnouncement { + delegate, + call_hash, + }, + [ + 150u8, 178u8, 49u8, 160u8, 211u8, 75u8, 58u8, 228u8, 121u8, 253u8, + 167u8, 72u8, 68u8, 105u8, 159u8, 52u8, 41u8, 155u8, 92u8, 26u8, 169u8, + 177u8, 102u8, 36u8, 1u8, 47u8, 87u8, 189u8, 223u8, 238u8, 244u8, 110u8, + ], + ) + } + #[doc = "See [`Pallet::proxy_announced`]."] + pub fn proxy_announced( + &self, + delegate: alias_types::proxy_announced::Delegate, + real: alias_types::proxy_announced::Real, + force_proxy_type: alias_types::proxy_announced::ForceProxyType, + call: alias_types::proxy_announced::Call, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Proxy", + "proxy_announced", + types::ProxyAnnounced { + delegate, + real, + force_proxy_type, call: ::std::boxed::Box::new(call), - weight, }, [ - 234u8, 55u8, 4u8, 177u8, 174u8, 244u8, 173u8, 247u8, 186u8, 137u8, - 132u8, 35u8, 201u8, 235u8, 18u8, 186u8, 85u8, 247u8, 187u8, 103u8, - 68u8, 44u8, 100u8, 200u8, 172u8, 82u8, 224u8, 90u8, 190u8, 186u8, - 136u8, 209u8, + 217u8, 199u8, 199u8, 95u8, 222u8, 27u8, 176u8, 48u8, 0u8, 226u8, 245u8, + 221u8, 226u8, 48u8, 29u8, 233u8, 28u8, 187u8, 52u8, 17u8, 172u8, 42u8, + 88u8, 107u8, 61u8, 104u8, 65u8, 42u8, 35u8, 53u8, 80u8, 48u8, ], ) } } } #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_utility::pallet::Event; + pub type Event = runtime_types::pallet_proxy::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -19584,15 +20290,13 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Batch of dispatches did not complete fully. Index of first failing dispatch given, as"] - #[doc = "well as the error."] - pub struct BatchInterrupted { - pub index: ::core::primitive::u32, - pub error: runtime_types::sp_runtime::DispatchError, + #[doc = "A proxy was executed correctly, with the given."] + pub struct ProxyExecuted { + pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, } - impl ::subxt::events::StaticEvent for BatchInterrupted { - const PALLET: &'static str = "Utility"; - const EVENT: &'static str = "BatchInterrupted"; + impl ::subxt::events::StaticEvent for ProxyExecuted { + const PALLET: &'static str = "Proxy"; + const EVENT: &'static str = "ProxyExecuted"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -19604,27 +20308,17 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Batch of dispatches completed fully with no error."] - pub struct BatchCompleted; - impl ::subxt::events::StaticEvent for BatchCompleted { - const PALLET: &'static str = "Utility"; - const EVENT: &'static str = "BatchCompleted"; + #[doc = "A pure account has been created by new proxy with given"] + #[doc = "disambiguation index and proxy type."] + pub struct PureCreated { + pub pure: ::subxt::utils::AccountId32, + pub who: ::subxt::utils::AccountId32, + pub proxy_type: runtime_types::rococo_runtime::ProxyType, + pub disambiguation_index: ::core::primitive::u16, } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Batch of dispatches completed but has errors."] - pub struct BatchCompletedWithErrors; - impl ::subxt::events::StaticEvent for BatchCompletedWithErrors { - const PALLET: &'static str = "Utility"; - const EVENT: &'static str = "BatchCompletedWithErrors"; + impl ::subxt::events::StaticEvent for PureCreated { + const PALLET: &'static str = "Proxy"; + const EVENT: &'static str = "PureCreated"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -19636,11 +20330,15 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A single item within a Batch of dispatches has completed with no error."] - pub struct ItemCompleted; - impl ::subxt::events::StaticEvent for ItemCompleted { - const PALLET: &'static str = "Utility"; - const EVENT: &'static str = "ItemCompleted"; + #[doc = "An announcement was placed to make a call in the future."] + pub struct Announced { + pub real: ::subxt::utils::AccountId32, + pub proxy: ::subxt::utils::AccountId32, + pub call_hash: ::subxt::utils::H256, + } + impl ::subxt::events::StaticEvent for Announced { + const PALLET: &'static str = "Proxy"; + const EVENT: &'static str = "Announced"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -19652,13 +20350,16 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A single item within a Batch of dispatches has completed with error."] - pub struct ItemFailed { - pub error: runtime_types::sp_runtime::DispatchError, + #[doc = "A proxy was added."] + pub struct ProxyAdded { + pub delegator: ::subxt::utils::AccountId32, + pub delegatee: ::subxt::utils::AccountId32, + pub proxy_type: runtime_types::rococo_runtime::ProxyType, + pub delay: ::core::primitive::u32, } - impl ::subxt::events::StaticEvent for ItemFailed { - const PALLET: &'static str = "Utility"; - const EVENT: &'static str = "ItemFailed"; + impl ::subxt::events::StaticEvent for ProxyAdded { + const PALLET: &'static str = "Proxy"; + const EVENT: &'static str = "ProxyAdded"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -19670,26 +20371,204 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A call was dispatched."] - pub struct DispatchedAs { - pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + #[doc = "A proxy was removed."] + pub struct ProxyRemoved { + pub delegator: ::subxt::utils::AccountId32, + pub delegatee: ::subxt::utils::AccountId32, + pub proxy_type: runtime_types::rococo_runtime::ProxyType, + pub delay: ::core::primitive::u32, } - impl ::subxt::events::StaticEvent for DispatchedAs { - const PALLET: &'static str = "Utility"; - const EVENT: &'static str = "DispatchedAs"; + impl ::subxt::events::StaticEvent for ProxyRemoved { + const PALLET: &'static str = "Proxy"; + const EVENT: &'static str = "ProxyRemoved"; + } + } + pub mod storage { + use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod proxies { + use super::runtime_types; + pub type Proxies = ( + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_proxy::ProxyDefinition< + ::subxt::utils::AccountId32, + runtime_types::rococo_runtime::ProxyType, + ::core::primitive::u32, + >, + >, + ::core::primitive::u128, + ); + } + pub mod announcements { + use super::runtime_types; + pub type Announcements = ( + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_proxy::Announcement< + ::subxt::utils::AccountId32, + ::subxt::utils::H256, + ::core::primitive::u32, + >, + >, + ::core::primitive::u128, + ); + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " The set of account proxies. Maps the account which has delegated to the accounts"] + #[doc = " which are being delegated to, together with the amount held on deposit."] + pub fn proxies_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::proxies::Proxies, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Proxy", + "Proxies", + vec![], + [ + 92u8, 131u8, 10u8, 14u8, 241u8, 148u8, 230u8, 81u8, 54u8, 152u8, 147u8, + 180u8, 85u8, 28u8, 87u8, 215u8, 110u8, 13u8, 158u8, 207u8, 77u8, 102u8, + 97u8, 57u8, 179u8, 237u8, 153u8, 148u8, 99u8, 141u8, 15u8, 126u8, + ], + ) + } + #[doc = " The set of account proxies. Maps the account which has delegated to the accounts"] + #[doc = " which are being delegated to, together with the amount held on deposit."] + pub fn proxies( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::proxies::Proxies, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Proxy", + "Proxies", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 92u8, 131u8, 10u8, 14u8, 241u8, 148u8, 230u8, 81u8, 54u8, 152u8, 147u8, + 180u8, 85u8, 28u8, 87u8, 215u8, 110u8, 13u8, 158u8, 207u8, 77u8, 102u8, + 97u8, 57u8, 179u8, 237u8, 153u8, 148u8, 99u8, 141u8, 15u8, 126u8, + ], + ) + } + #[doc = " The announcements made by the proxy (key)."] + pub fn announcements_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::announcements::Announcements, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Proxy", + "Announcements", + vec![], + [ + 129u8, 228u8, 198u8, 210u8, 90u8, 69u8, 151u8, 198u8, 206u8, 174u8, + 148u8, 58u8, 134u8, 14u8, 53u8, 56u8, 234u8, 71u8, 84u8, 247u8, 246u8, + 207u8, 117u8, 221u8, 84u8, 72u8, 254u8, 215u8, 102u8, 49u8, 21u8, + 173u8, + ], + ) + } + #[doc = " The announcements made by the proxy (key)."] + pub fn announcements( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::announcements::Announcements, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Proxy", + "Announcements", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 129u8, 228u8, 198u8, 210u8, 90u8, 69u8, 151u8, 198u8, 206u8, 174u8, + 148u8, 58u8, 134u8, 14u8, 53u8, 56u8, 234u8, 71u8, 84u8, 247u8, 246u8, + 207u8, 117u8, 221u8, 84u8, 72u8, 254u8, 215u8, 102u8, 49u8, 21u8, + 173u8, + ], + ) + } } } pub mod constants { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - #[doc = " The limit on the number of batched calls."] - pub fn batched_calls_limit( + #[doc = " The base amount of currency needed to reserve for creating a proxy."] + #[doc = ""] + #[doc = " This is held for an additional storage item whose value size is"] + #[doc = " `sizeof(Balance)` bytes and whose key size is `sizeof(AccountId)` bytes."] + pub fn proxy_deposit_base( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( - "Utility", - "batched_calls_limit", + "Proxy", + "ProxyDepositBase", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[doc = " The amount of currency needed per proxy added."] + #[doc = ""] + #[doc = " This is held for adding 32 bytes plus an instance of `ProxyType` more into a"] + #[doc = " pre-existing storage value. Thus, when configuring `ProxyDepositFactor` one should take"] + #[doc = " into account `32 + proxy_type.encode().len()` bytes of data."] + pub fn proxy_deposit_factor( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Proxy", + "ProxyDepositFactor", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[doc = " The maximum amount of proxies allowed for a single account."] + pub fn max_proxies(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Proxy", + "MaxProxies", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The maximum amount of time-delayed announcements that are allowed to be pending."] + pub fn max_pending(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Proxy", + "MaxPending", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, @@ -19698,39 +20577,92 @@ pub mod api { ], ) } + #[doc = " The base amount of currency needed to reserve for creating an announcement."] + #[doc = ""] + #[doc = " This is held when a new storage item holding a `Balance` is created (typically 16"] + #[doc = " bytes)."] + pub fn announcement_deposit_base( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Proxy", + "AnnouncementDepositBase", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[doc = " The amount of currency needed per announcement made."] + #[doc = ""] + #[doc = " This is held for adding an `AccountId`, `Hash` and `BlockNumber` (typically 68 bytes)"] + #[doc = " into a pre-existing storage value."] + pub fn announcement_deposit_factor( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Proxy", + "AnnouncementDepositFactor", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } } } } - pub mod identity { + pub mod multisig { use super::root_mod; use super::runtime_types; #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_identity::pallet::Error; - #[doc = "Identity pallet declaration."] - pub type Call = runtime_types::pallet_identity::pallet::Call; + pub type Error = runtime_types::pallet_multisig::pallet::Error; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::pallet_multisig::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { + pub mod alias_types { use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct AddRegistrar { - pub account: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub mod as_multi_threshold_1 { + use super::runtime_types; + pub type OtherSignatories = ::std::vec::Vec<::subxt::utils::AccountId32>; + pub type Call = runtime_types::rococo_runtime::RuntimeCall; } - impl ::subxt::blocks::StaticExtrinsic for AddRegistrar { - const PALLET: &'static str = "Identity"; - const CALL: &'static str = "add_registrar"; + pub mod as_multi { + use super::runtime_types; + pub type Threshold = ::core::primitive::u16; + pub type OtherSignatories = ::std::vec::Vec<::subxt::utils::AccountId32>; + pub type MaybeTimepoint = ::core::option::Option< + runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, + >; + pub type Call = runtime_types::rococo_runtime::RuntimeCall; + pub type MaxWeight = runtime_types::sp_weights::weight_v2::Weight; + } + pub mod approve_as_multi { + use super::runtime_types; + pub type Threshold = ::core::primitive::u16; + pub type OtherSignatories = ::std::vec::Vec<::subxt::utils::AccountId32>; + pub type MaybeTimepoint = ::core::option::Option< + runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, + >; + pub type CallHash = [::core::primitive::u8; 32usize]; + pub type MaxWeight = runtime_types::sp_weights::weight_v2::Weight; + } + pub mod cancel_as_multi { + use super::runtime_types; + pub type Threshold = ::core::primitive::u16; + pub type OtherSignatories = ::std::vec::Vec<::subxt::utils::AccountId32>; + pub type Timepoint = + runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>; + pub type CallHash = [::core::primitive::u8; 32usize]; } + } + pub mod types { + use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -19741,13 +20673,13 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SetIdentity { - pub info: - ::std::boxed::Box, + pub struct AsMultiThreshold1 { + pub other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, + pub call: ::std::boxed::Box, } - impl ::subxt::blocks::StaticExtrinsic for SetIdentity { - const PALLET: &'static str = "Identity"; - const CALL: &'static str = "set_identity"; + impl ::subxt::blocks::StaticExtrinsic for AsMultiThreshold1 { + const PALLET: &'static str = "Multisig"; + const CALL: &'static str = "as_multi_threshold_1"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -19759,15 +20691,18 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SetSubs { - pub subs: ::std::vec::Vec<( - ::subxt::utils::AccountId32, - runtime_types::pallet_identity::types::Data, - )>, + pub struct AsMulti { + pub threshold: ::core::primitive::u16, + pub other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, + pub maybe_timepoint: ::core::option::Option< + runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, + >, + pub call: ::std::boxed::Box, + pub max_weight: runtime_types::sp_weights::weight_v2::Weight, } - impl ::subxt::blocks::StaticExtrinsic for SetSubs { - const PALLET: &'static str = "Identity"; - const CALL: &'static str = "set_subs"; + impl ::subxt::blocks::StaticExtrinsic for AsMulti { + const PALLET: &'static str = "Multisig"; + const CALL: &'static str = "as_multi"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -19779,10 +20714,18 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ClearIdentity; - impl ::subxt::blocks::StaticExtrinsic for ClearIdentity { - const PALLET: &'static str = "Identity"; - const CALL: &'static str = "clear_identity"; + pub struct ApproveAsMulti { + pub threshold: ::core::primitive::u16, + pub other_signatories: ::std::vec::Vec<::subxt::utils::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: runtime_types::sp_weights::weight_v2::Weight, + } + impl ::subxt::blocks::StaticExtrinsic for ApproveAsMulti { + const PALLET: &'static str = "Multisig"; + const CALL: &'static str = "approve_as_multi"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -19794,116 +20737,388 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct RequestJudgement { - #[codec(compact)] - pub reg_index: ::core::primitive::u32, - #[codec(compact)] - pub max_fee: ::core::primitive::u128, + pub struct CancelAsMulti { + pub threshold: ::core::primitive::u16, + pub other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, + pub timepoint: + runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, + pub call_hash: [::core::primitive::u8; 32usize], } - impl ::subxt::blocks::StaticExtrinsic for RequestJudgement { - const PALLET: &'static str = "Identity"; - const CALL: &'static str = "request_judgement"; + impl ::subxt::blocks::StaticExtrinsic for CancelAsMulti { + const PALLET: &'static str = "Multisig"; + const CALL: &'static str = "cancel_as_multi"; } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct CancelRequest { - pub reg_index: ::core::primitive::u32, + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::as_multi_threshold_1`]."] + pub fn as_multi_threshold_1( + &self, + other_signatories: alias_types::as_multi_threshold_1::OtherSignatories, + call: alias_types::as_multi_threshold_1::Call, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Multisig", + "as_multi_threshold_1", + types::AsMultiThreshold1 { + other_signatories, + call: ::std::boxed::Box::new(call), + }, + [ + 228u8, 69u8, 114u8, 33u8, 253u8, 99u8, 173u8, 184u8, 219u8, 170u8, + 155u8, 9u8, 231u8, 77u8, 180u8, 97u8, 26u8, 0u8, 97u8, 107u8, 112u8, + 223u8, 207u8, 156u8, 86u8, 17u8, 115u8, 211u8, 188u8, 122u8, 51u8, + 55u8, + ], + ) } - impl ::subxt::blocks::StaticExtrinsic for CancelRequest { - const PALLET: &'static str = "Identity"; - const CALL: &'static str = "cancel_request"; + #[doc = "See [`Pallet::as_multi`]."] + pub fn as_multi( + &self, + threshold: alias_types::as_multi::Threshold, + other_signatories: alias_types::as_multi::OtherSignatories, + maybe_timepoint: alias_types::as_multi::MaybeTimepoint, + call: alias_types::as_multi::Call, + max_weight: alias_types::as_multi::MaxWeight, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Multisig", + "as_multi", + types::AsMulti { + threshold, + other_signatories, + maybe_timepoint, + call: ::std::boxed::Box::new(call), + max_weight, + }, + [ + 110u8, 238u8, 2u8, 11u8, 232u8, 202u8, 100u8, 39u8, 103u8, 211u8, + 204u8, 203u8, 228u8, 31u8, 206u8, 103u8, 97u8, 57u8, 217u8, 24u8, + 229u8, 237u8, 56u8, 84u8, 220u8, 240u8, 169u8, 211u8, 26u8, 98u8, 37u8, + 0u8, + ], + ) } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SetFee { - #[codec(compact)] - pub index: ::core::primitive::u32, - #[codec(compact)] - pub fee: ::core::primitive::u128, + #[doc = "See [`Pallet::approve_as_multi`]."] + pub fn approve_as_multi( + &self, + threshold: alias_types::approve_as_multi::Threshold, + other_signatories: alias_types::approve_as_multi::OtherSignatories, + maybe_timepoint: alias_types::approve_as_multi::MaybeTimepoint, + call_hash: alias_types::approve_as_multi::CallHash, + max_weight: alias_types::approve_as_multi::MaxWeight, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Multisig", + "approve_as_multi", + types::ApproveAsMulti { + threshold, + other_signatories, + maybe_timepoint, + call_hash, + max_weight, + }, + [ + 248u8, 46u8, 131u8, 35u8, 204u8, 12u8, 218u8, 150u8, 88u8, 131u8, 89u8, + 13u8, 95u8, 122u8, 87u8, 107u8, 136u8, 154u8, 92u8, 199u8, 108u8, 92u8, + 207u8, 171u8, 113u8, 8u8, 47u8, 248u8, 65u8, 26u8, 203u8, 135u8, + ], + ) } - impl ::subxt::blocks::StaticExtrinsic for SetFee { - const PALLET: &'static str = "Identity"; - const CALL: &'static str = "set_fee"; + #[doc = "See [`Pallet::cancel_as_multi`]."] + pub fn cancel_as_multi( + &self, + threshold: alias_types::cancel_as_multi::Threshold, + other_signatories: alias_types::cancel_as_multi::OtherSignatories, + timepoint: alias_types::cancel_as_multi::Timepoint, + call_hash: alias_types::cancel_as_multi::CallHash, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Multisig", + "cancel_as_multi", + types::CancelAsMulti { + threshold, + other_signatories, + timepoint, + call_hash, + }, + [ + 212u8, 179u8, 123u8, 40u8, 209u8, 228u8, 181u8, 0u8, 109u8, 28u8, 27u8, + 48u8, 15u8, 47u8, 203u8, 54u8, 106u8, 114u8, 28u8, 118u8, 101u8, 201u8, + 95u8, 187u8, 46u8, 182u8, 4u8, 30u8, 227u8, 105u8, 14u8, 81u8, + ], + ) } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SetAccountId { - #[codec(compact)] - pub index: ::core::primitive::u32, - pub new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + } + } + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_multisig::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A new multisig operation has begun."] + pub struct NewMultisig { + pub approving: ::subxt::utils::AccountId32, + pub multisig: ::subxt::utils::AccountId32, + pub call_hash: [::core::primitive::u8; 32usize], + } + impl ::subxt::events::StaticEvent for NewMultisig { + const PALLET: &'static str = "Multisig"; + const EVENT: &'static str = "NewMultisig"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A multisig operation has been approved by someone."] + pub struct MultisigApproval { + pub approving: ::subxt::utils::AccountId32, + pub timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, + pub multisig: ::subxt::utils::AccountId32, + pub call_hash: [::core::primitive::u8; 32usize], + } + impl ::subxt::events::StaticEvent for MultisigApproval { + const PALLET: &'static str = "Multisig"; + const EVENT: &'static str = "MultisigApproval"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A multisig operation has been executed."] + pub struct MultisigExecuted { + pub approving: ::subxt::utils::AccountId32, + pub timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, + pub multisig: ::subxt::utils::AccountId32, + pub call_hash: [::core::primitive::u8; 32usize], + pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + } + impl ::subxt::events::StaticEvent for MultisigExecuted { + const PALLET: &'static str = "Multisig"; + const EVENT: &'static str = "MultisigExecuted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A multisig operation has been cancelled."] + pub struct MultisigCancelled { + pub cancelling: ::subxt::utils::AccountId32, + pub timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, + pub multisig: ::subxt::utils::AccountId32, + pub call_hash: [::core::primitive::u8; 32usize], + } + impl ::subxt::events::StaticEvent for MultisigCancelled { + const PALLET: &'static str = "Multisig"; + const EVENT: &'static str = "MultisigCancelled"; + } + } + pub mod storage { + use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod multisigs { + use super::runtime_types; + pub type Multisigs = runtime_types::pallet_multisig::Multisig< + ::core::primitive::u32, + ::core::primitive::u128, + ::subxt::utils::AccountId32, + >; } - impl ::subxt::blocks::StaticExtrinsic for SetAccountId { - const PALLET: &'static str = "Identity"; - const CALL: &'static str = "set_account_id"; + } + pub struct StorageApi; + impl StorageApi { + #[doc = " The set of open multisig operations."] + pub fn multisigs_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::multisigs::Multisigs, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Multisig", + "Multisigs", + vec![], + [ + 154u8, 109u8, 45u8, 18u8, 155u8, 151u8, 81u8, 28u8, 86u8, 127u8, 189u8, + 151u8, 49u8, 61u8, 12u8, 149u8, 84u8, 61u8, 110u8, 197u8, 200u8, 140u8, + 37u8, 100u8, 14u8, 162u8, 158u8, 161u8, 48u8, 117u8, 102u8, 61u8, + ], + ) } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SetFields { - #[codec(compact)] - pub index: ::core::primitive::u32, - pub fields: runtime_types::pallet_identity::types::BitFlags< - runtime_types::pallet_identity::types::IdentityField, - >, + #[doc = " The set of open multisig operations."] + pub fn multisigs_iter1( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::multisigs::Multisigs, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Multisig", + "Multisigs", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 154u8, 109u8, 45u8, 18u8, 155u8, 151u8, 81u8, 28u8, 86u8, 127u8, 189u8, + 151u8, 49u8, 61u8, 12u8, 149u8, 84u8, 61u8, 110u8, 197u8, 200u8, 140u8, + 37u8, 100u8, 14u8, 162u8, 158u8, 161u8, 48u8, 117u8, 102u8, 61u8, + ], + ) } - impl ::subxt::blocks::StaticExtrinsic for SetFields { - const PALLET: &'static str = "Identity"; - const CALL: &'static str = "set_fields"; + #[doc = " The set of open multisig operations."] + pub fn multisigs( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _1: impl ::std::borrow::Borrow<[::core::primitive::u8; 32usize]>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::multisigs::Multisigs, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Multisig", + "Multisigs", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 154u8, 109u8, 45u8, 18u8, 155u8, 151u8, 81u8, 28u8, 86u8, 127u8, 189u8, + 151u8, 49u8, 61u8, 12u8, 149u8, 84u8, 61u8, 110u8, 197u8, 200u8, 140u8, + 37u8, 100u8, 14u8, 162u8, 158u8, 161u8, 48u8, 117u8, 102u8, 61u8, + ], + ) } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ProvideJudgement { - #[codec(compact)] - pub reg_index: ::core::primitive::u32, - pub target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub judgement: - runtime_types::pallet_identity::types::Judgement<::core::primitive::u128>, - pub identity: ::subxt::utils::H256, + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The base amount of currency needed to reserve for creating a multisig execution or to"] + #[doc = " store a dispatch call for later."] + #[doc = ""] + #[doc = " This is held for an additional storage item whose value size is"] + #[doc = " `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is"] + #[doc = " `32 + sizeof(AccountId)` bytes."] + pub fn deposit_base(&self) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Multisig", + "DepositBase", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) } - impl ::subxt::blocks::StaticExtrinsic for ProvideJudgement { - const PALLET: &'static str = "Identity"; - const CALL: &'static str = "provide_judgement"; + #[doc = " The amount of currency needed per unit threshold when creating a multisig execution."] + #[doc = ""] + #[doc = " This is held for adding 32 bytes more into a pre-existing storage value."] + pub fn deposit_factor( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Multisig", + "DepositFactor", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[doc = " The maximum amount of signatories allowed in the multisig."] + pub fn max_signatories( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Multisig", + "MaxSignatories", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + } + } + } + pub mod preimage { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Error` enum of this pallet."] + pub type Error = runtime_types::pallet_preimage::pallet::Error; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::pallet_preimage::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod alias_types { + use super::runtime_types; + pub mod note_preimage { + use super::runtime_types; + pub type Bytes = ::std::vec::Vec<::core::primitive::u8>; + } + pub mod unnote_preimage { + use super::runtime_types; + pub type Hash = ::subxt::utils::H256; } + pub mod request_preimage { + use super::runtime_types; + pub type Hash = ::subxt::utils::H256; + } + pub mod unrequest_preimage { + use super::runtime_types; + pub type Hash = ::subxt::utils::H256; + } + pub mod ensure_updated { + use super::runtime_types; + pub type Hashes = ::std::vec::Vec<::subxt::utils::H256>; + } + } + pub mod types { + use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -19914,12 +21129,12 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct KillIdentity { - pub target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub struct NotePreimage { + pub bytes: ::std::vec::Vec<::core::primitive::u8>, } - impl ::subxt::blocks::StaticExtrinsic for KillIdentity { - const PALLET: &'static str = "Identity"; - const CALL: &'static str = "kill_identity"; + impl ::subxt::blocks::StaticExtrinsic for NotePreimage { + const PALLET: &'static str = "Preimage"; + const CALL: &'static str = "note_preimage"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -19931,13 +21146,12 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct AddSub { - pub sub: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub data: runtime_types::pallet_identity::types::Data, + pub struct UnnotePreimage { + pub hash: ::subxt::utils::H256, } - impl ::subxt::blocks::StaticExtrinsic for AddSub { - const PALLET: &'static str = "Identity"; - const CALL: &'static str = "add_sub"; + impl ::subxt::blocks::StaticExtrinsic for UnnotePreimage { + const PALLET: &'static str = "Preimage"; + const CALL: &'static str = "unnote_preimage"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -19949,13 +21163,12 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct RenameSub { - pub sub: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub data: runtime_types::pallet_identity::types::Data, + pub struct RequestPreimage { + pub hash: ::subxt::utils::H256, } - impl ::subxt::blocks::StaticExtrinsic for RenameSub { - const PALLET: &'static str = "Identity"; - const CALL: &'static str = "rename_sub"; + impl ::subxt::blocks::StaticExtrinsic for RequestPreimage { + const PALLET: &'static str = "Preimage"; + const CALL: &'static str = "request_preimage"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -19967,12 +21180,12 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct RemoveSub { - pub sub: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub struct UnrequestPreimage { + pub hash: ::subxt::utils::H256, } - impl ::subxt::blocks::StaticExtrinsic for RemoveSub { - const PALLET: &'static str = "Identity"; - const CALL: &'static str = "remove_sub"; + impl ::subxt::blocks::StaticExtrinsic for UnrequestPreimage { + const PALLET: &'static str = "Preimage"; + const CALL: &'static str = "unrequest_preimage"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -19984,285 +21197,103 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct QuitSub; - impl ::subxt::blocks::StaticExtrinsic for QuitSub { - const PALLET: &'static str = "Identity"; - const CALL: &'static str = "quit_sub"; + pub struct EnsureUpdated { + pub hashes: ::std::vec::Vec<::subxt::utils::H256>, + } + impl ::subxt::blocks::StaticExtrinsic for EnsureUpdated { + const PALLET: &'static str = "Preimage"; + const CALL: &'static str = "ensure_updated"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::add_registrar`]."] - pub fn add_registrar( + #[doc = "See [`Pallet::note_preimage`]."] + pub fn note_preimage( &self, - account: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - ) -> ::subxt::tx::Payload { + bytes: alias_types::note_preimage::Bytes, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Identity", - "add_registrar", - types::AddRegistrar { account }, + "Preimage", + "note_preimage", + types::NotePreimage { bytes }, [ - 6u8, 131u8, 82u8, 191u8, 37u8, 240u8, 158u8, 187u8, 247u8, 98u8, 175u8, - 200u8, 147u8, 78u8, 88u8, 176u8, 227u8, 179u8, 184u8, 194u8, 91u8, 1u8, - 1u8, 20u8, 121u8, 4u8, 96u8, 94u8, 103u8, 140u8, 247u8, 253u8, + 121u8, 88u8, 18u8, 92u8, 176u8, 15u8, 192u8, 198u8, 146u8, 198u8, 38u8, + 242u8, 213u8, 83u8, 7u8, 230u8, 14u8, 110u8, 235u8, 32u8, 215u8, 26u8, + 192u8, 217u8, 113u8, 224u8, 206u8, 96u8, 177u8, 198u8, 246u8, 33u8, ], ) } - #[doc = "See [`Pallet::set_identity`]."] - pub fn set_identity( + #[doc = "See [`Pallet::unnote_preimage`]."] + pub fn unnote_preimage( &self, - info: runtime_types::pallet_identity::types::IdentityInfo, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Identity", - "set_identity", - types::SetIdentity { - info: ::std::boxed::Box::new(info), - }, - [ - 18u8, 86u8, 67u8, 10u8, 116u8, 254u8, 94u8, 95u8, 166u8, 30u8, 204u8, - 189u8, 174u8, 70u8, 191u8, 255u8, 149u8, 93u8, 156u8, 120u8, 105u8, - 138u8, 199u8, 181u8, 43u8, 150u8, 143u8, 254u8, 182u8, 81u8, 86u8, - 45u8, - ], - ) - } - #[doc = "See [`Pallet::set_subs`]."] - pub fn set_subs( - &self, - subs: ::std::vec::Vec<( - ::subxt::utils::AccountId32, - runtime_types::pallet_identity::types::Data, - )>, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Identity", - "set_subs", - types::SetSubs { subs }, - [ - 34u8, 184u8, 18u8, 155u8, 112u8, 247u8, 235u8, 75u8, 209u8, 236u8, - 21u8, 238u8, 43u8, 237u8, 223u8, 147u8, 48u8, 6u8, 39u8, 231u8, 174u8, - 164u8, 243u8, 184u8, 220u8, 151u8, 165u8, 69u8, 219u8, 122u8, 234u8, - 100u8, - ], - ) - } - #[doc = "See [`Pallet::clear_identity`]."] - pub fn clear_identity(&self) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Identity", - "clear_identity", - types::ClearIdentity {}, - [ - 43u8, 115u8, 205u8, 44u8, 24u8, 130u8, 220u8, 69u8, 247u8, 176u8, - 200u8, 175u8, 67u8, 183u8, 36u8, 200u8, 162u8, 132u8, 242u8, 25u8, - 21u8, 106u8, 197u8, 219u8, 141u8, 51u8, 204u8, 13u8, 191u8, 201u8, - 31u8, 31u8, - ], - ) - } - #[doc = "See [`Pallet::request_judgement`]."] - pub fn request_judgement( - &self, - reg_index: ::core::primitive::u32, - max_fee: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Identity", - "request_judgement", - types::RequestJudgement { reg_index, max_fee }, - [ - 83u8, 85u8, 55u8, 184u8, 14u8, 54u8, 49u8, 212u8, 26u8, 148u8, 33u8, - 147u8, 182u8, 54u8, 180u8, 12u8, 61u8, 179u8, 216u8, 157u8, 103u8, - 52u8, 120u8, 252u8, 83u8, 203u8, 144u8, 65u8, 15u8, 3u8, 21u8, 33u8, - ], - ) - } - #[doc = "See [`Pallet::cancel_request`]."] - pub fn cancel_request( - &self, - reg_index: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Identity", - "cancel_request", - types::CancelRequest { reg_index }, - [ - 81u8, 14u8, 133u8, 219u8, 43u8, 84u8, 163u8, 208u8, 21u8, 185u8, 75u8, - 117u8, 126u8, 33u8, 210u8, 106u8, 122u8, 210u8, 35u8, 207u8, 104u8, - 206u8, 41u8, 117u8, 247u8, 108u8, 56u8, 23u8, 123u8, 169u8, 169u8, - 61u8, - ], - ) - } - #[doc = "See [`Pallet::set_fee`]."] - pub fn set_fee( - &self, - index: ::core::primitive::u32, - fee: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Identity", - "set_fee", - types::SetFee { index, fee }, - [ - 131u8, 20u8, 17u8, 127u8, 180u8, 65u8, 225u8, 144u8, 193u8, 60u8, - 131u8, 241u8, 30u8, 149u8, 8u8, 76u8, 29u8, 52u8, 102u8, 108u8, 127u8, - 130u8, 70u8, 18u8, 94u8, 145u8, 179u8, 109u8, 252u8, 219u8, 58u8, - 163u8, - ], - ) - } - #[doc = "See [`Pallet::set_account_id`]."] - pub fn set_account_id( - &self, - index: ::core::primitive::u32, - new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Identity", - "set_account_id", - types::SetAccountId { index, new }, - [ - 68u8, 57u8, 39u8, 134u8, 39u8, 82u8, 156u8, 107u8, 113u8, 99u8, 9u8, - 163u8, 58u8, 249u8, 247u8, 208u8, 38u8, 203u8, 54u8, 153u8, 116u8, - 143u8, 81u8, 46u8, 228u8, 149u8, 127u8, 115u8, 252u8, 83u8, 33u8, - 101u8, - ], - ) - } - #[doc = "See [`Pallet::set_fields`]."] - pub fn set_fields( - &self, - index: ::core::primitive::u32, - fields: runtime_types::pallet_identity::types::BitFlags< - runtime_types::pallet_identity::types::IdentityField, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Identity", - "set_fields", - types::SetFields { index, fields }, - [ - 25u8, 129u8, 119u8, 232u8, 18u8, 32u8, 77u8, 23u8, 185u8, 56u8, 32u8, - 199u8, 74u8, 174u8, 104u8, 203u8, 171u8, 253u8, 19u8, 225u8, 101u8, - 239u8, 14u8, 242u8, 157u8, 51u8, 203u8, 74u8, 1u8, 65u8, 165u8, 205u8, - ], - ) - } - #[doc = "See [`Pallet::provide_judgement`]."] - pub fn provide_judgement( - &self, - reg_index: ::core::primitive::u32, - target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - judgement: runtime_types::pallet_identity::types::Judgement< - ::core::primitive::u128, - >, - identity: ::subxt::utils::H256, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Identity", - "provide_judgement", - types::ProvideJudgement { - reg_index, - target, - judgement, - identity, - }, - [ - 145u8, 188u8, 61u8, 236u8, 183u8, 49u8, 49u8, 149u8, 240u8, 184u8, - 202u8, 75u8, 69u8, 0u8, 95u8, 103u8, 132u8, 24u8, 107u8, 221u8, 236u8, - 75u8, 231u8, 125u8, 39u8, 189u8, 45u8, 202u8, 116u8, 123u8, 236u8, - 96u8, - ], - ) - } - #[doc = "See [`Pallet::kill_identity`]."] - pub fn kill_identity( - &self, - target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - ) -> ::subxt::tx::Payload { + hash: alias_types::unnote_preimage::Hash, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Identity", - "kill_identity", - types::KillIdentity { target }, + "Preimage", + "unnote_preimage", + types::UnnotePreimage { hash }, [ - 114u8, 249u8, 102u8, 62u8, 118u8, 105u8, 185u8, 61u8, 173u8, 52u8, - 57u8, 190u8, 102u8, 74u8, 108u8, 239u8, 142u8, 176u8, 116u8, 51u8, - 49u8, 197u8, 6u8, 183u8, 248u8, 202u8, 202u8, 140u8, 134u8, 59u8, - 103u8, 182u8, + 188u8, 116u8, 222u8, 22u8, 127u8, 215u8, 2u8, 133u8, 96u8, 202u8, + 190u8, 123u8, 203u8, 43u8, 200u8, 161u8, 226u8, 24u8, 49u8, 36u8, + 221u8, 160u8, 130u8, 119u8, 30u8, 138u8, 144u8, 85u8, 5u8, 164u8, + 252u8, 222u8, ], ) } - #[doc = "See [`Pallet::add_sub`]."] - pub fn add_sub( + #[doc = "See [`Pallet::request_preimage`]."] + pub fn request_preimage( &self, - sub: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - data: runtime_types::pallet_identity::types::Data, - ) -> ::subxt::tx::Payload { + hash: alias_types::request_preimage::Hash, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Identity", - "add_sub", - types::AddSub { sub, data }, + "Preimage", + "request_preimage", + types::RequestPreimage { hash }, [ - 3u8, 65u8, 137u8, 35u8, 238u8, 133u8, 56u8, 233u8, 37u8, 125u8, 221u8, - 186u8, 153u8, 74u8, 69u8, 196u8, 244u8, 82u8, 51u8, 7u8, 216u8, 29u8, - 18u8, 16u8, 198u8, 184u8, 0u8, 181u8, 71u8, 227u8, 144u8, 33u8, + 87u8, 0u8, 204u8, 111u8, 43u8, 115u8, 64u8, 209u8, 133u8, 13u8, 83u8, + 45u8, 164u8, 166u8, 233u8, 105u8, 242u8, 238u8, 235u8, 208u8, 113u8, + 134u8, 93u8, 242u8, 86u8, 32u8, 7u8, 152u8, 107u8, 208u8, 79u8, 59u8, ], ) } - #[doc = "See [`Pallet::rename_sub`]."] - pub fn rename_sub( + #[doc = "See [`Pallet::unrequest_preimage`]."] + pub fn unrequest_preimage( &self, - sub: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - data: runtime_types::pallet_identity::types::Data, - ) -> ::subxt::tx::Payload { + hash: alias_types::unrequest_preimage::Hash, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Identity", - "rename_sub", - types::RenameSub { sub, data }, + "Preimage", + "unrequest_preimage", + types::UnrequestPreimage { hash }, [ - 252u8, 50u8, 201u8, 112u8, 49u8, 248u8, 223u8, 239u8, 219u8, 226u8, - 64u8, 68u8, 227u8, 20u8, 30u8, 24u8, 36u8, 77u8, 26u8, 235u8, 144u8, - 240u8, 11u8, 111u8, 145u8, 167u8, 184u8, 207u8, 173u8, 58u8, 152u8, - 202u8, + 55u8, 37u8, 224u8, 149u8, 142u8, 120u8, 8u8, 68u8, 183u8, 225u8, 255u8, + 240u8, 254u8, 111u8, 58u8, 200u8, 113u8, 217u8, 177u8, 203u8, 107u8, + 104u8, 233u8, 87u8, 252u8, 53u8, 33u8, 112u8, 116u8, 254u8, 117u8, + 134u8, ], ) } - #[doc = "See [`Pallet::remove_sub`]."] - pub fn remove_sub( + #[doc = "See [`Pallet::ensure_updated`]."] + pub fn ensure_updated( &self, - sub: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Identity", - "remove_sub", - types::RemoveSub { sub }, - [ - 95u8, 249u8, 171u8, 27u8, 100u8, 186u8, 67u8, 214u8, 226u8, 6u8, 118u8, - 39u8, 91u8, 122u8, 1u8, 87u8, 1u8, 226u8, 101u8, 9u8, 199u8, 167u8, - 84u8, 202u8, 141u8, 196u8, 80u8, 195u8, 15u8, 114u8, 140u8, 144u8, - ], - ) - } - #[doc = "See [`Pallet::quit_sub`]."] - pub fn quit_sub(&self) -> ::subxt::tx::Payload { + hashes: alias_types::ensure_updated::Hashes, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Identity", - "quit_sub", - types::QuitSub {}, + "Preimage", + "ensure_updated", + types::EnsureUpdated { hashes }, [ - 147u8, 131u8, 175u8, 171u8, 187u8, 201u8, 240u8, 26u8, 146u8, 224u8, - 74u8, 166u8, 242u8, 193u8, 204u8, 247u8, 168u8, 93u8, 18u8, 32u8, 27u8, - 208u8, 149u8, 146u8, 179u8, 172u8, 75u8, 112u8, 84u8, 141u8, 233u8, - 223u8, + 254u8, 228u8, 88u8, 44u8, 126u8, 235u8, 188u8, 153u8, 61u8, 27u8, + 103u8, 253u8, 163u8, 161u8, 113u8, 243u8, 87u8, 136u8, 2u8, 231u8, + 209u8, 188u8, 215u8, 106u8, 192u8, 225u8, 75u8, 125u8, 224u8, 96u8, + 221u8, 90u8, ], ) } } } #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_identity::pallet::Event; + pub type Event = runtime_types::pallet_preimage::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -20275,147 +21306,13 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A name was set or reset (which will remove all judgements)."] - pub struct IdentitySet { - pub who: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for IdentitySet { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "IdentitySet"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A name was cleared, and the given balance returned."] - pub struct IdentityCleared { - pub who: ::subxt::utils::AccountId32, - pub deposit: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for IdentityCleared { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "IdentityCleared"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A name was removed and the given balance slashed."] - pub struct IdentityKilled { - pub who: ::subxt::utils::AccountId32, - pub deposit: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for IdentityKilled { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "IdentityKilled"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A judgement was asked from a registrar."] - pub struct JudgementRequested { - pub who: ::subxt::utils::AccountId32, - pub registrar_index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for JudgementRequested { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "JudgementRequested"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A judgement request was retracted."] - pub struct JudgementUnrequested { - pub who: ::subxt::utils::AccountId32, - pub registrar_index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for JudgementUnrequested { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "JudgementUnrequested"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A judgement was given by a registrar."] - pub struct JudgementGiven { - pub target: ::subxt::utils::AccountId32, - pub registrar_index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for JudgementGiven { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "JudgementGiven"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A registrar was added."] - pub struct RegistrarAdded { - pub registrar_index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for RegistrarAdded { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "RegistrarAdded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A sub-identity was added to an identity and the deposit paid."] - pub struct SubIdentityAdded { - pub sub: ::subxt::utils::AccountId32, - pub main: ::subxt::utils::AccountId32, - pub deposit: ::core::primitive::u128, + #[doc = "A preimage has been noted."] + pub struct Noted { + pub hash: ::subxt::utils::H256, } - impl ::subxt::events::StaticEvent for SubIdentityAdded { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "SubIdentityAdded"; + impl ::subxt::events::StaticEvent for Noted { + const PALLET: &'static str = "Preimage"; + const EVENT: &'static str = "Noted"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20427,15 +21324,13 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A sub-identity was removed from an identity and the deposit freed."] - pub struct SubIdentityRemoved { - pub sub: ::subxt::utils::AccountId32, - pub main: ::subxt::utils::AccountId32, - pub deposit: ::core::primitive::u128, + #[doc = "A preimage has been requested."] + pub struct Requested { + pub hash: ::subxt::utils::H256, } - impl ::subxt::events::StaticEvent for SubIdentityRemoved { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "SubIdentityRemoved"; + impl ::subxt::events::StaticEvent for Requested { + const PALLET: &'static str = "Preimage"; + const EVENT: &'static str = "Requested"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20447,354 +21342,554 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A sub-identity was cleared, and the given deposit repatriated from the"] - #[doc = "main identity account to the sub-identity account."] - pub struct SubIdentityRevoked { - pub sub: ::subxt::utils::AccountId32, - pub main: ::subxt::utils::AccountId32, - pub deposit: ::core::primitive::u128, + #[doc = "A preimage has ben cleared."] + pub struct Cleared { + pub hash: ::subxt::utils::H256, } - impl ::subxt::events::StaticEvent for SubIdentityRevoked { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "SubIdentityRevoked"; + impl ::subxt::events::StaticEvent for Cleared { + const PALLET: &'static str = "Preimage"; + const EVENT: &'static str = "Cleared"; } } pub mod storage { use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod status_for { + use super::runtime_types; + pub type StatusFor = runtime_types::pallet_preimage::OldRequestStatus< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >; + } + pub mod request_status_for { + use super::runtime_types; + pub type RequestStatusFor = runtime_types::pallet_preimage::RequestStatus< + ::subxt::utils::AccountId32, + runtime_types::frame_support::traits::tokens::fungible::HoldConsideration, + >; + } + pub mod preimage_for { + use super::runtime_types; + pub type PreimageFor = + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; + } + } pub struct StorageApi; impl StorageApi { - #[doc = " Information that is pertinent to identify the entity behind an account."] - #[doc = ""] - #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] - pub fn identity_of_iter( + #[doc = " The request status of a given hash."] + pub fn status_for_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_identity::types::Registration<::core::primitive::u128>, + alias_types::status_for::StatusFor, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Identity", - "IdentityOf", + "Preimage", + "StatusFor", vec![], [ - 112u8, 2u8, 209u8, 123u8, 138u8, 171u8, 80u8, 243u8, 226u8, 88u8, 81u8, - 49u8, 59u8, 172u8, 88u8, 180u8, 255u8, 119u8, 57u8, 16u8, 169u8, 149u8, - 77u8, 239u8, 73u8, 182u8, 28u8, 112u8, 150u8, 110u8, 65u8, 139u8, + 187u8, 100u8, 54u8, 112u8, 96u8, 129u8, 36u8, 149u8, 127u8, 226u8, + 126u8, 171u8, 72u8, 189u8, 59u8, 126u8, 204u8, 125u8, 67u8, 204u8, + 231u8, 6u8, 212u8, 135u8, 166u8, 252u8, 5u8, 46u8, 111u8, 120u8, 54u8, + 209u8, ], ) } - #[doc = " Information that is pertinent to identify the entity behind an account."] - #[doc = ""] - #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] - pub fn identity_of( + #[doc = " The request status of a given hash."] + pub fn status_for( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_identity::types::Registration<::core::primitive::u128>, + alias_types::status_for::StatusFor, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( - "Identity", - "IdentityOf", + "Preimage", + "StatusFor", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 112u8, 2u8, 209u8, 123u8, 138u8, 171u8, 80u8, 243u8, 226u8, 88u8, 81u8, - 49u8, 59u8, 172u8, 88u8, 180u8, 255u8, 119u8, 57u8, 16u8, 169u8, 149u8, - 77u8, 239u8, 73u8, 182u8, 28u8, 112u8, 150u8, 110u8, 65u8, 139u8, + 187u8, 100u8, 54u8, 112u8, 96u8, 129u8, 36u8, 149u8, 127u8, 226u8, + 126u8, 171u8, 72u8, 189u8, 59u8, 126u8, 204u8, 125u8, 67u8, 204u8, + 231u8, 6u8, 212u8, 135u8, 166u8, 252u8, 5u8, 46u8, 111u8, 120u8, 54u8, + 209u8, ], ) } - #[doc = " The super-identity of an alternative \"sub\" identity together with its name, within that"] - #[doc = " context. If the account is not some other account's sub-identity, then just `None`."] - pub fn super_of_iter( + #[doc = " The request status of a given hash."] + pub fn request_status_for_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ( - ::subxt::utils::AccountId32, - runtime_types::pallet_identity::types::Data, - ), + alias_types::request_status_for::RequestStatusFor, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Identity", - "SuperOf", + "Preimage", + "RequestStatusFor", vec![], [ - 84u8, 72u8, 64u8, 14u8, 56u8, 9u8, 143u8, 100u8, 141u8, 163u8, 36u8, - 55u8, 38u8, 254u8, 164u8, 17u8, 3u8, 110u8, 88u8, 175u8, 161u8, 65u8, - 159u8, 40u8, 46u8, 8u8, 177u8, 81u8, 130u8, 38u8, 193u8, 28u8, + 72u8, 59u8, 254u8, 211u8, 96u8, 223u8, 10u8, 64u8, 6u8, 139u8, 213u8, + 85u8, 14u8, 29u8, 166u8, 37u8, 140u8, 124u8, 186u8, 156u8, 172u8, + 157u8, 73u8, 5u8, 121u8, 117u8, 51u8, 6u8, 249u8, 203u8, 75u8, 190u8, ], ) } - #[doc = " The super-identity of an alternative \"sub\" identity together with its name, within that"] - #[doc = " context. If the account is not some other account's sub-identity, then just `None`."] - pub fn super_of( + #[doc = " The request status of a given hash."] + pub fn request_status_for( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ( - ::subxt::utils::AccountId32, - runtime_types::pallet_identity::types::Data, - ), + alias_types::request_status_for::RequestStatusFor, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( - "Identity", - "SuperOf", + "Preimage", + "RequestStatusFor", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 84u8, 72u8, 64u8, 14u8, 56u8, 9u8, 143u8, 100u8, 141u8, 163u8, 36u8, - 55u8, 38u8, 254u8, 164u8, 17u8, 3u8, 110u8, 88u8, 175u8, 161u8, 65u8, - 159u8, 40u8, 46u8, 8u8, 177u8, 81u8, 130u8, 38u8, 193u8, 28u8, + 72u8, 59u8, 254u8, 211u8, 96u8, 223u8, 10u8, 64u8, 6u8, 139u8, 213u8, + 85u8, 14u8, 29u8, 166u8, 37u8, 140u8, 124u8, 186u8, 156u8, 172u8, + 157u8, 73u8, 5u8, 121u8, 117u8, 51u8, 6u8, 249u8, 203u8, 75u8, 190u8, ], ) } - #[doc = " Alternative \"sub\" identities of this account."] - #[doc = ""] - #[doc = " The first item is the deposit, the second is a vector of the accounts."] - #[doc = ""] - #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] - pub fn subs_of_iter( + pub fn preimage_for_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ( - ::core::primitive::u128, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::subxt::utils::AccountId32, - >, - ), + alias_types::preimage_for::PreimageFor, + (), (), - ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Identity", - "SubsOf", + "Preimage", + "PreimageFor", vec![], [ - 164u8, 140u8, 52u8, 123u8, 220u8, 118u8, 147u8, 3u8, 67u8, 22u8, 191u8, - 18u8, 186u8, 21u8, 154u8, 8u8, 205u8, 224u8, 163u8, 173u8, 174u8, - 107u8, 144u8, 215u8, 116u8, 64u8, 159u8, 115u8, 159u8, 205u8, 91u8, - 28u8, - ], - ) - } - #[doc = " Alternative \"sub\" identities of this account."] - #[doc = ""] - #[doc = " The first item is the deposit, the second is a vector of the accounts."] - #[doc = ""] - #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] - pub fn subs_of( + 106u8, 5u8, 17u8, 46u8, 6u8, 184u8, 177u8, 113u8, 169u8, 34u8, 119u8, + 141u8, 117u8, 40u8, 30u8, 94u8, 187u8, 35u8, 206u8, 216u8, 143u8, + 208u8, 49u8, 156u8, 200u8, 255u8, 109u8, 200u8, 210u8, 134u8, 24u8, + 139u8, + ], + ) + } + pub fn preimage_for_iter1( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ( - ::core::primitive::u128, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::subxt::utils::AccountId32, - >, - ), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, + alias_types::preimage_for::PreimageFor, (), + (), + ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Identity", - "SubsOf", + "Preimage", + "PreimageFor", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 164u8, 140u8, 52u8, 123u8, 220u8, 118u8, 147u8, 3u8, 67u8, 22u8, 191u8, - 18u8, 186u8, 21u8, 154u8, 8u8, 205u8, 224u8, 163u8, 173u8, 174u8, - 107u8, 144u8, 215u8, 116u8, 64u8, 159u8, 115u8, 159u8, 205u8, 91u8, - 28u8, + 106u8, 5u8, 17u8, 46u8, 6u8, 184u8, 177u8, 113u8, 169u8, 34u8, 119u8, + 141u8, 117u8, 40u8, 30u8, 94u8, 187u8, 35u8, 206u8, 216u8, 143u8, + 208u8, 49u8, 156u8, 200u8, 255u8, 109u8, 200u8, 210u8, 134u8, 24u8, + 139u8, ], ) } - #[doc = " The set of registrars. Not expected to get very big as can only be added through a"] - #[doc = " special origin (likely a council motion)."] - #[doc = ""] - #[doc = " The index into this can be cast to `RegistrarIndex` to get a valid value."] - pub fn registrars( + pub fn preimage_for( &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, + _1: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::option::Option< - runtime_types::pallet_identity::types::RegistrarInfo< - ::core::primitive::u128, - ::subxt::utils::AccountId32, - >, - >, - >, - ::subxt::storage::address::Yes, + alias_types::preimage_for::PreimageFor, ::subxt::storage::address::Yes, (), + (), > { ::subxt::storage::address::Address::new_static( - "Identity", - "Registrars", - vec![], + "Preimage", + "PreimageFor", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], [ - 207u8, 253u8, 229u8, 237u8, 228u8, 85u8, 173u8, 74u8, 164u8, 67u8, - 144u8, 144u8, 5u8, 242u8, 84u8, 187u8, 110u8, 181u8, 2u8, 162u8, 239u8, - 212u8, 72u8, 233u8, 160u8, 196u8, 121u8, 218u8, 100u8, 0u8, 219u8, - 181u8, + 106u8, 5u8, 17u8, 46u8, 6u8, 184u8, 177u8, 113u8, 169u8, 34u8, 119u8, + 141u8, 117u8, 40u8, 30u8, 94u8, 187u8, 35u8, 206u8, 216u8, 143u8, + 208u8, 49u8, 156u8, 200u8, 255u8, 109u8, 200u8, 210u8, 134u8, 24u8, + 139u8, ], ) } } } - pub mod constants { + } + pub mod asset_rate { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Error` enum of this pallet."] + pub type Error = runtime_types::pallet_asset_rate::pallet::Error; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::pallet_asset_rate::pallet::Call; + pub mod calls { + use super::root_mod; use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The amount held on deposit for a registered identity"] - pub fn basic_deposit( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "Identity", - "BasicDeposit", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ], - ) + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod alias_types { + use super::runtime_types; + pub mod create { + use super::runtime_types; + pub type AssetKind = + runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset; + pub type Rate = runtime_types::sp_arithmetic::fixed_point::FixedU128; + } + pub mod update { + use super::runtime_types; + pub type AssetKind = + runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset; + pub type Rate = runtime_types::sp_arithmetic::fixed_point::FixedU128; + } + pub mod remove { + use super::runtime_types; + pub type AssetKind = + runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset; + } + } + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Create { + pub asset_kind: ::std::boxed::Box< + runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset, + >, + pub rate: runtime_types::sp_arithmetic::fixed_point::FixedU128, + } + impl ::subxt::blocks::StaticExtrinsic for Create { + const PALLET: &'static str = "AssetRate"; + const CALL: &'static str = "create"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Update { + pub asset_kind: ::std::boxed::Box< + runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset, + >, + pub rate: runtime_types::sp_arithmetic::fixed_point::FixedU128, + } + impl ::subxt::blocks::StaticExtrinsic for Update { + const PALLET: &'static str = "AssetRate"; + const CALL: &'static str = "update"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Remove { + pub asset_kind: ::std::boxed::Box< + runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset, + >, } - #[doc = " The amount held on deposit per additional field for a registered identity."] - pub fn field_deposit( + impl ::subxt::blocks::StaticExtrinsic for Remove { + const PALLET: &'static str = "AssetRate"; + const CALL: &'static str = "remove"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::create`]."] + pub fn create( &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "Identity", - "FieldDeposit", + asset_kind: alias_types::create::AssetKind, + rate: alias_types::create::Rate, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "AssetRate", + "create", + types::Create { + asset_kind: ::std::boxed::Box::new(asset_kind), + rate, + }, [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + 154u8, 152u8, 38u8, 160u8, 110u8, 48u8, 11u8, 80u8, 92u8, 50u8, 177u8, + 170u8, 43u8, 6u8, 192u8, 234u8, 105u8, 114u8, 165u8, 178u8, 173u8, + 134u8, 92u8, 233u8, 123u8, 191u8, 176u8, 154u8, 222u8, 224u8, 32u8, + 183u8, ], ) } - #[doc = " The amount held on deposit for a registered subaccount. This should account for the fact"] - #[doc = " that one storage item's value will increase by the size of an account ID, and there will"] - #[doc = " be another trie item whose value is the size of an account ID plus 32 bytes."] - pub fn sub_account_deposit( + #[doc = "See [`Pallet::update`]."] + pub fn update( &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "Identity", - "SubAccountDeposit", + asset_kind: alias_types::update::AssetKind, + rate: alias_types::update::Rate, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "AssetRate", + "update", + types::Update { + asset_kind: ::std::boxed::Box::new(asset_kind), + rate, + }, [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + 188u8, 71u8, 197u8, 156u8, 105u8, 63u8, 11u8, 90u8, 124u8, 227u8, + 146u8, 78u8, 93u8, 216u8, 100u8, 41u8, 128u8, 115u8, 66u8, 243u8, + 198u8, 61u8, 115u8, 30u8, 170u8, 218u8, 254u8, 203u8, 37u8, 141u8, + 67u8, 179u8, ], ) } - #[doc = " The maximum number of sub-accounts allowed per identified account."] - pub fn max_sub_accounts( + #[doc = "See [`Pallet::remove`]."] + pub fn remove( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Identity", - "MaxSubAccounts", + asset_kind: alias_types::remove::AssetKind, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "AssetRate", + "remove", + types::Remove { + asset_kind: ::std::boxed::Box::new(asset_kind), + }, [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, + 229u8, 203u8, 96u8, 158u8, 162u8, 236u8, 80u8, 239u8, 106u8, 193u8, + 85u8, 234u8, 99u8, 87u8, 214u8, 214u8, 157u8, 55u8, 70u8, 91u8, 9u8, + 187u8, 105u8, 99u8, 134u8, 181u8, 56u8, 212u8, 152u8, 136u8, 100u8, + 32u8, ], ) } - #[doc = " Maximum number of additional fields that may be stored in an ID. Needed to bound the I/O"] - #[doc = " required to access an identity, but can be pretty high."] - pub fn max_additional_fields( + } + } + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_asset_rate::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct AssetRateCreated { + pub asset_kind: + runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset, + pub rate: runtime_types::sp_arithmetic::fixed_point::FixedU128, + } + impl ::subxt::events::StaticEvent for AssetRateCreated { + const PALLET: &'static str = "AssetRate"; + const EVENT: &'static str = "AssetRateCreated"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct AssetRateRemoved { + pub asset_kind: + runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset, + } + impl ::subxt::events::StaticEvent for AssetRateRemoved { + const PALLET: &'static str = "AssetRate"; + const EVENT: &'static str = "AssetRateRemoved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct AssetRateUpdated { + pub asset_kind: + runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset, + pub old: runtime_types::sp_arithmetic::fixed_point::FixedU128, + pub new: runtime_types::sp_arithmetic::fixed_point::FixedU128, + } + impl ::subxt::events::StaticEvent for AssetRateUpdated { + const PALLET: &'static str = "AssetRate"; + const EVENT: &'static str = "AssetRateUpdated"; + } + } + pub mod storage { + use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod conversion_rate_to_native { + use super::runtime_types; + pub type ConversionRateToNative = + runtime_types::sp_arithmetic::fixed_point::FixedU128; + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " Maps an asset to its fixed point representation in the native balance."] + #[doc = ""] + #[doc = " E.g. `native_amount = asset_amount * ConversionRateToNative::::get(asset_kind)`"] + pub fn conversion_rate_to_native_iter( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Identity", - "MaxAdditionalFields", + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::conversion_rate_to_native::ConversionRateToNative, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "AssetRate", + "ConversionRateToNative", + vec![], [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, + 211u8, 210u8, 178u8, 27u8, 157u8, 1u8, 68u8, 252u8, 84u8, 174u8, 141u8, + 185u8, 177u8, 39u8, 49u8, 35u8, 65u8, 254u8, 204u8, 246u8, 132u8, 59u8, + 190u8, 228u8, 135u8, 237u8, 161u8, 35u8, 21u8, 114u8, 88u8, 174u8, ], ) } - #[doc = " Maxmimum number of registrars allowed in the system. Needed to bound the complexity"] - #[doc = " of, e.g., updating judgements."] - pub fn max_registrars( + #[doc = " Maps an asset to its fixed point representation in the native balance."] + #[doc = ""] + #[doc = " E.g. `native_amount = asset_amount * ConversionRateToNative::::get(asset_kind)`"] + pub fn conversion_rate_to_native( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Identity", - "MaxRegistrars", + _0: impl ::std::borrow::Borrow< + runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::conversion_rate_to_native::ConversionRateToNative, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "AssetRate", + "ConversionRateToNative", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, + 211u8, 210u8, 178u8, 27u8, 157u8, 1u8, 68u8, 252u8, 84u8, 174u8, 141u8, + 185u8, 177u8, 39u8, 49u8, 35u8, 65u8, 254u8, 204u8, 246u8, 132u8, 59u8, + 190u8, 228u8, 135u8, 237u8, 161u8, 35u8, 21u8, 114u8, 88u8, 174u8, ], ) } } } } - pub mod proxy { + pub mod bounties { use super::root_mod; use super::runtime_types; #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_proxy::pallet::Error; + pub type Error = runtime_types::pallet_bounties::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::pallet_proxy::pallet::Call; + pub type Call = runtime_types::pallet_bounties::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { + pub mod alias_types { use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Proxy { - pub real: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub force_proxy_type: - ::core::option::Option, - pub call: ::std::boxed::Box, + pub mod propose_bounty { + use super::runtime_types; + pub type Value = ::core::primitive::u128; + pub type Description = ::std::vec::Vec<::core::primitive::u8>; } - impl ::subxt::blocks::StaticExtrinsic for Proxy { - const PALLET: &'static str = "Proxy"; - const CALL: &'static str = "proxy"; + pub mod approve_bounty { + use super::runtime_types; + pub type BountyId = ::core::primitive::u32; + } + pub mod propose_curator { + use super::runtime_types; + pub type BountyId = ::core::primitive::u32; + pub type Curator = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Fee = ::core::primitive::u128; + } + pub mod unassign_curator { + use super::runtime_types; + pub type BountyId = ::core::primitive::u32; + } + pub mod accept_curator { + use super::runtime_types; + pub type BountyId = ::core::primitive::u32; + } + pub mod award_bounty { + use super::runtime_types; + pub type BountyId = ::core::primitive::u32; + pub type Beneficiary = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + } + pub mod claim_bounty { + use super::runtime_types; + pub type BountyId = ::core::primitive::u32; + } + pub mod close_bounty { + use super::runtime_types; + pub type BountyId = ::core::primitive::u32; + } + pub mod extend_bounty_expiry { + use super::runtime_types; + pub type BountyId = ::core::primitive::u32; + pub type Remark = ::std::vec::Vec<::core::primitive::u8>; } + } + pub mod types { + use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -20805,14 +21900,14 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct AddProxy { - pub delegate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub proxy_type: runtime_types::polkadot_runtime::ProxyType, - pub delay: ::core::primitive::u32, + pub struct ProposeBounty { + #[codec(compact)] + pub value: ::core::primitive::u128, + pub description: ::std::vec::Vec<::core::primitive::u8>, } - impl ::subxt::blocks::StaticExtrinsic for AddProxy { - const PALLET: &'static str = "Proxy"; - const CALL: &'static str = "add_proxy"; + impl ::subxt::blocks::StaticExtrinsic for ProposeBounty { + const PALLET: &'static str = "Bounties"; + const CALL: &'static str = "propose_bounty"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20824,14 +21919,13 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct RemoveProxy { - pub delegate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub proxy_type: runtime_types::polkadot_runtime::ProxyType, - pub delay: ::core::primitive::u32, + pub struct ApproveBounty { + #[codec(compact)] + pub bounty_id: ::core::primitive::u32, } - impl ::subxt::blocks::StaticExtrinsic for RemoveProxy { - const PALLET: &'static str = "Proxy"; - const CALL: &'static str = "remove_proxy"; + impl ::subxt::blocks::StaticExtrinsic for ApproveBounty { + const PALLET: &'static str = "Bounties"; + const CALL: &'static str = "approve_bounty"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20843,10 +21937,16 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct RemoveProxies; - impl ::subxt::blocks::StaticExtrinsic for RemoveProxies { - const PALLET: &'static str = "Proxy"; - const CALL: &'static str = "remove_proxies"; + pub struct ProposeCurator { + #[codec(compact)] + pub bounty_id: ::core::primitive::u32, + pub curator: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + #[codec(compact)] + pub fee: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for ProposeCurator { + const PALLET: &'static str = "Bounties"; + const CALL: &'static str = "propose_curator"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20858,14 +21958,13 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct CreatePure { - pub proxy_type: runtime_types::polkadot_runtime::ProxyType, - pub delay: ::core::primitive::u32, - pub index: ::core::primitive::u16, + pub struct UnassignCurator { + #[codec(compact)] + pub bounty_id: ::core::primitive::u32, } - impl ::subxt::blocks::StaticExtrinsic for CreatePure { - const PALLET: &'static str = "Proxy"; - const CALL: &'static str = "create_pure"; + impl ::subxt::blocks::StaticExtrinsic for UnassignCurator { + const PALLET: &'static str = "Bounties"; + const CALL: &'static str = "unassign_curator"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20877,18 +21976,13 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct KillPure { - pub spawner: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub proxy_type: runtime_types::polkadot_runtime::ProxyType, - pub index: ::core::primitive::u16, - #[codec(compact)] - pub height: ::core::primitive::u32, + pub struct AcceptCurator { #[codec(compact)] - pub ext_index: ::core::primitive::u32, + pub bounty_id: ::core::primitive::u32, } - impl ::subxt::blocks::StaticExtrinsic for KillPure { - const PALLET: &'static str = "Proxy"; - const CALL: &'static str = "kill_pure"; + impl ::subxt::blocks::StaticExtrinsic for AcceptCurator { + const PALLET: &'static str = "Bounties"; + const CALL: &'static str = "accept_curator"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20900,13 +21994,14 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Announce { - pub real: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub call_hash: ::subxt::utils::H256, + pub struct AwardBounty { + #[codec(compact)] + pub bounty_id: ::core::primitive::u32, + pub beneficiary: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, } - impl ::subxt::blocks::StaticExtrinsic for Announce { - const PALLET: &'static str = "Proxy"; - const CALL: &'static str = "announce"; + impl ::subxt::blocks::StaticExtrinsic for AwardBounty { + const PALLET: &'static str = "Bounties"; + const CALL: &'static str = "award_bounty"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20918,13 +22013,13 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct RemoveAnnouncement { - pub real: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub call_hash: ::subxt::utils::H256, + pub struct ClaimBounty { + #[codec(compact)] + pub bounty_id: ::core::primitive::u32, } - impl ::subxt::blocks::StaticExtrinsic for RemoveAnnouncement { - const PALLET: &'static str = "Proxy"; - const CALL: &'static str = "remove_announcement"; + impl ::subxt::blocks::StaticExtrinsic for ClaimBounty { + const PALLET: &'static str = "Bounties"; + const CALL: &'static str = "claim_bounty"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20936,13 +22031,13 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct RejectAnnouncement { - pub delegate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub call_hash: ::subxt::utils::H256, + pub struct CloseBounty { + #[codec(compact)] + pub bounty_id: ::core::primitive::u32, } - impl ::subxt::blocks::StaticExtrinsic for RejectAnnouncement { - const PALLET: &'static str = "Proxy"; - const CALL: &'static str = "reject_announcement"; + impl ::subxt::blocks::StaticExtrinsic for CloseBounty { + const PALLET: &'static str = "Bounties"; + const CALL: &'static str = "close_bounty"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20954,241 +22049,187 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ProxyAnnounced { - pub delegate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub real: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub force_proxy_type: - ::core::option::Option, - pub call: ::std::boxed::Box, + pub struct ExtendBountyExpiry { + #[codec(compact)] + pub bounty_id: ::core::primitive::u32, + pub remark: ::std::vec::Vec<::core::primitive::u8>, } - impl ::subxt::blocks::StaticExtrinsic for ProxyAnnounced { - const PALLET: &'static str = "Proxy"; - const CALL: &'static str = "proxy_announced"; + impl ::subxt::blocks::StaticExtrinsic for ExtendBountyExpiry { + const PALLET: &'static str = "Bounties"; + const CALL: &'static str = "extend_bounty_expiry"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::proxy`]."] - pub fn proxy( + #[doc = "See [`Pallet::propose_bounty`]."] + pub fn propose_bounty( &self, - real: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - force_proxy_type: ::core::option::Option< - runtime_types::polkadot_runtime::ProxyType, - >, - call: runtime_types::polkadot_runtime::RuntimeCall, - ) -> ::subxt::tx::Payload { + value: alias_types::propose_bounty::Value, + description: alias_types::propose_bounty::Description, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Proxy", - "proxy", - types::Proxy { - real, - force_proxy_type, - call: ::std::boxed::Box::new(call), - }, + "Bounties", + "propose_bounty", + types::ProposeBounty { value, description }, [ - 92u8, 163u8, 235u8, 83u8, 4u8, 39u8, 157u8, 63u8, 186u8, 151u8, 191u8, - 133u8, 126u8, 197u8, 169u8, 88u8, 188u8, 127u8, 31u8, 160u8, 135u8, - 7u8, 221u8, 157u8, 224u8, 76u8, 158u8, 179u8, 24u8, 130u8, 241u8, 88u8, + 131u8, 169u8, 55u8, 102u8, 212u8, 139u8, 9u8, 65u8, 75u8, 112u8, 6u8, + 180u8, 92u8, 124u8, 43u8, 42u8, 38u8, 40u8, 226u8, 24u8, 28u8, 34u8, + 169u8, 220u8, 184u8, 206u8, 109u8, 227u8, 53u8, 228u8, 88u8, 25u8, ], ) } - #[doc = "See [`Pallet::add_proxy`]."] - pub fn add_proxy( + #[doc = "See [`Pallet::approve_bounty`]."] + pub fn approve_bounty( &self, - delegate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - proxy_type: runtime_types::polkadot_runtime::ProxyType, - delay: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + bounty_id: alias_types::approve_bounty::BountyId, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Proxy", - "add_proxy", - types::AddProxy { - delegate, - proxy_type, - delay, - }, + "Bounties", + "approve_bounty", + types::ApproveBounty { bounty_id }, [ - 220u8, 202u8, 219u8, 231u8, 191u8, 245u8, 104u8, 50u8, 183u8, 248u8, - 174u8, 8u8, 129u8, 7u8, 220u8, 203u8, 147u8, 224u8, 127u8, 243u8, 46u8, - 234u8, 204u8, 92u8, 112u8, 77u8, 143u8, 83u8, 218u8, 183u8, 131u8, - 194u8, + 85u8, 12u8, 177u8, 91u8, 183u8, 124u8, 175u8, 148u8, 188u8, 200u8, + 237u8, 144u8, 6u8, 67u8, 159u8, 48u8, 177u8, 222u8, 183u8, 137u8, + 173u8, 131u8, 128u8, 219u8, 255u8, 243u8, 80u8, 224u8, 126u8, 136u8, + 90u8, 47u8, ], ) } - #[doc = "See [`Pallet::remove_proxy`]."] - pub fn remove_proxy( + #[doc = "See [`Pallet::propose_curator`]."] + pub fn propose_curator( &self, - delegate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - proxy_type: runtime_types::polkadot_runtime::ProxyType, - delay: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + bounty_id: alias_types::propose_curator::BountyId, + curator: alias_types::propose_curator::Curator, + fee: alias_types::propose_curator::Fee, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Proxy", - "remove_proxy", - types::RemoveProxy { - delegate, - proxy_type, - delay, + "Bounties", + "propose_curator", + types::ProposeCurator { + bounty_id, + curator, + fee, }, [ - 123u8, 71u8, 234u8, 46u8, 239u8, 132u8, 115u8, 20u8, 33u8, 31u8, 75u8, - 172u8, 152u8, 129u8, 51u8, 240u8, 164u8, 153u8, 120u8, 2u8, 120u8, - 151u8, 182u8, 92u8, 222u8, 213u8, 105u8, 21u8, 126u8, 182u8, 117u8, - 133u8, + 238u8, 102u8, 86u8, 97u8, 169u8, 16u8, 133u8, 41u8, 24u8, 247u8, 149u8, + 200u8, 95u8, 213u8, 45u8, 62u8, 41u8, 247u8, 170u8, 62u8, 211u8, 194u8, + 5u8, 108u8, 129u8, 145u8, 108u8, 67u8, 84u8, 97u8, 237u8, 54u8, ], ) } - #[doc = "See [`Pallet::remove_proxies`]."] - pub fn remove_proxies(&self) -> ::subxt::tx::Payload { + #[doc = "See [`Pallet::unassign_curator`]."] + pub fn unassign_curator( + &self, + bounty_id: alias_types::unassign_curator::BountyId, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Proxy", - "remove_proxies", - types::RemoveProxies {}, + "Bounties", + "unassign_curator", + types::UnassignCurator { bounty_id }, [ - 1u8, 126u8, 36u8, 227u8, 185u8, 34u8, 218u8, 236u8, 125u8, 231u8, 68u8, - 185u8, 145u8, 63u8, 250u8, 225u8, 103u8, 3u8, 189u8, 37u8, 172u8, - 195u8, 197u8, 216u8, 99u8, 210u8, 240u8, 162u8, 158u8, 132u8, 24u8, - 6u8, + 98u8, 94u8, 107u8, 111u8, 151u8, 182u8, 71u8, 239u8, 214u8, 88u8, + 108u8, 11u8, 51u8, 163u8, 102u8, 162u8, 245u8, 247u8, 244u8, 159u8, + 197u8, 23u8, 171u8, 6u8, 60u8, 146u8, 144u8, 101u8, 68u8, 133u8, 245u8, + 74u8, ], ) } - #[doc = "See [`Pallet::create_pure`]."] - pub fn create_pure( + #[doc = "See [`Pallet::accept_curator`]."] + pub fn accept_curator( &self, - proxy_type: runtime_types::polkadot_runtime::ProxyType, - delay: ::core::primitive::u32, - index: ::core::primitive::u16, - ) -> ::subxt::tx::Payload { + bounty_id: alias_types::accept_curator::BountyId, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Proxy", - "create_pure", - types::CreatePure { - proxy_type, - delay, - index, - }, + "Bounties", + "accept_curator", + types::AcceptCurator { bounty_id }, [ - 65u8, 193u8, 16u8, 29u8, 244u8, 34u8, 244u8, 210u8, 211u8, 61u8, 127u8, - 20u8, 106u8, 84u8, 207u8, 204u8, 135u8, 176u8, 245u8, 209u8, 115u8, - 67u8, 120u8, 133u8, 54u8, 26u8, 168u8, 45u8, 217u8, 177u8, 17u8, 219u8, + 178u8, 142u8, 138u8, 15u8, 243u8, 10u8, 222u8, 169u8, 150u8, 200u8, + 85u8, 185u8, 39u8, 167u8, 134u8, 3u8, 186u8, 84u8, 43u8, 140u8, 11u8, + 70u8, 56u8, 197u8, 39u8, 84u8, 138u8, 139u8, 198u8, 104u8, 41u8, 238u8, ], ) } - #[doc = "See [`Pallet::kill_pure`]."] - pub fn kill_pure( + #[doc = "See [`Pallet::award_bounty`]."] + pub fn award_bounty( &self, - spawner: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - proxy_type: runtime_types::polkadot_runtime::ProxyType, - index: ::core::primitive::u16, - height: ::core::primitive::u32, - ext_index: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + bounty_id: alias_types::award_bounty::BountyId, + beneficiary: alias_types::award_bounty::Beneficiary, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Proxy", - "kill_pure", - types::KillPure { - spawner, - proxy_type, - index, - height, - ext_index, + "Bounties", + "award_bounty", + types::AwardBounty { + bounty_id, + beneficiary, }, [ - 156u8, 57u8, 67u8, 93u8, 148u8, 239u8, 31u8, 189u8, 52u8, 190u8, 74u8, - 215u8, 82u8, 207u8, 85u8, 160u8, 215u8, 24u8, 36u8, 136u8, 79u8, 108u8, - 50u8, 226u8, 138u8, 101u8, 158u8, 120u8, 225u8, 46u8, 228u8, 150u8, - ], - ) - } - #[doc = "See [`Pallet::announce`]."] - pub fn announce( - &self, - real: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - call_hash: ::subxt::utils::H256, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Proxy", - "announce", - types::Announce { real, call_hash }, - [ - 105u8, 218u8, 232u8, 82u8, 80u8, 10u8, 11u8, 1u8, 93u8, 241u8, 121u8, - 198u8, 167u8, 218u8, 95u8, 15u8, 75u8, 122u8, 155u8, 233u8, 10u8, - 175u8, 145u8, 73u8, 214u8, 230u8, 67u8, 107u8, 23u8, 239u8, 69u8, - 240u8, + 231u8, 248u8, 65u8, 2u8, 199u8, 19u8, 126u8, 23u8, 206u8, 206u8, 230u8, + 77u8, 53u8, 152u8, 230u8, 234u8, 211u8, 153u8, 82u8, 149u8, 93u8, 91u8, + 19u8, 72u8, 214u8, 92u8, 65u8, 207u8, 142u8, 168u8, 133u8, 87u8, ], ) } - #[doc = "See [`Pallet::remove_announcement`]."] - pub fn remove_announcement( + #[doc = "See [`Pallet::claim_bounty`]."] + pub fn claim_bounty( &self, - real: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - call_hash: ::subxt::utils::H256, - ) -> ::subxt::tx::Payload { + bounty_id: alias_types::claim_bounty::BountyId, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Proxy", - "remove_announcement", - types::RemoveAnnouncement { real, call_hash }, + "Bounties", + "claim_bounty", + types::ClaimBounty { bounty_id }, [ - 40u8, 237u8, 179u8, 128u8, 201u8, 183u8, 20u8, 47u8, 99u8, 182u8, 81u8, - 31u8, 27u8, 212u8, 133u8, 36u8, 8u8, 248u8, 57u8, 230u8, 138u8, 80u8, - 241u8, 147u8, 69u8, 236u8, 156u8, 167u8, 205u8, 49u8, 60u8, 16u8, + 211u8, 143u8, 123u8, 205u8, 140u8, 43u8, 176u8, 103u8, 110u8, 125u8, + 158u8, 131u8, 103u8, 62u8, 69u8, 215u8, 220u8, 110u8, 11u8, 3u8, 30u8, + 193u8, 235u8, 177u8, 96u8, 241u8, 140u8, 53u8, 62u8, 133u8, 170u8, + 25u8, ], ) } - #[doc = "See [`Pallet::reject_announcement`]."] - pub fn reject_announcement( + #[doc = "See [`Pallet::close_bounty`]."] + pub fn close_bounty( &self, - delegate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - call_hash: ::subxt::utils::H256, - ) -> ::subxt::tx::Payload { + bounty_id: alias_types::close_bounty::BountyId, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Proxy", - "reject_announcement", - types::RejectAnnouncement { - delegate, - call_hash, - }, + "Bounties", + "close_bounty", + types::CloseBounty { bounty_id }, [ - 150u8, 178u8, 49u8, 160u8, 211u8, 75u8, 58u8, 228u8, 121u8, 253u8, - 167u8, 72u8, 68u8, 105u8, 159u8, 52u8, 41u8, 155u8, 92u8, 26u8, 169u8, - 177u8, 102u8, 36u8, 1u8, 47u8, 87u8, 189u8, 223u8, 238u8, 244u8, 110u8, + 144u8, 234u8, 109u8, 39u8, 227u8, 231u8, 104u8, 48u8, 45u8, 196u8, + 217u8, 220u8, 241u8, 197u8, 157u8, 227u8, 154u8, 156u8, 181u8, 69u8, + 146u8, 77u8, 203u8, 167u8, 79u8, 102u8, 15u8, 253u8, 135u8, 53u8, 96u8, + 60u8, ], ) } - #[doc = "See [`Pallet::proxy_announced`]."] - pub fn proxy_announced( + #[doc = "See [`Pallet::extend_bounty_expiry`]."] + pub fn extend_bounty_expiry( &self, - delegate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - real: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - force_proxy_type: ::core::option::Option< - runtime_types::polkadot_runtime::ProxyType, - >, - call: runtime_types::polkadot_runtime::RuntimeCall, - ) -> ::subxt::tx::Payload { + bounty_id: alias_types::extend_bounty_expiry::BountyId, + remark: alias_types::extend_bounty_expiry::Remark, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Proxy", - "proxy_announced", - types::ProxyAnnounced { - delegate, - real, - force_proxy_type, - call: ::std::boxed::Box::new(call), - }, + "Bounties", + "extend_bounty_expiry", + types::ExtendBountyExpiry { bounty_id, remark }, [ - 6u8, 182u8, 30u8, 45u8, 151u8, 58u8, 244u8, 241u8, 161u8, 174u8, 47u8, - 100u8, 105u8, 214u8, 136u8, 245u8, 250u8, 13u8, 246u8, 47u8, 251u8, - 182u8, 12u8, 150u8, 220u8, 18u8, 250u8, 178u8, 62u8, 15u8, 212u8, - 175u8, + 102u8, 118u8, 89u8, 189u8, 138u8, 157u8, 216u8, 10u8, 239u8, 3u8, + 200u8, 217u8, 219u8, 19u8, 195u8, 182u8, 105u8, 220u8, 11u8, 146u8, + 222u8, 79u8, 95u8, 136u8, 188u8, 230u8, 248u8, 119u8, 30u8, 6u8, 242u8, + 194u8, ], ) } } } #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_proxy::pallet::Event; + pub type Event = runtime_types::pallet_bounties::pallet::Event; pub mod events { use super::runtime_types; #[derive( + :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -21198,13 +22239,13 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A proxy was executed correctly, with the given."] - pub struct ProxyExecuted { - pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + #[doc = "New bounty proposal."] + pub struct BountyProposed { + pub index: ::core::primitive::u32, } - impl ::subxt::events::StaticEvent for ProxyExecuted { - const PALLET: &'static str = "Proxy"; - const EVENT: &'static str = "ProxyExecuted"; + impl ::subxt::events::StaticEvent for BountyProposed { + const PALLET: &'static str = "Bounties"; + const EVENT: &'static str = "BountyProposed"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -21216,19 +22257,17 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A pure account has been created by new proxy with given"] - #[doc = "disambiguation index and proxy type."] - pub struct PureCreated { - pub pure: ::subxt::utils::AccountId32, - pub who: ::subxt::utils::AccountId32, - pub proxy_type: runtime_types::polkadot_runtime::ProxyType, - pub disambiguation_index: ::core::primitive::u16, + #[doc = "A bounty proposal was rejected; funds were slashed."] + pub struct BountyRejected { + pub index: ::core::primitive::u32, + pub bond: ::core::primitive::u128, } - impl ::subxt::events::StaticEvent for PureCreated { - const PALLET: &'static str = "Proxy"; - const EVENT: &'static str = "PureCreated"; + impl ::subxt::events::StaticEvent for BountyRejected { + const PALLET: &'static str = "Bounties"; + const EVENT: &'static str = "BountyRejected"; } #[derive( + :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -21238,15 +22277,13 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An announcement was placed to make a call in the future."] - pub struct Announced { - pub real: ::subxt::utils::AccountId32, - pub proxy: ::subxt::utils::AccountId32, - pub call_hash: ::subxt::utils::H256, + #[doc = "A bounty proposal is funded and became active."] + pub struct BountyBecameActive { + pub index: ::core::primitive::u32, } - impl ::subxt::events::StaticEvent for Announced { - const PALLET: &'static str = "Proxy"; - const EVENT: &'static str = "Announced"; + impl ::subxt::events::StaticEvent for BountyBecameActive { + const PALLET: &'static str = "Bounties"; + const EVENT: &'static str = "BountyBecameActive"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -21258,16 +22295,14 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A proxy was added."] - pub struct ProxyAdded { - pub delegator: ::subxt::utils::AccountId32, - pub delegatee: ::subxt::utils::AccountId32, - pub proxy_type: runtime_types::polkadot_runtime::ProxyType, - pub delay: ::core::primitive::u32, + #[doc = "A bounty is awarded to a beneficiary."] + pub struct BountyAwarded { + pub index: ::core::primitive::u32, + pub beneficiary: ::subxt::utils::AccountId32, } - impl ::subxt::events::StaticEvent for ProxyAdded { - const PALLET: &'static str = "Proxy"; - const EVENT: &'static str = "ProxyAdded"; + impl ::subxt::events::StaticEvent for BountyAwarded { + const PALLET: &'static str = "Bounties"; + const EVENT: &'static str = "BountyAwarded"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -21279,151 +22314,296 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A proxy was removed."] - pub struct ProxyRemoved { - pub delegator: ::subxt::utils::AccountId32, - pub delegatee: ::subxt::utils::AccountId32, - pub proxy_type: runtime_types::polkadot_runtime::ProxyType, - pub delay: ::core::primitive::u32, + #[doc = "A bounty is claimed by beneficiary."] + pub struct BountyClaimed { + pub index: ::core::primitive::u32, + pub payout: ::core::primitive::u128, + pub beneficiary: ::subxt::utils::AccountId32, } - impl ::subxt::events::StaticEvent for ProxyRemoved { - const PALLET: &'static str = "Proxy"; - const EVENT: &'static str = "ProxyRemoved"; + impl ::subxt::events::StaticEvent for BountyClaimed { + const PALLET: &'static str = "Bounties"; + const EVENT: &'static str = "BountyClaimed"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A bounty is cancelled."] + pub struct BountyCanceled { + pub index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for BountyCanceled { + const PALLET: &'static str = "Bounties"; + const EVENT: &'static str = "BountyCanceled"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A bounty expiry is extended."] + pub struct BountyExtended { + pub index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for BountyExtended { + const PALLET: &'static str = "Bounties"; + const EVENT: &'static str = "BountyExtended"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A bounty is approved."] + pub struct BountyApproved { + pub index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for BountyApproved { + const PALLET: &'static str = "Bounties"; + const EVENT: &'static str = "BountyApproved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A bounty curator is proposed."] + pub struct CuratorProposed { + pub bounty_id: ::core::primitive::u32, + pub curator: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for CuratorProposed { + const PALLET: &'static str = "Bounties"; + const EVENT: &'static str = "CuratorProposed"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A bounty curator is unassigned."] + pub struct CuratorUnassigned { + pub bounty_id: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for CuratorUnassigned { + const PALLET: &'static str = "Bounties"; + const EVENT: &'static str = "CuratorUnassigned"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A bounty curator is accepted."] + pub struct CuratorAccepted { + pub bounty_id: ::core::primitive::u32, + pub curator: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for CuratorAccepted { + const PALLET: &'static str = "Bounties"; + const EVENT: &'static str = "CuratorAccepted"; } } pub mod storage { use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod bounty_count { + use super::runtime_types; + pub type BountyCount = ::core::primitive::u32; + } + pub mod bounties { + use super::runtime_types; + pub type Bounties = runtime_types::pallet_bounties::Bounty< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + ::core::primitive::u32, + >; + } + pub mod bounty_descriptions { + use super::runtime_types; + pub type BountyDescriptions = + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; + } + pub mod bounty_approvals { + use super::runtime_types; + pub type BountyApprovals = + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u32, + >; + } + } pub struct StorageApi; impl StorageApi { - #[doc = " The set of account proxies. Maps the account which has delegated to the accounts"] - #[doc = " which are being delegated to, together with the amount held on deposit."] - pub fn proxies_iter( + #[doc = " Number of bounty proposals that have been made."] + pub fn bounty_count( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ( - runtime_types::bounded_collections::bounded_vec::BoundedVec< - runtime_types::pallet_proxy::ProxyDefinition< - ::subxt::utils::AccountId32, - runtime_types::polkadot_runtime::ProxyType, - ::core::primitive::u32, - >, - >, - ::core::primitive::u128, - ), - (), + alias_types::bounty_count::BountyCount, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, + (), > { ::subxt::storage::address::Address::new_static( - "Proxy", - "Proxies", + "Bounties", + "BountyCount", vec![], [ - 248u8, 226u8, 176u8, 230u8, 10u8, 37u8, 135u8, 74u8, 122u8, 169u8, - 107u8, 114u8, 64u8, 12u8, 171u8, 126u8, 3u8, 11u8, 197u8, 216u8, 36u8, - 239u8, 150u8, 88u8, 37u8, 171u8, 84u8, 200u8, 241u8, 32u8, 238u8, - 157u8, + 120u8, 204u8, 26u8, 150u8, 37u8, 81u8, 43u8, 223u8, 180u8, 252u8, + 142u8, 144u8, 109u8, 5u8, 184u8, 72u8, 223u8, 230u8, 66u8, 196u8, 14u8, + 14u8, 164u8, 190u8, 246u8, 168u8, 190u8, 56u8, 212u8, 73u8, 175u8, + 26u8, ], ) } - #[doc = " The set of account proxies. Maps the account which has delegated to the accounts"] - #[doc = " which are being delegated to, together with the amount held on deposit."] - pub fn proxies( + #[doc = " Bounties that have been made."] + pub fn bounties_iter( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ( - runtime_types::bounded_collections::bounded_vec::BoundedVec< - runtime_types::pallet_proxy::ProxyDefinition< - ::subxt::utils::AccountId32, - runtime_types::polkadot_runtime::ProxyType, - ::core::primitive::u32, - >, - >, - ::core::primitive::u128, - ), + alias_types::bounties::Bounties, + (), + (), ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Bounties", + "Bounties", + vec![], + [ + 183u8, 96u8, 172u8, 86u8, 167u8, 129u8, 51u8, 179u8, 238u8, 155u8, + 196u8, 77u8, 158u8, 102u8, 188u8, 19u8, 79u8, 178u8, 145u8, 189u8, + 44u8, 117u8, 47u8, 97u8, 30u8, 149u8, 239u8, 212u8, 167u8, 127u8, + 108u8, 55u8, + ], + ) + } + #[doc = " Bounties that have been made."] + pub fn bounties( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::bounties::Bounties, ::subxt::storage::address::Yes, (), + (), > { ::subxt::storage::address::Address::new_static( - "Proxy", - "Proxies", + "Bounties", + "Bounties", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 248u8, 226u8, 176u8, 230u8, 10u8, 37u8, 135u8, 74u8, 122u8, 169u8, - 107u8, 114u8, 64u8, 12u8, 171u8, 126u8, 3u8, 11u8, 197u8, 216u8, 36u8, - 239u8, 150u8, 88u8, 37u8, 171u8, 84u8, 200u8, 241u8, 32u8, 238u8, - 157u8, + 183u8, 96u8, 172u8, 86u8, 167u8, 129u8, 51u8, 179u8, 238u8, 155u8, + 196u8, 77u8, 158u8, 102u8, 188u8, 19u8, 79u8, 178u8, 145u8, 189u8, + 44u8, 117u8, 47u8, 97u8, 30u8, 149u8, 239u8, 212u8, 167u8, 127u8, + 108u8, 55u8, ], ) } - #[doc = " The announcements made by the proxy (key)."] - pub fn announcements_iter( + #[doc = " The description of each bounty."] + pub fn bounty_descriptions_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ( - runtime_types::bounded_collections::bounded_vec::BoundedVec< - runtime_types::pallet_proxy::Announcement< - ::subxt::utils::AccountId32, - ::subxt::utils::H256, - ::core::primitive::u32, - >, - >, - ::core::primitive::u128, - ), + alias_types::bounty_descriptions::BountyDescriptions, + (), (), - ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Proxy", - "Announcements", + "Bounties", + "BountyDescriptions", vec![], [ - 129u8, 228u8, 198u8, 210u8, 90u8, 69u8, 151u8, 198u8, 206u8, 174u8, - 148u8, 58u8, 134u8, 14u8, 53u8, 56u8, 234u8, 71u8, 84u8, 247u8, 246u8, - 207u8, 117u8, 221u8, 84u8, 72u8, 254u8, 215u8, 102u8, 49u8, 21u8, - 173u8, + 71u8, 40u8, 133u8, 84u8, 55u8, 207u8, 169u8, 189u8, 160u8, 51u8, 202u8, + 144u8, 15u8, 226u8, 97u8, 114u8, 54u8, 247u8, 53u8, 26u8, 36u8, 54u8, + 186u8, 163u8, 198u8, 100u8, 191u8, 121u8, 186u8, 160u8, 85u8, 97u8, ], ) } - #[doc = " The announcements made by the proxy (key)."] - pub fn announcements( + #[doc = " The description of each bounty."] + pub fn bounty_descriptions( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ( - runtime_types::bounded_collections::bounded_vec::BoundedVec< - runtime_types::pallet_proxy::Announcement< - ::subxt::utils::AccountId32, - ::subxt::utils::H256, - ::core::primitive::u32, - >, - >, - ::core::primitive::u128, - ), - ::subxt::storage::address::Yes, + alias_types::bounty_descriptions::BountyDescriptions, ::subxt::storage::address::Yes, (), + (), > { ::subxt::storage::address::Address::new_static( - "Proxy", - "Announcements", + "Bounties", + "BountyDescriptions", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 129u8, 228u8, 198u8, 210u8, 90u8, 69u8, 151u8, 198u8, 206u8, 174u8, - 148u8, 58u8, 134u8, 14u8, 53u8, 56u8, 234u8, 71u8, 84u8, 247u8, 246u8, - 207u8, 117u8, 221u8, 84u8, 72u8, 254u8, 215u8, 102u8, 49u8, 21u8, - 173u8, + 71u8, 40u8, 133u8, 84u8, 55u8, 207u8, 169u8, 189u8, 160u8, 51u8, 202u8, + 144u8, 15u8, 226u8, 97u8, 114u8, 54u8, 247u8, 53u8, 26u8, 36u8, 54u8, + 186u8, 163u8, 198u8, 100u8, 191u8, 121u8, 186u8, 160u8, 85u8, 97u8, + ], + ) + } + #[doc = " Bounty indices that have been approved but not yet funded."] + pub fn bounty_approvals( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::bounty_approvals::BountyApprovals, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Bounties", + "BountyApprovals", + vec![], + [ + 182u8, 228u8, 0u8, 46u8, 176u8, 25u8, 222u8, 180u8, 51u8, 57u8, 14u8, + 0u8, 69u8, 160u8, 64u8, 27u8, 88u8, 29u8, 227u8, 146u8, 2u8, 121u8, + 27u8, 85u8, 45u8, 110u8, 244u8, 62u8, 134u8, 77u8, 175u8, 188u8, ], ) } @@ -21433,16 +22613,13 @@ pub mod api { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - #[doc = " The base amount of currency needed to reserve for creating a proxy."] - #[doc = ""] - #[doc = " This is held for an additional storage item whose value size is"] - #[doc = " `sizeof(Balance)` bytes and whose key size is `sizeof(AccountId)` bytes."] - pub fn proxy_deposit_base( + #[doc = " The amount held on deposit for placing a bounty proposal."] + pub fn bounty_deposit_base( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( - "Proxy", - "ProxyDepositBase", + "Bounties", + "BountyDepositBase", [ 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, @@ -21450,29 +22627,13 @@ pub mod api { ], ) } - #[doc = " The amount of currency needed per proxy added."] - #[doc = ""] - #[doc = " This is held for adding 32 bytes plus an instance of `ProxyType` more into a"] - #[doc = " pre-existing storage value. Thus, when configuring `ProxyDepositFactor` one should take"] - #[doc = " into account `32 + proxy_type.encode().len()` bytes of data."] - pub fn proxy_deposit_factor( + #[doc = " The delay period for which a bounty beneficiary need to wait before claim the payout."] + pub fn bounty_deposit_payout_delay( &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "Proxy", - "ProxyDepositFactor", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ], - ) - } - #[doc = " The maximum amount of proxies allowed for a single account."] - pub fn max_proxies(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( - "Proxy", - "MaxProxies", + "Bounties", + "BountyDepositPayoutDelay", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, @@ -21481,11 +22642,13 @@ pub mod api { ], ) } - #[doc = " The maximum amount of time-delayed announcements that are allowed to be pending."] - pub fn max_pending(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + #[doc = " Bounty duration in blocks."] + pub fn bounty_update_period( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( - "Proxy", - "MaxPending", + "Bounties", + "BountyUpdatePeriod", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, @@ -21494,16 +22657,63 @@ pub mod api { ], ) } - #[doc = " The base amount of currency needed to reserve for creating an announcement."] + #[doc = " The curator deposit is calculated as a percentage of the curator fee."] #[doc = ""] - #[doc = " This is held when a new storage item holding a `Balance` is created (typically 16"] - #[doc = " bytes)."] - pub fn announcement_deposit_base( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { + #[doc = " This deposit has optional upper and lower bounds with `CuratorDepositMax` and"] + #[doc = " `CuratorDepositMin`."] + pub fn curator_deposit_multiplier( + &self, + ) -> ::subxt::constants::Address + { ::subxt::constants::Address::new_static( - "Proxy", - "AnnouncementDepositBase", + "Bounties", + "CuratorDepositMultiplier", + [ + 65u8, 93u8, 120u8, 165u8, 204u8, 81u8, 159u8, 163u8, 93u8, 135u8, + 114u8, 121u8, 147u8, 35u8, 215u8, 213u8, 4u8, 223u8, 83u8, 37u8, 225u8, + 200u8, 189u8, 156u8, 140u8, 36u8, 58u8, 46u8, 42u8, 232u8, 155u8, 0u8, + ], + ) + } + #[doc = " Maximum amount of funds that should be placed in a deposit for making a proposal."] + pub fn curator_deposit_max( + &self, + ) -> ::subxt::constants::Address<::core::option::Option<::core::primitive::u128>> + { + ::subxt::constants::Address::new_static( + "Bounties", + "CuratorDepositMax", + [ + 198u8, 51u8, 89u8, 159u8, 124u8, 251u8, 51u8, 80u8, 167u8, 193u8, 44u8, + 199u8, 80u8, 36u8, 41u8, 130u8, 137u8, 229u8, 178u8, 208u8, 37u8, + 215u8, 169u8, 183u8, 180u8, 191u8, 140u8, 240u8, 250u8, 61u8, 42u8, + 147u8, + ], + ) + } + #[doc = " Minimum amount of funds that should be placed in a deposit for making a proposal."] + pub fn curator_deposit_min( + &self, + ) -> ::subxt::constants::Address<::core::option::Option<::core::primitive::u128>> + { + ::subxt::constants::Address::new_static( + "Bounties", + "CuratorDepositMin", + [ + 198u8, 51u8, 89u8, 159u8, 124u8, 251u8, 51u8, 80u8, 167u8, 193u8, 44u8, + 199u8, 80u8, 36u8, 41u8, 130u8, 137u8, 229u8, 178u8, 208u8, 37u8, + 215u8, 169u8, 183u8, 180u8, 191u8, 140u8, 240u8, 250u8, 61u8, 42u8, + 147u8, + ], + ) + } + #[doc = " Minimum value for a bounty."] + pub fn bounty_value_minimum( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Bounties", + "BountyValueMinimum", [ 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, @@ -21511,16 +22721,13 @@ pub mod api { ], ) } - #[doc = " The amount of currency needed per announcement made."] - #[doc = ""] - #[doc = " This is held for adding an `AccountId`, `Hash` and `BlockNumber` (typically 68 bytes)"] - #[doc = " into a pre-existing storage value."] - pub fn announcement_deposit_factor( + #[doc = " The amount held on deposit per byte within the tip report reason or bounty description."] + pub fn data_deposit_per_byte( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( - "Proxy", - "AnnouncementDepositFactor", + "Bounties", + "DataDepositPerByte", [ 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, @@ -21528,20 +22735,81 @@ pub mod api { ], ) } + #[doc = " Maximum acceptable reason length."] + #[doc = ""] + #[doc = " Benchmarks depend on this value, be sure to update weights file when changing this value"] + pub fn maximum_reason_length( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Bounties", + "MaximumReasonLength", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } } } } - pub mod multisig { + pub mod child_bounties { use super::root_mod; use super::runtime_types; #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_multisig::pallet::Error; + pub type Error = runtime_types::pallet_child_bounties::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::pallet_multisig::pallet::Call; + pub type Call = runtime_types::pallet_child_bounties::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod alias_types { + use super::runtime_types; + pub mod add_child_bounty { + use super::runtime_types; + pub type ParentBountyId = ::core::primitive::u32; + pub type Value = ::core::primitive::u128; + pub type Description = ::std::vec::Vec<::core::primitive::u8>; + } + pub mod propose_curator { + use super::runtime_types; + pub type ParentBountyId = ::core::primitive::u32; + pub type ChildBountyId = ::core::primitive::u32; + pub type Curator = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Fee = ::core::primitive::u128; + } + pub mod accept_curator { + use super::runtime_types; + pub type ParentBountyId = ::core::primitive::u32; + pub type ChildBountyId = ::core::primitive::u32; + } + pub mod unassign_curator { + use super::runtime_types; + pub type ParentBountyId = ::core::primitive::u32; + pub type ChildBountyId = ::core::primitive::u32; + } + pub mod award_child_bounty { + use super::runtime_types; + pub type ParentBountyId = ::core::primitive::u32; + pub type ChildBountyId = ::core::primitive::u32; + pub type Beneficiary = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + } + pub mod claim_child_bounty { + use super::runtime_types; + pub type ParentBountyId = ::core::primitive::u32; + pub type ChildBountyId = ::core::primitive::u32; + } + pub mod close_child_bounty { + use super::runtime_types; + pub type ParentBountyId = ::core::primitive::u32; + pub type ChildBountyId = ::core::primitive::u32; + } + } pub mod types { use super::runtime_types; #[derive( @@ -21554,13 +22822,16 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct AsMultiThreshold1 { - pub other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, - pub call: ::std::boxed::Box, + 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::blocks::StaticExtrinsic for AsMultiThreshold1 { - const PALLET: &'static str = "Multisig"; - const CALL: &'static str = "as_multi_threshold_1"; + impl ::subxt::blocks::StaticExtrinsic for AddChildBounty { + const PALLET: &'static str = "ChildBounties"; + const CALL: &'static str = "add_child_bounty"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -21572,18 +22843,18 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct AsMulti { - pub threshold: ::core::primitive::u16, - pub other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, - pub maybe_timepoint: ::core::option::Option< - runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, - >, - pub call: ::std::boxed::Box, - pub max_weight: runtime_types::sp_weights::weight_v2::Weight, + pub struct ProposeCurator { + #[codec(compact)] + pub parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + pub child_bounty_id: ::core::primitive::u32, + pub curator: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + #[codec(compact)] + pub fee: ::core::primitive::u128, } - impl ::subxt::blocks::StaticExtrinsic for AsMulti { - const PALLET: &'static str = "Multisig"; - const CALL: &'static str = "as_multi"; + impl ::subxt::blocks::StaticExtrinsic for ProposeCurator { + const PALLET: &'static str = "ChildBounties"; + const CALL: &'static str = "propose_curator"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -21595,18 +22866,15 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ApproveAsMulti { - pub threshold: ::core::primitive::u16, - pub other_signatories: ::std::vec::Vec<::subxt::utils::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: runtime_types::sp_weights::weight_v2::Weight, + pub struct AcceptCurator { + #[codec(compact)] + pub parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + pub child_bounty_id: ::core::primitive::u32, } - impl ::subxt::blocks::StaticExtrinsic for ApproveAsMulti { - const PALLET: &'static str = "Multisig"; - const CALL: &'static str = "approve_as_multi"; + impl ::subxt::blocks::StaticExtrinsic for AcceptCurator { + const PALLET: &'static str = "ChildBounties"; + const CALL: &'static str = "accept_curator"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -21618,126 +22886,235 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct CancelAsMulti { - pub threshold: ::core::primitive::u16, - pub other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, - pub timepoint: - runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, - pub call_hash: [::core::primitive::u8; 32usize], + pub struct UnassignCurator { + #[codec(compact)] + pub parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + pub child_bounty_id: ::core::primitive::u32, } - impl ::subxt::blocks::StaticExtrinsic for CancelAsMulti { - const PALLET: &'static str = "Multisig"; - const CALL: &'static str = "cancel_as_multi"; + impl ::subxt::blocks::StaticExtrinsic for UnassignCurator { + const PALLET: &'static str = "ChildBounties"; + const CALL: &'static str = "unassign_curator"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct AwardChildBounty { + #[codec(compact)] + pub parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + pub child_bounty_id: ::core::primitive::u32, + pub beneficiary: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + } + impl ::subxt::blocks::StaticExtrinsic for AwardChildBounty { + const PALLET: &'static str = "ChildBounties"; + const CALL: &'static str = "award_child_bounty"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ClaimChildBounty { + #[codec(compact)] + pub parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + pub child_bounty_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for ClaimChildBounty { + const PALLET: &'static str = "ChildBounties"; + const CALL: &'static str = "claim_child_bounty"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CloseChildBounty { + #[codec(compact)] + pub parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + pub child_bounty_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for CloseChildBounty { + const PALLET: &'static str = "ChildBounties"; + const CALL: &'static str = "close_child_bounty"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::as_multi_threshold_1`]."] - pub fn as_multi_threshold_1( + #[doc = "See [`Pallet::add_child_bounty`]."] + pub fn add_child_bounty( &self, - other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, - call: runtime_types::polkadot_runtime::RuntimeCall, - ) -> ::subxt::tx::Payload { + parent_bounty_id: alias_types::add_child_bounty::ParentBountyId, + value: alias_types::add_child_bounty::Value, + description: alias_types::add_child_bounty::Description, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Multisig", - "as_multi_threshold_1", - types::AsMultiThreshold1 { - other_signatories, - call: ::std::boxed::Box::new(call), + "ChildBounties", + "add_child_bounty", + types::AddChildBounty { + parent_bounty_id, + value, + description, }, [ - 112u8, 171u8, 188u8, 11u8, 158u8, 162u8, 231u8, 139u8, 220u8, 148u8, - 180u8, 153u8, 92u8, 205u8, 21u8, 42u8, 180u8, 212u8, 11u8, 5u8, 35u8, - 168u8, 252u8, 182u8, 44u8, 247u8, 205u8, 168u8, 159u8, 133u8, 193u8, - 156u8, + 249u8, 159u8, 185u8, 144u8, 114u8, 142u8, 104u8, 215u8, 136u8, 52u8, + 255u8, 125u8, 54u8, 243u8, 220u8, 171u8, 254u8, 49u8, 105u8, 134u8, + 137u8, 221u8, 100u8, 111u8, 72u8, 38u8, 184u8, 122u8, 72u8, 204u8, + 182u8, 123u8, ], ) } - #[doc = "See [`Pallet::as_multi`]."] - pub fn as_multi( + #[doc = "See [`Pallet::propose_curator`]."] + pub fn propose_curator( &self, - threshold: ::core::primitive::u16, - other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, - maybe_timepoint: ::core::option::Option< - runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, - >, - call: runtime_types::polkadot_runtime::RuntimeCall, - max_weight: runtime_types::sp_weights::weight_v2::Weight, - ) -> ::subxt::tx::Payload { + parent_bounty_id: alias_types::propose_curator::ParentBountyId, + child_bounty_id: alias_types::propose_curator::ChildBountyId, + curator: alias_types::propose_curator::Curator, + fee: alias_types::propose_curator::Fee, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Multisig", - "as_multi", - types::AsMulti { - threshold, - other_signatories, - maybe_timepoint, - call: ::std::boxed::Box::new(call), - max_weight, + "ChildBounties", + "propose_curator", + types::ProposeCurator { + parent_bounty_id, + child_bounty_id, + curator, + fee, }, [ - 111u8, 65u8, 139u8, 159u8, 7u8, 244u8, 225u8, 156u8, 184u8, 239u8, - 214u8, 67u8, 176u8, 36u8, 219u8, 230u8, 206u8, 81u8, 233u8, 98u8, 38u8, - 182u8, 117u8, 66u8, 114u8, 209u8, 135u8, 149u8, 20u8, 225u8, 162u8, - 127u8, + 30u8, 186u8, 200u8, 181u8, 73u8, 219u8, 129u8, 195u8, 100u8, 30u8, + 36u8, 9u8, 131u8, 110u8, 136u8, 145u8, 146u8, 44u8, 96u8, 207u8, 74u8, + 59u8, 61u8, 94u8, 186u8, 184u8, 89u8, 170u8, 126u8, 64u8, 234u8, 177u8, ], ) } - #[doc = "See [`Pallet::approve_as_multi`]."] - pub fn approve_as_multi( + #[doc = "See [`Pallet::accept_curator`]."] + pub fn accept_curator( &self, - threshold: ::core::primitive::u16, - other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, - maybe_timepoint: ::core::option::Option< - runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, - >, - call_hash: [::core::primitive::u8; 32usize], - max_weight: runtime_types::sp_weights::weight_v2::Weight, - ) -> ::subxt::tx::Payload { + parent_bounty_id: alias_types::accept_curator::ParentBountyId, + child_bounty_id: alias_types::accept_curator::ChildBountyId, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Multisig", - "approve_as_multi", - types::ApproveAsMulti { - threshold, - other_signatories, - maybe_timepoint, - call_hash, - max_weight, + "ChildBounties", + "accept_curator", + types::AcceptCurator { + parent_bounty_id, + child_bounty_id, }, [ - 248u8, 46u8, 131u8, 35u8, 204u8, 12u8, 218u8, 150u8, 88u8, 131u8, 89u8, - 13u8, 95u8, 122u8, 87u8, 107u8, 136u8, 154u8, 92u8, 199u8, 108u8, 92u8, - 207u8, 171u8, 113u8, 8u8, 47u8, 248u8, 65u8, 26u8, 203u8, 135u8, + 80u8, 117u8, 237u8, 83u8, 230u8, 230u8, 159u8, 136u8, 87u8, 17u8, + 239u8, 110u8, 190u8, 12u8, 52u8, 63u8, 171u8, 118u8, 82u8, 168u8, + 190u8, 255u8, 91u8, 85u8, 117u8, 226u8, 51u8, 28u8, 116u8, 230u8, + 137u8, 123u8, ], ) } - #[doc = "See [`Pallet::cancel_as_multi`]."] - pub fn cancel_as_multi( + #[doc = "See [`Pallet::unassign_curator`]."] + pub fn unassign_curator( &self, - threshold: ::core::primitive::u16, - other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, - timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, - call_hash: [::core::primitive::u8; 32usize], - ) -> ::subxt::tx::Payload { + parent_bounty_id: alias_types::unassign_curator::ParentBountyId, + child_bounty_id: alias_types::unassign_curator::ChildBountyId, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Multisig", - "cancel_as_multi", - types::CancelAsMulti { - threshold, - other_signatories, - timepoint, - call_hash, + "ChildBounties", + "unassign_curator", + types::UnassignCurator { + parent_bounty_id, + child_bounty_id, }, [ - 212u8, 179u8, 123u8, 40u8, 209u8, 228u8, 181u8, 0u8, 109u8, 28u8, 27u8, - 48u8, 15u8, 47u8, 203u8, 54u8, 106u8, 114u8, 28u8, 118u8, 101u8, 201u8, - 95u8, 187u8, 46u8, 182u8, 4u8, 30u8, 227u8, 105u8, 14u8, 81u8, + 120u8, 208u8, 75u8, 141u8, 220u8, 153u8, 79u8, 28u8, 255u8, 227u8, + 239u8, 10u8, 243u8, 116u8, 0u8, 226u8, 205u8, 208u8, 91u8, 193u8, + 154u8, 81u8, 169u8, 240u8, 120u8, 48u8, 102u8, 35u8, 25u8, 136u8, 92u8, + 141u8, + ], + ) + } + #[doc = "See [`Pallet::award_child_bounty`]."] + pub fn award_child_bounty( + &self, + parent_bounty_id: alias_types::award_child_bounty::ParentBountyId, + child_bounty_id: alias_types::award_child_bounty::ChildBountyId, + beneficiary: alias_types::award_child_bounty::Beneficiary, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "ChildBounties", + "award_child_bounty", + types::AwardChildBounty { + parent_bounty_id, + child_bounty_id, + beneficiary, + }, + [ + 45u8, 172u8, 88u8, 8u8, 142u8, 34u8, 30u8, 132u8, 61u8, 31u8, 187u8, + 174u8, 21u8, 5u8, 248u8, 185u8, 142u8, 193u8, 29u8, 83u8, 225u8, 213u8, + 153u8, 247u8, 67u8, 219u8, 58u8, 206u8, 102u8, 55u8, 218u8, 154u8, + ], + ) + } + #[doc = "See [`Pallet::claim_child_bounty`]."] + pub fn claim_child_bounty( + &self, + parent_bounty_id: alias_types::claim_child_bounty::ParentBountyId, + child_bounty_id: alias_types::claim_child_bounty::ChildBountyId, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "ChildBounties", + "claim_child_bounty", + types::ClaimChildBounty { + parent_bounty_id, + child_bounty_id, + }, + [ + 114u8, 134u8, 242u8, 240u8, 103u8, 141u8, 181u8, 214u8, 193u8, 222u8, + 23u8, 19u8, 68u8, 174u8, 190u8, 60u8, 94u8, 235u8, 14u8, 115u8, 155u8, + 199u8, 0u8, 106u8, 37u8, 144u8, 92u8, 188u8, 2u8, 149u8, 235u8, 244u8, + ], + ) + } + #[doc = "See [`Pallet::close_child_bounty`]."] + pub fn close_child_bounty( + &self, + parent_bounty_id: alias_types::close_child_bounty::ParentBountyId, + child_bounty_id: alias_types::close_child_bounty::ChildBountyId, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "ChildBounties", + "close_child_bounty", + types::CloseChildBounty { + parent_bounty_id, + child_bounty_id, + }, + [ + 121u8, 20u8, 81u8, 13u8, 102u8, 102u8, 162u8, 24u8, 133u8, 35u8, 203u8, + 58u8, 28u8, 195u8, 114u8, 31u8, 254u8, 252u8, 118u8, 57u8, 30u8, 211u8, + 217u8, 124u8, 148u8, 244u8, 144u8, 224u8, 39u8, 155u8, 162u8, 91u8, ], ) } } } #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_multisig::pallet::Event; + pub type Event = runtime_types::pallet_child_bounties::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -21750,15 +23127,14 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A new multisig operation has begun."] - pub struct NewMultisig { - pub approving: ::subxt::utils::AccountId32, - pub multisig: ::subxt::utils::AccountId32, - pub call_hash: [::core::primitive::u8; 32usize], + #[doc = "A child-bounty is added."] + pub struct Added { + pub index: ::core::primitive::u32, + pub child_index: ::core::primitive::u32, } - impl ::subxt::events::StaticEvent for NewMultisig { - const PALLET: &'static str = "Multisig"; - const EVENT: &'static str = "NewMultisig"; + impl ::subxt::events::StaticEvent for Added { + const PALLET: &'static str = "ChildBounties"; + const EVENT: &'static str = "Added"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -21770,16 +23146,15 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A multisig operation has been approved by someone."] - pub struct MultisigApproval { - pub approving: ::subxt::utils::AccountId32, - pub timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, - pub multisig: ::subxt::utils::AccountId32, - pub call_hash: [::core::primitive::u8; 32usize], + #[doc = "A child-bounty is awarded to a beneficiary."] + pub struct Awarded { + pub index: ::core::primitive::u32, + pub child_index: ::core::primitive::u32, + pub beneficiary: ::subxt::utils::AccountId32, } - impl ::subxt::events::StaticEvent for MultisigApproval { - const PALLET: &'static str = "Multisig"; - const EVENT: &'static str = "MultisigApproval"; + impl ::subxt::events::StaticEvent for Awarded { + const PALLET: &'static str = "ChildBounties"; + const EVENT: &'static str = "Awarded"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -21791,17 +23166,16 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A multisig operation has been executed."] - pub struct MultisigExecuted { - pub approving: ::subxt::utils::AccountId32, - pub timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, - pub multisig: ::subxt::utils::AccountId32, - pub call_hash: [::core::primitive::u8; 32usize], - pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + #[doc = "A child-bounty is claimed by beneficiary."] + pub struct Claimed { + pub index: ::core::primitive::u32, + pub child_index: ::core::primitive::u32, + pub payout: ::core::primitive::u128, + pub beneficiary: ::subxt::utils::AccountId32, } - impl ::subxt::events::StaticEvent for MultisigExecuted { - const PALLET: &'static str = "Multisig"; - const EVENT: &'static str = "MultisigExecuted"; + impl ::subxt::events::StaticEvent for Claimed { + const PALLET: &'static str = "ChildBounties"; + const EVENT: &'static str = "Claimed"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -21813,102 +23187,279 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A multisig operation has been cancelled."] - pub struct MultisigCancelled { - pub cancelling: ::subxt::utils::AccountId32, - pub timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, - pub multisig: ::subxt::utils::AccountId32, - pub call_hash: [::core::primitive::u8; 32usize], + #[doc = "A child-bounty is cancelled."] + pub struct Canceled { + pub index: ::core::primitive::u32, + pub child_index: ::core::primitive::u32, } - impl ::subxt::events::StaticEvent for MultisigCancelled { - const PALLET: &'static str = "Multisig"; - const EVENT: &'static str = "MultisigCancelled"; + impl ::subxt::events::StaticEvent for Canceled { + const PALLET: &'static str = "ChildBounties"; + const EVENT: &'static str = "Canceled"; } } pub mod storage { use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod child_bounty_count { + use super::runtime_types; + pub type ChildBountyCount = ::core::primitive::u32; + } + pub mod parent_child_bounties { + use super::runtime_types; + pub type ParentChildBounties = ::core::primitive::u32; + } + pub mod child_bounties { + use super::runtime_types; + pub type ChildBounties = runtime_types::pallet_child_bounties::ChildBounty< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + ::core::primitive::u32, + >; + } + pub mod child_bounty_descriptions { + use super::runtime_types; + pub type ChildBountyDescriptions = + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; + } + pub mod children_curator_fees { + use super::runtime_types; + pub type ChildrenCuratorFees = ::core::primitive::u128; + } + } pub struct StorageApi; impl StorageApi { - #[doc = " The set of open multisig operations."] - pub fn multisigs_iter( + #[doc = " Number of total child bounties."] + pub fn child_bounty_count( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_multisig::Multisig< - ::core::primitive::u32, - ::core::primitive::u128, - ::subxt::utils::AccountId32, - >, - (), - (), + alias_types::child_bounty_count::ChildBountyCount, ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), > { ::subxt::storage::address::Address::new_static( - "Multisig", - "Multisigs", + "ChildBounties", + "ChildBountyCount", vec![], [ - 154u8, 109u8, 45u8, 18u8, 155u8, 151u8, 81u8, 28u8, 86u8, 127u8, 189u8, - 151u8, 49u8, 61u8, 12u8, 149u8, 84u8, 61u8, 110u8, 197u8, 200u8, 140u8, - 37u8, 100u8, 14u8, 162u8, 158u8, 161u8, 48u8, 117u8, 102u8, 61u8, + 206u8, 1u8, 40u8, 132u8, 51u8, 139u8, 234u8, 20u8, 89u8, 86u8, 247u8, + 107u8, 169u8, 252u8, 5u8, 180u8, 218u8, 24u8, 232u8, 94u8, 82u8, 135u8, + 24u8, 16u8, 134u8, 23u8, 201u8, 86u8, 12u8, 19u8, 199u8, 0u8, ], ) } - #[doc = " The set of open multisig operations."] - pub fn multisigs_iter1( + #[doc = " Number of child bounties per parent bounty."] + #[doc = " Map of parent bounty index to number of child bounties."] + pub fn parent_child_bounties_iter( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_multisig::Multisig< - ::core::primitive::u32, - ::core::primitive::u128, - ::subxt::utils::AccountId32, - >, + alias_types::parent_child_bounties::ParentChildBounties, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "ChildBounties", + "ParentChildBounties", + vec![], + [ + 52u8, 179u8, 242u8, 212u8, 91u8, 185u8, 176u8, 52u8, 100u8, 200u8, 1u8, + 41u8, 184u8, 234u8, 234u8, 8u8, 123u8, 252u8, 131u8, 55u8, 109u8, + 123u8, 89u8, 75u8, 101u8, 165u8, 117u8, 175u8, 92u8, 71u8, 62u8, 67u8, + ], + ) + } + #[doc = " Number of child bounties per parent bounty."] + #[doc = " Map of parent bounty index to number of child bounties."] + pub fn parent_child_bounties( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::parent_child_bounties::ParentChildBounties, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "ChildBounties", + "ParentChildBounties", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 52u8, 179u8, 242u8, 212u8, 91u8, 185u8, 176u8, 52u8, 100u8, 200u8, 1u8, + 41u8, 184u8, 234u8, 234u8, 8u8, 123u8, 252u8, 131u8, 55u8, 109u8, + 123u8, 89u8, 75u8, 101u8, 165u8, 117u8, 175u8, 92u8, 71u8, 62u8, 67u8, + ], + ) + } + #[doc = " Child bounties that have been added."] + pub fn child_bounties_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::child_bounties::ChildBounties, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Multisig", - "Multisigs", + "ChildBounties", + "ChildBounties", + vec![], + [ + 165u8, 240u8, 158u8, 204u8, 183u8, 190u8, 129u8, 65u8, 226u8, 8u8, + 182u8, 103u8, 46u8, 162u8, 35u8, 155u8, 131u8, 45u8, 163u8, 64u8, + 154u8, 137u8, 126u8, 249u8, 238u8, 156u8, 233u8, 78u8, 28u8, 95u8, + 242u8, 147u8, + ], + ) + } + #[doc = " Child bounties that have been added."] + pub fn child_bounties_iter1( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::child_bounties::ChildBounties, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "ChildBounties", + "ChildBounties", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 154u8, 109u8, 45u8, 18u8, 155u8, 151u8, 81u8, 28u8, 86u8, 127u8, 189u8, - 151u8, 49u8, 61u8, 12u8, 149u8, 84u8, 61u8, 110u8, 197u8, 200u8, 140u8, - 37u8, 100u8, 14u8, 162u8, 158u8, 161u8, 48u8, 117u8, 102u8, 61u8, + 165u8, 240u8, 158u8, 204u8, 183u8, 190u8, 129u8, 65u8, 226u8, 8u8, + 182u8, 103u8, 46u8, 162u8, 35u8, 155u8, 131u8, 45u8, 163u8, 64u8, + 154u8, 137u8, 126u8, 249u8, 238u8, 156u8, 233u8, 78u8, 28u8, 95u8, + 242u8, 147u8, ], ) } - #[doc = " The set of open multisig operations."] - pub fn multisigs( + #[doc = " Child bounties that have been added."] + pub fn child_bounties( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - _1: impl ::std::borrow::Borrow<[::core::primitive::u8; 32usize]>, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _1: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_multisig::Multisig< - ::core::primitive::u32, - ::core::primitive::u128, - ::subxt::utils::AccountId32, - >, + alias_types::child_bounties::ChildBounties, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( - "Multisig", - "Multisigs", + "ChildBounties", + "ChildBounties", vec![ ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), ], [ - 154u8, 109u8, 45u8, 18u8, 155u8, 151u8, 81u8, 28u8, 86u8, 127u8, 189u8, - 151u8, 49u8, 61u8, 12u8, 149u8, 84u8, 61u8, 110u8, 197u8, 200u8, 140u8, - 37u8, 100u8, 14u8, 162u8, 158u8, 161u8, 48u8, 117u8, 102u8, 61u8, + 165u8, 240u8, 158u8, 204u8, 183u8, 190u8, 129u8, 65u8, 226u8, 8u8, + 182u8, 103u8, 46u8, 162u8, 35u8, 155u8, 131u8, 45u8, 163u8, 64u8, + 154u8, 137u8, 126u8, 249u8, 238u8, 156u8, 233u8, 78u8, 28u8, 95u8, + 242u8, 147u8, + ], + ) + } + #[doc = " The description of each child-bounty."] + pub fn child_bounty_descriptions_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::child_bounty_descriptions::ChildBountyDescriptions, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "ChildBounties", + "ChildBountyDescriptions", + vec![], + [ + 192u8, 0u8, 220u8, 156u8, 109u8, 65u8, 113u8, 102u8, 119u8, 0u8, 109u8, + 141u8, 211u8, 128u8, 237u8, 61u8, 28u8, 56u8, 206u8, 93u8, 183u8, 74u8, + 192u8, 220u8, 76u8, 175u8, 85u8, 105u8, 179u8, 11u8, 164u8, 100u8, + ], + ) + } + #[doc = " The description of each child-bounty."] + pub fn child_bounty_descriptions( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::child_bounty_descriptions::ChildBountyDescriptions, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "ChildBounties", + "ChildBountyDescriptions", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 192u8, 0u8, 220u8, 156u8, 109u8, 65u8, 113u8, 102u8, 119u8, 0u8, 109u8, + 141u8, 211u8, 128u8, 237u8, 61u8, 28u8, 56u8, 206u8, 93u8, 183u8, 74u8, + 192u8, 220u8, 76u8, 175u8, 85u8, 105u8, 179u8, 11u8, 164u8, 100u8, + ], + ) + } + #[doc = " The cumulative child-bounty curator fee for each parent bounty."] + pub fn children_curator_fees_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::children_curator_fees::ChildrenCuratorFees, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "ChildBounties", + "ChildrenCuratorFees", + vec![], + [ + 32u8, 16u8, 190u8, 193u8, 6u8, 80u8, 163u8, 16u8, 85u8, 111u8, 39u8, + 141u8, 209u8, 70u8, 213u8, 167u8, 22u8, 12u8, 93u8, 17u8, 104u8, 94u8, + 129u8, 37u8, 179u8, 41u8, 156u8, 117u8, 39u8, 202u8, 227u8, 235u8, + ], + ) + } + #[doc = " The cumulative child-bounty curator fee for each parent bounty."] + pub fn children_curator_fees( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::children_curator_fees::ChildrenCuratorFees, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "ChildBounties", + "ChildrenCuratorFees", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 32u8, 16u8, 190u8, 193u8, 6u8, 80u8, 163u8, 16u8, 85u8, 111u8, 39u8, + 141u8, 209u8, 70u8, 213u8, 167u8, 22u8, 12u8, 93u8, 17u8, 104u8, 94u8, + 129u8, 37u8, 179u8, 41u8, 156u8, 117u8, 39u8, 202u8, 227u8, 235u8, ], ) } @@ -21918,32 +23469,28 @@ pub mod api { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - #[doc = " The base amount of currency needed to reserve for creating a multisig execution or to"] - #[doc = " store a dispatch call for later."] - #[doc = ""] - #[doc = " This is held for an additional storage item whose value size is"] - #[doc = " `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is"] - #[doc = " `32 + sizeof(AccountId)` bytes."] - pub fn deposit_base(&self) -> ::subxt::constants::Address<::core::primitive::u128> { + #[doc = " Maximum number of child bounties that can be added to a parent bounty."] + pub fn max_active_child_bounty_count( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( - "Multisig", - "DepositBase", + "ChildBounties", + "MaxActiveChildBountyCount", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, ], ) } - #[doc = " The amount of currency needed per unit threshold when creating a multisig execution."] - #[doc = ""] - #[doc = " This is held for adding 32 bytes more into a pre-existing storage value."] - pub fn deposit_factor( + #[doc = " Minimum value for a child-bounty."] + pub fn child_bounty_value_minimum( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( - "Multisig", - "DepositFactor", + "ChildBounties", + "ChildBountyValueMinimum", [ 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, @@ -21951,74 +23498,57 @@ pub mod api { ], ) } - #[doc = " The maximum amount of signatories allowed in the multisig."] - pub fn max_signatories( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Multisig", - "MaxSignatories", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } } } } - pub mod bounties { + pub mod nis { use super::root_mod; use super::runtime_types; #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_bounties::pallet::Error; + pub type Error = runtime_types::pallet_nis::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::pallet_bounties::pallet::Call; + pub type Call = runtime_types::pallet_nis::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { + pub mod alias_types { use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ProposeBounty { - #[codec(compact)] - pub value: ::core::primitive::u128, - pub description: ::std::vec::Vec<::core::primitive::u8>, + pub mod place_bid { + use super::runtime_types; + pub type Amount = ::core::primitive::u128; + pub type Duration = ::core::primitive::u32; } - impl ::subxt::blocks::StaticExtrinsic for ProposeBounty { - const PALLET: &'static str = "Bounties"; - const CALL: &'static str = "propose_bounty"; + pub mod retract_bid { + use super::runtime_types; + pub type Amount = ::core::primitive::u128; + pub type Duration = ::core::primitive::u32; } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ApproveBounty { - #[codec(compact)] - pub bounty_id: ::core::primitive::u32, + pub mod fund_deficit { + use super::runtime_types; } - impl ::subxt::blocks::StaticExtrinsic for ApproveBounty { - const PALLET: &'static str = "Bounties"; - const CALL: &'static str = "approve_bounty"; + pub mod thaw_private { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type MaybeProportion = ::core::option::Option< + runtime_types::sp_arithmetic::per_things::Perquintill, + >; + } + pub mod thaw_communal { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + } + pub mod communify { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + } + pub mod privatize { + use super::runtime_types; + pub type Index = ::core::primitive::u32; } + } + pub mod types { + use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -22029,16 +23559,14 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ProposeCurator { + pub struct PlaceBid { #[codec(compact)] - pub bounty_id: ::core::primitive::u32, - pub curator: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - #[codec(compact)] - pub fee: ::core::primitive::u128, + pub amount: ::core::primitive::u128, + pub duration: ::core::primitive::u32, } - impl ::subxt::blocks::StaticExtrinsic for ProposeCurator { - const PALLET: &'static str = "Bounties"; - const CALL: &'static str = "propose_curator"; + impl ::subxt::blocks::StaticExtrinsic for PlaceBid { + const PALLET: &'static str = "Nis"; + const CALL: &'static str = "place_bid"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22050,13 +23578,14 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct UnassignCurator { + pub struct RetractBid { #[codec(compact)] - pub bounty_id: ::core::primitive::u32, + pub amount: ::core::primitive::u128, + pub duration: ::core::primitive::u32, } - impl ::subxt::blocks::StaticExtrinsic for UnassignCurator { - const PALLET: &'static str = "Bounties"; - const CALL: &'static str = "unassign_curator"; + impl ::subxt::blocks::StaticExtrinsic for RetractBid { + const PALLET: &'static str = "Nis"; + const CALL: &'static str = "retract_bid"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22068,13 +23597,10 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct AcceptCurator { - #[codec(compact)] - pub bounty_id: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for AcceptCurator { - const PALLET: &'static str = "Bounties"; - const CALL: &'static str = "accept_curator"; + pub struct FundDeficit; + impl ::subxt::blocks::StaticExtrinsic for FundDeficit { + const PALLET: &'static str = "Nis"; + const CALL: &'static str = "fund_deficit"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22086,14 +23612,16 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct AwardBounty { + pub struct ThawPrivate { #[codec(compact)] - pub bounty_id: ::core::primitive::u32, - pub beneficiary: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub index: ::core::primitive::u32, + pub maybe_proportion: ::core::option::Option< + runtime_types::sp_arithmetic::per_things::Perquintill, + >, } - impl ::subxt::blocks::StaticExtrinsic for AwardBounty { - const PALLET: &'static str = "Bounties"; - const CALL: &'static str = "award_bounty"; + impl ::subxt::blocks::StaticExtrinsic for ThawPrivate { + const PALLET: &'static str = "Nis"; + const CALL: &'static str = "thaw_private"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22105,13 +23633,13 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ClaimBounty { + pub struct ThawCommunal { #[codec(compact)] - pub bounty_id: ::core::primitive::u32, + pub index: ::core::primitive::u32, } - impl ::subxt::blocks::StaticExtrinsic for ClaimBounty { - const PALLET: &'static str = "Bounties"; - const CALL: &'static str = "claim_bounty"; + impl ::subxt::blocks::StaticExtrinsic for ThawCommunal { + const PALLET: &'static str = "Nis"; + const CALL: &'static str = "thaw_communal"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22123,13 +23651,13 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct CloseBounty { + pub struct Communify { #[codec(compact)] - pub bounty_id: ::core::primitive::u32, + pub index: ::core::primitive::u32, } - impl ::subxt::blocks::StaticExtrinsic for CloseBounty { - const PALLET: &'static str = "Bounties"; - const CALL: &'static str = "close_bounty"; + impl ::subxt::blocks::StaticExtrinsic for Communify { + const PALLET: &'static str = "Nis"; + const CALL: &'static str = "communify"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22141,187 +23669,144 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ExtendBountyExpiry { + pub struct Privatize { #[codec(compact)] - pub bounty_id: ::core::primitive::u32, - pub remark: ::std::vec::Vec<::core::primitive::u8>, + pub index: ::core::primitive::u32, } - impl ::subxt::blocks::StaticExtrinsic for ExtendBountyExpiry { - const PALLET: &'static str = "Bounties"; - const CALL: &'static str = "extend_bounty_expiry"; + impl ::subxt::blocks::StaticExtrinsic for Privatize { + const PALLET: &'static str = "Nis"; + const CALL: &'static str = "privatize"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::propose_bounty`]."] - pub fn propose_bounty( - &self, - value: ::core::primitive::u128, - description: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Bounties", - "propose_bounty", - types::ProposeBounty { value, description }, - [ - 131u8, 169u8, 55u8, 102u8, 212u8, 139u8, 9u8, 65u8, 75u8, 112u8, 6u8, - 180u8, 92u8, 124u8, 43u8, 42u8, 38u8, 40u8, 226u8, 24u8, 28u8, 34u8, - 169u8, 220u8, 184u8, 206u8, 109u8, 227u8, 53u8, 228u8, 88u8, 25u8, - ], - ) - } - #[doc = "See [`Pallet::approve_bounty`]."] - pub fn approve_bounty( - &self, - bounty_id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Bounties", - "approve_bounty", - types::ApproveBounty { bounty_id }, - [ - 85u8, 12u8, 177u8, 91u8, 183u8, 124u8, 175u8, 148u8, 188u8, 200u8, - 237u8, 144u8, 6u8, 67u8, 159u8, 48u8, 177u8, 222u8, 183u8, 137u8, - 173u8, 131u8, 128u8, 219u8, 255u8, 243u8, 80u8, 224u8, 126u8, 136u8, - 90u8, 47u8, - ], - ) - } - #[doc = "See [`Pallet::propose_curator`]."] - pub fn propose_curator( + #[doc = "See [`Pallet::place_bid`]."] + pub fn place_bid( &self, - bounty_id: ::core::primitive::u32, - curator: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - fee: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { + amount: alias_types::place_bid::Amount, + duration: alias_types::place_bid::Duration, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Bounties", - "propose_curator", - types::ProposeCurator { - bounty_id, - curator, - fee, - }, + "Nis", + "place_bid", + types::PlaceBid { amount, duration }, [ - 238u8, 102u8, 86u8, 97u8, 169u8, 16u8, 133u8, 41u8, 24u8, 247u8, 149u8, - 200u8, 95u8, 213u8, 45u8, 62u8, 41u8, 247u8, 170u8, 62u8, 211u8, 194u8, - 5u8, 108u8, 129u8, 145u8, 108u8, 67u8, 84u8, 97u8, 237u8, 54u8, + 138u8, 214u8, 63u8, 53u8, 233u8, 95u8, 186u8, 83u8, 235u8, 121u8, 4u8, + 41u8, 210u8, 214u8, 35u8, 196u8, 89u8, 102u8, 115u8, 130u8, 151u8, + 212u8, 13u8, 34u8, 198u8, 103u8, 160u8, 39u8, 22u8, 151u8, 216u8, + 243u8, ], ) } - #[doc = "See [`Pallet::unassign_curator`]."] - pub fn unassign_curator( + #[doc = "See [`Pallet::retract_bid`]."] + pub fn retract_bid( &self, - bounty_id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + amount: alias_types::retract_bid::Amount, + duration: alias_types::retract_bid::Duration, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Bounties", - "unassign_curator", - types::UnassignCurator { bounty_id }, + "Nis", + "retract_bid", + types::RetractBid { amount, duration }, [ - 98u8, 94u8, 107u8, 111u8, 151u8, 182u8, 71u8, 239u8, 214u8, 88u8, - 108u8, 11u8, 51u8, 163u8, 102u8, 162u8, 245u8, 247u8, 244u8, 159u8, - 197u8, 23u8, 171u8, 6u8, 60u8, 146u8, 144u8, 101u8, 68u8, 133u8, 245u8, - 74u8, + 156u8, 140u8, 160u8, 45u8, 107u8, 72u8, 2u8, 129u8, 149u8, 89u8, 103u8, + 95u8, 189u8, 42u8, 0u8, 21u8, 51u8, 236u8, 113u8, 33u8, 136u8, 115u8, + 93u8, 223u8, 72u8, 139u8, 46u8, 76u8, 128u8, 134u8, 209u8, 252u8, ], ) } - #[doc = "See [`Pallet::accept_curator`]."] - pub fn accept_curator( - &self, - bounty_id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + #[doc = "See [`Pallet::fund_deficit`]."] + pub fn fund_deficit(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Bounties", - "accept_curator", - types::AcceptCurator { bounty_id }, + "Nis", + "fund_deficit", + types::FundDeficit {}, [ - 178u8, 142u8, 138u8, 15u8, 243u8, 10u8, 222u8, 169u8, 150u8, 200u8, - 85u8, 185u8, 39u8, 167u8, 134u8, 3u8, 186u8, 84u8, 43u8, 140u8, 11u8, - 70u8, 56u8, 197u8, 39u8, 84u8, 138u8, 139u8, 198u8, 104u8, 41u8, 238u8, + 49u8, 183u8, 23u8, 249u8, 232u8, 74u8, 238u8, 100u8, 165u8, 242u8, + 42u8, 6u8, 58u8, 91u8, 28u8, 229u8, 5u8, 180u8, 108u8, 164u8, 63u8, + 20u8, 92u8, 122u8, 222u8, 149u8, 190u8, 194u8, 64u8, 114u8, 22u8, + 176u8, ], ) } - #[doc = "See [`Pallet::award_bounty`]."] - pub fn award_bounty( + #[doc = "See [`Pallet::thaw_private`]."] + pub fn thaw_private( &self, - bounty_id: ::core::primitive::u32, - beneficiary: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - ) -> ::subxt::tx::Payload { + index: alias_types::thaw_private::Index, + maybe_proportion: alias_types::thaw_private::MaybeProportion, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Bounties", - "award_bounty", - types::AwardBounty { - bounty_id, - beneficiary, + "Nis", + "thaw_private", + types::ThawPrivate { + index, + maybe_proportion, }, [ - 231u8, 248u8, 65u8, 2u8, 199u8, 19u8, 126u8, 23u8, 206u8, 206u8, 230u8, - 77u8, 53u8, 152u8, 230u8, 234u8, 211u8, 153u8, 82u8, 149u8, 93u8, 91u8, - 19u8, 72u8, 214u8, 92u8, 65u8, 207u8, 142u8, 168u8, 133u8, 87u8, + 202u8, 131u8, 103u8, 88u8, 165u8, 203u8, 191u8, 48u8, 99u8, 26u8, 1u8, + 133u8, 8u8, 139u8, 216u8, 195u8, 22u8, 91u8, 240u8, 188u8, 228u8, 54u8, + 140u8, 156u8, 66u8, 13u8, 53u8, 184u8, 157u8, 177u8, 227u8, 52u8, ], ) } - #[doc = "See [`Pallet::claim_bounty`]."] - pub fn claim_bounty( + #[doc = "See [`Pallet::thaw_communal`]."] + pub fn thaw_communal( &self, - bounty_id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + index: alias_types::thaw_communal::Index, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Bounties", - "claim_bounty", - types::ClaimBounty { bounty_id }, + "Nis", + "thaw_communal", + types::ThawCommunal { index }, [ - 211u8, 143u8, 123u8, 205u8, 140u8, 43u8, 176u8, 103u8, 110u8, 125u8, - 158u8, 131u8, 103u8, 62u8, 69u8, 215u8, 220u8, 110u8, 11u8, 3u8, 30u8, - 193u8, 235u8, 177u8, 96u8, 241u8, 140u8, 53u8, 62u8, 133u8, 170u8, - 25u8, + 106u8, 64u8, 53u8, 173u8, 59u8, 135u8, 254u8, 38u8, 119u8, 2u8, 4u8, + 109u8, 21u8, 220u8, 218u8, 220u8, 34u8, 10u8, 86u8, 248u8, 166u8, + 226u8, 183u8, 117u8, 211u8, 16u8, 53u8, 236u8, 0u8, 187u8, 140u8, + 221u8, ], ) } - #[doc = "See [`Pallet::close_bounty`]."] - pub fn close_bounty( + #[doc = "See [`Pallet::communify`]."] + pub fn communify( &self, - bounty_id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + index: alias_types::communify::Index, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Bounties", - "close_bounty", - types::CloseBounty { bounty_id }, + "Nis", + "communify", + types::Communify { index }, [ - 144u8, 234u8, 109u8, 39u8, 227u8, 231u8, 104u8, 48u8, 45u8, 196u8, - 217u8, 220u8, 241u8, 197u8, 157u8, 227u8, 154u8, 156u8, 181u8, 69u8, - 146u8, 77u8, 203u8, 167u8, 79u8, 102u8, 15u8, 253u8, 135u8, 53u8, 96u8, - 60u8, + 206u8, 141u8, 231u8, 98u8, 101u8, 34u8, 101u8, 190u8, 22u8, 246u8, + 238u8, 30u8, 48u8, 104u8, 128u8, 115u8, 49u8, 78u8, 30u8, 230u8, 59u8, + 173u8, 70u8, 89u8, 82u8, 212u8, 105u8, 236u8, 86u8, 244u8, 248u8, + 144u8, ], ) } - #[doc = "See [`Pallet::extend_bounty_expiry`]."] - pub fn extend_bounty_expiry( + #[doc = "See [`Pallet::privatize`]."] + pub fn privatize( &self, - bounty_id: ::core::primitive::u32, - remark: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::Payload { + index: alias_types::privatize::Index, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Bounties", - "extend_bounty_expiry", - types::ExtendBountyExpiry { bounty_id, remark }, + "Nis", + "privatize", + types::Privatize { index }, [ - 102u8, 118u8, 89u8, 189u8, 138u8, 157u8, 216u8, 10u8, 239u8, 3u8, - 200u8, 217u8, 219u8, 19u8, 195u8, 182u8, 105u8, 220u8, 11u8, 146u8, - 222u8, 79u8, 95u8, 136u8, 188u8, 230u8, 248u8, 119u8, 30u8, 6u8, 242u8, - 194u8, + 228u8, 215u8, 197u8, 40u8, 194u8, 170u8, 139u8, 192u8, 214u8, 61u8, + 107u8, 132u8, 89u8, 122u8, 58u8, 12u8, 11u8, 231u8, 186u8, 73u8, 106u8, + 99u8, 134u8, 216u8, 206u8, 118u8, 221u8, 223u8, 187u8, 206u8, 246u8, + 255u8, ], ) } } } #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_bounties::pallet::Event; + pub type Event = runtime_types::pallet_nis::pallet::Event; pub mod events { use super::runtime_types; #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -22331,13 +23816,15 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "New bounty proposal."] - pub struct BountyProposed { - pub index: ::core::primitive::u32, + #[doc = "A bid was successfully placed."] + pub struct BidPlaced { + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + pub duration: ::core::primitive::u32, } - impl ::subxt::events::StaticEvent for BountyProposed { - const PALLET: &'static str = "Bounties"; - const EVENT: &'static str = "BountyProposed"; + impl ::subxt::events::StaticEvent for BidPlaced { + const PALLET: &'static str = "Nis"; + const EVENT: &'static str = "BidPlaced"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22349,17 +23836,17 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A bounty proposal was rejected; funds were slashed."] - pub struct BountyRejected { - pub index: ::core::primitive::u32, - pub bond: ::core::primitive::u128, + #[doc = "A bid was successfully removed (before being accepted)."] + pub struct BidRetracted { + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + pub duration: ::core::primitive::u32, } - impl ::subxt::events::StaticEvent for BountyRejected { - const PALLET: &'static str = "Bounties"; - const EVENT: &'static str = "BountyRejected"; + impl ::subxt::events::StaticEvent for BidRetracted { + const PALLET: &'static str = "Nis"; + const EVENT: &'static str = "BidRetracted"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -22369,13 +23856,15 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A bounty proposal is funded and became active."] - pub struct BountyBecameActive { - pub index: ::core::primitive::u32, + #[doc = "A bid was dropped from a queue because of another, more substantial, bid was present."] + pub struct BidDropped { + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + pub duration: ::core::primitive::u32, } - impl ::subxt::events::StaticEvent for BountyBecameActive { - const PALLET: &'static str = "Bounties"; - const EVENT: &'static str = "BountyBecameActive"; + impl ::subxt::events::StaticEvent for BidDropped { + const PALLET: &'static str = "Nis"; + const EVENT: &'static str = "BidDropped"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22387,14 +23876,17 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A bounty is awarded to a beneficiary."] - pub struct BountyAwarded { + #[doc = "A bid was accepted. The balance may not be released until expiry."] + pub struct Issued { pub index: ::core::primitive::u32, - pub beneficiary: ::subxt::utils::AccountId32, + pub expiry: ::core::primitive::u32, + pub who: ::subxt::utils::AccountId32, + pub proportion: runtime_types::sp_arithmetic::per_things::Perquintill, + pub amount: ::core::primitive::u128, } - impl ::subxt::events::StaticEvent for BountyAwarded { - const PALLET: &'static str = "Bounties"; - const EVENT: &'static str = "BountyAwarded"; + impl ::subxt::events::StaticEvent for Issued { + const PALLET: &'static str = "Nis"; + const EVENT: &'static str = "Issued"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22406,15 +23898,17 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A bounty is claimed by beneficiary."] - pub struct BountyClaimed { + #[doc = "An receipt has been (at least partially) thawed."] + pub struct Thawed { pub index: ::core::primitive::u32, - pub payout: ::core::primitive::u128, - pub beneficiary: ::subxt::utils::AccountId32, + pub who: ::subxt::utils::AccountId32, + pub proportion: runtime_types::sp_arithmetic::per_things::Perquintill, + pub amount: ::core::primitive::u128, + pub dropped: ::core::primitive::bool, } - impl ::subxt::events::StaticEvent for BountyClaimed { - const PALLET: &'static str = "Bounties"; - const EVENT: &'static str = "BountyClaimed"; + impl ::subxt::events::StaticEvent for Thawed { + const PALLET: &'static str = "Nis"; + const EVENT: &'static str = "Thawed"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -22427,16 +23921,15 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A bounty is cancelled."] - pub struct BountyCanceled { - pub index: ::core::primitive::u32, + #[doc = "An automatic funding of the deficit was made."] + pub struct Funded { + pub deficit: ::core::primitive::u128, } - impl ::subxt::events::StaticEvent for BountyCanceled { - const PALLET: &'static str = "Bounties"; - const EVENT: &'static str = "BountyCanceled"; + impl ::subxt::events::StaticEvent for Funded { + const PALLET: &'static str = "Nis"; + const EVENT: &'static str = "Funded"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -22446,165 +23939,192 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A bounty expiry is extended."] - pub struct BountyExtended { + #[doc = "A receipt was transfered."] + pub struct Transferred { + pub from: ::subxt::utils::AccountId32, + pub to: ::subxt::utils::AccountId32, pub index: ::core::primitive::u32, } - impl ::subxt::events::StaticEvent for BountyExtended { - const PALLET: &'static str = "Bounties"; - const EVENT: &'static str = "BountyExtended"; + impl ::subxt::events::StaticEvent for Transferred { + const PALLET: &'static str = "Nis"; + const EVENT: &'static str = "Transferred"; } } pub mod storage { use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Number of bounty proposals that have been made."] - pub fn bounty_count( + pub mod alias_types { + use super::runtime_types; + pub mod queue_totals { + use super::runtime_types; + pub type QueueTotals = + runtime_types::bounded_collections::bounded_vec::BoundedVec<( + ::core::primitive::u32, + ::core::primitive::u128, + )>; + } + pub mod queues { + use super::runtime_types; + pub type Queues = runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_nis::pallet::Bid< + ::core::primitive::u128, + ::subxt::utils::AccountId32, + >, + >; + } + pub mod summary { + use super::runtime_types; + pub type Summary = runtime_types::pallet_nis::pallet::SummaryRecord< + ::core::primitive::u32, + ::core::primitive::u128, + >; + } + pub mod receipts { + use super::runtime_types; + pub type Receipts = runtime_types::pallet_nis::pallet::ReceiptRecord< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + ::core::primitive::u128, + >; + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " The totals of items and balances within each queue. Saves a lot of storage reads in the"] + #[doc = " case of sparsely packed queues."] + #[doc = ""] + #[doc = " The vector is indexed by duration in `Period`s, offset by one, so information on the queue"] + #[doc = " whose duration is one `Period` would be storage `0`."] + pub fn queue_totals( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, + alias_types::queue_totals::QueueTotals, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( - "Bounties", - "BountyCount", + "Nis", + "QueueTotals", vec![], [ - 120u8, 204u8, 26u8, 150u8, 37u8, 81u8, 43u8, 223u8, 180u8, 252u8, - 142u8, 144u8, 109u8, 5u8, 184u8, 72u8, 223u8, 230u8, 66u8, 196u8, 14u8, - 14u8, 164u8, 190u8, 246u8, 168u8, 190u8, 56u8, 212u8, 73u8, 175u8, - 26u8, + 40u8, 120u8, 43u8, 203u8, 97u8, 129u8, 61u8, 184u8, 137u8, 45u8, 201u8, + 90u8, 227u8, 161u8, 52u8, 179u8, 9u8, 74u8, 104u8, 225u8, 209u8, 62u8, + 69u8, 222u8, 124u8, 202u8, 36u8, 137u8, 183u8, 102u8, 234u8, 58u8, ], ) } - #[doc = " Bounties that have been made."] - pub fn bounties_iter( + #[doc = " The queues of bids. Indexed by duration (in `Period`s)."] + pub fn queues_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_bounties::Bounty< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - ::core::primitive::u32, - >, - (), + alias_types::queues::Queues, (), ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Bounties", - "Bounties", + "Nis", + "Queues", vec![], [ - 183u8, 96u8, 172u8, 86u8, 167u8, 129u8, 51u8, 179u8, 238u8, 155u8, - 196u8, 77u8, 158u8, 102u8, 188u8, 19u8, 79u8, 178u8, 145u8, 189u8, - 44u8, 117u8, 47u8, 97u8, 30u8, 149u8, 239u8, 212u8, 167u8, 127u8, - 108u8, 55u8, + 144u8, 181u8, 173u8, 134u8, 6u8, 165u8, 174u8, 91u8, 75u8, 241u8, + 142u8, 192u8, 246u8, 71u8, 132u8, 146u8, 181u8, 158u8, 125u8, 34u8, + 5u8, 151u8, 136u8, 148u8, 228u8, 11u8, 226u8, 229u8, 8u8, 50u8, 205u8, + 75u8, ], ) } - #[doc = " Bounties that have been made."] - pub fn bounties( + #[doc = " The queues of bids. Indexed by duration (in `Period`s)."] + pub fn queues( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_bounties::Bounty< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - ::core::primitive::u32, - >, + alias_types::queues::Queues, + ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, - (), (), > { ::subxt::storage::address::Address::new_static( - "Bounties", - "Bounties", + "Nis", + "Queues", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 183u8, 96u8, 172u8, 86u8, 167u8, 129u8, 51u8, 179u8, 238u8, 155u8, - 196u8, 77u8, 158u8, 102u8, 188u8, 19u8, 79u8, 178u8, 145u8, 189u8, - 44u8, 117u8, 47u8, 97u8, 30u8, 149u8, 239u8, 212u8, 167u8, 127u8, - 108u8, 55u8, + 144u8, 181u8, 173u8, 134u8, 6u8, 165u8, 174u8, 91u8, 75u8, 241u8, + 142u8, 192u8, 246u8, 71u8, 132u8, 146u8, 181u8, 158u8, 125u8, 34u8, + 5u8, 151u8, 136u8, 148u8, 228u8, 11u8, 226u8, 229u8, 8u8, 50u8, 205u8, + 75u8, ], ) } - #[doc = " The description of each bounty."] - pub fn bounty_descriptions_iter( + #[doc = " Summary information over the general state."] + pub fn summary( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - (), - (), + alias_types::summary::Summary, ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), > { ::subxt::storage::address::Address::new_static( - "Bounties", - "BountyDescriptions", + "Nis", + "Summary", vec![], [ - 71u8, 40u8, 133u8, 84u8, 55u8, 207u8, 169u8, 189u8, 160u8, 51u8, 202u8, - 144u8, 15u8, 226u8, 97u8, 114u8, 54u8, 247u8, 53u8, 26u8, 36u8, 54u8, - 186u8, 163u8, 198u8, 100u8, 191u8, 121u8, 186u8, 160u8, 85u8, 97u8, + 106u8, 21u8, 103u8, 47u8, 211u8, 234u8, 50u8, 222u8, 25u8, 209u8, 67u8, + 117u8, 111u8, 6u8, 231u8, 245u8, 109u8, 52u8, 177u8, 20u8, 179u8, + 253u8, 251u8, 197u8, 218u8, 163u8, 229u8, 187u8, 172u8, 122u8, 126u8, + 57u8, ], ) } - #[doc = " The description of each bounty."] - pub fn bounty_descriptions( + #[doc = " The currently outstanding receipts, indexed according to the order of creation."] + pub fn receipts_iter( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - ::subxt::storage::address::Yes, + alias_types::receipts::Receipts, (), (), + ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Bounties", - "BountyDescriptions", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], + "Nis", + "Receipts", + vec![], [ - 71u8, 40u8, 133u8, 84u8, 55u8, 207u8, 169u8, 189u8, 160u8, 51u8, 202u8, - 144u8, 15u8, 226u8, 97u8, 114u8, 54u8, 247u8, 53u8, 26u8, 36u8, 54u8, - 186u8, 163u8, 198u8, 100u8, 191u8, 121u8, 186u8, 160u8, 85u8, 97u8, + 123u8, 179u8, 0u8, 14u8, 5u8, 132u8, 165u8, 192u8, 163u8, 22u8, 174u8, + 22u8, 252u8, 44u8, 167u8, 22u8, 116u8, 170u8, 186u8, 118u8, 131u8, 5u8, + 237u8, 121u8, 35u8, 146u8, 206u8, 239u8, 155u8, 108u8, 46u8, 0u8, ], ) } - #[doc = " Bounty indices that have been approved but not yet funded."] - pub fn bounty_approvals( + #[doc = " The currently outstanding receipts, indexed according to the order of creation."] + pub fn receipts( &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u32, - >, - ::subxt::storage::address::Yes, + alias_types::receipts::Receipts, ::subxt::storage::address::Yes, (), + (), > { ::subxt::storage::address::Address::new_static( - "Bounties", - "BountyApprovals", - vec![], + "Nis", + "Receipts", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], [ - 182u8, 228u8, 0u8, 46u8, 176u8, 25u8, 222u8, 180u8, 51u8, 57u8, 14u8, - 0u8, 69u8, 160u8, 64u8, 27u8, 88u8, 29u8, 227u8, 146u8, 2u8, 121u8, - 27u8, 85u8, 45u8, 110u8, 244u8, 62u8, 134u8, 77u8, 175u8, 188u8, + 123u8, 179u8, 0u8, 14u8, 5u8, 132u8, 165u8, 192u8, 163u8, 22u8, 174u8, + 22u8, 252u8, 44u8, 167u8, 22u8, 116u8, 170u8, 186u8, 118u8, 131u8, 5u8, + 237u8, 121u8, 35u8, 146u8, 206u8, 239u8, 155u8, 108u8, 46u8, 0u8, ], ) } @@ -22614,27 +24134,27 @@ pub mod api { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - #[doc = " The amount held on deposit for placing a bounty proposal."] - pub fn bounty_deposit_base( + #[doc = " The treasury's pallet id, used for deriving its sovereign account ID."] + pub fn pallet_id( &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { + ) -> ::subxt::constants::Address + { ::subxt::constants::Address::new_static( - "Bounties", - "BountyDepositBase", + "Nis", + "PalletId", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + 56u8, 243u8, 53u8, 83u8, 154u8, 179u8, 170u8, 80u8, 133u8, 173u8, 61u8, + 161u8, 47u8, 225u8, 146u8, 21u8, 50u8, 229u8, 248u8, 27u8, 104u8, 58u8, + 129u8, 197u8, 102u8, 160u8, 168u8, 205u8, 154u8, 42u8, 217u8, 53u8, ], ) } - #[doc = " The delay period for which a bounty beneficiary need to wait before claim the payout."] - pub fn bounty_deposit_payout_delay( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + #[doc = " Number of duration queues in total. This sets the maximum duration supported, which is"] + #[doc = " this value multiplied by `Period`."] + pub fn queue_count(&self) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( - "Bounties", - "BountyDepositPayoutDelay", + "Nis", + "QueueCount", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, @@ -22643,13 +24163,13 @@ pub mod api { ], ) } - #[doc = " Bounty duration in blocks."] - pub fn bounty_update_period( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + #[doc = " Maximum number of items that may be in each duration queue."] + #[doc = ""] + #[doc = " Must be larger than zero."] + pub fn max_queue_len(&self) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( - "Bounties", - "BountyUpdatePeriod", + "Nis", + "MaxQueueLen", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, @@ -22658,63 +24178,47 @@ pub mod api { ], ) } - #[doc = " The curator deposit is calculated as a percentage of the curator fee."] + #[doc = " Portion of the queue which is free from ordering and just a FIFO."] #[doc = ""] - #[doc = " This deposit has optional upper and lower bounds with `CuratorDepositMax` and"] - #[doc = " `CuratorDepositMin`."] - pub fn curator_deposit_multiplier( - &self, - ) -> ::subxt::constants::Address - { - ::subxt::constants::Address::new_static( - "Bounties", - "CuratorDepositMultiplier", - [ - 65u8, 93u8, 120u8, 165u8, 204u8, 81u8, 159u8, 163u8, 93u8, 135u8, - 114u8, 121u8, 147u8, 35u8, 215u8, 213u8, 4u8, 223u8, 83u8, 37u8, 225u8, - 200u8, 189u8, 156u8, 140u8, 36u8, 58u8, 46u8, 42u8, 232u8, 155u8, 0u8, - ], - ) - } - #[doc = " Maximum amount of funds that should be placed in a deposit for making a proposal."] - pub fn curator_deposit_max( + #[doc = " Must be no greater than `MaxQueueLen`."] + pub fn fifo_queue_len( &self, - ) -> ::subxt::constants::Address<::core::option::Option<::core::primitive::u128>> - { + ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( - "Bounties", - "CuratorDepositMax", + "Nis", + "FifoQueueLen", [ - 198u8, 51u8, 89u8, 159u8, 124u8, 251u8, 51u8, 80u8, 167u8, 193u8, 44u8, - 199u8, 80u8, 36u8, 41u8, 130u8, 137u8, 229u8, 178u8, 208u8, 37u8, - 215u8, 169u8, 183u8, 180u8, 191u8, 140u8, 240u8, 250u8, 61u8, 42u8, - 147u8, + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, ], ) } - #[doc = " Minimum amount of funds that should be placed in a deposit for making a proposal."] - pub fn curator_deposit_min( - &self, - ) -> ::subxt::constants::Address<::core::option::Option<::core::primitive::u128>> - { + #[doc = " The base period for the duration queues. This is the common multiple across all"] + #[doc = " supported freezing durations that can be bid upon."] + pub fn base_period(&self) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( - "Bounties", - "CuratorDepositMin", + "Nis", + "BasePeriod", [ - 198u8, 51u8, 89u8, 159u8, 124u8, 251u8, 51u8, 80u8, 167u8, 193u8, 44u8, - 199u8, 80u8, 36u8, 41u8, 130u8, 137u8, 229u8, 178u8, 208u8, 37u8, - 215u8, 169u8, 183u8, 180u8, 191u8, 140u8, 240u8, 250u8, 61u8, 42u8, - 147u8, + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, ], ) } - #[doc = " Minimum value for a bounty."] - pub fn bounty_value_minimum( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { + #[doc = " The minimum amount of funds that may be placed in a bid. Note that this"] + #[doc = " does not actually limit the amount which may be represented in a receipt since bids may"] + #[doc = " be split up by the system."] + #[doc = ""] + #[doc = " It should be at least big enough to ensure that there is no possible storage spam attack"] + #[doc = " or queue-filling attack."] + pub fn min_bid(&self) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( - "Bounties", - "BountyValueMinimum", + "Nis", + "MinBid", [ 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, @@ -22722,29 +24226,32 @@ pub mod api { ], ) } - #[doc = " The amount held on deposit per byte within the tip report reason or bounty description."] - pub fn data_deposit_per_byte( + #[doc = " The minimum amount of funds which may intentionally be left remaining under a single"] + #[doc = " receipt."] + pub fn min_receipt( &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { + ) -> ::subxt::constants::Address< + runtime_types::sp_arithmetic::per_things::Perquintill, + > { ::subxt::constants::Address::new_static( - "Bounties", - "DataDepositPerByte", + "Nis", + "MinReceipt", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + 184u8, 78u8, 161u8, 6u8, 214u8, 205u8, 82u8, 205u8, 126u8, 46u8, 7u8, + 198u8, 186u8, 10u8, 66u8, 116u8, 191u8, 223u8, 17u8, 246u8, 196u8, + 190u8, 222u8, 226u8, 62u8, 35u8, 191u8, 127u8, 60u8, 171u8, 85u8, + 201u8, ], ) } - #[doc = " Maximum acceptable reason length."] + #[doc = " The number of blocks between consecutive attempts to dequeue bids and create receipts."] #[doc = ""] - #[doc = " Benchmarks depend on this value, be sure to update weights file when changing this value"] - pub fn maximum_reason_length( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + #[doc = " A larger value results in fewer storage hits each block, but a slower period to get to"] + #[doc = " the target."] + pub fn intake_period(&self) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( - "Bounties", - "MaximumReasonLength", + "Nis", + "IntakePeriod", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, @@ -22753,20 +24260,94 @@ pub mod api { ], ) } + #[doc = " The maximum amount of bids that can consolidated into receipts in a single intake. A"] + #[doc = " larger value here means less of the block available for transactions should there be a"] + #[doc = " glut of bids."] + pub fn max_intake_weight( + &self, + ) -> ::subxt::constants::Address + { + ::subxt::constants::Address::new_static( + "Nis", + "MaxIntakeWeight", + [ + 149u8, 252u8, 129u8, 80u8, 169u8, 36u8, 79u8, 127u8, 240u8, 156u8, + 56u8, 202u8, 219u8, 86u8, 5u8, 65u8, 245u8, 148u8, 138u8, 243u8, 210u8, + 128u8, 234u8, 216u8, 240u8, 219u8, 123u8, 235u8, 21u8, 158u8, 237u8, + 112u8, + ], + ) + } + #[doc = " The maximum proportion which may be thawed and the period over which it is reset."] + pub fn thaw_throttle( + &self, + ) -> ::subxt::constants::Address<( + runtime_types::sp_arithmetic::per_things::Perquintill, + ::core::primitive::u32, + )> { + ::subxt::constants::Address::new_static( + "Nis", + "ThawThrottle", + [ + 41u8, 240u8, 41u8, 161u8, 238u8, 241u8, 63u8, 205u8, 122u8, 230u8, + 158u8, 65u8, 212u8, 229u8, 123u8, 215u8, 69u8, 204u8, 207u8, 193u8, + 149u8, 229u8, 193u8, 245u8, 210u8, 63u8, 106u8, 42u8, 27u8, 182u8, + 66u8, 167u8, + ], + ) + } } } } - pub mod child_bounties { + pub mod nis_counterpart_balances { use super::root_mod; use super::runtime_types; #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_child_bounties::pallet::Error; + pub type Error = runtime_types::pallet_balances::pallet::Error2; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::pallet_child_bounties::pallet::Call; + pub type Call = runtime_types::pallet_balances::pallet::Call2; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod alias_types { + use super::runtime_types; + pub mod transfer_allow_death { + use super::runtime_types; + pub type Dest = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Value = ::core::primitive::u128; + } + pub mod force_transfer { + use super::runtime_types; + pub type Source = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Dest = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Value = ::core::primitive::u128; + } + pub mod transfer_keep_alive { + use super::runtime_types; + pub type Dest = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Value = ::core::primitive::u128; + } + pub mod transfer_all { + use super::runtime_types; + pub type Dest = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type KeepAlive = ::core::primitive::bool; + } + pub mod force_unreserve { + use super::runtime_types; + pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Amount = ::core::primitive::u128; + } + pub mod upgrade_accounts { + use super::runtime_types; + pub type Who = ::std::vec::Vec<::subxt::utils::AccountId32>; + } + pub mod force_set_balance { + use super::runtime_types; + pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type NewFree = ::core::primitive::u128; + } + } pub mod types { use super::runtime_types; #[derive( @@ -22779,16 +24360,14 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct AddChildBounty { - #[codec(compact)] - pub parent_bounty_id: ::core::primitive::u32, + pub struct TransferAllowDeath { + pub dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, #[codec(compact)] pub value: ::core::primitive::u128, - pub description: ::std::vec::Vec<::core::primitive::u8>, } - impl ::subxt::blocks::StaticExtrinsic for AddChildBounty { - const PALLET: &'static str = "ChildBounties"; - const CALL: &'static str = "add_child_bounty"; + impl ::subxt::blocks::StaticExtrinsic for TransferAllowDeath { + const PALLET: &'static str = "NisCounterpartBalances"; + const CALL: &'static str = "transfer_allow_death"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22800,18 +24379,15 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ProposeCurator { - #[codec(compact)] - pub parent_bounty_id: ::core::primitive::u32, - #[codec(compact)] - pub child_bounty_id: ::core::primitive::u32, - pub curator: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub struct ForceTransfer { + pub source: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, #[codec(compact)] - pub fee: ::core::primitive::u128, + pub value: ::core::primitive::u128, } - impl ::subxt::blocks::StaticExtrinsic for ProposeCurator { - const PALLET: &'static str = "ChildBounties"; - const CALL: &'static str = "propose_curator"; + impl ::subxt::blocks::StaticExtrinsic for ForceTransfer { + const PALLET: &'static str = "NisCounterpartBalances"; + const CALL: &'static str = "force_transfer"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22823,15 +24399,14 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct AcceptCurator { - #[codec(compact)] - pub parent_bounty_id: ::core::primitive::u32, + pub struct TransferKeepAlive { + pub dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, #[codec(compact)] - pub child_bounty_id: ::core::primitive::u32, + pub value: ::core::primitive::u128, } - impl ::subxt::blocks::StaticExtrinsic for AcceptCurator { - const PALLET: &'static str = "ChildBounties"; - const CALL: &'static str = "accept_curator"; + impl ::subxt::blocks::StaticExtrinsic for TransferKeepAlive { + const PALLET: &'static str = "NisCounterpartBalances"; + const CALL: &'static str = "transfer_keep_alive"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22843,15 +24418,13 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct UnassignCurator { - #[codec(compact)] - pub parent_bounty_id: ::core::primitive::u32, - #[codec(compact)] - pub child_bounty_id: ::core::primitive::u32, + pub struct TransferAll { + pub dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub keep_alive: ::core::primitive::bool, } - impl ::subxt::blocks::StaticExtrinsic for UnassignCurator { - const PALLET: &'static str = "ChildBounties"; - const CALL: &'static str = "unassign_curator"; + impl ::subxt::blocks::StaticExtrinsic for TransferAll { + const PALLET: &'static str = "NisCounterpartBalances"; + const CALL: &'static str = "transfer_all"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22863,16 +24436,13 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct AwardChildBounty { - #[codec(compact)] - pub parent_bounty_id: ::core::primitive::u32, - #[codec(compact)] - pub child_bounty_id: ::core::primitive::u32, - pub beneficiary: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub struct ForceUnreserve { + pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub amount: ::core::primitive::u128, } - impl ::subxt::blocks::StaticExtrinsic for AwardChildBounty { - const PALLET: &'static str = "ChildBounties"; - const CALL: &'static str = "award_child_bounty"; + impl ::subxt::blocks::StaticExtrinsic for ForceUnreserve { + const PALLET: &'static str = "NisCounterpartBalances"; + const CALL: &'static str = "force_unreserve"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22884,15 +24454,12 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ClaimChildBounty { - #[codec(compact)] - pub parent_bounty_id: ::core::primitive::u32, - #[codec(compact)] - pub child_bounty_id: ::core::primitive::u32, + pub struct UpgradeAccounts { + pub who: ::std::vec::Vec<::subxt::utils::AccountId32>, } - impl ::subxt::blocks::StaticExtrinsic for ClaimChildBounty { - const PALLET: &'static str = "ChildBounties"; - const CALL: &'static str = "claim_child_bounty"; + impl ::subxt::blocks::StaticExtrinsic for UpgradeAccounts { + const PALLET: &'static str = "NisCounterpartBalances"; + const CALL: &'static str = "upgrade_accounts"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22904,174 +24471,147 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct CloseChildBounty { - #[codec(compact)] - pub parent_bounty_id: ::core::primitive::u32, + pub struct ForceSetBalance { + pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, #[codec(compact)] - pub child_bounty_id: ::core::primitive::u32, + pub new_free: ::core::primitive::u128, } - impl ::subxt::blocks::StaticExtrinsic for CloseChildBounty { - const PALLET: &'static str = "ChildBounties"; - const CALL: &'static str = "close_child_bounty"; + impl ::subxt::blocks::StaticExtrinsic for ForceSetBalance { + const PALLET: &'static str = "NisCounterpartBalances"; + const CALL: &'static str = "force_set_balance"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::add_child_bounty`]."] - pub fn add_child_bounty( + #[doc = "See [`Pallet::transfer_allow_death`]."] + pub fn transfer_allow_death( &self, - parent_bounty_id: ::core::primitive::u32, - value: ::core::primitive::u128, - description: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::Payload { + dest: alias_types::transfer_allow_death::Dest, + value: alias_types::transfer_allow_death::Value, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "ChildBounties", - "add_child_bounty", - types::AddChildBounty { - parent_bounty_id, - value, - description, - }, + "NisCounterpartBalances", + "transfer_allow_death", + types::TransferAllowDeath { dest, value }, [ - 249u8, 159u8, 185u8, 144u8, 114u8, 142u8, 104u8, 215u8, 136u8, 52u8, - 255u8, 125u8, 54u8, 243u8, 220u8, 171u8, 254u8, 49u8, 105u8, 134u8, - 137u8, 221u8, 100u8, 111u8, 72u8, 38u8, 184u8, 122u8, 72u8, 204u8, - 182u8, 123u8, + 51u8, 166u8, 195u8, 10u8, 139u8, 218u8, 55u8, 130u8, 6u8, 194u8, 35u8, + 140u8, 27u8, 205u8, 214u8, 222u8, 102u8, 43u8, 143u8, 145u8, 86u8, + 219u8, 210u8, 147u8, 13u8, 39u8, 51u8, 21u8, 237u8, 179u8, 132u8, + 130u8, ], ) } - #[doc = "See [`Pallet::propose_curator`]."] - pub fn propose_curator( + #[doc = "See [`Pallet::force_transfer`]."] + pub fn force_transfer( &self, - parent_bounty_id: ::core::primitive::u32, - child_bounty_id: ::core::primitive::u32, - curator: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - fee: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { + source: alias_types::force_transfer::Source, + dest: alias_types::force_transfer::Dest, + value: alias_types::force_transfer::Value, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "ChildBounties", - "propose_curator", - types::ProposeCurator { - parent_bounty_id, - child_bounty_id, - curator, - fee, + "NisCounterpartBalances", + "force_transfer", + types::ForceTransfer { + source, + dest, + value, }, [ - 30u8, 186u8, 200u8, 181u8, 73u8, 219u8, 129u8, 195u8, 100u8, 30u8, - 36u8, 9u8, 131u8, 110u8, 136u8, 145u8, 146u8, 44u8, 96u8, 207u8, 74u8, - 59u8, 61u8, 94u8, 186u8, 184u8, 89u8, 170u8, 126u8, 64u8, 234u8, 177u8, + 154u8, 93u8, 222u8, 27u8, 12u8, 248u8, 63u8, 213u8, 224u8, 86u8, 250u8, + 153u8, 249u8, 102u8, 83u8, 160u8, 79u8, 125u8, 105u8, 222u8, 77u8, + 180u8, 90u8, 105u8, 81u8, 217u8, 60u8, 25u8, 213u8, 51u8, 185u8, 96u8, ], ) } - #[doc = "See [`Pallet::accept_curator`]."] - pub fn accept_curator( + #[doc = "See [`Pallet::transfer_keep_alive`]."] + pub fn transfer_keep_alive( &self, - parent_bounty_id: ::core::primitive::u32, - child_bounty_id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + dest: alias_types::transfer_keep_alive::Dest, + value: alias_types::transfer_keep_alive::Value, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "ChildBounties", - "accept_curator", - types::AcceptCurator { - parent_bounty_id, - child_bounty_id, - }, + "NisCounterpartBalances", + "transfer_keep_alive", + types::TransferKeepAlive { dest, value }, [ - 80u8, 117u8, 237u8, 83u8, 230u8, 230u8, 159u8, 136u8, 87u8, 17u8, - 239u8, 110u8, 190u8, 12u8, 52u8, 63u8, 171u8, 118u8, 82u8, 168u8, - 190u8, 255u8, 91u8, 85u8, 117u8, 226u8, 51u8, 28u8, 116u8, 230u8, - 137u8, 123u8, + 245u8, 14u8, 190u8, 193u8, 32u8, 210u8, 74u8, 92u8, 25u8, 182u8, 76u8, + 55u8, 247u8, 83u8, 114u8, 75u8, 143u8, 236u8, 117u8, 25u8, 54u8, 157u8, + 208u8, 207u8, 233u8, 89u8, 70u8, 161u8, 235u8, 242u8, 222u8, 59u8, ], ) } - #[doc = "See [`Pallet::unassign_curator`]."] - pub fn unassign_curator( + #[doc = "See [`Pallet::transfer_all`]."] + pub fn transfer_all( &self, - parent_bounty_id: ::core::primitive::u32, - child_bounty_id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + dest: alias_types::transfer_all::Dest, + keep_alive: alias_types::transfer_all::KeepAlive, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "ChildBounties", - "unassign_curator", - types::UnassignCurator { - parent_bounty_id, - child_bounty_id, - }, + "NisCounterpartBalances", + "transfer_all", + types::TransferAll { dest, keep_alive }, [ - 120u8, 208u8, 75u8, 141u8, 220u8, 153u8, 79u8, 28u8, 255u8, 227u8, - 239u8, 10u8, 243u8, 116u8, 0u8, 226u8, 205u8, 208u8, 91u8, 193u8, - 154u8, 81u8, 169u8, 240u8, 120u8, 48u8, 102u8, 35u8, 25u8, 136u8, 92u8, - 141u8, + 105u8, 132u8, 49u8, 144u8, 195u8, 250u8, 34u8, 46u8, 213u8, 248u8, + 112u8, 188u8, 81u8, 228u8, 136u8, 18u8, 67u8, 172u8, 37u8, 38u8, 238u8, + 9u8, 34u8, 15u8, 67u8, 34u8, 148u8, 195u8, 223u8, 29u8, 154u8, 6u8, ], ) } - #[doc = "See [`Pallet::award_child_bounty`]."] - pub fn award_child_bounty( + #[doc = "See [`Pallet::force_unreserve`]."] + pub fn force_unreserve( &self, - parent_bounty_id: ::core::primitive::u32, - child_bounty_id: ::core::primitive::u32, - beneficiary: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - ) -> ::subxt::tx::Payload { + who: alias_types::force_unreserve::Who, + amount: alias_types::force_unreserve::Amount, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "ChildBounties", - "award_child_bounty", - types::AwardChildBounty { - parent_bounty_id, - child_bounty_id, - beneficiary, - }, + "NisCounterpartBalances", + "force_unreserve", + types::ForceUnreserve { who, amount }, [ - 45u8, 172u8, 88u8, 8u8, 142u8, 34u8, 30u8, 132u8, 61u8, 31u8, 187u8, - 174u8, 21u8, 5u8, 248u8, 185u8, 142u8, 193u8, 29u8, 83u8, 225u8, 213u8, - 153u8, 247u8, 67u8, 219u8, 58u8, 206u8, 102u8, 55u8, 218u8, 154u8, + 142u8, 151u8, 64u8, 205u8, 46u8, 64u8, 62u8, 122u8, 108u8, 49u8, 223u8, + 140u8, 120u8, 153u8, 35u8, 165u8, 187u8, 38u8, 157u8, 200u8, 123u8, + 199u8, 198u8, 168u8, 208u8, 159u8, 39u8, 134u8, 92u8, 103u8, 84u8, + 171u8, ], ) } - #[doc = "See [`Pallet::claim_child_bounty`]."] - pub fn claim_child_bounty( + #[doc = "See [`Pallet::upgrade_accounts`]."] + pub fn upgrade_accounts( &self, - parent_bounty_id: ::core::primitive::u32, - child_bounty_id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + who: alias_types::upgrade_accounts::Who, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "ChildBounties", - "claim_child_bounty", - types::ClaimChildBounty { - parent_bounty_id, - child_bounty_id, - }, + "NisCounterpartBalances", + "upgrade_accounts", + types::UpgradeAccounts { who }, [ - 114u8, 134u8, 242u8, 240u8, 103u8, 141u8, 181u8, 214u8, 193u8, 222u8, - 23u8, 19u8, 68u8, 174u8, 190u8, 60u8, 94u8, 235u8, 14u8, 115u8, 155u8, - 199u8, 0u8, 106u8, 37u8, 144u8, 92u8, 188u8, 2u8, 149u8, 235u8, 244u8, + 66u8, 200u8, 179u8, 104u8, 65u8, 2u8, 101u8, 56u8, 130u8, 161u8, 224u8, + 233u8, 255u8, 124u8, 70u8, 122u8, 8u8, 49u8, 103u8, 178u8, 68u8, 47u8, + 214u8, 166u8, 217u8, 116u8, 178u8, 50u8, 212u8, 164u8, 98u8, 226u8, ], ) } - #[doc = "See [`Pallet::close_child_bounty`]."] - pub fn close_child_bounty( + #[doc = "See [`Pallet::force_set_balance`]."] + pub fn force_set_balance( &self, - parent_bounty_id: ::core::primitive::u32, - child_bounty_id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + who: alias_types::force_set_balance::Who, + new_free: alias_types::force_set_balance::NewFree, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "ChildBounties", - "close_child_bounty", - types::CloseChildBounty { - parent_bounty_id, - child_bounty_id, - }, + "NisCounterpartBalances", + "force_set_balance", + types::ForceSetBalance { who, new_free }, [ - 121u8, 20u8, 81u8, 13u8, 102u8, 102u8, 162u8, 24u8, 133u8, 35u8, 203u8, - 58u8, 28u8, 195u8, 114u8, 31u8, 254u8, 252u8, 118u8, 57u8, 30u8, 211u8, - 217u8, 124u8, 148u8, 244u8, 144u8, 224u8, 39u8, 155u8, 162u8, 91u8, + 114u8, 229u8, 59u8, 204u8, 180u8, 83u8, 17u8, 4u8, 59u8, 4u8, 55u8, + 39u8, 151u8, 196u8, 124u8, 60u8, 209u8, 65u8, 193u8, 11u8, 44u8, 164u8, + 116u8, 93u8, 169u8, 30u8, 199u8, 165u8, 55u8, 231u8, 223u8, 43u8, ], ) } } } #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_child_bounties::pallet::Event; + pub type Event = runtime_types::pallet_balances::pallet::Event2; pub mod events { use super::runtime_types; #[derive( @@ -23084,14 +24624,14 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A child-bounty is added."] - pub struct Added { - pub index: ::core::primitive::u32, - pub child_index: ::core::primitive::u32, + #[doc = "An account was created with some free balance."] + pub struct Endowed { + pub account: ::subxt::utils::AccountId32, + pub free_balance: ::core::primitive::u128, } - impl ::subxt::events::StaticEvent for Added { - const PALLET: &'static str = "ChildBounties"; - const EVENT: &'static str = "Added"; + impl ::subxt::events::StaticEvent for Endowed { + const PALLET: &'static str = "NisCounterpartBalances"; + const EVENT: &'static str = "Endowed"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -23103,15 +24643,15 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A child-bounty is awarded to a beneficiary."] - pub struct Awarded { - pub index: ::core::primitive::u32, - pub child_index: ::core::primitive::u32, - pub beneficiary: ::subxt::utils::AccountId32, + #[doc = "An account was removed whose balance was non-zero but below ExistentialDeposit,"] + #[doc = "resulting in an outright loss."] + pub struct DustLost { + pub account: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, } - impl ::subxt::events::StaticEvent for Awarded { - const PALLET: &'static str = "ChildBounties"; - const EVENT: &'static str = "Awarded"; + impl ::subxt::events::StaticEvent for DustLost { + const PALLET: &'static str = "NisCounterpartBalances"; + const EVENT: &'static str = "DustLost"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -23123,16 +24663,15 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A child-bounty is claimed by beneficiary."] - pub struct Claimed { - pub index: ::core::primitive::u32, - pub child_index: ::core::primitive::u32, - pub payout: ::core::primitive::u128, - pub beneficiary: ::subxt::utils::AccountId32, + #[doc = "Transfer succeeded."] + pub struct Transfer { + pub from: ::subxt::utils::AccountId32, + pub to: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, } - impl ::subxt::events::StaticEvent for Claimed { - const PALLET: &'static str = "ChildBounties"; - const EVENT: &'static str = "Claimed"; + impl ::subxt::events::StaticEvent for Transfer { + const PALLET: &'static str = "NisCounterpartBalances"; + const EVENT: &'static str = "Transfer"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -23144,545 +24683,34 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A child-bounty is cancelled."] - pub struct Canceled { - pub index: ::core::primitive::u32, - pub child_index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Canceled { - const PALLET: &'static str = "ChildBounties"; - const EVENT: &'static str = "Canceled"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Number of total child bounties."] - pub fn child_bounty_count( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "ChildBounties", - "ChildBountyCount", - vec![], - [ - 206u8, 1u8, 40u8, 132u8, 51u8, 139u8, 234u8, 20u8, 89u8, 86u8, 247u8, - 107u8, 169u8, 252u8, 5u8, 180u8, 218u8, 24u8, 232u8, 94u8, 82u8, 135u8, - 24u8, 16u8, 134u8, 23u8, 201u8, 86u8, 12u8, 19u8, 199u8, 0u8, - ], - ) - } - #[doc = " Number of child bounties per parent bounty."] - #[doc = " Map of parent bounty index to number of child bounties."] - pub fn parent_child_bounties_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "ChildBounties", - "ParentChildBounties", - vec![], - [ - 52u8, 179u8, 242u8, 212u8, 91u8, 185u8, 176u8, 52u8, 100u8, 200u8, 1u8, - 41u8, 184u8, 234u8, 234u8, 8u8, 123u8, 252u8, 131u8, 55u8, 109u8, - 123u8, 89u8, 75u8, 101u8, 165u8, 117u8, 175u8, 92u8, 71u8, 62u8, 67u8, - ], - ) - } - #[doc = " Number of child bounties per parent bounty."] - #[doc = " Map of parent bounty index to number of child bounties."] - pub fn parent_child_bounties( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "ChildBounties", - "ParentChildBounties", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 52u8, 179u8, 242u8, 212u8, 91u8, 185u8, 176u8, 52u8, 100u8, 200u8, 1u8, - 41u8, 184u8, 234u8, 234u8, 8u8, 123u8, 252u8, 131u8, 55u8, 109u8, - 123u8, 89u8, 75u8, 101u8, 165u8, 117u8, 175u8, 92u8, 71u8, 62u8, 67u8, - ], - ) - } - #[doc = " Child bounties that have been added."] - pub fn child_bounties_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_child_bounties::ChildBounty< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - ::core::primitive::u32, - >, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "ChildBounties", - "ChildBounties", - vec![], - [ - 165u8, 240u8, 158u8, 204u8, 183u8, 190u8, 129u8, 65u8, 226u8, 8u8, - 182u8, 103u8, 46u8, 162u8, 35u8, 155u8, 131u8, 45u8, 163u8, 64u8, - 154u8, 137u8, 126u8, 249u8, 238u8, 156u8, 233u8, 78u8, 28u8, 95u8, - 242u8, 147u8, - ], - ) - } - #[doc = " Child bounties that have been added."] - pub fn child_bounties_iter1( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_child_bounties::ChildBounty< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - ::core::primitive::u32, - >, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "ChildBounties", - "ChildBounties", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 165u8, 240u8, 158u8, 204u8, 183u8, 190u8, 129u8, 65u8, 226u8, 8u8, - 182u8, 103u8, 46u8, 162u8, 35u8, 155u8, 131u8, 45u8, 163u8, 64u8, - 154u8, 137u8, 126u8, 249u8, 238u8, 156u8, 233u8, 78u8, 28u8, 95u8, - 242u8, 147u8, - ], - ) - } - #[doc = " Child bounties that have been added."] - pub fn child_bounties( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_child_bounties::ChildBounty< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - ::core::primitive::u32, - >, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "ChildBounties", - "ChildBounties", - vec![ - ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), - ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), - ], - [ - 165u8, 240u8, 158u8, 204u8, 183u8, 190u8, 129u8, 65u8, 226u8, 8u8, - 182u8, 103u8, 46u8, 162u8, 35u8, 155u8, 131u8, 45u8, 163u8, 64u8, - 154u8, 137u8, 126u8, 249u8, 238u8, 156u8, 233u8, 78u8, 28u8, 95u8, - 242u8, 147u8, - ], - ) - } - #[doc = " The description of each child-bounty."] - pub fn child_bounty_descriptions_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "ChildBounties", - "ChildBountyDescriptions", - vec![], - [ - 192u8, 0u8, 220u8, 156u8, 109u8, 65u8, 113u8, 102u8, 119u8, 0u8, 109u8, - 141u8, 211u8, 128u8, 237u8, 61u8, 28u8, 56u8, 206u8, 93u8, 183u8, 74u8, - 192u8, 220u8, 76u8, 175u8, 85u8, 105u8, 179u8, 11u8, 164u8, 100u8, - ], - ) - } - #[doc = " The description of each child-bounty."] - pub fn child_bounty_descriptions( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "ChildBounties", - "ChildBountyDescriptions", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 192u8, 0u8, 220u8, 156u8, 109u8, 65u8, 113u8, 102u8, 119u8, 0u8, 109u8, - 141u8, 211u8, 128u8, 237u8, 61u8, 28u8, 56u8, 206u8, 93u8, 183u8, 74u8, - 192u8, 220u8, 76u8, 175u8, 85u8, 105u8, 179u8, 11u8, 164u8, 100u8, - ], - ) - } - #[doc = " The cumulative child-bounty curator fee for each parent bounty."] - pub fn children_curator_fees_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "ChildBounties", - "ChildrenCuratorFees", - vec![], - [ - 32u8, 16u8, 190u8, 193u8, 6u8, 80u8, 163u8, 16u8, 85u8, 111u8, 39u8, - 141u8, 209u8, 70u8, 213u8, 167u8, 22u8, 12u8, 93u8, 17u8, 104u8, 94u8, - 129u8, 37u8, 179u8, 41u8, 156u8, 117u8, 39u8, 202u8, 227u8, 235u8, - ], - ) - } - #[doc = " The cumulative child-bounty curator fee for each parent bounty."] - pub fn children_curator_fees( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "ChildBounties", - "ChildrenCuratorFees", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 32u8, 16u8, 190u8, 193u8, 6u8, 80u8, 163u8, 16u8, 85u8, 111u8, 39u8, - 141u8, 209u8, 70u8, 213u8, 167u8, 22u8, 12u8, 93u8, 17u8, 104u8, 94u8, - 129u8, 37u8, 179u8, 41u8, 156u8, 117u8, 39u8, 202u8, 227u8, 235u8, - ], - ) - } + #[doc = "A balance was set by root."] + pub struct BalanceSet { + pub who: ::subxt::utils::AccountId32, + pub free: ::core::primitive::u128, } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " Maximum number of child bounties that can be added to a parent bounty."] - pub fn max_active_child_bounty_count( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "ChildBounties", - "MaxActiveChildBountyCount", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " Minimum value for a child-bounty."] - pub fn child_bounty_value_minimum( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "ChildBounties", - "ChildBountyValueMinimum", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ], - ) - } + impl ::subxt::events::StaticEvent for BalanceSet { + const PALLET: &'static str = "NisCounterpartBalances"; + const EVENT: &'static str = "BalanceSet"; } - } - } - pub mod tips { - use super::root_mod; - use super::runtime_types; - #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_tips::pallet::Error; - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::pallet_tips::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ReportAwesome { - pub reason: ::std::vec::Vec<::core::primitive::u8>, - pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - } - impl ::subxt::blocks::StaticExtrinsic for ReportAwesome { - const PALLET: &'static str = "Tips"; - const CALL: &'static str = "report_awesome"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct RetractTip { - pub hash: ::subxt::utils::H256, - } - impl ::subxt::blocks::StaticExtrinsic for RetractTip { - const PALLET: &'static str = "Tips"; - const CALL: &'static str = "retract_tip"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct TipNew { - pub reason: ::std::vec::Vec<::core::primitive::u8>, - pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - #[codec(compact)] - pub tip_value: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for TipNew { - const PALLET: &'static str = "Tips"; - const CALL: &'static str = "tip_new"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Tip { - pub hash: ::subxt::utils::H256, - #[codec(compact)] - pub tip_value: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for Tip { - const PALLET: &'static str = "Tips"; - const CALL: &'static str = "tip"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct CloseTip { - pub hash: ::subxt::utils::H256, - } - impl ::subxt::blocks::StaticExtrinsic for CloseTip { - const PALLET: &'static str = "Tips"; - const CALL: &'static str = "close_tip"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SlashTip { - pub hash: ::subxt::utils::H256, - } - impl ::subxt::blocks::StaticExtrinsic for SlashTip { - const PALLET: &'static str = "Tips"; - const CALL: &'static str = "slash_tip"; - } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some balance was reserved (moved from free to reserved)."] + pub struct Reserved { + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::report_awesome`]."] - pub fn report_awesome( - &self, - reason: ::std::vec::Vec<::core::primitive::u8>, - who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Tips", - "report_awesome", - types::ReportAwesome { reason, who }, - [ - 184u8, 245u8, 162u8, 155u8, 89u8, 108u8, 138u8, 43u8, 1u8, 178u8, - 186u8, 173u8, 193u8, 197u8, 201u8, 118u8, 3u8, 154u8, 224u8, 6u8, - 162u8, 6u8, 74u8, 153u8, 90u8, 215u8, 52u8, 254u8, 114u8, 184u8, 39u8, - 123u8, - ], - ) - } - #[doc = "See [`Pallet::retract_tip`]."] - pub fn retract_tip( - &self, - hash: ::subxt::utils::H256, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Tips", - "retract_tip", - types::RetractTip { hash }, - [ - 127u8, 232u8, 112u8, 136u8, 48u8, 227u8, 202u8, 51u8, 78u8, 191u8, - 248u8, 44u8, 159u8, 76u8, 101u8, 107u8, 212u8, 55u8, 85u8, 250u8, - 222u8, 181u8, 58u8, 130u8, 53u8, 103u8, 190u8, 31u8, 113u8, 195u8, - 186u8, 44u8, - ], - ) - } - #[doc = "See [`Pallet::tip_new`]."] - pub fn tip_new( - &self, - reason: ::std::vec::Vec<::core::primitive::u8>, - who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - tip_value: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Tips", - "tip_new", - types::TipNew { - reason, - who, - tip_value, - }, - [ - 4u8, 118u8, 48u8, 220u8, 210u8, 247u8, 11u8, 205u8, 114u8, 31u8, 237u8, - 252u8, 172u8, 228u8, 209u8, 0u8, 0u8, 33u8, 188u8, 86u8, 151u8, 206u8, - 59u8, 13u8, 230u8, 4u8, 90u8, 242u8, 145u8, 216u8, 133u8, 85u8, - ], - ) - } - #[doc = "See [`Pallet::tip`]."] - pub fn tip( - &self, - hash: ::subxt::utils::H256, - tip_value: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Tips", - "tip", - types::Tip { hash, tip_value }, - [ - 241u8, 5u8, 164u8, 248u8, 140u8, 60u8, 29u8, 9u8, 63u8, 208u8, 249u8, - 210u8, 221u8, 173u8, 70u8, 240u8, 50u8, 131u8, 80u8, 236u8, 131u8, - 101u8, 191u8, 49u8, 94u8, 216u8, 74u8, 234u8, 184u8, 167u8, 159u8, - 176u8, - ], - ) - } - #[doc = "See [`Pallet::close_tip`]."] - pub fn close_tip( - &self, - hash: ::subxt::utils::H256, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Tips", - "close_tip", - types::CloseTip { hash }, - [ - 85u8, 213u8, 248u8, 146u8, 90u8, 110u8, 217u8, 109u8, 78u8, 6u8, 104u8, - 71u8, 184u8, 209u8, 148u8, 81u8, 145u8, 71u8, 151u8, 174u8, 25u8, - 238u8, 48u8, 0u8, 51u8, 102u8, 155u8, 143u8, 130u8, 157u8, 100u8, - 246u8, - ], - ) - } - #[doc = "See [`Pallet::slash_tip`]."] - pub fn slash_tip( - &self, - hash: ::subxt::utils::H256, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Tips", - "slash_tip", - types::SlashTip { hash }, - [ - 127u8, 21u8, 252u8, 189u8, 121u8, 103u8, 54u8, 155u8, 71u8, 81u8, - 109u8, 0u8, 159u8, 151u8, 62u8, 81u8, 104u8, 31u8, 2u8, 83u8, 248u8, - 141u8, 252u8, 162u8, 173u8, 189u8, 252u8, 249u8, 54u8, 142u8, 108u8, - 19u8, - ], - ) - } + impl ::subxt::events::StaticEvent for Reserved { + const PALLET: &'static str = "NisCounterpartBalances"; + const EVENT: &'static str = "Reserved"; } - } - #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_tips::pallet::Event; - pub mod events { - use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -23693,13 +24721,14 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A new tip suggestion has been opened."] - pub struct NewTip { - pub tip_hash: ::subxt::utils::H256, + #[doc = "Some balance was unreserved (moved from reserved to free)."] + pub struct Unreserved { + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, } - impl ::subxt::events::StaticEvent for NewTip { - const PALLET: &'static str = "Tips"; - const EVENT: &'static str = "NewTip"; + impl ::subxt::events::StaticEvent for Unreserved { + const PALLET: &'static str = "NisCounterpartBalances"; + const EVENT: &'static str = "Unreserved"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -23711,13 +24740,18 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A tip suggestion has reached threshold and is closing."] - pub struct TipClosing { - pub tip_hash: ::subxt::utils::H256, + #[doc = "Some balance was moved from the reserve of the first account to the second account."] + #[doc = "Final argument indicates the destination balance type."] + pub struct ReserveRepatriated { + pub from: ::subxt::utils::AccountId32, + pub to: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + pub destination_status: + runtime_types::frame_support::traits::tokens::misc::BalanceStatus, } - impl ::subxt::events::StaticEvent for TipClosing { - const PALLET: &'static str = "Tips"; - const EVENT: &'static str = "TipClosing"; + impl ::subxt::events::StaticEvent for ReserveRepatriated { + const PALLET: &'static str = "NisCounterpartBalances"; + const EVENT: &'static str = "ReserveRepatriated"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -23729,15 +24763,14 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A tip suggestion has been closed."] - pub struct TipClosed { - pub tip_hash: ::subxt::utils::H256, + #[doc = "Some amount was deposited (e.g. for transaction fees)."] + pub struct Deposit { pub who: ::subxt::utils::AccountId32, - pub payout: ::core::primitive::u128, + pub amount: ::core::primitive::u128, } - impl ::subxt::events::StaticEvent for TipClosed { - const PALLET: &'static str = "Tips"; - const EVENT: &'static str = "TipClosed"; + impl ::subxt::events::StaticEvent for Deposit { + const PALLET: &'static str = "NisCounterpartBalances"; + const EVENT: &'static str = "Deposit"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -23749,13 +24782,14 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A tip suggestion has been retracted."] - pub struct TipRetracted { - pub tip_hash: ::subxt::utils::H256, + #[doc = "Some amount was withdrawn from the account (e.g. for transaction fees)."] + pub struct Withdraw { + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, } - impl ::subxt::events::StaticEvent for TipRetracted { - const PALLET: &'static str = "Tips"; - const EVENT: &'static str = "TipRetracted"; + impl ::subxt::events::StaticEvent for Withdraw { + const PALLET: &'static str = "NisCounterpartBalances"; + const EVENT: &'static str = "Withdraw"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -23767,435 +24801,53 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A tip suggestion has been slashed."] - pub struct TipSlashed { - pub tip_hash: ::subxt::utils::H256, - pub finder: ::subxt::utils::AccountId32, - pub deposit: ::core::primitive::u128, + #[doc = "Some amount was removed from the account (e.g. for misbehavior)."] + pub struct Slashed { + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, } - impl ::subxt::events::StaticEvent for TipSlashed { - const PALLET: &'static str = "Tips"; - const EVENT: &'static str = "TipSlashed"; + impl ::subxt::events::StaticEvent for Slashed { + const PALLET: &'static str = "NisCounterpartBalances"; + const EVENT: &'static str = "Slashed"; } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " TipsMap that are not yet completed. Keyed by the hash of `(reason, who)` from the value."] - #[doc = " This has the insecure enumerable hash function since the key itself is already"] - #[doc = " guaranteed to be a secure hash."] - pub fn tips_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_tips::OpenTip< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - ::core::primitive::u32, - ::subxt::utils::H256, - >, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Tips", - "Tips", - vec![], - [ - 25u8, 31u8, 187u8, 85u8, 122u8, 104u8, 176u8, 120u8, 135u8, 32u8, - 135u8, 148u8, 193u8, 43u8, 143u8, 235u8, 82u8, 96u8, 162u8, 200u8, - 125u8, 117u8, 170u8, 70u8, 47u8, 248u8, 153u8, 70u8, 22u8, 194u8, 31u8, - 150u8, - ], - ) - } - #[doc = " TipsMap that are not yet completed. Keyed by the hash of `(reason, who)` from the value."] - #[doc = " This has the insecure enumerable hash function since the key itself is already"] - #[doc = " guaranteed to be a secure hash."] - pub fn tips( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_tips::OpenTip< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - ::core::primitive::u32, - ::subxt::utils::H256, - >, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Tips", - "Tips", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 25u8, 31u8, 187u8, 85u8, 122u8, 104u8, 176u8, 120u8, 135u8, 32u8, - 135u8, 148u8, 193u8, 43u8, 143u8, 235u8, 82u8, 96u8, 162u8, 200u8, - 125u8, 117u8, 170u8, 70u8, 47u8, 248u8, 153u8, 70u8, 22u8, 194u8, 31u8, - 150u8, - ], - ) - } - #[doc = " Simple preimage lookup from the reason's hash to the original data. Again, has an"] - #[doc = " insecure enumerable hash since the key is guaranteed to be the result of a secure hash."] - pub fn reasons_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<::core::primitive::u8>, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Tips", - "Reasons", - vec![], - [ - 99u8, 184u8, 64u8, 230u8, 54u8, 162u8, 73u8, 188u8, 49u8, 219u8, 170u8, - 2u8, 72u8, 75u8, 239u8, 136u8, 114u8, 93u8, 94u8, 195u8, 229u8, 55u8, - 188u8, 121u8, 214u8, 250u8, 115u8, 61u8, 221u8, 173u8, 14u8, 68u8, - ], - ) - } - #[doc = " Simple preimage lookup from the reason's hash to the original data. Again, has an"] - #[doc = " insecure enumerable hash since the key is guaranteed to be the result of a secure hash."] - pub fn reasons( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<::core::primitive::u8>, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Tips", - "Reasons", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 99u8, 184u8, 64u8, 230u8, 54u8, 162u8, 73u8, 188u8, 49u8, 219u8, 170u8, - 2u8, 72u8, 75u8, 239u8, 136u8, 114u8, 93u8, 94u8, 195u8, 229u8, 55u8, - 188u8, 121u8, 214u8, 250u8, 115u8, 61u8, 221u8, 173u8, 14u8, 68u8, - ], - ) - } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some amount was minted into an account."] + pub struct Minted { + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " Maximum acceptable reason length."] - #[doc = ""] - #[doc = " Benchmarks depend on this value, be sure to update weights file when changing this value"] - pub fn maximum_reason_length( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Tips", - "MaximumReasonLength", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The amount held on deposit per byte within the tip report reason or bounty description."] - pub fn data_deposit_per_byte( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "Tips", - "DataDepositPerByte", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ], - ) - } - #[doc = " The period for which a tip remains open after is has achieved threshold tippers."] - pub fn tip_countdown(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Tips", - "TipCountdown", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The percent of the final tip which goes to the original reporter of the tip."] - pub fn tip_finders_fee( - &self, - ) -> ::subxt::constants::Address - { - ::subxt::constants::Address::new_static( - "Tips", - "TipFindersFee", - [ - 40u8, 171u8, 69u8, 196u8, 34u8, 184u8, 50u8, 128u8, 139u8, 192u8, 63u8, - 231u8, 249u8, 200u8, 252u8, 73u8, 244u8, 170u8, 51u8, 177u8, 106u8, - 47u8, 114u8, 234u8, 84u8, 104u8, 62u8, 118u8, 227u8, 50u8, 225u8, - 122u8, - ], - ) - } - #[doc = " The amount held on deposit for placing a tip report."] - pub fn tip_report_deposit_base( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "Tips", - "TipReportDepositBase", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ], - ) - } + impl ::subxt::events::StaticEvent for Minted { + const PALLET: &'static str = "NisCounterpartBalances"; + const EVENT: &'static str = "Minted"; } - } - } - pub mod election_provider_multi_phase { - use super::root_mod; - use super::runtime_types; - #[doc = "Error of the pallet that can be returned in response to dispatches."] - pub type Error = runtime_types::pallet_election_provider_multi_phase::pallet::Error; - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::pallet_election_provider_multi_phase::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - 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::blocks::StaticExtrinsic for SubmitUnsigned { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const CALL: &'static str = "submit_unsigned"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SetMinimumUntrustedScore { - pub maybe_next_score: - ::core::option::Option, - } - impl ::subxt::blocks::StaticExtrinsic for SetMinimumUntrustedScore { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const CALL: &'static str = "set_minimum_untrusted_score"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SetEmergencyElectionResult { - pub supports: ::std::vec::Vec<( - ::subxt::utils::AccountId32, - runtime_types::sp_npos_elections::Support<::subxt::utils::AccountId32>, - )>, - } - impl ::subxt::blocks::StaticExtrinsic for SetEmergencyElectionResult { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const CALL: &'static str = "set_emergency_election_result"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Submit { - pub raw_solution: ::std::boxed::Box< - runtime_types::pallet_election_provider_multi_phase::RawSolution< - runtime_types::polkadot_runtime::NposCompactSolution16, - >, - >, - } - impl ::subxt::blocks::StaticExtrinsic for Submit { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const CALL: &'static str = "submit"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - 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::blocks::StaticExtrinsic for GovernanceFallback { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const CALL: &'static str = "governance_fallback"; - } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some amount was burned from an account."] + pub struct Burned { + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::submit_unsigned`]."] - pub fn submit_unsigned( - &self, - raw_solution: runtime_types::pallet_election_provider_multi_phase::RawSolution< - runtime_types::polkadot_runtime::NposCompactSolution16, - >, - witness : runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "ElectionProviderMultiPhase", - "submit_unsigned", - types::SubmitUnsigned { - raw_solution: ::std::boxed::Box::new(raw_solution), - witness, - }, - [ - 237u8, 199u8, 102u8, 43u8, 103u8, 215u8, 145u8, 93u8, 71u8, 191u8, - 61u8, 144u8, 21u8, 58u8, 30u8, 51u8, 190u8, 219u8, 45u8, 66u8, 216u8, - 19u8, 62u8, 123u8, 197u8, 53u8, 249u8, 205u8, 117u8, 35u8, 32u8, 13u8, - ], - ) - } - #[doc = "See [`Pallet::set_minimum_untrusted_score`]."] - pub fn set_minimum_untrusted_score( - &self, - maybe_next_score: ::core::option::Option< - runtime_types::sp_npos_elections::ElectionScore, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "ElectionProviderMultiPhase", - "set_minimum_untrusted_score", - types::SetMinimumUntrustedScore { maybe_next_score }, - [ - 244u8, 246u8, 85u8, 56u8, 156u8, 145u8, 169u8, 106u8, 16u8, 206u8, - 102u8, 216u8, 150u8, 180u8, 87u8, 153u8, 75u8, 177u8, 185u8, 55u8, - 37u8, 252u8, 214u8, 127u8, 103u8, 169u8, 198u8, 55u8, 10u8, 179u8, - 121u8, 219u8, - ], - ) - } - #[doc = "See [`Pallet::set_emergency_election_result`]."] - pub fn set_emergency_election_result( - &self, - supports: ::std::vec::Vec<( - ::subxt::utils::AccountId32, - runtime_types::sp_npos_elections::Support<::subxt::utils::AccountId32>, - )>, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "ElectionProviderMultiPhase", - "set_emergency_election_result", - types::SetEmergencyElectionResult { supports }, - [ - 6u8, 170u8, 228u8, 255u8, 61u8, 131u8, 137u8, 36u8, 135u8, 91u8, 183u8, - 94u8, 172u8, 205u8, 113u8, 69u8, 191u8, 255u8, 223u8, 152u8, 255u8, - 160u8, 205u8, 51u8, 140u8, 183u8, 101u8, 38u8, 185u8, 100u8, 92u8, - 87u8, - ], - ) - } - #[doc = "See [`Pallet::submit`]."] - pub fn submit( - &self, - raw_solution: runtime_types::pallet_election_provider_multi_phase::RawSolution< - runtime_types::polkadot_runtime::NposCompactSolution16, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "ElectionProviderMultiPhase", - "submit", - types::Submit { - raw_solution: ::std::boxed::Box::new(raw_solution), - }, - [ - 55u8, 254u8, 53u8, 183u8, 136u8, 93u8, 56u8, 39u8, 98u8, 132u8, 8u8, - 38u8, 92u8, 38u8, 199u8, 43u8, 20u8, 86u8, 114u8, 240u8, 31u8, 72u8, - 141u8, 39u8, 73u8, 116u8, 250u8, 249u8, 119u8, 36u8, 244u8, 137u8, - ], - ) - } - #[doc = "See [`Pallet::governance_fallback`]."] - pub fn governance_fallback( - &self, - maybe_max_voters: ::core::option::Option<::core::primitive::u32>, - maybe_max_targets: ::core::option::Option<::core::primitive::u32>, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "ElectionProviderMultiPhase", - "governance_fallback", - types::GovernanceFallback { - maybe_max_voters, - maybe_max_targets, - }, - [ - 10u8, 56u8, 159u8, 48u8, 56u8, 246u8, 49u8, 9u8, 132u8, 156u8, 86u8, - 162u8, 52u8, 58u8, 175u8, 128u8, 12u8, 185u8, 203u8, 18u8, 99u8, 219u8, - 75u8, 13u8, 52u8, 40u8, 125u8, 212u8, 84u8, 147u8, 222u8, 17u8, - ], - ) - } + impl ::subxt::events::StaticEvent for Burned { + const PALLET: &'static str = "NisCounterpartBalances"; + const EVENT: &'static str = "Burned"; } - } - #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_election_provider_multi_phase::pallet::Event; - pub mod events { - use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -24206,21 +24858,14 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A solution was stored with the given compute."] - #[doc = ""] - #[doc = "The `origin` indicates the origin of the solution. If `origin` is `Some(AccountId)`,"] - #[doc = "the stored solution was submited in the signed phase by a miner with the `AccountId`."] - #[doc = "Otherwise, the solution was stored either during the unsigned phase or by"] - #[doc = "`T::ForceOrigin`. The `bool` is `true` when a previous solution was ejected to make"] - #[doc = "room for this one."] - pub struct SolutionStored { - pub compute: runtime_types::pallet_election_provider_multi_phase::ElectionCompute, - pub origin: ::core::option::Option<::subxt::utils::AccountId32>, - pub prev_ejected: ::core::primitive::bool, + #[doc = "Some amount was suspended from an account (it can be restored later)."] + pub struct Suspended { + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, } - impl ::subxt::events::StaticEvent for SolutionStored { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "SolutionStored"; + impl ::subxt::events::StaticEvent for Suspended { + const PALLET: &'static str = "NisCounterpartBalances"; + const EVENT: &'static str = "Suspended"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -24232,14 +24877,14 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The election has been finalized, with the given computation and score."] - pub struct ElectionFinalized { - pub compute: runtime_types::pallet_election_provider_multi_phase::ElectionCompute, - pub score: runtime_types::sp_npos_elections::ElectionScore, + #[doc = "Some amount was restored into an account."] + pub struct Restored { + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, } - impl ::subxt::events::StaticEvent for ElectionFinalized { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "ElectionFinalized"; + impl ::subxt::events::StaticEvent for Restored { + const PALLET: &'static str = "NisCounterpartBalances"; + const EVENT: &'static str = "Restored"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -24251,15 +24896,16 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An election failed."] - #[doc = ""] - #[doc = "Not much can be said about which computes failed in the process."] - pub struct ElectionFailed; - impl ::subxt::events::StaticEvent for ElectionFailed { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "ElectionFailed"; + #[doc = "An account was upgraded."] + pub struct Upgraded { + pub who: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for Upgraded { + const PALLET: &'static str = "NisCounterpartBalances"; + const EVENT: &'static str = "Upgraded"; } #[derive( + :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -24269,16 +24915,16 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An account has been rewarded for their signed submission being finalized."] - pub struct Rewarded { - pub account: ::subxt::utils::AccountId32, - pub value: ::core::primitive::u128, + #[doc = "Total issuance was increased by `amount`, creating a credit to be balanced."] + pub struct Issued { + pub amount: ::core::primitive::u128, } - impl ::subxt::events::StaticEvent for Rewarded { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "Rewarded"; + impl ::subxt::events::StaticEvent for Issued { + const PALLET: &'static str = "NisCounterpartBalances"; + const EVENT: &'static str = "Issued"; } #[derive( + :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -24288,14 +24934,13 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An account has been slashed for submitting an invalid signed submission."] - pub struct Slashed { - pub account: ::subxt::utils::AccountId32, - pub value: ::core::primitive::u128, + #[doc = "Total issuance was decreased by `amount`, creating a debt to be balanced."] + pub struct Rescinded { + pub amount: ::core::primitive::u128, } - impl ::subxt::events::StaticEvent for Slashed { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "Slashed"; + impl ::subxt::events::StaticEvent for Rescinded { + const PALLET: &'static str = "NisCounterpartBalances"; + const EVENT: &'static str = "Rescinded"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -24307,3168 +24952,444 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "There was a phase transition in a given round."] - pub struct PhaseTransitioned { - pub from: runtime_types::pallet_election_provider_multi_phase::Phase< - ::core::primitive::u32, - >, - pub to: runtime_types::pallet_election_provider_multi_phase::Phase< - ::core::primitive::u32, - >, - pub round: ::core::primitive::u32, + #[doc = "Some balance was locked."] + pub struct Locked { + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Locked { + const PALLET: &'static str = "NisCounterpartBalances"; + const EVENT: &'static str = "Locked"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some balance was unlocked."] + pub struct Unlocked { + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Unlocked { + const PALLET: &'static str = "NisCounterpartBalances"; + const EVENT: &'static str = "Unlocked"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some balance was frozen."] + pub struct Frozen { + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Frozen { + const PALLET: &'static str = "NisCounterpartBalances"; + const EVENT: &'static str = "Frozen"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some balance was thawed."] + pub struct Thawed { + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, } - impl ::subxt::events::StaticEvent for PhaseTransitioned { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "PhaseTransitioned"; + impl ::subxt::events::StaticEvent for Thawed { + const PALLET: &'static str = "NisCounterpartBalances"; + const EVENT: &'static str = "Thawed"; } } pub mod storage { use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod total_issuance { + use super::runtime_types; + pub type TotalIssuance = ::core::primitive::u128; + } + pub mod inactive_issuance { + use super::runtime_types; + pub type InactiveIssuance = ::core::primitive::u128; + } + pub mod account { + use super::runtime_types; + pub type Account = + runtime_types::pallet_balances::types::AccountData<::core::primitive::u128>; + } + pub mod locks { + use super::runtime_types; + pub type Locks = + runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec< + runtime_types::pallet_balances::types::BalanceLock< + ::core::primitive::u128, + >, + >; + } + pub mod reserves { + use super::runtime_types; + pub type Reserves = runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_balances::types::ReserveData< + [::core::primitive::u8; 8usize], + ::core::primitive::u128, + >, + >; + } + pub mod holds { + use super::runtime_types; + pub type Holds = runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_balances::types::IdAmount< + runtime_types::rococo_runtime::RuntimeHoldReason, + ::core::primitive::u128, + >, + >; + } + pub mod freezes { + use super::runtime_types; + pub type Freezes = runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_balances::types::IdAmount< + (), + ::core::primitive::u128, + >, + >; + } + } pub struct StorageApi; impl StorageApi { - #[doc = " Internal counter for the number of rounds."] - #[doc = ""] - #[doc = " This is useful for de-duplication of transactions submitted to the pool, and general"] - #[doc = " diagnostics of the pallet."] - #[doc = ""] - #[doc = " This is merely incremented once per every time that an upstream `elect` is called."] - pub fn round( + #[doc = " The total units issued in the system."] + pub fn total_issuance( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, + alias_types::total_issuance::TotalIssuance, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( - "ElectionProviderMultiPhase", - "Round", + "NisCounterpartBalances", + "TotalIssuance", vec![], [ - 37u8, 2u8, 47u8, 240u8, 18u8, 213u8, 214u8, 74u8, 57u8, 4u8, 103u8, - 253u8, 45u8, 17u8, 123u8, 203u8, 173u8, 170u8, 234u8, 109u8, 139u8, - 143u8, 216u8, 3u8, 161u8, 5u8, 0u8, 106u8, 181u8, 214u8, 170u8, 105u8, + 116u8, 70u8, 119u8, 194u8, 69u8, 37u8, 116u8, 206u8, 171u8, 70u8, + 171u8, 210u8, 226u8, 111u8, 184u8, 204u8, 206u8, 11u8, 68u8, 72u8, + 255u8, 19u8, 194u8, 11u8, 27u8, 194u8, 81u8, 204u8, 59u8, 224u8, 202u8, + 185u8, ], ) } - #[doc = " Current phase."] - pub fn current_phase( + #[doc = " The total units of outstanding deactivated balance in the system."] + pub fn inactive_issuance( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_election_provider_multi_phase::Phase< - ::core::primitive::u32, - >, + alias_types::inactive_issuance::InactiveIssuance, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( - "ElectionProviderMultiPhase", - "CurrentPhase", + "NisCounterpartBalances", + "InactiveIssuance", vec![], [ - 230u8, 7u8, 51u8, 158u8, 77u8, 36u8, 148u8, 175u8, 138u8, 205u8, 195u8, - 236u8, 66u8, 148u8, 0u8, 77u8, 160u8, 249u8, 128u8, 58u8, 189u8, 48u8, - 195u8, 198u8, 115u8, 251u8, 13u8, 206u8, 163u8, 180u8, 108u8, 10u8, + 212u8, 185u8, 19u8, 50u8, 250u8, 72u8, 173u8, 50u8, 4u8, 104u8, 161u8, + 249u8, 77u8, 247u8, 204u8, 248u8, 11u8, 18u8, 57u8, 4u8, 82u8, 110u8, + 30u8, 216u8, 16u8, 37u8, 87u8, 67u8, 189u8, 235u8, 214u8, 155u8, ], ) } - #[doc = " Current best solution, signed or unsigned, queued to be returned upon `elect`."] + #[doc = " The Balances pallet example of storing the balance of an account."] #[doc = ""] - #[doc = " Always sorted by score."] - pub fn queued_solution( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_election_provider_multi_phase::ReadySolution, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "ElectionProviderMultiPhase", - "QueuedSolution", - vec![], - [ - 70u8, 22u8, 249u8, 41u8, 72u8, 8u8, 99u8, 121u8, 102u8, 128u8, 244u8, - 104u8, 208u8, 244u8, 113u8, 122u8, 118u8, 17u8, 65u8, 78u8, 165u8, - 129u8, 117u8, 36u8, 244u8, 243u8, 153u8, 87u8, 46u8, 116u8, 103u8, - 43u8, - ], - ) - } - #[doc = " Snapshot data of the round."] + #[doc = " # Example"] #[doc = ""] - #[doc = " This is created at the beginning of the signed phase and cleared upon calling `elect`."] - pub fn snapshot( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_election_provider_multi_phase::RoundSnapshot< - ::subxt::utils::AccountId32, - ( - ::subxt::utils::AccountId32, - ::core::primitive::u64, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::subxt::utils::AccountId32, - >, - ), - >, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "ElectionProviderMultiPhase", - "Snapshot", - vec![], - [ - 103u8, 204u8, 76u8, 156u8, 154u8, 95u8, 115u8, 109u8, 135u8, 17u8, 9u8, - 137u8, 3u8, 184u8, 111u8, 198u8, 216u8, 3u8, 78u8, 115u8, 101u8, 235u8, - 52u8, 235u8, 245u8, 58u8, 191u8, 144u8, 61u8, 204u8, 159u8, 55u8, - ], - ) - } - #[doc = " Desired number of targets to elect for this round."] + #[doc = " ```nocompile"] + #[doc = " impl pallet_balances::Config for Runtime {"] + #[doc = " type AccountStore = StorageMapShim, frame_system::Provider, AccountId, Self::AccountData>"] + #[doc = " }"] + #[doc = " ```"] + #[doc = ""] + #[doc = " You can also store the balance of an account in the `System` pallet."] + #[doc = ""] + #[doc = " # Example"] #[doc = ""] - #[doc = " Only exists when [`Snapshot`] is present."] - pub fn desired_targets( + #[doc = " ```nocompile"] + #[doc = " impl pallet_balances::Config for Runtime {"] + #[doc = " type AccountStore = System"] + #[doc = " }"] + #[doc = " ```"] + #[doc = ""] + #[doc = " But this comes with tradeoffs, storing account balances in the system pallet stores"] + #[doc = " `frame_system` data alongside the account data contrary to storing account balances in the"] + #[doc = " `Balances` pallet, which uses a `StorageMap` to store balances data only."] + #[doc = " NOTE: This is only used in the case that this pallet is used to store balances."] + pub fn account_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - (), + alias_types::account::Account, (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "ElectionProviderMultiPhase", - "DesiredTargets", - vec![], - [ - 67u8, 241u8, 33u8, 113u8, 62u8, 173u8, 233u8, 76u8, 99u8, 12u8, 61u8, - 237u8, 21u8, 252u8, 39u8, 37u8, 86u8, 167u8, 173u8, 53u8, 238u8, 172u8, - 97u8, 59u8, 27u8, 164u8, 163u8, 76u8, 140u8, 37u8, 159u8, 250u8, - ], - ) - } - #[doc = " The metadata of the [`RoundSnapshot`]"] - #[doc = ""] - #[doc = " Only exists when [`Snapshot`] is present."] - pub fn snapshot_metadata( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_election_provider_multi_phase::SolutionOrSnapshotSize, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "ElectionProviderMultiPhase", - "SnapshotMetadata", - vec![], - [ - 48u8, 121u8, 12u8, 130u8, 174u8, 100u8, 114u8, 183u8, 83u8, 63u8, 44u8, - 147u8, 242u8, 223u8, 22u8, 107u8, 175u8, 182u8, 178u8, 254u8, 12u8, - 189u8, 37u8, 117u8, 95u8, 21u8, 19u8, 167u8, 56u8, 205u8, 49u8, 100u8, - ], - ) - } - #[doc = " The next index to be assigned to an incoming signed submission."] - #[doc = ""] - #[doc = " Every accepted submission is assigned a unique index; that index is bound to that particular"] - #[doc = " submission for the duration of the election. On election finalization, the next index is"] - #[doc = " reset to 0."] - #[doc = ""] - #[doc = " We can't just use `SignedSubmissionIndices.len()`, because that's a bounded set; past its"] - #[doc = " capacity, it will simply saturate. We can't just iterate over `SignedSubmissionsMap`,"] - #[doc = " because iteration is slow. Instead, we store the value here."] - pub fn signed_submission_next_index( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "ElectionProviderMultiPhase", - "SignedSubmissionNextIndex", - vec![], - [ - 188u8, 126u8, 77u8, 166u8, 42u8, 81u8, 12u8, 239u8, 195u8, 16u8, 132u8, - 178u8, 217u8, 158u8, 28u8, 19u8, 201u8, 148u8, 47u8, 105u8, 178u8, - 115u8, 17u8, 78u8, 71u8, 178u8, 205u8, 171u8, 71u8, 52u8, 194u8, 82u8, - ], - ) - } - #[doc = " A sorted, bounded vector of `(score, block_number, index)`, where each `index` points to a"] - #[doc = " value in `SignedSubmissions`."] - #[doc = ""] - #[doc = " We never need to process more than a single signed submission at a time. Signed submissions"] - #[doc = " can be quite large, so we're willing to pay the cost of multiple database accesses to access"] - #[doc = " them one at a time instead of reading and decoding all of them at once."] - pub fn signed_submission_indices( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec<( - runtime_types::sp_npos_elections::ElectionScore, - ::core::primitive::u32, - ::core::primitive::u32, - )>, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "ElectionProviderMultiPhase", - "SignedSubmissionIndices", - vec![], - [ - 245u8, 24u8, 83u8, 165u8, 229u8, 167u8, 35u8, 107u8, 255u8, 77u8, 34u8, - 0u8, 188u8, 159u8, 175u8, 68u8, 232u8, 114u8, 238u8, 231u8, 252u8, - 169u8, 127u8, 232u8, 206u8, 183u8, 191u8, 227u8, 176u8, 46u8, 51u8, - 147u8, - ], - ) - } - #[doc = " Unchecked, signed solutions."] - #[doc = ""] - #[doc = " Together with `SubmissionIndices`, this stores a bounded set of `SignedSubmissions` while"] - #[doc = " allowing us to keep only a single one in memory at a time."] - #[doc = ""] - #[doc = " Twox note: the key of the map is an auto-incrementing index which users cannot inspect or"] - #[doc = " affect; we shouldn't need a cryptographically secure hasher."] - pub fn signed_submissions_map_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_election_provider_multi_phase::signed::SignedSubmission< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - runtime_types::polkadot_runtime::NposCompactSolution16, - >, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "ElectionProviderMultiPhase", - "SignedSubmissionsMap", - vec![], - [ - 118u8, 12u8, 234u8, 73u8, 238u8, 134u8, 20u8, 105u8, 248u8, 39u8, 23u8, - 96u8, 157u8, 187u8, 14u8, 143u8, 135u8, 121u8, 77u8, 90u8, 154u8, - 221u8, 139u8, 28u8, 34u8, 8u8, 19u8, 246u8, 65u8, 155u8, 84u8, 53u8, - ], - ) - } - #[doc = " Unchecked, signed solutions."] - #[doc = ""] - #[doc = " Together with `SubmissionIndices`, this stores a bounded set of `SignedSubmissions` while"] - #[doc = " allowing us to keep only a single one in memory at a time."] - #[doc = ""] - #[doc = " Twox note: the key of the map is an auto-incrementing index which users cannot inspect or"] - #[doc = " affect; we shouldn't need a cryptographically secure hasher."] - pub fn signed_submissions_map( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_election_provider_multi_phase::signed::SignedSubmission< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - runtime_types::polkadot_runtime::NposCompactSolution16, - >, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "ElectionProviderMultiPhase", - "SignedSubmissionsMap", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 118u8, 12u8, 234u8, 73u8, 238u8, 134u8, 20u8, 105u8, 248u8, 39u8, 23u8, - 96u8, 157u8, 187u8, 14u8, 143u8, 135u8, 121u8, 77u8, 90u8, 154u8, - 221u8, 139u8, 28u8, 34u8, 8u8, 19u8, 246u8, 65u8, 155u8, 84u8, 53u8, - ], - ) - } - #[doc = " The minimum score that each 'untrusted' solution must attain in order to be considered"] - #[doc = " feasible."] - #[doc = ""] - #[doc = " Can be set via `set_minimum_untrusted_score`."] - pub fn minimum_untrusted_score( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_npos_elections::ElectionScore, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "ElectionProviderMultiPhase", - "MinimumUntrustedScore", - vec![], - [ - 22u8, 253u8, 11u8, 17u8, 171u8, 145u8, 175u8, 97u8, 137u8, 148u8, 36u8, - 232u8, 55u8, 174u8, 75u8, 173u8, 133u8, 5u8, 227u8, 161u8, 28u8, 62u8, - 188u8, 249u8, 123u8, 102u8, 186u8, 180u8, 226u8, 216u8, 71u8, 249u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " Duration of the unsigned phase."] - pub fn unsigned_phase( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "UnsignedPhase", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " Duration of the signed phase."] - pub fn signed_phase(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "SignedPhase", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The minimum amount of improvement to the solution score that defines a solution as"] - #[doc = " \"better\" in the Signed phase."] - pub fn better_signed_threshold( - &self, - ) -> ::subxt::constants::Address - { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "BetterSignedThreshold", - [ - 65u8, 93u8, 120u8, 165u8, 204u8, 81u8, 159u8, 163u8, 93u8, 135u8, - 114u8, 121u8, 147u8, 35u8, 215u8, 213u8, 4u8, 223u8, 83u8, 37u8, 225u8, - 200u8, 189u8, 156u8, 140u8, 36u8, 58u8, 46u8, 42u8, 232u8, 155u8, 0u8, - ], - ) - } - #[doc = " The minimum amount of improvement to the solution score that defines a solution as"] - #[doc = " \"better\" in the Unsigned phase."] - pub fn better_unsigned_threshold( - &self, - ) -> ::subxt::constants::Address - { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "BetterUnsignedThreshold", - [ - 65u8, 93u8, 120u8, 165u8, 204u8, 81u8, 159u8, 163u8, 93u8, 135u8, - 114u8, 121u8, 147u8, 35u8, 215u8, 213u8, 4u8, 223u8, 83u8, 37u8, 225u8, - 200u8, 189u8, 156u8, 140u8, 36u8, 58u8, 46u8, 42u8, 232u8, 155u8, 0u8, - ], - ) - } - #[doc = " The repeat threshold of the offchain worker."] - #[doc = ""] - #[doc = " For example, if it is 5, that means that at least 5 blocks will elapse between attempts"] - #[doc = " to submit the worker's solution."] - pub fn offchain_repeat( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "OffchainRepeat", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The priority of the unsigned transaction submitted in the unsigned-phase"] - pub fn miner_tx_priority( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u64> { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "MinerTxPriority", - [ - 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, - 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, - 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, - 246u8, - ], - ) - } - #[doc = " Maximum number of signed submissions that can be queued."] - #[doc = ""] - #[doc = " It is best to avoid adjusting this during an election, as it impacts downstream data"] - #[doc = " structures. In particular, `SignedSubmissionIndices` is bounded on this value. If you"] - #[doc = " update this value during an election, you _must_ ensure that"] - #[doc = " `SignedSubmissionIndices.len()` is less than or equal to the new value. Otherwise,"] - #[doc = " attempts to submit new solutions may cause a runtime panic."] - pub fn signed_max_submissions( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "SignedMaxSubmissions", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " Maximum weight of a signed solution."] - #[doc = ""] - #[doc = " If [`Config::MinerConfig`] is being implemented to submit signed solutions (outside of"] - #[doc = " this pallet), then [`MinerConfig::solution_weight`] is used to compare against"] - #[doc = " this value."] - pub fn signed_max_weight( - &self, - ) -> ::subxt::constants::Address - { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "SignedMaxWeight", - [ - 149u8, 252u8, 129u8, 80u8, 169u8, 36u8, 79u8, 127u8, 240u8, 156u8, - 56u8, 202u8, 219u8, 86u8, 5u8, 65u8, 245u8, 148u8, 138u8, 243u8, 210u8, - 128u8, 234u8, 216u8, 240u8, 219u8, 123u8, 235u8, 21u8, 158u8, 237u8, - 112u8, - ], - ) - } - #[doc = " The maximum amount of unchecked solutions to refund the call fee for."] - pub fn signed_max_refunds( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "SignedMaxRefunds", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " Base reward for a signed solution"] - pub fn signed_reward_base( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "SignedRewardBase", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ], - ) - } - #[doc = " Base deposit for a signed solution."] - pub fn signed_deposit_base( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "SignedDepositBase", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ], - ) - } - #[doc = " Per-byte deposit for a signed solution."] - pub fn signed_deposit_byte( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "SignedDepositByte", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ], - ) - } - #[doc = " Per-weight deposit for a signed solution."] - pub fn signed_deposit_weight( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "SignedDepositWeight", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ], - ) - } - #[doc = " The maximum number of electing voters to put in the snapshot. At the moment, snapshots"] - #[doc = " are only over a single block, but once multi-block elections are introduced they will"] - #[doc = " take place over multiple blocks."] - pub fn max_electing_voters( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "MaxElectingVoters", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The maximum number of electable targets to put in the snapshot."] - pub fn max_electable_targets( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u16> { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "MaxElectableTargets", - [ - 116u8, 33u8, 2u8, 170u8, 181u8, 147u8, 171u8, 169u8, 167u8, 227u8, - 41u8, 144u8, 11u8, 236u8, 82u8, 100u8, 74u8, 60u8, 184u8, 72u8, 169u8, - 90u8, 208u8, 135u8, 15u8, 117u8, 10u8, 123u8, 128u8, 193u8, 29u8, 70u8, - ], - ) - } - #[doc = " The maximum number of winners that can be elected by this `ElectionProvider`"] - #[doc = " implementation."] - #[doc = ""] - #[doc = " Note: This must always be greater or equal to `T::DataProvider::desired_targets()`."] - pub fn max_winners(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "MaxWinners", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - pub fn miner_max_length( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "MinerMaxLength", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - pub fn miner_max_weight( - &self, - ) -> ::subxt::constants::Address - { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "MinerMaxWeight", - [ - 149u8, 252u8, 129u8, 80u8, 169u8, 36u8, 79u8, 127u8, 240u8, 156u8, - 56u8, 202u8, 219u8, 86u8, 5u8, 65u8, 245u8, 148u8, 138u8, 243u8, 210u8, - 128u8, 234u8, 216u8, 240u8, 219u8, 123u8, 235u8, 21u8, 158u8, 237u8, - 112u8, - ], - ) - } - pub fn miner_max_votes_per_voter( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "MinerMaxVotesPerVoter", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - pub fn miner_max_winners( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "MinerMaxWinners", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - } - } - } - pub mod voter_list { - use super::root_mod; - use super::runtime_types; - #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_bags_list::pallet::Error; - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::pallet_bags_list::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Rebag { - pub dislocated: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - } - impl ::subxt::blocks::StaticExtrinsic for Rebag { - const PALLET: &'static str = "VoterList"; - const CALL: &'static str = "rebag"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct PutInFrontOf { - pub lighter: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - } - impl ::subxt::blocks::StaticExtrinsic for PutInFrontOf { - const PALLET: &'static str = "VoterList"; - const CALL: &'static str = "put_in_front_of"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::rebag`]."] - pub fn rebag( - &self, - dislocated: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "VoterList", - "rebag", - types::Rebag { dislocated }, - [ - 9u8, 111u8, 68u8, 237u8, 32u8, 21u8, 214u8, 84u8, 11u8, 39u8, 94u8, - 43u8, 198u8, 46u8, 91u8, 147u8, 194u8, 3u8, 35u8, 171u8, 95u8, 248u8, - 78u8, 0u8, 7u8, 99u8, 2u8, 124u8, 139u8, 42u8, 109u8, 226u8, - ], - ) - } - #[doc = "See [`Pallet::put_in_front_of`]."] - pub fn put_in_front_of( - &self, - lighter: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "VoterList", - "put_in_front_of", - types::PutInFrontOf { lighter }, - [ - 61u8, 76u8, 164u8, 177u8, 140u8, 44u8, 127u8, 198u8, 195u8, 241u8, - 36u8, 80u8, 32u8, 85u8, 183u8, 130u8, 137u8, 128u8, 16u8, 203u8, 184u8, - 19u8, 151u8, 55u8, 10u8, 194u8, 162u8, 8u8, 211u8, 110u8, 126u8, 75u8, - ], - ) - } - } - } - #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_bags_list::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Moved an account from one bag to another."] - pub struct Rebagged { - pub who: ::subxt::utils::AccountId32, - pub from: ::core::primitive::u64, - pub to: ::core::primitive::u64, - } - impl ::subxt::events::StaticEvent for Rebagged { - const PALLET: &'static str = "VoterList"; - const EVENT: &'static str = "Rebagged"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Updated the score of some account to the given amount."] - pub struct ScoreUpdated { - pub who: ::subxt::utils::AccountId32, - pub new_score: ::core::primitive::u64, - } - impl ::subxt::events::StaticEvent for ScoreUpdated { - const PALLET: &'static str = "VoterList"; - const EVENT: &'static str = "ScoreUpdated"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " A single node, within some bag."] - #[doc = ""] - #[doc = " Nodes store links forward and back within their respective bags."] - pub fn list_nodes_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_bags_list::list::Node, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "VoterList", - "ListNodes", - vec![], - [ - 240u8, 139u8, 78u8, 185u8, 159u8, 185u8, 33u8, 229u8, 171u8, 222u8, - 54u8, 81u8, 104u8, 170u8, 49u8, 232u8, 29u8, 117u8, 193u8, 68u8, 225u8, - 180u8, 46u8, 199u8, 100u8, 26u8, 99u8, 216u8, 74u8, 248u8, 73u8, 144u8, - ], - ) - } - #[doc = " A single node, within some bag."] - #[doc = ""] - #[doc = " Nodes store links forward and back within their respective bags."] - pub fn list_nodes( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_bags_list::list::Node, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "VoterList", - "ListNodes", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 240u8, 139u8, 78u8, 185u8, 159u8, 185u8, 33u8, 229u8, 171u8, 222u8, - 54u8, 81u8, 104u8, 170u8, 49u8, 232u8, 29u8, 117u8, 193u8, 68u8, 225u8, - 180u8, 46u8, 199u8, 100u8, 26u8, 99u8, 216u8, 74u8, 248u8, 73u8, 144u8, - ], - ) - } - #[doc = "Counter for the related counted storage map"] - pub fn counter_for_list_nodes( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "VoterList", - "CounterForListNodes", - vec![], - [ - 126u8, 150u8, 201u8, 81u8, 155u8, 79u8, 50u8, 48u8, 120u8, 170u8, 3u8, - 104u8, 112u8, 254u8, 106u8, 46u8, 108u8, 126u8, 158u8, 245u8, 95u8, - 88u8, 236u8, 89u8, 79u8, 172u8, 13u8, 146u8, 202u8, 151u8, 122u8, - 132u8, - ], - ) - } - #[doc = " A bag stored in storage."] - #[doc = ""] - #[doc = " Stores a `Bag` struct, which stores head and tail pointers to itself."] - pub fn list_bags_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_bags_list::list::Bag, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "VoterList", - "ListBags", - vec![], - [ - 98u8, 52u8, 177u8, 147u8, 244u8, 169u8, 45u8, 213u8, 76u8, 163u8, 47u8, - 96u8, 197u8, 245u8, 17u8, 208u8, 86u8, 15u8, 233u8, 156u8, 165u8, 44u8, - 164u8, 202u8, 117u8, 167u8, 209u8, 193u8, 218u8, 235u8, 140u8, 158u8, - ], - ) - } - #[doc = " A bag stored in storage."] - #[doc = ""] - #[doc = " Stores a `Bag` struct, which stores head and tail pointers to itself."] - pub fn list_bags( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u64>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_bags_list::list::Bag, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "VoterList", - "ListBags", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 98u8, 52u8, 177u8, 147u8, 244u8, 169u8, 45u8, 213u8, 76u8, 163u8, 47u8, - 96u8, 197u8, 245u8, 17u8, 208u8, 86u8, 15u8, 233u8, 156u8, 165u8, 44u8, - 164u8, 202u8, 117u8, 167u8, 209u8, 193u8, 218u8, 235u8, 140u8, 158u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The list of thresholds separating the various bags."] - #[doc = ""] - #[doc = " Ids are separated into unsorted bags according to their score. This specifies the"] - #[doc = " thresholds separating the bags. An id's bag is the largest bag for which the id's score"] - #[doc = " is less than or equal to its upper threshold."] - #[doc = ""] - #[doc = " When ids are iterated, higher bags are iterated completely before lower bags. This means"] - #[doc = " that iteration is _semi-sorted_: ids of higher score tend to come before ids of lower"] - #[doc = " score, but peer ids within a particular bag are sorted in insertion order."] - #[doc = ""] - #[doc = " # Expressing the constant"] - #[doc = ""] - #[doc = " This constant must be sorted in strictly increasing order. Duplicate items are not"] - #[doc = " permitted."] - #[doc = ""] - #[doc = " There is an implied upper limit of `Score::MAX`; that value does not need to be"] - #[doc = " specified within the bag. For any two threshold lists, if one ends with"] - #[doc = " `Score::MAX`, the other one does not, and they are otherwise equal, the two"] - #[doc = " lists will behave identically."] - #[doc = ""] - #[doc = " # Calculation"] - #[doc = ""] - #[doc = " It is recommended to generate the set of thresholds in a geometric series, such that"] - #[doc = " there exists some constant ratio such that `threshold[k + 1] == (threshold[k] *"] - #[doc = " constant_ratio).max(threshold[k] + 1)` for all `k`."] - #[doc = ""] - #[doc = " The helpers in the `/utils/frame/generate-bags` module can simplify this calculation."] - #[doc = ""] - #[doc = " # Examples"] - #[doc = ""] - #[doc = " - If `BagThresholds::get().is_empty()`, then all ids are put into the same bag, and"] - #[doc = " iteration is strictly in insertion order."] - #[doc = " - If `BagThresholds::get().len() == 64`, and the thresholds are determined according to"] - #[doc = " the procedure given above, then the constant ratio is equal to 2."] - #[doc = " - If `BagThresholds::get().len() == 200`, and the thresholds are determined according to"] - #[doc = " the procedure given above, then the constant ratio is approximately equal to 1.248."] - #[doc = " - If the threshold list begins `[1, 2, 3, ...]`, then an id with score 0 or 1 will fall"] - #[doc = " into bag 0, an id with score 2 will fall into bag 1, etc."] - #[doc = ""] - #[doc = " # Migration"] - #[doc = ""] - #[doc = " In the event that this list ever changes, a copy of the old bags list must be retained."] - #[doc = " With that `List::migrate` can be called, which will perform the appropriate migration."] - pub fn bag_thresholds( - &self, - ) -> ::subxt::constants::Address<::std::vec::Vec<::core::primitive::u64>> - { - ::subxt::constants::Address::new_static( - "VoterList", - "BagThresholds", - [ - 215u8, 118u8, 183u8, 172u8, 4u8, 42u8, 248u8, 108u8, 4u8, 110u8, 43u8, - 165u8, 228u8, 7u8, 36u8, 30u8, 135u8, 184u8, 56u8, 201u8, 107u8, 68u8, - 25u8, 164u8, 134u8, 32u8, 82u8, 107u8, 200u8, 219u8, 212u8, 198u8, - ], - ) - } - } - } - } - pub mod nomination_pools { - use super::root_mod; - use super::runtime_types; - #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_nomination_pools::pallet::Error; - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::pallet_nomination_pools::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Join { - #[codec(compact)] - pub amount: ::core::primitive::u128, - pub pool_id: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for Join { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "join"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct BondExtra { - pub extra: - runtime_types::pallet_nomination_pools::BondExtra<::core::primitive::u128>, - } - impl ::subxt::blocks::StaticExtrinsic for BondExtra { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "bond_extra"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ClaimPayout; - impl ::subxt::blocks::StaticExtrinsic for ClaimPayout { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "claim_payout"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Unbond { - pub member_account: - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - #[codec(compact)] - pub unbonding_points: ::core::primitive::u128, - } - impl ::subxt::blocks::StaticExtrinsic for Unbond { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "unbond"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct PoolWithdrawUnbonded { - pub pool_id: ::core::primitive::u32, - pub num_slashing_spans: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for PoolWithdrawUnbonded { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "pool_withdraw_unbonded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct WithdrawUnbonded { - pub member_account: - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub num_slashing_spans: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for WithdrawUnbonded { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "withdraw_unbonded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Create { - #[codec(compact)] - pub amount: ::core::primitive::u128, - pub root: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub nominator: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub bouncer: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - } - impl ::subxt::blocks::StaticExtrinsic for Create { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "create"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct CreateWithPoolId { - #[codec(compact)] - pub amount: ::core::primitive::u128, - pub root: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub nominator: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub bouncer: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub pool_id: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for CreateWithPoolId { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "create_with_pool_id"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Nominate { - pub pool_id: ::core::primitive::u32, - pub validators: ::std::vec::Vec<::subxt::utils::AccountId32>, - } - impl ::subxt::blocks::StaticExtrinsic for Nominate { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "nominate"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SetState { - pub pool_id: ::core::primitive::u32, - pub state: runtime_types::pallet_nomination_pools::PoolState, - } - impl ::subxt::blocks::StaticExtrinsic for SetState { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "set_state"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SetMetadata { - pub pool_id: ::core::primitive::u32, - pub metadata: ::std::vec::Vec<::core::primitive::u8>, - } - impl ::subxt::blocks::StaticExtrinsic for SetMetadata { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "set_metadata"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SetConfigs { - pub min_join_bond: - runtime_types::pallet_nomination_pools::ConfigOp<::core::primitive::u128>, - pub min_create_bond: - runtime_types::pallet_nomination_pools::ConfigOp<::core::primitive::u128>, - pub max_pools: - runtime_types::pallet_nomination_pools::ConfigOp<::core::primitive::u32>, - pub max_members: - runtime_types::pallet_nomination_pools::ConfigOp<::core::primitive::u32>, - pub max_members_per_pool: - runtime_types::pallet_nomination_pools::ConfigOp<::core::primitive::u32>, - pub global_max_commission: runtime_types::pallet_nomination_pools::ConfigOp< - runtime_types::sp_arithmetic::per_things::Perbill, - >, - } - impl ::subxt::blocks::StaticExtrinsic for SetConfigs { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "set_configs"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct UpdateRoles { - pub pool_id: ::core::primitive::u32, - pub new_root: runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::utils::AccountId32, - >, - pub new_nominator: runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::utils::AccountId32, - >, - pub new_bouncer: runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::utils::AccountId32, - >, - } - impl ::subxt::blocks::StaticExtrinsic for UpdateRoles { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "update_roles"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Chill { - pub pool_id: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for Chill { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "chill"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct BondExtraOther { - pub member: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub extra: - runtime_types::pallet_nomination_pools::BondExtra<::core::primitive::u128>, - } - impl ::subxt::blocks::StaticExtrinsic for BondExtraOther { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "bond_extra_other"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SetClaimPermission { - pub permission: runtime_types::pallet_nomination_pools::ClaimPermission, - } - impl ::subxt::blocks::StaticExtrinsic for SetClaimPermission { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "set_claim_permission"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ClaimPayoutOther { - pub other: ::subxt::utils::AccountId32, - } - impl ::subxt::blocks::StaticExtrinsic for ClaimPayoutOther { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "claim_payout_other"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SetCommission { - pub pool_id: ::core::primitive::u32, - pub new_commission: ::core::option::Option<( - runtime_types::sp_arithmetic::per_things::Perbill, - ::subxt::utils::AccountId32, - )>, - } - impl ::subxt::blocks::StaticExtrinsic for SetCommission { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "set_commission"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SetCommissionMax { - pub pool_id: ::core::primitive::u32, - pub max_commission: runtime_types::sp_arithmetic::per_things::Perbill, - } - impl ::subxt::blocks::StaticExtrinsic for SetCommissionMax { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "set_commission_max"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SetCommissionChangeRate { - pub pool_id: ::core::primitive::u32, - pub change_rate: runtime_types::pallet_nomination_pools::CommissionChangeRate< - ::core::primitive::u32, - >, - } - impl ::subxt::blocks::StaticExtrinsic for SetCommissionChangeRate { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "set_commission_change_rate"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ClaimCommission { - pub pool_id: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for ClaimCommission { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "claim_commission"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::join`]."] - pub fn join( - &self, - amount: ::core::primitive::u128, - pool_id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NominationPools", - "join", - types::Join { amount, pool_id }, - [ - 9u8, 24u8, 209u8, 117u8, 242u8, 76u8, 192u8, 40u8, 196u8, 136u8, 158u8, - 182u8, 117u8, 140u8, 164u8, 64u8, 184u8, 160u8, 146u8, 143u8, 173u8, - 180u8, 6u8, 242u8, 203u8, 130u8, 41u8, 176u8, 158u8, 96u8, 94u8, 175u8, - ], - ) - } - #[doc = "See [`Pallet::bond_extra`]."] - pub fn bond_extra( - &self, - extra: runtime_types::pallet_nomination_pools::BondExtra< - ::core::primitive::u128, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NominationPools", - "bond_extra", - types::BondExtra { extra }, - [ - 149u8, 176u8, 102u8, 52u8, 76u8, 227u8, 61u8, 60u8, 109u8, 187u8, 40u8, - 176u8, 163u8, 37u8, 10u8, 228u8, 164u8, 77u8, 155u8, 155u8, 14u8, - 106u8, 5u8, 177u8, 176u8, 224u8, 163u8, 28u8, 66u8, 237u8, 186u8, - 188u8, - ], - ) - } - #[doc = "See [`Pallet::claim_payout`]."] - pub fn claim_payout(&self) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NominationPools", - "claim_payout", - types::ClaimPayout {}, - [ - 28u8, 87u8, 180u8, 5u8, 69u8, 49u8, 121u8, 28u8, 34u8, 63u8, 78u8, - 228u8, 223u8, 12u8, 171u8, 41u8, 181u8, 137u8, 145u8, 141u8, 198u8, - 220u8, 5u8, 101u8, 173u8, 69u8, 222u8, 59u8, 111u8, 92u8, 182u8, 8u8, - ], - ) - } - #[doc = "See [`Pallet::unbond`]."] - pub fn unbond( - &self, - member_account: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - unbonding_points: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NominationPools", - "unbond", - types::Unbond { - member_account, - unbonding_points, - }, - [ - 7u8, 80u8, 46u8, 120u8, 249u8, 148u8, 126u8, 232u8, 3u8, 130u8, 61u8, - 94u8, 174u8, 151u8, 235u8, 206u8, 120u8, 48u8, 201u8, 128u8, 78u8, - 13u8, 148u8, 39u8, 70u8, 65u8, 79u8, 232u8, 204u8, 125u8, 182u8, 33u8, - ], - ) - } - #[doc = "See [`Pallet::pool_withdraw_unbonded`]."] - pub fn pool_withdraw_unbonded( - &self, - pool_id: ::core::primitive::u32, - num_slashing_spans: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NominationPools", - "pool_withdraw_unbonded", - types::PoolWithdrawUnbonded { - pool_id, - num_slashing_spans, - }, - [ - 145u8, 39u8, 154u8, 109u8, 24u8, 233u8, 144u8, 66u8, 28u8, 252u8, - 180u8, 5u8, 54u8, 123u8, 28u8, 182u8, 26u8, 156u8, 69u8, 105u8, 226u8, - 208u8, 154u8, 34u8, 22u8, 201u8, 139u8, 104u8, 198u8, 195u8, 247u8, - 49u8, - ], - ) - } - #[doc = "See [`Pallet::withdraw_unbonded`]."] - pub fn withdraw_unbonded( - &self, - member_account: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - num_slashing_spans: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NominationPools", - "withdraw_unbonded", - types::WithdrawUnbonded { - member_account, - num_slashing_spans, - }, - [ - 69u8, 9u8, 243u8, 218u8, 41u8, 80u8, 5u8, 112u8, 23u8, 90u8, 208u8, - 120u8, 91u8, 181u8, 37u8, 159u8, 183u8, 41u8, 187u8, 212u8, 39u8, - 175u8, 90u8, 245u8, 242u8, 18u8, 220u8, 40u8, 160u8, 46u8, 214u8, - 239u8, - ], - ) - } - #[doc = "See [`Pallet::create`]."] - pub fn create( - &self, - amount: ::core::primitive::u128, - root: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - nominator: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - bouncer: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NominationPools", - "create", - types::Create { - amount, - root, - nominator, - bouncer, - }, - [ - 75u8, 103u8, 67u8, 204u8, 44u8, 28u8, 143u8, 33u8, 194u8, 100u8, 71u8, - 143u8, 211u8, 193u8, 229u8, 119u8, 237u8, 212u8, 65u8, 62u8, 19u8, - 52u8, 14u8, 4u8, 205u8, 88u8, 156u8, 238u8, 143u8, 158u8, 144u8, 108u8, - ], - ) - } - #[doc = "See [`Pallet::create_with_pool_id`]."] - pub fn create_with_pool_id( - &self, - amount: ::core::primitive::u128, - root: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - nominator: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - bouncer: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pool_id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NominationPools", - "create_with_pool_id", - types::CreateWithPoolId { - amount, - root, - nominator, - bouncer, - pool_id, - }, - [ - 41u8, 12u8, 98u8, 131u8, 99u8, 176u8, 30u8, 4u8, 227u8, 7u8, 42u8, - 158u8, 27u8, 233u8, 227u8, 230u8, 34u8, 16u8, 117u8, 203u8, 110u8, - 160u8, 68u8, 153u8, 78u8, 116u8, 191u8, 96u8, 156u8, 207u8, 223u8, - 80u8, - ], - ) - } - #[doc = "See [`Pallet::nominate`]."] - pub fn nominate( - &self, - pool_id: ::core::primitive::u32, - validators: ::std::vec::Vec<::subxt::utils::AccountId32>, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NominationPools", - "nominate", - types::Nominate { - pool_id, - validators, - }, - [ - 118u8, 80u8, 137u8, 47u8, 102u8, 9u8, 20u8, 136u8, 76u8, 164u8, 161u8, - 114u8, 33u8, 159u8, 204u8, 49u8, 233u8, 199u8, 246u8, 67u8, 144u8, - 169u8, 211u8, 67u8, 12u8, 68u8, 198u8, 149u8, 87u8, 62u8, 226u8, 72u8, - ], - ) - } - #[doc = "See [`Pallet::set_state`]."] - pub fn set_state( - &self, - pool_id: ::core::primitive::u32, - state: runtime_types::pallet_nomination_pools::PoolState, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NominationPools", - "set_state", - types::SetState { pool_id, state }, - [ - 39u8, 221u8, 24u8, 65u8, 144u8, 230u8, 228u8, 24u8, 191u8, 53u8, 171u8, - 148u8, 131u8, 45u8, 10u8, 22u8, 222u8, 240u8, 13u8, 87u8, 123u8, 182u8, - 102u8, 26u8, 124u8, 205u8, 23u8, 31u8, 25u8, 43u8, 12u8, 140u8, - ], - ) - } - #[doc = "See [`Pallet::set_metadata`]."] - pub fn set_metadata( - &self, - pool_id: ::core::primitive::u32, - metadata: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NominationPools", - "set_metadata", - types::SetMetadata { pool_id, metadata }, - [ - 221u8, 189u8, 15u8, 232u8, 0u8, 49u8, 187u8, 67u8, 124u8, 26u8, 114u8, - 191u8, 81u8, 14u8, 253u8, 75u8, 88u8, 182u8, 136u8, 18u8, 238u8, 119u8, - 215u8, 248u8, 133u8, 160u8, 154u8, 193u8, 177u8, 140u8, 1u8, 16u8, - ], - ) - } - #[doc = "See [`Pallet::set_configs`]."] - pub fn set_configs( - &self, - min_join_bond: runtime_types::pallet_nomination_pools::ConfigOp< - ::core::primitive::u128, - >, - min_create_bond: runtime_types::pallet_nomination_pools::ConfigOp< - ::core::primitive::u128, - >, - max_pools: runtime_types::pallet_nomination_pools::ConfigOp< - ::core::primitive::u32, - >, - max_members: runtime_types::pallet_nomination_pools::ConfigOp< - ::core::primitive::u32, - >, - max_members_per_pool: runtime_types::pallet_nomination_pools::ConfigOp< - ::core::primitive::u32, - >, - global_max_commission: runtime_types::pallet_nomination_pools::ConfigOp< - runtime_types::sp_arithmetic::per_things::Perbill, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NominationPools", - "set_configs", - types::SetConfigs { - min_join_bond, - min_create_bond, - max_pools, - max_members, - max_members_per_pool, - global_max_commission, - }, - [ - 151u8, 222u8, 184u8, 213u8, 161u8, 89u8, 162u8, 112u8, 198u8, 87u8, - 186u8, 55u8, 99u8, 197u8, 164u8, 156u8, 185u8, 199u8, 202u8, 19u8, - 44u8, 34u8, 35u8, 39u8, 129u8, 22u8, 41u8, 32u8, 27u8, 37u8, 176u8, - 107u8, - ], - ) - } - #[doc = "See [`Pallet::update_roles`]."] - pub fn update_roles( - &self, - pool_id: ::core::primitive::u32, - new_root: runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::utils::AccountId32, - >, - new_nominator: runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::utils::AccountId32, - >, - new_bouncer: runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::utils::AccountId32, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NominationPools", - "update_roles", - types::UpdateRoles { - pool_id, - new_root, - new_nominator, - new_bouncer, - }, - [ - 48u8, 253u8, 39u8, 205u8, 196u8, 231u8, 254u8, 76u8, 238u8, 70u8, 2u8, - 192u8, 188u8, 240u8, 206u8, 91u8, 213u8, 98u8, 226u8, 51u8, 167u8, - 205u8, 120u8, 128u8, 40u8, 175u8, 238u8, 57u8, 147u8, 96u8, 116u8, - 133u8, - ], - ) - } - #[doc = "See [`Pallet::chill`]."] - pub fn chill( - &self, - pool_id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NominationPools", - "chill", - types::Chill { pool_id }, - [ - 65u8, 206u8, 54u8, 53u8, 37u8, 97u8, 161u8, 104u8, 62u8, 9u8, 93u8, - 236u8, 61u8, 185u8, 204u8, 245u8, 234u8, 218u8, 213u8, 40u8, 154u8, - 29u8, 244u8, 19u8, 207u8, 172u8, 142u8, 221u8, 38u8, 70u8, 39u8, 10u8, - ], - ) - } - #[doc = "See [`Pallet::bond_extra_other`]."] - pub fn bond_extra_other( - &self, - member: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - extra: runtime_types::pallet_nomination_pools::BondExtra< - ::core::primitive::u128, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NominationPools", - "bond_extra_other", - types::BondExtraOther { member, extra }, - [ - 32u8, 200u8, 198u8, 128u8, 30u8, 21u8, 39u8, 98u8, 49u8, 4u8, 96u8, - 146u8, 169u8, 179u8, 109u8, 253u8, 168u8, 212u8, 206u8, 161u8, 116u8, - 191u8, 110u8, 189u8, 63u8, 252u8, 39u8, 107u8, 98u8, 25u8, 137u8, 0u8, - ], - ) - } - #[doc = "See [`Pallet::set_claim_permission`]."] - pub fn set_claim_permission( - &self, - permission: runtime_types::pallet_nomination_pools::ClaimPermission, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NominationPools", - "set_claim_permission", - types::SetClaimPermission { permission }, - [ - 36u8, 137u8, 193u8, 200u8, 57u8, 46u8, 87u8, 236u8, 180u8, 170u8, 90u8, - 99u8, 137u8, 123u8, 99u8, 197u8, 113u8, 119u8, 72u8, 153u8, 207u8, - 189u8, 69u8, 89u8, 225u8, 115u8, 45u8, 32u8, 216u8, 43u8, 92u8, 135u8, - ], - ) - } - #[doc = "See [`Pallet::claim_payout_other`]."] - pub fn claim_payout_other( - &self, - other: ::subxt::utils::AccountId32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NominationPools", - "claim_payout_other", - types::ClaimPayoutOther { other }, - [ - 202u8, 130u8, 122u8, 10u8, 159u8, 181u8, 124u8, 215u8, 23u8, 85u8, - 234u8, 178u8, 169u8, 41u8, 204u8, 226u8, 195u8, 69u8, 168u8, 88u8, - 58u8, 15u8, 3u8, 227u8, 180u8, 183u8, 62u8, 224u8, 39u8, 218u8, 75u8, - 166u8, - ], - ) - } - #[doc = "See [`Pallet::set_commission`]."] - pub fn set_commission( - &self, - pool_id: ::core::primitive::u32, - new_commission: ::core::option::Option<( - runtime_types::sp_arithmetic::per_things::Perbill, - ::subxt::utils::AccountId32, - )>, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NominationPools", - "set_commission", - types::SetCommission { - pool_id, - new_commission, - }, - [ - 77u8, 139u8, 221u8, 210u8, 51u8, 57u8, 243u8, 96u8, 25u8, 0u8, 42u8, - 81u8, 80u8, 7u8, 145u8, 28u8, 17u8, 44u8, 123u8, 28u8, 130u8, 194u8, - 153u8, 139u8, 222u8, 166u8, 169u8, 184u8, 46u8, 178u8, 236u8, 246u8, - ], - ) - } - #[doc = "See [`Pallet::set_commission_max`]."] - pub fn set_commission_max( - &self, - pool_id: ::core::primitive::u32, - max_commission: runtime_types::sp_arithmetic::per_things::Perbill, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NominationPools", - "set_commission_max", - types::SetCommissionMax { - pool_id, - max_commission, - }, - [ - 198u8, 127u8, 255u8, 230u8, 96u8, 142u8, 9u8, 220u8, 204u8, 82u8, - 192u8, 76u8, 140u8, 52u8, 94u8, 80u8, 153u8, 30u8, 162u8, 21u8, 71u8, - 31u8, 218u8, 160u8, 254u8, 180u8, 160u8, 219u8, 163u8, 30u8, 193u8, - 6u8, - ], - ) - } - #[doc = "See [`Pallet::set_commission_change_rate`]."] - pub fn set_commission_change_rate( - &self, - pool_id: ::core::primitive::u32, - change_rate: runtime_types::pallet_nomination_pools::CommissionChangeRate< - ::core::primitive::u32, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NominationPools", - "set_commission_change_rate", - types::SetCommissionChangeRate { - pool_id, - change_rate, - }, - [ - 20u8, 200u8, 249u8, 176u8, 168u8, 210u8, 180u8, 77u8, 93u8, 28u8, 0u8, - 79u8, 29u8, 172u8, 176u8, 38u8, 178u8, 13u8, 99u8, 240u8, 210u8, 108u8, - 245u8, 95u8, 197u8, 235u8, 143u8, 239u8, 190u8, 245u8, 63u8, 108u8, - ], - ) - } - #[doc = "See [`Pallet::claim_commission`]."] - pub fn claim_commission( - &self, - pool_id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NominationPools", - "claim_commission", - types::ClaimCommission { pool_id }, - [ - 51u8, 64u8, 163u8, 230u8, 2u8, 119u8, 68u8, 5u8, 154u8, 4u8, 84u8, - 149u8, 9u8, 195u8, 173u8, 37u8, 98u8, 48u8, 188u8, 65u8, 81u8, 11u8, - 64u8, 254u8, 126u8, 62u8, 29u8, 204u8, 92u8, 230u8, 240u8, 91u8, - ], - ) - } - } - } - #[doc = "Events of this pallet."] - pub type Event = runtime_types::pallet_nomination_pools::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A pool has been created."] - pub struct Created { - pub depositor: ::subxt::utils::AccountId32, - pub pool_id: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Created { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "Created"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A member has became bonded in a pool."] - pub struct Bonded { - pub member: ::subxt::utils::AccountId32, - pub pool_id: ::core::primitive::u32, - pub bonded: ::core::primitive::u128, - pub joined: ::core::primitive::bool, - } - impl ::subxt::events::StaticEvent for Bonded { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "Bonded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A payout has been made to a member."] - pub struct PaidOut { - pub member: ::subxt::utils::AccountId32, - pub pool_id: ::core::primitive::u32, - pub payout: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for PaidOut { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "PaidOut"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A member has unbonded from their pool."] - #[doc = ""] - #[doc = "- `balance` is the corresponding balance of the number of points that has been"] - #[doc = " requested to be unbonded (the argument of the `unbond` transaction) from the bonded"] - #[doc = " pool."] - #[doc = "- `points` is the number of points that are issued as a result of `balance` being"] - #[doc = "dissolved into the corresponding unbonding pool."] - #[doc = "- `era` is the era in which the balance will be unbonded."] - #[doc = "In the absence of slashing, these values will match. In the presence of slashing, the"] - #[doc = "number of points that are issued in the unbonding pool will be less than the amount"] - #[doc = "requested to be unbonded."] - pub struct Unbonded { - pub member: ::subxt::utils::AccountId32, - pub pool_id: ::core::primitive::u32, - pub balance: ::core::primitive::u128, - pub points: ::core::primitive::u128, - pub era: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Unbonded { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "Unbonded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A member has withdrawn from their pool."] - #[doc = ""] - #[doc = "The given number of `points` have been dissolved in return of `balance`."] - #[doc = ""] - #[doc = "Similar to `Unbonded` event, in the absence of slashing, the ratio of point to balance"] - #[doc = "will be 1."] - pub struct Withdrawn { - pub member: ::subxt::utils::AccountId32, - pub pool_id: ::core::primitive::u32, - pub balance: ::core::primitive::u128, - pub points: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Withdrawn { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "Withdrawn"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A pool has been destroyed."] - pub struct Destroyed { - pub pool_id: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for Destroyed { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "Destroyed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The state of a pool has changed"] - pub struct StateChanged { - pub pool_id: ::core::primitive::u32, - pub new_state: runtime_types::pallet_nomination_pools::PoolState, - } - impl ::subxt::events::StaticEvent for StateChanged { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "StateChanged"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A member has been removed from a pool."] - #[doc = ""] - #[doc = "The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked)."] - pub struct MemberRemoved { - pub pool_id: ::core::primitive::u32, - pub member: ::subxt::utils::AccountId32, - } - impl ::subxt::events::StaticEvent for MemberRemoved { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "MemberRemoved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The roles of a pool have been updated to the given new roles. Note that the depositor"] - #[doc = "can never change."] - pub struct RolesUpdated { - pub root: ::core::option::Option<::subxt::utils::AccountId32>, - pub bouncer: ::core::option::Option<::subxt::utils::AccountId32>, - pub nominator: ::core::option::Option<::subxt::utils::AccountId32>, - } - impl ::subxt::events::StaticEvent for RolesUpdated { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "RolesUpdated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The active balance of pool `pool_id` has been slashed to `balance`."] - pub struct PoolSlashed { - pub pool_id: ::core::primitive::u32, - pub balance: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for PoolSlashed { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "PoolSlashed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The unbond pool at `era` of pool `pool_id` has been slashed to `balance`."] - pub struct UnbondingPoolSlashed { - pub pool_id: ::core::primitive::u32, - pub era: ::core::primitive::u32, - pub balance: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for UnbondingPoolSlashed { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "UnbondingPoolSlashed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A pool's commission setting has been changed."] - pub struct PoolCommissionUpdated { - pub pool_id: ::core::primitive::u32, - pub current: ::core::option::Option<( - runtime_types::sp_arithmetic::per_things::Perbill, - ::subxt::utils::AccountId32, - )>, - } - impl ::subxt::events::StaticEvent for PoolCommissionUpdated { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "PoolCommissionUpdated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A pool's maximum commission setting has been changed."] - pub struct PoolMaxCommissionUpdated { - pub pool_id: ::core::primitive::u32, - pub max_commission: runtime_types::sp_arithmetic::per_things::Perbill, - } - impl ::subxt::events::StaticEvent for PoolMaxCommissionUpdated { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "PoolMaxCommissionUpdated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A pool's commission `change_rate` has been changed."] - pub struct PoolCommissionChangeRateUpdated { - pub pool_id: ::core::primitive::u32, - pub change_rate: runtime_types::pallet_nomination_pools::CommissionChangeRate< - ::core::primitive::u32, - >, - } - impl ::subxt::events::StaticEvent for PoolCommissionChangeRateUpdated { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "PoolCommissionChangeRateUpdated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Pool commission has been claimed."] - pub struct PoolCommissionClaimed { - pub pool_id: ::core::primitive::u32, - pub commission: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for PoolCommissionClaimed { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "PoolCommissionClaimed"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Minimum amount to bond to join a pool."] - pub fn min_join_bond( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "MinJoinBond", - vec![], - [ - 64u8, 180u8, 71u8, 185u8, 81u8, 46u8, 155u8, 26u8, 251u8, 84u8, 108u8, - 80u8, 128u8, 44u8, 163u8, 118u8, 107u8, 79u8, 250u8, 211u8, 194u8, - 71u8, 87u8, 16u8, 247u8, 9u8, 76u8, 95u8, 103u8, 227u8, 180u8, 231u8, - ], - ) - } - #[doc = " Minimum bond required to create a pool."] - #[doc = ""] - #[doc = " This is the amount that the depositor must put as their initial stake in the pool, as an"] - #[doc = " indication of \"skin in the game\"."] - #[doc = ""] - #[doc = " This is the value that will always exist in the staking ledger of the pool bonded account"] - #[doc = " while all other accounts leave."] - pub fn min_create_bond( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "MinCreateBond", - vec![], - [ - 210u8, 67u8, 92u8, 230u8, 231u8, 105u8, 54u8, 249u8, 154u8, 192u8, - 29u8, 217u8, 233u8, 79u8, 170u8, 126u8, 133u8, 98u8, 253u8, 153u8, - 248u8, 189u8, 63u8, 107u8, 170u8, 224u8, 12u8, 42u8, 198u8, 185u8, - 85u8, 46u8, - ], - ) - } - #[doc = " Maximum number of nomination pools that can exist. If `None`, then an unbounded number of"] - #[doc = " pools can exist."] - pub fn max_pools( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "MaxPools", - vec![], - [ - 230u8, 184u8, 242u8, 91u8, 118u8, 111u8, 90u8, 204u8, 136u8, 61u8, - 228u8, 50u8, 212u8, 40u8, 83u8, 49u8, 121u8, 161u8, 245u8, 80u8, 46u8, - 184u8, 105u8, 134u8, 249u8, 225u8, 39u8, 3u8, 123u8, 137u8, 156u8, - 240u8, - ], - ) - } - #[doc = " Maximum number of members that can exist in the system. If `None`, then the count"] - #[doc = " members are not bound on a system wide basis."] - pub fn max_pool_members( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "MaxPoolMembers", - vec![], - [ - 210u8, 222u8, 181u8, 146u8, 137u8, 200u8, 71u8, 196u8, 74u8, 38u8, - 36u8, 122u8, 187u8, 164u8, 218u8, 116u8, 216u8, 143u8, 182u8, 15u8, - 23u8, 124u8, 57u8, 121u8, 81u8, 151u8, 8u8, 247u8, 80u8, 136u8, 115u8, - 2u8, - ], - ) - } - #[doc = " Maximum number of members that may belong to pool. If `None`, then the count of"] - #[doc = " members is not bound on a per pool basis."] - pub fn max_pool_members_per_pool( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "MaxPoolMembersPerPool", - vec![], - [ - 250u8, 255u8, 136u8, 223u8, 61u8, 119u8, 117u8, 240u8, 68u8, 114u8, - 55u8, 1u8, 176u8, 120u8, 143u8, 48u8, 232u8, 125u8, 218u8, 105u8, 28u8, - 230u8, 253u8, 36u8, 9u8, 44u8, 129u8, 225u8, 147u8, 33u8, 181u8, 68u8, - ], - ) - } - #[doc = " The maximum commission that can be charged by a pool. Used on commission payouts to bound"] - #[doc = " pool commissions that are > `GlobalMaxCommission`, necessary if a future"] - #[doc = " `GlobalMaxCommission` is lower than some current pool commissions."] - pub fn global_max_commission( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_arithmetic::per_things::Perbill, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "GlobalMaxCommission", - vec![], - [ - 2u8, 112u8, 8u8, 116u8, 114u8, 97u8, 250u8, 106u8, 170u8, 215u8, 218u8, - 217u8, 80u8, 235u8, 149u8, 81u8, 85u8, 185u8, 201u8, 127u8, 107u8, - 251u8, 191u8, 231u8, 142u8, 74u8, 8u8, 70u8, 151u8, 238u8, 117u8, - 173u8, - ], - ) - } - #[doc = " Active members."] - #[doc = ""] - #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] - pub fn pool_members_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_nomination_pools::PoolMember, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "PoolMembers", - vec![], - [ - 71u8, 14u8, 198u8, 220u8, 13u8, 117u8, 189u8, 187u8, 123u8, 105u8, - 247u8, 41u8, 154u8, 176u8, 134u8, 226u8, 195u8, 136u8, 193u8, 6u8, - 134u8, 131u8, 105u8, 80u8, 140u8, 160u8, 20u8, 80u8, 179u8, 187u8, - 151u8, 47u8, - ], - ) - } - #[doc = " Active members."] - #[doc = ""] - #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] - pub fn pool_members( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_nomination_pools::PoolMember, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "PoolMembers", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 71u8, 14u8, 198u8, 220u8, 13u8, 117u8, 189u8, 187u8, 123u8, 105u8, - 247u8, 41u8, 154u8, 176u8, 134u8, 226u8, 195u8, 136u8, 193u8, 6u8, - 134u8, 131u8, 105u8, 80u8, 140u8, 160u8, 20u8, 80u8, 179u8, 187u8, - 151u8, 47u8, - ], - ) - } - #[doc = "Counter for the related counted storage map"] - pub fn counter_for_pool_members( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "CounterForPoolMembers", - vec![], - [ - 165u8, 158u8, 130u8, 19u8, 106u8, 227u8, 134u8, 73u8, 36u8, 237u8, - 103u8, 146u8, 198u8, 68u8, 219u8, 186u8, 134u8, 224u8, 89u8, 251u8, - 200u8, 46u8, 87u8, 232u8, 53u8, 152u8, 13u8, 10u8, 105u8, 49u8, 150u8, - 212u8, - ], - ) - } - #[doc = " Storage for bonded pools."] - pub fn bonded_pools_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_nomination_pools::BondedPoolInner, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "BondedPools", - vec![], - [ - 1u8, 3u8, 32u8, 159u8, 147u8, 134u8, 43u8, 51u8, 61u8, 157u8, 15u8, - 216u8, 170u8, 1u8, 170u8, 75u8, 243u8, 25u8, 103u8, 237u8, 89u8, 90u8, - 20u8, 233u8, 67u8, 3u8, 116u8, 6u8, 184u8, 112u8, 118u8, 232u8, - ], - ) - } - #[doc = " Storage for bonded pools."] - pub fn bonded_pools( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_nomination_pools::BondedPoolInner, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "BondedPools", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 1u8, 3u8, 32u8, 159u8, 147u8, 134u8, 43u8, 51u8, 61u8, 157u8, 15u8, - 216u8, 170u8, 1u8, 170u8, 75u8, 243u8, 25u8, 103u8, 237u8, 89u8, 90u8, - 20u8, 233u8, 67u8, 3u8, 116u8, 6u8, 184u8, 112u8, 118u8, 232u8, - ], - ) - } - #[doc = "Counter for the related counted storage map"] - pub fn counter_for_bonded_pools( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "CounterForBondedPools", - vec![], - [ - 198u8, 6u8, 213u8, 92u8, 4u8, 114u8, 164u8, 244u8, 51u8, 55u8, 157u8, - 20u8, 224u8, 183u8, 40u8, 236u8, 115u8, 86u8, 171u8, 207u8, 31u8, - 111u8, 0u8, 210u8, 48u8, 198u8, 243u8, 153u8, 5u8, 216u8, 107u8, 113u8, - ], - ) - } - #[doc = " Reward pools. This is where there rewards for each pool accumulate. When a members payout is"] - #[doc = " claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account."] - pub fn reward_pools_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_nomination_pools::RewardPool, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "RewardPools", - vec![], - [ - 9u8, 12u8, 53u8, 236u8, 133u8, 154u8, 71u8, 150u8, 220u8, 31u8, 130u8, - 126u8, 208u8, 240u8, 214u8, 66u8, 16u8, 43u8, 202u8, 222u8, 94u8, - 136u8, 76u8, 60u8, 174u8, 197u8, 130u8, 138u8, 253u8, 239u8, 89u8, - 46u8, - ], - ) - } - #[doc = " Reward pools. This is where there rewards for each pool accumulate. When a members payout is"] - #[doc = " claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account."] - pub fn reward_pools( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_nomination_pools::RewardPool, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "RewardPools", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 9u8, 12u8, 53u8, 236u8, 133u8, 154u8, 71u8, 150u8, 220u8, 31u8, 130u8, - 126u8, 208u8, 240u8, 214u8, 66u8, 16u8, 43u8, 202u8, 222u8, 94u8, - 136u8, 76u8, 60u8, 174u8, 197u8, 130u8, 138u8, 253u8, 239u8, 89u8, - 46u8, - ], - ) - } - #[doc = "Counter for the related counted storage map"] - pub fn counter_for_reward_pools( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "CounterForRewardPools", - vec![], - [ - 218u8, 186u8, 28u8, 97u8, 205u8, 249u8, 187u8, 10u8, 127u8, 190u8, - 213u8, 152u8, 103u8, 20u8, 157u8, 183u8, 86u8, 104u8, 186u8, 236u8, - 84u8, 159u8, 117u8, 78u8, 5u8, 242u8, 193u8, 59u8, 112u8, 200u8, 34u8, - 166u8, - ], - ) - } - #[doc = " Groups of unbonding pools. Each group of unbonding pools belongs to a"] - #[doc = " bonded pool, hence the name sub-pools. Keyed by the bonded pools account."] - pub fn sub_pools_storage_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_nomination_pools::SubPools, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "SubPoolsStorage", - vec![], - [ - 43u8, 35u8, 94u8, 197u8, 201u8, 86u8, 21u8, 118u8, 230u8, 10u8, 66u8, - 180u8, 104u8, 146u8, 250u8, 207u8, 159u8, 153u8, 203u8, 58u8, 20u8, - 247u8, 102u8, 155u8, 47u8, 58u8, 136u8, 150u8, 167u8, 83u8, 81u8, 44u8, - ], - ) - } - #[doc = " Groups of unbonding pools. Each group of unbonding pools belongs to a"] - #[doc = " bonded pool, hence the name sub-pools. Keyed by the bonded pools account."] - pub fn sub_pools_storage( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_nomination_pools::SubPools, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "SubPoolsStorage", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 43u8, 35u8, 94u8, 197u8, 201u8, 86u8, 21u8, 118u8, 230u8, 10u8, 66u8, - 180u8, 104u8, 146u8, 250u8, 207u8, 159u8, 153u8, 203u8, 58u8, 20u8, - 247u8, 102u8, 155u8, 47u8, 58u8, 136u8, 150u8, 167u8, 83u8, 81u8, 44u8, - ], - ) - } - #[doc = "Counter for the related counted storage map"] - pub fn counter_for_sub_pools_storage( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "CounterForSubPoolsStorage", - vec![], - [ - 137u8, 162u8, 32u8, 44u8, 163u8, 30u8, 54u8, 158u8, 169u8, 118u8, - 196u8, 101u8, 78u8, 28u8, 184u8, 78u8, 185u8, 225u8, 226u8, 207u8, - 14u8, 119u8, 0u8, 116u8, 140u8, 141u8, 116u8, 106u8, 71u8, 161u8, - 200u8, 228u8, - ], - ) - } - #[doc = " Metadata for the pool."] - pub fn metadata_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "Metadata", - vec![], - [ - 10u8, 171u8, 251u8, 5u8, 72u8, 74u8, 86u8, 144u8, 59u8, 67u8, 92u8, - 111u8, 217u8, 111u8, 175u8, 107u8, 119u8, 206u8, 199u8, 78u8, 182u8, - 84u8, 12u8, 102u8, 10u8, 124u8, 103u8, 9u8, 86u8, 199u8, 233u8, 54u8, - ], - ) - } - #[doc = " Metadata for the pool."] - pub fn metadata( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "Metadata", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 10u8, 171u8, 251u8, 5u8, 72u8, 74u8, 86u8, 144u8, 59u8, 67u8, 92u8, - 111u8, 217u8, 111u8, 175u8, 107u8, 119u8, 206u8, 199u8, 78u8, 182u8, - 84u8, 12u8, 102u8, 10u8, 124u8, 103u8, 9u8, 86u8, 199u8, 233u8, 54u8, - ], - ) - } - #[doc = "Counter for the related counted storage map"] - pub fn counter_for_metadata( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "CounterForMetadata", - vec![], - [ - 49u8, 76u8, 175u8, 236u8, 99u8, 120u8, 156u8, 116u8, 153u8, 173u8, - 10u8, 102u8, 194u8, 139u8, 25u8, 149u8, 109u8, 195u8, 150u8, 21u8, - 43u8, 24u8, 196u8, 180u8, 231u8, 101u8, 69u8, 98u8, 82u8, 159u8, 183u8, - 174u8, - ], - ) - } - #[doc = " Ever increasing number of all pools created so far."] - pub fn last_pool_id( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "LastPoolId", - vec![], - [ - 178u8, 198u8, 245u8, 157u8, 176u8, 45u8, 214u8, 86u8, 73u8, 154u8, - 217u8, 39u8, 191u8, 53u8, 233u8, 145u8, 57u8, 100u8, 31u8, 13u8, 202u8, - 122u8, 115u8, 16u8, 205u8, 69u8, 157u8, 250u8, 216u8, 180u8, 113u8, - 30u8, - ], - ) - } - #[doc = " A reverse lookup from the pool's account id to its id."] - #[doc = ""] - #[doc = " This is only used for slashing. In all other instances, the pool id is used, and the"] - #[doc = " accounts are deterministically derived from it."] - pub fn reverse_pool_id_lookup_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "ReversePoolIdLookup", - vec![], - [ - 76u8, 76u8, 150u8, 33u8, 64u8, 81u8, 90u8, 75u8, 212u8, 221u8, 59u8, - 83u8, 178u8, 45u8, 86u8, 206u8, 196u8, 221u8, 117u8, 94u8, 229u8, - 160u8, 52u8, 54u8, 11u8, 64u8, 0u8, 103u8, 85u8, 86u8, 5u8, 71u8, - ], - ) - } - #[doc = " A reverse lookup from the pool's account id to its id."] - #[doc = ""] - #[doc = " This is only used for slashing. In all other instances, the pool id is used, and the"] - #[doc = " accounts are deterministically derived from it."] - pub fn reverse_pool_id_lookup( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "ReversePoolIdLookup", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 76u8, 76u8, 150u8, 33u8, 64u8, 81u8, 90u8, 75u8, 212u8, 221u8, 59u8, - 83u8, 178u8, 45u8, 86u8, 206u8, 196u8, 221u8, 117u8, 94u8, 229u8, - 160u8, 52u8, 54u8, 11u8, 64u8, 0u8, 103u8, 85u8, 86u8, 5u8, 71u8, - ], - ) - } - #[doc = "Counter for the related counted storage map"] - pub fn counter_for_reverse_pool_id_lookup( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "CounterForReversePoolIdLookup", - vec![], - [ - 135u8, 72u8, 203u8, 197u8, 101u8, 135u8, 114u8, 202u8, 122u8, 231u8, - 128u8, 17u8, 81u8, 70u8, 22u8, 146u8, 100u8, 138u8, 16u8, 74u8, 31u8, - 250u8, 110u8, 184u8, 250u8, 75u8, 249u8, 71u8, 171u8, 77u8, 95u8, - 251u8, - ], - ) - } - #[doc = " Map from a pool member account to their opted claim permission."] - pub fn claim_permissions_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_nomination_pools::ClaimPermission, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "ClaimPermissions", - vec![], - [ - 98u8, 241u8, 185u8, 102u8, 61u8, 53u8, 215u8, 105u8, 2u8, 148u8, 197u8, - 17u8, 107u8, 253u8, 74u8, 159u8, 14u8, 30u8, 213u8, 38u8, 35u8, 163u8, - 249u8, 19u8, 140u8, 201u8, 182u8, 106u8, 0u8, 21u8, 102u8, 15u8, - ], - ) - } - #[doc = " Map from a pool member account to their opted claim permission."] - pub fn claim_permissions( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_nomination_pools::ClaimPermission, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "ClaimPermissions", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 98u8, 241u8, 185u8, 102u8, 61u8, 53u8, 215u8, 105u8, 2u8, 148u8, 197u8, - 17u8, 107u8, 253u8, 74u8, 159u8, 14u8, 30u8, 213u8, 38u8, 35u8, 163u8, - 249u8, 19u8, 140u8, 201u8, 182u8, 106u8, 0u8, 21u8, 102u8, 15u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The nomination pool's pallet id."] - pub fn pallet_id( - &self, - ) -> ::subxt::constants::Address - { - ::subxt::constants::Address::new_static( - "NominationPools", - "PalletId", - [ - 56u8, 243u8, 53u8, 83u8, 154u8, 179u8, 170u8, 80u8, 133u8, 173u8, 61u8, - 161u8, 47u8, 225u8, 146u8, 21u8, 50u8, 229u8, 248u8, 27u8, 104u8, 58u8, - 129u8, 197u8, 102u8, 160u8, 168u8, 205u8, 154u8, 42u8, 217u8, 53u8, - ], - ) - } - #[doc = " The maximum pool points-to-balance ratio that an `open` pool can have."] - #[doc = ""] - #[doc = " This is important in the event slashing takes place and the pool's points-to-balance"] - #[doc = " ratio becomes disproportional."] - #[doc = ""] - #[doc = " Moreover, this relates to the `RewardCounter` type as well, as the arithmetic operations"] - #[doc = " are a function of number of points, and by setting this value to e.g. 10, you ensure"] - #[doc = " that the total number of points in the system are at most 10 times the total_issuance of"] - #[doc = " the chain, in the absolute worse case."] - #[doc = ""] - #[doc = " For a value of 10, the threshold would be a pool points-to-balance ratio of 10:1."] - #[doc = " Such a scenario would also be the equivalent of the pool being 90% slashed."] - pub fn max_points_to_balance( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u8> { - ::subxt::constants::Address::new_static( - "NominationPools", - "MaxPointsToBalance", - [ - 141u8, 130u8, 11u8, 35u8, 226u8, 114u8, 92u8, 179u8, 168u8, 110u8, - 28u8, 91u8, 221u8, 64u8, 4u8, 148u8, 201u8, 193u8, 185u8, 66u8, 226u8, - 114u8, 97u8, 79u8, 62u8, 212u8, 202u8, 114u8, 237u8, 228u8, 183u8, - 165u8, - ], - ) - } - } - } - } - pub mod fast_unstake { - use super::root_mod; - use super::runtime_types; - #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_fast_unstake::pallet::Error; - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::pallet_fast_unstake::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct RegisterFastUnstake; - impl ::subxt::blocks::StaticExtrinsic for RegisterFastUnstake { - const PALLET: &'static str = "FastUnstake"; - const CALL: &'static str = "register_fast_unstake"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Deregister; - impl ::subxt::blocks::StaticExtrinsic for Deregister { - const PALLET: &'static str = "FastUnstake"; - const CALL: &'static str = "deregister"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Control { - pub eras_to_check: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for Control { - const PALLET: &'static str = "FastUnstake"; - const CALL: &'static str = "control"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::register_fast_unstake`]."] - pub fn register_fast_unstake( - &self, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "FastUnstake", - "register_fast_unstake", - types::RegisterFastUnstake {}, + "NisCounterpartBalances", + "Account", + vec![], [ - 25u8, 175u8, 236u8, 174u8, 69u8, 228u8, 25u8, 109u8, 166u8, 101u8, - 80u8, 189u8, 17u8, 201u8, 95u8, 152u8, 209u8, 42u8, 140u8, 186u8, 61u8, - 73u8, 147u8, 103u8, 158u8, 39u8, 26u8, 54u8, 98u8, 3u8, 2u8, 49u8, + 213u8, 38u8, 200u8, 69u8, 218u8, 0u8, 112u8, 181u8, 160u8, 23u8, 96u8, + 90u8, 3u8, 88u8, 126u8, 22u8, 103u8, 74u8, 64u8, 69u8, 29u8, 247u8, + 18u8, 17u8, 234u8, 143u8, 189u8, 22u8, 247u8, 194u8, 154u8, 249u8, ], ) } - #[doc = "See [`Pallet::deregister`]."] - pub fn deregister(&self) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "FastUnstake", - "deregister", - types::Deregister {}, + #[doc = " The Balances pallet example of storing the balance of an account."] + #[doc = ""] + #[doc = " # Example"] + #[doc = ""] + #[doc = " ```nocompile"] + #[doc = " impl pallet_balances::Config for Runtime {"] + #[doc = " type AccountStore = StorageMapShim, frame_system::Provider, AccountId, Self::AccountData>"] + #[doc = " }"] + #[doc = " ```"] + #[doc = ""] + #[doc = " You can also store the balance of an account in the `System` pallet."] + #[doc = ""] + #[doc = " # Example"] + #[doc = ""] + #[doc = " ```nocompile"] + #[doc = " impl pallet_balances::Config for Runtime {"] + #[doc = " type AccountStore = System"] + #[doc = " }"] + #[doc = " ```"] + #[doc = ""] + #[doc = " But this comes with tradeoffs, storing account balances in the system pallet stores"] + #[doc = " `frame_system` data alongside the account data contrary to storing account balances in the"] + #[doc = " `Balances` pallet, which uses a `StorageMap` to store balances data only."] + #[doc = " NOTE: This is only used in the case that this pallet is used to store balances."] + pub fn account( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::account::Account, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "NisCounterpartBalances", + "Account", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], [ - 228u8, 7u8, 6u8, 52u8, 110u8, 101u8, 41u8, 226u8, 254u8, 53u8, 44u8, - 229u8, 20u8, 205u8, 131u8, 91u8, 118u8, 71u8, 43u8, 97u8, 99u8, 205u8, - 75u8, 146u8, 27u8, 144u8, 219u8, 167u8, 98u8, 120u8, 11u8, 151u8, + 213u8, 38u8, 200u8, 69u8, 218u8, 0u8, 112u8, 181u8, 160u8, 23u8, 96u8, + 90u8, 3u8, 88u8, 126u8, 22u8, 103u8, 74u8, 64u8, 69u8, 29u8, 247u8, + 18u8, 17u8, 234u8, 143u8, 189u8, 22u8, 247u8, 194u8, 154u8, 249u8, ], ) } - #[doc = "See [`Pallet::control`]."] - pub fn control( + #[doc = " Any liquidity locks on some account balances."] + #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] + pub fn locks_iter( &self, - eras_to_check: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "FastUnstake", - "control", - types::Control { eras_to_check }, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::locks::Locks, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "NisCounterpartBalances", + "Locks", + vec![], [ - 93u8, 245u8, 35u8, 21u8, 125u8, 71u8, 144u8, 99u8, 90u8, 41u8, 161u8, - 90u8, 93u8, 132u8, 45u8, 155u8, 99u8, 175u8, 180u8, 1u8, 219u8, 37u8, - 182u8, 95u8, 203u8, 91u8, 181u8, 159u8, 169u8, 134u8, 139u8, 9u8, + 10u8, 223u8, 55u8, 0u8, 249u8, 69u8, 168u8, 41u8, 75u8, 35u8, 120u8, + 167u8, 18u8, 132u8, 9u8, 20u8, 91u8, 51u8, 27u8, 69u8, 136u8, 187u8, + 13u8, 220u8, 163u8, 122u8, 26u8, 141u8, 174u8, 249u8, 85u8, 37u8, ], ) } - } - } - #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_fast_unstake::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A staker was unstaked."] - pub struct Unstaked { - pub stash: ::subxt::utils::AccountId32, - pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, - } - impl ::subxt::events::StaticEvent for Unstaked { - const PALLET: &'static str = "FastUnstake"; - const EVENT: &'static str = "Unstaked"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A staker was slashed for requesting fast-unstake whilst being exposed."] - pub struct Slashed { - pub stash: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::events::StaticEvent for Slashed { - const PALLET: &'static str = "FastUnstake"; - const EVENT: &'static str = "Slashed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A batch was partially checked for the given eras, but the process did not finish."] - pub struct BatchChecked { - pub eras: ::std::vec::Vec<::core::primitive::u32>, - } - impl ::subxt::events::StaticEvent for BatchChecked { - const PALLET: &'static str = "FastUnstake"; - const EVENT: &'static str = "BatchChecked"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A batch of a given size was terminated."] - #[doc = ""] - #[doc = "This is always follows by a number of `Unstaked` or `Slashed` events, marking the end"] - #[doc = "of the batch. A new batch will be created upon next block."] - pub struct BatchFinished { - pub size: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for BatchFinished { - const PALLET: &'static str = "FastUnstake"; - const EVENT: &'static str = "BatchFinished"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An internal error happened. Operations will be paused now."] - pub struct InternalError; - impl ::subxt::events::StaticEvent for InternalError { - const PALLET: &'static str = "FastUnstake"; - const EVENT: &'static str = "InternalError"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The current \"head of the queue\" being unstaked."] - #[doc = ""] - #[doc = " The head in itself can be a batch of up to [`Config::BatchSize`] stakers."] - pub fn head( + #[doc = " Any liquidity locks on some account balances."] + #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] + pub fn locks( &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_fast_unstake::types::UnstakeRequest, + alias_types::locks::Locks, + ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), + > { + ::subxt::storage::address::Address::new_static( + "NisCounterpartBalances", + "Locks", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 10u8, 223u8, 55u8, 0u8, 249u8, 69u8, 168u8, 41u8, 75u8, 35u8, 120u8, + 167u8, 18u8, 132u8, 9u8, 20u8, 91u8, 51u8, 27u8, 69u8, 136u8, 187u8, + 13u8, 220u8, 163u8, 122u8, 26u8, 141u8, 174u8, 249u8, 85u8, 37u8, + ], + ) + } + #[doc = " Named reserves on some account balances."] + pub fn reserves_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::reserves::Reserves, (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "FastUnstake", - "Head", + "NisCounterpartBalances", + "Reserves", vec![], [ - 15u8, 207u8, 39u8, 233u8, 50u8, 252u8, 32u8, 127u8, 77u8, 94u8, 170u8, - 209u8, 72u8, 222u8, 77u8, 171u8, 175u8, 204u8, 191u8, 25u8, 15u8, - 104u8, 52u8, 129u8, 42u8, 199u8, 77u8, 44u8, 11u8, 242u8, 234u8, 6u8, + 112u8, 10u8, 241u8, 77u8, 64u8, 187u8, 106u8, 159u8, 13u8, 153u8, + 140u8, 178u8, 182u8, 50u8, 1u8, 55u8, 149u8, 92u8, 196u8, 229u8, 170u8, + 106u8, 193u8, 88u8, 255u8, 244u8, 2u8, 193u8, 62u8, 235u8, 204u8, 91u8, ], ) } - #[doc = " The map of all accounts wishing to be unstaked."] - #[doc = ""] - #[doc = " Keeps track of `AccountId` wishing to unstake and it's corresponding deposit."] - pub fn queue_iter( + #[doc = " Named reserves on some account balances."] + pub fn reserves( &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, + alias_types::reserves::Reserves, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, (), + > { + ::subxt::storage::address::Address::new_static( + "NisCounterpartBalances", + "Reserves", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 112u8, 10u8, 241u8, 77u8, 64u8, 187u8, 106u8, 159u8, 13u8, 153u8, + 140u8, 178u8, 182u8, 50u8, 1u8, 55u8, 149u8, 92u8, 196u8, 229u8, 170u8, + 106u8, 193u8, 88u8, 255u8, 244u8, 2u8, 193u8, 62u8, 235u8, 204u8, 91u8, + ], + ) + } + #[doc = " Holds on account balances."] + pub fn holds_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::holds::Holds, (), ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "FastUnstake", - "Queue", + "NisCounterpartBalances", + "Holds", vec![], [ - 72u8, 219u8, 212u8, 99u8, 189u8, 234u8, 57u8, 32u8, 80u8, 130u8, 178u8, - 101u8, 71u8, 186u8, 106u8, 129u8, 135u8, 165u8, 225u8, 112u8, 82u8, - 4u8, 215u8, 104u8, 107u8, 192u8, 118u8, 238u8, 70u8, 205u8, 205u8, - 148u8, + 72u8, 161u8, 107u8, 123u8, 240u8, 3u8, 198u8, 75u8, 46u8, 131u8, 122u8, + 141u8, 253u8, 141u8, 232u8, 192u8, 146u8, 54u8, 174u8, 162u8, 48u8, + 165u8, 226u8, 233u8, 12u8, 227u8, 23u8, 17u8, 237u8, 179u8, 193u8, + 166u8, ], ) } - #[doc = " The map of all accounts wishing to be unstaked."] - #[doc = ""] - #[doc = " Keeps track of `AccountId` wishing to unstake and it's corresponding deposit."] - pub fn queue( + #[doc = " Holds on account balances."] + pub fn holds( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, + alias_types::holds::Holds, + ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, - (), (), > { ::subxt::storage::address::Address::new_static( - "FastUnstake", - "Queue", + "NisCounterpartBalances", + "Holds", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 72u8, 219u8, 212u8, 99u8, 189u8, 234u8, 57u8, 32u8, 80u8, 130u8, 178u8, - 101u8, 71u8, 186u8, 106u8, 129u8, 135u8, 165u8, 225u8, 112u8, 82u8, - 4u8, 215u8, 104u8, 107u8, 192u8, 118u8, 238u8, 70u8, 205u8, 205u8, - 148u8, + 72u8, 161u8, 107u8, 123u8, 240u8, 3u8, 198u8, 75u8, 46u8, 131u8, 122u8, + 141u8, 253u8, 141u8, 232u8, 192u8, 146u8, 54u8, 174u8, 162u8, 48u8, + 165u8, 226u8, 233u8, 12u8, 227u8, 23u8, 17u8, 237u8, 179u8, 193u8, + 166u8, ], ) } - #[doc = "Counter for the related counted storage map"] - pub fn counter_for_queue( + #[doc = " Freeze locks on account balances."] + pub fn freezes_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, + alias_types::freezes::Freezes, + (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, - (), > { ::subxt::storage::address::Address::new_static( - "FastUnstake", - "CounterForQueue", + "NisCounterpartBalances", + "Freezes", vec![], [ - 236u8, 101u8, 74u8, 61u8, 59u8, 250u8, 165u8, 139u8, 110u8, 79u8, - 165u8, 124u8, 24u8, 188u8, 245u8, 175u8, 175u8, 102u8, 91u8, 121u8, - 215u8, 21u8, 12u8, 11u8, 194u8, 69u8, 180u8, 161u8, 160u8, 27u8, 39u8, - 17u8, + 69u8, 49u8, 165u8, 76u8, 135u8, 142u8, 179u8, 118u8, 50u8, 109u8, 53u8, + 112u8, 110u8, 94u8, 30u8, 93u8, 173u8, 38u8, 27u8, 142u8, 19u8, 5u8, + 163u8, 4u8, 68u8, 218u8, 179u8, 224u8, 118u8, 218u8, 115u8, 64u8, ], ) } - #[doc = " Number of eras to check per block."] - #[doc = ""] - #[doc = " If set to 0, this pallet does absolutely nothing. Cannot be set to more than"] - #[doc = " [`Config::MaxErasToCheckPerBlock`]."] - #[doc = ""] - #[doc = " Based on the amount of weight available at [`Pallet::on_idle`], up to this many eras are"] - #[doc = " checked. The checking is represented by updating [`UnstakeRequest::checked`], which is"] - #[doc = " stored in [`Head`]."] - pub fn eras_to_check_per_block( + #[doc = " Freeze locks on account balances."] + pub fn freezes( &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, + alias_types::freezes::Freezes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( - "FastUnstake", - "ErasToCheckPerBlock", - vec![], + "NisCounterpartBalances", + "Freezes", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], [ - 231u8, 147u8, 37u8, 154u8, 97u8, 151u8, 16u8, 240u8, 87u8, 38u8, 218u8, - 127u8, 68u8, 131u8, 2u8, 19u8, 46u8, 68u8, 232u8, 148u8, 197u8, 73u8, - 129u8, 102u8, 60u8, 19u8, 200u8, 77u8, 74u8, 31u8, 251u8, 27u8, + 69u8, 49u8, 165u8, 76u8, 135u8, 142u8, 179u8, 118u8, 50u8, 109u8, 53u8, + 112u8, 110u8, 94u8, 30u8, 93u8, 173u8, 38u8, 27u8, 142u8, 19u8, 5u8, + 163u8, 4u8, 68u8, 218u8, 179u8, 224u8, 118u8, 218u8, 115u8, 64u8, ], ) } @@ -27478,12 +25399,20 @@ pub mod api { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - #[doc = " Deposit to take for unstaking, to make sure we're able to slash the it in order to cover"] - #[doc = " the costs of resources on unsuccessful unstake."] - pub fn deposit(&self) -> ::subxt::constants::Address<::core::primitive::u128> { + #[doc = " The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!"] + #[doc = ""] + #[doc = " If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for"] + #[doc = " this pallet. However, you do so at your own risk: this will open up a major DoS vector."] + #[doc = " In case you have multiple sources of provider references, you may also get unexpected"] + #[doc = " behaviour if you set this to zero."] + #[doc = ""] + #[doc = " Bottom line: Do yourself a favour and make it at least one!"] + pub fn existential_deposit( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( - "FastUnstake", - "Deposit", + "NisCounterpartBalances", + "ExistentialDeposit", [ 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, @@ -27491,6 +25420,59 @@ pub mod api { ], ) } + #[doc = " The maximum number of locks that should exist on an account."] + #[doc = " Not strictly enforced, but used for weight estimation."] + pub fn max_locks(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "NisCounterpartBalances", + "MaxLocks", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The maximum number of named reserves that can exist on an account."] + pub fn max_reserves(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "NisCounterpartBalances", + "MaxReserves", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The maximum number of holds that can exist on an account at any time."] + pub fn max_holds(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "NisCounterpartBalances", + "MaxHolds", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The maximum number of individual freeze locks that can exist on an account at any time."] + pub fn max_freezes(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "NisCounterpartBalances", + "MaxFreezes", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } } } } @@ -27509,6 +25491,191 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod alias_types { + use super::runtime_types; + pub mod set_validation_upgrade_cooldown { + use super::runtime_types; + pub type New = ::core::primitive::u32; + } + pub mod set_validation_upgrade_delay { + use super::runtime_types; + pub type New = ::core::primitive::u32; + } + pub mod set_code_retention_period { + use super::runtime_types; + pub type New = ::core::primitive::u32; + } + pub mod set_max_code_size { + use super::runtime_types; + pub type New = ::core::primitive::u32; + } + pub mod set_max_pov_size { + use super::runtime_types; + pub type New = ::core::primitive::u32; + } + pub mod set_max_head_data_size { + use super::runtime_types; + pub type New = ::core::primitive::u32; + } + pub mod set_on_demand_cores { + use super::runtime_types; + pub type New = ::core::primitive::u32; + } + pub mod set_on_demand_retries { + use super::runtime_types; + pub type New = ::core::primitive::u32; + } + pub mod set_group_rotation_frequency { + use super::runtime_types; + pub type New = ::core::primitive::u32; + } + pub mod set_paras_availability_period { + use super::runtime_types; + pub type New = ::core::primitive::u32; + } + pub mod set_scheduling_lookahead { + use super::runtime_types; + pub type New = ::core::primitive::u32; + } + pub mod set_max_validators_per_core { + use super::runtime_types; + pub type New = ::core::option::Option<::core::primitive::u32>; + } + pub mod set_max_validators { + use super::runtime_types; + pub type New = ::core::option::Option<::core::primitive::u32>; + } + pub mod set_dispute_period { + use super::runtime_types; + pub type New = ::core::primitive::u32; + } + pub mod set_dispute_post_conclusion_acceptance_period { + use super::runtime_types; + pub type New = ::core::primitive::u32; + } + pub mod set_no_show_slots { + use super::runtime_types; + pub type New = ::core::primitive::u32; + } + pub mod set_n_delay_tranches { + use super::runtime_types; + pub type New = ::core::primitive::u32; + } + pub mod set_zeroth_delay_tranche_width { + use super::runtime_types; + pub type New = ::core::primitive::u32; + } + pub mod set_needed_approvals { + use super::runtime_types; + pub type New = ::core::primitive::u32; + } + pub mod set_relay_vrf_modulo_samples { + use super::runtime_types; + pub type New = ::core::primitive::u32; + } + pub mod set_max_upward_queue_count { + use super::runtime_types; + pub type New = ::core::primitive::u32; + } + pub mod set_max_upward_queue_size { + use super::runtime_types; + pub type New = ::core::primitive::u32; + } + pub mod set_max_downward_message_size { + use super::runtime_types; + pub type New = ::core::primitive::u32; + } + pub mod set_max_upward_message_size { + use super::runtime_types; + pub type New = ::core::primitive::u32; + } + pub mod set_max_upward_message_num_per_candidate { + use super::runtime_types; + pub type New = ::core::primitive::u32; + } + pub mod set_hrmp_open_request_ttl { + use super::runtime_types; + pub type New = ::core::primitive::u32; + } + pub mod set_hrmp_sender_deposit { + use super::runtime_types; + pub type New = ::core::primitive::u128; + } + pub mod set_hrmp_recipient_deposit { + use super::runtime_types; + pub type New = ::core::primitive::u128; + } + pub mod set_hrmp_channel_max_capacity { + use super::runtime_types; + pub type New = ::core::primitive::u32; + } + pub mod set_hrmp_channel_max_total_size { + use super::runtime_types; + pub type New = ::core::primitive::u32; + } + pub mod set_hrmp_max_parachain_inbound_channels { + use super::runtime_types; + pub type New = ::core::primitive::u32; + } + pub mod set_hrmp_channel_max_message_size { + use super::runtime_types; + pub type New = ::core::primitive::u32; + } + pub mod set_hrmp_max_parachain_outbound_channels { + use super::runtime_types; + pub type New = ::core::primitive::u32; + } + pub mod set_hrmp_max_message_num_per_candidate { + use super::runtime_types; + pub type New = ::core::primitive::u32; + } + pub mod set_pvf_voting_ttl { + use super::runtime_types; + pub type New = ::core::primitive::u32; + } + pub mod set_minimum_validation_upgrade_delay { + use super::runtime_types; + pub type New = ::core::primitive::u32; + } + pub mod set_bypass_consistency_check { + use super::runtime_types; + pub type New = ::core::primitive::bool; + } + pub mod set_async_backing_params { + use super::runtime_types; + pub type New = + runtime_types::polkadot_primitives::v6::async_backing::AsyncBackingParams; + } + pub mod set_executor_params { + use super::runtime_types; + pub type New = + runtime_types::polkadot_primitives::v6::executor_params::ExecutorParams; + } + pub mod set_on_demand_base_fee { + use super::runtime_types; + pub type New = ::core::primitive::u128; + } + pub mod set_on_demand_fee_variability { + use super::runtime_types; + pub type New = runtime_types::sp_arithmetic::per_things::Perbill; + } + pub mod set_on_demand_queue_max_size { + use super::runtime_types; + pub type New = ::core::primitive::u32; + } + pub mod set_on_demand_target_queue_utilization { + use super::runtime_types; + pub type New = runtime_types::sp_arithmetic::per_things::Perbill; + } + pub mod set_on_demand_ttl { + use super::runtime_types; + pub type New = ::core::primitive::u32; + } + pub mod set_minimum_backing_votes { + use super::runtime_types; + pub type New = ::core::primitive::u32; + } + } pub mod types { use super::runtime_types; #[derive( @@ -27630,12 +25797,12 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SetParathreadCores { + pub struct SetOnDemandCores { pub new: ::core::primitive::u32, } - impl ::subxt::blocks::StaticExtrinsic for SetParathreadCores { + impl ::subxt::blocks::StaticExtrinsic for SetOnDemandCores { const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_parathread_cores"; + const CALL: &'static str = "set_on_demand_cores"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -27648,12 +25815,12 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SetParathreadRetries { + pub struct SetOnDemandRetries { pub new: ::core::primitive::u32, } - impl ::subxt::blocks::StaticExtrinsic for SetParathreadRetries { + impl ::subxt::blocks::StaticExtrinsic for SetOnDemandRetries { const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_parathread_retries"; + const CALL: &'static str = "set_on_demand_retries"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -27684,30 +25851,12 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SetChainAvailabilityPeriod { - pub new: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for SetChainAvailabilityPeriod { - const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_chain_availability_period"; - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SetThreadAvailabilityPeriod { + pub struct SetParasAvailabilityPeriod { pub new: ::core::primitive::u32, } - impl ::subxt::blocks::StaticExtrinsic for SetThreadAvailabilityPeriod { + impl ::subxt::blocks::StaticExtrinsic for SetParasAvailabilityPeriod { const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_thread_availability_period"; + const CALL: &'static str = "set_paras_availability_period"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -28096,12 +26245,12 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SetHrmpMaxParathreadInboundChannels { + pub struct SetHrmpChannelMaxMessageSize { pub new: ::core::primitive::u32, } - impl ::subxt::blocks::StaticExtrinsic for SetHrmpMaxParathreadInboundChannels { + impl ::subxt::blocks::StaticExtrinsic for SetHrmpChannelMaxMessageSize { const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_hrmp_max_parathread_inbound_channels"; + const CALL: &'static str = "set_hrmp_channel_max_message_size"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -28114,12 +26263,12 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SetHrmpChannelMaxMessageSize { + pub struct SetHrmpMaxParachainOutboundChannels { pub new: ::core::primitive::u32, } - impl ::subxt::blocks::StaticExtrinsic for SetHrmpChannelMaxMessageSize { + impl ::subxt::blocks::StaticExtrinsic for SetHrmpMaxParachainOutboundChannels { const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_hrmp_channel_max_message_size"; + const CALL: &'static str = "set_hrmp_max_parachain_outbound_channels"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -28132,12 +26281,12 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SetHrmpMaxParachainOutboundChannels { + pub struct SetHrmpMaxMessageNumPerCandidate { pub new: ::core::primitive::u32, } - impl ::subxt::blocks::StaticExtrinsic for SetHrmpMaxParachainOutboundChannels { + impl ::subxt::blocks::StaticExtrinsic for SetHrmpMaxMessageNumPerCandidate { const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_hrmp_max_parachain_outbound_channels"; + const CALL: &'static str = "set_hrmp_max_message_num_per_candidate"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -28150,12 +26299,12 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SetHrmpMaxParathreadOutboundChannels { + pub struct SetPvfVotingTtl { pub new: ::core::primitive::u32, } - impl ::subxt::blocks::StaticExtrinsic for SetHrmpMaxParathreadOutboundChannels { + impl ::subxt::blocks::StaticExtrinsic for SetPvfVotingTtl { const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_hrmp_max_parathread_outbound_channels"; + const CALL: &'static str = "set_pvf_voting_ttl"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -28168,12 +26317,12 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SetHrmpMaxMessageNumPerCandidate { + pub struct SetMinimumValidationUpgradeDelay { pub new: ::core::primitive::u32, } - impl ::subxt::blocks::StaticExtrinsic for SetHrmpMaxMessageNumPerCandidate { + impl ::subxt::blocks::StaticExtrinsic for SetMinimumValidationUpgradeDelay { const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_hrmp_max_message_num_per_candidate"; + const CALL: &'static str = "set_minimum_validation_upgrade_delay"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -28185,12 +26334,48 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SetPvfCheckingEnabled { + pub struct SetBypassConsistencyCheck { pub new: ::core::primitive::bool, } - impl ::subxt::blocks::StaticExtrinsic for SetPvfCheckingEnabled { + impl ::subxt::blocks::StaticExtrinsic for SetBypassConsistencyCheck { + const PALLET: &'static str = "Configuration"; + const CALL: &'static str = "set_bypass_consistency_check"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SetAsyncBackingParams { + pub new: + runtime_types::polkadot_primitives::v6::async_backing::AsyncBackingParams, + } + impl ::subxt::blocks::StaticExtrinsic for SetAsyncBackingParams { + const PALLET: &'static str = "Configuration"; + const CALL: &'static str = "set_async_backing_params"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SetExecutorParams { + pub new: + runtime_types::polkadot_primitives::v6::executor_params::ExecutorParams, + } + impl ::subxt::blocks::StaticExtrinsic for SetExecutorParams { const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_pvf_checking_enabled"; + const CALL: &'static str = "set_executor_params"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -28203,12 +26388,29 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SetPvfVotingTtl { - pub new: ::core::primitive::u32, + pub struct SetOnDemandBaseFee { + pub new: ::core::primitive::u128, } - impl ::subxt::blocks::StaticExtrinsic for SetPvfVotingTtl { + impl ::subxt::blocks::StaticExtrinsic for SetOnDemandBaseFee { const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_pvf_voting_ttl"; + const CALL: &'static str = "set_on_demand_base_fee"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SetOnDemandFeeVariability { + pub new: runtime_types::sp_arithmetic::per_things::Perbill, + } + impl ::subxt::blocks::StaticExtrinsic for SetOnDemandFeeVariability { + const PALLET: &'static str = "Configuration"; + const CALL: &'static str = "set_on_demand_fee_variability"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -28221,12 +26423,12 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SetMinimumValidationUpgradeDelay { + pub struct SetOnDemandQueueMaxSize { pub new: ::core::primitive::u32, } - impl ::subxt::blocks::StaticExtrinsic for SetMinimumValidationUpgradeDelay { + impl ::subxt::blocks::StaticExtrinsic for SetOnDemandQueueMaxSize { const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_minimum_validation_upgrade_delay"; + const CALL: &'static str = "set_on_demand_queue_max_size"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -28238,14 +26440,15 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SetBypassConsistencyCheck { - pub new: ::core::primitive::bool, + pub struct SetOnDemandTargetQueueUtilization { + pub new: runtime_types::sp_arithmetic::per_things::Perbill, } - impl ::subxt::blocks::StaticExtrinsic for SetBypassConsistencyCheck { + impl ::subxt::blocks::StaticExtrinsic for SetOnDemandTargetQueueUtilization { const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_bypass_consistency_check"; + const CALL: &'static str = "set_on_demand_target_queue_utilization"; } #[derive( + :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -28255,14 +26458,15 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SetAsyncBackingParams { - pub new: runtime_types::polkadot_primitives::vstaging::AsyncBackingParams, + pub struct SetOnDemandTtl { + pub new: ::core::primitive::u32, } - impl ::subxt::blocks::StaticExtrinsic for SetAsyncBackingParams { + impl ::subxt::blocks::StaticExtrinsic for SetOnDemandTtl { const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_async_backing_params"; + const CALL: &'static str = "set_on_demand_ttl"; } #[derive( + :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -28272,13 +26476,12 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SetExecutorParams { - pub new: - runtime_types::polkadot_primitives::v5::executor_params::ExecutorParams, + pub struct SetMinimumBackingVotes { + pub new: ::core::primitive::u32, } - impl ::subxt::blocks::StaticExtrinsic for SetExecutorParams { + impl ::subxt::blocks::StaticExtrinsic for SetMinimumBackingVotes { const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_executor_params"; + const CALL: &'static str = "set_minimum_backing_votes"; } } pub struct TransactionApi; @@ -28286,7 +26489,7 @@ pub mod api { #[doc = "See [`Pallet::set_validation_upgrade_cooldown`]."] pub fn set_validation_upgrade_cooldown( &self, - new: ::core::primitive::u32, + new: alias_types::set_validation_upgrade_cooldown::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28303,7 +26506,7 @@ pub mod api { #[doc = "See [`Pallet::set_validation_upgrade_delay`]."] pub fn set_validation_upgrade_delay( &self, - new: ::core::primitive::u32, + new: alias_types::set_validation_upgrade_delay::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28319,7 +26522,7 @@ pub mod api { #[doc = "See [`Pallet::set_code_retention_period`]."] pub fn set_code_retention_period( &self, - new: ::core::primitive::u32, + new: alias_types::set_code_retention_period::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28336,7 +26539,7 @@ pub mod api { #[doc = "See [`Pallet::set_max_code_size`]."] pub fn set_max_code_size( &self, - new: ::core::primitive::u32, + new: alias_types::set_max_code_size::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28353,7 +26556,7 @@ pub mod api { #[doc = "See [`Pallet::set_max_pov_size`]."] pub fn set_max_pov_size( &self, - new: ::core::primitive::u32, + new: alias_types::set_max_pov_size::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28369,7 +26572,7 @@ pub mod api { #[doc = "See [`Pallet::set_max_head_data_size`]."] pub fn set_max_head_data_size( &self, - new: ::core::primitive::u32, + new: alias_types::set_max_head_data_size::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28383,44 +26586,44 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_parathread_cores`]."] - pub fn set_parathread_cores( + #[doc = "See [`Pallet::set_on_demand_cores`]."] + pub fn set_on_demand_cores( &self, - new: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + new: alias_types::set_on_demand_cores::New, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", - "set_parathread_cores", - types::SetParathreadCores { new }, + "set_on_demand_cores", + types::SetOnDemandCores { new }, [ - 230u8, 175u8, 182u8, 232u8, 5u8, 251u8, 196u8, 197u8, 246u8, 111u8, - 65u8, 165u8, 39u8, 174u8, 17u8, 30u8, 147u8, 116u8, 53u8, 254u8, 243u8, - 53u8, 110u8, 122u8, 211u8, 69u8, 122u8, 225u8, 16u8, 128u8, 250u8, - 172u8, + 157u8, 26u8, 82u8, 103u8, 83u8, 214u8, 92u8, 176u8, 93u8, 70u8, 32u8, + 217u8, 139u8, 30u8, 145u8, 237u8, 34u8, 121u8, 190u8, 17u8, 128u8, + 243u8, 241u8, 181u8, 85u8, 141u8, 107u8, 70u8, 121u8, 119u8, 20u8, + 104u8, ], ) } - #[doc = "See [`Pallet::set_parathread_retries`]."] - pub fn set_parathread_retries( + #[doc = "See [`Pallet::set_on_demand_retries`]."] + pub fn set_on_demand_retries( &self, - new: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + new: alias_types::set_on_demand_retries::New, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", - "set_parathread_retries", - types::SetParathreadRetries { new }, + "set_on_demand_retries", + types::SetOnDemandRetries { new }, [ - 12u8, 100u8, 94u8, 156u8, 161u8, 134u8, 229u8, 28u8, 106u8, 41u8, - 138u8, 162u8, 196u8, 224u8, 56u8, 149u8, 42u8, 141u8, 184u8, 192u8, - 53u8, 9u8, 18u8, 21u8, 143u8, 188u8, 244u8, 254u8, 101u8, 206u8, 102u8, - 187u8, + 228u8, 78u8, 216u8, 66u8, 17u8, 51u8, 84u8, 14u8, 80u8, 67u8, 24u8, + 138u8, 177u8, 108u8, 203u8, 87u8, 240u8, 125u8, 111u8, 223u8, 216u8, + 212u8, 69u8, 236u8, 216u8, 178u8, 166u8, 145u8, 115u8, 47u8, 147u8, + 235u8, ], ) } #[doc = "See [`Pallet::set_group_rotation_frequency`]."] pub fn set_group_rotation_frequency( &self, - new: ::core::primitive::u32, + new: alias_types::set_group_rotation_frequency::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28433,44 +26636,26 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_chain_availability_period`]."] - pub fn set_chain_availability_period( - &self, - new: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_chain_availability_period", - types::SetChainAvailabilityPeriod { new }, - [ - 117u8, 26u8, 125u8, 221u8, 25u8, 252u8, 92u8, 61u8, 28u8, 172u8, 164u8, - 43u8, 55u8, 7u8, 100u8, 219u8, 234u8, 157u8, 180u8, 216u8, 165u8, - 145u8, 1u8, 43u8, 133u8, 203u8, 160u8, 147u8, 46u8, 227u8, 153u8, - 112u8, - ], - ) - } - #[doc = "See [`Pallet::set_thread_availability_period`]."] - pub fn set_thread_availability_period( + #[doc = "See [`Pallet::set_paras_availability_period`]."] + pub fn set_paras_availability_period( &self, - new: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + new: alias_types::set_paras_availability_period::New, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", - "set_thread_availability_period", - types::SetThreadAvailabilityPeriod { new }, + "set_paras_availability_period", + types::SetParasAvailabilityPeriod { new }, [ - 223u8, 248u8, 231u8, 210u8, 234u8, 168u8, 224u8, 226u8, 175u8, 76u8, - 161u8, 222u8, 45u8, 238u8, 232u8, 169u8, 11u8, 210u8, 22u8, 13u8, - 145u8, 61u8, 17u8, 203u8, 132u8, 105u8, 196u8, 18u8, 12u8, 156u8, - 243u8, 231u8, + 83u8, 171u8, 219u8, 129u8, 231u8, 54u8, 45u8, 19u8, 167u8, 21u8, 232u8, + 205u8, 166u8, 83u8, 234u8, 101u8, 205u8, 248u8, 74u8, 39u8, 130u8, + 15u8, 92u8, 39u8, 239u8, 111u8, 215u8, 165u8, 149u8, 11u8, 89u8, 119u8, ], ) } #[doc = "See [`Pallet::set_scheduling_lookahead`]."] pub fn set_scheduling_lookahead( &self, - new: ::core::primitive::u32, + new: alias_types::set_scheduling_lookahead::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28487,7 +26672,7 @@ pub mod api { #[doc = "See [`Pallet::set_max_validators_per_core`]."] pub fn set_max_validators_per_core( &self, - new: ::core::option::Option<::core::primitive::u32>, + new: alias_types::set_max_validators_per_core::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28504,7 +26689,7 @@ pub mod api { #[doc = "See [`Pallet::set_max_validators`]."] pub fn set_max_validators( &self, - new: ::core::option::Option<::core::primitive::u32>, + new: alias_types::set_max_validators::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28521,7 +26706,7 @@ pub mod api { #[doc = "See [`Pallet::set_dispute_period`]."] pub fn set_dispute_period( &self, - new: ::core::primitive::u32, + new: alias_types::set_dispute_period::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28538,7 +26723,7 @@ pub mod api { #[doc = "See [`Pallet::set_dispute_post_conclusion_acceptance_period`]."] pub fn set_dispute_post_conclusion_acceptance_period( &self, - new: ::core::primitive::u32, + new: alias_types::set_dispute_post_conclusion_acceptance_period::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( @@ -28556,7 +26741,7 @@ pub mod api { #[doc = "See [`Pallet::set_no_show_slots`]."] pub fn set_no_show_slots( &self, - new: ::core::primitive::u32, + new: alias_types::set_no_show_slots::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28572,7 +26757,7 @@ pub mod api { #[doc = "See [`Pallet::set_n_delay_tranches`]."] pub fn set_n_delay_tranches( &self, - new: ::core::primitive::u32, + new: alias_types::set_n_delay_tranches::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28589,7 +26774,7 @@ pub mod api { #[doc = "See [`Pallet::set_zeroth_delay_tranche_width`]."] pub fn set_zeroth_delay_tranche_width( &self, - new: ::core::primitive::u32, + new: alias_types::set_zeroth_delay_tranche_width::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28605,7 +26790,7 @@ pub mod api { #[doc = "See [`Pallet::set_needed_approvals`]."] pub fn set_needed_approvals( &self, - new: ::core::primitive::u32, + new: alias_types::set_needed_approvals::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28621,7 +26806,7 @@ pub mod api { #[doc = "See [`Pallet::set_relay_vrf_modulo_samples`]."] pub fn set_relay_vrf_modulo_samples( &self, - new: ::core::primitive::u32, + new: alias_types::set_relay_vrf_modulo_samples::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28638,7 +26823,7 @@ pub mod api { #[doc = "See [`Pallet::set_max_upward_queue_count`]."] pub fn set_max_upward_queue_count( &self, - new: ::core::primitive::u32, + new: alias_types::set_max_upward_queue_count::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28655,7 +26840,7 @@ pub mod api { #[doc = "See [`Pallet::set_max_upward_queue_size`]."] pub fn set_max_upward_queue_size( &self, - new: ::core::primitive::u32, + new: alias_types::set_max_upward_queue_size::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28672,7 +26857,7 @@ pub mod api { #[doc = "See [`Pallet::set_max_downward_message_size`]."] pub fn set_max_downward_message_size( &self, - new: ::core::primitive::u32, + new: alias_types::set_max_downward_message_size::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28688,7 +26873,7 @@ pub mod api { #[doc = "See [`Pallet::set_max_upward_message_size`]."] pub fn set_max_upward_message_size( &self, - new: ::core::primitive::u32, + new: alias_types::set_max_upward_message_size::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28705,7 +26890,7 @@ pub mod api { #[doc = "See [`Pallet::set_max_upward_message_num_per_candidate`]."] pub fn set_max_upward_message_num_per_candidate( &self, - new: ::core::primitive::u32, + new: alias_types::set_max_upward_message_num_per_candidate::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( @@ -28722,7 +26907,7 @@ pub mod api { #[doc = "See [`Pallet::set_hrmp_open_request_ttl`]."] pub fn set_hrmp_open_request_ttl( &self, - new: ::core::primitive::u32, + new: alias_types::set_hrmp_open_request_ttl::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28738,7 +26923,7 @@ pub mod api { #[doc = "See [`Pallet::set_hrmp_sender_deposit`]."] pub fn set_hrmp_sender_deposit( &self, - new: ::core::primitive::u128, + new: alias_types::set_hrmp_sender_deposit::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28754,7 +26939,7 @@ pub mod api { #[doc = "See [`Pallet::set_hrmp_recipient_deposit`]."] pub fn set_hrmp_recipient_deposit( &self, - new: ::core::primitive::u128, + new: alias_types::set_hrmp_recipient_deposit::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28771,7 +26956,7 @@ pub mod api { #[doc = "See [`Pallet::set_hrmp_channel_max_capacity`]."] pub fn set_hrmp_channel_max_capacity( &self, - new: ::core::primitive::u32, + new: alias_types::set_hrmp_channel_max_capacity::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28788,7 +26973,7 @@ pub mod api { #[doc = "See [`Pallet::set_hrmp_channel_max_total_size`]."] pub fn set_hrmp_channel_max_total_size( &self, - new: ::core::primitive::u32, + new: alias_types::set_hrmp_channel_max_total_size::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28804,7 +26989,7 @@ pub mod api { #[doc = "See [`Pallet::set_hrmp_max_parachain_inbound_channels`]."] pub fn set_hrmp_max_parachain_inbound_channels( &self, - new: ::core::primitive::u32, + new: alias_types::set_hrmp_max_parachain_inbound_channels::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( @@ -28818,27 +27003,10 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_hrmp_max_parathread_inbound_channels`]."] - pub fn set_hrmp_max_parathread_inbound_channels( - &self, - new: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_hrmp_max_parathread_inbound_channels", - types::SetHrmpMaxParathreadInboundChannels { new }, - [ - 229u8, 236u8, 209u8, 63u8, 160u8, 95u8, 117u8, 90u8, 240u8, 144u8, - 238u8, 227u8, 129u8, 77u8, 234u8, 208u8, 217u8, 186u8, 54u8, 49u8, 6u8, - 142u8, 3u8, 0u8, 90u8, 199u8, 237u8, 37u8, 89u8, 201u8, 76u8, 224u8, - ], - ) - } #[doc = "See [`Pallet::set_hrmp_channel_max_message_size`]."] pub fn set_hrmp_channel_max_message_size( &self, - new: ::core::primitive::u32, + new: alias_types::set_hrmp_channel_max_message_size::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28855,7 +27023,7 @@ pub mod api { #[doc = "See [`Pallet::set_hrmp_max_parachain_outbound_channels`]."] pub fn set_hrmp_max_parachain_outbound_channels( &self, - new: ::core::primitive::u32, + new: alias_types::set_hrmp_max_parachain_outbound_channels::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( @@ -28869,28 +27037,10 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_hrmp_max_parathread_outbound_channels`]."] - pub fn set_hrmp_max_parathread_outbound_channels( - &self, - new: ::core::primitive::u32, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_hrmp_max_parathread_outbound_channels", - types::SetHrmpMaxParathreadOutboundChannels { new }, - [ - 147u8, 44u8, 219u8, 160u8, 208u8, 228u8, 97u8, 106u8, 247u8, 254u8, - 48u8, 90u8, 62u8, 151u8, 207u8, 214u8, 98u8, 163u8, 76u8, 175u8, 47u8, - 218u8, 52u8, 88u8, 165u8, 159u8, 169u8, 165u8, 192u8, 163u8, 37u8, - 110u8, - ], - ) - } #[doc = "See [`Pallet::set_hrmp_max_message_num_per_candidate`]."] pub fn set_hrmp_max_message_num_per_candidate( &self, - new: ::core::primitive::u32, + new: alias_types::set_hrmp_max_message_num_per_candidate::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28903,27 +27053,10 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_pvf_checking_enabled`]."] - pub fn set_pvf_checking_enabled( - &self, - new: ::core::primitive::bool, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_pvf_checking_enabled", - types::SetPvfCheckingEnabled { new }, - [ - 27u8, 146u8, 204u8, 24u8, 52u8, 183u8, 126u8, 151u8, 243u8, 172u8, - 175u8, 96u8, 36u8, 210u8, 162u8, 142u8, 71u8, 211u8, 51u8, 12u8, 105u8, - 148u8, 181u8, 111u8, 182u8, 161u8, 196u8, 163u8, 99u8, 149u8, 139u8, - 12u8, - ], - ) - } #[doc = "See [`Pallet::set_pvf_voting_ttl`]."] pub fn set_pvf_voting_ttl( &self, - new: ::core::primitive::u32, + new: alias_types::set_pvf_voting_ttl::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28940,7 +27073,7 @@ pub mod api { #[doc = "See [`Pallet::set_minimum_validation_upgrade_delay`]."] pub fn set_minimum_validation_upgrade_delay( &self, - new: ::core::primitive::u32, + new: alias_types::set_minimum_validation_upgrade_delay::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28957,7 +27090,7 @@ pub mod api { #[doc = "See [`Pallet::set_bypass_consistency_check`]."] pub fn set_bypass_consistency_check( &self, - new: ::core::primitive::bool, + new: alias_types::set_bypass_consistency_check::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28974,7 +27107,7 @@ pub mod api { #[doc = "See [`Pallet::set_async_backing_params`]."] pub fn set_async_backing_params( &self, - new: runtime_types::polkadot_primitives::vstaging::AsyncBackingParams, + new: alias_types::set_async_backing_params::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28991,7 +27124,7 @@ pub mod api { #[doc = "See [`Pallet::set_executor_params`]."] pub fn set_executor_params( &self, - new: runtime_types::polkadot_primitives::v5::executor_params::ExecutorParams, + new: alias_types::set_executor_params::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -29004,10 +27137,125 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::set_on_demand_base_fee`]."] + pub fn set_on_demand_base_fee( + &self, + new: alias_types::set_on_demand_base_fee::New, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Configuration", + "set_on_demand_base_fee", + types::SetOnDemandBaseFee { new }, + [ + 181u8, 205u8, 34u8, 186u8, 152u8, 91u8, 76u8, 55u8, 128u8, 116u8, 44u8, + 32u8, 71u8, 33u8, 247u8, 146u8, 134u8, 15u8, 181u8, 229u8, 105u8, 67u8, + 148u8, 214u8, 211u8, 84u8, 93u8, 122u8, 235u8, 204u8, 63u8, 13u8, + ], + ) + } + #[doc = "See [`Pallet::set_on_demand_fee_variability`]."] + pub fn set_on_demand_fee_variability( + &self, + new: alias_types::set_on_demand_fee_variability::New, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Configuration", + "set_on_demand_fee_variability", + types::SetOnDemandFeeVariability { new }, + [ + 255u8, 132u8, 238u8, 200u8, 152u8, 248u8, 89u8, 87u8, 160u8, 38u8, + 38u8, 7u8, 137u8, 178u8, 176u8, 10u8, 63u8, 250u8, 95u8, 68u8, 39u8, + 147u8, 5u8, 214u8, 223u8, 44u8, 225u8, 10u8, 233u8, 155u8, 202u8, + 232u8, + ], + ) + } + #[doc = "See [`Pallet::set_on_demand_queue_max_size`]."] + pub fn set_on_demand_queue_max_size( + &self, + new: alias_types::set_on_demand_queue_max_size::New, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Configuration", + "set_on_demand_queue_max_size", + types::SetOnDemandQueueMaxSize { new }, + [ + 207u8, 222u8, 29u8, 91u8, 8u8, 250u8, 0u8, 153u8, 230u8, 206u8, 87u8, + 4u8, 248u8, 28u8, 120u8, 55u8, 24u8, 45u8, 103u8, 75u8, 25u8, 239u8, + 61u8, 238u8, 11u8, 63u8, 82u8, 219u8, 154u8, 27u8, 130u8, 173u8, + ], + ) + } + #[doc = "See [`Pallet::set_on_demand_target_queue_utilization`]."] + pub fn set_on_demand_target_queue_utilization( + &self, + new: alias_types::set_on_demand_target_queue_utilization::New, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Configuration", + "set_on_demand_target_queue_utilization", + types::SetOnDemandTargetQueueUtilization { new }, + [ + 78u8, 98u8, 234u8, 149u8, 254u8, 231u8, 174u8, 232u8, 246u8, 16u8, + 218u8, 142u8, 156u8, 247u8, 70u8, 214u8, 144u8, 159u8, 71u8, 241u8, + 178u8, 102u8, 251u8, 153u8, 208u8, 222u8, 121u8, 139u8, 66u8, 146u8, + 94u8, 147u8, + ], + ) + } + #[doc = "See [`Pallet::set_on_demand_ttl`]."] + pub fn set_on_demand_ttl( + &self, + new: alias_types::set_on_demand_ttl::New, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Configuration", + "set_on_demand_ttl", + types::SetOnDemandTtl { new }, + [ + 248u8, 250u8, 204u8, 180u8, 134u8, 226u8, 77u8, 206u8, 21u8, 247u8, + 184u8, 68u8, 164u8, 54u8, 230u8, 135u8, 237u8, 226u8, 62u8, 253u8, + 116u8, 47u8, 31u8, 202u8, 110u8, 225u8, 211u8, 105u8, 72u8, 175u8, + 171u8, 169u8, + ], + ) + } + #[doc = "See [`Pallet::set_minimum_backing_votes`]."] + pub fn set_minimum_backing_votes( + &self, + new: alias_types::set_minimum_backing_votes::New, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Configuration", + "set_minimum_backing_votes", + types::SetMinimumBackingVotes { new }, + [ + 55u8, 209u8, 98u8, 156u8, 31u8, 150u8, 61u8, 19u8, 3u8, 55u8, 113u8, + 209u8, 171u8, 143u8, 241u8, 93u8, 178u8, 169u8, 39u8, 241u8, 98u8, + 53u8, 12u8, 148u8, 175u8, 50u8, 164u8, 38u8, 34u8, 183u8, 105u8, 178u8, + ], + ) + } } } pub mod storage { use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod active_config { + use super::runtime_types; + pub type ActiveConfig = runtime_types :: polkadot_runtime_parachains :: configuration :: HostConfiguration < :: core :: primitive :: u32 > ; + } + pub mod pending_configs { + use super::runtime_types; + pub type PendingConfigs = :: std :: vec :: Vec < (:: core :: primitive :: u32 , runtime_types :: polkadot_runtime_parachains :: configuration :: HostConfiguration < :: core :: primitive :: u32 > ,) > ; + } + pub mod bypass_consistency_check { + use super::runtime_types; + pub type BypassConsistencyCheck = ::core::primitive::bool; + } + } pub struct StorageApi; impl StorageApi { #[doc = " The active configuration for the current session."] @@ -29015,9 +27263,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_runtime_parachains::configuration::HostConfiguration< - ::core::primitive::u32, - >, + alias_types::active_config::ActiveConfig, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -29027,10 +27273,10 @@ pub mod api { "ActiveConfig", vec![], [ - 205u8, 102u8, 42u8, 9u8, 144u8, 0u8, 31u8, 85u8, 111u8, 44u8, 145u8, - 123u8, 200u8, 195u8, 163u8, 59u8, 202u8, 66u8, 156u8, 196u8, 32u8, - 204u8, 209u8, 201u8, 133u8, 103u8, 66u8, 179u8, 28u8, 41u8, 196u8, - 154u8, + 126u8, 223u8, 107u8, 199u8, 21u8, 114u8, 19u8, 172u8, 27u8, 108u8, + 189u8, 165u8, 33u8, 220u8, 57u8, 81u8, 137u8, 242u8, 204u8, 148u8, + 61u8, 161u8, 156u8, 36u8, 20u8, 172u8, 117u8, 30u8, 152u8, 210u8, + 207u8, 161u8, ], ) } @@ -29040,15 +27286,25 @@ pub mod api { #[doc = " be applied."] #[doc = ""] #[doc = " The list is sorted ascending by session index. Also, this list can only contain at most"] - #[doc = " 2 items: for the next session and for the `scheduled_session`."] pub fn pending_configs (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , :: std :: vec :: Vec < (:: core :: primitive :: u32 , runtime_types :: polkadot_runtime_parachains :: configuration :: HostConfiguration < :: core :: primitive :: u32 > ,) > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ + #[doc = " 2 items: for the next session and for the `scheduled_session`."] + pub fn pending_configs( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::pending_configs::PendingConfigs, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { ::subxt::storage::address::Address::new_static( "Configuration", "PendingConfigs", vec![], [ - 18u8, 179u8, 253u8, 26u8, 153u8, 33u8, 99u8, 167u8, 90u8, 57u8, 97u8, - 114u8, 99u8, 71u8, 69u8, 76u8, 176u8, 90u8, 240u8, 137u8, 231u8, 24u8, - 75u8, 138u8, 149u8, 176u8, 197u8, 96u8, 90u8, 154u8, 109u8, 218u8, + 105u8, 89u8, 53u8, 156u8, 60u8, 53u8, 196u8, 187u8, 5u8, 122u8, 186u8, + 196u8, 162u8, 133u8, 254u8, 178u8, 130u8, 143u8, 90u8, 23u8, 234u8, + 105u8, 9u8, 121u8, 142u8, 123u8, 136u8, 166u8, 95u8, 215u8, 176u8, + 46u8, ], ) } @@ -29058,7 +27314,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::bool, + alias_types::bypass_consistency_check::BypassConsistencyCheck, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -29087,6 +27343,9 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod alias_types { + use super::runtime_types; + } pub mod types { use super::runtime_types; } @@ -29095,6 +27354,28 @@ pub mod api { } pub mod storage { use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod current_session_index { + use super::runtime_types; + pub type CurrentSessionIndex = ::core::primitive::u32; + } + pub mod active_validator_indices { + use super::runtime_types; + pub type ActiveValidatorIndices = + ::std::vec::Vec; + } + pub mod active_validator_keys { + use super::runtime_types; + pub type ActiveValidatorKeys = ::std::vec::Vec< + runtime_types::polkadot_primitives::v6::validator_app::Public, + >; + } + pub mod allowed_relay_parents { + use super::runtime_types; + pub type AllowedRelayParents = runtime_types :: polkadot_runtime_parachains :: shared :: AllowedRelayParentsTracker < :: subxt :: utils :: H256 , :: core :: primitive :: u32 > ; + } + } pub struct StorageApi; impl StorageApi { #[doc = " The current session index."] @@ -29102,7 +27383,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, + alias_types::current_session_index::CurrentSessionIndex, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -29125,7 +27406,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec, + alias_types::active_validator_indices::ActiveValidatorIndices, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -29141,13 +27422,13 @@ pub mod api { ], ) } - #[doc = " The parachain attestation keys of the validators actively participating in parachain consensus."] - #[doc = " This should be the same length as `ActiveValidatorIndices`."] + #[doc = " The parachain attestation keys of the validators actively participating in parachain"] + #[doc = " consensus. This should be the same length as `ActiveValidatorIndices`."] pub fn active_validator_keys( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec, + alias_types::active_validator_keys::ActiveValidatorKeys, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -29164,6 +27445,28 @@ pub mod api { ], ) } + #[doc = " All allowed relay-parents."] + pub fn allowed_relay_parents( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::allowed_relay_parents::AllowedRelayParents, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "ParasShared", + "AllowedRelayParents", + vec![], + [ + 12u8, 170u8, 241u8, 120u8, 39u8, 216u8, 90u8, 37u8, 119u8, 212u8, + 161u8, 90u8, 233u8, 124u8, 92u8, 43u8, 212u8, 206u8, 153u8, 103u8, + 156u8, 79u8, 74u8, 7u8, 60u8, 35u8, 86u8, 16u8, 0u8, 224u8, 202u8, + 61u8, + ], + ) + } } } } @@ -29178,6 +27481,9 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod alias_types { + use super::runtime_types; + } pub mod types { use super::runtime_types; } @@ -29200,10 +27506,10 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A candidate was backed. `[candidate, head_data]`"] pub struct CandidateBacked( - pub runtime_types::polkadot_primitives::v5::CandidateReceipt<::subxt::utils::H256>, - pub runtime_types::polkadot_parachain::primitives::HeadData, - pub runtime_types::polkadot_primitives::v5::CoreIndex, - pub runtime_types::polkadot_primitives::v5::GroupIndex, + pub runtime_types::polkadot_primitives::v6::CandidateReceipt<::subxt::utils::H256>, + pub runtime_types::polkadot_parachain_primitives::primitives::HeadData, + pub runtime_types::polkadot_primitives::v6::CoreIndex, + pub runtime_types::polkadot_primitives::v6::GroupIndex, ); impl ::subxt::events::StaticEvent for CandidateBacked { const PALLET: &'static str = "ParaInclusion"; @@ -29221,10 +27527,10 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A candidate was included. `[candidate, head_data]`"] pub struct CandidateIncluded( - pub runtime_types::polkadot_primitives::v5::CandidateReceipt<::subxt::utils::H256>, - pub runtime_types::polkadot_parachain::primitives::HeadData, - pub runtime_types::polkadot_primitives::v5::CoreIndex, - pub runtime_types::polkadot_primitives::v5::GroupIndex, + pub runtime_types::polkadot_primitives::v6::CandidateReceipt<::subxt::utils::H256>, + pub runtime_types::polkadot_parachain_primitives::primitives::HeadData, + pub runtime_types::polkadot_primitives::v6::CoreIndex, + pub runtime_types::polkadot_primitives::v6::GroupIndex, ); impl ::subxt::events::StaticEvent for CandidateIncluded { const PALLET: &'static str = "ParaInclusion"; @@ -29242,9 +27548,9 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A candidate timed out. `[candidate, head_data]`"] pub struct CandidateTimedOut( - pub runtime_types::polkadot_primitives::v5::CandidateReceipt<::subxt::utils::H256>, - pub runtime_types::polkadot_parachain::primitives::HeadData, - pub runtime_types::polkadot_primitives::v5::CoreIndex, + pub runtime_types::polkadot_primitives::v6::CandidateReceipt<::subxt::utils::H256>, + pub runtime_types::polkadot_parachain_primitives::primitives::HeadData, + pub runtime_types::polkadot_primitives::v6::CoreIndex, ); impl ::subxt::events::StaticEvent for CandidateTimedOut { const PALLET: &'static str = "ParaInclusion"; @@ -29262,7 +27568,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some upward messages have been received and will be processed."] pub struct UpwardMessagesReceived { - pub from: runtime_types::polkadot_parachain::primitives::Id, + pub from: runtime_types::polkadot_parachain_primitives::primitives::Id, pub count: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for UpwardMessagesReceived { @@ -29272,9 +27578,36 @@ pub mod api { } pub mod storage { use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod availability_bitfields { + use super::runtime_types; + pub type AvailabilityBitfields = runtime_types :: polkadot_runtime_parachains :: inclusion :: AvailabilityBitfieldRecord < :: core :: primitive :: u32 > ; + } + pub mod pending_availability { + use super::runtime_types; + pub type PendingAvailability = runtime_types :: polkadot_runtime_parachains :: inclusion :: CandidatePendingAvailability < :: subxt :: utils :: H256 , :: core :: primitive :: u32 > ; + } + pub mod pending_availability_commitments { + use super::runtime_types; + pub type PendingAvailabilityCommitments = + runtime_types::polkadot_primitives::v6::CandidateCommitments< + ::core::primitive::u32, + >; + } + } pub struct StorageApi; impl StorageApi { - #[doc = " The latest bitfield for each validator, referred to by their index in the validator set."] pub fn availability_bitfields_iter (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: polkadot_runtime_parachains :: inclusion :: AvailabilityBitfieldRecord < :: core :: primitive :: u32 > , () , () , :: subxt :: storage :: address :: Yes >{ + #[doc = " The latest bitfield for each validator, referred to by their index in the validator set."] + pub fn availability_bitfields_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::availability_bitfields::AvailabilityBitfields, + (), + (), + ::subxt::storage::address::Yes, + > { ::subxt::storage::address::Address::new_static( "ParaInclusion", "AvailabilityBitfields", @@ -29286,7 +27619,19 @@ pub mod api { ], ) } - #[doc = " The latest bitfield for each validator, referred to by their index in the validator set."] pub fn availability_bitfields (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: polkadot_primitives :: v5 :: ValidatorIndex > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: polkadot_runtime_parachains :: inclusion :: AvailabilityBitfieldRecord < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , () >{ + #[doc = " The latest bitfield for each validator, referred to by their index in the validator set."] + pub fn availability_bitfields( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::polkadot_primitives::v6::ValidatorIndex, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::availability_bitfields::AvailabilityBitfields, + ::subxt::storage::address::Yes, + (), + (), + > { ::subxt::storage::address::Address::new_static( "ParaInclusion", "AvailabilityBitfields", @@ -29300,7 +27645,16 @@ pub mod api { ], ) } - #[doc = " Candidates pending availability by `ParaId`."] pub fn pending_availability_iter (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: polkadot_runtime_parachains :: inclusion :: CandidatePendingAvailability < :: subxt :: utils :: H256 , :: core :: primitive :: u32 > , () , () , :: subxt :: storage :: address :: Yes >{ + #[doc = " Candidates pending availability by `ParaId`."] + pub fn pending_availability_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::pending_availability::PendingAvailability, + (), + (), + ::subxt::storage::address::Yes, + > { ::subxt::storage::address::Address::new_static( "ParaInclusion", "PendingAvailability", @@ -29312,7 +27666,19 @@ pub mod api { ], ) } - #[doc = " Candidates pending availability by `ParaId`."] pub fn pending_availability (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: polkadot_parachain :: primitives :: Id > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: polkadot_runtime_parachains :: inclusion :: CandidatePendingAvailability < :: subxt :: utils :: H256 , :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , () >{ + #[doc = " Candidates pending availability by `ParaId`."] + pub fn pending_availability( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::polkadot_parachain_primitives::primitives::Id, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::pending_availability::PendingAvailability, + ::subxt::storage::address::Yes, + (), + (), + > { ::subxt::storage::address::Address::new_static( "ParaInclusion", "PendingAvailability", @@ -29331,9 +27697,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_primitives::v5::CandidateCommitments< - ::core::primitive::u32, - >, + alias_types::pending_availability_commitments::PendingAvailabilityCommitments, (), (), ::subxt::storage::address::Yes, @@ -29352,12 +27716,12 @@ pub mod api { #[doc = " The commitments of candidates pending availability, by `ParaId`."] pub fn pending_availability_commitments( &self, - _0: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow< + runtime_types::polkadot_parachain_primitives::primitives::Id, + >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_primitives::v5::CandidateCommitments< - ::core::primitive::u32, - >, + alias_types::pending_availability_commitments::PendingAvailabilityCommitments, ::subxt::storage::address::Yes, (), (), @@ -29389,6 +27753,15 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod alias_types { + use super::runtime_types; + pub mod enter { + use super::runtime_types; + pub type Data = runtime_types::polkadot_primitives::v6::InherentData< + runtime_types::sp_runtime::generic::header::Header<::core::primitive::u32>, + >; + } + } pub mod types { use super::runtime_types; #[derive( @@ -29402,11 +27775,8 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Enter { - pub data: runtime_types::polkadot_primitives::v5::InherentData< - runtime_types::sp_runtime::generic::header::Header< - ::core::primitive::u32, - runtime_types::sp_runtime::traits::BlakeTwo256, - >, + pub data: runtime_types::polkadot_primitives::v6::InherentData< + runtime_types::sp_runtime::generic::header::Header<::core::primitive::u32>, >, } impl ::subxt::blocks::StaticExtrinsic for Enter { @@ -29419,12 +27789,7 @@ pub mod api { #[doc = "See [`Pallet::enter`]."] pub fn enter( &self, - data: runtime_types::polkadot_primitives::v5::InherentData< - runtime_types::sp_runtime::generic::header::Header< - ::core::primitive::u32, - runtime_types::sp_runtime::traits::BlakeTwo256, - >, - >, + data: alias_types::enter::Data, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ParaInherent", @@ -29441,6 +27806,20 @@ pub mod api { } pub mod storage { use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod included { + use super::runtime_types; + pub type Included = (); + } + pub mod on_chain_votes { + use super::runtime_types; + pub type OnChainVotes = + runtime_types::polkadot_primitives::v6::ScrapedOnChainVotes< + ::subxt::utils::H256, + >; + } + } pub struct StorageApi; impl StorageApi { #[doc = " Whether the paras inherent was included within this block."] @@ -29453,7 +27832,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - (), + alias_types::included::Included, ::subxt::storage::address::Yes, (), (), @@ -29474,9 +27853,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_primitives::v5::ScrapedOnChainVotes< - ::subxt::utils::H256, - >, + alias_types::on_chain_votes::OnChainVotes, ::subxt::storage::address::Yes, (), (), @@ -29501,21 +27878,45 @@ pub mod api { use super::runtime_types; pub mod storage { use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod validator_groups { + use super::runtime_types; + pub type ValidatorGroups = ::std::vec::Vec< + ::std::vec::Vec, + >; + } + pub mod availability_cores { + use super::runtime_types; + pub type AvailabilityCores = ::std::vec::Vec< + runtime_types::polkadot_runtime_parachains::scheduler::pallet::CoreOccupied< + ::core::primitive::u32, + >, + >; + } + pub mod session_start_block { + use super::runtime_types; + pub type SessionStartBlock = ::core::primitive::u32; + } + pub mod claim_queue { + use super::runtime_types; + pub type ClaimQueue = :: subxt :: utils :: KeyedVec < runtime_types :: polkadot_primitives :: v6 :: CoreIndex , :: std :: vec :: Vec < :: core :: option :: Option < runtime_types :: polkadot_runtime_parachains :: scheduler :: pallet :: ParasEntry < :: core :: primitive :: u32 > > > > ; + } + } pub struct StorageApi; impl StorageApi { #[doc = " All the validator groups. One for each core. Indices are into `ActiveValidators` - not the"] #[doc = " broader set of Polkadot validators, but instead just the subset used for parachains during"] #[doc = " this session."] #[doc = ""] - #[doc = " Bound: The number of cores is the sum of the numbers of parachains and parathread multiplexers."] - #[doc = " Reasonably, 100-1000. The dominant factor is the number of validators: safe upper bound at 10k."] + #[doc = " Bound: The number of cores is the sum of the numbers of parachains and parathread"] + #[doc = " multiplexers. Reasonably, 100-1000. The dominant factor is the number of validators: safe"] + #[doc = " upper bound at 10k."] pub fn validator_groups( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec< - ::std::vec::Vec, - >, + alias_types::validator_groups::ValidatorGroups, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -29531,32 +27932,8 @@ pub mod api { ], ) } - #[doc = " A queue of upcoming claims and which core they should be mapped onto."] - #[doc = ""] - #[doc = " The number of queued claims is bounded at the `scheduling_lookahead`"] - #[doc = " multiplied by the number of parathread multiplexer cores. Reasonably, 10 * 50 = 500."] - pub fn parathread_queue( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_runtime_parachains::scheduler::ParathreadClaimQueue, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "ParaScheduler", - "ParathreadQueue", - vec![], - [ - 66u8, 237u8, 244u8, 120u8, 58u8, 185u8, 225u8, 198u8, 83u8, 7u8, 254u8, - 95u8, 104u8, 128u8, 105u8, 225u8, 117u8, 35u8, 231u8, 64u8, 46u8, - 169u8, 9u8, 35u8, 89u8, 199u8, 239u8, 51u8, 165u8, 115u8, 226u8, 60u8, - ], - ) - } - #[doc = " One entry for each availability core. Entries are `None` if the core is not currently occupied. Can be"] - #[doc = " temporarily `Some` if scheduled but not occupied."] + #[doc = " One entry for each availability core. Entries are `None` if the core is not currently"] + #[doc = " occupied. Can be temporarily `Some` if scheduled but not occupied."] #[doc = " The i'th parachain belongs to the i'th core, with the remaining cores all being"] #[doc = " parathread-multiplexers."] #[doc = ""] @@ -29567,11 +27944,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec< - ::core::option::Option< - runtime_types::polkadot_primitives::v5::CoreOccupied, - >, - >, + alias_types::availability_cores::AvailabilityCores, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -29581,39 +27954,14 @@ pub mod api { "AvailabilityCores", vec![], [ - 22u8, 238u8, 81u8, 4u8, 74u8, 143u8, 125u8, 245u8, 54u8, 117u8, 128u8, - 142u8, 214u8, 162u8, 106u8, 86u8, 151u8, 45u8, 33u8, 153u8, 164u8, - 182u8, 223u8, 19u8, 44u8, 211u8, 206u8, 95u8, 249u8, 36u8, 188u8, - 129u8, - ], - ) - } - #[doc = " An index used to ensure that only one claim on a parathread exists in the queue or is"] - #[doc = " currently being handled by an occupied core."] - #[doc = ""] - #[doc = " Bounded by the number of parathread cores and scheduling lookahead. Reasonably, 10 * 50 = 500."] - pub fn parathread_claim_index( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "ParaScheduler", - "ParathreadClaimIndex", - vec![], - [ - 40u8, 118u8, 124u8, 168u8, 174u8, 131u8, 61u8, 35u8, 175u8, 100u8, - 69u8, 184u8, 191u8, 17u8, 151u8, 219u8, 81u8, 160u8, 199u8, 33u8, - 227u8, 20u8, 48u8, 90u8, 61u8, 157u8, 136u8, 60u8, 25u8, 45u8, 81u8, - 208u8, + 134u8, 59u8, 206u8, 4u8, 69u8, 72u8, 73u8, 25u8, 139u8, 152u8, 202u8, + 43u8, 224u8, 77u8, 64u8, 57u8, 218u8, 245u8, 254u8, 222u8, 227u8, 95u8, + 119u8, 134u8, 218u8, 47u8, 154u8, 233u8, 229u8, 172u8, 100u8, 86u8, ], ) } - #[doc = " The block number where the session start occurred. Used to track how many group rotations have occurred."] + #[doc = " The block number where the session start occurred. Used to track how many group rotations"] + #[doc = " have occurred."] #[doc = ""] #[doc = " Note that in the context of parachains modules the session change is signaled during"] #[doc = " the block and enacted at the end of the block (at the finalization stage, to be exact)."] @@ -29623,7 +27971,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, + alias_types::session_start_block::SessionStartBlock, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -29639,31 +27987,28 @@ pub mod api { ], ) } - #[doc = " Currently scheduled cores - free but up to be occupied."] - #[doc = ""] - #[doc = " Bounded by the number of cores: one for each parachain and parathread multiplexer."] - #[doc = ""] - #[doc = " The value contained here will not be valid after the end of a block. Runtime APIs should be used to determine scheduled cores/"] - #[doc = " for the upcoming block."] - pub fn scheduled( + #[doc = " One entry for each availability core. The `VecDeque` represents the assignments to be"] + #[doc = " scheduled on that core. `None` is used to signal to not schedule the next para of the core"] + #[doc = " as there is one currently being scheduled. Not using `None` here would overwrite the"] + #[doc = " `CoreState` in the runtime API. The value contained here will not be valid after the end of"] + #[doc = " a block. Runtime APIs should be used to determine scheduled cores/ for the upcoming block."] + pub fn claim_queue( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec< - runtime_types::polkadot_runtime_parachains::scheduler::CoreAssignment, - >, + alias_types::claim_queue::ClaimQueue, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "ParaScheduler", - "Scheduled", + "ClaimQueue", vec![], [ - 180u8, 21u8, 56u8, 68u8, 56u8, 82u8, 50u8, 7u8, 71u8, 167u8, 6u8, 2u8, - 235u8, 39u8, 78u8, 23u8, 173u8, 129u8, 112u8, 131u8, 35u8, 147u8, 80u8, - 173u8, 47u8, 108u8, 170u8, 247u8, 213u8, 71u8, 247u8, 151u8, + 132u8, 78u8, 109u8, 225u8, 170u8, 78u8, 17u8, 53u8, 56u8, 218u8, 14u8, + 17u8, 230u8, 247u8, 11u8, 223u8, 18u8, 98u8, 92u8, 164u8, 223u8, 143u8, + 241u8, 64u8, 185u8, 108u8, 228u8, 137u8, 122u8, 100u8, 29u8, 239u8, ], ) } @@ -29681,6 +28026,58 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod alias_types { + use super::runtime_types; + pub mod force_set_current_code { + use super::runtime_types; + pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type NewCode = + runtime_types::polkadot_parachain_primitives::primitives::ValidationCode; + } + pub mod force_set_current_head { + use super::runtime_types; + pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type NewHead = + runtime_types::polkadot_parachain_primitives::primitives::HeadData; + } + pub mod force_schedule_code_upgrade { + use super::runtime_types; + pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type NewCode = + runtime_types::polkadot_parachain_primitives::primitives::ValidationCode; + pub type RelayParentNumber = ::core::primitive::u32; + } + pub mod force_note_new_head { + use super::runtime_types; + pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type NewHead = + runtime_types::polkadot_parachain_primitives::primitives::HeadData; + } + pub mod force_queue_action { + use super::runtime_types; + pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; + } + pub mod add_trusted_validation_code { + use super::runtime_types; + pub type ValidationCode = + runtime_types::polkadot_parachain_primitives::primitives::ValidationCode; + } + pub mod poke_unused_validation_code { + use super::runtime_types; + pub type ValidationCodeHash = runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash ; + } + pub mod include_pvf_check_statement { + use super::runtime_types; + pub type Stmt = runtime_types::polkadot_primitives::v6::PvfCheckStatement; + pub type Signature = + runtime_types::polkadot_primitives::v6::validator_app::Signature; + } + pub mod force_set_most_recent_context { + use super::runtime_types; + pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Context = ::core::primitive::u32; + } + } pub mod types { use super::runtime_types; #[derive( @@ -29694,8 +28091,9 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceSetCurrentCode { - pub para: runtime_types::polkadot_parachain::primitives::Id, - pub new_code: runtime_types::polkadot_parachain::primitives::ValidationCode, + pub para: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub new_code: + runtime_types::polkadot_parachain_primitives::primitives::ValidationCode, } impl ::subxt::blocks::StaticExtrinsic for ForceSetCurrentCode { const PALLET: &'static str = "Paras"; @@ -29712,8 +28110,9 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceSetCurrentHead { - pub para: runtime_types::polkadot_parachain::primitives::Id, - pub new_head: runtime_types::polkadot_parachain::primitives::HeadData, + pub para: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub new_head: + runtime_types::polkadot_parachain_primitives::primitives::HeadData, } impl ::subxt::blocks::StaticExtrinsic for ForceSetCurrentHead { const PALLET: &'static str = "Paras"; @@ -29730,8 +28129,9 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceScheduleCodeUpgrade { - pub para: runtime_types::polkadot_parachain::primitives::Id, - pub new_code: runtime_types::polkadot_parachain::primitives::ValidationCode, + pub para: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub new_code: + runtime_types::polkadot_parachain_primitives::primitives::ValidationCode, pub relay_parent_number: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for ForceScheduleCodeUpgrade { @@ -29749,8 +28149,9 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceNoteNewHead { - pub para: runtime_types::polkadot_parachain::primitives::Id, - pub new_head: runtime_types::polkadot_parachain::primitives::HeadData, + pub para: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub new_head: + runtime_types::polkadot_parachain_primitives::primitives::HeadData, } impl ::subxt::blocks::StaticExtrinsic for ForceNoteNewHead { const PALLET: &'static str = "Paras"; @@ -29767,7 +28168,7 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceQueueAction { - pub para: runtime_types::polkadot_parachain::primitives::Id, + pub para: runtime_types::polkadot_parachain_primitives::primitives::Id, } impl ::subxt::blocks::StaticExtrinsic for ForceQueueAction { const PALLET: &'static str = "Paras"; @@ -29785,7 +28186,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AddTrustedValidationCode { pub validation_code: - runtime_types::polkadot_parachain::primitives::ValidationCode, + runtime_types::polkadot_parachain_primitives::primitives::ValidationCode, } impl ::subxt::blocks::StaticExtrinsic for AddTrustedValidationCode { const PALLET: &'static str = "Paras"; @@ -29801,10 +28202,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct PokeUnusedValidationCode { - pub validation_code_hash: - runtime_types::polkadot_parachain::primitives::ValidationCodeHash, - } + pub struct PokeUnusedValidationCode { pub validation_code_hash : runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash , } impl ::subxt::blocks::StaticExtrinsic for PokeUnusedValidationCode { const PALLET: &'static str = "Paras"; const CALL: &'static str = "poke_unused_validation_code"; @@ -29820,21 +28218,39 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct IncludePvfCheckStatement { - pub stmt: runtime_types::polkadot_primitives::v5::PvfCheckStatement, - pub signature: runtime_types::polkadot_primitives::v5::validator_app::Signature, + pub stmt: runtime_types::polkadot_primitives::v6::PvfCheckStatement, + pub signature: runtime_types::polkadot_primitives::v6::validator_app::Signature, } impl ::subxt::blocks::StaticExtrinsic for IncludePvfCheckStatement { const PALLET: &'static str = "Paras"; const CALL: &'static str = "include_pvf_check_statement"; } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ForceSetMostRecentContext { + pub para: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub context: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for ForceSetMostRecentContext { + const PALLET: &'static str = "Paras"; + const CALL: &'static str = "force_set_most_recent_context"; + } } pub struct TransactionApi; impl TransactionApi { #[doc = "See [`Pallet::force_set_current_code`]."] pub fn force_set_current_code( &self, - para: runtime_types::polkadot_parachain::primitives::Id, - new_code: runtime_types::polkadot_parachain::primitives::ValidationCode, + para: alias_types::force_set_current_code::Para, + new_code: alias_types::force_set_current_code::NewCode, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Paras", @@ -29851,8 +28267,8 @@ pub mod api { #[doc = "See [`Pallet::force_set_current_head`]."] pub fn force_set_current_head( &self, - para: runtime_types::polkadot_parachain::primitives::Id, - new_head: runtime_types::polkadot_parachain::primitives::HeadData, + para: alias_types::force_set_current_head::Para, + new_head: alias_types::force_set_current_head::NewHead, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Paras", @@ -29869,9 +28285,9 @@ pub mod api { #[doc = "See [`Pallet::force_schedule_code_upgrade`]."] pub fn force_schedule_code_upgrade( &self, - para: runtime_types::polkadot_parachain::primitives::Id, - new_code: runtime_types::polkadot_parachain::primitives::ValidationCode, - relay_parent_number: ::core::primitive::u32, + para: alias_types::force_schedule_code_upgrade::Para, + new_code: alias_types::force_schedule_code_upgrade::NewCode, + relay_parent_number : alias_types :: force_schedule_code_upgrade :: RelayParentNumber, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Paras", @@ -29892,8 +28308,8 @@ pub mod api { #[doc = "See [`Pallet::force_note_new_head`]."] pub fn force_note_new_head( &self, - para: runtime_types::polkadot_parachain::primitives::Id, - new_head: runtime_types::polkadot_parachain::primitives::HeadData, + para: alias_types::force_note_new_head::Para, + new_head: alias_types::force_note_new_head::NewHead, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Paras", @@ -29909,7 +28325,7 @@ pub mod api { #[doc = "See [`Pallet::force_queue_action`]."] pub fn force_queue_action( &self, - para: runtime_types::polkadot_parachain::primitives::Id, + para: alias_types::force_queue_action::Para, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Paras", @@ -29926,7 +28342,7 @@ pub mod api { #[doc = "See [`Pallet::add_trusted_validation_code`]."] pub fn add_trusted_validation_code( &self, - validation_code: runtime_types::polkadot_parachain::primitives::ValidationCode, + validation_code: alias_types::add_trusted_validation_code::ValidationCode, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Paras", @@ -29943,7 +28359,7 @@ pub mod api { #[doc = "See [`Pallet::poke_unused_validation_code`]."] pub fn poke_unused_validation_code( &self, - validation_code_hash : runtime_types :: polkadot_parachain :: primitives :: ValidationCodeHash, + validation_code_hash : alias_types :: poke_unused_validation_code :: ValidationCodeHash, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Paras", @@ -29961,8 +28377,8 @@ pub mod api { #[doc = "See [`Pallet::include_pvf_check_statement`]."] pub fn include_pvf_check_statement( &self, - stmt: runtime_types::polkadot_primitives::v5::PvfCheckStatement, - signature: runtime_types::polkadot_primitives::v5::validator_app::Signature, + stmt: alias_types::include_pvf_check_statement::Stmt, + signature: alias_types::include_pvf_check_statement::Signature, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Paras", @@ -29976,6 +28392,23 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::force_set_most_recent_context`]."] + pub fn force_set_most_recent_context( + &self, + para: alias_types::force_set_most_recent_context::Para, + context: alias_types::force_set_most_recent_context::Context, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Paras", + "force_set_most_recent_context", + types::ForceSetMostRecentContext { para, context }, + [ + 243u8, 17u8, 20u8, 229u8, 91u8, 87u8, 42u8, 159u8, 119u8, 61u8, 201u8, + 246u8, 79u8, 151u8, 209u8, 183u8, 35u8, 31u8, 2u8, 210u8, 187u8, 105u8, + 66u8, 106u8, 119u8, 241u8, 63u8, 63u8, 233u8, 68u8, 244u8, 137u8, + ], + ) + } } } #[doc = "The `Event` enum of this pallet"] @@ -29993,7 +28426,9 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Current code has been updated for a Para. `para_id`"] - pub struct CurrentCodeUpdated(pub runtime_types::polkadot_parachain::primitives::Id); + pub struct CurrentCodeUpdated( + pub runtime_types::polkadot_parachain_primitives::primitives::Id, + ); impl ::subxt::events::StaticEvent for CurrentCodeUpdated { const PALLET: &'static str = "Paras"; const EVENT: &'static str = "CurrentCodeUpdated"; @@ -30009,7 +28444,9 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Current head has been updated for a Para. `para_id`"] - pub struct CurrentHeadUpdated(pub runtime_types::polkadot_parachain::primitives::Id); + pub struct CurrentHeadUpdated( + pub runtime_types::polkadot_parachain_primitives::primitives::Id, + ); impl ::subxt::events::StaticEvent for CurrentHeadUpdated { const PALLET: &'static str = "Paras"; const EVENT: &'static str = "CurrentHeadUpdated"; @@ -30025,7 +28462,9 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A code upgrade has been scheduled for a Para. `para_id`"] - pub struct CodeUpgradeScheduled(pub runtime_types::polkadot_parachain::primitives::Id); + pub struct CodeUpgradeScheduled( + pub runtime_types::polkadot_parachain_primitives::primitives::Id, + ); impl ::subxt::events::StaticEvent for CodeUpgradeScheduled { const PALLET: &'static str = "Paras"; const EVENT: &'static str = "CodeUpgradeScheduled"; @@ -30041,7 +28480,9 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A new head has been noted for a Para. `para_id`"] - pub struct NewHeadNoted(pub runtime_types::polkadot_parachain::primitives::Id); + pub struct NewHeadNoted( + pub runtime_types::polkadot_parachain_primitives::primitives::Id, + ); impl ::subxt::events::StaticEvent for NewHeadNoted { const PALLET: &'static str = "Paras"; const EVENT: &'static str = "NewHeadNoted"; @@ -30058,7 +28499,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A para has been queued to execute pending actions. `para_id`"] pub struct ActionQueued( - pub runtime_types::polkadot_parachain::primitives::Id, + pub runtime_types::polkadot_parachain_primitives::primitives::Id, pub ::core::primitive::u32, ); impl ::subxt::events::StaticEvent for ActionQueued { @@ -30078,8 +28519,8 @@ pub mod api { #[doc = "The given para either initiated or subscribed to a PVF check for the given validation"] #[doc = "code. `code_hash` `para_id`"] pub struct PvfCheckStarted( - pub runtime_types::polkadot_parachain::primitives::ValidationCodeHash, - pub runtime_types::polkadot_parachain::primitives::Id, + pub runtime_types::polkadot_parachain_primitives::primitives::ValidationCodeHash, + pub runtime_types::polkadot_parachain_primitives::primitives::Id, ); impl ::subxt::events::StaticEvent for PvfCheckStarted { const PALLET: &'static str = "Paras"; @@ -30098,8 +28539,8 @@ pub mod api { #[doc = "The given validation code was accepted by the PVF pre-checking vote."] #[doc = "`code_hash` `para_id`"] pub struct PvfCheckAccepted( - pub runtime_types::polkadot_parachain::primitives::ValidationCodeHash, - pub runtime_types::polkadot_parachain::primitives::Id, + pub runtime_types::polkadot_parachain_primitives::primitives::ValidationCodeHash, + pub runtime_types::polkadot_parachain_primitives::primitives::Id, ); impl ::subxt::events::StaticEvent for PvfCheckAccepted { const PALLET: &'static str = "Paras"; @@ -30118,8 +28559,8 @@ pub mod api { #[doc = "The given validation code was rejected by the PVF pre-checking vote."] #[doc = "`code_hash` `para_id`"] pub struct PvfCheckRejected( - pub runtime_types::polkadot_parachain::primitives::ValidationCodeHash, - pub runtime_types::polkadot_parachain::primitives::Id, + pub runtime_types::polkadot_parachain_primitives::primitives::ValidationCodeHash, + pub runtime_types::polkadot_parachain_primitives::primitives::Id, ); impl ::subxt::events::StaticEvent for PvfCheckRejected { const PALLET: &'static str = "Paras"; @@ -30128,6 +28569,114 @@ pub mod api { } pub mod storage { use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod pvf_active_vote_map { + use super::runtime_types; + pub type PvfActiveVoteMap = + runtime_types::polkadot_runtime_parachains::paras::PvfCheckActiveVoteState< + ::core::primitive::u32, + >; + } + pub mod pvf_active_vote_list { + use super::runtime_types; + pub type PvfActiveVoteList = :: std :: vec :: Vec < runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash > ; + } + pub mod parachains { + use super::runtime_types; + pub type Parachains = ::std::vec::Vec< + runtime_types::polkadot_parachain_primitives::primitives::Id, + >; + } + pub mod para_lifecycles { + use super::runtime_types; + pub type ParaLifecycles = + runtime_types::polkadot_runtime_parachains::paras::ParaLifecycle; + } + pub mod heads { + use super::runtime_types; + pub type Heads = + runtime_types::polkadot_parachain_primitives::primitives::HeadData; + } + pub mod most_recent_context { + use super::runtime_types; + pub type MostRecentContext = ::core::primitive::u32; + } + pub mod current_code_hash { + use super::runtime_types; + pub type CurrentCodeHash = runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash ; + } + pub mod past_code_hash { + use super::runtime_types; + pub type PastCodeHash = runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash ; + } + pub mod past_code_meta { + use super::runtime_types; + pub type PastCodeMeta = + runtime_types::polkadot_runtime_parachains::paras::ParaPastCodeMeta< + ::core::primitive::u32, + >; + } + pub mod past_code_pruning { + use super::runtime_types; + pub type PastCodePruning = ::std::vec::Vec<( + runtime_types::polkadot_parachain_primitives::primitives::Id, + ::core::primitive::u32, + )>; + } + pub mod future_code_upgrades { + use super::runtime_types; + pub type FutureCodeUpgrades = ::core::primitive::u32; + } + pub mod future_code_hash { + use super::runtime_types; + pub type FutureCodeHash = runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash ; + } + pub mod upgrade_go_ahead_signal { + use super::runtime_types; + pub type UpgradeGoAheadSignal = + runtime_types::polkadot_primitives::v6::UpgradeGoAhead; + } + pub mod upgrade_restriction_signal { + use super::runtime_types; + pub type UpgradeRestrictionSignal = + runtime_types::polkadot_primitives::v6::UpgradeRestriction; + } + pub mod upgrade_cooldowns { + use super::runtime_types; + pub type UpgradeCooldowns = ::std::vec::Vec<( + runtime_types::polkadot_parachain_primitives::primitives::Id, + ::core::primitive::u32, + )>; + } + pub mod upcoming_upgrades { + use super::runtime_types; + pub type UpcomingUpgrades = ::std::vec::Vec<( + runtime_types::polkadot_parachain_primitives::primitives::Id, + ::core::primitive::u32, + )>; + } + pub mod actions_queue { + use super::runtime_types; + pub type ActionsQueue = ::std::vec::Vec< + runtime_types::polkadot_parachain_primitives::primitives::Id, + >; + } + pub mod upcoming_paras_genesis { + use super::runtime_types; + pub type UpcomingParasGenesis = + runtime_types::polkadot_runtime_parachains::paras::ParaGenesisArgs; + } + pub mod code_by_hash_refs { + use super::runtime_types; + pub type CodeByHashRefs = ::core::primitive::u32; + } + pub mod code_by_hash { + use super::runtime_types; + pub type CodeByHash = + runtime_types::polkadot_parachain_primitives::primitives::ValidationCode; + } + } pub struct StorageApi; impl StorageApi { #[doc = " All currently active PVF pre-checking votes."] @@ -30138,9 +28687,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_runtime_parachains::paras::PvfCheckActiveVoteState< - ::core::primitive::u32, - >, + alias_types::pvf_active_vote_map::PvfActiveVoteMap, (), (), ::subxt::storage::address::Yes, @@ -30150,10 +28697,9 @@ pub mod api { "PvfActiveVoteMap", vec![], [ - 216u8, 212u8, 234u8, 214u8, 209u8, 164u8, 99u8, 74u8, 18u8, 189u8, - 61u8, 178u8, 189u8, 246u8, 208u8, 50u8, 53u8, 183u8, 200u8, 146u8, - 19u8, 120u8, 209u8, 118u8, 129u8, 115u8, 248u8, 7u8, 188u8, 78u8, - 186u8, 181u8, + 72u8, 55u8, 139u8, 104u8, 161u8, 63u8, 114u8, 153u8, 16u8, 221u8, 60u8, + 88u8, 52u8, 207u8, 123u8, 193u8, 11u8, 30u8, 19u8, 39u8, 231u8, 39u8, + 251u8, 44u8, 248u8, 129u8, 181u8, 173u8, 248u8, 89u8, 43u8, 106u8, ], ) } @@ -30163,14 +28709,10 @@ pub mod api { #[doc = " - There are no PVF pre-checking votes that exists in list but not in the set and vice versa."] pub fn pvf_active_vote_map( &self, - _0: impl ::std::borrow::Borrow< - runtime_types::polkadot_parachain::primitives::ValidationCodeHash, - >, + _0 : impl :: std :: borrow :: Borrow < runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_runtime_parachains::paras::PvfCheckActiveVoteState< - ::core::primitive::u32, - >, + alias_types::pvf_active_vote_map::PvfActiveVoteMap, ::subxt::storage::address::Yes, (), (), @@ -30182,10 +28724,9 @@ pub mod api { _0.borrow(), )], [ - 216u8, 212u8, 234u8, 214u8, 209u8, 164u8, 99u8, 74u8, 18u8, 189u8, - 61u8, 178u8, 189u8, 246u8, 208u8, 50u8, 53u8, 183u8, 200u8, 146u8, - 19u8, 120u8, 209u8, 118u8, 129u8, 115u8, 248u8, 7u8, 188u8, 78u8, - 186u8, 181u8, + 72u8, 55u8, 139u8, 104u8, 161u8, 63u8, 114u8, 153u8, 16u8, 221u8, 60u8, + 88u8, 52u8, 207u8, 123u8, 193u8, 11u8, 30u8, 19u8, 39u8, 231u8, 39u8, + 251u8, 44u8, 248u8, 129u8, 181u8, 173u8, 248u8, 89u8, 43u8, 106u8, ], ) } @@ -30194,9 +28735,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec< - runtime_types::polkadot_parachain::primitives::ValidationCodeHash, - >, + alias_types::pvf_active_vote_list::PvfActiveVoteList, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -30212,14 +28751,15 @@ pub mod api { ], ) } - #[doc = " All parachains. Ordered ascending by `ParaId`. Parathreads are not included."] + #[doc = " All lease holding parachains. Ordered ascending by `ParaId`. On demand parachains are not"] + #[doc = " included."] #[doc = ""] #[doc = " Consider using the [`ParachainsCache`] type of modifying."] pub fn parachains( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec, + alias_types::parachains::Parachains, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -30241,7 +28781,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_runtime_parachains::paras::ParaLifecycle, + alias_types::para_lifecycles::ParaLifecycles, (), (), ::subxt::storage::address::Yes, @@ -30261,10 +28801,12 @@ pub mod api { #[doc = " The current lifecycle of a all known Para IDs."] pub fn para_lifecycles( &self, - _0: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow< + runtime_types::polkadot_parachain_primitives::primitives::Id, + >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_runtime_parachains::paras::ParaLifecycle, + alias_types::para_lifecycles::ParaLifecycles, ::subxt::storage::address::Yes, (), (), @@ -30288,7 +28830,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_parachain::primitives::HeadData, + alias_types::heads::Heads, (), (), ::subxt::storage::address::Yes, @@ -30307,10 +28849,12 @@ pub mod api { #[doc = " The head-data of every registered para."] pub fn heads( &self, - _0: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow< + runtime_types::polkadot_parachain_primitives::primitives::Id, + >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_parachain::primitives::HeadData, + alias_types::heads::Heads, ::subxt::storage::address::Yes, (), (), @@ -30328,6 +28872,53 @@ pub mod api { ], ) } + #[doc = " The context (relay-chain block number) of the most recent parachain head."] + pub fn most_recent_context_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::most_recent_context::MostRecentContext, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Paras", + "MostRecentContext", + vec![], + [ + 196u8, 150u8, 125u8, 121u8, 196u8, 182u8, 2u8, 5u8, 244u8, 170u8, 75u8, + 57u8, 162u8, 8u8, 104u8, 94u8, 114u8, 32u8, 192u8, 236u8, 120u8, 91u8, + 84u8, 118u8, 216u8, 143u8, 61u8, 208u8, 57u8, 180u8, 216u8, 243u8, + ], + ) + } + #[doc = " The context (relay-chain block number) of the most recent parachain head."] + pub fn most_recent_context( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::polkadot_parachain_primitives::primitives::Id, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::most_recent_context::MostRecentContext, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Paras", + "MostRecentContext", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 196u8, 150u8, 125u8, 121u8, 196u8, 182u8, 2u8, 5u8, 244u8, 170u8, 75u8, + 57u8, 162u8, 8u8, 104u8, 94u8, 114u8, 32u8, 192u8, 236u8, 120u8, 91u8, + 84u8, 118u8, 216u8, 143u8, 61u8, 208u8, 57u8, 180u8, 216u8, 243u8, + ], + ) + } #[doc = " The validation code hash of every live para."] #[doc = ""] #[doc = " Corresponding code can be retrieved with [`CodeByHash`]."] @@ -30335,7 +28926,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_parachain::primitives::ValidationCodeHash, + alias_types::current_code_hash::CurrentCodeHash, (), (), ::subxt::storage::address::Yes, @@ -30357,10 +28948,12 @@ pub mod api { #[doc = " Corresponding code can be retrieved with [`CodeByHash`]."] pub fn current_code_hash( &self, - _0: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow< + runtime_types::polkadot_parachain_primitives::primitives::Id, + >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_parachain::primitives::ValidationCodeHash, + alias_types::current_code_hash::CurrentCodeHash, ::subxt::storage::address::Yes, (), (), @@ -30387,7 +28980,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_parachain::primitives::ValidationCodeHash, + alias_types::past_code_hash::PastCodeHash, (), (), ::subxt::storage::address::Yes, @@ -30409,10 +29002,12 @@ pub mod api { #[doc = " Corresponding code can be retrieved with [`CodeByHash`]."] pub fn past_code_hash_iter1( &self, - _0: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow< + runtime_types::polkadot_parachain_primitives::primitives::Id, + >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_parachain::primitives::ValidationCodeHash, + alias_types::past_code_hash::PastCodeHash, (), (), ::subxt::storage::address::Yes, @@ -30436,11 +29031,13 @@ pub mod api { #[doc = " Corresponding code can be retrieved with [`CodeByHash`]."] pub fn past_code_hash( &self, - _0: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow< + runtime_types::polkadot_parachain_primitives::primitives::Id, + >, _1: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_parachain::primitives::ValidationCodeHash, + alias_types::past_code_hash::PastCodeHash, ::subxt::storage::address::Yes, (), (), @@ -30466,9 +29063,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_runtime_parachains::paras::ParaPastCodeMeta< - ::core::primitive::u32, - >, + alias_types::past_code_meta::PastCodeMeta, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -30489,12 +29084,12 @@ pub mod api { #[doc = " to keep it available for approval checkers."] pub fn past_code_meta( &self, - _0: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow< + runtime_types::polkadot_parachain_primitives::primitives::Id, + >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_runtime_parachains::paras::ParaPastCodeMeta< - ::core::primitive::u32, - >, + alias_types::past_code_meta::PastCodeMeta, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -30512,20 +29107,17 @@ pub mod api { ], ) } - #[doc = " Which paras have past code that needs pruning and the relay-chain block at which the code was replaced."] - #[doc = " Note that this is the actual height of the included block, not the expected height at which the"] - #[doc = " code upgrade would be applied, although they may be equal."] - #[doc = " This is to ensure the entire acceptance period is covered, not an offset acceptance period starting"] - #[doc = " from the time at which the parachain perceives a code upgrade as having occurred."] + #[doc = " Which paras have past code that needs pruning and the relay-chain block at which the code"] + #[doc = " was replaced. Note that this is the actual height of the included block, not the expected"] + #[doc = " height at which the code upgrade would be applied, although they may be equal."] + #[doc = " This is to ensure the entire acceptance period is covered, not an offset acceptance period"] + #[doc = " starting from the time at which the parachain perceives a code upgrade as having occurred."] #[doc = " Multiple entries for a single para are permitted. Ordered ascending by block number."] pub fn past_code_pruning( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<( - runtime_types::polkadot_parachain::primitives::Id, - ::core::primitive::u32, - )>, + alias_types::past_code_pruning::PastCodePruning, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -30548,7 +29140,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, + alias_types::future_code_upgrades::FutureCodeUpgrades, (), (), ::subxt::storage::address::Yes, @@ -30569,10 +29161,12 @@ pub mod api { #[doc = " in the context of a relay chain block with a number >= `expected_at`."] pub fn future_code_upgrades( &self, - _0: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow< + runtime_types::polkadot_parachain_primitives::primitives::Id, + >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, + alias_types::future_code_upgrades::FutureCodeUpgrades, ::subxt::storage::address::Yes, (), (), @@ -30597,7 +29191,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_parachain::primitives::ValidationCodeHash, + alias_types::future_code_hash::FutureCodeHash, (), (), ::subxt::storage::address::Yes, @@ -30618,10 +29212,12 @@ pub mod api { #[doc = " Corresponding code can be retrieved with [`CodeByHash`]."] pub fn future_code_hash( &self, - _0: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow< + runtime_types::polkadot_parachain_primitives::primitives::Id, + >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_parachain::primitives::ValidationCodeHash, + alias_types::future_code_hash::FutureCodeHash, ::subxt::storage::address::Yes, (), (), @@ -30639,12 +29235,13 @@ pub mod api { ], ) } - #[doc = " This is used by the relay-chain to communicate to a parachain a go-ahead with in the upgrade procedure."] + #[doc = " This is used by the relay-chain to communicate to a parachain a go-ahead with in the upgrade"] + #[doc = " procedure."] #[doc = ""] #[doc = " This value is absent when there are no upgrades scheduled or during the time the relay chain"] - #[doc = " performs the checks. It is set at the first relay-chain block when the corresponding parachain"] - #[doc = " can switch its upgrade function. As soon as the parachain's block is included, the value"] - #[doc = " gets reset to `None`."] + #[doc = " performs the checks. It is set at the first relay-chain block when the corresponding"] + #[doc = " parachain can switch its upgrade function. As soon as the parachain's block is included, the"] + #[doc = " value gets reset to `None`."] #[doc = ""] #[doc = " NOTE that this field is used by parachains via merkle storage proofs, therefore changing"] #[doc = " the format will require migration of parachains."] @@ -30652,7 +29249,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_primitives::v5::UpgradeGoAhead, + alias_types::upgrade_go_ahead_signal::UpgradeGoAheadSignal, (), (), ::subxt::storage::address::Yes, @@ -30669,21 +29266,24 @@ pub mod api { ], ) } - #[doc = " This is used by the relay-chain to communicate to a parachain a go-ahead with in the upgrade procedure."] + #[doc = " This is used by the relay-chain to communicate to a parachain a go-ahead with in the upgrade"] + #[doc = " procedure."] #[doc = ""] #[doc = " This value is absent when there are no upgrades scheduled or during the time the relay chain"] - #[doc = " performs the checks. It is set at the first relay-chain block when the corresponding parachain"] - #[doc = " can switch its upgrade function. As soon as the parachain's block is included, the value"] - #[doc = " gets reset to `None`."] + #[doc = " performs the checks. It is set at the first relay-chain block when the corresponding"] + #[doc = " parachain can switch its upgrade function. As soon as the parachain's block is included, the"] + #[doc = " value gets reset to `None`."] #[doc = ""] #[doc = " NOTE that this field is used by parachains via merkle storage proofs, therefore changing"] #[doc = " the format will require migration of parachains."] pub fn upgrade_go_ahead_signal( &self, - _0: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow< + runtime_types::polkadot_parachain_primitives::primitives::Id, + >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_primitives::v5::UpgradeGoAhead, + alias_types::upgrade_go_ahead_signal::UpgradeGoAheadSignal, ::subxt::storage::address::Yes, (), (), @@ -30715,7 +29315,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_primitives::v5::UpgradeRestriction, + alias_types::upgrade_restriction_signal::UpgradeRestrictionSignal, (), (), ::subxt::storage::address::Yes, @@ -30743,10 +29343,12 @@ pub mod api { #[doc = " the format will require migration of parachains."] pub fn upgrade_restriction_signal( &self, - _0: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow< + runtime_types::polkadot_parachain_primitives::primitives::Id, + >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_primitives::v5::UpgradeRestriction, + alias_types::upgrade_restriction_signal::UpgradeRestrictionSignal, ::subxt::storage::address::Yes, (), (), @@ -30772,10 +29374,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<( - runtime_types::polkadot_parachain::primitives::Id, - ::core::primitive::u32, - )>, + alias_types::upgrade_cooldowns::UpgradeCooldowns, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -30800,10 +29399,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<( - runtime_types::polkadot_parachain::primitives::Id, - ::core::primitive::u32, - )>, + alias_types::upcoming_upgrades::UpcomingUpgrades, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -30824,7 +29420,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec, + alias_types::actions_queue::ActionsQueue, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -30846,7 +29442,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec, + alias_types::actions_queue::ActionsQueue, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -30872,7 +29468,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_runtime_parachains::paras::ParaGenesisArgs, + alias_types::upcoming_paras_genesis::UpcomingParasGenesis, (), (), ::subxt::storage::address::Yes, @@ -30895,10 +29491,12 @@ pub mod api { #[doc = " to empty. Instead, the code will be saved into the storage right away via `CodeByHash`."] pub fn upcoming_paras_genesis( &self, - _0: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow< + runtime_types::polkadot_parachain_primitives::primitives::Id, + >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_runtime_parachains::paras::ParaGenesisArgs, + alias_types::upcoming_paras_genesis::UpcomingParasGenesis, ::subxt::storage::address::Yes, (), (), @@ -30922,7 +29520,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, + alias_types::code_by_hash_refs::CodeByHashRefs, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -30942,12 +29540,10 @@ pub mod api { #[doc = " The number of reference on the validation code in [`CodeByHash`] storage."] pub fn code_by_hash_refs( &self, - _0: impl ::std::borrow::Borrow< - runtime_types::polkadot_parachain::primitives::ValidationCodeHash, - >, + _0 : impl :: std :: borrow :: Borrow < runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, + alias_types::code_by_hash_refs::CodeByHashRefs, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -30974,7 +29570,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_parachain::primitives::ValidationCode, + alias_types::code_by_hash::CodeByHash, (), (), ::subxt::storage::address::Yes, @@ -30996,12 +29592,10 @@ pub mod api { #[doc = " [`PastCodeHash`]."] pub fn code_by_hash( &self, - _0: impl ::std::borrow::Borrow< - runtime_types::polkadot_parachain::primitives::ValidationCodeHash, - >, + _0 : impl :: std :: borrow :: Borrow < runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_parachain::primitives::ValidationCode, + alias_types::code_by_hash::CodeByHash, ::subxt::storage::address::Yes, (), (), @@ -31051,6 +29645,13 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod alias_types { + use super::runtime_types; + pub mod force_approve { + use super::runtime_types; + pub type UpTo = ::core::primitive::u32; + } + } pub mod types { use super::runtime_types; #[derive( @@ -31077,7 +29678,7 @@ pub mod api { #[doc = "See [`Pallet::force_approve`]."] pub fn force_approve( &self, - up_to: ::core::primitive::u32, + up_to: alias_types::force_approve::UpTo, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Initializer", @@ -31095,6 +29696,17 @@ pub mod api { } pub mod storage { use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod has_initialized { + use super::runtime_types; + pub type HasInitialized = (); + } + pub mod buffered_session_changes { + use super::runtime_types; + pub type BufferedSessionChanges = :: std :: vec :: Vec < runtime_types :: polkadot_runtime_parachains :: initializer :: BufferedSessionChange > ; + } + } pub struct StorageApi; impl StorageApi { #[doc = " Whether the parachains modules have been initialized within this block."] @@ -31102,14 +29714,14 @@ pub mod api { #[doc = " Semantically a `bool`, but this guarantees it should never hit the trie,"] #[doc = " as this is cleared in `on_finalize` and Frame optimizes `None` values to be empty values."] #[doc = ""] - #[doc = " As a `bool`, `set(false)` and `remove()` both lead to the next `get()` being false, but one of"] - #[doc = " them writes to the trie and one does not. This confusion makes `Option<()>` more suitable for"] - #[doc = " the semantics of this variable."] + #[doc = " As a `bool`, `set(false)` and `remove()` both lead to the next `get()` being false, but one"] + #[doc = " of them writes to the trie and one does not. This confusion makes `Option<()>` more suitable"] + #[doc = " for the semantics of this variable."] pub fn has_initialized( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - (), + alias_types::has_initialized::HasInitialized, ::subxt::storage::address::Yes, (), (), @@ -31131,7 +29743,16 @@ pub mod api { #[doc = " the storage."] #[doc = ""] #[doc = " However this is a `Vec` regardless to handle various edge cases that may occur at runtime"] - #[doc = " upgrade boundaries or if governance intervenes."] pub fn buffered_session_changes (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , :: std :: vec :: Vec < runtime_types :: polkadot_runtime_parachains :: initializer :: BufferedSessionChange > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ + #[doc = " upgrade boundaries or if governance intervenes."] + pub fn buffered_session_changes( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::buffered_session_changes::BufferedSessionChanges, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { ::subxt::storage::address::Address::new_static( "Initializer", "BufferedSessionChanges", @@ -31151,6 +29772,26 @@ pub mod api { use super::runtime_types; pub mod storage { use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod downward_message_queues { + use super::runtime_types; + pub type DownwardMessageQueues = ::std::vec::Vec< + runtime_types::polkadot_core_primitives::InboundDownwardMessage< + ::core::primitive::u32, + >, + >; + } + pub mod downward_message_queue_heads { + use super::runtime_types; + pub type DownwardMessageQueueHeads = ::subxt::utils::H256; + } + pub mod delivery_fee_factor { + use super::runtime_types; + pub type DeliveryFeeFactor = + runtime_types::sp_arithmetic::fixed_point::FixedU128; + } + } pub struct StorageApi; impl StorageApi { #[doc = " The downward messages addressed for a certain para."] @@ -31158,11 +29799,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec< - runtime_types::polkadot_core_primitives::InboundDownwardMessage< - ::core::primitive::u32, - >, - >, + alias_types::downward_message_queues::DownwardMessageQueues, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -31182,14 +29819,12 @@ pub mod api { #[doc = " The downward messages addressed for a certain para."] pub fn downward_message_queues( &self, - _0: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow< + runtime_types::polkadot_parachain_primitives::primitives::Id, + >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec< - runtime_types::polkadot_core_primitives::InboundDownwardMessage< - ::core::primitive::u32, - >, - >, + alias_types::downward_message_queues::DownwardMessageQueues, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -31219,7 +29854,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::subxt::utils::H256, + alias_types::downward_message_queue_heads::DownwardMessageQueueHeads, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -31244,10 +29879,12 @@ pub mod api { #[doc = " - `H(M)`: is the hash of the message being appended."] pub fn downward_message_queue_heads( &self, - _0: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow< + runtime_types::polkadot_parachain_primitives::primitives::Id, + >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::subxt::utils::H256, + alias_types::downward_message_queue_heads::DownwardMessageQueueHeads, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -31265,12 +29902,12 @@ pub mod api { ], ) } - #[doc = " The number to multiply the base delivery fee by."] + #[doc = " The factor to multiply the base delivery fee by."] pub fn delivery_fee_factor_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_arithmetic::fixed_point::FixedU128, + alias_types::delivery_fee_factor::DeliveryFeeFactor, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -31286,13 +29923,15 @@ pub mod api { ], ) } - #[doc = " The number to multiply the base delivery fee by."] + #[doc = " The factor to multiply the base delivery fee by."] pub fn delivery_fee_factor( &self, - _0: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow< + runtime_types::polkadot_parachain_primitives::primitives::Id, + >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_arithmetic::fixed_point::FixedU128, + alias_types::delivery_fee_factor::DeliveryFeeFactor, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -31324,6 +29963,65 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod alias_types { + use super::runtime_types; + pub mod hrmp_init_open_channel { + use super::runtime_types; + pub type Recipient = + runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type ProposedMaxCapacity = ::core::primitive::u32; + pub type ProposedMaxMessageSize = ::core::primitive::u32; + } + pub mod hrmp_accept_open_channel { + use super::runtime_types; + pub type Sender = runtime_types::polkadot_parachain_primitives::primitives::Id; + } + pub mod hrmp_close_channel { + use super::runtime_types; + pub type ChannelId = + runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId; + } + pub mod force_clean_hrmp { + use super::runtime_types; + pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type NumInbound = ::core::primitive::u32; + pub type NumOutbound = ::core::primitive::u32; + } + pub mod force_process_hrmp_open { + use super::runtime_types; + pub type Channels = ::core::primitive::u32; + } + pub mod force_process_hrmp_close { + use super::runtime_types; + pub type Channels = ::core::primitive::u32; + } + pub mod hrmp_cancel_open_request { + use super::runtime_types; + pub type ChannelId = + runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId; + pub type OpenRequests = ::core::primitive::u32; + } + pub mod force_open_hrmp_channel { + use super::runtime_types; + pub type Sender = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Recipient = + runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type MaxCapacity = ::core::primitive::u32; + pub type MaxMessageSize = ::core::primitive::u32; + } + pub mod establish_system_channel { + use super::runtime_types; + pub type Sender = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Recipient = + runtime_types::polkadot_parachain_primitives::primitives::Id; + } + pub mod poke_channel_deposits { + use super::runtime_types; + pub type Sender = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Recipient = + runtime_types::polkadot_parachain_primitives::primitives::Id; + } + } pub mod types { use super::runtime_types; #[derive( @@ -31337,7 +30035,7 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct HrmpInitOpenChannel { - pub recipient: runtime_types::polkadot_parachain::primitives::Id, + pub recipient: runtime_types::polkadot_parachain_primitives::primitives::Id, pub proposed_max_capacity: ::core::primitive::u32, pub proposed_max_message_size: ::core::primitive::u32, } @@ -31356,7 +30054,7 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct HrmpAcceptOpenChannel { - pub sender: runtime_types::polkadot_parachain::primitives::Id, + pub sender: runtime_types::polkadot_parachain_primitives::primitives::Id, } impl ::subxt::blocks::StaticExtrinsic for HrmpAcceptOpenChannel { const PALLET: &'static str = "Hrmp"; @@ -31373,7 +30071,8 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct HrmpCloseChannel { - pub channel_id: runtime_types::polkadot_parachain::primitives::HrmpChannelId, + pub channel_id: + runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId, } impl ::subxt::blocks::StaticExtrinsic for HrmpCloseChannel { const PALLET: &'static str = "Hrmp"; @@ -31390,9 +30089,9 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceCleanHrmp { - pub para: runtime_types::polkadot_parachain::primitives::Id, - pub inbound: ::core::primitive::u32, - pub outbound: ::core::primitive::u32, + pub para: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub num_inbound: ::core::primitive::u32, + pub num_outbound: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for ForceCleanHrmp { const PALLET: &'static str = "Hrmp"; @@ -31445,7 +30144,8 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct HrmpCancelOpenRequest { - pub channel_id: runtime_types::polkadot_parachain::primitives::HrmpChannelId, + pub channel_id: + runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId, pub open_requests: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for HrmpCancelOpenRequest { @@ -31463,8 +30163,8 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceOpenHrmpChannel { - pub sender: runtime_types::polkadot_parachain::primitives::Id, - pub recipient: runtime_types::polkadot_parachain::primitives::Id, + pub sender: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub recipient: runtime_types::polkadot_parachain_primitives::primitives::Id, pub max_capacity: ::core::primitive::u32, pub max_message_size: ::core::primitive::u32, } @@ -31472,15 +30172,51 @@ pub mod api { const PALLET: &'static str = "Hrmp"; const CALL: &'static str = "force_open_hrmp_channel"; } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct EstablishSystemChannel { + pub sender: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub recipient: runtime_types::polkadot_parachain_primitives::primitives::Id, + } + impl ::subxt::blocks::StaticExtrinsic for EstablishSystemChannel { + const PALLET: &'static str = "Hrmp"; + const CALL: &'static str = "establish_system_channel"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct PokeChannelDeposits { + pub sender: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub recipient: runtime_types::polkadot_parachain_primitives::primitives::Id, + } + impl ::subxt::blocks::StaticExtrinsic for PokeChannelDeposits { + const PALLET: &'static str = "Hrmp"; + const CALL: &'static str = "poke_channel_deposits"; + } } pub struct TransactionApi; impl TransactionApi { #[doc = "See [`Pallet::hrmp_init_open_channel`]."] 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, + recipient: alias_types::hrmp_init_open_channel::Recipient, + proposed_max_capacity: alias_types::hrmp_init_open_channel::ProposedMaxCapacity, + proposed_max_message_size : alias_types :: hrmp_init_open_channel :: ProposedMaxMessageSize, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Hrmp", @@ -31501,7 +30237,7 @@ pub mod api { #[doc = "See [`Pallet::hrmp_accept_open_channel`]."] pub fn hrmp_accept_open_channel( &self, - sender: runtime_types::polkadot_parachain::primitives::Id, + sender: alias_types::hrmp_accept_open_channel::Sender, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Hrmp", @@ -31517,7 +30253,7 @@ pub mod api { #[doc = "See [`Pallet::hrmp_close_channel`]."] pub fn hrmp_close_channel( &self, - channel_id: runtime_types::polkadot_parachain::primitives::HrmpChannelId, + channel_id: alias_types::hrmp_close_channel::ChannelId, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Hrmp", @@ -31534,29 +30270,29 @@ pub mod api { #[doc = "See [`Pallet::force_clean_hrmp`]."] pub fn force_clean_hrmp( &self, - para: runtime_types::polkadot_parachain::primitives::Id, - inbound: ::core::primitive::u32, - outbound: ::core::primitive::u32, + para: alias_types::force_clean_hrmp::Para, + num_inbound: alias_types::force_clean_hrmp::NumInbound, + num_outbound: alias_types::force_clean_hrmp::NumOutbound, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Hrmp", "force_clean_hrmp", types::ForceCleanHrmp { para, - inbound, - outbound, + num_inbound, + num_outbound, }, [ - 0u8, 31u8, 178u8, 86u8, 30u8, 161u8, 50u8, 113u8, 51u8, 212u8, 175u8, - 144u8, 43u8, 127u8, 10u8, 168u8, 127u8, 39u8, 101u8, 67u8, 96u8, 29u8, - 117u8, 79u8, 184u8, 228u8, 182u8, 53u8, 55u8, 142u8, 225u8, 212u8, + 0u8, 184u8, 199u8, 44u8, 26u8, 150u8, 124u8, 255u8, 40u8, 63u8, 74u8, + 31u8, 133u8, 22u8, 241u8, 84u8, 44u8, 184u8, 128u8, 54u8, 175u8, 127u8, + 255u8, 232u8, 239u8, 26u8, 50u8, 27u8, 81u8, 223u8, 136u8, 110u8, ], ) } #[doc = "See [`Pallet::force_process_hrmp_open`]."] pub fn force_process_hrmp_open( &self, - channels: ::core::primitive::u32, + channels: alias_types::force_process_hrmp_open::Channels, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Hrmp", @@ -31573,7 +30309,7 @@ pub mod api { #[doc = "See [`Pallet::force_process_hrmp_close`]."] pub fn force_process_hrmp_close( &self, - channels: ::core::primitive::u32, + channels: alias_types::force_process_hrmp_close::Channels, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Hrmp", @@ -31590,8 +30326,8 @@ pub mod api { #[doc = "See [`Pallet::hrmp_cancel_open_request`]."] pub fn hrmp_cancel_open_request( &self, - channel_id: runtime_types::polkadot_parachain::primitives::HrmpChannelId, - open_requests: ::core::primitive::u32, + channel_id: alias_types::hrmp_cancel_open_request::ChannelId, + open_requests: alias_types::hrmp_cancel_open_request::OpenRequests, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Hrmp", @@ -31610,10 +30346,10 @@ pub mod api { #[doc = "See [`Pallet::force_open_hrmp_channel`]."] pub fn force_open_hrmp_channel( &self, - 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, + sender: alias_types::force_open_hrmp_channel::Sender, + recipient: alias_types::force_open_hrmp_channel::Recipient, + max_capacity: alias_types::force_open_hrmp_channel::MaxCapacity, + max_message_size: alias_types::force_open_hrmp_channel::MaxMessageSize, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Hrmp", @@ -31631,6 +30367,40 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::establish_system_channel`]."] + pub fn establish_system_channel( + &self, + sender: alias_types::establish_system_channel::Sender, + recipient: alias_types::establish_system_channel::Recipient, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Hrmp", + "establish_system_channel", + types::EstablishSystemChannel { sender, recipient }, + [ + 179u8, 12u8, 66u8, 57u8, 24u8, 114u8, 175u8, 141u8, 80u8, 157u8, 204u8, + 122u8, 116u8, 139u8, 35u8, 51u8, 68u8, 36u8, 61u8, 135u8, 221u8, 40u8, + 135u8, 21u8, 91u8, 60u8, 51u8, 51u8, 32u8, 224u8, 71u8, 182u8, + ], + ) + } + #[doc = "See [`Pallet::poke_channel_deposits`]."] + pub fn poke_channel_deposits( + &self, + sender: alias_types::poke_channel_deposits::Sender, + recipient: alias_types::poke_channel_deposits::Recipient, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Hrmp", + "poke_channel_deposits", + types::PokeChannelDeposits { sender, recipient }, + [ + 93u8, 153u8, 50u8, 127u8, 136u8, 255u8, 6u8, 155u8, 73u8, 216u8, 145u8, + 229u8, 200u8, 75u8, 94u8, 39u8, 117u8, 188u8, 62u8, 172u8, 210u8, + 212u8, 37u8, 11u8, 166u8, 31u8, 101u8, 129u8, 29u8, 229u8, 200u8, 16u8, + ], + ) + } } } #[doc = "The `Event` enum of this pallet"] @@ -31648,13 +30418,12 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Open HRMP channel requested."] - #[doc = "`[sender, recipient, proposed_max_capacity, proposed_max_message_size]`"] - 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, - ); + pub struct OpenChannelRequested { + pub sender: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub recipient: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub proposed_max_capacity: ::core::primitive::u32, + pub proposed_max_message_size: ::core::primitive::u32, + } impl ::subxt::events::StaticEvent for OpenChannelRequested { const PALLET: &'static str = "Hrmp"; const EVENT: &'static str = "OpenChannelRequested"; @@ -31670,11 +30439,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An HRMP channel request sent by the receiver was canceled by either party."] - #[doc = "`[by_parachain, channel_id]`"] - pub struct OpenChannelCanceled( - pub runtime_types::polkadot_parachain::primitives::Id, - pub runtime_types::polkadot_parachain::primitives::HrmpChannelId, - ); + pub struct OpenChannelCanceled { + pub by_parachain: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub channel_id: + runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId, + } impl ::subxt::events::StaticEvent for OpenChannelCanceled { const PALLET: &'static str = "Hrmp"; const EVENT: &'static str = "OpenChannelCanceled"; @@ -31689,11 +30458,11 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Open HRMP channel accepted. `[sender, recipient]`"] - pub struct OpenChannelAccepted( - pub runtime_types::polkadot_parachain::primitives::Id, - pub runtime_types::polkadot_parachain::primitives::Id, - ); + #[doc = "Open HRMP channel accepted."] + pub struct OpenChannelAccepted { + pub sender: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub recipient: runtime_types::polkadot_parachain_primitives::primitives::Id, + } impl ::subxt::events::StaticEvent for OpenChannelAccepted { const PALLET: &'static str = "Hrmp"; const EVENT: &'static str = "OpenChannelAccepted"; @@ -31708,11 +30477,12 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "HRMP channel closed. `[by_parachain, channel_id]`"] - pub struct ChannelClosed( - pub runtime_types::polkadot_parachain::primitives::Id, - pub runtime_types::polkadot_parachain::primitives::HrmpChannelId, - ); + #[doc = "HRMP channel closed."] + pub struct ChannelClosed { + pub by_parachain: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub channel_id: + runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId, + } impl ::subxt::events::StaticEvent for ChannelClosed { const PALLET: &'static str = "Hrmp"; const EVENT: &'static str = "ChannelClosed"; @@ -31728,20 +30498,129 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An HRMP channel was opened via Root origin."] - #[doc = "`[sender, recipient, proposed_max_capacity, proposed_max_message_size]`"] - pub struct HrmpChannelForceOpened( - pub runtime_types::polkadot_parachain::primitives::Id, - pub runtime_types::polkadot_parachain::primitives::Id, - pub ::core::primitive::u32, - pub ::core::primitive::u32, - ); + pub struct HrmpChannelForceOpened { + pub sender: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub recipient: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub proposed_max_capacity: ::core::primitive::u32, + pub proposed_max_message_size: ::core::primitive::u32, + } impl ::subxt::events::StaticEvent for HrmpChannelForceOpened { const PALLET: &'static str = "Hrmp"; const EVENT: &'static str = "HrmpChannelForceOpened"; } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An HRMP channel was opened between two system chains."] + pub struct HrmpSystemChannelOpened { + pub sender: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub recipient: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub proposed_max_capacity: ::core::primitive::u32, + pub proposed_max_message_size: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for HrmpSystemChannelOpened { + const PALLET: &'static str = "Hrmp"; + const EVENT: &'static str = "HrmpSystemChannelOpened"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An HRMP channel's deposits were updated."] + pub struct OpenChannelDepositsUpdated { + pub sender: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub recipient: runtime_types::polkadot_parachain_primitives::primitives::Id, + } + impl ::subxt::events::StaticEvent for OpenChannelDepositsUpdated { + const PALLET: &'static str = "Hrmp"; + const EVENT: &'static str = "OpenChannelDepositsUpdated"; + } } pub mod storage { use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod hrmp_open_channel_requests { + use super::runtime_types; + pub type HrmpOpenChannelRequests = + runtime_types::polkadot_runtime_parachains::hrmp::HrmpOpenChannelRequest; + } + pub mod hrmp_open_channel_requests_list { + use super::runtime_types; + pub type HrmpOpenChannelRequestsList = ::std::vec::Vec< + runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId, + >; + } + pub mod hrmp_open_channel_request_count { + use super::runtime_types; + pub type HrmpOpenChannelRequestCount = ::core::primitive::u32; + } + pub mod hrmp_accepted_channel_request_count { + use super::runtime_types; + pub type HrmpAcceptedChannelRequestCount = ::core::primitive::u32; + } + pub mod hrmp_close_channel_requests { + use super::runtime_types; + pub type HrmpCloseChannelRequests = (); + } + pub mod hrmp_close_channel_requests_list { + use super::runtime_types; + pub type HrmpCloseChannelRequestsList = ::std::vec::Vec< + runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId, + >; + } + pub mod hrmp_watermarks { + use super::runtime_types; + pub type HrmpWatermarks = ::core::primitive::u32; + } + pub mod hrmp_channels { + use super::runtime_types; + pub type HrmpChannels = + runtime_types::polkadot_runtime_parachains::hrmp::HrmpChannel; + } + pub mod hrmp_ingress_channels_index { + use super::runtime_types; + pub type HrmpIngressChannelsIndex = ::std::vec::Vec< + runtime_types::polkadot_parachain_primitives::primitives::Id, + >; + } + pub mod hrmp_egress_channels_index { + use super::runtime_types; + pub type HrmpEgressChannelsIndex = ::std::vec::Vec< + runtime_types::polkadot_parachain_primitives::primitives::Id, + >; + } + pub mod hrmp_channel_contents { + use super::runtime_types; + pub type HrmpChannelContents = ::std::vec::Vec< + runtime_types::polkadot_core_primitives::InboundHrmpMessage< + ::core::primitive::u32, + >, + >; + } + pub mod hrmp_channel_digests { + use super::runtime_types; + pub type HrmpChannelDigests = ::std::vec::Vec<( + ::core::primitive::u32, + ::std::vec::Vec< + runtime_types::polkadot_parachain_primitives::primitives::Id, + >, + )>; + } + } pub struct StorageApi; impl StorageApi { #[doc = " The set of pending HRMP open channel requests."] @@ -31754,7 +30633,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_runtime_parachains::hrmp::HrmpOpenChannelRequest, + alias_types::hrmp_open_channel_requests::HrmpOpenChannelRequests, (), (), ::subxt::storage::address::Yes, @@ -31780,11 +30659,11 @@ pub mod api { pub fn hrmp_open_channel_requests( &self, _0: impl ::std::borrow::Borrow< - runtime_types::polkadot_parachain::primitives::HrmpChannelId, + runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId, >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_runtime_parachains::hrmp::HrmpOpenChannelRequest, + alias_types::hrmp_open_channel_requests::HrmpOpenChannelRequests, ::subxt::storage::address::Yes, (), (), @@ -31807,7 +30686,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec, + alias_types::hrmp_open_channel_requests_list::HrmpOpenChannelRequestsList, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -31831,7 +30710,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, + alias_types::hrmp_open_channel_request_count::HrmpOpenChannelRequestCount, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -31853,10 +30732,12 @@ pub mod api { #[doc = " `(X, _)` as the number of `HrmpOpenChannelRequestCount` for `X`."] pub fn hrmp_open_channel_request_count( &self, - _0: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow< + runtime_types::polkadot_parachain_primitives::primitives::Id, + >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, + alias_types::hrmp_open_channel_request_count::HrmpOpenChannelRequestCount, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -31877,16 +30758,7 @@ pub mod api { } #[doc = " This mapping tracks how many open channel requests were accepted by a given recipient para."] #[doc = " Invariant: `HrmpOpenChannelRequests` should contain the same number of items `(_, X)` with"] - #[doc = " `confirmed` set to true, as the number of `HrmpAcceptedChannelRequestCount` for `X`."] - pub fn hrmp_accepted_channel_request_count_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { + #[doc = " `confirmed` set to true, as the number of `HrmpAcceptedChannelRequestCount` for `X`."] pub fn hrmp_accepted_channel_request_count_iter (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , alias_types :: hrmp_accepted_channel_request_count :: HrmpAcceptedChannelRequestCount , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ ::subxt::storage::address::Address::new_static( "Hrmp", "HrmpAcceptedChannelRequestCount", @@ -31901,17 +30773,7 @@ pub mod api { } #[doc = " This mapping tracks how many open channel requests were accepted by a given recipient para."] #[doc = " Invariant: `HrmpOpenChannelRequests` should contain the same number of items `(_, X)` with"] - #[doc = " `confirmed` set to true, as the number of `HrmpAcceptedChannelRequestCount` for `X`."] - pub fn hrmp_accepted_channel_request_count( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { + #[doc = " `confirmed` set to true, as the number of `HrmpAcceptedChannelRequestCount` for `X`."] pub fn hrmp_accepted_channel_request_count (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: polkadot_parachain_primitives :: primitives :: Id > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , alias_types :: hrmp_accepted_channel_request_count :: HrmpAcceptedChannelRequestCount , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ ::subxt::storage::address::Address::new_static( "Hrmp", "HrmpAcceptedChannelRequestCount", @@ -31937,7 +30799,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - (), + alias_types::hrmp_close_channel_requests::HrmpCloseChannelRequests, (), (), ::subxt::storage::address::Yes, @@ -31964,11 +30826,11 @@ pub mod api { pub fn hrmp_close_channel_requests( &self, _0: impl ::std::borrow::Borrow< - runtime_types::polkadot_parachain::primitives::HrmpChannelId, + runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId, >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - (), + alias_types::hrmp_close_channel_requests::HrmpCloseChannelRequests, ::subxt::storage::address::Yes, (), (), @@ -31991,7 +30853,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec, + alias_types::hrmp_close_channel_requests_list::HrmpCloseChannelRequestsList, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -32001,561 +30863,1238 @@ pub mod api { "HrmpCloseChannelRequestsList", vec![], [ - 78u8, 194u8, 214u8, 232u8, 91u8, 72u8, 109u8, 113u8, 88u8, 86u8, 136u8, - 26u8, 226u8, 30u8, 11u8, 188u8, 57u8, 77u8, 169u8, 64u8, 14u8, 187u8, - 27u8, 127u8, 76u8, 99u8, 114u8, 73u8, 221u8, 23u8, 208u8, 69u8, + 78u8, 194u8, 214u8, 232u8, 91u8, 72u8, 109u8, 113u8, 88u8, 86u8, 136u8, + 26u8, 226u8, 30u8, 11u8, 188u8, 57u8, 77u8, 169u8, 64u8, 14u8, 187u8, + 27u8, 127u8, 76u8, 99u8, 114u8, 73u8, 221u8, 23u8, 208u8, 69u8, + ], + ) + } + #[doc = " The HRMP watermark associated with each para."] + #[doc = " Invariant:"] + #[doc = " - each para `P` used here as a key should satisfy `Paras::is_valid_para(P)` within a"] + #[doc = " session."] + pub fn hrmp_watermarks_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::hrmp_watermarks::HrmpWatermarks, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Hrmp", + "HrmpWatermarks", + vec![], + [ + 245u8, 104u8, 137u8, 120u8, 131u8, 7u8, 178u8, 85u8, 96u8, 124u8, + 241u8, 2u8, 86u8, 63u8, 116u8, 77u8, 217u8, 235u8, 162u8, 38u8, 104u8, + 248u8, 121u8, 1u8, 111u8, 191u8, 191u8, 115u8, 65u8, 67u8, 2u8, 238u8, + ], + ) + } + #[doc = " The HRMP watermark associated with each para."] + #[doc = " Invariant:"] + #[doc = " - each para `P` used here as a key should satisfy `Paras::is_valid_para(P)` within a"] + #[doc = " session."] + pub fn hrmp_watermarks( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::polkadot_parachain_primitives::primitives::Id, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::hrmp_watermarks::HrmpWatermarks, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Hrmp", + "HrmpWatermarks", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 245u8, 104u8, 137u8, 120u8, 131u8, 7u8, 178u8, 85u8, 96u8, 124u8, + 241u8, 2u8, 86u8, 63u8, 116u8, 77u8, 217u8, 235u8, 162u8, 38u8, 104u8, + 248u8, 121u8, 1u8, 111u8, 191u8, 191u8, 115u8, 65u8, 67u8, 2u8, 238u8, + ], + ) + } + #[doc = " HRMP channel data associated with each para."] + #[doc = " Invariant:"] + #[doc = " - each participant in the channel should satisfy `Paras::is_valid_para(P)` within a session."] + pub fn hrmp_channels_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::hrmp_channels::HrmpChannels, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Hrmp", + "HrmpChannels", + vec![], + [ + 174u8, 90u8, 72u8, 93u8, 43u8, 140u8, 181u8, 170u8, 138u8, 171u8, + 179u8, 156u8, 33u8, 87u8, 63u8, 1u8, 131u8, 59u8, 230u8, 14u8, 40u8, + 240u8, 186u8, 66u8, 191u8, 130u8, 48u8, 218u8, 225u8, 22u8, 33u8, + 122u8, + ], + ) + } + #[doc = " HRMP channel data associated with each para."] + #[doc = " Invariant:"] + #[doc = " - each participant in the channel should satisfy `Paras::is_valid_para(P)` within a session."] + pub fn hrmp_channels( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::hrmp_channels::HrmpChannels, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Hrmp", + "HrmpChannels", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 174u8, 90u8, 72u8, 93u8, 43u8, 140u8, 181u8, 170u8, 138u8, 171u8, + 179u8, 156u8, 33u8, 87u8, 63u8, 1u8, 131u8, 59u8, 230u8, 14u8, 40u8, + 240u8, 186u8, 66u8, 191u8, 130u8, 48u8, 218u8, 225u8, 22u8, 33u8, + 122u8, + ], + ) + } + #[doc = " Ingress/egress indexes allow to find all the senders and receivers given the opposite side."] + #[doc = " I.e."] + #[doc = ""] + #[doc = " (a) ingress index allows to find all the senders for a given recipient."] + #[doc = " (b) egress index allows to find all the recipients for a given sender."] + #[doc = ""] + #[doc = " Invariants:"] + #[doc = " - for each ingress index entry for `P` each item `I` in the index should present in"] + #[doc = " `HrmpChannels` as `(I, P)`."] + #[doc = " - for each egress index entry for `P` each item `E` in the index should present in"] + #[doc = " `HrmpChannels` as `(P, E)`."] + #[doc = " - there should be no other dangling channels in `HrmpChannels`."] + #[doc = " - the vectors are sorted."] + pub fn hrmp_ingress_channels_index_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::hrmp_ingress_channels_index::HrmpIngressChannelsIndex, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Hrmp", + "HrmpIngressChannelsIndex", + vec![], + [ + 125u8, 229u8, 102u8, 230u8, 74u8, 109u8, 173u8, 67u8, 176u8, 169u8, + 57u8, 24u8, 75u8, 129u8, 246u8, 198u8, 63u8, 49u8, 56u8, 102u8, 149u8, + 139u8, 138u8, 207u8, 150u8, 220u8, 29u8, 208u8, 203u8, 0u8, 93u8, + 105u8, + ], + ) + } + #[doc = " Ingress/egress indexes allow to find all the senders and receivers given the opposite side."] + #[doc = " I.e."] + #[doc = ""] + #[doc = " (a) ingress index allows to find all the senders for a given recipient."] + #[doc = " (b) egress index allows to find all the recipients for a given sender."] + #[doc = ""] + #[doc = " Invariants:"] + #[doc = " - for each ingress index entry for `P` each item `I` in the index should present in"] + #[doc = " `HrmpChannels` as `(I, P)`."] + #[doc = " - for each egress index entry for `P` each item `E` in the index should present in"] + #[doc = " `HrmpChannels` as `(P, E)`."] + #[doc = " - there should be no other dangling channels in `HrmpChannels`."] + #[doc = " - the vectors are sorted."] + pub fn hrmp_ingress_channels_index( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::polkadot_parachain_primitives::primitives::Id, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::hrmp_ingress_channels_index::HrmpIngressChannelsIndex, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Hrmp", + "HrmpIngressChannelsIndex", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 125u8, 229u8, 102u8, 230u8, 74u8, 109u8, 173u8, 67u8, 176u8, 169u8, + 57u8, 24u8, 75u8, 129u8, 246u8, 198u8, 63u8, 49u8, 56u8, 102u8, 149u8, + 139u8, 138u8, 207u8, 150u8, 220u8, 29u8, 208u8, 203u8, 0u8, 93u8, + 105u8, + ], + ) + } + pub fn hrmp_egress_channels_index_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::hrmp_egress_channels_index::HrmpEgressChannelsIndex, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Hrmp", + "HrmpEgressChannelsIndex", + vec![], + [ + 237u8, 183u8, 188u8, 57u8, 20u8, 238u8, 166u8, 7u8, 94u8, 155u8, 22u8, + 9u8, 173u8, 209u8, 210u8, 17u8, 160u8, 79u8, 243u8, 4u8, 245u8, 240u8, + 65u8, 195u8, 116u8, 98u8, 206u8, 104u8, 53u8, 64u8, 241u8, 41u8, + ], + ) + } + pub fn hrmp_egress_channels_index( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::polkadot_parachain_primitives::primitives::Id, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::hrmp_egress_channels_index::HrmpEgressChannelsIndex, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Hrmp", + "HrmpEgressChannelsIndex", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 237u8, 183u8, 188u8, 57u8, 20u8, 238u8, 166u8, 7u8, 94u8, 155u8, 22u8, + 9u8, 173u8, 209u8, 210u8, 17u8, 160u8, 79u8, 243u8, 4u8, 245u8, 240u8, + 65u8, 195u8, 116u8, 98u8, 206u8, 104u8, 53u8, 64u8, 241u8, 41u8, + ], + ) + } + #[doc = " Storage for the messages for each channel."] + #[doc = " Invariant: cannot be non-empty if the corresponding channel in `HrmpChannels` is `None`."] + pub fn hrmp_channel_contents_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::hrmp_channel_contents::HrmpChannelContents, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Hrmp", + "HrmpChannelContents", + vec![], + [ + 55u8, 16u8, 135u8, 69u8, 54u8, 180u8, 246u8, 124u8, 104u8, 92u8, 45u8, + 18u8, 223u8, 145u8, 43u8, 190u8, 121u8, 59u8, 35u8, 195u8, 234u8, + 219u8, 30u8, 246u8, 168u8, 187u8, 45u8, 171u8, 254u8, 204u8, 60u8, + 121u8, + ], + ) + } + #[doc = " Storage for the messages for each channel."] + #[doc = " Invariant: cannot be non-empty if the corresponding channel in `HrmpChannels` is `None`."] + pub fn hrmp_channel_contents( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::hrmp_channel_contents::HrmpChannelContents, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Hrmp", + "HrmpChannelContents", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 55u8, 16u8, 135u8, 69u8, 54u8, 180u8, 246u8, 124u8, 104u8, 92u8, 45u8, + 18u8, 223u8, 145u8, 43u8, 190u8, 121u8, 59u8, 35u8, 195u8, 234u8, + 219u8, 30u8, 246u8, 168u8, 187u8, 45u8, 171u8, 254u8, 204u8, 60u8, + 121u8, + ], + ) + } + #[doc = " Maintains a mapping that can be used to answer the question: What paras sent a message at"] + #[doc = " the given block number for a given receiver. Invariants:"] + #[doc = " - The inner `Vec` is never empty."] + #[doc = " - The inner `Vec` cannot store two same `ParaId`."] + #[doc = " - The outer vector is sorted ascending by block number and cannot store two items with the"] + #[doc = " same block number."] + pub fn hrmp_channel_digests_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::hrmp_channel_digests::HrmpChannelDigests, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Hrmp", + "HrmpChannelDigests", + vec![], + [ + 90u8, 90u8, 139u8, 78u8, 47u8, 2u8, 104u8, 211u8, 42u8, 246u8, 193u8, + 210u8, 142u8, 223u8, 17u8, 136u8, 3u8, 182u8, 25u8, 56u8, 72u8, 72u8, + 162u8, 131u8, 36u8, 34u8, 162u8, 176u8, 159u8, 113u8, 7u8, 207u8, + ], + ) + } + #[doc = " Maintains a mapping that can be used to answer the question: What paras sent a message at"] + #[doc = " the given block number for a given receiver. Invariants:"] + #[doc = " - The inner `Vec` is never empty."] + #[doc = " - The inner `Vec` cannot store two same `ParaId`."] + #[doc = " - The outer vector is sorted ascending by block number and cannot store two items with the"] + #[doc = " same block number."] + pub fn hrmp_channel_digests( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::polkadot_parachain_primitives::primitives::Id, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::hrmp_channel_digests::HrmpChannelDigests, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Hrmp", + "HrmpChannelDigests", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 90u8, 90u8, 139u8, 78u8, 47u8, 2u8, 104u8, 211u8, 42u8, 246u8, 193u8, + 210u8, 142u8, 223u8, 17u8, 136u8, 3u8, 182u8, 25u8, 56u8, 72u8, 72u8, + 162u8, 131u8, 36u8, 34u8, 162u8, 176u8, 159u8, 113u8, 7u8, 207u8, + ], + ) + } + } + } + } + pub mod para_session_info { + use super::root_mod; + use super::runtime_types; + pub mod storage { + use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod assignment_keys_unsafe { + use super::runtime_types; + pub type AssignmentKeysUnsafe = ::std::vec::Vec< + runtime_types::polkadot_primitives::v6::assignment_app::Public, + >; + } + pub mod earliest_stored_session { + use super::runtime_types; + pub type EarliestStoredSession = ::core::primitive::u32; + } + pub mod sessions { + use super::runtime_types; + pub type Sessions = runtime_types::polkadot_primitives::v6::SessionInfo; + } + pub mod account_keys { + use super::runtime_types; + pub type AccountKeys = ::std::vec::Vec<::subxt::utils::AccountId32>; + } + pub mod session_executor_params { + use super::runtime_types; + pub type SessionExecutorParams = + runtime_types::polkadot_primitives::v6::executor_params::ExecutorParams; + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " Assignment keys for the current session."] + #[doc = " Note that this API is private due to it being prone to 'off-by-one' at session boundaries."] + #[doc = " When in doubt, use `Sessions` API instead."] + pub fn assignment_keys_unsafe( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::assignment_keys_unsafe::AssignmentKeysUnsafe, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "ParaSessionInfo", + "AssignmentKeysUnsafe", + vec![], + [ + 51u8, 155u8, 91u8, 101u8, 118u8, 243u8, 134u8, 138u8, 147u8, 59u8, + 195u8, 186u8, 54u8, 187u8, 36u8, 14u8, 91u8, 141u8, 60u8, 139u8, 28u8, + 74u8, 111u8, 232u8, 198u8, 229u8, 61u8, 63u8, 72u8, 214u8, 152u8, 2u8, + ], + ) + } + #[doc = " The earliest session for which previous session info is stored."] + pub fn earliest_stored_session( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::earliest_stored_session::EarliestStoredSession, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "ParaSessionInfo", + "EarliestStoredSession", + vec![], + [ + 139u8, 176u8, 46u8, 139u8, 217u8, 35u8, 62u8, 91u8, 183u8, 7u8, 114u8, + 226u8, 60u8, 237u8, 105u8, 73u8, 20u8, 216u8, 194u8, 205u8, 178u8, + 237u8, 84u8, 66u8, 181u8, 29u8, 31u8, 218u8, 48u8, 60u8, 198u8, 86u8, + ], + ) + } + #[doc = " Session information in a rolling window."] + #[doc = " Should have an entry in range `EarliestStoredSession..=CurrentSessionIndex`."] + #[doc = " Does not have any entries before the session index in the first session change notification."] + pub fn sessions_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::sessions::Sessions, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "ParaSessionInfo", + "Sessions", + vec![], + [ + 254u8, 40u8, 169u8, 18u8, 252u8, 203u8, 49u8, 182u8, 123u8, 19u8, + 241u8, 150u8, 227u8, 153u8, 108u8, 109u8, 66u8, 129u8, 157u8, 27u8, + 130u8, 215u8, 105u8, 18u8, 163u8, 72u8, 182u8, 243u8, 31u8, 157u8, + 103u8, 111u8, + ], + ) + } + #[doc = " Session information in a rolling window."] + #[doc = " Should have an entry in range `EarliestStoredSession..=CurrentSessionIndex`."] + #[doc = " Does not have any entries before the session index in the first session change notification."] + pub fn sessions( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::sessions::Sessions, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "ParaSessionInfo", + "Sessions", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 254u8, 40u8, 169u8, 18u8, 252u8, 203u8, 49u8, 182u8, 123u8, 19u8, + 241u8, 150u8, 227u8, 153u8, 108u8, 109u8, 66u8, 129u8, 157u8, 27u8, + 130u8, 215u8, 105u8, 18u8, 163u8, 72u8, 182u8, 243u8, 31u8, 157u8, + 103u8, 111u8, ], ) } - #[doc = " The HRMP watermark associated with each para."] - #[doc = " Invariant:"] - #[doc = " - each para `P` used here as a key should satisfy `Paras::is_valid_para(P)` within a session."] - pub fn hrmp_watermarks_iter( + #[doc = " The validator account keys of the validators actively participating in parachain consensus."] + pub fn account_keys_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, + alias_types::account_keys::AccountKeys, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Hrmp", - "HrmpWatermarks", + "ParaSessionInfo", + "AccountKeys", vec![], [ - 245u8, 104u8, 137u8, 120u8, 131u8, 7u8, 178u8, 85u8, 96u8, 124u8, - 241u8, 2u8, 86u8, 63u8, 116u8, 77u8, 217u8, 235u8, 162u8, 38u8, 104u8, - 248u8, 121u8, 1u8, 111u8, 191u8, 191u8, 115u8, 65u8, 67u8, 2u8, 238u8, + 30u8, 98u8, 58u8, 140u8, 96u8, 231u8, 205u8, 111u8, 194u8, 100u8, + 185u8, 242u8, 210u8, 143u8, 110u8, 144u8, 170u8, 187u8, 62u8, 196u8, + 73u8, 88u8, 118u8, 168u8, 117u8, 116u8, 153u8, 229u8, 108u8, 46u8, + 154u8, 220u8, ], ) } - #[doc = " The HRMP watermark associated with each para."] - #[doc = " Invariant:"] - #[doc = " - each para `P` used here as a key should satisfy `Paras::is_valid_para(P)` within a session."] - pub fn hrmp_watermarks( + #[doc = " The validator account keys of the validators actively participating in parachain consensus."] + pub fn account_keys( &self, - _0: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, + alias_types::account_keys::AccountKeys, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( - "Hrmp", - "HrmpWatermarks", + "ParaSessionInfo", + "AccountKeys", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 245u8, 104u8, 137u8, 120u8, 131u8, 7u8, 178u8, 85u8, 96u8, 124u8, - 241u8, 2u8, 86u8, 63u8, 116u8, 77u8, 217u8, 235u8, 162u8, 38u8, 104u8, - 248u8, 121u8, 1u8, 111u8, 191u8, 191u8, 115u8, 65u8, 67u8, 2u8, 238u8, + 30u8, 98u8, 58u8, 140u8, 96u8, 231u8, 205u8, 111u8, 194u8, 100u8, + 185u8, 242u8, 210u8, 143u8, 110u8, 144u8, 170u8, 187u8, 62u8, 196u8, + 73u8, 88u8, 118u8, 168u8, 117u8, 116u8, 153u8, 229u8, 108u8, 46u8, + 154u8, 220u8, ], ) } - #[doc = " HRMP channel data associated with each para."] - #[doc = " Invariant:"] - #[doc = " - each participant in the channel should satisfy `Paras::is_valid_para(P)` within a session."] - pub fn hrmp_channels_iter( + #[doc = " Executor parameter set for a given session index"] + pub fn session_executor_params_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_runtime_parachains::hrmp::HrmpChannel, + alias_types::session_executor_params::SessionExecutorParams, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Hrmp", - "HrmpChannels", + "ParaSessionInfo", + "SessionExecutorParams", vec![], [ - 174u8, 90u8, 72u8, 93u8, 43u8, 140u8, 181u8, 170u8, 138u8, 171u8, - 179u8, 156u8, 33u8, 87u8, 63u8, 1u8, 131u8, 59u8, 230u8, 14u8, 40u8, - 240u8, 186u8, 66u8, 191u8, 130u8, 48u8, 218u8, 225u8, 22u8, 33u8, - 122u8, + 102u8, 51u8, 28u8, 199u8, 238u8, 229u8, 99u8, 38u8, 116u8, 154u8, + 250u8, 136u8, 240u8, 122u8, 82u8, 13u8, 139u8, 160u8, 149u8, 218u8, + 162u8, 130u8, 109u8, 251u8, 10u8, 109u8, 200u8, 158u8, 32u8, 157u8, + 84u8, 234u8, ], ) } - #[doc = " HRMP channel data associated with each para."] - #[doc = " Invariant:"] - #[doc = " - each participant in the channel should satisfy `Paras::is_valid_para(P)` within a session."] - pub fn hrmp_channels( + #[doc = " Executor parameter set for a given session index"] + pub fn session_executor_params( &self, - _0: impl ::std::borrow::Borrow< - runtime_types::polkadot_parachain::primitives::HrmpChannelId, - >, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_runtime_parachains::hrmp::HrmpChannel, + alias_types::session_executor_params::SessionExecutorParams, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( - "Hrmp", - "HrmpChannels", + "ParaSessionInfo", + "SessionExecutorParams", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 174u8, 90u8, 72u8, 93u8, 43u8, 140u8, 181u8, 170u8, 138u8, 171u8, - 179u8, 156u8, 33u8, 87u8, 63u8, 1u8, 131u8, 59u8, 230u8, 14u8, 40u8, - 240u8, 186u8, 66u8, 191u8, 130u8, 48u8, 218u8, 225u8, 22u8, 33u8, - 122u8, + 102u8, 51u8, 28u8, 199u8, 238u8, 229u8, 99u8, 38u8, 116u8, 154u8, + 250u8, 136u8, 240u8, 122u8, 82u8, 13u8, 139u8, 160u8, 149u8, 218u8, + 162u8, 130u8, 109u8, 251u8, 10u8, 109u8, 200u8, 158u8, 32u8, 157u8, + 84u8, 234u8, ], ) } - #[doc = " Ingress/egress indexes allow to find all the senders and receivers given the opposite side."] - #[doc = " I.e."] - #[doc = ""] - #[doc = " (a) ingress index allows to find all the senders for a given recipient."] - #[doc = " (b) egress index allows to find all the recipients for a given sender."] - #[doc = ""] - #[doc = " Invariants:"] - #[doc = " - for each ingress index entry for `P` each item `I` in the index should present in"] - #[doc = " `HrmpChannels` as `(I, P)`."] - #[doc = " - for each egress index entry for `P` each item `E` in the index should present in"] - #[doc = " `HrmpChannels` as `(P, E)`."] - #[doc = " - there should be no other dangling channels in `HrmpChannels`."] - #[doc = " - the vectors are sorted."] - pub fn hrmp_ingress_channels_index_iter( + } + } + } + pub mod paras_disputes { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Error` enum of this pallet."] + pub type Error = runtime_types::polkadot_runtime_parachains::disputes::pallet::Error; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::polkadot_runtime_parachains::disputes::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod alias_types { + use super::runtime_types; + pub mod force_unfreeze { + use super::runtime_types; + } + } + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ForceUnfreeze; + impl ::subxt::blocks::StaticExtrinsic for ForceUnfreeze { + const PALLET: &'static str = "ParasDisputes"; + const CALL: &'static str = "force_unfreeze"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::force_unfreeze`]."] + pub fn force_unfreeze(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "ParasDisputes", + "force_unfreeze", + types::ForceUnfreeze {}, + [ + 148u8, 19u8, 139u8, 154u8, 111u8, 166u8, 74u8, 136u8, 127u8, 157u8, + 20u8, 47u8, 220u8, 108u8, 152u8, 108u8, 24u8, 232u8, 11u8, 53u8, 26u8, + 4u8, 23u8, 58u8, 195u8, 61u8, 159u8, 6u8, 139u8, 7u8, 197u8, 88u8, + ], + ) + } + } + } + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::polkadot_runtime_parachains::disputes::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A dispute has been initiated. \\[candidate hash, dispute location\\]"] + pub struct DisputeInitiated( + pub runtime_types::polkadot_core_primitives::CandidateHash, + pub runtime_types::polkadot_runtime_parachains::disputes::DisputeLocation, + ); + impl ::subxt::events::StaticEvent for DisputeInitiated { + const PALLET: &'static str = "ParasDisputes"; + const EVENT: &'static str = "DisputeInitiated"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A dispute has concluded for or against a candidate."] + #[doc = "`\\[para id, candidate hash, dispute result\\]`"] + pub struct DisputeConcluded( + pub runtime_types::polkadot_core_primitives::CandidateHash, + pub runtime_types::polkadot_runtime_parachains::disputes::DisputeResult, + ); + impl ::subxt::events::StaticEvent for DisputeConcluded { + const PALLET: &'static str = "ParasDisputes"; + const EVENT: &'static str = "DisputeConcluded"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A dispute has concluded with supermajority against a candidate."] + #[doc = "Block authors should no longer build on top of this head and should"] + #[doc = "instead revert the block at the given height. This should be the"] + #[doc = "number of the child of the last known valid block in the chain."] + pub struct Revert(pub ::core::primitive::u32); + impl ::subxt::events::StaticEvent for Revert { + const PALLET: &'static str = "ParasDisputes"; + const EVENT: &'static str = "Revert"; + } + } + pub mod storage { + use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod last_pruned_session { + use super::runtime_types; + pub type LastPrunedSession = ::core::primitive::u32; + } + pub mod disputes { + use super::runtime_types; + pub type Disputes = runtime_types::polkadot_primitives::v6::DisputeState< + ::core::primitive::u32, + >; + } + pub mod backers_on_disputes { + use super::runtime_types; + pub type BackersOnDisputes = + ::std::vec::Vec; + } + pub mod included { + use super::runtime_types; + pub type Included = ::core::primitive::u32; + } + pub mod frozen { + use super::runtime_types; + pub type Frozen = ::core::option::Option<::core::primitive::u32>; + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " The last pruned session, if any. All data stored by this module"] + #[doc = " references sessions."] + pub fn last_pruned_session( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec, - (), - ::subxt::storage::address::Yes, + alias_types::last_pruned_session::LastPrunedSession, ::subxt::storage::address::Yes, + (), + (), > { ::subxt::storage::address::Address::new_static( - "Hrmp", - "HrmpIngressChannelsIndex", + "ParasDisputes", + "LastPrunedSession", vec![], [ - 125u8, 229u8, 102u8, 230u8, 74u8, 109u8, 173u8, 67u8, 176u8, 169u8, - 57u8, 24u8, 75u8, 129u8, 246u8, 198u8, 63u8, 49u8, 56u8, 102u8, 149u8, - 139u8, 138u8, 207u8, 150u8, 220u8, 29u8, 208u8, 203u8, 0u8, 93u8, - 105u8, + 98u8, 107u8, 200u8, 158u8, 182u8, 120u8, 24u8, 242u8, 24u8, 163u8, + 237u8, 72u8, 153u8, 19u8, 38u8, 85u8, 239u8, 208u8, 194u8, 22u8, 173u8, + 100u8, 219u8, 10u8, 194u8, 42u8, 120u8, 146u8, 225u8, 62u8, 80u8, + 229u8, ], ) } - #[doc = " Ingress/egress indexes allow to find all the senders and receivers given the opposite side."] - #[doc = " I.e."] - #[doc = ""] - #[doc = " (a) ingress index allows to find all the senders for a given recipient."] - #[doc = " (b) egress index allows to find all the recipients for a given sender."] - #[doc = ""] - #[doc = " Invariants:"] - #[doc = " - for each ingress index entry for `P` each item `I` in the index should present in"] - #[doc = " `HrmpChannels` as `(I, P)`."] - #[doc = " - for each egress index entry for `P` each item `E` in the index should present in"] - #[doc = " `HrmpChannels` as `(P, E)`."] - #[doc = " - there should be no other dangling channels in `HrmpChannels`."] - #[doc = " - the vectors are sorted."] - pub fn hrmp_ingress_channels_index( + #[doc = " All ongoing or concluded disputes for the last several sessions."] + pub fn disputes_iter( &self, - _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, + alias_types::disputes::Disputes, (), + (), + ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Hrmp", - "HrmpIngressChannelsIndex", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], + "ParasDisputes", + "Disputes", + vec![], [ - 125u8, 229u8, 102u8, 230u8, 74u8, 109u8, 173u8, 67u8, 176u8, 169u8, - 57u8, 24u8, 75u8, 129u8, 246u8, 198u8, 63u8, 49u8, 56u8, 102u8, 149u8, - 139u8, 138u8, 207u8, 150u8, 220u8, 29u8, 208u8, 203u8, 0u8, 93u8, - 105u8, + 38u8, 237u8, 141u8, 222u8, 135u8, 82u8, 210u8, 166u8, 192u8, 122u8, + 175u8, 96u8, 91u8, 1u8, 225u8, 182u8, 128u8, 4u8, 159u8, 56u8, 180u8, + 176u8, 157u8, 20u8, 105u8, 202u8, 192u8, 213u8, 164u8, 24u8, 227u8, + 15u8, ], ) } - pub fn hrmp_egress_channels_index_iter( + #[doc = " All ongoing or concluded disputes for the last several sessions."] + pub fn disputes_iter1( &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec, + alias_types::disputes::Disputes, + (), (), - ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Hrmp", - "HrmpEgressChannelsIndex", - vec![], + "ParasDisputes", + "Disputes", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], [ - 237u8, 183u8, 188u8, 57u8, 20u8, 238u8, 166u8, 7u8, 94u8, 155u8, 22u8, - 9u8, 173u8, 209u8, 210u8, 17u8, 160u8, 79u8, 243u8, 4u8, 245u8, 240u8, - 65u8, 195u8, 116u8, 98u8, 206u8, 104u8, 53u8, 64u8, 241u8, 41u8, + 38u8, 237u8, 141u8, 222u8, 135u8, 82u8, 210u8, 166u8, 192u8, 122u8, + 175u8, 96u8, 91u8, 1u8, 225u8, 182u8, 128u8, 4u8, 159u8, 56u8, 180u8, + 176u8, 157u8, 20u8, 105u8, 202u8, 192u8, 213u8, 164u8, 24u8, 227u8, + 15u8, ], ) } - pub fn hrmp_egress_channels_index( + #[doc = " All ongoing or concluded disputes for the last several sessions."] + pub fn disputes( &self, - _0: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _1: impl ::std::borrow::Borrow< + runtime_types::polkadot_core_primitives::CandidateHash, + >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec, - ::subxt::storage::address::Yes, + alias_types::disputes::Disputes, ::subxt::storage::address::Yes, (), + (), > { ::subxt::storage::address::Address::new_static( - "Hrmp", - "HrmpEgressChannelsIndex", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], + "ParasDisputes", + "Disputes", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], [ - 237u8, 183u8, 188u8, 57u8, 20u8, 238u8, 166u8, 7u8, 94u8, 155u8, 22u8, - 9u8, 173u8, 209u8, 210u8, 17u8, 160u8, 79u8, 243u8, 4u8, 245u8, 240u8, - 65u8, 195u8, 116u8, 98u8, 206u8, 104u8, 53u8, 64u8, 241u8, 41u8, + 38u8, 237u8, 141u8, 222u8, 135u8, 82u8, 210u8, 166u8, 192u8, 122u8, + 175u8, 96u8, 91u8, 1u8, 225u8, 182u8, 128u8, 4u8, 159u8, 56u8, 180u8, + 176u8, 157u8, 20u8, 105u8, 202u8, 192u8, 213u8, 164u8, 24u8, 227u8, + 15u8, ], ) } - #[doc = " Storage for the messages for each channel."] - #[doc = " Invariant: cannot be non-empty if the corresponding channel in `HrmpChannels` is `None`."] - pub fn hrmp_channel_contents_iter( + #[doc = " Backing votes stored for each dispute."] + #[doc = " This storage is used for slashing."] + pub fn backers_on_disputes_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec< - runtime_types::polkadot_core_primitives::InboundHrmpMessage< - ::core::primitive::u32, - >, - >, + alias_types::backers_on_disputes::BackersOnDisputes, + (), (), - ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Hrmp", - "HrmpChannelContents", + "ParasDisputes", + "BackersOnDisputes", vec![], [ - 55u8, 16u8, 135u8, 69u8, 54u8, 180u8, 246u8, 124u8, 104u8, 92u8, 45u8, - 18u8, 223u8, 145u8, 43u8, 190u8, 121u8, 59u8, 35u8, 195u8, 234u8, - 219u8, 30u8, 246u8, 168u8, 187u8, 45u8, 171u8, 254u8, 204u8, 60u8, - 121u8, + 136u8, 171u8, 20u8, 204u8, 135u8, 153u8, 144u8, 241u8, 46u8, 193u8, + 65u8, 22u8, 116u8, 161u8, 144u8, 186u8, 31u8, 194u8, 202u8, 225u8, + 14u8, 137u8, 240u8, 243u8, 119u8, 144u8, 102u8, 245u8, 133u8, 126u8, + 103u8, 32u8, ], ) } - #[doc = " Storage for the messages for each channel."] - #[doc = " Invariant: cannot be non-empty if the corresponding channel in `HrmpChannels` is `None`."] - pub fn hrmp_channel_contents( + #[doc = " Backing votes stored for each dispute."] + #[doc = " This storage is used for slashing."] + pub fn backers_on_disputes_iter1( &self, - _0: impl ::std::borrow::Borrow< - runtime_types::polkadot_parachain::primitives::HrmpChannelId, - >, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec< - runtime_types::polkadot_core_primitives::InboundHrmpMessage< - ::core::primitive::u32, - >, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, + alias_types::backers_on_disputes::BackersOnDisputes, + (), (), + ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Hrmp", - "HrmpChannelContents", + "ParasDisputes", + "BackersOnDisputes", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 55u8, 16u8, 135u8, 69u8, 54u8, 180u8, 246u8, 124u8, 104u8, 92u8, 45u8, - 18u8, 223u8, 145u8, 43u8, 190u8, 121u8, 59u8, 35u8, 195u8, 234u8, - 219u8, 30u8, 246u8, 168u8, 187u8, 45u8, 171u8, 254u8, 204u8, 60u8, - 121u8, + 136u8, 171u8, 20u8, 204u8, 135u8, 153u8, 144u8, 241u8, 46u8, 193u8, + 65u8, 22u8, 116u8, 161u8, 144u8, 186u8, 31u8, 194u8, 202u8, 225u8, + 14u8, 137u8, 240u8, 243u8, 119u8, 144u8, 102u8, 245u8, 133u8, 126u8, + 103u8, 32u8, ], ) } - #[doc = " Maintains a mapping that can be used to answer the question: What paras sent a message at"] - #[doc = " the given block number for a given receiver. Invariants:"] - #[doc = " - The inner `Vec` is never empty."] - #[doc = " - The inner `Vec` cannot store two same `ParaId`."] - #[doc = " - The outer vector is sorted ascending by block number and cannot store two items with the"] - #[doc = " same block number."] - pub fn hrmp_channel_digests_iter( + #[doc = " Backing votes stored for each dispute."] + #[doc = " This storage is used for slashing."] + pub fn backers_on_disputes( &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _1: impl ::std::borrow::Borrow< + runtime_types::polkadot_core_primitives::CandidateHash, + >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<( - ::core::primitive::u32, - ::std::vec::Vec, - )>, - (), + alias_types::backers_on_disputes::BackersOnDisputes, ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "ParasDisputes", + "BackersOnDisputes", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 136u8, 171u8, 20u8, 204u8, 135u8, 153u8, 144u8, 241u8, 46u8, 193u8, + 65u8, 22u8, 116u8, 161u8, 144u8, 186u8, 31u8, 194u8, 202u8, 225u8, + 14u8, 137u8, 240u8, 243u8, 119u8, 144u8, 102u8, 245u8, 133u8, 126u8, + 103u8, 32u8, + ], + ) + } + #[doc = " All included blocks on the chain, as well as the block number in this chain that"] + #[doc = " should be reverted back to if the candidate is disputed and determined to be invalid."] + pub fn included_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::included::Included, + (), + (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Hrmp", - "HrmpChannelDigests", + "ParasDisputes", + "Included", vec![], [ - 90u8, 90u8, 139u8, 78u8, 47u8, 2u8, 104u8, 211u8, 42u8, 246u8, 193u8, - 210u8, 142u8, 223u8, 17u8, 136u8, 3u8, 182u8, 25u8, 56u8, 72u8, 72u8, - 162u8, 131u8, 36u8, 34u8, 162u8, 176u8, 159u8, 113u8, 7u8, 207u8, + 47u8, 105u8, 189u8, 233u8, 206u8, 153u8, 162u8, 217u8, 141u8, 118u8, + 31u8, 85u8, 87u8, 53u8, 100u8, 187u8, 31u8, 245u8, 50u8, 171u8, 4u8, + 203u8, 163u8, 109u8, 212u8, 162u8, 86u8, 124u8, 172u8, 157u8, 165u8, + 21u8, ], ) } - #[doc = " Maintains a mapping that can be used to answer the question: What paras sent a message at"] - #[doc = " the given block number for a given receiver. Invariants:"] - #[doc = " - The inner `Vec` is never empty."] - #[doc = " - The inner `Vec` cannot store two same `ParaId`."] - #[doc = " - The outer vector is sorted ascending by block number and cannot store two items with the"] - #[doc = " same block number."] - pub fn hrmp_channel_digests( + #[doc = " All included blocks on the chain, as well as the block number in this chain that"] + #[doc = " should be reverted back to if the candidate is disputed and determined to be invalid."] + pub fn included_iter1( &self, - _0: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<( - ::core::primitive::u32, - ::std::vec::Vec, - )>, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, + alias_types::included::Included, (), + (), + ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Hrmp", - "HrmpChannelDigests", + "ParasDisputes", + "Included", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 90u8, 90u8, 139u8, 78u8, 47u8, 2u8, 104u8, 211u8, 42u8, 246u8, 193u8, - 210u8, 142u8, 223u8, 17u8, 136u8, 3u8, 182u8, 25u8, 56u8, 72u8, 72u8, - 162u8, 131u8, 36u8, 34u8, 162u8, 176u8, 159u8, 113u8, 7u8, 207u8, + 47u8, 105u8, 189u8, 233u8, 206u8, 153u8, 162u8, 217u8, 141u8, 118u8, + 31u8, 85u8, 87u8, 53u8, 100u8, 187u8, 31u8, 245u8, 50u8, 171u8, 4u8, + 203u8, 163u8, 109u8, 212u8, 162u8, 86u8, 124u8, 172u8, 157u8, 165u8, + 21u8, ], ) } - } - } - } - pub mod para_session_info { - use super::root_mod; - use super::runtime_types; - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " Assignment keys for the current session."] - #[doc = " Note that this API is private due to it being prone to 'off-by-one' at session boundaries."] - #[doc = " When in doubt, use `Sessions` API instead."] - pub fn assignment_keys_unsafe( + #[doc = " All included blocks on the chain, as well as the block number in this chain that"] + #[doc = " should be reverted back to if the candidate is disputed and determined to be invalid."] + pub fn included( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _1: impl ::std::borrow::Borrow< + runtime_types::polkadot_core_primitives::CandidateHash, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::included::Included, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "ParasDisputes", + "Included", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 47u8, 105u8, 189u8, 233u8, 206u8, 153u8, 162u8, 217u8, 141u8, 118u8, + 31u8, 85u8, 87u8, 53u8, 100u8, 187u8, 31u8, 245u8, 50u8, 171u8, 4u8, + 203u8, 163u8, 109u8, 212u8, 162u8, 86u8, 124u8, 172u8, 157u8, 165u8, + 21u8, + ], + ) + } + #[doc = " Whether the chain is frozen. Starts as `None`. When this is `Some`,"] + #[doc = " the chain will not accept any new parachain blocks for backing or inclusion,"] + #[doc = " and its value indicates the last valid block number in the chain."] + #[doc = " It can only be set back to `None` by governance intervention."] + pub fn frozen( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec, + alias_types::frozen::Frozen, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( - "ParaSessionInfo", - "AssignmentKeysUnsafe", + "ParasDisputes", + "Frozen", vec![], [ - 51u8, 155u8, 91u8, 101u8, 118u8, 243u8, 134u8, 138u8, 147u8, 59u8, - 195u8, 186u8, 54u8, 187u8, 36u8, 14u8, 91u8, 141u8, 60u8, 139u8, 28u8, - 74u8, 111u8, 232u8, 198u8, 229u8, 61u8, 63u8, 72u8, 214u8, 152u8, 2u8, + 245u8, 136u8, 43u8, 156u8, 7u8, 74u8, 31u8, 190u8, 184u8, 119u8, 182u8, + 66u8, 18u8, 136u8, 30u8, 248u8, 24u8, 121u8, 26u8, 177u8, 169u8, 208u8, + 218u8, 208u8, 80u8, 116u8, 31u8, 144u8, 49u8, 201u8, 198u8, 197u8, ], ) } - #[doc = " The earliest session for which previous session info is stored."] - pub fn earliest_stored_session( + } + } + } + pub mod paras_slashing { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Error` enum of this pallet."] + pub type Error = + runtime_types::polkadot_runtime_parachains::disputes::slashing::pallet::Error; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = + runtime_types::polkadot_runtime_parachains::disputes::slashing::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod alias_types { + use super::runtime_types; + pub mod report_dispute_lost_unsigned { + use super::runtime_types; + pub type DisputeProof = + runtime_types::polkadot_primitives::v6::slashing::DisputeProof; + pub type KeyOwnerProof = runtime_types::sp_session::MembershipProof; + } + } + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ReportDisputeLostUnsigned { + pub dispute_proof: ::std::boxed::Box< + runtime_types::polkadot_primitives::v6::slashing::DisputeProof, + >, + pub key_owner_proof: runtime_types::sp_session::MembershipProof, + } + impl ::subxt::blocks::StaticExtrinsic for ReportDisputeLostUnsigned { + const PALLET: &'static str = "ParasSlashing"; + const CALL: &'static str = "report_dispute_lost_unsigned"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::report_dispute_lost_unsigned`]."] + pub fn report_dispute_lost_unsigned( &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "ParaSessionInfo", - "EarliestStoredSession", - vec![], + dispute_proof: alias_types::report_dispute_lost_unsigned::DisputeProof, + key_owner_proof: alias_types::report_dispute_lost_unsigned::KeyOwnerProof, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "ParasSlashing", + "report_dispute_lost_unsigned", + types::ReportDisputeLostUnsigned { + dispute_proof: ::std::boxed::Box::new(dispute_proof), + key_owner_proof, + }, [ - 139u8, 176u8, 46u8, 139u8, 217u8, 35u8, 62u8, 91u8, 183u8, 7u8, 114u8, - 226u8, 60u8, 237u8, 105u8, 73u8, 20u8, 216u8, 194u8, 205u8, 178u8, - 237u8, 84u8, 66u8, 181u8, 29u8, 31u8, 218u8, 48u8, 60u8, 198u8, 86u8, + 57u8, 99u8, 246u8, 126u8, 203u8, 239u8, 64u8, 182u8, 167u8, 204u8, + 96u8, 221u8, 126u8, 94u8, 254u8, 210u8, 18u8, 182u8, 207u8, 32u8, + 250u8, 249u8, 116u8, 156u8, 210u8, 63u8, 254u8, 74u8, 86u8, 101u8, + 28u8, 229u8, ], ) } - #[doc = " Session information in a rolling window."] - #[doc = " Should have an entry in range `EarliestStoredSession..=CurrentSessionIndex`."] - #[doc = " Does not have any entries before the session index in the first session change notification."] - pub fn sessions_iter( + } + } + pub mod storage { + use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod unapplied_slashes { + use super::runtime_types; + pub type UnappliedSlashes = + runtime_types::polkadot_primitives::v6::slashing::PendingSlashes; + } + pub mod validator_set_counts { + use super::runtime_types; + pub type ValidatorSetCounts = ::core::primitive::u32; + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " Validators pending dispute slashes."] + pub fn unapplied_slashes_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_primitives::v5::SessionInfo, + alias_types::unapplied_slashes::UnappliedSlashes, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "ParaSessionInfo", - "Sessions", + "ParasSlashing", + "UnappliedSlashes", vec![], [ - 254u8, 40u8, 169u8, 18u8, 252u8, 203u8, 49u8, 182u8, 123u8, 19u8, - 241u8, 150u8, 227u8, 153u8, 108u8, 109u8, 66u8, 129u8, 157u8, 27u8, - 130u8, 215u8, 105u8, 18u8, 163u8, 72u8, 182u8, 243u8, 31u8, 157u8, - 103u8, 111u8, + 114u8, 171u8, 137u8, 142u8, 180u8, 125u8, 226u8, 240u8, 99u8, 181u8, + 68u8, 221u8, 91u8, 124u8, 172u8, 93u8, 103u8, 12u8, 95u8, 43u8, 67u8, + 59u8, 29u8, 133u8, 140u8, 17u8, 141u8, 228u8, 145u8, 201u8, 82u8, + 126u8, ], ) } - #[doc = " Session information in a rolling window."] - #[doc = " Should have an entry in range `EarliestStoredSession..=CurrentSessionIndex`."] - #[doc = " Does not have any entries before the session index in the first session change notification."] - pub fn sessions( + #[doc = " Validators pending dispute slashes."] + pub fn unapplied_slashes_iter1( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_primitives::v5::SessionInfo, - ::subxt::storage::address::Yes, + alias_types::unapplied_slashes::UnappliedSlashes, (), (), + ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "ParaSessionInfo", - "Sessions", + "ParasSlashing", + "UnappliedSlashes", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 254u8, 40u8, 169u8, 18u8, 252u8, 203u8, 49u8, 182u8, 123u8, 19u8, - 241u8, 150u8, 227u8, 153u8, 108u8, 109u8, 66u8, 129u8, 157u8, 27u8, - 130u8, 215u8, 105u8, 18u8, 163u8, 72u8, 182u8, 243u8, 31u8, 157u8, - 103u8, 111u8, - ], - ) - } - #[doc = " The validator account keys of the validators actively participating in parachain consensus."] - pub fn account_keys_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<::subxt::utils::AccountId32>, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "ParaSessionInfo", - "AccountKeys", - vec![], - [ - 30u8, 98u8, 58u8, 140u8, 96u8, 231u8, 205u8, 111u8, 194u8, 100u8, - 185u8, 242u8, 210u8, 143u8, 110u8, 144u8, 170u8, 187u8, 62u8, 196u8, - 73u8, 88u8, 118u8, 168u8, 117u8, 116u8, 153u8, 229u8, 108u8, 46u8, - 154u8, 220u8, + 114u8, 171u8, 137u8, 142u8, 180u8, 125u8, 226u8, 240u8, 99u8, 181u8, + 68u8, 221u8, 91u8, 124u8, 172u8, 93u8, 103u8, 12u8, 95u8, 43u8, 67u8, + 59u8, 29u8, 133u8, 140u8, 17u8, 141u8, 228u8, 145u8, 201u8, 82u8, + 126u8, ], ) } - #[doc = " The validator account keys of the validators actively participating in parachain consensus."] - pub fn account_keys( + #[doc = " Validators pending dispute slashes."] + pub fn unapplied_slashes( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _1: impl ::std::borrow::Borrow< + runtime_types::polkadot_core_primitives::CandidateHash, + >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<::subxt::utils::AccountId32>, + alias_types::unapplied_slashes::UnappliedSlashes, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( - "ParaSessionInfo", - "AccountKeys", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], + "ParasSlashing", + "UnappliedSlashes", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], [ - 30u8, 98u8, 58u8, 140u8, 96u8, 231u8, 205u8, 111u8, 194u8, 100u8, - 185u8, 242u8, 210u8, 143u8, 110u8, 144u8, 170u8, 187u8, 62u8, 196u8, - 73u8, 88u8, 118u8, 168u8, 117u8, 116u8, 153u8, 229u8, 108u8, 46u8, - 154u8, 220u8, + 114u8, 171u8, 137u8, 142u8, 180u8, 125u8, 226u8, 240u8, 99u8, 181u8, + 68u8, 221u8, 91u8, 124u8, 172u8, 93u8, 103u8, 12u8, 95u8, 43u8, 67u8, + 59u8, 29u8, 133u8, 140u8, 17u8, 141u8, 228u8, 145u8, 201u8, 82u8, + 126u8, ], ) } - #[doc = " Executor parameter set for a given session index"] - pub fn session_executor_params_iter( + #[doc = " `ValidatorSetCount` per session."] + pub fn validator_set_counts_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_primitives::v5::executor_params::ExecutorParams, + alias_types::validator_set_counts::ValidatorSetCounts, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "ParaSessionInfo", - "SessionExecutorParams", + "ParasSlashing", + "ValidatorSetCounts", vec![], [ - 102u8, 51u8, 28u8, 199u8, 238u8, 229u8, 99u8, 38u8, 116u8, 154u8, - 250u8, 136u8, 240u8, 122u8, 82u8, 13u8, 139u8, 160u8, 149u8, 218u8, - 162u8, 130u8, 109u8, 251u8, 10u8, 109u8, 200u8, 158u8, 32u8, 157u8, - 84u8, 234u8, + 195u8, 220u8, 79u8, 140u8, 114u8, 80u8, 241u8, 103u8, 4u8, 7u8, 53u8, + 100u8, 16u8, 78u8, 104u8, 171u8, 134u8, 110u8, 158u8, 191u8, 37u8, + 94u8, 211u8, 26u8, 17u8, 70u8, 50u8, 34u8, 70u8, 234u8, 186u8, 69u8, ], ) } - #[doc = " Executor parameter set for a given session index"] - pub fn session_executor_params( + #[doc = " `ValidatorSetCount` per session."] + pub fn validator_set_counts( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_primitives::v5::executor_params::ExecutorParams, + alias_types::validator_set_counts::ValidatorSetCounts, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( - "ParaSessionInfo", - "SessionExecutorParams", + "ParasSlashing", + "ValidatorSetCounts", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 102u8, 51u8, 28u8, 199u8, 238u8, 229u8, 99u8, 38u8, 116u8, 154u8, - 250u8, 136u8, 240u8, 122u8, 82u8, 13u8, 139u8, 160u8, 149u8, 218u8, - 162u8, 130u8, 109u8, 251u8, 10u8, 109u8, 200u8, 158u8, 32u8, 157u8, - 84u8, 234u8, + 195u8, 220u8, 79u8, 140u8, 114u8, 80u8, 241u8, 103u8, 4u8, 7u8, 53u8, + 100u8, 16u8, 78u8, 104u8, 171u8, 134u8, 110u8, 158u8, 191u8, 37u8, + 94u8, 211u8, 26u8, 17u8, 70u8, 50u8, 34u8, 70u8, 234u8, 186u8, 69u8, ], ) } } } } - pub mod paras_disputes { + pub mod message_queue { use super::root_mod; use super::runtime_types; #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::polkadot_runtime_parachains::disputes::pallet::Error; + pub type Error = runtime_types::pallet_message_queue::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::polkadot_runtime_parachains::disputes::pallet::Call; + pub type Call = runtime_types::pallet_message_queue::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod alias_types { + use super::runtime_types; + pub mod reap_page { + use super::runtime_types; + pub type MessageOrigin = runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin ; + pub type PageIndex = ::core::primitive::u32; + } + pub mod execute_overweight { + use super::runtime_types; + pub type MessageOrigin = runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin ; + pub type Page = ::core::primitive::u32; + pub type Index = ::core::primitive::u32; + pub type WeightLimit = runtime_types::sp_weights::weight_v2::Weight; + } + } pub mod types { use super::runtime_types; #[derive( @@ -32568,31 +32107,78 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ForceUnfreeze; - impl ::subxt::blocks::StaticExtrinsic for ForceUnfreeze { - const PALLET: &'static str = "ParasDisputes"; - const CALL: &'static str = "force_unfreeze"; + pub struct ReapPage { pub message_origin : runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin , pub page_index : :: core :: primitive :: u32 , } + impl ::subxt::blocks::StaticExtrinsic for ReapPage { + const PALLET: &'static str = "MessageQueue"; + const CALL: &'static str = "reap_page"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ExecuteOverweight { pub message_origin : runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin , pub page : :: core :: primitive :: u32 , pub index : :: core :: primitive :: u32 , pub weight_limit : runtime_types :: sp_weights :: weight_v2 :: Weight , } + impl ::subxt::blocks::StaticExtrinsic for ExecuteOverweight { + const PALLET: &'static str = "MessageQueue"; + const CALL: &'static str = "execute_overweight"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::force_unfreeze`]."] - pub fn force_unfreeze(&self) -> ::subxt::tx::Payload { + #[doc = "See [`Pallet::reap_page`]."] + pub fn reap_page( + &self, + message_origin: alias_types::reap_page::MessageOrigin, + page_index: alias_types::reap_page::PageIndex, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "ParasDisputes", - "force_unfreeze", - types::ForceUnfreeze {}, + "MessageQueue", + "reap_page", + types::ReapPage { + message_origin, + page_index, + }, [ - 148u8, 19u8, 139u8, 154u8, 111u8, 166u8, 74u8, 136u8, 127u8, 157u8, - 20u8, 47u8, 220u8, 108u8, 152u8, 108u8, 24u8, 232u8, 11u8, 53u8, 26u8, - 4u8, 23u8, 58u8, 195u8, 61u8, 159u8, 6u8, 139u8, 7u8, 197u8, 88u8, + 217u8, 3u8, 106u8, 158u8, 151u8, 194u8, 234u8, 4u8, 254u8, 4u8, 200u8, + 201u8, 107u8, 140u8, 220u8, 201u8, 245u8, 14u8, 23u8, 156u8, 41u8, + 106u8, 39u8, 90u8, 214u8, 1u8, 183u8, 45u8, 3u8, 83u8, 242u8, 30u8, + ], + ) + } + #[doc = "See [`Pallet::execute_overweight`]."] + pub fn execute_overweight( + &self, + message_origin: alias_types::execute_overweight::MessageOrigin, + page: alias_types::execute_overweight::Page, + index: alias_types::execute_overweight::Index, + weight_limit: alias_types::execute_overweight::WeightLimit, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "MessageQueue", + "execute_overweight", + types::ExecuteOverweight { + message_origin, + page, + index, + weight_limit, + }, + [ + 101u8, 2u8, 86u8, 225u8, 217u8, 229u8, 143u8, 214u8, 146u8, 190u8, + 182u8, 102u8, 251u8, 18u8, 179u8, 187u8, 113u8, 29u8, 182u8, 24u8, + 34u8, 179u8, 64u8, 249u8, 139u8, 76u8, 50u8, 238u8, 132u8, 167u8, + 115u8, 141u8, ], ) } } } #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::polkadot_runtime_parachains::disputes::pallet::Event; + pub type Event = runtime_types::pallet_message_queue::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -32605,14 +32191,16 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A dispute has been initiated. \\[candidate hash, dispute location\\]"] - pub struct DisputeInitiated( - pub runtime_types::polkadot_core_primitives::CandidateHash, - pub runtime_types::polkadot_runtime_parachains::disputes::DisputeLocation, - ); - impl ::subxt::events::StaticEvent for DisputeInitiated { - const PALLET: &'static str = "ParasDisputes"; - const EVENT: &'static str = "DisputeInitiated"; + #[doc = "Message discarded due to an error in the `MessageProcessor` (usually a format error)."] + pub struct ProcessingFailed { + pub id: [::core::primitive::u8; 32usize], + pub origin: + runtime_types::polkadot_runtime_parachains::inclusion::AggregateMessageOrigin, + pub error: runtime_types::frame_support::traits::messages::ProcessMessageError, + } + impl ::subxt::events::StaticEvent for ProcessingFailed { + const PALLET: &'static str = "MessageQueue"; + const EVENT: &'static str = "ProcessingFailed"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -32624,18 +32212,19 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A dispute has concluded for or against a candidate."] - #[doc = "`\\[para id, candidate hash, dispute result\\]`"] - pub struct DisputeConcluded( - pub runtime_types::polkadot_core_primitives::CandidateHash, - pub runtime_types::polkadot_runtime_parachains::disputes::DisputeResult, - ); - impl ::subxt::events::StaticEvent for DisputeConcluded { - const PALLET: &'static str = "ParasDisputes"; - const EVENT: &'static str = "DisputeConcluded"; + #[doc = "Message is processed."] + pub struct Processed { + pub id: [::core::primitive::u8; 32usize], + pub origin: + runtime_types::polkadot_runtime_parachains::inclusion::AggregateMessageOrigin, + pub weight_used: runtime_types::sp_weights::weight_v2::Weight, + pub success: ::core::primitive::bool, + } + impl ::subxt::events::StaticEvent for Processed { + const PALLET: &'static str = "MessageQueue"; + const EVENT: &'static str = "Processed"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -32645,317 +32234,301 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A dispute has concluded with supermajority against a candidate."] - #[doc = "Block authors should no longer build on top of this head and should"] - #[doc = "instead revert the block at the given height. This should be the"] - #[doc = "number of the child of the last known valid block in the chain."] - pub struct Revert(pub ::core::primitive::u32); - impl ::subxt::events::StaticEvent for Revert { - const PALLET: &'static str = "ParasDisputes"; - const EVENT: &'static str = "Revert"; + #[doc = "Message placed in overweight queue."] + pub struct OverweightEnqueued { + pub id: [::core::primitive::u8; 32usize], + pub origin: + runtime_types::polkadot_runtime_parachains::inclusion::AggregateMessageOrigin, + pub page_index: ::core::primitive::u32, + pub message_index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for OverweightEnqueued { + const PALLET: &'static str = "MessageQueue"; + const EVENT: &'static str = "OverweightEnqueued"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "This page was reaped."] + pub struct PageReaped { + pub origin: + runtime_types::polkadot_runtime_parachains::inclusion::AggregateMessageOrigin, + pub index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for PageReaped { + const PALLET: &'static str = "MessageQueue"; + const EVENT: &'static str = "PageReaped"; } } pub mod storage { use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod book_state_for { + use super::runtime_types; + pub type BookStateFor = runtime_types :: pallet_message_queue :: BookState < runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin > ; + } + pub mod service_head { + use super::runtime_types; + pub type ServiceHead = runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin ; + } + pub mod pages { + use super::runtime_types; + pub type Pages = + runtime_types::pallet_message_queue::Page<::core::primitive::u32>; + } + } pub struct StorageApi; impl StorageApi { - #[doc = " The last pruned session, if any. All data stored by this module"] - #[doc = " references sessions."] - pub fn last_pruned_session( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "ParasDisputes", - "LastPrunedSession", - vec![], - [ - 98u8, 107u8, 200u8, 158u8, 182u8, 120u8, 24u8, 242u8, 24u8, 163u8, - 237u8, 72u8, 153u8, 19u8, 38u8, 85u8, 239u8, 208u8, 194u8, 22u8, 173u8, - 100u8, 219u8, 10u8, 194u8, 42u8, 120u8, 146u8, 225u8, 62u8, 80u8, - 229u8, - ], - ) - } - #[doc = " All ongoing or concluded disputes for the last several sessions."] - pub fn disputes_iter( + #[doc = " The index of the first and last (non-empty) pages."] + pub fn book_state_for_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_primitives::v5::DisputeState<::core::primitive::u32>, - (), + alias_types::book_state_for::BookStateFor, (), ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "ParasDisputes", - "Disputes", - vec![], - [ - 38u8, 237u8, 141u8, 222u8, 135u8, 82u8, 210u8, 166u8, 192u8, 122u8, - 175u8, 96u8, 91u8, 1u8, 225u8, 182u8, 128u8, 4u8, 159u8, 56u8, 180u8, - 176u8, 157u8, 20u8, 105u8, 202u8, 192u8, 213u8, 164u8, 24u8, 227u8, - 15u8, - ], - ) - } - #[doc = " All ongoing or concluded disputes for the last several sessions."] - pub fn disputes_iter1( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_primitives::v5::DisputeState<::core::primitive::u32>, - (), - (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "ParasDisputes", - "Disputes", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], + "MessageQueue", + "BookStateFor", + vec![], [ - 38u8, 237u8, 141u8, 222u8, 135u8, 82u8, 210u8, 166u8, 192u8, 122u8, - 175u8, 96u8, 91u8, 1u8, 225u8, 182u8, 128u8, 4u8, 159u8, 56u8, 180u8, - 176u8, 157u8, 20u8, 105u8, 202u8, 192u8, 213u8, 164u8, 24u8, 227u8, - 15u8, + 32u8, 61u8, 161u8, 81u8, 134u8, 136u8, 252u8, 113u8, 204u8, 115u8, + 206u8, 180u8, 33u8, 185u8, 137u8, 155u8, 178u8, 189u8, 234u8, 201u8, + 31u8, 230u8, 156u8, 72u8, 37u8, 56u8, 152u8, 91u8, 50u8, 82u8, 191u8, + 2u8, ], ) } - #[doc = " All ongoing or concluded disputes for the last several sessions."] - pub fn disputes( + #[doc = " The index of the first and last (non-empty) pages."] + pub fn book_state_for( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow< - runtime_types::polkadot_core_primitives::CandidateHash, - >, + _0 : impl :: std :: borrow :: Borrow < runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_primitives::v5::DisputeState<::core::primitive::u32>, + alias_types::book_state_for::BookStateFor, ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "ParasDisputes", - "Disputes", - vec![ - ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), - ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), - ], - [ - 38u8, 237u8, 141u8, 222u8, 135u8, 82u8, 210u8, 166u8, 192u8, 122u8, - 175u8, 96u8, 91u8, 1u8, 225u8, 182u8, 128u8, 4u8, 159u8, 56u8, 180u8, - 176u8, 157u8, 20u8, 105u8, 202u8, 192u8, 213u8, 164u8, 24u8, 227u8, - 15u8, - ], - ) - } - #[doc = " Backing votes stored for each dispute."] - #[doc = " This storage is used for slashing."] - pub fn backers_on_disputes_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec, - (), - (), ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "ParasDisputes", - "BackersOnDisputes", - vec![], - [ - 136u8, 171u8, 20u8, 204u8, 135u8, 153u8, 144u8, 241u8, 46u8, 193u8, - 65u8, 22u8, 116u8, 161u8, 144u8, 186u8, 31u8, 194u8, 202u8, 225u8, - 14u8, 137u8, 240u8, 243u8, 119u8, 144u8, 102u8, 245u8, 133u8, 126u8, - 103u8, 32u8, - ], - ) - } - #[doc = " Backing votes stored for each dispute."] - #[doc = " This storage is used for slashing."] - pub fn backers_on_disputes_iter1( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec, - (), (), - ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "ParasDisputes", - "BackersOnDisputes", + "MessageQueue", + "BookStateFor", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 136u8, 171u8, 20u8, 204u8, 135u8, 153u8, 144u8, 241u8, 46u8, 193u8, - 65u8, 22u8, 116u8, 161u8, 144u8, 186u8, 31u8, 194u8, 202u8, 225u8, - 14u8, 137u8, 240u8, 243u8, 119u8, 144u8, 102u8, 245u8, 133u8, 126u8, - 103u8, 32u8, + 32u8, 61u8, 161u8, 81u8, 134u8, 136u8, 252u8, 113u8, 204u8, 115u8, + 206u8, 180u8, 33u8, 185u8, 137u8, 155u8, 178u8, 189u8, 234u8, 201u8, + 31u8, 230u8, 156u8, 72u8, 37u8, 56u8, 152u8, 91u8, 50u8, 82u8, 191u8, + 2u8, ], ) } - #[doc = " Backing votes stored for each dispute."] - #[doc = " This storage is used for slashing."] - pub fn backers_on_disputes( + #[doc = " The origin at which we should begin servicing."] + pub fn service_head( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow< - runtime_types::polkadot_core_primitives::CandidateHash, - >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec, + alias_types::service_head::ServiceHead, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( - "ParasDisputes", - "BackersOnDisputes", - vec![ - ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), - ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), - ], + "MessageQueue", + "ServiceHead", + vec![], [ - 136u8, 171u8, 20u8, 204u8, 135u8, 153u8, 144u8, 241u8, 46u8, 193u8, - 65u8, 22u8, 116u8, 161u8, 144u8, 186u8, 31u8, 194u8, 202u8, 225u8, - 14u8, 137u8, 240u8, 243u8, 119u8, 144u8, 102u8, 245u8, 133u8, 126u8, - 103u8, 32u8, + 17u8, 130u8, 229u8, 193u8, 127u8, 237u8, 60u8, 232u8, 99u8, 109u8, + 102u8, 228u8, 124u8, 103u8, 24u8, 188u8, 151u8, 121u8, 55u8, 97u8, + 85u8, 63u8, 131u8, 60u8, 99u8, 12u8, 88u8, 230u8, 86u8, 50u8, 12u8, + 75u8, ], ) } - #[doc = " All included blocks on the chain, as well as the block number in this chain that"] - #[doc = " should be reverted back to if the candidate is disputed and determined to be invalid."] - pub fn included_iter( + #[doc = " The map of page indices to pages."] + pub fn pages_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, + alias_types::pages::Pages, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "ParasDisputes", - "Included", + "MessageQueue", + "Pages", vec![], [ - 47u8, 105u8, 189u8, 233u8, 206u8, 153u8, 162u8, 217u8, 141u8, 118u8, - 31u8, 85u8, 87u8, 53u8, 100u8, 187u8, 31u8, 245u8, 50u8, 171u8, 4u8, - 203u8, 163u8, 109u8, 212u8, 162u8, 86u8, 124u8, 172u8, 157u8, 165u8, - 21u8, + 56u8, 181u8, 157u8, 16u8, 157u8, 123u8, 106u8, 93u8, 199u8, 208u8, + 153u8, 53u8, 168u8, 188u8, 124u8, 77u8, 140u8, 163u8, 113u8, 16u8, + 232u8, 47u8, 10u8, 185u8, 113u8, 230u8, 47u8, 91u8, 253u8, 196u8, 95u8, + 102u8, ], ) } - #[doc = " All included blocks on the chain, as well as the block number in this chain that"] - #[doc = " should be reverted back to if the candidate is disputed and determined to be invalid."] - pub fn included_iter1( + #[doc = " The map of page indices to pages."] + pub fn pages_iter1( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0 : impl :: std :: borrow :: Borrow < runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, + alias_types::pages::Pages, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "ParasDisputes", - "Included", + "MessageQueue", + "Pages", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 47u8, 105u8, 189u8, 233u8, 206u8, 153u8, 162u8, 217u8, 141u8, 118u8, - 31u8, 85u8, 87u8, 53u8, 100u8, 187u8, 31u8, 245u8, 50u8, 171u8, 4u8, - 203u8, 163u8, 109u8, 212u8, 162u8, 86u8, 124u8, 172u8, 157u8, 165u8, - 21u8, + 56u8, 181u8, 157u8, 16u8, 157u8, 123u8, 106u8, 93u8, 199u8, 208u8, + 153u8, 53u8, 168u8, 188u8, 124u8, 77u8, 140u8, 163u8, 113u8, 16u8, + 232u8, 47u8, 10u8, 185u8, 113u8, 230u8, 47u8, 91u8, 253u8, 196u8, 95u8, + 102u8, ], ) } - #[doc = " All included blocks on the chain, as well as the block number in this chain that"] - #[doc = " should be reverted back to if the candidate is disputed and determined to be invalid."] - pub fn included( + #[doc = " The map of page indices to pages."] + pub fn pages( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow< - runtime_types::polkadot_core_primitives::CandidateHash, - >, + _0 : impl :: std :: borrow :: Borrow < runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin >, + _1: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, + alias_types::pages::Pages, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( - "ParasDisputes", - "Included", + "MessageQueue", + "Pages", vec![ ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), ], [ - 47u8, 105u8, 189u8, 233u8, 206u8, 153u8, 162u8, 217u8, 141u8, 118u8, - 31u8, 85u8, 87u8, 53u8, 100u8, 187u8, 31u8, 245u8, 50u8, 171u8, 4u8, - 203u8, 163u8, 109u8, 212u8, 162u8, 86u8, 124u8, 172u8, 157u8, 165u8, - 21u8, + 56u8, 181u8, 157u8, 16u8, 157u8, 123u8, 106u8, 93u8, 199u8, 208u8, + 153u8, 53u8, 168u8, 188u8, 124u8, 77u8, 140u8, 163u8, 113u8, 16u8, + 232u8, 47u8, 10u8, 185u8, 113u8, 230u8, 47u8, 91u8, 253u8, 196u8, 95u8, + 102u8, ], ) } - #[doc = " Whether the chain is frozen. Starts as `None`. When this is `Some`,"] - #[doc = " the chain will not accept any new parachain blocks for backing or inclusion,"] - #[doc = " and its value indicates the last valid block number in the chain."] - #[doc = " It can only be set back to `None` by governance intervention."] - pub fn frozen( + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The size of the page; this implies the maximum message size which can be sent."] + #[doc = ""] + #[doc = " A good value depends on the expected message sizes, their weights, the weight that is"] + #[doc = " available for processing them and the maximal needed message size. The maximal message"] + #[doc = " size is slightly lower than this as defined by [`MaxMessageLenOf`]."] + pub fn heap_size(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "MessageQueue", + "HeapSize", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The maximum number of stale pages (i.e. of overweight messages) allowed before culling"] + #[doc = " can happen. Once there are more stale pages than this, then historical pages may be"] + #[doc = " dropped, even if they contain unprocessed overweight messages."] + pub fn max_stale(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "MessageQueue", + "MaxStale", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The amount of weight (if any) which should be provided to the message queue for"] + #[doc = " servicing enqueued items."] + #[doc = ""] + #[doc = " This may be legitimately `None` in the case that you will call"] + #[doc = " `ServiceQueues::service_queues` manually."] + pub fn service_weight( &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::option::Option<::core::primitive::u32>, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), + ) -> ::subxt::constants::Address< + ::core::option::Option, > { - ::subxt::storage::address::Address::new_static( - "ParasDisputes", - "Frozen", - vec![], + ::subxt::constants::Address::new_static( + "MessageQueue", + "ServiceWeight", [ - 245u8, 136u8, 43u8, 156u8, 7u8, 74u8, 31u8, 190u8, 184u8, 119u8, 182u8, - 66u8, 18u8, 136u8, 30u8, 248u8, 24u8, 121u8, 26u8, 177u8, 169u8, 208u8, - 218u8, 208u8, 80u8, 116u8, 31u8, 144u8, 49u8, 201u8, 198u8, 197u8, + 204u8, 140u8, 63u8, 167u8, 49u8, 8u8, 148u8, 163u8, 190u8, 224u8, 15u8, + 103u8, 86u8, 153u8, 248u8, 117u8, 223u8, 117u8, 210u8, 80u8, 205u8, + 155u8, 40u8, 11u8, 59u8, 63u8, 129u8, 156u8, 17u8, 83u8, 177u8, 250u8, ], ) } } } } - pub mod paras_slashing { + pub mod para_assignment_provider { + use super::root_mod; + use super::runtime_types; + pub mod storage { + use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + } + pub struct StorageApi; + impl StorageApi {} + } + } + pub mod on_demand_assignment_provider { use super::root_mod; use super::runtime_types; #[doc = "The `Error` enum of this pallet."] pub type Error = - runtime_types::polkadot_runtime_parachains::disputes::slashing::pallet::Error; + runtime_types::polkadot_runtime_parachains::assigner_on_demand::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = - runtime_types::polkadot_runtime_parachains::disputes::slashing::pallet::Call; + runtime_types::polkadot_runtime_parachains::assigner_on_demand::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod alias_types { + use super::runtime_types; + pub mod place_order_allow_death { + use super::runtime_types; + pub type MaxAmount = ::core::primitive::u128; + pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; + } + pub mod place_order_keep_alive { + use super::runtime_types; + pub type MaxAmount = ::core::primitive::u128; + pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; + } + } pub mod types { use super::runtime_types; #[derive( @@ -32968,170 +32541,267 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ReportDisputeLostUnsigned { - pub dispute_proof: ::std::boxed::Box< - runtime_types::polkadot_primitives::v5::slashing::DisputeProof, - >, - pub key_owner_proof: runtime_types::sp_session::MembershipProof, + pub struct PlaceOrderAllowDeath { + pub max_amount: ::core::primitive::u128, + pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, } - impl ::subxt::blocks::StaticExtrinsic for ReportDisputeLostUnsigned { - const PALLET: &'static str = "ParasSlashing"; - const CALL: &'static str = "report_dispute_lost_unsigned"; + impl ::subxt::blocks::StaticExtrinsic for PlaceOrderAllowDeath { + const PALLET: &'static str = "OnDemandAssignmentProvider"; + const CALL: &'static str = "place_order_allow_death"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct PlaceOrderKeepAlive { + pub max_amount: ::core::primitive::u128, + pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, + } + impl ::subxt::blocks::StaticExtrinsic for PlaceOrderKeepAlive { + const PALLET: &'static str = "OnDemandAssignmentProvider"; + const CALL: &'static str = "place_order_keep_alive"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::report_dispute_lost_unsigned`]."] - pub fn report_dispute_lost_unsigned( + #[doc = "See [`Pallet::place_order_allow_death`]."] + pub fn place_order_allow_death( &self, - dispute_proof: runtime_types::polkadot_primitives::v5::slashing::DisputeProof, - key_owner_proof: runtime_types::sp_session::MembershipProof, - ) -> ::subxt::tx::Payload { + max_amount: alias_types::place_order_allow_death::MaxAmount, + para_id: alias_types::place_order_allow_death::ParaId, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "ParasSlashing", - "report_dispute_lost_unsigned", - types::ReportDisputeLostUnsigned { - dispute_proof: ::std::boxed::Box::new(dispute_proof), - key_owner_proof, + "OnDemandAssignmentProvider", + "place_order_allow_death", + types::PlaceOrderAllowDeath { + max_amount, + para_id, }, [ - 57u8, 99u8, 246u8, 126u8, 203u8, 239u8, 64u8, 182u8, 167u8, 204u8, - 96u8, 221u8, 126u8, 94u8, 254u8, 210u8, 18u8, 182u8, 207u8, 32u8, - 250u8, 249u8, 116u8, 156u8, 210u8, 63u8, 254u8, 74u8, 86u8, 101u8, - 28u8, 229u8, + 42u8, 115u8, 192u8, 118u8, 20u8, 174u8, 114u8, 94u8, 177u8, 195u8, + 175u8, 214u8, 175u8, 25u8, 167u8, 135u8, 194u8, 251u8, 186u8, 185u8, + 218u8, 153u8, 182u8, 166u8, 28u8, 238u8, 72u8, 64u8, 115u8, 67u8, 58u8, + 165u8, + ], + ) + } + #[doc = "See [`Pallet::place_order_keep_alive`]."] + pub fn place_order_keep_alive( + &self, + max_amount: alias_types::place_order_keep_alive::MaxAmount, + para_id: alias_types::place_order_keep_alive::ParaId, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "OnDemandAssignmentProvider", + "place_order_keep_alive", + types::PlaceOrderKeepAlive { + max_amount, + para_id, + }, + [ + 112u8, 56u8, 202u8, 218u8, 85u8, 138u8, 45u8, 213u8, 119u8, 36u8, 62u8, + 138u8, 217u8, 95u8, 25u8, 86u8, 119u8, 192u8, 57u8, 245u8, 34u8, 225u8, + 247u8, 116u8, 114u8, 230u8, 130u8, 180u8, 163u8, 190u8, 106u8, 5u8, ], ) } } } + #[doc = "The `Event` enum of this pallet"] + pub type Event = + runtime_types::polkadot_runtime_parachains::assigner_on_demand::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An order was placed at some spot price amount."] + pub struct OnDemandOrderPlaced { + pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub spot_price: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for OnDemandOrderPlaced { + const PALLET: &'static str = "OnDemandAssignmentProvider"; + const EVENT: &'static str = "OnDemandOrderPlaced"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The value of the spot traffic multiplier changed."] + pub struct SpotTrafficSet { + pub traffic: runtime_types::sp_arithmetic::fixed_point::FixedU128, + } + impl ::subxt::events::StaticEvent for SpotTrafficSet { + const PALLET: &'static str = "OnDemandAssignmentProvider"; + const EVENT: &'static str = "SpotTrafficSet"; + } + } pub mod storage { use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod spot_traffic { + use super::runtime_types; + pub type SpotTraffic = runtime_types::sp_arithmetic::fixed_point::FixedU128; + } + pub mod on_demand_queue { + use super::runtime_types; + pub type OnDemandQueue = ::std::vec::Vec< + runtime_types::polkadot_runtime_parachains::scheduler::common::Assignment, + >; + } + pub mod para_id_affinity { + use super::runtime_types; + pub type ParaIdAffinity = runtime_types :: polkadot_runtime_parachains :: assigner_on_demand :: CoreAffinityCount ; + } + } pub struct StorageApi; impl StorageApi { - #[doc = " Validators pending dispute slashes."] - pub fn unapplied_slashes_iter( + #[doc = " Keeps track of the multiplier used to calculate the current spot price for the on demand"] + #[doc = " assigner."] + pub fn spot_traffic( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_primitives::v5::slashing::PendingSlashes, - (), - (), + alias_types::spot_traffic::SpotTraffic, ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), > { ::subxt::storage::address::Address::new_static( - "ParasSlashing", - "UnappliedSlashes", + "OnDemandAssignmentProvider", + "SpotTraffic", vec![], [ - 114u8, 171u8, 137u8, 142u8, 180u8, 125u8, 226u8, 240u8, 99u8, 181u8, - 68u8, 221u8, 91u8, 124u8, 172u8, 93u8, 103u8, 12u8, 95u8, 43u8, 67u8, - 59u8, 29u8, 133u8, 140u8, 17u8, 141u8, 228u8, 145u8, 201u8, 82u8, - 126u8, + 8u8, 236u8, 233u8, 156u8, 211u8, 45u8, 192u8, 58u8, 108u8, 247u8, 47u8, + 97u8, 229u8, 26u8, 188u8, 67u8, 98u8, 43u8, 11u8, 11u8, 1u8, 127u8, + 15u8, 75u8, 25u8, 19u8, 220u8, 16u8, 121u8, 223u8, 207u8, 226u8, ], ) } - #[doc = " Validators pending dispute slashes."] - pub fn unapplied_slashes_iter1( + #[doc = " The order storage entry. Uses a VecDeque to be able to push to the front of the"] + #[doc = " queue from the scheduler on session boundaries."] + pub fn on_demand_queue( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_primitives::v5::slashing::PendingSlashes, - (), - (), + alias_types::on_demand_queue::OnDemandQueue, ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "ParasSlashing", - "UnappliedSlashes", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 114u8, 171u8, 137u8, 142u8, 180u8, 125u8, 226u8, 240u8, 99u8, 181u8, - 68u8, 221u8, 91u8, 124u8, 172u8, 93u8, 103u8, 12u8, 95u8, 43u8, 67u8, - 59u8, 29u8, 133u8, 140u8, 17u8, 141u8, 228u8, 145u8, 201u8, 82u8, - 126u8, - ], - ) - } - #[doc = " Validators pending dispute slashes."] - pub fn unapplied_slashes( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow< - runtime_types::polkadot_core_primitives::CandidateHash, - >, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_primitives::v5::slashing::PendingSlashes, ::subxt::storage::address::Yes, (), - (), > { ::subxt::storage::address::Address::new_static( - "ParasSlashing", - "UnappliedSlashes", - vec![ - ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), - ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), - ], + "OnDemandAssignmentProvider", + "OnDemandQueue", + vec![], [ - 114u8, 171u8, 137u8, 142u8, 180u8, 125u8, 226u8, 240u8, 99u8, 181u8, - 68u8, 221u8, 91u8, 124u8, 172u8, 93u8, 103u8, 12u8, 95u8, 43u8, 67u8, - 59u8, 29u8, 133u8, 140u8, 17u8, 141u8, 228u8, 145u8, 201u8, 82u8, - 126u8, + 241u8, 10u8, 89u8, 240u8, 227u8, 90u8, 218u8, 35u8, 80u8, 244u8, 219u8, + 112u8, 177u8, 143u8, 43u8, 228u8, 224u8, 165u8, 217u8, 65u8, 17u8, + 182u8, 61u8, 173u8, 214u8, 140u8, 224u8, 68u8, 68u8, 226u8, 208u8, + 156u8, ], ) } - #[doc = " `ValidatorSetCount` per session."] - pub fn validator_set_counts_iter( + #[doc = " Maps a `ParaId` to `CoreIndex` and keeps track of how many assignments the scheduler has in"] + #[doc = " it's lookahead. Keeping track of this affinity prevents parallel execution of the same"] + #[doc = " `ParaId` on two or more `CoreIndex`es."] + pub fn para_id_affinity_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, + alias_types::para_id_affinity::ParaIdAffinity, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "ParasSlashing", - "ValidatorSetCounts", + "OnDemandAssignmentProvider", + "ParaIdAffinity", vec![], [ - 195u8, 220u8, 79u8, 140u8, 114u8, 80u8, 241u8, 103u8, 4u8, 7u8, 53u8, - 100u8, 16u8, 78u8, 104u8, 171u8, 134u8, 110u8, 158u8, 191u8, 37u8, - 94u8, 211u8, 26u8, 17u8, 70u8, 50u8, 34u8, 70u8, 234u8, 186u8, 69u8, + 145u8, 117u8, 2u8, 170u8, 99u8, 68u8, 166u8, 236u8, 247u8, 80u8, 202u8, + 87u8, 116u8, 244u8, 218u8, 172u8, 41u8, 187u8, 170u8, 163u8, 187u8, + 13u8, 9u8, 19u8, 55u8, 167u8, 67u8, 30u8, 57u8, 162u8, 226u8, 65u8, ], ) } - #[doc = " `ValidatorSetCount` per session."] - pub fn validator_set_counts( + #[doc = " Maps a `ParaId` to `CoreIndex` and keeps track of how many assignments the scheduler has in"] + #[doc = " it's lookahead. Keeping track of this affinity prevents parallel execution of the same"] + #[doc = " `ParaId` on two or more `CoreIndex`es."] + pub fn para_id_affinity( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow< + runtime_types::polkadot_parachain_primitives::primitives::Id, + >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, + alias_types::para_id_affinity::ParaIdAffinity, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( - "ParasSlashing", - "ValidatorSetCounts", + "OnDemandAssignmentProvider", + "ParaIdAffinity", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 195u8, 220u8, 79u8, 140u8, 114u8, 80u8, 241u8, 103u8, 4u8, 7u8, 53u8, - 100u8, 16u8, 78u8, 104u8, 171u8, 134u8, 110u8, 158u8, 191u8, 37u8, - 94u8, 211u8, 26u8, 17u8, 70u8, 50u8, 34u8, 70u8, 234u8, 186u8, 69u8, + 145u8, 117u8, 2u8, 170u8, 99u8, 68u8, 166u8, 236u8, 247u8, 80u8, 202u8, + 87u8, 116u8, 244u8, 218u8, 172u8, 41u8, 187u8, 170u8, 163u8, 187u8, + 13u8, 9u8, 19u8, 55u8, 167u8, 67u8, 30u8, 57u8, 162u8, 226u8, 65u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The default value for the spot traffic multiplier."] + pub fn traffic_default_value( + &self, + ) -> ::subxt::constants::Address + { + ::subxt::constants::Address::new_static( + "OnDemandAssignmentProvider", + "TrafficDefaultValue", + [ + 62u8, 145u8, 102u8, 227u8, 159u8, 92u8, 27u8, 54u8, 159u8, 228u8, + 193u8, 99u8, 75u8, 196u8, 26u8, 250u8, 229u8, 230u8, 88u8, 109u8, + 246u8, 100u8, 152u8, 158u8, 14u8, 25u8, 224u8, 173u8, 224u8, 41u8, + 105u8, 231u8, ], ) } } } } + pub mod parachains_assignment_provider { + use super::root_mod; + use super::runtime_types; + } pub mod registrar { use super::root_mod; use super::runtime_types; @@ -33143,6 +32813,59 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod alias_types { + use super::runtime_types; + pub mod register { + use super::runtime_types; + pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type GenesisHead = + runtime_types::polkadot_parachain_primitives::primitives::HeadData; + pub type ValidationCode = + runtime_types::polkadot_parachain_primitives::primitives::ValidationCode; + } + pub mod force_register { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Deposit = ::core::primitive::u128; + pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type GenesisHead = + runtime_types::polkadot_parachain_primitives::primitives::HeadData; + pub type ValidationCode = + runtime_types::polkadot_parachain_primitives::primitives::ValidationCode; + } + pub mod deregister { + use super::runtime_types; + pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; + } + pub mod swap { + use super::runtime_types; + pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Other = runtime_types::polkadot_parachain_primitives::primitives::Id; + } + pub mod remove_lock { + use super::runtime_types; + pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; + } + pub mod reserve { + use super::runtime_types; + } + pub mod add_lock { + use super::runtime_types; + pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; + } + pub mod schedule_code_upgrade { + use super::runtime_types; + pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type NewCode = + runtime_types::polkadot_parachain_primitives::primitives::ValidationCode; + } + pub mod set_current_head { + use super::runtime_types; + pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type NewHead = + runtime_types::polkadot_parachain_primitives::primitives::HeadData; + } + } pub mod types { use super::runtime_types; #[derive( @@ -33156,10 +32879,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Register { - pub id: runtime_types::polkadot_parachain::primitives::Id, - pub genesis_head: runtime_types::polkadot_parachain::primitives::HeadData, + pub id: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub genesis_head: + runtime_types::polkadot_parachain_primitives::primitives::HeadData, pub validation_code: - runtime_types::polkadot_parachain::primitives::ValidationCode, + runtime_types::polkadot_parachain_primitives::primitives::ValidationCode, } impl ::subxt::blocks::StaticExtrinsic for Register { const PALLET: &'static str = "Registrar"; @@ -33178,10 +32902,11 @@ pub mod api { pub struct ForceRegister { pub who: ::subxt::utils::AccountId32, pub deposit: ::core::primitive::u128, - pub id: runtime_types::polkadot_parachain::primitives::Id, - pub genesis_head: runtime_types::polkadot_parachain::primitives::HeadData, + pub id: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub genesis_head: + runtime_types::polkadot_parachain_primitives::primitives::HeadData, pub validation_code: - runtime_types::polkadot_parachain::primitives::ValidationCode, + runtime_types::polkadot_parachain_primitives::primitives::ValidationCode, } impl ::subxt::blocks::StaticExtrinsic for ForceRegister { const PALLET: &'static str = "Registrar"; @@ -33198,7 +32923,7 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Deregister { - pub id: runtime_types::polkadot_parachain::primitives::Id, + pub id: runtime_types::polkadot_parachain_primitives::primitives::Id, } impl ::subxt::blocks::StaticExtrinsic for Deregister { const PALLET: &'static str = "Registrar"; @@ -33215,8 +32940,8 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Swap { - pub id: runtime_types::polkadot_parachain::primitives::Id, - pub other: runtime_types::polkadot_parachain::primitives::Id, + pub id: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub other: runtime_types::polkadot_parachain_primitives::primitives::Id, } impl ::subxt::blocks::StaticExtrinsic for Swap { const PALLET: &'static str = "Registrar"; @@ -33233,7 +32958,7 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RemoveLock { - pub para: runtime_types::polkadot_parachain::primitives::Id, + pub para: runtime_types::polkadot_parachain_primitives::primitives::Id, } impl ::subxt::blocks::StaticExtrinsic for RemoveLock { const PALLET: &'static str = "Registrar"; @@ -33265,7 +32990,7 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AddLock { - pub para: runtime_types::polkadot_parachain::primitives::Id, + pub para: runtime_types::polkadot_parachain_primitives::primitives::Id, } impl ::subxt::blocks::StaticExtrinsic for AddLock { const PALLET: &'static str = "Registrar"; @@ -33282,8 +33007,9 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ScheduleCodeUpgrade { - pub para: runtime_types::polkadot_parachain::primitives::Id, - pub new_code: runtime_types::polkadot_parachain::primitives::ValidationCode, + pub para: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub new_code: + runtime_types::polkadot_parachain_primitives::primitives::ValidationCode, } impl ::subxt::blocks::StaticExtrinsic for ScheduleCodeUpgrade { const PALLET: &'static str = "Registrar"; @@ -33300,8 +33026,9 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetCurrentHead { - pub para: runtime_types::polkadot_parachain::primitives::Id, - pub new_head: runtime_types::polkadot_parachain::primitives::HeadData, + pub para: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub new_head: + runtime_types::polkadot_parachain_primitives::primitives::HeadData, } impl ::subxt::blocks::StaticExtrinsic for SetCurrentHead { const PALLET: &'static str = "Registrar"; @@ -33313,9 +33040,9 @@ pub mod api { #[doc = "See [`Pallet::register`]."] pub fn register( &self, - id: runtime_types::polkadot_parachain::primitives::Id, - genesis_head: runtime_types::polkadot_parachain::primitives::HeadData, - validation_code: runtime_types::polkadot_parachain::primitives::ValidationCode, + id: alias_types::register::Id, + genesis_head: alias_types::register::GenesisHead, + validation_code: alias_types::register::ValidationCode, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Registrar", @@ -33335,11 +33062,11 @@ pub mod api { #[doc = "See [`Pallet::force_register`]."] pub fn force_register( &self, - who: ::subxt::utils::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, + who: alias_types::force_register::Who, + deposit: alias_types::force_register::Deposit, + id: alias_types::force_register::Id, + genesis_head: alias_types::force_register::GenesisHead, + validation_code: alias_types::force_register::ValidationCode, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Registrar", @@ -33362,7 +33089,7 @@ pub mod api { #[doc = "See [`Pallet::deregister`]."] pub fn deregister( &self, - id: runtime_types::polkadot_parachain::primitives::Id, + id: alias_types::deregister::Id, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Registrar", @@ -33378,8 +33105,8 @@ pub mod api { #[doc = "See [`Pallet::swap`]."] pub fn swap( &self, - id: runtime_types::polkadot_parachain::primitives::Id, - other: runtime_types::polkadot_parachain::primitives::Id, + id: alias_types::swap::Id, + other: alias_types::swap::Other, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Registrar", @@ -33396,7 +33123,7 @@ pub mod api { #[doc = "See [`Pallet::remove_lock`]."] pub fn remove_lock( &self, - para: runtime_types::polkadot_parachain::primitives::Id, + para: alias_types::remove_lock::Para, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Registrar", @@ -33425,7 +33152,7 @@ pub mod api { #[doc = "See [`Pallet::add_lock`]."] pub fn add_lock( &self, - para: runtime_types::polkadot_parachain::primitives::Id, + para: alias_types::add_lock::Para, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Registrar", @@ -33441,8 +33168,8 @@ pub mod api { #[doc = "See [`Pallet::schedule_code_upgrade`]."] pub fn schedule_code_upgrade( &self, - para: runtime_types::polkadot_parachain::primitives::Id, - new_code: runtime_types::polkadot_parachain::primitives::ValidationCode, + para: alias_types::schedule_code_upgrade::Para, + new_code: alias_types::schedule_code_upgrade::NewCode, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Registrar", @@ -33459,8 +33186,8 @@ pub mod api { #[doc = "See [`Pallet::set_current_head`]."] pub fn set_current_head( &self, - para: runtime_types::polkadot_parachain::primitives::Id, - new_head: runtime_types::polkadot_parachain::primitives::HeadData, + para: alias_types::set_current_head::Para, + new_head: alias_types::set_current_head::NewHead, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Registrar", @@ -33491,7 +33218,7 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Registered { - pub para_id: runtime_types::polkadot_parachain::primitives::Id, + pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, pub manager: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for Registered { @@ -33509,7 +33236,7 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Deregistered { - pub para_id: runtime_types::polkadot_parachain::primitives::Id, + pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, } impl ::subxt::events::StaticEvent for Deregistered { const PALLET: &'static str = "Registrar"; @@ -33526,7 +33253,7 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Reserved { - pub para_id: runtime_types::polkadot_parachain::primitives::Id, + pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, pub who: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for Reserved { @@ -33544,8 +33271,8 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Swapped { - pub para_id: runtime_types::polkadot_parachain::primitives::Id, - pub other_id: runtime_types::polkadot_parachain::primitives::Id, + pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub other_id: runtime_types::polkadot_parachain_primitives::primitives::Id, } impl ::subxt::events::StaticEvent for Swapped { const PALLET: &'static str = "Registrar"; @@ -33554,6 +33281,27 @@ pub mod api { } pub mod storage { use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod pending_swap { + use super::runtime_types; + pub type PendingSwap = + runtime_types::polkadot_parachain_primitives::primitives::Id; + } + pub mod paras { + use super::runtime_types; + pub type Paras = + runtime_types::polkadot_runtime_common::paras_registrar::ParaInfo< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >; + } + pub mod next_free_para_id { + use super::runtime_types; + pub type NextFreeParaId = + runtime_types::polkadot_parachain_primitives::primitives::Id; + } + } pub struct StorageApi; impl StorageApi { #[doc = " Pending swap operations."] @@ -33561,7 +33309,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_parachain::primitives::Id, + alias_types::pending_swap::PendingSwap, (), (), ::subxt::storage::address::Yes, @@ -33581,10 +33329,12 @@ pub mod api { #[doc = " Pending swap operations."] pub fn pending_swap( &self, - _0: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow< + runtime_types::polkadot_parachain_primitives::primitives::Id, + >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_parachain::primitives::Id, + alias_types::pending_swap::PendingSwap, ::subxt::storage::address::Yes, (), (), @@ -33605,16 +33355,13 @@ pub mod api { } #[doc = " Amount held on deposit for each para and the original depositor."] #[doc = ""] - #[doc = " The given account ID is responsible for registering the code and initial head data, but may only do"] - #[doc = " so if it isn't yet registered. (After that, it's up to governance to do so.)"] + #[doc = " The given account ID is responsible for registering the code and initial head data, but may"] + #[doc = " only do so if it isn't yet registered. (After that, it's up to governance to do so.)"] pub fn paras_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_runtime_common::paras_registrar::ParaInfo< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, + alias_types::paras::Paras, (), (), ::subxt::storage::address::Yes, @@ -33624,25 +33371,24 @@ pub mod api { "Paras", vec![], [ - 187u8, 63u8, 130u8, 102u8, 222u8, 144u8, 126u8, 130u8, 82u8, 22u8, - 64u8, 237u8, 229u8, 91u8, 66u8, 52u8, 9u8, 40u8, 254u8, 60u8, 55u8, - 42u8, 144u8, 254u8, 102u8, 21u8, 86u8, 136u8, 49u8, 156u8, 94u8, 163u8, + 125u8, 62u8, 50u8, 209u8, 40u8, 170u8, 61u8, 62u8, 61u8, 246u8, 103u8, + 229u8, 213u8, 94u8, 249u8, 49u8, 18u8, 90u8, 138u8, 14u8, 101u8, 133u8, + 28u8, 167u8, 5u8, 77u8, 113u8, 207u8, 57u8, 142u8, 77u8, 117u8, ], ) } #[doc = " Amount held on deposit for each para and the original depositor."] #[doc = ""] - #[doc = " The given account ID is responsible for registering the code and initial head data, but may only do"] - #[doc = " so if it isn't yet registered. (After that, it's up to governance to do so.)"] + #[doc = " The given account ID is responsible for registering the code and initial head data, but may"] + #[doc = " only do so if it isn't yet registered. (After that, it's up to governance to do so.)"] pub fn paras( &self, - _0: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow< + runtime_types::polkadot_parachain_primitives::primitives::Id, + >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_runtime_common::paras_registrar::ParaInfo< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, + alias_types::paras::Paras, ::subxt::storage::address::Yes, (), (), @@ -33654,9 +33400,9 @@ pub mod api { _0.borrow(), )], [ - 187u8, 63u8, 130u8, 102u8, 222u8, 144u8, 126u8, 130u8, 82u8, 22u8, - 64u8, 237u8, 229u8, 91u8, 66u8, 52u8, 9u8, 40u8, 254u8, 60u8, 55u8, - 42u8, 144u8, 254u8, 102u8, 21u8, 86u8, 136u8, 49u8, 156u8, 94u8, 163u8, + 125u8, 62u8, 50u8, 209u8, 40u8, 170u8, 61u8, 62u8, 61u8, 246u8, 103u8, + 229u8, 213u8, 94u8, 249u8, 49u8, 18u8, 90u8, 138u8, 14u8, 101u8, 133u8, + 28u8, 167u8, 5u8, 77u8, 113u8, 207u8, 57u8, 142u8, 77u8, 117u8, ], ) } @@ -33665,7 +33411,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_parachain::primitives::Id, + alias_types::next_free_para_id::NextFreeParaId, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -33688,7 +33434,7 @@ pub mod api { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - #[doc = " The deposit to be paid to run a parathread."] + #[doc = " The deposit to be paid to run a on-demand parachain."] #[doc = " This should include the cost for storing the genesis head and validation code."] pub fn para_deposit(&self) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( @@ -33729,6 +33475,25 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod alias_types { + use super::runtime_types; + pub mod force_lease { + use super::runtime_types; + pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Leaser = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; + pub type PeriodBegin = ::core::primitive::u32; + pub type PeriodCount = ::core::primitive::u32; + } + pub mod clear_all_leases { + use super::runtime_types; + pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; + } + pub mod trigger_onboard { + use super::runtime_types; + pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; + } + } pub mod types { use super::runtime_types; #[derive( @@ -33742,7 +33507,7 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceLease { - pub para: runtime_types::polkadot_parachain::primitives::Id, + pub para: runtime_types::polkadot_parachain_primitives::primitives::Id, pub leaser: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, pub period_begin: ::core::primitive::u32, @@ -33763,7 +33528,7 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ClearAllLeases { - pub para: runtime_types::polkadot_parachain::primitives::Id, + pub para: runtime_types::polkadot_parachain_primitives::primitives::Id, } impl ::subxt::blocks::StaticExtrinsic for ClearAllLeases { const PALLET: &'static str = "Slots"; @@ -33780,7 +33545,7 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct TriggerOnboard { - pub para: runtime_types::polkadot_parachain::primitives::Id, + pub para: runtime_types::polkadot_parachain_primitives::primitives::Id, } impl ::subxt::blocks::StaticExtrinsic for TriggerOnboard { const PALLET: &'static str = "Slots"; @@ -33792,11 +33557,11 @@ pub mod api { #[doc = "See [`Pallet::force_lease`]."] pub fn force_lease( &self, - para: runtime_types::polkadot_parachain::primitives::Id, - leaser: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - period_begin: ::core::primitive::u32, - period_count: ::core::primitive::u32, + para: alias_types::force_lease::Para, + leaser: alias_types::force_lease::Leaser, + amount: alias_types::force_lease::Amount, + period_begin: alias_types::force_lease::PeriodBegin, + period_count: alias_types::force_lease::PeriodCount, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Slots", @@ -33819,7 +33584,7 @@ pub mod api { #[doc = "See [`Pallet::clear_all_leases`]."] pub fn clear_all_leases( &self, - para: runtime_types::polkadot_parachain::primitives::Id, + para: alias_types::clear_all_leases::Para, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Slots", @@ -33835,7 +33600,7 @@ pub mod api { #[doc = "See [`Pallet::trigger_onboard`]."] pub fn trigger_onboard( &self, - para: runtime_types::polkadot_parachain::primitives::Id, + para: alias_types::trigger_onboard::Para, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Slots", @@ -33887,7 +33652,7 @@ pub mod api { #[doc = "First balance is any extra amount reserved on top of the para's existing deposit."] #[doc = "Second balance is the total amount reserved."] pub struct Leased { - pub para_id: runtime_types::polkadot_parachain::primitives::Id, + pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, pub leaser: ::subxt::utils::AccountId32, pub period_begin: ::core::primitive::u32, pub period_count: ::core::primitive::u32, @@ -33901,12 +33666,24 @@ pub mod api { } pub mod storage { use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod leases { + use super::runtime_types; + pub type Leases = ::std::vec::Vec< + ::core::option::Option<( + ::subxt::utils::AccountId32, + ::core::primitive::u128, + )>, + >; + } + } pub struct StorageApi; impl StorageApi { #[doc = " Amounts held on deposit for each (possibly future) leased parachain."] #[doc = ""] - #[doc = " The actual amount locked on its behalf by any account at any time is the maximum of the second values"] - #[doc = " of the items in this list whose first value is the account."] + #[doc = " The actual amount locked on its behalf by any account at any time is the maximum of the"] + #[doc = " second values of the items in this list whose first value is the account."] #[doc = ""] #[doc = " The first item in the list is the amount locked for the current Lease Period. Following"] #[doc = " items are for the subsequent lease periods."] @@ -33923,12 +33700,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec< - ::core::option::Option<( - ::subxt::utils::AccountId32, - ::core::primitive::u128, - )>, - >, + alias_types::leases::Leases, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -33947,8 +33719,8 @@ pub mod api { } #[doc = " Amounts held on deposit for each (possibly future) leased parachain."] #[doc = ""] - #[doc = " The actual amount locked on its behalf by any account at any time is the maximum of the second values"] - #[doc = " of the items in this list whose first value is the account."] + #[doc = " The actual amount locked on its behalf by any account at any time is the maximum of the"] + #[doc = " second values of the items in this list whose first value is the account."] #[doc = ""] #[doc = " The first item in the list is the amount locked for the current Lease Period. Following"] #[doc = " items are for the subsequent lease periods."] @@ -33963,15 +33735,12 @@ pub mod api { #[doc = " It is illegal for a `None` value to trail in the list."] pub fn leases( &self, - _0: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow< + runtime_types::polkadot_parachain_primitives::primitives::Id, + >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec< - ::core::option::Option<( - ::subxt::utils::AccountId32, - ::core::primitive::u128, - )>, - >, + alias_types::leases::Leases, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -34036,6 +33805,25 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod alias_types { + use super::runtime_types; + pub mod new_auction { + use super::runtime_types; + pub type Duration = ::core::primitive::u32; + pub type LeasePeriodIndex = ::core::primitive::u32; + } + pub mod bid { + use super::runtime_types; + pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type AuctionIndex = ::core::primitive::u32; + pub type FirstSlot = ::core::primitive::u32; + pub type LastSlot = ::core::primitive::u32; + pub type Amount = ::core::primitive::u128; + } + pub mod cancel_auction { + use super::runtime_types; + } + } pub mod types { use super::runtime_types; #[derive( @@ -34070,7 +33858,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Bid { #[codec(compact)] - pub para: runtime_types::polkadot_parachain::primitives::Id, + pub para: runtime_types::polkadot_parachain_primitives::primitives::Id, #[codec(compact)] pub auction_index: ::core::primitive::u32, #[codec(compact)] @@ -34105,8 +33893,8 @@ pub mod api { #[doc = "See [`Pallet::new_auction`]."] pub fn new_auction( &self, - duration: ::core::primitive::u32, - lease_period_index: ::core::primitive::u32, + duration: alias_types::new_auction::Duration, + lease_period_index: alias_types::new_auction::LeasePeriodIndex, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Auctions", @@ -34126,11 +33914,11 @@ pub mod api { #[doc = "See [`Pallet::bid`]."] 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, + para: alias_types::bid::Para, + auction_index: alias_types::bid::AuctionIndex, + first_slot: alias_types::bid::FirstSlot, + last_slot: alias_types::bid::LastSlot, + amount: alias_types::bid::Amount, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Auctions", @@ -34258,10 +34046,10 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Someone attempted to lease the same slot twice for a parachain. The amount is held in reserve"] - #[doc = "but no parachain slot has been leased."] + #[doc = "Someone attempted to lease the same slot twice for a parachain. The amount is held in"] + #[doc = "reserve but no parachain slot has been leased."] pub struct ReserveConfiscated { - pub para_id: runtime_types::polkadot_parachain::primitives::Id, + pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, pub leaser: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, } @@ -34282,7 +34070,7 @@ pub mod api { #[doc = "A new bid has been accepted as the current winner."] pub struct BidAccepted { pub bidder: ::subxt::utils::AccountId32, - pub para_id: runtime_types::polkadot_parachain::primitives::Id, + pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, pub amount: ::core::primitive::u128, pub first_slot: ::core::primitive::u32, pub last_slot: ::core::primitive::u32, @@ -34301,7 +34089,8 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The winning offset was chosen for an auction. This will map into the `Winning` storage map."] + #[doc = "The winning offset was chosen for an auction. This will map into the `Winning` storage"] + #[doc = "map."] pub struct WinningOffset { pub auction_index: ::core::primitive::u32, pub block_number: ::core::primitive::u32, @@ -34313,6 +34102,29 @@ pub mod api { } pub mod storage { use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod auction_counter { + use super::runtime_types; + pub type AuctionCounter = ::core::primitive::u32; + } + pub mod auction_info { + use super::runtime_types; + pub type AuctionInfo = (::core::primitive::u32, ::core::primitive::u32); + } + pub mod reserved_amounts { + use super::runtime_types; + pub type ReservedAmounts = ::core::primitive::u128; + } + pub mod winning { + use super::runtime_types; + pub type Winning = [::core::option::Option<( + ::subxt::utils::AccountId32, + runtime_types::polkadot_parachain_primitives::primitives::Id, + ::core::primitive::u128, + )>; 36usize]; + } + } pub struct StorageApi; impl StorageApi { #[doc = " Number of auctions started so far."] @@ -34320,7 +34132,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, + alias_types::auction_counter::AuctionCounter, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -34345,7 +34157,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - (::core::primitive::u32, ::core::primitive::u32), + alias_types::auction_info::AuctionInfo, ::subxt::storage::address::Yes, (), (), @@ -34367,7 +34179,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, + alias_types::reserved_amounts::ReservedAmounts, (), (), ::subxt::storage::address::Yes, @@ -34391,7 +34203,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, + alias_types::reserved_amounts::ReservedAmounts, (), (), ::subxt::storage::address::Yes, @@ -34415,10 +34227,12 @@ pub mod api { pub fn reserved_amounts( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - _1: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow< + runtime_types::polkadot_parachain_primitives::primitives::Id, + >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, + alias_types::reserved_amounts::ReservedAmounts, ::subxt::storage::address::Yes, (), (), @@ -34445,11 +34259,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - [::core::option::Option<( - ::subxt::utils::AccountId32, - runtime_types::polkadot_parachain::primitives::Id, - ::core::primitive::u128, - )>; 36usize], + alias_types::winning::Winning, (), (), ::subxt::storage::address::Yes, @@ -34473,11 +34283,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - [::core::option::Option<( - ::subxt::utils::AccountId32, - runtime_types::polkadot_parachain::primitives::Id, - ::core::primitive::u128, - )>; 36usize], + alias_types::winning::Winning, ::subxt::storage::address::Yes, (), (), @@ -34571,6 +34377,64 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod alias_types { + use super::runtime_types; + pub mod create { + use super::runtime_types; + pub type Index = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Cap = ::core::primitive::u128; + pub type FirstPeriod = ::core::primitive::u32; + pub type LastPeriod = ::core::primitive::u32; + pub type End = ::core::primitive::u32; + pub type Verifier = + ::core::option::Option; + } + pub mod contribute { + use super::runtime_types; + pub type Index = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Value = ::core::primitive::u128; + pub type Signature = + ::core::option::Option; + } + pub mod withdraw { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Index = runtime_types::polkadot_parachain_primitives::primitives::Id; + } + pub mod refund { + use super::runtime_types; + pub type Index = runtime_types::polkadot_parachain_primitives::primitives::Id; + } + pub mod dissolve { + use super::runtime_types; + pub type Index = runtime_types::polkadot_parachain_primitives::primitives::Id; + } + pub mod edit { + use super::runtime_types; + pub type Index = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Cap = ::core::primitive::u128; + pub type FirstPeriod = ::core::primitive::u32; + pub type LastPeriod = ::core::primitive::u32; + pub type End = ::core::primitive::u32; + pub type Verifier = + ::core::option::Option; + } + pub mod add_memo { + use super::runtime_types; + pub type Index = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Memo = ::std::vec::Vec<::core::primitive::u8>; + } + pub mod poke { + use super::runtime_types; + pub type Index = runtime_types::polkadot_parachain_primitives::primitives::Id; + } + pub mod contribute_all { + use super::runtime_types; + pub type Index = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Signature = + ::core::option::Option; + } + } pub mod types { use super::runtime_types; #[derive( @@ -34585,7 +34449,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Create { #[codec(compact)] - pub index: runtime_types::polkadot_parachain::primitives::Id, + pub index: runtime_types::polkadot_parachain_primitives::primitives::Id, #[codec(compact)] pub cap: ::core::primitive::u128, #[codec(compact)] @@ -34612,7 +34476,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Contribute { #[codec(compact)] - pub index: runtime_types::polkadot_parachain::primitives::Id, + pub index: runtime_types::polkadot_parachain_primitives::primitives::Id, #[codec(compact)] pub value: ::core::primitive::u128, pub signature: @@ -34635,7 +34499,7 @@ pub mod api { pub struct Withdraw { pub who: ::subxt::utils::AccountId32, #[codec(compact)] - pub index: runtime_types::polkadot_parachain::primitives::Id, + pub index: runtime_types::polkadot_parachain_primitives::primitives::Id, } impl ::subxt::blocks::StaticExtrinsic for Withdraw { const PALLET: &'static str = "Crowdloan"; @@ -34653,7 +34517,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Refund { #[codec(compact)] - pub index: runtime_types::polkadot_parachain::primitives::Id, + pub index: runtime_types::polkadot_parachain_primitives::primitives::Id, } impl ::subxt::blocks::StaticExtrinsic for Refund { const PALLET: &'static str = "Crowdloan"; @@ -34671,7 +34535,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Dissolve { #[codec(compact)] - pub index: runtime_types::polkadot_parachain::primitives::Id, + pub index: runtime_types::polkadot_parachain_primitives::primitives::Id, } impl ::subxt::blocks::StaticExtrinsic for Dissolve { const PALLET: &'static str = "Crowdloan"; @@ -34689,7 +34553,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Edit { #[codec(compact)] - pub index: runtime_types::polkadot_parachain::primitives::Id, + pub index: runtime_types::polkadot_parachain_primitives::primitives::Id, #[codec(compact)] pub cap: ::core::primitive::u128, #[codec(compact)] @@ -34715,7 +34579,7 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AddMemo { - pub index: runtime_types::polkadot_parachain::primitives::Id, + pub index: runtime_types::polkadot_parachain_primitives::primitives::Id, pub memo: ::std::vec::Vec<::core::primitive::u8>, } impl ::subxt::blocks::StaticExtrinsic for AddMemo { @@ -34733,7 +34597,7 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Poke { - pub index: runtime_types::polkadot_parachain::primitives::Id, + pub index: runtime_types::polkadot_parachain_primitives::primitives::Id, } impl ::subxt::blocks::StaticExtrinsic for Poke { const PALLET: &'static str = "Crowdloan"; @@ -34751,7 +34615,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ContributeAll { #[codec(compact)] - pub index: runtime_types::polkadot_parachain::primitives::Id, + pub index: runtime_types::polkadot_parachain_primitives::primitives::Id, pub signature: ::core::option::Option, } @@ -34765,12 +34629,12 @@ pub mod api { #[doc = "See [`Pallet::create`]."] 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, + index: alias_types::create::Index, + cap: alias_types::create::Cap, + first_period: alias_types::create::FirstPeriod, + last_period: alias_types::create::LastPeriod, + end: alias_types::create::End, + verifier: alias_types::create::Verifier, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Crowdloan", @@ -34793,9 +34657,9 @@ pub mod api { #[doc = "See [`Pallet::contribute`]."] pub fn contribute( &self, - index: runtime_types::polkadot_parachain::primitives::Id, - value: ::core::primitive::u128, - signature: ::core::option::Option, + index: alias_types::contribute::Index, + value: alias_types::contribute::Value, + signature: alias_types::contribute::Signature, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Crowdloan", @@ -34816,8 +34680,8 @@ pub mod api { #[doc = "See [`Pallet::withdraw`]."] pub fn withdraw( &self, - who: ::subxt::utils::AccountId32, - index: runtime_types::polkadot_parachain::primitives::Id, + who: alias_types::withdraw::Who, + index: alias_types::withdraw::Index, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Crowdloan", @@ -34833,7 +34697,7 @@ pub mod api { #[doc = "See [`Pallet::refund`]."] pub fn refund( &self, - index: runtime_types::polkadot_parachain::primitives::Id, + index: alias_types::refund::Index, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Crowdloan", @@ -34850,7 +34714,7 @@ pub mod api { #[doc = "See [`Pallet::dissolve`]."] pub fn dissolve( &self, - index: runtime_types::polkadot_parachain::primitives::Id, + index: alias_types::dissolve::Index, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Crowdloan", @@ -34867,12 +34731,12 @@ pub mod api { #[doc = "See [`Pallet::edit`]."] pub fn edit( &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, + index: alias_types::edit::Index, + cap: alias_types::edit::Cap, + first_period: alias_types::edit::FirstPeriod, + last_period: alias_types::edit::LastPeriod, + end: alias_types::edit::End, + verifier: alias_types::edit::Verifier, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Crowdloan", @@ -34896,8 +34760,8 @@ pub mod api { #[doc = "See [`Pallet::add_memo`]."] pub fn add_memo( &self, - index: runtime_types::polkadot_parachain::primitives::Id, - memo: ::std::vec::Vec<::core::primitive::u8>, + index: alias_types::add_memo::Index, + memo: alias_types::add_memo::Memo, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Crowdloan", @@ -34914,7 +34778,7 @@ pub mod api { #[doc = "See [`Pallet::poke`]."] pub fn poke( &self, - index: runtime_types::polkadot_parachain::primitives::Id, + index: alias_types::poke::Index, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Crowdloan", @@ -34931,8 +34795,8 @@ pub mod api { #[doc = "See [`Pallet::contribute_all`]."] pub fn contribute_all( &self, - index: runtime_types::polkadot_parachain::primitives::Id, - signature: ::core::option::Option, + index: alias_types::contribute_all::Index, + signature: alias_types::contribute_all::Signature, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Crowdloan", @@ -34963,7 +34827,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Create a new crowdloaning campaign."] pub struct Created { - pub para_id: runtime_types::polkadot_parachain::primitives::Id, + pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, } impl ::subxt::events::StaticEvent for Created { const PALLET: &'static str = "Crowdloan"; @@ -34982,7 +34846,7 @@ pub mod api { #[doc = "Contributed to a crowd sale."] pub struct Contributed { pub who: ::subxt::utils::AccountId32, - pub fund_index: runtime_types::polkadot_parachain::primitives::Id, + pub fund_index: runtime_types::polkadot_parachain_primitives::primitives::Id, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Contributed { @@ -35002,7 +34866,7 @@ pub mod api { #[doc = "Withdrew full balance of a contributor."] pub struct Withdrew { pub who: ::subxt::utils::AccountId32, - pub fund_index: runtime_types::polkadot_parachain::primitives::Id, + pub fund_index: runtime_types::polkadot_parachain_primitives::primitives::Id, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Withdrew { @@ -35022,7 +34886,7 @@ pub mod api { #[doc = "The loans in a fund have been partially dissolved, i.e. there are some left"] #[doc = "over child keys that still need to be killed."] pub struct PartiallyRefunded { - pub para_id: runtime_types::polkadot_parachain::primitives::Id, + pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, } impl ::subxt::events::StaticEvent for PartiallyRefunded { const PALLET: &'static str = "Crowdloan"; @@ -35040,7 +34904,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "All loans in a fund have been refunded."] pub struct AllRefunded { - pub para_id: runtime_types::polkadot_parachain::primitives::Id, + pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, } impl ::subxt::events::StaticEvent for AllRefunded { const PALLET: &'static str = "Crowdloan"; @@ -35058,7 +34922,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Fund is dissolved."] pub struct Dissolved { - pub para_id: runtime_types::polkadot_parachain::primitives::Id, + pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, } impl ::subxt::events::StaticEvent for Dissolved { const PALLET: &'static str = "Crowdloan"; @@ -35076,7 +34940,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The result of trying to submit a new bid to the Slots pallet."] pub struct HandleBidResult { - pub para_id: runtime_types::polkadot_parachain::primitives::Id, + pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, } impl ::subxt::events::StaticEvent for HandleBidResult { @@ -35095,7 +34959,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The configuration to a crowdloan has been edited."] pub struct Edited { - pub para_id: runtime_types::polkadot_parachain::primitives::Id, + pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, } impl ::subxt::events::StaticEvent for Edited { const PALLET: &'static str = "Crowdloan"; @@ -35114,7 +34978,7 @@ pub mod api { #[doc = "A memo has been updated."] pub struct MemoUpdated { pub who: ::subxt::utils::AccountId32, - pub para_id: runtime_types::polkadot_parachain::primitives::Id, + pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, pub memo: ::std::vec::Vec<::core::primitive::u8>, } impl ::subxt::events::StaticEvent for MemoUpdated { @@ -35133,7 +34997,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A parachain has been moved to `NewRaise`"] pub struct AddedToNewRaise { - pub para_id: runtime_types::polkadot_parachain::primitives::Id, + pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, } impl ::subxt::events::StaticEvent for AddedToNewRaise { const PALLET: &'static str = "Crowdloan"; @@ -35142,6 +35006,32 @@ pub mod api { } pub mod storage { use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod funds { + use super::runtime_types; + pub type Funds = runtime_types::polkadot_runtime_common::crowdloan::FundInfo< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + ::core::primitive::u32, + ::core::primitive::u32, + >; + } + pub mod new_raise { + use super::runtime_types; + pub type NewRaise = ::std::vec::Vec< + runtime_types::polkadot_parachain_primitives::primitives::Id, + >; + } + pub mod endings_count { + use super::runtime_types; + pub type EndingsCount = ::core::primitive::u32; + } + pub mod next_fund_index { + use super::runtime_types; + pub type NextFundIndex = ::core::primitive::u32; + } + } pub struct StorageApi; impl StorageApi { #[doc = " Info on all of the funds."] @@ -35149,12 +35039,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_runtime_common::crowdloan::FundInfo< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - ::core::primitive::u32, - ::core::primitive::u32, - >, + alias_types::funds::Funds, (), (), ::subxt::storage::address::Yes, @@ -35174,15 +35059,12 @@ pub mod api { #[doc = " Info on all of the funds."] pub fn funds( &self, - _0: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow< + runtime_types::polkadot_parachain_primitives::primitives::Id, + >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_runtime_common::crowdloan::FundInfo< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - ::core::primitive::u32, - ::core::primitive::u32, - >, + alias_types::funds::Funds, ::subxt::storage::address::Yes, (), (), @@ -35207,7 +35089,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec, + alias_types::new_raise::NewRaise, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -35229,7 +35111,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, + alias_types::endings_count::EndingsCount, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -35250,7 +35132,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, + alias_types::next_fund_index::NextFundIndex, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -35273,7 +35155,8 @@ pub mod api { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - #[doc = " `PalletId` for the crowdloan pallet. An appropriate value could be `PalletId(*b\"py/cfund\")`"] + #[doc = " `PalletId` for the crowdloan pallet. An appropriate value could be"] + #[doc = " `PalletId(*b\"py/cfund\")`"] pub fn pallet_id( &self, ) -> ::subxt::constants::Address @@ -35288,8 +35171,8 @@ pub mod api { ], ) } - #[doc = " The minimum amount that may be contributed into a crowdloan. Should almost certainly be at"] - #[doc = " least `ExistentialDeposit`."] + #[doc = " The minimum amount that may be contributed into a crowdloan. Should almost certainly be"] + #[doc = " at least `ExistentialDeposit`."] pub fn min_contribution( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { @@ -35332,6 +35215,71 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod alias_types { + use super::runtime_types; + pub mod send { + use super::runtime_types; + pub type Dest = runtime_types::xcm::VersionedMultiLocation; + pub type Message = runtime_types::xcm::VersionedXcm; + } + pub mod teleport_assets { + use super::runtime_types; + pub type Dest = runtime_types::xcm::VersionedMultiLocation; + pub type Beneficiary = runtime_types::xcm::VersionedMultiLocation; + pub type Assets = runtime_types::xcm::VersionedMultiAssets; + pub type FeeAssetItem = ::core::primitive::u32; + } + pub mod reserve_transfer_assets { + use super::runtime_types; + pub type Dest = runtime_types::xcm::VersionedMultiLocation; + pub type Beneficiary = runtime_types::xcm::VersionedMultiLocation; + pub type Assets = runtime_types::xcm::VersionedMultiAssets; + pub type FeeAssetItem = ::core::primitive::u32; + } + pub mod execute { + use super::runtime_types; + pub type Message = runtime_types::xcm::VersionedXcm2; + pub type MaxWeight = runtime_types::sp_weights::weight_v2::Weight; + } + pub mod force_xcm_version { + use super::runtime_types; + pub type Location = + runtime_types::staging_xcm::v3::multilocation::MultiLocation; + pub type Version = ::core::primitive::u32; + } + pub mod force_default_xcm_version { + use super::runtime_types; + pub type MaybeXcmVersion = ::core::option::Option<::core::primitive::u32>; + } + pub mod force_subscribe_version_notify { + use super::runtime_types; + pub type Location = runtime_types::xcm::VersionedMultiLocation; + } + pub mod force_unsubscribe_version_notify { + use super::runtime_types; + pub type Location = runtime_types::xcm::VersionedMultiLocation; + } + pub mod limited_reserve_transfer_assets { + use super::runtime_types; + pub type Dest = runtime_types::xcm::VersionedMultiLocation; + pub type Beneficiary = runtime_types::xcm::VersionedMultiLocation; + pub type Assets = runtime_types::xcm::VersionedMultiAssets; + pub type FeeAssetItem = ::core::primitive::u32; + pub type WeightLimit = runtime_types::xcm::v3::WeightLimit; + } + pub mod limited_teleport_assets { + use super::runtime_types; + pub type Dest = runtime_types::xcm::VersionedMultiLocation; + pub type Beneficiary = runtime_types::xcm::VersionedMultiLocation; + pub type Assets = runtime_types::xcm::VersionedMultiAssets; + pub type FeeAssetItem = ::core::primitive::u32; + pub type WeightLimit = runtime_types::xcm::v3::WeightLimit; + } + pub mod force_suspension { + use super::runtime_types; + pub type Suspended = ::core::primitive::bool; + } + } pub mod types { use super::runtime_types; #[derive( @@ -35421,8 +35369,9 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceXcmVersion { - pub location: - ::std::boxed::Box, + pub location: ::std::boxed::Box< + runtime_types::staging_xcm::v3::multilocation::MultiLocation, + >, pub version: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for ForceXcmVersion { @@ -35545,8 +35494,8 @@ pub mod api { #[doc = "See [`Pallet::send`]."] pub fn send( &self, - dest: runtime_types::xcm::VersionedMultiLocation, - message: runtime_types::xcm::VersionedXcm, + dest: alias_types::send::Dest, + message: alias_types::send::Message, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "XcmPallet", @@ -35565,10 +35514,10 @@ pub mod api { #[doc = "See [`Pallet::teleport_assets`]."] 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, + dest: alias_types::teleport_assets::Dest, + beneficiary: alias_types::teleport_assets::Beneficiary, + assets: alias_types::teleport_assets::Assets, + fee_asset_item: alias_types::teleport_assets::FeeAssetItem, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "XcmPallet", @@ -35589,10 +35538,10 @@ pub mod api { #[doc = "See [`Pallet::reserve_transfer_assets`]."] 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, + dest: alias_types::reserve_transfer_assets::Dest, + beneficiary: alias_types::reserve_transfer_assets::Beneficiary, + assets: alias_types::reserve_transfer_assets::Assets, + fee_asset_item: alias_types::reserve_transfer_assets::FeeAssetItem, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "XcmPallet", @@ -35613,8 +35562,8 @@ pub mod api { #[doc = "See [`Pallet::execute`]."] pub fn execute( &self, - message: runtime_types::xcm::VersionedXcm2, - max_weight: runtime_types::sp_weights::weight_v2::Weight, + message: alias_types::execute::Message, + max_weight: alias_types::execute::MaxWeight, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "XcmPallet", @@ -35633,8 +35582,8 @@ pub mod api { #[doc = "See [`Pallet::force_xcm_version`]."] pub fn force_xcm_version( &self, - location: runtime_types::xcm::v3::multilocation::MultiLocation, - version: ::core::primitive::u32, + location: alias_types::force_xcm_version::Location, + version: alias_types::force_xcm_version::Version, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "XcmPallet", @@ -35653,7 +35602,7 @@ pub mod api { #[doc = "See [`Pallet::force_default_xcm_version`]."] pub fn force_default_xcm_version( &self, - maybe_xcm_version: ::core::option::Option<::core::primitive::u32>, + maybe_xcm_version: alias_types::force_default_xcm_version::MaybeXcmVersion, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "XcmPallet", @@ -35670,7 +35619,7 @@ pub mod api { #[doc = "See [`Pallet::force_subscribe_version_notify`]."] pub fn force_subscribe_version_notify( &self, - location: runtime_types::xcm::VersionedMultiLocation, + location: alias_types::force_subscribe_version_notify::Location, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "XcmPallet", @@ -35688,7 +35637,7 @@ pub mod api { #[doc = "See [`Pallet::force_unsubscribe_version_notify`]."] pub fn force_unsubscribe_version_notify( &self, - location: runtime_types::xcm::VersionedMultiLocation, + location: alias_types::force_unsubscribe_version_notify::Location, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "XcmPallet", @@ -35707,11 +35656,11 @@ pub mod api { #[doc = "See [`Pallet::limited_reserve_transfer_assets`]."] 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::v3::WeightLimit, + dest: alias_types::limited_reserve_transfer_assets::Dest, + beneficiary: alias_types::limited_reserve_transfer_assets::Beneficiary, + assets: alias_types::limited_reserve_transfer_assets::Assets, + fee_asset_item: alias_types::limited_reserve_transfer_assets::FeeAssetItem, + weight_limit: alias_types::limited_reserve_transfer_assets::WeightLimit, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "XcmPallet", @@ -35734,11 +35683,11 @@ pub mod api { #[doc = "See [`Pallet::limited_teleport_assets`]."] 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::v3::WeightLimit, + dest: alias_types::limited_teleport_assets::Dest, + beneficiary: alias_types::limited_teleport_assets::Beneficiary, + assets: alias_types::limited_teleport_assets::Assets, + fee_asset_item: alias_types::limited_teleport_assets::FeeAssetItem, + weight_limit: alias_types::limited_teleport_assets::WeightLimit, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "XcmPallet", @@ -35761,7 +35710,7 @@ pub mod api { #[doc = "See [`Pallet::force_suspension`]."] pub fn force_suspension( &self, - suspended: ::core::primitive::bool, + suspended: alias_types::force_suspension::Suspended, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "XcmPallet", @@ -35810,8 +35759,8 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A XCM message was sent."] pub struct Sent { - pub origin: runtime_types::xcm::v3::multilocation::MultiLocation, - pub destination: runtime_types::xcm::v3::multilocation::MultiLocation, + pub origin: runtime_types::staging_xcm::v3::multilocation::MultiLocation, + pub destination: runtime_types::staging_xcm::v3::multilocation::MultiLocation, pub message: runtime_types::xcm::v3::Xcm, pub message_id: [::core::primitive::u8; 32usize], } @@ -35833,7 +35782,7 @@ pub mod api { #[doc = "matching query was never registered, it may be because it is a duplicate response, or"] #[doc = "because the query timed out."] pub struct UnexpectedResponse { - pub origin: runtime_types::xcm::v3::multilocation::MultiLocation, + pub origin: runtime_types::staging_xcm::v3::multilocation::MultiLocation, pub query_id: ::core::primitive::u64, } impl ::subxt::events::StaticEvent for UnexpectedResponse { @@ -35891,8 +35840,8 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Query response has been received and query is removed. The registered notification could"] - #[doc = "not be dispatched because the dispatch weight is greater than the maximum weight"] + #[doc = "Query response has been received and query is removed. The registered notification"] + #[doc = "could not be dispatched because the dispatch weight is greater than the maximum weight"] #[doc = "originally budgeted by this runtime for the query result."] pub struct NotifyOverweight { pub query_id: ::core::primitive::u64, @@ -35962,10 +35911,11 @@ pub mod api { #[doc = "not match that expected. The query remains registered for a later, valid, response to"] #[doc = "be received and acted upon."] pub struct InvalidResponder { - pub origin: runtime_types::xcm::v3::multilocation::MultiLocation, + pub origin: runtime_types::staging_xcm::v3::multilocation::MultiLocation, pub query_id: ::core::primitive::u64, - pub expected_location: - ::core::option::Option, + pub expected_location: ::core::option::Option< + runtime_types::staging_xcm::v3::multilocation::MultiLocation, + >, } impl ::subxt::events::StaticEvent for InvalidResponder { const PALLET: &'static str = "XcmPallet"; @@ -35989,7 +35939,7 @@ pub mod api { #[doc = "valid response will be dropped. Manual governance intervention is probably going to be"] #[doc = "needed."] pub struct InvalidResponderVersion { - pub origin: runtime_types::xcm::v3::multilocation::MultiLocation, + pub origin: runtime_types::staging_xcm::v3::multilocation::MultiLocation, pub query_id: ::core::primitive::u64, } impl ::subxt::events::StaticEvent for InvalidResponderVersion { @@ -36028,7 +35978,7 @@ pub mod api { #[doc = "Some assets have been placed in an asset trap."] pub struct AssetsTrapped { pub hash: ::subxt::utils::H256, - pub origin: runtime_types::xcm::v3::multilocation::MultiLocation, + pub origin: runtime_types::staging_xcm::v3::multilocation::MultiLocation, pub assets: runtime_types::xcm::VersionedMultiAssets, } impl ::subxt::events::StaticEvent for AssetsTrapped { @@ -36049,7 +35999,7 @@ pub mod api { #[doc = ""] #[doc = "The cost of sending it (borne by the chain) is included."] pub struct VersionChangeNotified { - pub destination: runtime_types::xcm::v3::multilocation::MultiLocation, + pub destination: runtime_types::staging_xcm::v3::multilocation::MultiLocation, pub result: ::core::primitive::u32, pub cost: runtime_types::xcm::v3::multiasset::MultiAssets, pub message_id: [::core::primitive::u8; 32usize], @@ -36071,7 +36021,7 @@ pub mod api { #[doc = "The supported version of a location has been changed. This might be through an"] #[doc = "automatic notification or a manual intervention."] pub struct SupportedVersionChanged { - pub location: runtime_types::xcm::v3::multilocation::MultiLocation, + pub location: runtime_types::staging_xcm::v3::multilocation::MultiLocation, pub version: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for SupportedVersionChanged { @@ -36091,7 +36041,7 @@ pub mod api { #[doc = "A given location which had a version change subscription was dropped owing to an error"] #[doc = "sending the notification to it."] pub struct NotifyTargetSendFail { - pub location: runtime_types::xcm::v3::multilocation::MultiLocation, + pub location: runtime_types::staging_xcm::v3::multilocation::MultiLocation, pub query_id: ::core::primitive::u64, pub error: runtime_types::xcm::v3::traits::Error, } @@ -36137,7 +36087,7 @@ pub mod api { #[doc = "valid response will be dropped. Manual governance intervention is probably going to be"] #[doc = "needed."] pub struct InvalidQuerierVersion { - pub origin: runtime_types::xcm::v3::multilocation::MultiLocation, + pub origin: runtime_types::staging_xcm::v3::multilocation::MultiLocation, pub query_id: ::core::primitive::u64, } impl ::subxt::events::StaticEvent for InvalidQuerierVersion { @@ -36158,11 +36108,12 @@ pub mod api { #[doc = "not match the expected. The query remains registered for a later, valid, response to"] #[doc = "be received and acted upon."] pub struct InvalidQuerier { - pub origin: runtime_types::xcm::v3::multilocation::MultiLocation, + pub origin: runtime_types::staging_xcm::v3::multilocation::MultiLocation, pub query_id: ::core::primitive::u64, - pub expected_querier: runtime_types::xcm::v3::multilocation::MultiLocation, - pub maybe_actual_querier: - ::core::option::Option, + pub expected_querier: runtime_types::staging_xcm::v3::multilocation::MultiLocation, + pub maybe_actual_querier: ::core::option::Option< + runtime_types::staging_xcm::v3::multilocation::MultiLocation, + >, } impl ::subxt::events::StaticEvent for InvalidQuerier { const PALLET: &'static str = "XcmPallet"; @@ -36181,7 +36132,7 @@ pub mod api { #[doc = "A remote has requested XCM version change notification from us and we have honored it."] #[doc = "A version information message is sent to them and its cost is included."] pub struct VersionNotifyStarted { - pub destination: runtime_types::xcm::v3::multilocation::MultiLocation, + pub destination: runtime_types::staging_xcm::v3::multilocation::MultiLocation, pub cost: runtime_types::xcm::v3::multiasset::MultiAssets, pub message_id: [::core::primitive::u8; 32usize], } @@ -36201,7 +36152,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "We have requested that a remote chain send us XCM version change notifications."] pub struct VersionNotifyRequested { - pub destination: runtime_types::xcm::v3::multilocation::MultiLocation, + pub destination: runtime_types::staging_xcm::v3::multilocation::MultiLocation, pub cost: runtime_types::xcm::v3::multiasset::MultiAssets, pub message_id: [::core::primitive::u8; 32usize], } @@ -36219,9 +36170,10 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "We have requested that a remote chain stops sending us XCM version change notifications."] + #[doc = "We have requested that a remote chain stops sending us XCM version change"] + #[doc = "notifications."] pub struct VersionNotifyUnrequested { - pub destination: runtime_types::xcm::v3::multilocation::MultiLocation, + pub destination: runtime_types::staging_xcm::v3::multilocation::MultiLocation, pub cost: runtime_types::xcm::v3::multiasset::MultiAssets, pub message_id: [::core::primitive::u8; 32usize], } @@ -36241,7 +36193,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Fees were paid from a location for an operation (often for using `SendXcm`)."] pub struct FeesPaid { - pub paying: runtime_types::xcm::v3::multilocation::MultiLocation, + pub paying: runtime_types::staging_xcm::v3::multilocation::MultiLocation, pub fees: runtime_types::xcm::v3::multiasset::MultiAssets, } impl ::subxt::events::StaticEvent for FeesPaid { @@ -36261,7 +36213,7 @@ pub mod api { #[doc = "Some assets have been claimed from an asset trap"] pub struct AssetsClaimed { pub hash: ::subxt::utils::H256, - pub origin: runtime_types::xcm::v3::multilocation::MultiLocation, + pub origin: runtime_types::staging_xcm::v3::multilocation::MultiLocation, pub assets: runtime_types::xcm::VersionedMultiAssets, } impl ::subxt::events::StaticEvent for AssetsClaimed { @@ -36271,6 +36223,72 @@ pub mod api { } pub mod storage { use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod query_counter { + use super::runtime_types; + pub type QueryCounter = ::core::primitive::u64; + } + pub mod queries { + use super::runtime_types; + pub type Queries = + runtime_types::pallet_xcm::pallet::QueryStatus<::core::primitive::u32>; + } + pub mod asset_traps { + use super::runtime_types; + pub type AssetTraps = ::core::primitive::u32; + } + pub mod safe_xcm_version { + use super::runtime_types; + pub type SafeXcmVersion = ::core::primitive::u32; + } + pub mod supported_version { + use super::runtime_types; + pub type SupportedVersion = ::core::primitive::u32; + } + pub mod version_notifiers { + use super::runtime_types; + pub type VersionNotifiers = ::core::primitive::u64; + } + pub mod version_notify_targets { + use super::runtime_types; + pub type VersionNotifyTargets = ( + ::core::primitive::u64, + runtime_types::sp_weights::weight_v2::Weight, + ::core::primitive::u32, + ); + } + pub mod version_discovery_queue { + use super::runtime_types; + pub type VersionDiscoveryQueue = + runtime_types::bounded_collections::bounded_vec::BoundedVec<( + runtime_types::xcm::VersionedMultiLocation, + ::core::primitive::u32, + )>; + } + pub mod current_migration { + use super::runtime_types; + pub type CurrentMigration = + runtime_types::pallet_xcm::pallet::VersionMigrationStage; + } + pub mod remote_locked_fungibles { + use super::runtime_types; + pub type RemoteLockedFungibles = + runtime_types::pallet_xcm::pallet::RemoteLockedFungibleRecord<()>; + } + pub mod locked_fungibles { + use super::runtime_types; + pub type LockedFungibles = + runtime_types::bounded_collections::bounded_vec::BoundedVec<( + ::core::primitive::u128, + runtime_types::xcm::VersionedMultiLocation, + )>; + } + pub mod xcm_execution_suspended { + use super::runtime_types; + pub type XcmExecutionSuspended = ::core::primitive::bool; + } + } pub struct StorageApi; impl StorageApi { #[doc = " The latest available query index."] @@ -36278,7 +36296,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u64, + alias_types::query_counter::QueryCounter, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -36300,7 +36318,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_xcm::pallet::QueryStatus<::core::primitive::u32>, + alias_types::queries::Queries, (), (), ::subxt::storage::address::Yes, @@ -36322,7 +36340,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u64>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_xcm::pallet::QueryStatus<::core::primitive::u32>, + alias_types::queries::Queries, ::subxt::storage::address::Yes, (), (), @@ -36348,7 +36366,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, + alias_types::asset_traps::AssetTraps, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -36373,7 +36391,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, + alias_types::asset_traps::AssetTraps, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -36397,7 +36415,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, + alias_types::safe_xcm_version::SafeXcmVersion, ::subxt::storage::address::Yes, (), (), @@ -36419,7 +36437,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, + alias_types::supported_version::SupportedVersion, (), (), ::subxt::storage::address::Yes, @@ -36441,7 +36459,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, + alias_types::supported_version::SupportedVersion, (), (), ::subxt::storage::address::Yes, @@ -36466,7 +36484,7 @@ pub mod api { _1: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, + alias_types::supported_version::SupportedVersion, ::subxt::storage::address::Yes, (), (), @@ -36490,7 +36508,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u64, + alias_types::version_notifiers::VersionNotifiers, (), (), ::subxt::storage::address::Yes, @@ -36512,7 +36530,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u64, + alias_types::version_notifiers::VersionNotifiers, (), (), ::subxt::storage::address::Yes, @@ -36537,7 +36555,7 @@ pub mod api { _1: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u64, + alias_types::version_notifiers::VersionNotifiers, ::subxt::storage::address::Yes, (), (), @@ -36562,11 +36580,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ( - ::core::primitive::u64, - runtime_types::sp_weights::weight_v2::Weight, - ::core::primitive::u32, - ), + alias_types::version_notify_targets::VersionNotifyTargets, (), (), ::subxt::storage::address::Yes, @@ -36590,11 +36604,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ( - ::core::primitive::u64, - runtime_types::sp_weights::weight_v2::Weight, - ::core::primitive::u32, - ), + alias_types::version_notify_targets::VersionNotifyTargets, (), (), ::subxt::storage::address::Yes, @@ -36621,11 +36631,7 @@ pub mod api { _1: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ( - ::core::primitive::u64, - runtime_types::sp_weights::weight_v2::Weight, - ::core::primitive::u32, - ), + alias_types::version_notify_targets::VersionNotifyTargets, ::subxt::storage::address::Yes, (), (), @@ -36652,10 +36658,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec<( - runtime_types::xcm::VersionedMultiLocation, - ::core::primitive::u32, - )>, + alias_types::version_discovery_queue::VersionDiscoveryQueue, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -36676,7 +36679,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_xcm::pallet::VersionMigrationStage, + alias_types::current_migration::CurrentMigration, ::subxt::storage::address::Yes, (), (), @@ -36697,7 +36700,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_xcm::pallet::RemoteLockedFungibleRecord<()>, + alias_types::remote_locked_fungibles::RemoteLockedFungibles, (), (), ::subxt::storage::address::Yes, @@ -36719,7 +36722,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_xcm::pallet::RemoteLockedFungibleRecord<()>, + alias_types::remote_locked_fungibles::RemoteLockedFungibles, (), (), ::subxt::storage::address::Yes, @@ -36744,7 +36747,7 @@ pub mod api { _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_xcm::pallet::RemoteLockedFungibleRecord<()>, + alias_types::remote_locked_fungibles::RemoteLockedFungibles, (), (), ::subxt::storage::address::Yes, @@ -36771,7 +36774,7 @@ pub mod api { _2: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_xcm::pallet::RemoteLockedFungibleRecord<()>, + alias_types::remote_locked_fungibles::RemoteLockedFungibles, ::subxt::storage::address::Yes, (), (), @@ -36790,553 +36793,124 @@ pub mod api { 62u8, 175u8, 15u8, 81u8, 198u8, 182u8, 255u8, 37u8, 81u8, 6u8, 57u8, ], ) - } - #[doc = " Fungible assets which we know are locked on this chain."] - pub fn locked_fungibles_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec<( - ::core::primitive::u128, - runtime_types::xcm::VersionedMultiLocation, - )>, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "XcmPallet", - "LockedFungibles", - vec![], - [ - 110u8, 220u8, 127u8, 176u8, 219u8, 23u8, 132u8, 36u8, 224u8, 187u8, - 25u8, 103u8, 126u8, 99u8, 34u8, 105u8, 57u8, 182u8, 162u8, 69u8, 24u8, - 67u8, 221u8, 103u8, 79u8, 139u8, 187u8, 162u8, 113u8, 109u8, 163u8, - 35u8, - ], - ) - } - #[doc = " Fungible assets which we know are locked on this chain."] - pub fn locked_fungibles( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec<( - ::core::primitive::u128, - runtime_types::xcm::VersionedMultiLocation, - )>, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "XcmPallet", - "LockedFungibles", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 110u8, 220u8, 127u8, 176u8, 219u8, 23u8, 132u8, 36u8, 224u8, 187u8, - 25u8, 103u8, 126u8, 99u8, 34u8, 105u8, 57u8, 182u8, 162u8, 69u8, 24u8, - 67u8, 221u8, 103u8, 79u8, 139u8, 187u8, 162u8, 113u8, 109u8, 163u8, - 35u8, - ], - ) - } - #[doc = " Global suspension state of the XCM executor."] - pub fn xcm_execution_suspended( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::bool, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "XcmPallet", - "XcmExecutionSuspended", - vec![], - [ - 182u8, 54u8, 69u8, 68u8, 78u8, 76u8, 103u8, 79u8, 47u8, 136u8, 99u8, - 104u8, 128u8, 129u8, 249u8, 54u8, 214u8, 136u8, 97u8, 48u8, 178u8, - 42u8, 26u8, 27u8, 82u8, 24u8, 33u8, 77u8, 33u8, 27u8, 20u8, 127u8, - ], - ) - } - } - } - } - pub mod message_queue { - use super::root_mod; - use super::runtime_types; - #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_message_queue::pallet::Error; - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::pallet_message_queue::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ReapPage { pub message_origin : runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin , pub page_index : :: core :: primitive :: u32 , } - impl ::subxt::blocks::StaticExtrinsic for ReapPage { - const PALLET: &'static str = "MessageQueue"; - const CALL: &'static str = "reap_page"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ExecuteOverweight { pub message_origin : runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin , pub page : :: core :: primitive :: u32 , pub index : :: core :: primitive :: u32 , pub weight_limit : runtime_types :: sp_weights :: weight_v2 :: Weight , } - impl ::subxt::blocks::StaticExtrinsic for ExecuteOverweight { - const PALLET: &'static str = "MessageQueue"; - const CALL: &'static str = "execute_overweight"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::reap_page`]."] - pub fn reap_page( - &self, - message_origin : runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin, - page_index: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "MessageQueue", - "reap_page", - types::ReapPage { - message_origin, - page_index, - }, - [ - 217u8, 3u8, 106u8, 158u8, 151u8, 194u8, 234u8, 4u8, 254u8, 4u8, 200u8, - 201u8, 107u8, 140u8, 220u8, 201u8, 245u8, 14u8, 23u8, 156u8, 41u8, - 106u8, 39u8, 90u8, 214u8, 1u8, 183u8, 45u8, 3u8, 83u8, 242u8, 30u8, - ], - ) - } - #[doc = "See [`Pallet::execute_overweight`]."] - pub fn execute_overweight( - &self, - message_origin : runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin, - page: ::core::primitive::u32, - index: ::core::primitive::u32, - weight_limit: runtime_types::sp_weights::weight_v2::Weight, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "MessageQueue", - "execute_overweight", - types::ExecuteOverweight { - message_origin, - page, - index, - weight_limit, - }, - [ - 101u8, 2u8, 86u8, 225u8, 217u8, 229u8, 143u8, 214u8, 146u8, 190u8, - 182u8, 102u8, 251u8, 18u8, 179u8, 187u8, 113u8, 29u8, 182u8, 24u8, - 34u8, 179u8, 64u8, 249u8, 139u8, 76u8, 50u8, 238u8, 132u8, 167u8, - 115u8, 141u8, - ], - ) - } - } - } - #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_message_queue::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Message discarded due to an error in the `MessageProcessor` (usually a format error)."] - pub struct ProcessingFailed { - pub id: [::core::primitive::u8; 32usize], - pub origin: - runtime_types::polkadot_runtime_parachains::inclusion::AggregateMessageOrigin, - pub error: runtime_types::frame_support::traits::messages::ProcessMessageError, - } - impl ::subxt::events::StaticEvent for ProcessingFailed { - const PALLET: &'static str = "MessageQueue"; - const EVENT: &'static str = "ProcessingFailed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Message is processed."] - pub struct Processed { - pub id: [::core::primitive::u8; 32usize], - pub origin: - runtime_types::polkadot_runtime_parachains::inclusion::AggregateMessageOrigin, - pub weight_used: runtime_types::sp_weights::weight_v2::Weight, - pub success: ::core::primitive::bool, - } - impl ::subxt::events::StaticEvent for Processed { - const PALLET: &'static str = "MessageQueue"; - const EVENT: &'static str = "Processed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Message placed in overweight queue."] - pub struct OverweightEnqueued { - pub id: [::core::primitive::u8; 32usize], - pub origin: - runtime_types::polkadot_runtime_parachains::inclusion::AggregateMessageOrigin, - pub page_index: ::core::primitive::u32, - pub message_index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for OverweightEnqueued { - const PALLET: &'static str = "MessageQueue"; - const EVENT: &'static str = "OverweightEnqueued"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "This page was reaped."] - pub struct PageReaped { - pub origin: - runtime_types::polkadot_runtime_parachains::inclusion::AggregateMessageOrigin, - pub index: ::core::primitive::u32, - } - impl ::subxt::events::StaticEvent for PageReaped { - const PALLET: &'static str = "MessageQueue"; - const EVENT: &'static str = "PageReaped"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The index of the first and last (non-empty) pages."] pub fn book_state_for_iter (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_message_queue :: BookState < runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ - ::subxt::storage::address::Address::new_static( - "MessageQueue", - "BookStateFor", - vec![], - [ - 32u8, 61u8, 161u8, 81u8, 134u8, 136u8, 252u8, 113u8, 204u8, 115u8, - 206u8, 180u8, 33u8, 185u8, 137u8, 155u8, 178u8, 189u8, 234u8, 201u8, - 31u8, 230u8, 156u8, 72u8, 37u8, 56u8, 152u8, 91u8, 50u8, 82u8, 191u8, - 2u8, - ], - ) - } - #[doc = " The index of the first and last (non-empty) pages."] pub fn book_state_for (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_message_queue :: BookState < runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ - ::subxt::storage::address::Address::new_static( - "MessageQueue", - "BookStateFor", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 32u8, 61u8, 161u8, 81u8, 134u8, 136u8, 252u8, 113u8, 204u8, 115u8, - 206u8, 180u8, 33u8, 185u8, 137u8, 155u8, 178u8, 189u8, 234u8, 201u8, - 31u8, 230u8, 156u8, 72u8, 37u8, 56u8, 152u8, 91u8, 50u8, 82u8, 191u8, - 2u8, - ], - ) - } - #[doc = " The origin at which we should begin servicing."] - pub fn service_head( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_runtime_parachains::inclusion::AggregateMessageOrigin, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "MessageQueue", - "ServiceHead", - vec![], - [ - 17u8, 130u8, 229u8, 193u8, 127u8, 237u8, 60u8, 232u8, 99u8, 109u8, - 102u8, 228u8, 124u8, 103u8, 24u8, 188u8, 151u8, 121u8, 55u8, 97u8, - 85u8, 63u8, 131u8, 60u8, 99u8, 12u8, 88u8, 230u8, 86u8, 50u8, 12u8, - 75u8, - ], - ) - } - #[doc = " The map of page indices to pages."] - pub fn pages_iter( + } + #[doc = " Fungible assets which we know are locked on this chain."] + pub fn locked_fungibles_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_message_queue::Page<::core::primitive::u32>, + alias_types::locked_fungibles::LockedFungibles, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "MessageQueue", - "Pages", + "XcmPallet", + "LockedFungibles", vec![], [ - 56u8, 181u8, 157u8, 16u8, 157u8, 123u8, 106u8, 93u8, 199u8, 208u8, - 153u8, 53u8, 168u8, 188u8, 124u8, 77u8, 140u8, 163u8, 113u8, 16u8, - 232u8, 47u8, 10u8, 185u8, 113u8, 230u8, 47u8, 91u8, 253u8, 196u8, 95u8, - 102u8, + 110u8, 220u8, 127u8, 176u8, 219u8, 23u8, 132u8, 36u8, 224u8, 187u8, + 25u8, 103u8, 126u8, 99u8, 34u8, 105u8, 57u8, 182u8, 162u8, 69u8, 24u8, + 67u8, 221u8, 103u8, 79u8, 139u8, 187u8, 162u8, 113u8, 109u8, 163u8, + 35u8, ], ) } - #[doc = " The map of page indices to pages."] - pub fn pages_iter1( + #[doc = " Fungible assets which we know are locked on this chain."] + pub fn locked_fungibles( &self, - _0 : impl :: std :: borrow :: Borrow < runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin >, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_message_queue::Page<::core::primitive::u32>, + alias_types::locked_fungibles::LockedFungibles, + ::subxt::storage::address::Yes, (), (), - ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "MessageQueue", - "Pages", + "XcmPallet", + "LockedFungibles", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 56u8, 181u8, 157u8, 16u8, 157u8, 123u8, 106u8, 93u8, 199u8, 208u8, - 153u8, 53u8, 168u8, 188u8, 124u8, 77u8, 140u8, 163u8, 113u8, 16u8, - 232u8, 47u8, 10u8, 185u8, 113u8, 230u8, 47u8, 91u8, 253u8, 196u8, 95u8, - 102u8, + 110u8, 220u8, 127u8, 176u8, 219u8, 23u8, 132u8, 36u8, 224u8, 187u8, + 25u8, 103u8, 126u8, 99u8, 34u8, 105u8, 57u8, 182u8, 162u8, 69u8, 24u8, + 67u8, 221u8, 103u8, 79u8, 139u8, 187u8, 162u8, 113u8, 109u8, 163u8, + 35u8, ], ) } - #[doc = " The map of page indices to pages."] - pub fn pages( + #[doc = " Global suspension state of the XCM executor."] + pub fn xcm_execution_suspended( &self, - _0 : impl :: std :: borrow :: Borrow < runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin >, - _1: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_message_queue::Page<::core::primitive::u32>, + alias_types::xcm_execution_suspended::XcmExecutionSuspended, + ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, - (), (), > { ::subxt::storage::address::Address::new_static( - "MessageQueue", - "Pages", - vec![ - ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), - ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), - ], - [ - 56u8, 181u8, 157u8, 16u8, 157u8, 123u8, 106u8, 93u8, 199u8, 208u8, - 153u8, 53u8, 168u8, 188u8, 124u8, 77u8, 140u8, 163u8, 113u8, 16u8, - 232u8, 47u8, 10u8, 185u8, 113u8, 230u8, 47u8, 91u8, 253u8, 196u8, 95u8, - 102u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The size of the page; this implies the maximum message size which can be sent."] - #[doc = ""] - #[doc = " A good value depends on the expected message sizes, their weights, the weight that is"] - #[doc = " available for processing them and the maximal needed message size. The maximal message"] - #[doc = " size is slightly lower than this as defined by [`MaxMessageLenOf`]."] - pub fn heap_size(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "MessageQueue", - "HeapSize", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The maximum number of stale pages (i.e. of overweight messages) allowed before culling"] - #[doc = " can happen. Once there are more stale pages than this, then historical pages may be"] - #[doc = " dropped, even if they contain unprocessed overweight messages."] - pub fn max_stale(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "MessageQueue", - "MaxStale", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The amount of weight (if any) which should be provided to the message queue for"] - #[doc = " servicing enqueued items."] - #[doc = ""] - #[doc = " This may be legitimately `None` in the case that you will call"] - #[doc = " `ServiceQueues::service_queues` manually."] - pub fn service_weight( - &self, - ) -> ::subxt::constants::Address< - ::core::option::Option, - > { - ::subxt::constants::Address::new_static( - "MessageQueue", - "ServiceWeight", + "XcmPallet", + "XcmExecutionSuspended", + vec![], [ - 204u8, 140u8, 63u8, 167u8, 49u8, 8u8, 148u8, 163u8, 190u8, 224u8, 15u8, - 103u8, 86u8, 153u8, 248u8, 117u8, 223u8, 117u8, 210u8, 80u8, 205u8, - 155u8, 40u8, 11u8, 59u8, 63u8, 129u8, 156u8, 17u8, 83u8, 177u8, 250u8, + 182u8, 54u8, 69u8, 68u8, 78u8, 76u8, 103u8, 79u8, 47u8, 136u8, 99u8, + 104u8, 128u8, 129u8, 249u8, 54u8, 214u8, 136u8, 97u8, 48u8, 178u8, + 42u8, 26u8, 27u8, 82u8, 24u8, 33u8, 77u8, 33u8, 27u8, 20u8, 127u8, ], ) } } } } - pub mod runtime_types { + pub mod paras_sudo_wrapper { + use super::root_mod; use super::runtime_types; - pub mod bounded_collections { + #[doc = "The `Error` enum of this pallet."] + pub type Error = runtime_types::polkadot_runtime_common::paras_sudo_wrapper::pallet::Error; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::polkadot_runtime_common::paras_sudo_wrapper::pallet::Call; + pub mod calls { + use super::root_mod; use super::runtime_types; - pub mod bounded_btree_map { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct BoundedBTreeMap<_0, _1>(pub ::subxt::utils::KeyedVec<_0, _1>); - } - pub mod bounded_vec { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct BoundedVec<_0>(pub ::std::vec::Vec<_0>); - } - pub mod weak_bounded_vec { + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod alias_types { use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct WeakBoundedVec<_0>(pub ::std::vec::Vec<_0>); - } - } - pub mod finality_grandpa { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - 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 :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Precommit<_0, _1> { - pub target_hash: _0, - pub target_number: _1, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Prevote<_0, _1> { - pub target_hash: _0, - pub target_number: _1, + pub mod sudo_schedule_para_initialize { + use super::runtime_types; + pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Genesis = + runtime_types::polkadot_runtime_parachains::paras::ParaGenesisArgs; + } + pub mod sudo_schedule_para_cleanup { + use super::runtime_types; + pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; + } + pub mod sudo_schedule_parathread_upgrade { + use super::runtime_types; + pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; + } + pub mod sudo_schedule_parachain_downgrade { + use super::runtime_types; + pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; + } + pub mod sudo_queue_downward_xcm { + use super::runtime_types; + pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Xcm = runtime_types::xcm::VersionedXcm; + } + pub mod sudo_establish_hrmp_channel { + use super::runtime_types; + pub type Sender = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Recipient = + runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type MaxCapacity = ::core::primitive::u32; + pub type MaxMessageSize = ::core::primitive::u32; + } } - } - pub mod frame_support { - use super::runtime_types; - pub mod dispatch { + pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, @@ -37348,13 +36922,13 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum DispatchClass { - #[codec(index = 0)] - Normal, - #[codec(index = 1)] - Operational, - #[codec(index = 2)] - Mandatory, + pub struct SudoScheduleParaInitialize { + pub id: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub genesis: runtime_types::polkadot_runtime_parachains::paras::ParaGenesisArgs, + } + impl ::subxt::blocks::StaticExtrinsic for SudoScheduleParaInitialize { + const PALLET: &'static str = "ParasSudoWrapper"; + const CALL: &'static str = "sudo_schedule_para_initialize"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -37366,10 +36940,12 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct DispatchInfo { - pub weight: runtime_types::sp_weights::weight_v2::Weight, - pub class: runtime_types::frame_support::dispatch::DispatchClass, - pub pays_fee: runtime_types::frame_support::dispatch::Pays, + pub struct SudoScheduleParaCleanup { + pub id: runtime_types::polkadot_parachain_primitives::primitives::Id, + } + impl ::subxt::blocks::StaticExtrinsic for SudoScheduleParaCleanup { + const PALLET: &'static str = "ParasSudoWrapper"; + const CALL: &'static str = "sudo_schedule_para_cleanup"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -37381,11 +36957,12 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Pays { - #[codec(index = 0)] - Yes, - #[codec(index = 1)] - No, + pub struct SudoScheduleParathreadUpgrade { + pub id: runtime_types::polkadot_parachain_primitives::primitives::Id, + } + impl ::subxt::blocks::StaticExtrinsic for SudoScheduleParathreadUpgrade { + const PALLET: &'static str = "ParasSudoWrapper"; + const CALL: &'static str = "sudo_schedule_parathread_upgrade"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -37397,10 +36974,12 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct PerDispatchClass<_0> { - pub normal: _0, - pub operational: _0, - pub mandatory: _0, + pub struct SudoScheduleParachainDowngrade { + pub id: runtime_types::polkadot_parachain_primitives::primitives::Id, + } + impl ::subxt::blocks::StaticExtrinsic for SudoScheduleParachainDowngrade { + const PALLET: &'static str = "ParasSudoWrapper"; + const CALL: &'static str = "sudo_schedule_parachain_downgrade"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -37412,10 +36991,13 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct PostDispatchInfo { - pub actual_weight: - ::core::option::Option, - pub pays_fee: runtime_types::frame_support::dispatch::Pays, + pub struct SudoQueueDownwardXcm { + pub id: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub xcm: ::std::boxed::Box, + } + impl ::subxt::blocks::StaticExtrinsic for SudoQueueDownwardXcm { + const PALLET: &'static str = "ParasSudoWrapper"; + const CALL: &'static str = "sudo_queue_downward_xcm"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -37427,231 +37009,170 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum RawOrigin<_0> { - #[codec(index = 0)] - Root, - #[codec(index = 1)] - Signed(_0), - #[codec(index = 2)] - None, + pub struct SudoEstablishHrmpChannel { + pub sender: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub recipient: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub max_capacity: ::core::primitive::u32, + pub max_message_size: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for SudoEstablishHrmpChannel { + const PALLET: &'static str = "ParasSudoWrapper"; + const CALL: &'static str = "sudo_establish_hrmp_channel"; } } - pub mod traits { - use super::runtime_types; - pub mod messages { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum ProcessMessageError { - #[codec(index = 0)] - BadFormat, - #[codec(index = 1)] - Corrupt, - #[codec(index = 2)] - Unsupported, - #[codec(index = 3)] - Overweight(runtime_types::sp_weights::weight_v2::Weight), - #[codec(index = 4)] - Yield, - } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::sudo_schedule_para_initialize`]."] + pub fn sudo_schedule_para_initialize( + &self, + id: alias_types::sudo_schedule_para_initialize::Id, + genesis: alias_types::sudo_schedule_para_initialize::Genesis, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "ParasSudoWrapper", + "sudo_schedule_para_initialize", + types::SudoScheduleParaInitialize { id, genesis }, + [ + 91u8, 145u8, 184u8, 83u8, 85u8, 168u8, 43u8, 14u8, 18u8, 86u8, 4u8, + 120u8, 148u8, 107u8, 139u8, 46u8, 145u8, 126u8, 255u8, 61u8, 83u8, + 140u8, 63u8, 233u8, 0u8, 47u8, 227u8, 194u8, 99u8, 7u8, 61u8, 15u8, + ], + ) } - pub mod preimages { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Bounded<_0> { - #[codec(index = 0)] - Legacy { - hash: ::subxt::utils::H256, - }, - #[codec(index = 1)] - Inline( - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - ), - #[codec(index = 2)] - Lookup { - hash: ::subxt::utils::H256, - len: ::core::primitive::u32, - }, - __Ignore(::core::marker::PhantomData<_0>), - } + #[doc = "See [`Pallet::sudo_schedule_para_cleanup`]."] + pub fn sudo_schedule_para_cleanup( + &self, + id: alias_types::sudo_schedule_para_cleanup::Id, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "ParasSudoWrapper", + "sudo_schedule_para_cleanup", + types::SudoScheduleParaCleanup { id }, + [ + 148u8, 0u8, 73u8, 32u8, 33u8, 214u8, 92u8, 82u8, 146u8, 97u8, 39u8, + 220u8, 147u8, 148u8, 83u8, 200u8, 36u8, 197u8, 231u8, 246u8, 159u8, + 175u8, 195u8, 46u8, 68u8, 230u8, 16u8, 240u8, 108u8, 132u8, 0u8, 188u8, + ], + ) } - pub mod schedule { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum DispatchTime<_0> { - #[codec(index = 0)] - At(_0), - #[codec(index = 1)] - After(_0), - } + #[doc = "See [`Pallet::sudo_schedule_parathread_upgrade`]."] + pub fn sudo_schedule_parathread_upgrade( + &self, + id: alias_types::sudo_schedule_parathread_upgrade::Id, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "ParasSudoWrapper", + "sudo_schedule_parathread_upgrade", + types::SudoScheduleParathreadUpgrade { id }, + [ + 244u8, 142u8, 128u8, 182u8, 130u8, 88u8, 113u8, 34u8, 92u8, 224u8, + 244u8, 155u8, 83u8, 212u8, 68u8, 87u8, 156u8, 80u8, 26u8, 23u8, 245u8, + 197u8, 167u8, 204u8, 14u8, 198u8, 70u8, 93u8, 227u8, 159u8, 159u8, + 88u8, + ], + ) } - pub mod tokens { - use super::runtime_types; - pub mod misc { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum BalanceStatus { - #[codec(index = 0)] - Free, - #[codec(index = 1)] - Reserved, - } - } + #[doc = "See [`Pallet::sudo_schedule_parachain_downgrade`]."] + pub fn sudo_schedule_parachain_downgrade( + &self, + id: alias_types::sudo_schedule_parachain_downgrade::Id, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "ParasSudoWrapper", + "sudo_schedule_parachain_downgrade", + types::SudoScheduleParachainDowngrade { id }, + [ + 152u8, 217u8, 14u8, 138u8, 136u8, 85u8, 79u8, 255u8, 220u8, 85u8, + 248u8, 12u8, 186u8, 250u8, 206u8, 152u8, 115u8, 92u8, 143u8, 8u8, + 171u8, 46u8, 94u8, 232u8, 169u8, 79u8, 150u8, 212u8, 166u8, 191u8, + 188u8, 198u8, + ], + ) + } + #[doc = "See [`Pallet::sudo_queue_downward_xcm`]."] + pub fn sudo_queue_downward_xcm( + &self, + id: alias_types::sudo_queue_downward_xcm::Id, + xcm: alias_types::sudo_queue_downward_xcm::Xcm, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "ParasSudoWrapper", + "sudo_queue_downward_xcm", + types::SudoQueueDownwardXcm { + id, + xcm: ::std::boxed::Box::new(xcm), + }, + [ + 144u8, 179u8, 113u8, 39u8, 46u8, 58u8, 218u8, 220u8, 98u8, 232u8, + 121u8, 119u8, 127u8, 99u8, 52u8, 189u8, 232u8, 28u8, 233u8, 54u8, + 122u8, 206u8, 155u8, 7u8, 88u8, 167u8, 203u8, 251u8, 96u8, 156u8, 23u8, + 54u8, + ], + ) + } + #[doc = "See [`Pallet::sudo_establish_hrmp_channel`]."] + pub fn sudo_establish_hrmp_channel( + &self, + sender: alias_types::sudo_establish_hrmp_channel::Sender, + recipient: alias_types::sudo_establish_hrmp_channel::Recipient, + max_capacity: alias_types::sudo_establish_hrmp_channel::MaxCapacity, + max_message_size: alias_types::sudo_establish_hrmp_channel::MaxMessageSize, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "ParasSudoWrapper", + "sudo_establish_hrmp_channel", + types::SudoEstablishHrmpChannel { + sender, + recipient, + max_capacity, + max_message_size, + }, + [ + 236u8, 105u8, 76u8, 213u8, 11u8, 105u8, 119u8, 48u8, 1u8, 103u8, 239u8, + 156u8, 66u8, 63u8, 135u8, 67u8, 226u8, 150u8, 254u8, 24u8, 169u8, 82u8, + 29u8, 75u8, 102u8, 167u8, 59u8, 66u8, 173u8, 148u8, 202u8, 50u8, + ], + ) } } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct PalletId(pub [::core::primitive::u8; 8usize]); } - pub mod frame_system { + } + pub mod assigned_slots { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Error` enum of this pallet."] + pub type Error = runtime_types::polkadot_runtime_common::assigned_slots::pallet::Error; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::polkadot_runtime_common::assigned_slots::pallet::Call; + pub mod calls { + use super::root_mod; use super::runtime_types; - pub mod extensions { + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod alias_types { use super::runtime_types; - pub mod check_genesis { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct CheckGenesis; - } - pub mod check_mortality { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct CheckMortality(pub runtime_types::sp_runtime::generic::era::Era); - } - pub mod check_non_zero_sender { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct CheckNonZeroSender; - } - pub mod check_nonce { + pub mod assign_perm_parachain_slot { use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct CheckNonce(#[codec(compact)] pub ::core::primitive::u32); + pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; } - pub mod check_spec_version { + pub mod assign_temp_parachain_slot { use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct CheckSpecVersion; + pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type LeasePeriodStart = runtime_types :: polkadot_runtime_common :: assigned_slots :: SlotLeasePeriodStart ; } - pub mod check_tx_version { + pub mod unassign_parachain_slot { use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct CheckTxVersion; + pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; } - pub mod check_weight { + pub mod set_max_permanent_slots { use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct CheckWeight; + pub type Slots = ::core::primitive::u32; + } + pub mod set_max_temporary_slots { + use super::runtime_types; + pub type Slots = ::core::primitive::u32; } } - pub mod limits { + pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, @@ -37663,27 +37184,12 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct BlockLength { - pub max: runtime_types::frame_support::dispatch::PerDispatchClass< - ::core::primitive::u32, - >, + pub struct AssignPermParachainSlot { + pub id: runtime_types::polkadot_parachain_primitives::primitives::Id, } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct BlockWeights { - pub base_block: runtime_types::sp_weights::weight_v2::Weight, - pub max_block: runtime_types::sp_weights::weight_v2::Weight, - pub per_class: runtime_types::frame_support::dispatch::PerDispatchClass< - runtime_types::frame_system::limits::WeightsPerClass, - >, + impl ::subxt::blocks::StaticExtrinsic for AssignPermParachainSlot { + const PALLET: &'static str = "AssignedSlots"; + const CALL: &'static str = "assign_perm_parachain_slot"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -37695,18 +37201,11 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct WeightsPerClass { - pub base_extrinsic: runtime_types::sp_weights::weight_v2::Weight, - pub max_extrinsic: - ::core::option::Option, - pub max_total: - ::core::option::Option, - pub reserved: - ::core::option::Option, + pub struct AssignTempParachainSlot { pub id : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , pub lease_period_start : runtime_types :: polkadot_runtime_common :: assigned_slots :: SlotLeasePeriodStart , } + impl ::subxt::blocks::StaticExtrinsic for AssignTempParachainSlot { + const PALLET: &'static str = "AssignedSlots"; + const CALL: &'static str = "assign_temp_parachain_slot"; } - } - pub mod pallet { - use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -37717,52 +37216,15 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub enum Call { - #[codec(index = 0)] - #[doc = "See [`Pallet::remark`]."] - remark { - remark: ::std::vec::Vec<::core::primitive::u8>, - }, - #[codec(index = 1)] - #[doc = "See [`Pallet::set_heap_pages`]."] - set_heap_pages { pages: ::core::primitive::u64 }, - #[codec(index = 2)] - #[doc = "See [`Pallet::set_code`]."] - set_code { - code: ::std::vec::Vec<::core::primitive::u8>, - }, - #[codec(index = 3)] - #[doc = "See [`Pallet::set_code_without_checks`]."] - set_code_without_checks { - code: ::std::vec::Vec<::core::primitive::u8>, - }, - #[codec(index = 4)] - #[doc = "See [`Pallet::set_storage`]."] - set_storage { - items: ::std::vec::Vec<( - ::std::vec::Vec<::core::primitive::u8>, - ::std::vec::Vec<::core::primitive::u8>, - )>, - }, - #[codec(index = 5)] - #[doc = "See [`Pallet::kill_storage`]."] - kill_storage { - keys: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, - }, - #[codec(index = 6)] - #[doc = "See [`Pallet::kill_prefix`]."] - kill_prefix { - prefix: ::std::vec::Vec<::core::primitive::u8>, - subkeys: ::core::primitive::u32, - }, - #[codec(index = 7)] - #[doc = "See [`Pallet::remark_with_event`]."] - remark_with_event { - remark: ::std::vec::Vec<::core::primitive::u8>, - }, + pub struct UnassignParachainSlot { + pub id: runtime_types::polkadot_parachain_primitives::primitives::Id, + } + impl ::subxt::blocks::StaticExtrinsic for UnassignParachainSlot { + const PALLET: &'static str = "AssignedSlots"; + const CALL: &'static str = "unassign_parachain_slot"; } #[derive( + :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -37772,32 +37234,15 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Error for the System pallet"] - pub enum Error { - #[codec(index = 0)] - #[doc = "The name of specification does not match between the current runtime"] - #[doc = "and the new runtime."] - InvalidSpecName, - #[codec(index = 1)] - #[doc = "The specification version is not allowed to decrease between the current runtime"] - #[doc = "and the new runtime."] - SpecVersionNeedsToIncrease, - #[codec(index = 2)] - #[doc = "Failed to extract the runtime version from the new runtime."] - #[doc = ""] - #[doc = "Either calling `Core_version` or decoding `RuntimeVersion` failed."] - FailedToExtractRuntimeVersion, - #[codec(index = 3)] - #[doc = "Suicide called when the account has non-default composite data."] - NonDefaultComposite, - #[codec(index = 4)] - #[doc = "There is a non-zero reference count preventing the account from being purged."] - NonZeroRefCount, - #[codec(index = 5)] - #[doc = "The origin filter prevent the call to be dispatched."] - CallFiltered, + pub struct SetMaxPermanentSlots { + pub slots: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for SetMaxPermanentSlots { + const PALLET: &'static str = "AssignedSlots"; + const CALL: &'static str = "set_max_permanent_slots"; } #[derive( + :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -37807,40 +37252,109 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Event for the System pallet."] - pub enum Event { - #[codec(index = 0)] - #[doc = "An extrinsic completed successfully."] - ExtrinsicSuccess { - dispatch_info: runtime_types::frame_support::dispatch::DispatchInfo, - }, - #[codec(index = 1)] - #[doc = "An extrinsic failed."] - ExtrinsicFailed { - dispatch_error: runtime_types::sp_runtime::DispatchError, - dispatch_info: runtime_types::frame_support::dispatch::DispatchInfo, - }, - #[codec(index = 2)] - #[doc = "`:code` was updated."] - CodeUpdated, - #[codec(index = 3)] - #[doc = "A new account was created."] - NewAccount { - account: ::subxt::utils::AccountId32, - }, - #[codec(index = 4)] - #[doc = "An account was reaped."] - KilledAccount { - account: ::subxt::utils::AccountId32, - }, - #[codec(index = 5)] - #[doc = "On on-chain remark happened."] - Remarked { - sender: ::subxt::utils::AccountId32, - hash: ::subxt::utils::H256, - }, + pub struct SetMaxTemporarySlots { + pub slots: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for SetMaxTemporarySlots { + const PALLET: &'static str = "AssignedSlots"; + const CALL: &'static str = "set_max_temporary_slots"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::assign_perm_parachain_slot`]."] + pub fn assign_perm_parachain_slot( + &self, + id: alias_types::assign_perm_parachain_slot::Id, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "AssignedSlots", + "assign_perm_parachain_slot", + types::AssignPermParachainSlot { id }, + [ + 174u8, 53u8, 0u8, 157u8, 42u8, 160u8, 60u8, 36u8, 68u8, 7u8, 86u8, + 60u8, 126u8, 71u8, 118u8, 95u8, 139u8, 208u8, 57u8, 118u8, 183u8, + 111u8, 59u8, 37u8, 186u8, 193u8, 92u8, 145u8, 39u8, 21u8, 237u8, 31u8, + ], + ) + } + #[doc = "See [`Pallet::assign_temp_parachain_slot`]."] + pub fn assign_temp_parachain_slot( + &self, + id: alias_types::assign_temp_parachain_slot::Id, + lease_period_start: alias_types::assign_temp_parachain_slot::LeasePeriodStart, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "AssignedSlots", + "assign_temp_parachain_slot", + types::AssignTempParachainSlot { + id, + lease_period_start, + }, + [ + 226u8, 38u8, 224u8, 199u8, 32u8, 159u8, 245u8, 129u8, 190u8, 103u8, + 103u8, 214u8, 27u8, 215u8, 104u8, 111u8, 132u8, 186u8, 214u8, 25u8, + 110u8, 187u8, 73u8, 179u8, 101u8, 48u8, 60u8, 218u8, 248u8, 28u8, + 202u8, 66u8, + ], + ) + } + #[doc = "See [`Pallet::unassign_parachain_slot`]."] + pub fn unassign_parachain_slot( + &self, + id: alias_types::unassign_parachain_slot::Id, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "AssignedSlots", + "unassign_parachain_slot", + types::UnassignParachainSlot { id }, + [ + 235u8, 6u8, 124u8, 73u8, 72u8, 232u8, 38u8, 233u8, 103u8, 111u8, 249u8, + 235u8, 10u8, 169u8, 92u8, 251u8, 245u8, 151u8, 28u8, 78u8, 125u8, + 113u8, 201u8, 187u8, 24u8, 58u8, 18u8, 177u8, 68u8, 122u8, 167u8, + 143u8, + ], + ) + } + #[doc = "See [`Pallet::set_max_permanent_slots`]."] + pub fn set_max_permanent_slots( + &self, + slots: alias_types::set_max_permanent_slots::Slots, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "AssignedSlots", + "set_max_permanent_slots", + types::SetMaxPermanentSlots { slots }, + [ + 62u8, 74u8, 80u8, 101u8, 204u8, 21u8, 139u8, 67u8, 178u8, 103u8, 237u8, + 166u8, 58u8, 6u8, 201u8, 30u8, 17u8, 186u8, 220u8, 150u8, 183u8, 174u8, + 72u8, 15u8, 72u8, 166u8, 116u8, 203u8, 132u8, 237u8, 196u8, 230u8, + ], + ) + } + #[doc = "See [`Pallet::set_max_temporary_slots`]."] + pub fn set_max_temporary_slots( + &self, + slots: alias_types::set_max_temporary_slots::Slots, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "AssignedSlots", + "set_max_temporary_slots", + types::SetMaxTemporarySlots { slots }, + [ + 126u8, 108u8, 55u8, 12u8, 136u8, 207u8, 246u8, 65u8, 251u8, 139u8, + 150u8, 134u8, 10u8, 133u8, 106u8, 161u8, 61u8, 59u8, 15u8, 72u8, 247u8, + 33u8, 191u8, 127u8, 27u8, 89u8, 165u8, 134u8, 148u8, 140u8, 204u8, + 22u8, + ], + ) } } + } + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::polkadot_runtime_common::assigned_slots::pallet::Event; + pub mod events { + use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -37851,12 +37365,13 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct AccountInfo<_0, _1> { - pub nonce: _0, - pub consumers: ::core::primitive::u32, - pub providers: ::core::primitive::u32, - pub sufficients: ::core::primitive::u32, - pub data: _1, + #[doc = "A parachain was assigned a permanent parachain slot"] + pub struct PermanentSlotAssigned( + pub runtime_types::polkadot_parachain_primitives::primitives::Id, + ); + impl ::subxt::events::StaticEvent for PermanentSlotAssigned { + const PALLET: &'static str = "AssignedSlots"; + const EVENT: &'static str = "PermanentSlotAssigned"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -37868,12 +37383,16 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct EventRecord<_0, _1> { - pub phase: runtime_types::frame_system::Phase, - pub event: _0, - pub topics: ::std::vec::Vec<_1>, + #[doc = "A parachain was assigned a temporary parachain slot"] + pub struct TemporarySlotAssigned( + pub runtime_types::polkadot_parachain_primitives::primitives::Id, + ); + impl ::subxt::events::StaticEvent for TemporarySlotAssigned { + const PALLET: &'static str = "AssignedSlots"; + const EVENT: &'static str = "TemporarySlotAssigned"; } #[derive( + :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -37883,12 +37402,16 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct LastRuntimeUpgradeInfo { - #[codec(compact)] - pub spec_version: ::core::primitive::u32, - pub spec_name: ::std::string::String, + #[doc = "The maximum number of permanent slots has been changed"] + pub struct MaxPermanentSlotsChanged { + pub slots: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for MaxPermanentSlotsChanged { + const PALLET: &'static str = "AssignedSlots"; + const EVENT: &'static str = "MaxPermanentSlotsChanged"; } #[derive( + :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -37898,18 +37421,331 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Phase { - #[codec(index = 0)] - ApplyExtrinsic(::core::primitive::u32), - #[codec(index = 1)] - Finalization, - #[codec(index = 2)] - Initialization, + #[doc = "The maximum number of temporary slots has been changed"] + pub struct MaxTemporarySlotsChanged { + pub slots: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for MaxTemporarySlotsChanged { + const PALLET: &'static str = "AssignedSlots"; + const EVENT: &'static str = "MaxTemporarySlotsChanged"; } } - pub mod pallet_babe { + pub mod storage { use super::runtime_types; - pub mod pallet { + pub mod alias_types { + use super::runtime_types; + pub mod permanent_slots { + use super::runtime_types; + pub type PermanentSlots = (::core::primitive::u32, ::core::primitive::u32); + } + pub mod permanent_slot_count { + use super::runtime_types; + pub type PermanentSlotCount = ::core::primitive::u32; + } + pub mod temporary_slots { + use super::runtime_types; + pub type TemporarySlots = runtime_types :: polkadot_runtime_common :: assigned_slots :: ParachainTemporarySlot < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > ; + } + pub mod temporary_slot_count { + use super::runtime_types; + pub type TemporarySlotCount = ::core::primitive::u32; + } + pub mod active_temporary_slot_count { + use super::runtime_types; + pub type ActiveTemporarySlotCount = ::core::primitive::u32; + } + pub mod max_temporary_slots { + use super::runtime_types; + pub type MaxTemporarySlots = ::core::primitive::u32; + } + pub mod max_permanent_slots { + use super::runtime_types; + pub type MaxPermanentSlots = ::core::primitive::u32; + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " Assigned permanent slots, with their start lease period, and duration."] + pub fn permanent_slots_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::permanent_slots::PermanentSlots, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "AssignedSlots", + "PermanentSlots", + vec![], + [ + 133u8, 179u8, 221u8, 222u8, 50u8, 75u8, 158u8, 137u8, 167u8, 190u8, + 19u8, 237u8, 201u8, 44u8, 86u8, 64u8, 57u8, 61u8, 96u8, 112u8, 218u8, + 186u8, 176u8, 58u8, 143u8, 61u8, 105u8, 13u8, 103u8, 162u8, 188u8, + 154u8, + ], + ) + } + #[doc = " Assigned permanent slots, with their start lease period, and duration."] + pub fn permanent_slots( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::polkadot_parachain_primitives::primitives::Id, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::permanent_slots::PermanentSlots, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "AssignedSlots", + "PermanentSlots", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 133u8, 179u8, 221u8, 222u8, 50u8, 75u8, 158u8, 137u8, 167u8, 190u8, + 19u8, 237u8, 201u8, 44u8, 86u8, 64u8, 57u8, 61u8, 96u8, 112u8, 218u8, + 186u8, 176u8, 58u8, 143u8, 61u8, 105u8, 13u8, 103u8, 162u8, 188u8, + 154u8, + ], + ) + } + #[doc = " Number of assigned (and active) permanent slots."] + pub fn permanent_slot_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::permanent_slot_count::PermanentSlotCount, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "AssignedSlots", + "PermanentSlotCount", + vec![], + [ + 57u8, 211u8, 19u8, 233u8, 105u8, 201u8, 166u8, 99u8, 53u8, 217u8, 23u8, + 64u8, 216u8, 129u8, 21u8, 36u8, 234u8, 24u8, 57u8, 99u8, 13u8, 205u8, + 201u8, 78u8, 28u8, 96u8, 232u8, 62u8, 91u8, 235u8, 157u8, 213u8, + ], + ) + } + #[doc = " Assigned temporary slots."] + pub fn temporary_slots_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::temporary_slots::TemporarySlots, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "AssignedSlots", + "TemporarySlots", + vec![], + [ + 184u8, 245u8, 181u8, 90u8, 169u8, 232u8, 108u8, 3u8, 153u8, 4u8, 176u8, + 170u8, 230u8, 163u8, 236u8, 111u8, 196u8, 218u8, 154u8, 125u8, 102u8, + 216u8, 195u8, 126u8, 99u8, 90u8, 242u8, 141u8, 214u8, 165u8, 32u8, + 57u8, + ], + ) + } + #[doc = " Assigned temporary slots."] + pub fn temporary_slots( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::polkadot_parachain_primitives::primitives::Id, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::temporary_slots::TemporarySlots, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "AssignedSlots", + "TemporarySlots", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 184u8, 245u8, 181u8, 90u8, 169u8, 232u8, 108u8, 3u8, 153u8, 4u8, 176u8, + 170u8, 230u8, 163u8, 236u8, 111u8, 196u8, 218u8, 154u8, 125u8, 102u8, + 216u8, 195u8, 126u8, 99u8, 90u8, 242u8, 141u8, 214u8, 165u8, 32u8, + 57u8, + ], + ) + } + #[doc = " Number of assigned temporary slots."] + pub fn temporary_slot_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::temporary_slot_count::TemporarySlotCount, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "AssignedSlots", + "TemporarySlotCount", + vec![], + [ + 218u8, 236u8, 69u8, 75u8, 224u8, 60u8, 9u8, 197u8, 217u8, 4u8, 210u8, + 55u8, 125u8, 106u8, 239u8, 208u8, 115u8, 105u8, 94u8, 223u8, 219u8, + 27u8, 175u8, 161u8, 120u8, 168u8, 36u8, 239u8, 136u8, 228u8, 7u8, 15u8, + ], + ) + } + #[doc = " Number of active temporary slots in current slot lease period."] + pub fn active_temporary_slot_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::active_temporary_slot_count::ActiveTemporarySlotCount, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "AssignedSlots", + "ActiveTemporarySlotCount", + vec![], + [ + 153u8, 99u8, 232u8, 164u8, 137u8, 10u8, 232u8, 172u8, 78u8, 4u8, 69u8, + 178u8, 245u8, 220u8, 56u8, 251u8, 60u8, 238u8, 127u8, 246u8, 60u8, + 11u8, 240u8, 185u8, 2u8, 194u8, 69u8, 212u8, 173u8, 205u8, 205u8, + 198u8, + ], + ) + } + #[doc = " The max number of temporary slots that can be assigned."] + pub fn max_temporary_slots( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::max_temporary_slots::MaxTemporarySlots, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "AssignedSlots", + "MaxTemporarySlots", + vec![], + [ + 129u8, 130u8, 136u8, 77u8, 149u8, 130u8, 130u8, 195u8, 150u8, 114u8, + 199u8, 133u8, 86u8, 252u8, 149u8, 149u8, 131u8, 248u8, 70u8, 39u8, + 22u8, 101u8, 175u8, 13u8, 32u8, 138u8, 81u8, 20u8, 41u8, 46u8, 238u8, + 187u8, + ], + ) + } + #[doc = " The max number of permanent slots that can be assigned."] + pub fn max_permanent_slots( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::max_permanent_slots::MaxPermanentSlots, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "AssignedSlots", + "MaxPermanentSlots", + vec![], + [ + 20u8, 72u8, 203u8, 62u8, 120u8, 21u8, 97u8, 9u8, 138u8, 135u8, 67u8, + 152u8, 131u8, 197u8, 59u8, 80u8, 226u8, 148u8, 159u8, 122u8, 34u8, + 86u8, 162u8, 80u8, 208u8, 151u8, 43u8, 164u8, 120u8, 33u8, 144u8, + 118u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The number of lease periods a permanent parachain slot lasts."] + pub fn permanent_slot_lease_period_length( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "AssignedSlots", + "PermanentSlotLeasePeriodLength", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The number of lease periods a temporary parachain slot lasts."] + pub fn temporary_slot_lease_period_length( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "AssignedSlots", + "TemporarySlotLeasePeriodLength", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The max number of temporary slots to be scheduled per lease periods."] + pub fn max_temporary_slot_per_lease_period( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "AssignedSlots", + "MaxTemporarySlotPerLeasePeriod", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + } + } + } + pub mod validator_manager { + use super::root_mod; + use super::runtime_types; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::rococo_runtime::validator_manager::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod alias_types { + use super::runtime_types; + pub mod register_validators { + use super::runtime_types; + pub type Validators = ::std::vec::Vec<::subxt::utils::AccountId32>; + } + pub mod deregister_validators { + use super::runtime_types; + pub type Validators = ::std::vec::Vec<::subxt::utils::AccountId32>; + } + } + pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, @@ -37921,72 +37757,219 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub enum Call { - #[codec(index = 0)] - #[doc = "See [`Pallet::report_equivocation`]."] - report_equivocation { - equivocation_proof: ::std::boxed::Box< - runtime_types::sp_consensus_slots::EquivocationProof< - runtime_types::sp_runtime::generic::header::Header< - ::core::primitive::u32, - runtime_types::sp_runtime::traits::BlakeTwo256, - >, - runtime_types::sp_consensus_babe::app::Public, - >, - >, - key_owner_proof: runtime_types::sp_session::MembershipProof, - }, - #[codec(index = 1)] - #[doc = "See [`Pallet::report_equivocation_unsigned`]."] - report_equivocation_unsigned { - equivocation_proof: ::std::boxed::Box< - runtime_types::sp_consensus_slots::EquivocationProof< - runtime_types::sp_runtime::generic::header::Header< - ::core::primitive::u32, - runtime_types::sp_runtime::traits::BlakeTwo256, - >, - runtime_types::sp_consensus_babe::app::Public, - >, - >, - key_owner_proof: runtime_types::sp_session::MembershipProof, - }, - #[codec(index = 2)] - #[doc = "See [`Pallet::plan_config_change`]."] - plan_config_change { - config: runtime_types::sp_consensus_babe::digests::NextConfigDescriptor, - }, + pub struct RegisterValidators { + pub validators: ::std::vec::Vec<::subxt::utils::AccountId32>, + } + impl ::subxt::blocks::StaticExtrinsic for RegisterValidators { + const PALLET: &'static str = "ValidatorManager"; + const CALL: &'static str = "register_validators"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct DeregisterValidators { + pub validators: ::std::vec::Vec<::subxt::utils::AccountId32>, + } + impl ::subxt::blocks::StaticExtrinsic for DeregisterValidators { + const PALLET: &'static str = "ValidatorManager"; + const CALL: &'static str = "deregister_validators"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::register_validators`]."] + pub fn register_validators( + &self, + validators: alias_types::register_validators::Validators, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "ValidatorManager", + "register_validators", + types::RegisterValidators { validators }, + [ + 181u8, 41u8, 122u8, 3u8, 39u8, 160u8, 138u8, 83u8, 145u8, 147u8, 107u8, + 151u8, 213u8, 31u8, 237u8, 89u8, 119u8, 154u8, 14u8, 23u8, 238u8, + 247u8, 201u8, 92u8, 68u8, 127u8, 56u8, 178u8, 125u8, 152u8, 17u8, + 147u8, + ], + ) + } + #[doc = "See [`Pallet::deregister_validators`]."] + pub fn deregister_validators( + &self, + validators: alias_types::deregister_validators::Validators, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "ValidatorManager", + "deregister_validators", + types::DeregisterValidators { validators }, + [ + 150u8, 134u8, 135u8, 215u8, 121u8, 111u8, 44u8, 52u8, 25u8, 244u8, + 130u8, 47u8, 66u8, 73u8, 243u8, 49u8, 171u8, 143u8, 34u8, 122u8, 55u8, + 234u8, 176u8, 221u8, 106u8, 61u8, 102u8, 234u8, 13u8, 233u8, 211u8, + 214u8, + ], + ) + } + } + } + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::rococo_runtime::validator_manager::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "New validators were added to the set."] + pub struct ValidatorsRegistered(pub ::std::vec::Vec<::subxt::utils::AccountId32>); + impl ::subxt::events::StaticEvent for ValidatorsRegistered { + const PALLET: &'static str = "ValidatorManager"; + const EVENT: &'static str = "ValidatorsRegistered"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Validators were removed from the set."] + pub struct ValidatorsDeregistered(pub ::std::vec::Vec<::subxt::utils::AccountId32>); + impl ::subxt::events::StaticEvent for ValidatorsDeregistered { + const PALLET: &'static str = "ValidatorManager"; + const EVENT: &'static str = "ValidatorsDeregistered"; + } + } + pub mod storage { + use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + pub mod validators_to_retire { + use super::runtime_types; + pub type ValidatorsToRetire = ::std::vec::Vec<::subxt::utils::AccountId32>; } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] - pub enum Error { - #[codec(index = 0)] - #[doc = "An equivocation proof provided as part of an equivocation report is invalid."] - InvalidEquivocationProof, - #[codec(index = 1)] - #[doc = "A key ownership proof provided as part of an equivocation report is invalid."] - InvalidKeyOwnershipProof, - #[codec(index = 2)] - #[doc = "A given equivocation report is valid but already previously reported."] - DuplicateOffenceReport, - #[codec(index = 3)] - #[doc = "Submitted configuration is invalid."] - InvalidConfiguration, + pub mod validators_to_add { + use super::runtime_types; + pub type ValidatorsToAdd = ::std::vec::Vec<::subxt::utils::AccountId32>; + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " Validators that should be retired, because their Parachain was deregistered."] + pub fn validators_to_retire( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::validators_to_retire::ValidatorsToRetire, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "ValidatorManager", + "ValidatorsToRetire", + vec![], + [ + 137u8, 92u8, 99u8, 157u8, 254u8, 166u8, 190u8, 64u8, 111u8, 212u8, + 37u8, 90u8, 164u8, 0u8, 31u8, 15u8, 83u8, 21u8, 225u8, 7u8, 57u8, + 104u8, 64u8, 192u8, 58u8, 38u8, 36u8, 133u8, 181u8, 229u8, 200u8, 65u8, + ], + ) + } + #[doc = " Validators that should be added."] + pub fn validators_to_add( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::validators_to_add::ValidatorsToAdd, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "ValidatorManager", + "ValidatorsToAdd", + vec![], + [ + 168u8, 209u8, 123u8, 225u8, 168u8, 62u8, 18u8, 174u8, 164u8, 161u8, + 228u8, 179u8, 251u8, 112u8, 210u8, 173u8, 24u8, 177u8, 111u8, 129u8, + 97u8, 230u8, 231u8, 103u8, 72u8, 104u8, 222u8, 156u8, 190u8, 150u8, + 147u8, 68u8, + ], + ) } } } - pub mod pallet_bags_list { + } + pub mod state_trie_migration { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Error` enum of this pallet."] + pub type Error = runtime_types::pallet_state_trie_migration::pallet::Error; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::pallet_state_trie_migration::pallet::Call; + pub mod calls { + use super::root_mod; use super::runtime_types; - pub mod list { + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod alias_types { + use super::runtime_types; + pub mod control_auto_migration { + use super::runtime_types; + pub type MaybeConfig = ::core::option::Option< + runtime_types::pallet_state_trie_migration::pallet::MigrationLimits, + >; + } + pub mod continue_migrate { + use super::runtime_types; + pub type Limits = + runtime_types::pallet_state_trie_migration::pallet::MigrationLimits; + pub type RealSizeUpper = ::core::primitive::u32; + pub type WitnessTask = + runtime_types::pallet_state_trie_migration::pallet::MigrationTask; + } + pub mod migrate_custom_top { + use super::runtime_types; + pub type Keys = ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>; + pub type WitnessSize = ::core::primitive::u32; + } + pub mod migrate_custom_child { + use super::runtime_types; + pub type Root = ::std::vec::Vec<::core::primitive::u8>; + pub type ChildKeys = ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>; + pub type TotalSize = ::core::primitive::u32; + } + pub mod set_signed_max_limits { + use super::runtime_types; + pub type Limits = + runtime_types::pallet_state_trie_migration::pallet::MigrationLimits; + } + pub mod force_set_progress { + use super::runtime_types; + pub type ProgressTop = + runtime_types::pallet_state_trie_migration::pallet::Progress; + pub type ProgressChild = + runtime_types::pallet_state_trie_migration::pallet::Progress; + } + } + pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, @@ -37998,9 +37981,14 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Bag { - pub head: ::core::option::Option<::subxt::utils::AccountId32>, - pub tail: ::core::option::Option<::subxt::utils::AccountId32>, + pub struct ControlAutoMigration { + pub maybe_config: ::core::option::Option< + runtime_types::pallet_state_trie_migration::pallet::MigrationLimits, + >, + } + impl ::subxt::blocks::StaticExtrinsic for ControlAutoMigration { + const PALLET: &'static str = "StateTrieMigration"; + const CALL: &'static str = "control_auto_migration"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -38012,15 +38000,15 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum ListError { - #[codec(index = 0)] - Duplicate, - #[codec(index = 1)] - NotHeavier, - #[codec(index = 2)] - NotInSameBag, - #[codec(index = 3)] - NodeNotFound, + pub struct ContinueMigrate { + pub limits: runtime_types::pallet_state_trie_migration::pallet::MigrationLimits, + pub real_size_upper: ::core::primitive::u32, + pub witness_task: + runtime_types::pallet_state_trie_migration::pallet::MigrationTask, + } + impl ::subxt::blocks::StaticExtrinsic for ContinueMigrate { + const PALLET: &'static str = "StateTrieMigration"; + const CALL: &'static str = "continue_migrate"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -38032,16 +38020,14 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Node { - pub id: ::subxt::utils::AccountId32, - pub prev: ::core::option::Option<::subxt::utils::AccountId32>, - pub next: ::core::option::Option<::subxt::utils::AccountId32>, - pub bag_upper: ::core::primitive::u64, - pub score: ::core::primitive::u64, + pub struct MigrateCustomTop { + pub keys: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, + pub witness_size: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for MigrateCustomTop { + const PALLET: &'static str = "StateTrieMigration"; + const CALL: &'static str = "migrate_custom_top"; } - } - pub mod pallet { - use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -38052,18 +38038,14 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub enum Call { - #[codec(index = 0)] - #[doc = "See [`Pallet::rebag`]."] - rebag { - dislocated: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - }, - #[codec(index = 1)] - #[doc = "See [`Pallet::put_in_front_of`]."] - put_in_front_of { - lighter: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - }, + pub struct MigrateCustomChild { + pub root: ::std::vec::Vec<::core::primitive::u8>, + pub child_keys: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, + pub total_size: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for MigrateCustomChild { + const PALLET: &'static str = "StateTrieMigration"; + const CALL: &'static str = "migrate_custom_child"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -38075,11 +38057,12 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] - pub enum Error { - #[codec(index = 0)] - #[doc = "A error in the list interface implementation."] - List(runtime_types::pallet_bags_list::list::ListError), + pub struct SetSignedMaxLimits { + pub limits: runtime_types::pallet_state_trie_migration::pallet::MigrationLimits, + } + impl ::subxt::blocks::StaticExtrinsic for SetSignedMaxLimits { + const PALLET: &'static str = "StateTrieMigration"; + const CALL: &'static str = "set_signed_max_limits"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -38091,281 +38074,367 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] - pub enum Event { - #[codec(index = 0)] - #[doc = "Moved an account from one bag to another."] - Rebagged { - who: ::subxt::utils::AccountId32, - from: ::core::primitive::u64, - to: ::core::primitive::u64, - }, - #[codec(index = 1)] - #[doc = "Updated the score of some account to the given amount."] - ScoreUpdated { - who: ::subxt::utils::AccountId32, - new_score: ::core::primitive::u64, - }, + pub struct ForceSetProgress { + pub progress_top: runtime_types::pallet_state_trie_migration::pallet::Progress, + pub progress_child: + runtime_types::pallet_state_trie_migration::pallet::Progress, + } + impl ::subxt::blocks::StaticExtrinsic for ForceSetProgress { + const PALLET: &'static str = "StateTrieMigration"; + const CALL: &'static str = "force_set_progress"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::control_auto_migration`]."] + pub fn control_auto_migration( + &self, + maybe_config: alias_types::control_auto_migration::MaybeConfig, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "StateTrieMigration", + "control_auto_migration", + types::ControlAutoMigration { maybe_config }, + [ + 41u8, 252u8, 1u8, 4u8, 170u8, 164u8, 45u8, 147u8, 203u8, 58u8, 64u8, + 26u8, 53u8, 231u8, 170u8, 72u8, 23u8, 87u8, 32u8, 93u8, 130u8, 210u8, + 65u8, 200u8, 147u8, 232u8, 32u8, 105u8, 182u8, 213u8, 101u8, 85u8, + ], + ) + } + #[doc = "See [`Pallet::continue_migrate`]."] + pub fn continue_migrate( + &self, + limits: alias_types::continue_migrate::Limits, + real_size_upper: alias_types::continue_migrate::RealSizeUpper, + witness_task: alias_types::continue_migrate::WitnessTask, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "StateTrieMigration", + "continue_migrate", + types::ContinueMigrate { + limits, + real_size_upper, + witness_task, + }, + [ + 244u8, 113u8, 101u8, 72u8, 234u8, 245u8, 21u8, 134u8, 132u8, 53u8, + 179u8, 247u8, 210u8, 42u8, 87u8, 131u8, 157u8, 133u8, 108u8, 97u8, + 12u8, 252u8, 69u8, 100u8, 236u8, 171u8, 134u8, 241u8, 68u8, 15u8, + 227u8, 23u8, + ], + ) + } + #[doc = "See [`Pallet::migrate_custom_top`]."] + pub fn migrate_custom_top( + &self, + keys: alias_types::migrate_custom_top::Keys, + witness_size: alias_types::migrate_custom_top::WitnessSize, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "StateTrieMigration", + "migrate_custom_top", + types::MigrateCustomTop { keys, witness_size }, + [ + 167u8, 185u8, 103u8, 14u8, 52u8, 177u8, 104u8, 139u8, 95u8, 195u8, 1u8, + 30u8, 111u8, 205u8, 10u8, 53u8, 116u8, 31u8, 104u8, 135u8, 34u8, 80u8, + 214u8, 3u8, 80u8, 101u8, 21u8, 3u8, 244u8, 62u8, 115u8, 50u8, + ], + ) + } + #[doc = "See [`Pallet::migrate_custom_child`]."] + pub fn migrate_custom_child( + &self, + root: alias_types::migrate_custom_child::Root, + child_keys: alias_types::migrate_custom_child::ChildKeys, + total_size: alias_types::migrate_custom_child::TotalSize, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "StateTrieMigration", + "migrate_custom_child", + types::MigrateCustomChild { + root, + child_keys, + total_size, + }, + [ + 160u8, 99u8, 211u8, 111u8, 120u8, 53u8, 188u8, 31u8, 102u8, 86u8, 94u8, + 86u8, 218u8, 181u8, 14u8, 154u8, 243u8, 49u8, 23u8, 65u8, 218u8, 160u8, + 200u8, 97u8, 208u8, 159u8, 40u8, 10u8, 110u8, 134u8, 86u8, 33u8, + ], + ) + } + #[doc = "See [`Pallet::set_signed_max_limits`]."] + pub fn set_signed_max_limits( + &self, + limits: alias_types::set_signed_max_limits::Limits, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "StateTrieMigration", + "set_signed_max_limits", + types::SetSignedMaxLimits { limits }, + [ + 106u8, 43u8, 66u8, 154u8, 114u8, 172u8, 120u8, 79u8, 212u8, 196u8, + 220u8, 112u8, 17u8, 42u8, 131u8, 249u8, 56u8, 91u8, 11u8, 152u8, 80u8, + 120u8, 36u8, 113u8, 51u8, 34u8, 10u8, 35u8, 135u8, 228u8, 216u8, 38u8, + ], + ) + } + #[doc = "See [`Pallet::force_set_progress`]."] + pub fn force_set_progress( + &self, + progress_top: alias_types::force_set_progress::ProgressTop, + progress_child: alias_types::force_set_progress::ProgressChild, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "StateTrieMigration", + "force_set_progress", + types::ForceSetProgress { + progress_top, + progress_child, + }, + [ + 103u8, 70u8, 170u8, 72u8, 136u8, 4u8, 169u8, 245u8, 254u8, 93u8, 17u8, + 104u8, 19u8, 53u8, 182u8, 35u8, 205u8, 99u8, 116u8, 101u8, 102u8, + 124u8, 253u8, 206u8, 111u8, 140u8, 212u8, 12u8, 218u8, 19u8, 39u8, + 229u8, + ], + ) } } } - pub mod pallet_balances { + #[doc = "Inner events of this pallet."] + pub type Event = runtime_types::pallet_state_trie_migration::pallet::Event; + pub mod events { use super::runtime_types; - pub mod pallet { + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Given number of `(top, child)` keys were migrated respectively, with the given"] + #[doc = "`compute`."] + pub struct Migrated { + pub top: ::core::primitive::u32, + pub child: ::core::primitive::u32, + pub compute: runtime_types::pallet_state_trie_migration::pallet::MigrationCompute, + } + impl ::subxt::events::StaticEvent for Migrated { + const PALLET: &'static str = "StateTrieMigration"; + const EVENT: &'static str = "Migrated"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some account got slashed by the given amount."] + pub struct Slashed { + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Slashed { + const PALLET: &'static str = "StateTrieMigration"; + const EVENT: &'static str = "Slashed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The auto migration task finished."] + pub struct AutoMigrationFinished; + impl ::subxt::events::StaticEvent for AutoMigrationFinished { + const PALLET: &'static str = "StateTrieMigration"; + const EVENT: &'static str = "AutoMigrationFinished"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Migration got halted due to an error or miss-configuration."] + pub struct Halted { + pub error: runtime_types::pallet_state_trie_migration::pallet::Error, + } + impl ::subxt::events::StaticEvent for Halted { + const PALLET: &'static str = "StateTrieMigration"; + const EVENT: &'static str = "Halted"; + } + } + pub mod storage { + use super::runtime_types; + pub mod alias_types { use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub enum Call { - #[codec(index = 0)] - #[doc = "See [`Pallet::transfer_allow_death`]."] - transfer_allow_death { - dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - #[codec(compact)] - value: ::core::primitive::u128, - }, - #[codec(index = 1)] - #[doc = "See [`Pallet::set_balance_deprecated`]."] - set_balance_deprecated { - who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - #[codec(compact)] - new_free: ::core::primitive::u128, - #[codec(compact)] - old_reserved: ::core::primitive::u128, - }, - #[codec(index = 2)] - #[doc = "See [`Pallet::force_transfer`]."] - force_transfer { - source: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - #[codec(compact)] - value: ::core::primitive::u128, - }, - #[codec(index = 3)] - #[doc = "See [`Pallet::transfer_keep_alive`]."] - transfer_keep_alive { - dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - #[codec(compact)] - value: ::core::primitive::u128, - }, - #[codec(index = 4)] - #[doc = "See [`Pallet::transfer_all`]."] - transfer_all { - dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - keep_alive: ::core::primitive::bool, - }, - #[codec(index = 5)] - #[doc = "See [`Pallet::force_unreserve`]."] - force_unreserve { - who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - amount: ::core::primitive::u128, - }, - #[codec(index = 6)] - #[doc = "See [`Pallet::upgrade_accounts`]."] - upgrade_accounts { - who: ::std::vec::Vec<::subxt::utils::AccountId32>, - }, - #[codec(index = 7)] - #[doc = "See [`Pallet::transfer`]."] - transfer { - dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - #[codec(compact)] - value: ::core::primitive::u128, - }, - #[codec(index = 8)] - #[doc = "See [`Pallet::force_set_balance`]."] - force_set_balance { - who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - #[codec(compact)] - new_free: ::core::primitive::u128, - }, + pub mod migration_process { + use super::runtime_types; + pub type MigrationProcess = + runtime_types::pallet_state_trie_migration::pallet::MigrationTask; } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] - pub enum Error { - #[codec(index = 0)] - #[doc = "Vesting balance too high to send value."] - VestingBalance, - #[codec(index = 1)] - #[doc = "Account liquidity restrictions prevent withdrawal."] - LiquidityRestrictions, - #[codec(index = 2)] - #[doc = "Balance too low to send value."] - InsufficientBalance, - #[codec(index = 3)] - #[doc = "Value too low to create account due to existential deposit."] - ExistentialDeposit, - #[codec(index = 4)] - #[doc = "Transfer/payment would kill account."] - Expendability, - #[codec(index = 5)] - #[doc = "A vesting schedule already exists for this account."] - ExistingVestingSchedule, - #[codec(index = 6)] - #[doc = "Beneficiary account must pre-exist."] - DeadAccount, - #[codec(index = 7)] - #[doc = "Number of named reserves exceed `MaxReserves`."] - TooManyReserves, - #[codec(index = 8)] - #[doc = "Number of holds exceed `MaxHolds`."] - TooManyHolds, - #[codec(index = 9)] - #[doc = "Number of freezes exceed `MaxFreezes`."] - TooManyFreezes, + pub mod auto_limits { + use super::runtime_types; + pub type AutoLimits = ::core::option::Option< + runtime_types::pallet_state_trie_migration::pallet::MigrationLimits, + >; } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] - pub enum Event { - #[codec(index = 0)] - #[doc = "An account was created with some free balance."] - Endowed { - account: ::subxt::utils::AccountId32, - free_balance: ::core::primitive::u128, - }, - #[codec(index = 1)] - #[doc = "An account was removed whose balance was non-zero but below ExistentialDeposit,"] - #[doc = "resulting in an outright loss."] - DustLost { - account: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 2)] - #[doc = "Transfer succeeded."] - Transfer { - from: ::subxt::utils::AccountId32, - to: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 3)] - #[doc = "A balance was set by root."] - BalanceSet { - who: ::subxt::utils::AccountId32, - free: ::core::primitive::u128, - }, - #[codec(index = 4)] - #[doc = "Some balance was reserved (moved from free to reserved)."] - Reserved { - who: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 5)] - #[doc = "Some balance was unreserved (moved from reserved to free)."] - Unreserved { - who: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 6)] - #[doc = "Some balance was moved from the reserve of the first account to the second account."] - #[doc = "Final argument indicates the destination balance type."] - ReserveRepatriated { - from: ::subxt::utils::AccountId32, - to: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - destination_status: - runtime_types::frame_support::traits::tokens::misc::BalanceStatus, - }, - #[codec(index = 7)] - #[doc = "Some amount was deposited (e.g. for transaction fees)."] - Deposit { - who: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 8)] - #[doc = "Some amount was withdrawn from the account (e.g. for transaction fees)."] - Withdraw { - who: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 9)] - #[doc = "Some amount was removed from the account (e.g. for misbehavior)."] - Slashed { - who: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 10)] - #[doc = "Some amount was minted into an account."] - Minted { - who: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 11)] - #[doc = "Some amount was burned from an account."] - Burned { - who: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 12)] - #[doc = "Some amount was suspended from an account (it can be restored later)."] - Suspended { - who: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 13)] - #[doc = "Some amount was restored into an account."] - Restored { - who: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 14)] - #[doc = "An account was upgraded."] - Upgraded { who: ::subxt::utils::AccountId32 }, - #[codec(index = 15)] - #[doc = "Total issuance was increased by `amount`, creating a credit to be balanced."] - Issued { amount: ::core::primitive::u128 }, - #[codec(index = 16)] - #[doc = "Total issuance was decreased by `amount`, creating a debt to be balanced."] - Rescinded { amount: ::core::primitive::u128 }, - #[codec(index = 17)] - #[doc = "Some balance was locked."] - Locked { - who: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 18)] - #[doc = "Some balance was unlocked."] - Unlocked { - who: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 19)] - #[doc = "Some balance was frozen."] - Frozen { - who: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 20)] - #[doc = "Some balance was thawed."] - Thawed { - who: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, + pub mod signed_migration_max_limits { + use super::runtime_types; + pub type SignedMigrationMaxLimits = + runtime_types::pallet_state_trie_migration::pallet::MigrationLimits; + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " Migration progress."] + #[doc = ""] + #[doc = " This stores the snapshot of the last migrated keys. It can be set into motion and move"] + #[doc = " forward by any of the means provided by this pallet."] + pub fn migration_process( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::migration_process::MigrationProcess, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "StateTrieMigration", + "MigrationProcess", + vec![], + [ + 119u8, 172u8, 143u8, 118u8, 90u8, 3u8, 154u8, 185u8, 165u8, 165u8, + 249u8, 230u8, 77u8, 14u8, 221u8, 146u8, 75u8, 243u8, 69u8, 209u8, 79u8, + 253u8, 28u8, 64u8, 243u8, 45u8, 29u8, 1u8, 22u8, 127u8, 0u8, 66u8, + ], + ) + } + #[doc = " The limits that are imposed on automatic migrations."] + #[doc = ""] + #[doc = " If set to None, then no automatic migration happens."] + pub fn auto_limits( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::auto_limits::AutoLimits, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "StateTrieMigration", + "AutoLimits", + vec![], + [ + 225u8, 29u8, 94u8, 66u8, 169u8, 230u8, 106u8, 20u8, 238u8, 81u8, 238u8, + 183u8, 185u8, 74u8, 94u8, 58u8, 107u8, 174u8, 228u8, 10u8, 156u8, + 225u8, 95u8, 75u8, 208u8, 227u8, 58u8, 147u8, 161u8, 68u8, 158u8, 99u8, + ], + ) + } + #[doc = " The maximum limits that the signed migration could use."] + #[doc = ""] + #[doc = " If not set, no signed submission is allowed."] + pub fn signed_migration_max_limits( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::signed_migration_max_limits::SignedMigrationMaxLimits, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "StateTrieMigration", + "SignedMigrationMaxLimits", + vec![], + [ + 121u8, 97u8, 145u8, 237u8, 10u8, 145u8, 206u8, 119u8, 15u8, 12u8, + 200u8, 24u8, 231u8, 140u8, 248u8, 227u8, 202u8, 78u8, 93u8, 134u8, + 144u8, 79u8, 55u8, 136u8, 89u8, 52u8, 49u8, 64u8, 136u8, 249u8, 245u8, + 175u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " Maximal number of bytes that a key can have."] + #[doc = ""] + #[doc = " FRAME itself does not limit the key length."] + #[doc = " The concrete value must therefore depend on your storage usage."] + #[doc = " A [`frame_support::storage::StorageNMap`] for example can have an arbitrary number of"] + #[doc = " keys which are then hashed and concatenated, resulting in arbitrarily long keys."] + #[doc = ""] + #[doc = " Use the *state migration RPC* to retrieve the length of the longest key in your"] + #[doc = " storage: "] + #[doc = ""] + #[doc = " The migration will halt with a `Halted` event if this value is too small."] + #[doc = " Since there is no real penalty from over-estimating, it is advised to use a large"] + #[doc = " value. The default is 512 byte."] + #[doc = ""] + #[doc = " Some key lengths for reference:"] + #[doc = " - [`frame_support::storage::StorageValue`]: 32 byte"] + #[doc = " - [`frame_support::storage::StorageMap`]: 64 byte"] + #[doc = " - [`frame_support::storage::StorageDoubleMap`]: 96 byte"] + #[doc = ""] + #[doc = " For more info see"] + #[doc = " "] + pub fn max_key_len(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "StateTrieMigration", + "MaxKeyLen", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + } + } + } + pub mod root_testing { + use super::root_mod; + use super::runtime_types; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::pallet_root_testing::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod alias_types { + use super::runtime_types; + pub mod fill_block { + use super::runtime_types; + pub type Ratio = runtime_types::sp_arithmetic::per_things::Perbill; + } + pub mod trigger_defensive { + use super::runtime_types; } } pub mod types { @@ -38380,11 +38449,12 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct AccountData<_0> { - pub free: _0, - pub reserved: _0, - pub frozen: _0, - pub flags: runtime_types::pallet_balances::types::ExtraFlags, + pub struct FillBlock { + pub ratio: runtime_types::sp_arithmetic::per_things::Perbill, + } + impl ::subxt::blocks::StaticExtrinsic for FillBlock { + const PALLET: &'static str = "RootTesting"; + const CALL: &'static str = "fill_block"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -38396,13 +38466,111 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct BalanceLock<_0> { - pub id: [::core::primitive::u8; 8usize], - pub amount: _0, - pub reasons: runtime_types::pallet_balances::types::Reasons, + pub struct TriggerDefensive; + impl ::subxt::blocks::StaticExtrinsic for TriggerDefensive { + const PALLET: &'static str = "RootTesting"; + const CALL: &'static str = "trigger_defensive"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See `Pallet::fill_block`."] + pub fn fill_block( + &self, + ratio: alias_types::fill_block::Ratio, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "RootTesting", + "fill_block", + types::FillBlock { ratio }, + [ + 164u8, 37u8, 43u8, 91u8, 125u8, 34u8, 208u8, 126u8, 67u8, 94u8, 184u8, + 240u8, 68u8, 208u8, 41u8, 206u8, 172u8, 95u8, 111u8, 115u8, 9u8, 250u8, + 163u8, 66u8, 240u8, 0u8, 237u8, 140u8, 87u8, 57u8, 162u8, 117u8, + ], + ) + } + #[doc = "See `Pallet::trigger_defensive`."] + pub fn trigger_defensive(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "RootTesting", + "trigger_defensive", + types::TriggerDefensive {}, + [ + 170u8, 234u8, 12u8, 158u8, 10u8, 171u8, 161u8, 144u8, 101u8, 67u8, + 150u8, 128u8, 105u8, 234u8, 223u8, 60u8, 241u8, 245u8, 112u8, 21u8, + 80u8, 216u8, 72u8, 147u8, 22u8, 125u8, 19u8, 200u8, 171u8, 153u8, 88u8, + 194u8, + ], + ) + } + } + } + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_root_testing::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Event dispatched when the trigger_defensive extrinsic is called."] + pub struct DefensiveTestCall; + impl ::subxt::events::StaticEvent for DefensiveTestCall { + const PALLET: &'static str = "RootTesting"; + const EVENT: &'static str = "DefensiveTestCall"; + } + } + pub mod storage { + use super::runtime_types; + pub mod alias_types { + use super::runtime_types; + } + pub struct StorageApi; + impl StorageApi {} + } + } + pub mod sudo { + use super::root_mod; + use super::runtime_types; + #[doc = "Error for the Sudo pallet"] + pub type Error = runtime_types::pallet_sudo::pallet::Error; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::pallet_sudo::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod alias_types { + use super::runtime_types; + pub mod sudo { + use super::runtime_types; + pub type Call = runtime_types::rococo_runtime::RuntimeCall; + } + pub mod sudo_unchecked_weight { + use super::runtime_types; + pub type Call = runtime_types::rococo_runtime::RuntimeCall; + pub type Weight = runtime_types::sp_weights::weight_v2::Weight; + } + pub mod set_key { + use super::runtime_types; + pub type New = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + } + pub mod sudo_as { + use super::runtime_types; + pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Call = runtime_types::rococo_runtime::RuntimeCall; } + } + pub mod types { + use super::runtime_types; #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -38412,7 +38580,13 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ExtraFlags(pub ::core::primitive::u128); + pub struct Sudo { + pub call: ::std::boxed::Box, + } + impl ::subxt::blocks::StaticExtrinsic for Sudo { + const PALLET: &'static str = "Sudo"; + const CALL: &'static str = "sudo"; + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -38423,9 +38597,13 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct IdAmount<_0, _1> { - pub id: _0, - pub amount: _1, + pub struct SudoUncheckedWeight { + pub call: ::std::boxed::Box, + pub weight: runtime_types::sp_weights::weight_v2::Weight, + } + impl ::subxt::blocks::StaticExtrinsic for SudoUncheckedWeight { + const PALLET: &'static str = "Sudo"; + const CALL: &'static str = "sudo_unchecked_weight"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -38437,13 +38615,12 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Reasons { - #[codec(index = 0)] - Fee, - #[codec(index = 1)] - Misc, - #[codec(index = 2)] - All, + pub struct SetKey { + pub new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + } + impl ::subxt::blocks::StaticExtrinsic for SetKey { + const PALLET: &'static str = "Sudo"; + const CALL: &'static str = "set_key"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -38455,89 +38632,197 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ReserveData<_0, _1> { - pub id: _0, - pub amount: _1, + pub struct SudoAs { + pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub call: ::std::boxed::Box, + } + impl ::subxt::blocks::StaticExtrinsic for SudoAs { + const PALLET: &'static str = "Sudo"; + const CALL: &'static str = "sudo_as"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::sudo`]."] + pub fn sudo( + &self, + call: alias_types::sudo::Call, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Sudo", + "sudo", + types::Sudo { + call: ::std::boxed::Box::new(call), + }, + [ + 230u8, 66u8, 61u8, 240u8, 132u8, 75u8, 17u8, 14u8, 12u8, 233u8, 24u8, + 192u8, 91u8, 200u8, 209u8, 133u8, 251u8, 154u8, 221u8, 95u8, 165u8, + 112u8, 49u8, 192u8, 126u8, 134u8, 46u8, 221u8, 150u8, 120u8, 178u8, + 103u8, + ], + ) + } + #[doc = "See [`Pallet::sudo_unchecked_weight`]."] + pub fn sudo_unchecked_weight( + &self, + call: alias_types::sudo_unchecked_weight::Call, + weight: alias_types::sudo_unchecked_weight::Weight, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Sudo", + "sudo_unchecked_weight", + types::SudoUncheckedWeight { + call: ::std::boxed::Box::new(call), + weight, + }, + [ + 39u8, 207u8, 214u8, 172u8, 135u8, 112u8, 167u8, 27u8, 210u8, 182u8, + 160u8, 163u8, 128u8, 207u8, 98u8, 136u8, 35u8, 14u8, 163u8, 243u8, + 224u8, 232u8, 254u8, 35u8, 244u8, 13u8, 212u8, 137u8, 99u8, 158u8, + 249u8, 164u8, + ], + ) + } + #[doc = "See [`Pallet::set_key`]."] + pub fn set_key( + &self, + new: alias_types::set_key::New, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Sudo", + "set_key", + types::SetKey { new }, + [ + 9u8, 73u8, 39u8, 205u8, 188u8, 127u8, 143u8, 54u8, 128u8, 94u8, 8u8, + 227u8, 197u8, 44u8, 70u8, 93u8, 228u8, 196u8, 64u8, 165u8, 226u8, + 158u8, 101u8, 192u8, 22u8, 193u8, 102u8, 84u8, 21u8, 35u8, 92u8, 198u8, + ], + ) + } + #[doc = "See [`Pallet::sudo_as`]."] + pub fn sudo_as( + &self, + who: alias_types::sudo_as::Who, + call: alias_types::sudo_as::Call, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Sudo", + "sudo_as", + types::SudoAs { + who, + call: ::std::boxed::Box::new(call), + }, + [ + 97u8, 37u8, 226u8, 52u8, 181u8, 51u8, 13u8, 232u8, 250u8, 246u8, 195u8, + 219u8, 186u8, 236u8, 187u8, 3u8, 246u8, 172u8, 203u8, 35u8, 30u8, + 227u8, 242u8, 134u8, 51u8, 90u8, 105u8, 119u8, 1u8, 65u8, 79u8, 36u8, + ], + ) } } } - pub mod pallet_bounties { + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_sudo::pallet::Event; + pub mod events { use super::runtime_types; - pub mod pallet { + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A sudo call just took place."] + pub struct Sudid { + pub sudo_result: + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + } + impl ::subxt::events::StaticEvent for Sudid { + const PALLET: &'static str = "Sudo"; + const EVENT: &'static str = "Sudid"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The sudo key has been updated."] + pub struct KeyChanged { + pub old_sudoer: ::core::option::Option<::subxt::utils::AccountId32>, + } + impl ::subxt::events::StaticEvent for KeyChanged { + const PALLET: &'static str = "Sudo"; + const EVENT: &'static str = "KeyChanged"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A [sudo_as](Pallet::sudo_as) call just took place."] + pub struct SudoAsDone { + pub sudo_result: + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + } + impl ::subxt::events::StaticEvent for SudoAsDone { + const PALLET: &'static str = "Sudo"; + const EVENT: &'static str = "SudoAsDone"; + } + } + pub mod storage { + use super::runtime_types; + pub mod alias_types { use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub enum Call { - #[codec(index = 0)] - #[doc = "See [`Pallet::propose_bounty`]."] - propose_bounty { - #[codec(compact)] - value: ::core::primitive::u128, - description: ::std::vec::Vec<::core::primitive::u8>, - }, - #[codec(index = 1)] - #[doc = "See [`Pallet::approve_bounty`]."] - approve_bounty { - #[codec(compact)] - bounty_id: ::core::primitive::u32, - }, - #[codec(index = 2)] - #[doc = "See [`Pallet::propose_curator`]."] - propose_curator { - #[codec(compact)] - bounty_id: ::core::primitive::u32, - curator: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - #[codec(compact)] - fee: ::core::primitive::u128, - }, - #[codec(index = 3)] - #[doc = "See [`Pallet::unassign_curator`]."] - unassign_curator { - #[codec(compact)] - bounty_id: ::core::primitive::u32, - }, - #[codec(index = 4)] - #[doc = "See [`Pallet::accept_curator`]."] - accept_curator { - #[codec(compact)] - bounty_id: ::core::primitive::u32, - }, - #[codec(index = 5)] - #[doc = "See [`Pallet::award_bounty`]."] - award_bounty { - #[codec(compact)] - bounty_id: ::core::primitive::u32, - beneficiary: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - }, - #[codec(index = 6)] - #[doc = "See [`Pallet::claim_bounty`]."] - claim_bounty { - #[codec(compact)] - bounty_id: ::core::primitive::u32, - }, - #[codec(index = 7)] - #[doc = "See [`Pallet::close_bounty`]."] - close_bounty { - #[codec(compact)] - bounty_id: ::core::primitive::u32, - }, - #[codec(index = 8)] - #[doc = "See [`Pallet::extend_bounty_expiry`]."] - extend_bounty_expiry { - #[codec(compact)] - bounty_id: ::core::primitive::u32, - remark: ::std::vec::Vec<::core::primitive::u8>, - }, + pub mod key { + use super::runtime_types; + pub type Key = ::subxt::utils::AccountId32; + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " The `AccountId` of the sudo key."] + pub fn key( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + alias_types::key::Key, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Sudo", + "Key", + vec![], + [ + 72u8, 14u8, 225u8, 162u8, 205u8, 247u8, 227u8, 105u8, 116u8, 57u8, 4u8, + 31u8, 84u8, 137u8, 227u8, 228u8, 133u8, 245u8, 206u8, 227u8, 117u8, + 36u8, 252u8, 151u8, 107u8, 15u8, 180u8, 4u8, 4u8, 152u8, 195u8, 144u8, + ], + ) } + } + } + } + pub mod runtime_types { + use super::runtime_types; + pub mod bounded_collections { + use super::runtime_types; + pub mod bounded_vec { + use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -38548,43 +38833,10 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] - pub enum Error { - #[codec(index = 0)] - #[doc = "Proposer's balance is too low."] - InsufficientProposersBalance, - #[codec(index = 1)] - #[doc = "No proposal or bounty at that index."] - InvalidIndex, - #[codec(index = 2)] - #[doc = "The reason given is just too big."] - ReasonTooBig, - #[codec(index = 3)] - #[doc = "The bounty status is unexpected."] - UnexpectedStatus, - #[codec(index = 4)] - #[doc = "Require bounty curator."] - RequireCurator, - #[codec(index = 5)] - #[doc = "Invalid bounty value."] - InvalidValue, - #[codec(index = 6)] - #[doc = "Invalid bounty fee."] - InvalidFee, - #[codec(index = 7)] - #[doc = "A bounty payout is pending."] - #[doc = "To cancel the bounty, you must unassign and slash the curator."] - PendingPayout, - #[codec(index = 8)] - #[doc = "The bounties cannot be claimed/closed because it's still in the countdown period."] - Premature, - #[codec(index = 9)] - #[doc = "The bounty cannot be closed because it has active child bounties."] - HasActiveChildBounty, - #[codec(index = 10)] - #[doc = "Too many approvals are already queued."] - TooManyQueued, - } + pub struct BoundedVec<_0>(pub ::std::vec::Vec<_0>); + } + pub mod weak_bounded_vec { + use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -38595,41 +38847,11 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] - pub enum Event { - #[codec(index = 0)] - #[doc = "New bounty proposal."] - BountyProposed { index: ::core::primitive::u32 }, - #[codec(index = 1)] - #[doc = "A bounty proposal was rejected; funds were slashed."] - BountyRejected { - index: ::core::primitive::u32, - bond: ::core::primitive::u128, - }, - #[codec(index = 2)] - #[doc = "A bounty proposal is funded and became active."] - BountyBecameActive { index: ::core::primitive::u32 }, - #[codec(index = 3)] - #[doc = "A bounty is awarded to a beneficiary."] - BountyAwarded { - index: ::core::primitive::u32, - beneficiary: ::subxt::utils::AccountId32, - }, - #[codec(index = 4)] - #[doc = "A bounty is claimed by beneficiary."] - BountyClaimed { - index: ::core::primitive::u32, - payout: ::core::primitive::u128, - beneficiary: ::subxt::utils::AccountId32, - }, - #[codec(index = 5)] - #[doc = "A bounty is cancelled."] - BountyCanceled { index: ::core::primitive::u32 }, - #[codec(index = 6)] - #[doc = "A bounty expiry is extended."] - BountyExtended { index: ::core::primitive::u32 }, - } + pub struct WeakBoundedVec<_0>(pub ::std::vec::Vec<_0>); } + } + pub mod finality_grandpa { + use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -38640,13 +38862,11 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - 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 Equivocation<_0, _1, _2> { + pub round_number: ::core::primitive::u64, + pub identity: _0, + pub first: (_1, _2), + pub second: (_1, _2), } #[derive( :: subxt :: ext :: codec :: Decode, @@ -38658,28 +38878,28 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - 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 Precommit<_0, _1> { + pub target_hash: _0, + pub target_number: _1, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Prevote<_0, _1> { + pub target_hash: _0, + pub target_number: _1, } } - pub mod pallet_child_bounties { + pub mod frame_support { use super::runtime_types; - pub mod pallet { + pub mod dispatch { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, @@ -38691,69 +38911,28 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub enum Call { + pub enum DispatchClass { #[codec(index = 0)] - #[doc = "See [`Pallet::add_child_bounty`]."] - add_child_bounty { - #[codec(compact)] - parent_bounty_id: ::core::primitive::u32, - #[codec(compact)] - value: ::core::primitive::u128, - description: ::std::vec::Vec<::core::primitive::u8>, - }, + Normal, #[codec(index = 1)] - #[doc = "See [`Pallet::propose_curator`]."] - propose_curator { - #[codec(compact)] - parent_bounty_id: ::core::primitive::u32, - #[codec(compact)] - child_bounty_id: ::core::primitive::u32, - curator: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - #[codec(compact)] - fee: ::core::primitive::u128, - }, + Operational, #[codec(index = 2)] - #[doc = "See [`Pallet::accept_curator`]."] - accept_curator { - #[codec(compact)] - parent_bounty_id: ::core::primitive::u32, - #[codec(compact)] - child_bounty_id: ::core::primitive::u32, - }, - #[codec(index = 3)] - #[doc = "See [`Pallet::unassign_curator`]."] - unassign_curator { - #[codec(compact)] - parent_bounty_id: ::core::primitive::u32, - #[codec(compact)] - child_bounty_id: ::core::primitive::u32, - }, - #[codec(index = 4)] - #[doc = "See [`Pallet::award_child_bounty`]."] - award_child_bounty { - #[codec(compact)] - parent_bounty_id: ::core::primitive::u32, - #[codec(compact)] - child_bounty_id: ::core::primitive::u32, - beneficiary: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - }, - #[codec(index = 5)] - #[doc = "See [`Pallet::claim_child_bounty`]."] - claim_child_bounty { - #[codec(compact)] - parent_bounty_id: ::core::primitive::u32, - #[codec(compact)] - child_bounty_id: ::core::primitive::u32, - }, - #[codec(index = 6)] - #[doc = "See [`Pallet::close_child_bounty`]."] - close_child_bounty { - #[codec(compact)] - parent_bounty_id: ::core::primitive::u32, - #[codec(compact)] - child_bounty_id: ::core::primitive::u32, - }, + Mandatory, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct DispatchInfo { + pub weight: runtime_types::sp_weights::weight_v2::Weight, + pub class: runtime_types::frame_support::dispatch::DispatchClass, + pub pays_fee: runtime_types::frame_support::dispatch::Pays, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -38765,17 +38944,11 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] - pub enum Error { + pub enum Pays { #[codec(index = 0)] - #[doc = "The parent bounty is not in active state."] - ParentBountyNotActive, + Yes, #[codec(index = 1)] - #[doc = "The bounty balance is not enough to add new child-bounty."] - InsufficientBountyBalance, - #[codec(index = 2)] - #[doc = "Number of child bounties exceeds limit `MaxActiveChildBountyCount`."] - TooManyChildBounties, + No, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -38787,53 +38960,159 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] - pub enum Event { + pub struct PerDispatchClass<_0> { + pub normal: _0, + pub operational: _0, + pub mandatory: _0, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct PostDispatchInfo { + pub actual_weight: + ::core::option::Option, + pub pays_fee: runtime_types::frame_support::dispatch::Pays, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum RawOrigin<_0> { #[codec(index = 0)] - #[doc = "A child-bounty is added."] - Added { - index: ::core::primitive::u32, - child_index: ::core::primitive::u32, - }, + Root, #[codec(index = 1)] - #[doc = "A child-bounty is awarded to a beneficiary."] - Awarded { - index: ::core::primitive::u32, - child_index: ::core::primitive::u32, - beneficiary: ::subxt::utils::AccountId32, - }, + Signed(_0), #[codec(index = 2)] - #[doc = "A child-bounty is claimed by beneficiary."] - Claimed { - index: ::core::primitive::u32, - child_index: ::core::primitive::u32, - payout: ::core::primitive::u128, - beneficiary: ::subxt::utils::AccountId32, - }, - #[codec(index = 3)] - #[doc = "A child-bounty is cancelled."] - Canceled { - index: ::core::primitive::u32, - child_index: ::core::primitive::u32, - }, + None, } } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ChildBounty<_0, _1, _2> { - pub parent_bounty: ::core::primitive::u32, - pub value: _1, - pub fee: _1, - pub curator_deposit: _1, - pub status: runtime_types::pallet_child_bounties::ChildBountyStatus<_0, _2>, + pub mod traits { + use super::runtime_types; + pub mod messages { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum ProcessMessageError { + #[codec(index = 0)] + BadFormat, + #[codec(index = 1)] + Corrupt, + #[codec(index = 2)] + Unsupported, + #[codec(index = 3)] + Overweight(runtime_types::sp_weights::weight_v2::Weight), + #[codec(index = 4)] + Yield, + } + } + pub mod preimages { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Bounded<_0, _1> { + #[codec(index = 0)] + Legacy { + hash: ::subxt::utils::H256, + }, + #[codec(index = 1)] + Inline( + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + ), + #[codec(index = 2)] + Lookup { + hash: ::subxt::utils::H256, + len: ::core::primitive::u32, + }, + __Ignore(::core::marker::PhantomData<(_0, _1)>), + } + } + pub mod schedule { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum DispatchTime<_0> { + #[codec(index = 0)] + At(_0), + #[codec(index = 1)] + After(_0), + } + } + pub mod tokens { + use super::runtime_types; + pub mod fungible { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct HoldConsideration(pub ::core::primitive::u128); + } + pub mod misc { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum BalanceStatus { + #[codec(index = 0)] + Free, + #[codec(index = 1)] + Reserved, + } + } + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -38845,24 +39124,112 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - 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 PalletId(pub [::core::primitive::u8; 8usize]); } - pub mod pallet_collective { + pub mod frame_system { use super::runtime_types; - pub mod pallet { + pub mod extensions { + use super::runtime_types; + pub mod check_genesis { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CheckGenesis; + } + pub mod check_mortality { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CheckMortality(pub runtime_types::sp_runtime::generic::era::Era); + } + pub mod check_non_zero_sender { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CheckNonZeroSender; + } + pub mod check_nonce { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CheckNonce(#[codec(compact)] pub ::core::primitive::u32); + } + pub mod check_spec_version { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CheckSpecVersion; + } + pub mod check_tx_version { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CheckTxVersion; + } + pub mod check_weight { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CheckWeight; + } + } + pub mod limits { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, @@ -38874,52 +39241,10 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub enum Call { - #[codec(index = 0)] - #[doc = "See [`Pallet::set_members`]."] - set_members { - new_members: ::std::vec::Vec<::subxt::utils::AccountId32>, - prime: ::core::option::Option<::subxt::utils::AccountId32>, - old_count: ::core::primitive::u32, - }, - #[codec(index = 1)] - #[doc = "See [`Pallet::execute`]."] - execute { - proposal: ::std::boxed::Box, - #[codec(compact)] - length_bound: ::core::primitive::u32, - }, - #[codec(index = 2)] - #[doc = "See [`Pallet::propose`]."] - propose { - #[codec(compact)] - threshold: ::core::primitive::u32, - proposal: ::std::boxed::Box, - #[codec(compact)] - length_bound: ::core::primitive::u32, - }, - #[codec(index = 3)] - #[doc = "See [`Pallet::vote`]."] - vote { - proposal: ::subxt::utils::H256, - #[codec(compact)] - index: ::core::primitive::u32, - approve: ::core::primitive::bool, - }, - #[codec(index = 5)] - #[doc = "See [`Pallet::disapprove_proposal`]."] - disapprove_proposal { proposal_hash: ::subxt::utils::H256 }, - #[codec(index = 6)] - #[doc = "See [`Pallet::close`]."] - close { - proposal_hash: ::subxt::utils::H256, - #[codec(compact)] - index: ::core::primitive::u32, - proposal_weight_bound: runtime_types::sp_weights::weight_v2::Weight, - #[codec(compact)] - length_bound: ::core::primitive::u32, - }, + pub struct BlockLength { + pub max: runtime_types::frame_support::dispatch::PerDispatchClass< + ::core::primitive::u32, + >, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -38931,52 +39256,12 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub enum Call2 { - #[codec(index = 0)] - #[doc = "See [`Pallet::set_members`]."] - set_members { - new_members: ::std::vec::Vec<::subxt::utils::AccountId32>, - prime: ::core::option::Option<::subxt::utils::AccountId32>, - old_count: ::core::primitive::u32, - }, - #[codec(index = 1)] - #[doc = "See [`Pallet::execute`]."] - execute { - proposal: ::std::boxed::Box, - #[codec(compact)] - length_bound: ::core::primitive::u32, - }, - #[codec(index = 2)] - #[doc = "See [`Pallet::propose`]."] - propose { - #[codec(compact)] - threshold: ::core::primitive::u32, - proposal: ::std::boxed::Box, - #[codec(compact)] - length_bound: ::core::primitive::u32, - }, - #[codec(index = 3)] - #[doc = "See [`Pallet::vote`]."] - vote { - proposal: ::subxt::utils::H256, - #[codec(compact)] - index: ::core::primitive::u32, - approve: ::core::primitive::bool, - }, - #[codec(index = 5)] - #[doc = "See [`Pallet::disapprove_proposal`]."] - disapprove_proposal { proposal_hash: ::subxt::utils::H256 }, - #[codec(index = 6)] - #[doc = "See [`Pallet::close`]."] - close { - proposal_hash: ::subxt::utils::H256, - #[codec(compact)] - index: ::core::primitive::u32, - proposal_weight_bound: runtime_types::sp_weights::weight_v2::Weight, - #[codec(compact)] - length_bound: ::core::primitive::u32, - }, + pub struct BlockWeights { + pub base_block: runtime_types::sp_weights::weight_v2::Weight, + pub max_block: runtime_types::sp_weights::weight_v2::Weight, + pub per_class: runtime_types::frame_support::dispatch::PerDispatchClass< + runtime_types::frame_system::limits::WeightsPerClass, + >, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -38988,39 +39273,18 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] - pub enum Error { - #[codec(index = 0)] - #[doc = "Account is not a member"] - NotMember, - #[codec(index = 1)] - #[doc = "Duplicate proposals not allowed"] - DuplicateProposal, - #[codec(index = 2)] - #[doc = "Proposal must exist"] - ProposalMissing, - #[codec(index = 3)] - #[doc = "Mismatched index"] - WrongIndex, - #[codec(index = 4)] - #[doc = "Duplicate vote ignored"] - DuplicateVote, - #[codec(index = 5)] - #[doc = "Members are already initialized!"] - AlreadyInitialized, - #[codec(index = 6)] - #[doc = "The close call was made too early, before the end of the voting."] - TooEarly, - #[codec(index = 7)] - #[doc = "There can only be a maximum of `MaxProposals` active proposals."] - TooManyProposals, - #[codec(index = 8)] - #[doc = "The given weight bound for the proposal was too low."] - WrongProposalWeight, - #[codec(index = 9)] - #[doc = "The given length bound for the proposal was too low."] - WrongProposalLength, + pub struct WeightsPerClass { + pub base_extrinsic: runtime_types::sp_weights::weight_v2::Weight, + pub max_extrinsic: + ::core::option::Option, + pub max_total: + ::core::option::Option, + pub reserved: + ::core::option::Option, } + } + pub mod pallet { + use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -39031,38 +39295,50 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] - pub enum Error2 { + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call { #[codec(index = 0)] - #[doc = "Account is not a member"] - NotMember, + #[doc = "See [`Pallet::remark`]."] + remark { + remark: ::std::vec::Vec<::core::primitive::u8>, + }, #[codec(index = 1)] - #[doc = "Duplicate proposals not allowed"] - DuplicateProposal, + #[doc = "See [`Pallet::set_heap_pages`]."] + set_heap_pages { pages: ::core::primitive::u64 }, #[codec(index = 2)] - #[doc = "Proposal must exist"] - ProposalMissing, + #[doc = "See [`Pallet::set_code`]."] + set_code { + code: ::std::vec::Vec<::core::primitive::u8>, + }, #[codec(index = 3)] - #[doc = "Mismatched index"] - WrongIndex, + #[doc = "See [`Pallet::set_code_without_checks`]."] + set_code_without_checks { + code: ::std::vec::Vec<::core::primitive::u8>, + }, #[codec(index = 4)] - #[doc = "Duplicate vote ignored"] - DuplicateVote, + #[doc = "See [`Pallet::set_storage`]."] + set_storage { + items: ::std::vec::Vec<( + ::std::vec::Vec<::core::primitive::u8>, + ::std::vec::Vec<::core::primitive::u8>, + )>, + }, #[codec(index = 5)] - #[doc = "Members are already initialized!"] - AlreadyInitialized, + #[doc = "See [`Pallet::kill_storage`]."] + kill_storage { + keys: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, + }, #[codec(index = 6)] - #[doc = "The close call was made too early, before the end of the voting."] - TooEarly, + #[doc = "See [`Pallet::kill_prefix`]."] + kill_prefix { + prefix: ::std::vec::Vec<::core::primitive::u8>, + subkeys: ::core::primitive::u32, + }, #[codec(index = 7)] - #[doc = "There can only be a maximum of `MaxProposals` active proposals."] - TooManyProposals, - #[codec(index = 8)] - #[doc = "The given weight bound for the proposal was too low."] - WrongProposalWeight, - #[codec(index = 9)] - #[doc = "The given length bound for the proposal was too low."] - WrongProposalLength, + #[doc = "See [`Pallet::remark_with_event`]."] + remark_with_event { + remark: ::std::vec::Vec<::core::primitive::u8>, + }, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -39074,54 +39350,30 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] - pub enum Event { + #[doc = "Error for the System pallet"] + pub enum Error { #[codec(index = 0)] - #[doc = "A motion (given hash) has been proposed (by given account) with a threshold (given"] - #[doc = "`MemberCount`)."] - Proposed { - account: ::subxt::utils::AccountId32, - proposal_index: ::core::primitive::u32, - proposal_hash: ::subxt::utils::H256, - threshold: ::core::primitive::u32, - }, + #[doc = "The name of specification does not match between the current runtime"] + #[doc = "and the new runtime."] + InvalidSpecName, #[codec(index = 1)] - #[doc = "A motion (given hash) has been voted on by given account, leaving"] - #[doc = "a tally (yes votes and no votes given respectively as `MemberCount`)."] - Voted { - account: ::subxt::utils::AccountId32, - proposal_hash: ::subxt::utils::H256, - voted: ::core::primitive::bool, - yes: ::core::primitive::u32, - no: ::core::primitive::u32, - }, + #[doc = "The specification version is not allowed to decrease between the current runtime"] + #[doc = "and the new runtime."] + SpecVersionNeedsToIncrease, #[codec(index = 2)] - #[doc = "A motion was approved by the required threshold."] - Approved { proposal_hash: ::subxt::utils::H256 }, + #[doc = "Failed to extract the runtime version from the new runtime."] + #[doc = ""] + #[doc = "Either calling `Core_version` or decoding `RuntimeVersion` failed."] + FailedToExtractRuntimeVersion, #[codec(index = 3)] - #[doc = "A motion was not approved by the required threshold."] - Disapproved { proposal_hash: ::subxt::utils::H256 }, + #[doc = "Suicide called when the account has non-default composite data."] + NonDefaultComposite, #[codec(index = 4)] - #[doc = "A motion was executed; result will be `Ok` if it returned without error."] - Executed { - proposal_hash: ::subxt::utils::H256, - result: - ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, - }, + #[doc = "There is a non-zero reference count preventing the account from being purged."] + NonZeroRefCount, #[codec(index = 5)] - #[doc = "A single member did some action; result will be `Ok` if it returned without error."] - MemberExecuted { - proposal_hash: ::subxt::utils::H256, - result: - ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, - }, - #[codec(index = 6)] - #[doc = "A proposal was closed because its threshold was reached or after its duration was up."] - Closed { - proposal_hash: ::subxt::utils::H256, - yes: ::core::primitive::u32, - no: ::core::primitive::u32, - }, + #[doc = "The origin filter prevent the call to be dispatched."] + CallFiltered, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -39133,53 +39385,37 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] - pub enum Event2 { + #[doc = "Event for the System pallet."] + pub enum Event { #[codec(index = 0)] - #[doc = "A motion (given hash) has been proposed (by given account) with a threshold (given"] - #[doc = "`MemberCount`)."] - Proposed { - account: ::subxt::utils::AccountId32, - proposal_index: ::core::primitive::u32, - proposal_hash: ::subxt::utils::H256, - threshold: ::core::primitive::u32, + #[doc = "An extrinsic completed successfully."] + ExtrinsicSuccess { + dispatch_info: runtime_types::frame_support::dispatch::DispatchInfo, }, #[codec(index = 1)] - #[doc = "A motion (given hash) has been voted on by given account, leaving"] - #[doc = "a tally (yes votes and no votes given respectively as `MemberCount`)."] - Voted { - account: ::subxt::utils::AccountId32, - proposal_hash: ::subxt::utils::H256, - voted: ::core::primitive::bool, - yes: ::core::primitive::u32, - no: ::core::primitive::u32, + #[doc = "An extrinsic failed."] + ExtrinsicFailed { + dispatch_error: runtime_types::sp_runtime::DispatchError, + dispatch_info: runtime_types::frame_support::dispatch::DispatchInfo, }, #[codec(index = 2)] - #[doc = "A motion was approved by the required threshold."] - Approved { proposal_hash: ::subxt::utils::H256 }, + #[doc = "`:code` was updated."] + CodeUpdated, #[codec(index = 3)] - #[doc = "A motion was not approved by the required threshold."] - Disapproved { proposal_hash: ::subxt::utils::H256 }, - #[codec(index = 4)] - #[doc = "A motion was executed; result will be `Ok` if it returned without error."] - Executed { - proposal_hash: ::subxt::utils::H256, - result: - ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + #[doc = "A new account was created."] + NewAccount { + account: ::subxt::utils::AccountId32, }, - #[codec(index = 5)] - #[doc = "A single member did some action; result will be `Ok` if it returned without error."] - MemberExecuted { - proposal_hash: ::subxt::utils::H256, - result: - ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + #[codec(index = 4)] + #[doc = "An account was reaped."] + KilledAccount { + account: ::subxt::utils::AccountId32, }, - #[codec(index = 6)] - #[doc = "A proposal was closed because its threshold was reached or after its duration was up."] - Closed { - proposal_hash: ::subxt::utils::H256, - yes: ::core::primitive::u32, - no: ::core::primitive::u32, + #[codec(index = 5)] + #[doc = "On on-chain remark happened."] + Remarked { + sender: ::subxt::utils::AccountId32, + hash: ::subxt::utils::H256, }, } } @@ -39193,13 +39429,12 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - 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 AccountInfo<_0, _1> { + pub nonce: _0, + pub consumers: ::core::primitive::u32, + pub providers: ::core::primitive::u32, + pub sufficients: ::core::primitive::u32, + pub data: _1, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -39211,45 +39446,47 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Votes<_0, _1> { - pub index: ::core::primitive::u32, - pub threshold: ::core::primitive::u32, - pub ayes: ::std::vec::Vec<_0>, - pub nays: ::std::vec::Vec<_0>, - pub end: _1, + pub struct EventRecord<_0, _1> { + pub phase: runtime_types::frame_system::Phase, + pub event: _0, + pub topics: ::std::vec::Vec<_1>, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct LastRuntimeUpgradeInfo { + #[codec(compact)] + pub spec_version: ::core::primitive::u32, + pub spec_name: ::std::string::String, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Phase { + #[codec(index = 0)] + ApplyExtrinsic(::core::primitive::u32), + #[codec(index = 1)] + Finalization, + #[codec(index = 2)] + Initialization, } } - pub mod pallet_conviction_voting { + pub mod pallet_asset_rate { use super::runtime_types; - pub mod conviction { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - 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 mod pallet { use super::runtime_types; #[derive( @@ -39265,43 +39502,27 @@ pub mod api { #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::vote`]."] - vote { - #[codec(compact)] - poll_index: ::core::primitive::u32, - vote: runtime_types::pallet_conviction_voting::vote::AccountVote< - ::core::primitive::u128, + #[doc = "See [`Pallet::create`]."] + create { + asset_kind: ::std::boxed::Box< + runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset, >, + rate: runtime_types::sp_arithmetic::fixed_point::FixedU128, }, #[codec(index = 1)] - #[doc = "See [`Pallet::delegate`]."] - delegate { - class: ::core::primitive::u16, - to: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - conviction: runtime_types::pallet_conviction_voting::conviction::Conviction, - balance: ::core::primitive::u128, + #[doc = "See [`Pallet::update`]."] + update { + asset_kind: ::std::boxed::Box< + runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset, + >, + rate: runtime_types::sp_arithmetic::fixed_point::FixedU128, }, #[codec(index = 2)] - #[doc = "See [`Pallet::undelegate`]."] - undelegate { class: ::core::primitive::u16 }, - #[codec(index = 3)] - #[doc = "See [`Pallet::unlock`]."] - unlock { - class: ::core::primitive::u16, - target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - }, - #[codec(index = 4)] - #[doc = "See [`Pallet::remove_vote`]."] - remove_vote { - class: ::core::option::Option<::core::primitive::u16>, - index: ::core::primitive::u32, - }, - #[codec(index = 5)] - #[doc = "See [`Pallet::remove_other_vote`]."] - remove_other_vote { - target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - class: ::core::primitive::u16, - index: ::core::primitive::u32, + #[doc = "See [`Pallet::remove`]."] + remove { + asset_kind: ::std::boxed::Box< + runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset, + >, }, } #[derive( @@ -39317,42 +39538,11 @@ pub mod api { #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] - #[doc = "Poll is not ongoing."] - NotOngoing, + #[doc = "The given asset ID is unknown."] + UnknownAssetKind, #[codec(index = 1)] - #[doc = "The given account did not vote on the poll."] - NotVoter, - #[codec(index = 2)] - #[doc = "The actor has no permission to conduct the action."] - NoPermission, - #[codec(index = 3)] - #[doc = "The actor has no permission to conduct the action right now but will do in the future."] - NoPermissionYet, - #[codec(index = 4)] - #[doc = "The account is already delegating."] - AlreadyDelegating, - #[codec(index = 5)] - #[doc = "The account currently has votes attached to it and the operation cannot succeed until"] - #[doc = "these are removed, either through `unvote` or `reap_vote`."] - AlreadyVoting, - #[codec(index = 6)] - #[doc = "Too high a balance was provided that the account cannot afford."] - InsufficientFunds, - #[codec(index = 7)] - #[doc = "The account is not currently delegating."] - NotDelegating, - #[codec(index = 8)] - #[doc = "Delegation to oneself makes no sense."] - Nonsense, - #[codec(index = 9)] - #[doc = "Maximum number of votes reached."] - MaxVotesReached, - #[codec(index = 10)] - #[doc = "The class must be supplied since it is not easily determinable from the state."] - ClassNeeded, - #[codec(index = 11)] - #[doc = "The class ID supplied is invalid."] - BadClass, + #[doc = "The given asset ID already has an assigned conversion rate and cannot be re-created."] + AlreadyExists, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -39367,14 +39557,29 @@ pub mod api { #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] - #[doc = "An account has delegated their vote to another account. \\[who, target\\]"] - Delegated(::subxt::utils::AccountId32, ::subxt::utils::AccountId32), + AssetRateCreated { + asset_kind: + runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset, + rate: runtime_types::sp_arithmetic::fixed_point::FixedU128, + }, #[codec(index = 1)] - #[doc = "An \\[account\\] has cancelled a previous delegation operation."] - Undelegated(::subxt::utils::AccountId32), + AssetRateRemoved { + asset_kind: + runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset, + }, + #[codec(index = 2)] + AssetRateUpdated { + asset_kind: + runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset, + old: runtime_types::sp_arithmetic::fixed_point::FixedU128, + new: runtime_types::sp_arithmetic::fixed_point::FixedU128, + }, } } - pub mod types { + } + pub mod pallet_babe { + use super::runtime_types; + pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, @@ -39386,9 +39591,39 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Delegations<_0> { - pub votes: _0, - pub capital: _0, + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call { + #[codec(index = 0)] + #[doc = "See [`Pallet::report_equivocation`]."] + 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_consensus_babe::app::Public, + >, + >, + key_owner_proof: runtime_types::sp_session::MembershipProof, + }, + #[codec(index = 1)] + #[doc = "See [`Pallet::report_equivocation_unsigned`]."] + 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_consensus_babe::app::Public, + >, + >, + key_owner_proof: runtime_types::sp_session::MembershipProof, + }, + #[codec(index = 2)] + #[doc = "See [`Pallet::plan_config_change`]."] + plan_config_change { + config: runtime_types::sp_consensus_babe::digests::NextConfigDescriptor, + }, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -39400,13 +39635,26 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Tally<_0> { - pub ayes: _0, - pub nays: _0, - pub support: _0, + #[doc = "The `Error` enum of this pallet."] + pub enum Error { + #[codec(index = 0)] + #[doc = "An equivocation proof provided as part of an equivocation report is invalid."] + InvalidEquivocationProof, + #[codec(index = 1)] + #[doc = "A key ownership proof provided as part of an equivocation report is invalid."] + InvalidKeyOwnershipProof, + #[codec(index = 2)] + #[doc = "A given equivocation report is valid but already previously reported."] + DuplicateOffenceReport, + #[codec(index = 3)] + #[doc = "Submitted configuration is invalid."] + InvalidConfiguration, } } - pub mod vote { + } + pub mod pallet_balances { + use super::runtime_types; + pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, @@ -39418,55 +39666,54 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum AccountVote<_0> { + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call { #[codec(index = 0)] - Standard { - vote: runtime_types::pallet_conviction_voting::vote::Vote, - balance: _0, + #[doc = "See [`Pallet::transfer_allow_death`]."] + transfer_allow_death { + dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + #[codec(compact)] + value: ::core::primitive::u128, }, - #[codec(index = 1)] - Split { aye: _0, nay: _0 }, #[codec(index = 2)] - SplitAbstain { aye: _0, nay: _0, abstain: _0 }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Casting<_0, _1, _2> { - pub votes: runtime_types::bounded_collections::bounded_vec::BoundedVec<( - _1, - runtime_types::pallet_conviction_voting::vote::AccountVote<_0>, - )>, - pub delegations: - runtime_types::pallet_conviction_voting::types::Delegations<_0>, - pub prior: runtime_types::pallet_conviction_voting::vote::PriorLock<_1, _0>, - #[codec(skip)] - pub __subxt_unused_type_params: ::core::marker::PhantomData<_2>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Delegating<_0, _1, _2> { - pub balance: _0, - pub target: _1, - pub conviction: runtime_types::pallet_conviction_voting::conviction::Conviction, - pub delegations: - runtime_types::pallet_conviction_voting::types::Delegations<_0>, - pub prior: runtime_types::pallet_conviction_voting::vote::PriorLock<_2, _0>, + #[doc = "See [`Pallet::force_transfer`]."] + force_transfer { + source: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + #[codec(compact)] + value: ::core::primitive::u128, + }, + #[codec(index = 3)] + #[doc = "See [`Pallet::transfer_keep_alive`]."] + transfer_keep_alive { + dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + #[codec(compact)] + value: ::core::primitive::u128, + }, + #[codec(index = 4)] + #[doc = "See [`Pallet::transfer_all`]."] + transfer_all { + dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + keep_alive: ::core::primitive::bool, + }, + #[codec(index = 5)] + #[doc = "See [`Pallet::force_unreserve`]."] + force_unreserve { + who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + amount: ::core::primitive::u128, + }, + #[codec(index = 6)] + #[doc = "See [`Pallet::upgrade_accounts`]."] + upgrade_accounts { + who: ::std::vec::Vec<::subxt::utils::AccountId32>, + }, + #[codec(index = 8)] + #[doc = "See [`Pallet::force_set_balance`]."] + force_set_balance { + who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + #[codec(compact)] + new_free: ::core::primitive::u128, + }, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -39478,44 +39725,55 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct PriorLock<_0, _1>(pub _0, pub _1); - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Vote(pub ::core::primitive::u8); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Voting<_0, _1, _2, _3> { + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call2 { #[codec(index = 0)] - Casting(runtime_types::pallet_conviction_voting::vote::Casting<_0, _2, _2>), - #[codec(index = 1)] - Delegating( - runtime_types::pallet_conviction_voting::vote::Delegating<_0, _1, _2>, - ), - __Ignore(::core::marker::PhantomData<_3>), + #[doc = "See [`Pallet::transfer_allow_death`]."] + transfer_allow_death { + dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + #[codec(compact)] + value: ::core::primitive::u128, + }, + #[codec(index = 2)] + #[doc = "See [`Pallet::force_transfer`]."] + force_transfer { + source: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + #[codec(compact)] + value: ::core::primitive::u128, + }, + #[codec(index = 3)] + #[doc = "See [`Pallet::transfer_keep_alive`]."] + transfer_keep_alive { + dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + #[codec(compact)] + value: ::core::primitive::u128, + }, + #[codec(index = 4)] + #[doc = "See [`Pallet::transfer_all`]."] + transfer_all { + dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + keep_alive: ::core::primitive::bool, + }, + #[codec(index = 5)] + #[doc = "See [`Pallet::force_unreserve`]."] + force_unreserve { + who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + amount: ::core::primitive::u128, + }, + #[codec(index = 6)] + #[doc = "See [`Pallet::upgrade_accounts`]."] + upgrade_accounts { + who: ::std::vec::Vec<::subxt::utils::AccountId32>, + }, + #[codec(index = 8)] + #[doc = "See [`Pallet::force_set_balance`]."] + force_set_balance { + who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + #[codec(compact)] + new_free: ::core::primitive::u128, + }, } - } - } - pub mod pallet_democracy { - use super::runtime_types; - pub mod conviction { - use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -39526,25 +39784,39 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Conviction { + #[doc = "The `Error` enum of this pallet."] + pub enum Error { #[codec(index = 0)] - None, + #[doc = "Vesting balance too high to send value."] + VestingBalance, #[codec(index = 1)] - Locked1x, + #[doc = "Account liquidity restrictions prevent withdrawal."] + LiquidityRestrictions, #[codec(index = 2)] - Locked2x, + #[doc = "Balance too low to send value."] + InsufficientBalance, #[codec(index = 3)] - Locked3x, + #[doc = "Value too low to create account due to existential deposit."] + ExistentialDeposit, #[codec(index = 4)] - Locked4x, + #[doc = "Transfer/payment would kill account."] + Expendability, #[codec(index = 5)] - Locked5x, + #[doc = "A vesting schedule already exists for this account."] + ExistingVestingSchedule, #[codec(index = 6)] - Locked6x, + #[doc = "Beneficiary account must pre-exist."] + DeadAccount, + #[codec(index = 7)] + #[doc = "Number of named reserves exceed `MaxReserves`."] + TooManyReserves, + #[codec(index = 8)] + #[doc = "Number of holds exceed `MaxHolds`."] + TooManyHolds, + #[codec(index = 9)] + #[doc = "Number of freezes exceed `MaxFreezes`."] + TooManyFreezes, } - } - pub mod pallet { - use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -39555,117 +39827,38 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub enum Call { + #[doc = "The `Error` enum of this pallet."] + pub enum Error2 { #[codec(index = 0)] - #[doc = "See [`Pallet::propose`]."] - propose { - proposal: runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::polkadot_runtime::RuntimeCall, - >, - #[codec(compact)] - value: ::core::primitive::u128, - }, + #[doc = "Vesting balance too high to send value."] + VestingBalance, #[codec(index = 1)] - #[doc = "See [`Pallet::second`]."] - second { - #[codec(compact)] - proposal: ::core::primitive::u32, - }, + #[doc = "Account liquidity restrictions prevent withdrawal."] + LiquidityRestrictions, #[codec(index = 2)] - #[doc = "See [`Pallet::vote`]."] - vote { - #[codec(compact)] - ref_index: ::core::primitive::u32, - vote: runtime_types::pallet_democracy::vote::AccountVote< - ::core::primitive::u128, - >, - }, + #[doc = "Balance too low to send value."] + InsufficientBalance, #[codec(index = 3)] - #[doc = "See [`Pallet::emergency_cancel`]."] - emergency_cancel { ref_index: ::core::primitive::u32 }, + #[doc = "Value too low to create account due to existential deposit."] + ExistentialDeposit, #[codec(index = 4)] - #[doc = "See [`Pallet::external_propose`]."] - external_propose { - proposal: runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::polkadot_runtime::RuntimeCall, - >, - }, + #[doc = "Transfer/payment would kill account."] + Expendability, #[codec(index = 5)] - #[doc = "See [`Pallet::external_propose_majority`]."] - external_propose_majority { - proposal: runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::polkadot_runtime::RuntimeCall, - >, - }, + #[doc = "A vesting schedule already exists for this account."] + ExistingVestingSchedule, #[codec(index = 6)] - #[doc = "See [`Pallet::external_propose_default`]."] - external_propose_default { - proposal: runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::polkadot_runtime::RuntimeCall, - >, - }, + #[doc = "Beneficiary account must pre-exist."] + DeadAccount, #[codec(index = 7)] - #[doc = "See [`Pallet::fast_track`]."] - fast_track { - proposal_hash: ::subxt::utils::H256, - voting_period: ::core::primitive::u32, - delay: ::core::primitive::u32, - }, - #[codec(index = 8)] - #[doc = "See [`Pallet::veto_external`]."] - veto_external { proposal_hash: ::subxt::utils::H256 }, - #[codec(index = 9)] - #[doc = "See [`Pallet::cancel_referendum`]."] - cancel_referendum { - #[codec(compact)] - ref_index: ::core::primitive::u32, - }, - #[codec(index = 10)] - #[doc = "See [`Pallet::delegate`]."] - delegate { - to: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - conviction: runtime_types::pallet_democracy::conviction::Conviction, - balance: ::core::primitive::u128, - }, - #[codec(index = 11)] - #[doc = "See [`Pallet::undelegate`]."] - undelegate, - #[codec(index = 12)] - #[doc = "See [`Pallet::clear_public_proposals`]."] - clear_public_proposals, - #[codec(index = 13)] - #[doc = "See [`Pallet::unlock`]."] - unlock { - target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - }, - #[codec(index = 14)] - #[doc = "See [`Pallet::remove_vote`]."] - remove_vote { index: ::core::primitive::u32 }, - #[codec(index = 15)] - #[doc = "See [`Pallet::remove_other_vote`]."] - remove_other_vote { - target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - index: ::core::primitive::u32, - }, - #[codec(index = 16)] - #[doc = "See [`Pallet::blacklist`]."] - blacklist { - proposal_hash: ::subxt::utils::H256, - maybe_ref_index: ::core::option::Option<::core::primitive::u32>, - }, - #[codec(index = 17)] - #[doc = "See [`Pallet::cancel_proposal`]."] - cancel_proposal { - #[codec(compact)] - prop_index: ::core::primitive::u32, - }, - #[codec(index = 18)] - #[doc = "See [`Pallet::set_metadata`]."] - set_metadata { - owner: runtime_types::pallet_democracy::types::MetadataOwner, - maybe_hash: ::core::option::Option<::subxt::utils::H256>, - }, + #[doc = "Number of named reserves exceed `MaxReserves`."] + TooManyReserves, + #[codec(index = 8)] + #[doc = "Number of holds exceed `MaxHolds`."] + TooManyHolds, + #[codec(index = 9)] + #[doc = "Number of freezes exceed `MaxFreezes`."] + TooManyFreezes, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -39677,81 +39870,131 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] - pub enum Error { + #[doc = "The `Event` enum of this pallet"] + pub enum Event { #[codec(index = 0)] - #[doc = "Value too low"] - ValueLow, + #[doc = "An account was created with some free balance."] + Endowed { + account: ::subxt::utils::AccountId32, + free_balance: ::core::primitive::u128, + }, #[codec(index = 1)] - #[doc = "Proposal does not exist"] - ProposalMissing, + #[doc = "An account was removed whose balance was non-zero but below ExistentialDeposit,"] + #[doc = "resulting in an outright loss."] + DustLost { + account: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, #[codec(index = 2)] - #[doc = "Cannot cancel the same proposal twice"] - AlreadyCanceled, + #[doc = "Transfer succeeded."] + Transfer { + from: ::subxt::utils::AccountId32, + to: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, #[codec(index = 3)] - #[doc = "Proposal already made"] - DuplicateProposal, + #[doc = "A balance was set by root."] + BalanceSet { + who: ::subxt::utils::AccountId32, + free: ::core::primitive::u128, + }, #[codec(index = 4)] - #[doc = "Proposal still blacklisted"] - ProposalBlacklisted, + #[doc = "Some balance was reserved (moved from free to reserved)."] + Reserved { + who: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, #[codec(index = 5)] - #[doc = "Next external proposal not simple majority"] - NotSimpleMajority, + #[doc = "Some balance was unreserved (moved from reserved to free)."] + Unreserved { + who: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, #[codec(index = 6)] - #[doc = "Invalid hash"] - InvalidHash, + #[doc = "Some balance was moved from the reserve of the first account to the second account."] + #[doc = "Final argument indicates the destination balance type."] + ReserveRepatriated { + from: ::subxt::utils::AccountId32, + to: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + destination_status: + runtime_types::frame_support::traits::tokens::misc::BalanceStatus, + }, #[codec(index = 7)] - #[doc = "No external proposal"] - NoProposal, + #[doc = "Some amount was deposited (e.g. for transaction fees)."] + Deposit { + who: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, #[codec(index = 8)] - #[doc = "Identity may not veto a proposal twice"] - AlreadyVetoed, + #[doc = "Some amount was withdrawn from the account (e.g. for transaction fees)."] + Withdraw { + who: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, #[codec(index = 9)] - #[doc = "Vote given for invalid referendum"] - ReferendumInvalid, + #[doc = "Some amount was removed from the account (e.g. for misbehavior)."] + Slashed { + who: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, #[codec(index = 10)] - #[doc = "No proposals waiting"] - NoneWaiting, + #[doc = "Some amount was minted into an account."] + Minted { + who: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, #[codec(index = 11)] - #[doc = "The given account did not vote on the referendum."] - NotVoter, + #[doc = "Some amount was burned from an account."] + Burned { + who: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, #[codec(index = 12)] - #[doc = "The actor has no permission to conduct the action."] - NoPermission, + #[doc = "Some amount was suspended from an account (it can be restored later)."] + Suspended { + who: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, #[codec(index = 13)] - #[doc = "The account is already delegating."] - AlreadyDelegating, + #[doc = "Some amount was restored into an account."] + Restored { + who: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, #[codec(index = 14)] - #[doc = "Too high a balance was provided that the account cannot afford."] - InsufficientFunds, + #[doc = "An account was upgraded."] + Upgraded { who: ::subxt::utils::AccountId32 }, #[codec(index = 15)] - #[doc = "The account is not currently delegating."] - NotDelegating, + #[doc = "Total issuance was increased by `amount`, creating a credit to be balanced."] + Issued { amount: ::core::primitive::u128 }, #[codec(index = 16)] - #[doc = "The account currently has votes attached to it and the operation cannot succeed until"] - #[doc = "these are removed, either through `unvote` or `reap_vote`."] - VotesExist, + #[doc = "Total issuance was decreased by `amount`, creating a debt to be balanced."] + Rescinded { amount: ::core::primitive::u128 }, #[codec(index = 17)] - #[doc = "The instant referendum origin is currently disallowed."] - InstantNotAllowed, + #[doc = "Some balance was locked."] + Locked { + who: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, #[codec(index = 18)] - #[doc = "Delegation to oneself makes no sense."] - Nonsense, + #[doc = "Some balance was unlocked."] + Unlocked { + who: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, #[codec(index = 19)] - #[doc = "Invalid upper bound."] - WrongUpperBound, + #[doc = "Some balance was frozen."] + Frozen { + who: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, #[codec(index = 20)] - #[doc = "Maximum number of votes reached."] - MaxVotesReached, - #[codec(index = 21)] - #[doc = "Maximum number of items reached."] - TooMany, - #[codec(index = 22)] - #[doc = "Voting period too low"] - VotingPeriodLow, - #[codec(index = 23)] - #[doc = "The preimage does not exist."] - PreimageNotExist, + #[doc = "Some balance was thawed."] + Thawed { + who: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -39764,94 +40007,129 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The `Event` enum of this pallet"] - pub enum Event { + pub enum Event2 { #[codec(index = 0)] - #[doc = "A motion has been proposed by a public account."] - Proposed { - proposal_index: ::core::primitive::u32, - deposit: ::core::primitive::u128, + #[doc = "An account was created with some free balance."] + Endowed { + account: ::subxt::utils::AccountId32, + free_balance: ::core::primitive::u128, }, #[codec(index = 1)] - #[doc = "A public proposal has been tabled for referendum vote."] - Tabled { - proposal_index: ::core::primitive::u32, - deposit: ::core::primitive::u128, + #[doc = "An account was removed whose balance was non-zero but below ExistentialDeposit,"] + #[doc = "resulting in an outright loss."] + DustLost { + account: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, }, #[codec(index = 2)] - #[doc = "An external proposal has been tabled."] - ExternalTabled, + #[doc = "Transfer succeeded."] + Transfer { + from: ::subxt::utils::AccountId32, + to: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, #[codec(index = 3)] - #[doc = "A referendum has begun."] - Started { - ref_index: ::core::primitive::u32, - threshold: runtime_types::pallet_democracy::vote_threshold::VoteThreshold, + #[doc = "A balance was set by root."] + BalanceSet { + who: ::subxt::utils::AccountId32, + free: ::core::primitive::u128, }, #[codec(index = 4)] - #[doc = "A proposal has been approved by referendum."] - Passed { ref_index: ::core::primitive::u32 }, + #[doc = "Some balance was reserved (moved from free to reserved)."] + Reserved { + who: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, #[codec(index = 5)] - #[doc = "A proposal has been rejected by referendum."] - NotPassed { ref_index: ::core::primitive::u32 }, + #[doc = "Some balance was unreserved (moved from reserved to free)."] + Unreserved { + who: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, #[codec(index = 6)] - #[doc = "A referendum has been cancelled."] - Cancelled { ref_index: ::core::primitive::u32 }, + #[doc = "Some balance was moved from the reserve of the first account to the second account."] + #[doc = "Final argument indicates the destination balance type."] + ReserveRepatriated { + from: ::subxt::utils::AccountId32, + to: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + destination_status: + runtime_types::frame_support::traits::tokens::misc::BalanceStatus, + }, #[codec(index = 7)] - #[doc = "An account has delegated their vote to another account."] - Delegated { + #[doc = "Some amount was deposited (e.g. for transaction fees)."] + Deposit { who: ::subxt::utils::AccountId32, - target: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, }, #[codec(index = 8)] - #[doc = "An account has cancelled a previous delegation operation."] - Undelegated { - account: ::subxt::utils::AccountId32, + #[doc = "Some amount was withdrawn from the account (e.g. for transaction fees)."] + Withdraw { + who: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, }, #[codec(index = 9)] - #[doc = "An external proposal has been vetoed."] - Vetoed { + #[doc = "Some amount was removed from the account (e.g. for misbehavior)."] + Slashed { who: ::subxt::utils::AccountId32, - proposal_hash: ::subxt::utils::H256, - until: ::core::primitive::u32, + amount: ::core::primitive::u128, }, #[codec(index = 10)] - #[doc = "A proposal_hash has been blacklisted permanently."] - Blacklisted { proposal_hash: ::subxt::utils::H256 }, + #[doc = "Some amount was minted into an account."] + Minted { + who: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, #[codec(index = 11)] - #[doc = "An account has voted in a referendum"] - Voted { - voter: ::subxt::utils::AccountId32, - ref_index: ::core::primitive::u32, - vote: runtime_types::pallet_democracy::vote::AccountVote< - ::core::primitive::u128, - >, + #[doc = "Some amount was burned from an account."] + Burned { + who: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, }, #[codec(index = 12)] - #[doc = "An account has secconded a proposal"] - Seconded { - seconder: ::subxt::utils::AccountId32, - prop_index: ::core::primitive::u32, + #[doc = "Some amount was suspended from an account (it can be restored later)."] + Suspended { + who: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, }, #[codec(index = 13)] - #[doc = "A proposal got canceled."] - ProposalCanceled { prop_index: ::core::primitive::u32 }, - #[codec(index = 14)] - #[doc = "Metadata for a proposal or a referendum has been set."] - MetadataSet { - owner: runtime_types::pallet_democracy::types::MetadataOwner, - hash: ::subxt::utils::H256, + #[doc = "Some amount was restored into an account."] + Restored { + who: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, }, + #[codec(index = 14)] + #[doc = "An account was upgraded."] + Upgraded { who: ::subxt::utils::AccountId32 }, #[codec(index = 15)] - #[doc = "Metadata for a proposal or a referendum has been cleared."] - MetadataCleared { - owner: runtime_types::pallet_democracy::types::MetadataOwner, - hash: ::subxt::utils::H256, - }, + #[doc = "Total issuance was increased by `amount`, creating a credit to be balanced."] + Issued { amount: ::core::primitive::u128 }, #[codec(index = 16)] - #[doc = "Metadata has been transferred to new owner."] - MetadataTransferred { - prev_owner: runtime_types::pallet_democracy::types::MetadataOwner, - owner: runtime_types::pallet_democracy::types::MetadataOwner, - hash: ::subxt::utils::H256, + #[doc = "Total issuance was decreased by `amount`, creating a debt to be balanced."] + Rescinded { amount: ::core::primitive::u128 }, + #[codec(index = 17)] + #[doc = "Some balance was locked."] + Locked { + who: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 18)] + #[doc = "Some balance was unlocked."] + Unlocked { + who: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 19)] + #[doc = "Some balance was frozen."] + Frozen { + who: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 20)] + #[doc = "Some balance was thawed."] + Thawed { + who: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, }, } } @@ -39867,9 +40145,11 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Delegations<_0> { - pub votes: _0, - pub capital: _0, + pub struct AccountData<_0> { + pub free: _0, + pub reserved: _0, + pub frozen: _0, + pub flags: runtime_types::pallet_balances::types::ExtraFlags, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -39881,15 +40161,13 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum MetadataOwner { - #[codec(index = 0)] - External, - #[codec(index = 1)] - Proposal(::core::primitive::u32), - #[codec(index = 2)] - Referendum(::core::primitive::u32), + pub struct BalanceLock<_0> { + pub id: [::core::primitive::u8; 8usize], + pub amount: _0, + pub reasons: runtime_types::pallet_balances::types::Reasons, } #[derive( + :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -39899,14 +40177,20 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum ReferendumInfo<_0, _1, _2> { - #[codec(index = 0)] - Ongoing(runtime_types::pallet_democracy::types::ReferendumStatus<_0, _1, _2>), - #[codec(index = 1)] - Finished { - approved: ::core::primitive::bool, - end: _0, - }, + pub struct ExtraFlags(pub ::core::primitive::u128); + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct IdAmount<_0, _1> { + pub id: _0, + pub amount: _1, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -39918,12 +40202,13 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ReferendumStatus<_0, _1, _2> { - pub end: _0, - pub proposal: _1, - pub threshold: runtime_types::pallet_democracy::vote_threshold::VoteThreshold, - pub delay: _0, - pub tally: runtime_types::pallet_democracy::types::Tally<_2>, + pub enum Reasons { + #[codec(index = 0)] + Fee, + #[codec(index = 1)] + Misc, + #[codec(index = 2)] + All, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -39935,13 +40220,15 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Tally<_0> { - pub ayes: _0, - pub nays: _0, - pub turnout: _0, + pub struct ReserveData<_0, _1> { + pub id: _0, + pub amount: _1, } } - pub mod vote { + } + pub mod pallet_beefy { + use super::runtime_types; + pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, @@ -39953,14 +40240,37 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum AccountVote<_0> { + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call { #[codec(index = 0)] - Standard { - vote: runtime_types::pallet_democracy::vote::Vote, - balance: _0, + #[doc = "See [`Pallet::report_equivocation`]."] + report_equivocation { + equivocation_proof: ::std::boxed::Box< + runtime_types::sp_consensus_beefy::EquivocationProof< + ::core::primitive::u32, + runtime_types::sp_consensus_beefy::ecdsa_crypto::Public, + runtime_types::sp_consensus_beefy::ecdsa_crypto::Signature, + >, + >, + key_owner_proof: runtime_types::sp_session::MembershipProof, }, #[codec(index = 1)] - Split { aye: _0, nay: _0 }, + #[doc = "See [`Pallet::report_equivocation_unsigned`]."] + report_equivocation_unsigned { + equivocation_proof: ::std::boxed::Box< + runtime_types::sp_consensus_beefy::EquivocationProof< + ::core::primitive::u32, + runtime_types::sp_consensus_beefy::ecdsa_crypto::Public, + runtime_types::sp_consensus_beefy::ecdsa_crypto::Signature, + >, + >, + key_owner_proof: runtime_types::sp_session::MembershipProof, + }, + #[codec(index = 2)] + #[doc = "See [`Pallet::set_new_genesis`]."] + set_new_genesis { + delay_in_blocks: ::core::primitive::u32, + }, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -39972,9 +40282,28 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct PriorLock<_0, _1>(pub _0, pub _1); + #[doc = "The `Error` enum of this pallet."] + pub enum Error { + #[codec(index = 0)] + #[doc = "A key ownership proof provided as part of an equivocation report is invalid."] + InvalidKeyOwnershipProof, + #[codec(index = 1)] + #[doc = "An equivocation proof provided as part of an equivocation report is invalid."] + InvalidEquivocationProof, + #[codec(index = 2)] + #[doc = "A given equivocation report is valid but already previously reported."] + DuplicateOffenceReport, + #[codec(index = 3)] + #[doc = "Submitted configuration is invalid."] + InvalidConfiguration, + } + } + } + pub mod pallet_bounties { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -39984,7 +40313,69 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Vote(pub ::core::primitive::u8); + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call { + #[codec(index = 0)] + #[doc = "See [`Pallet::propose_bounty`]."] + propose_bounty { + #[codec(compact)] + value: ::core::primitive::u128, + description: ::std::vec::Vec<::core::primitive::u8>, + }, + #[codec(index = 1)] + #[doc = "See [`Pallet::approve_bounty`]."] + approve_bounty { + #[codec(compact)] + bounty_id: ::core::primitive::u32, + }, + #[codec(index = 2)] + #[doc = "See [`Pallet::propose_curator`]."] + propose_curator { + #[codec(compact)] + bounty_id: ::core::primitive::u32, + curator: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + #[codec(compact)] + fee: ::core::primitive::u128, + }, + #[codec(index = 3)] + #[doc = "See [`Pallet::unassign_curator`]."] + unassign_curator { + #[codec(compact)] + bounty_id: ::core::primitive::u32, + }, + #[codec(index = 4)] + #[doc = "See [`Pallet::accept_curator`]."] + accept_curator { + #[codec(compact)] + bounty_id: ::core::primitive::u32, + }, + #[codec(index = 5)] + #[doc = "See [`Pallet::award_bounty`]."] + award_bounty { + #[codec(compact)] + bounty_id: ::core::primitive::u32, + beneficiary: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + }, + #[codec(index = 6)] + #[doc = "See [`Pallet::claim_bounty`]."] + claim_bounty { + #[codec(compact)] + bounty_id: ::core::primitive::u32, + }, + #[codec(index = 7)] + #[doc = "See [`Pallet::close_bounty`]."] + close_bounty { + #[codec(compact)] + bounty_id: ::core::primitive::u32, + }, + #[codec(index = 8)] + #[doc = "See [`Pallet::extend_bounty_expiry`]."] + extend_bounty_expiry { + #[codec(compact)] + bounty_id: ::core::primitive::u32, + remark: ::std::vec::Vec<::core::primitive::u8>, + }, + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -39995,28 +40386,43 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Voting<_0, _1, _2> { + #[doc = "The `Error` enum of this pallet."] + pub enum Error { #[codec(index = 0)] - Direct { - votes: runtime_types::bounded_collections::bounded_vec::BoundedVec<( - _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>, - }, + #[doc = "Proposer's balance is too low."] + InsufficientProposersBalance, #[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>, - }, + #[doc = "No proposal or bounty at that index."] + InvalidIndex, + #[codec(index = 2)] + #[doc = "The reason given is just too big."] + ReasonTooBig, + #[codec(index = 3)] + #[doc = "The bounty status is unexpected."] + UnexpectedStatus, + #[codec(index = 4)] + #[doc = "Require bounty curator."] + RequireCurator, + #[codec(index = 5)] + #[doc = "Invalid bounty value."] + InvalidValue, + #[codec(index = 6)] + #[doc = "Invalid bounty fee."] + InvalidFee, + #[codec(index = 7)] + #[doc = "A bounty payout is pending."] + #[doc = "To cancel the bounty, you must unassign and slash the curator."] + PendingPayout, + #[codec(index = 8)] + #[doc = "The bounties cannot be claimed/closed because it's still in the countdown period."] + Premature, + #[codec(index = 9)] + #[doc = "The bounty cannot be closed because it has active child bounties."] + HasActiveChildBounty, + #[codec(index = 10)] + #[doc = "Too many approvals are already queued."] + TooManyQueued, } - } - pub mod vote_threshold { - use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -40027,17 +40433,107 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum VoteThreshold { + #[doc = "The `Event` enum of this pallet"] + pub enum Event { #[codec(index = 0)] - SuperMajorityApprove, + #[doc = "New bounty proposal."] + BountyProposed { index: ::core::primitive::u32 }, #[codec(index = 1)] - SuperMajorityAgainst, + #[doc = "A bounty proposal was rejected; funds were slashed."] + BountyRejected { + index: ::core::primitive::u32, + bond: ::core::primitive::u128, + }, #[codec(index = 2)] - SimpleMajority, + #[doc = "A bounty proposal is funded and became active."] + BountyBecameActive { index: ::core::primitive::u32 }, + #[codec(index = 3)] + #[doc = "A bounty is awarded to a beneficiary."] + BountyAwarded { + index: ::core::primitive::u32, + beneficiary: ::subxt::utils::AccountId32, + }, + #[codec(index = 4)] + #[doc = "A bounty is claimed by beneficiary."] + BountyClaimed { + index: ::core::primitive::u32, + payout: ::core::primitive::u128, + beneficiary: ::subxt::utils::AccountId32, + }, + #[codec(index = 5)] + #[doc = "A bounty is cancelled."] + BountyCanceled { index: ::core::primitive::u32 }, + #[codec(index = 6)] + #[doc = "A bounty expiry is extended."] + BountyExtended { index: ::core::primitive::u32 }, + #[codec(index = 7)] + #[doc = "A bounty is approved."] + BountyApproved { index: ::core::primitive::u32 }, + #[codec(index = 8)] + #[doc = "A bounty curator is proposed."] + CuratorProposed { + bounty_id: ::core::primitive::u32, + curator: ::subxt::utils::AccountId32, + }, + #[codec(index = 9)] + #[doc = "A bounty curator is unassigned."] + CuratorUnassigned { bounty_id: ::core::primitive::u32 }, + #[codec(index = 10)] + #[doc = "A bounty curator is accepted."] + CuratorAccepted { + bounty_id: ::core::primitive::u32, + curator: ::subxt::utils::AccountId32, + }, } } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + 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 :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + 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_election_provider_multi_phase { + pub mod pallet_child_bounties { use super::runtime_types; pub mod pallet { use super::runtime_types; @@ -40053,7 +40549,68 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { - # [codec (index = 0)] # [doc = "See [`Pallet::submit_unsigned`]."] submit_unsigned { raw_solution : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: polkadot_runtime :: NposCompactSolution16 > > , witness : runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize , } , # [codec (index = 1)] # [doc = "See [`Pallet::set_minimum_untrusted_score`]."] set_minimum_untrusted_score { maybe_next_score : :: core :: option :: Option < runtime_types :: sp_npos_elections :: ElectionScore > , } , # [codec (index = 2)] # [doc = "See [`Pallet::set_emergency_election_result`]."] set_emergency_election_result { supports : :: std :: vec :: Vec < (:: subxt :: utils :: AccountId32 , runtime_types :: sp_npos_elections :: Support < :: subxt :: utils :: AccountId32 > ,) > , } , # [codec (index = 3)] # [doc = "See [`Pallet::submit`]."] submit { raw_solution : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: polkadot_runtime :: NposCompactSolution16 > > , } , # [codec (index = 4)] # [doc = "See [`Pallet::governance_fallback`]."] governance_fallback { maybe_max_voters : :: core :: option :: Option < :: core :: primitive :: u32 > , maybe_max_targets : :: core :: option :: Option < :: core :: primitive :: u32 > , } , } + #[codec(index = 0)] + #[doc = "See [`Pallet::add_child_bounty`]."] + 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)] + #[doc = "See [`Pallet::propose_curator`]."] + propose_curator { + #[codec(compact)] + parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + child_bounty_id: ::core::primitive::u32, + curator: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + #[codec(compact)] + fee: ::core::primitive::u128, + }, + #[codec(index = 2)] + #[doc = "See [`Pallet::accept_curator`]."] + accept_curator { + #[codec(compact)] + parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + child_bounty_id: ::core::primitive::u32, + }, + #[codec(index = 3)] + #[doc = "See [`Pallet::unassign_curator`]."] + unassign_curator { + #[codec(compact)] + parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + child_bounty_id: ::core::primitive::u32, + }, + #[codec(index = 4)] + #[doc = "See [`Pallet::award_child_bounty`]."] + award_child_bounty { + #[codec(compact)] + parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + child_bounty_id: ::core::primitive::u32, + beneficiary: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + }, + #[codec(index = 5)] + #[doc = "See [`Pallet::claim_child_bounty`]."] + claim_child_bounty { + #[codec(compact)] + parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + child_bounty_id: ::core::primitive::u32, + }, + #[codec(index = 6)] + #[doc = "See [`Pallet::close_child_bounty`]."] + close_child_bounty { + #[codec(compact)] + parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + child_bounty_id: ::core::primitive::u32, + }, + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -40064,50 +40621,17 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Error of the pallet that can be returned in response to dispatches."] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] - #[doc = "Submission was too early."] - PreDispatchEarlySubmission, + #[doc = "The parent bounty is not in active state."] + ParentBountyNotActive, #[codec(index = 1)] - #[doc = "Wrong number of winners presented."] - PreDispatchWrongWinnerCount, + #[doc = "The bounty balance is not enough to add new child-bounty."] + InsufficientBountyBalance, #[codec(index = 2)] - #[doc = "Submission was too weak, score-wise."] - PreDispatchWeakSubmission, - #[codec(index = 3)] - #[doc = "The queue was full, and the solution was not better than any of the existing ones."] - SignedQueueFull, - #[codec(index = 4)] - #[doc = "The origin failed to pay the deposit."] - SignedCannotPayDeposit, - #[codec(index = 5)] - #[doc = "Witness data to dispatchable is invalid."] - SignedInvalidWitness, - #[codec(index = 6)] - #[doc = "The signed submission consumes too much weight"] - SignedTooMuchWeight, - #[codec(index = 7)] - #[doc = "OCW submitted solution for wrong round"] - OcwCallWrongEra, - #[codec(index = 8)] - #[doc = "Snapshot metadata should exist but didn't."] - MissingSnapshotMetadata, - #[codec(index = 9)] - #[doc = "`Self::insert_submission` returned an invalid index."] - InvalidSubmissionIndex, - #[codec(index = 10)] - #[doc = "The call is not allowed at this point."] - CallNotAllowed, - #[codec(index = 11)] - #[doc = "The fallback failed"] - FallbackFailed, - #[codec(index = 12)] - #[doc = "Some bound not met"] - BoundNotMet, - #[codec(index = 13)] - #[doc = "Submitted solution has too many winners"] - TooManyWinners, + #[doc = "Number of child bounties exceeds limit `MaxActiveChildBountyCount`."] + TooManyChildBounties, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -40122,76 +40646,34 @@ pub mod api { #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] - #[doc = "A solution was stored with the given compute."] - #[doc = ""] - #[doc = "The `origin` indicates the origin of the solution. If `origin` is `Some(AccountId)`,"] - #[doc = "the stored solution was submited in the signed phase by a miner with the `AccountId`."] - #[doc = "Otherwise, the solution was stored either during the unsigned phase or by"] - #[doc = "`T::ForceOrigin`. The `bool` is `true` when a previous solution was ejected to make"] - #[doc = "room for this one."] - SolutionStored { - compute: - runtime_types::pallet_election_provider_multi_phase::ElectionCompute, - origin: ::core::option::Option<::subxt::utils::AccountId32>, - prev_ejected: ::core::primitive::bool, + #[doc = "A child-bounty is added."] + Added { + index: ::core::primitive::u32, + child_index: ::core::primitive::u32, }, #[codec(index = 1)] - #[doc = "The election has been finalized, with the given computation and score."] - ElectionFinalized { - compute: - runtime_types::pallet_election_provider_multi_phase::ElectionCompute, - score: runtime_types::sp_npos_elections::ElectionScore, + #[doc = "A child-bounty is awarded to a beneficiary."] + Awarded { + index: ::core::primitive::u32, + child_index: ::core::primitive::u32, + beneficiary: ::subxt::utils::AccountId32, }, #[codec(index = 2)] - #[doc = "An election failed."] - #[doc = ""] - #[doc = "Not much can be said about which computes failed in the process."] - ElectionFailed, - #[codec(index = 3)] - #[doc = "An account has been rewarded for their signed submission being finalized."] - Rewarded { - account: ::subxt::utils::AccountId32, - value: ::core::primitive::u128, - }, - #[codec(index = 4)] - #[doc = "An account has been slashed for submitting an invalid signed submission."] - Slashed { - account: ::subxt::utils::AccountId32, - value: ::core::primitive::u128, + #[doc = "A child-bounty is claimed by beneficiary."] + Claimed { + index: ::core::primitive::u32, + child_index: ::core::primitive::u32, + payout: ::core::primitive::u128, + beneficiary: ::subxt::utils::AccountId32, }, - #[codec(index = 5)] - #[doc = "There was a phase transition in a given round."] - PhaseTransitioned { - from: runtime_types::pallet_election_provider_multi_phase::Phase< - ::core::primitive::u32, - >, - to: runtime_types::pallet_election_provider_multi_phase::Phase< - ::core::primitive::u32, - >, - round: ::core::primitive::u32, + #[codec(index = 3)] + #[doc = "A child-bounty is cancelled."] + Canceled { + index: ::core::primitive::u32, + child_index: ::core::primitive::u32, }, } } - pub mod signed { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - 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 call_fee: _1, - } - } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -40202,17 +40684,12 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - 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 ChildBounty<_0, _1, _2> { + pub parent_bounty: ::core::primitive::u32, + pub value: _1, + pub fee: _1, + pub curator_deposit: _1, + pub status: runtime_types::pallet_child_bounties::ChildBountyStatus<_0, _2>, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -40224,82 +40701,52 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Phase<_0> { + pub enum ChildBountyStatus<_0, _1> { #[codec(index = 0)] - Off, + Added, #[codec(index = 1)] - Signed, + CuratorProposed { curator: _0 }, #[codec(index = 2)] - Unsigned((::core::primitive::bool, _0)), + Active { curator: _0 }, #[codec(index = 3)] - Emergency, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct RawSolution<_0> { - pub solution: _0, - pub score: runtime_types::sp_npos_elections::ElectionScore, - pub round: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ReadySolution { - pub supports: runtime_types::bounded_collections::bounded_vec::BoundedVec<( - ::subxt::utils::AccountId32, - runtime_types::sp_npos_elections::Support<::subxt::utils::AccountId32>, - )>, - pub score: runtime_types::sp_npos_elections::ElectionScore, - pub compute: runtime_types::pallet_election_provider_multi_phase::ElectionCompute, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct RoundSnapshot<_0, _1> { - pub voters: ::std::vec::Vec<_1>, - pub targets: ::std::vec::Vec<_0>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SolutionOrSnapshotSize { - #[codec(compact)] - pub voters: ::core::primitive::u32, - #[codec(compact)] - pub targets: ::core::primitive::u32, + PendingPayout { + curator: _0, + beneficiary: _0, + unlock_at: _1, + }, } } - pub mod pallet_elections_phragmen { + pub mod pallet_conviction_voting { use super::runtime_types; + pub mod conviction { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + 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 mod pallet { use super::runtime_types; #[derive( @@ -40317,36 +40764,41 @@ pub mod api { #[codec(index = 0)] #[doc = "See [`Pallet::vote`]."] vote { - votes: ::std::vec::Vec<::subxt::utils::AccountId32>, #[codec(compact)] - value: ::core::primitive::u128, + poll_index: ::core::primitive::u32, + vote: runtime_types::pallet_conviction_voting::vote::AccountVote< + ::core::primitive::u128, + >, }, #[codec(index = 1)] - #[doc = "See [`Pallet::remove_voter`]."] - remove_voter, - #[codec(index = 2)] - #[doc = "See [`Pallet::submit_candidacy`]."] - submit_candidacy { - #[codec(compact)] - candidate_count: ::core::primitive::u32, + #[doc = "See [`Pallet::delegate`]."] + delegate { + class: ::core::primitive::u16, + to: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + conviction: runtime_types::pallet_conviction_voting::conviction::Conviction, + balance: ::core::primitive::u128, }, + #[codec(index = 2)] + #[doc = "See [`Pallet::undelegate`]."] + undelegate { class: ::core::primitive::u16 }, #[codec(index = 3)] - #[doc = "See [`Pallet::renounce_candidacy`]."] - renounce_candidacy { - renouncing: runtime_types::pallet_elections_phragmen::Renouncing, + #[doc = "See [`Pallet::unlock`]."] + unlock { + class: ::core::primitive::u16, + target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, }, #[codec(index = 4)] - #[doc = "See [`Pallet::remove_member`]."] - remove_member { - who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - slash_bond: ::core::primitive::bool, - rerun_election: ::core::primitive::bool, + #[doc = "See [`Pallet::remove_vote`]."] + remove_vote { + class: ::core::option::Option<::core::primitive::u16>, + index: ::core::primitive::u32, }, #[codec(index = 5)] - #[doc = "See [`Pallet::clean_defunct_voters`]."] - clean_defunct_voters { - num_voters: ::core::primitive::u32, - num_defunct: ::core::primitive::u32, + #[doc = "See [`Pallet::remove_other_vote`]."] + remove_other_vote { + target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + class: ::core::primitive::u16, + index: ::core::primitive::u32, }, } #[derive( @@ -40362,56 +40814,42 @@ pub mod api { #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] - #[doc = "Cannot vote when no candidates or members exist."] - UnableToVote, + #[doc = "Poll is not ongoing."] + NotOngoing, #[codec(index = 1)] - #[doc = "Must vote for at least one candidate."] - NoVotes, + #[doc = "The given account did not vote on the poll."] + NotVoter, #[codec(index = 2)] - #[doc = "Cannot vote more than candidates."] - TooManyVotes, + #[doc = "The actor has no permission to conduct the action."] + NoPermission, #[codec(index = 3)] - #[doc = "Cannot vote more than maximum allowed."] - MaximumVotesExceeded, + #[doc = "The actor has no permission to conduct the action right now but will do in the future."] + NoPermissionYet, #[codec(index = 4)] - #[doc = "Cannot vote with stake less than minimum balance."] - LowBalance, + #[doc = "The account is already delegating."] + AlreadyDelegating, #[codec(index = 5)] - #[doc = "Voter can not pay voting bond."] - UnableToPayBond, + #[doc = "The account currently has votes attached to it and the operation cannot succeed until"] + #[doc = "these are removed, either through `unvote` or `reap_vote`."] + AlreadyVoting, #[codec(index = 6)] - #[doc = "Must be a voter."] - MustBeVoter, + #[doc = "Too high a balance was provided that the account cannot afford."] + InsufficientFunds, #[codec(index = 7)] - #[doc = "Duplicated candidate submission."] - DuplicatedCandidate, + #[doc = "The account is not currently delegating."] + NotDelegating, #[codec(index = 8)] - #[doc = "Too many candidates have been created."] - TooManyCandidates, + #[doc = "Delegation to oneself makes no sense."] + Nonsense, #[codec(index = 9)] - #[doc = "Member cannot re-submit candidacy."] - MemberSubmit, + #[doc = "Maximum number of votes reached."] + MaxVotesReached, #[codec(index = 10)] - #[doc = "Runner cannot re-submit candidacy."] - RunnerUpSubmit, + #[doc = "The class must be supplied since it is not easily determinable from the state."] + ClassNeeded, #[codec(index = 11)] - #[doc = "Candidate does not have enough funds."] - InsufficientCandidateFunds, - #[codec(index = 12)] - #[doc = "Not a member."] - NotMember, - #[codec(index = 13)] - #[doc = "The provided count of number of candidates is incorrect."] - InvalidWitnessData, - #[codec(index = 14)] - #[doc = "The provided count of number of votes is incorrect."] - InvalidVoteCount, - #[codec(index = 15)] - #[doc = "The renouncing origin presented a wrong `Renouncing` parameter."] - InvalidRenouncing, - #[codec(index = 16)] - #[doc = "Prediction regarding replacement after member removal is wrong."] - InvalidReplacement, + #[doc = "The class ID supplied is invalid."] + BadClass, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -40426,100 +40864,14 @@ pub mod api { #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] - #[doc = "A new term with new_members. This indicates that enough candidates existed to run"] - #[doc = "the election, not that enough have has been elected. The inner value must be examined"] - #[doc = "for this purpose. A `NewTerm(\\[\\])` indicates that some candidates got their bond"] - #[doc = "slashed and none were elected, whilst `EmptyTerm` means that no candidates existed to"] - #[doc = "begin with."] - NewTerm { - new_members: - ::std::vec::Vec<(::subxt::utils::AccountId32, ::core::primitive::u128)>, - }, + #[doc = "An account has delegated their vote to another account. \\[who, target\\]"] + Delegated(::subxt::utils::AccountId32, ::subxt::utils::AccountId32), #[codec(index = 1)] - #[doc = "No (or not enough) candidates existed for this round. This is different from"] - #[doc = "`NewTerm(\\[\\])`. See the description of `NewTerm`."] - EmptyTerm, - #[codec(index = 2)] - #[doc = "Internal error happened while trying to perform election."] - ElectionError, - #[codec(index = 3)] - #[doc = "A member has been removed. This should always be followed by either `NewTerm` or"] - #[doc = "`EmptyTerm`."] - MemberKicked { member: ::subxt::utils::AccountId32 }, - #[codec(index = 4)] - #[doc = "Someone has renounced their candidacy."] - Renounced { - candidate: ::subxt::utils::AccountId32, - }, - #[codec(index = 5)] - #[doc = "A candidate was slashed by amount due to failing to obtain a seat as member or"] - #[doc = "runner-up."] - #[doc = ""] - #[doc = "Note that old members and runners-up are also candidates."] - CandidateSlashed { - candidate: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 6)] - #[doc = "A seat holder was slashed by amount by being forcefully removed from the set."] - SeatHolderSlashed { - seat_holder: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, + #[doc = "An \\[account\\] has cancelled a previous delegation operation."] + Undelegated(::subxt::utils::AccountId32), } } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Renouncing { - #[codec(index = 0)] - Member, - #[codec(index = 1)] - RunnerUp, - #[codec(index = 2)] - Candidate(#[codec(compact)] ::core::primitive::u32), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SeatHolder<_0, _1> { - pub who: _0, - pub stake: _1, - pub deposit: _1, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Voter<_0, _1> { - pub votes: ::std::vec::Vec<_0>, - pub stake: _1, - pub deposit: _1, - } - } - pub mod pallet_fast_unstake { - use super::runtime_types; - pub mod pallet { + pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, @@ -40531,19 +40883,9 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub enum Call { - #[codec(index = 0)] - #[doc = "See [`Pallet::register_fast_unstake`]."] - register_fast_unstake, - #[codec(index = 1)] - #[doc = "See [`Pallet::deregister`]."] - deregister, - #[codec(index = 2)] - #[doc = "See [`Pallet::control`]."] - control { - eras_to_check: ::core::primitive::u32, - }, + pub struct Delegations<_0> { + pub votes: _0, + pub capital: _0, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -40555,29 +40897,14 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] - pub enum Error { - #[codec(index = 0)] - #[doc = "The provided Controller account was not found."] - #[doc = ""] - #[doc = "This means that the given account is not bonded."] - NotController, - #[codec(index = 1)] - #[doc = "The bonded account has already been queued."] - AlreadyQueued, - #[codec(index = 2)] - #[doc = "The bonded account has active unlocking chunks."] - NotFullyBonded, - #[codec(index = 3)] - #[doc = "The provided un-staker is not in the `Queue`."] - NotQueued, - #[codec(index = 4)] - #[doc = "The provided un-staker is already in Head, and cannot deregister."] - AlreadyHead, - #[codec(index = 5)] - #[doc = "The call is not allowed at this point because the pallet is not active."] - CallNotAllowed, + pub struct Tally<_0> { + pub ayes: _0, + pub nays: _0, + pub support: _0, } + } + pub mod vote { + use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -40588,39 +40915,17 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] - pub enum Event { + pub enum AccountVote<_0> { #[codec(index = 0)] - #[doc = "A staker was unstaked."] - Unstaked { - stash: ::subxt::utils::AccountId32, - result: - ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + Standard { + vote: runtime_types::pallet_conviction_voting::vote::Vote, + balance: _0, }, #[codec(index = 1)] - #[doc = "A staker was slashed for requesting fast-unstake whilst being exposed."] - Slashed { - stash: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, + Split { aye: _0, nay: _0 }, #[codec(index = 2)] - #[doc = "A batch was partially checked for the given eras, but the process did not finish."] - BatchChecked { - eras: ::std::vec::Vec<::core::primitive::u32>, - }, - #[codec(index = 3)] - #[doc = "A batch of a given size was terminated."] - #[doc = ""] - #[doc = "This is always follows by a number of `Unstaked` or `Slashed` events, marking the end"] - #[doc = "of the batch. A new batch will be created upon next block."] - BatchFinished { size: ::core::primitive::u32 }, - #[codec(index = 4)] - #[doc = "An internal error happened. Operations will be paused now."] - InternalError, + SplitAbstain { aye: _0, nay: _0, abstain: _0 }, } - } - pub mod types { - use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -40631,14 +40936,76 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct UnstakeRequest { - pub stashes: runtime_types::bounded_collections::bounded_vec::BoundedVec<( - ::subxt::utils::AccountId32, - ::core::primitive::u128, + pub struct Casting<_0, _1, _2> { + pub votes: runtime_types::bounded_collections::bounded_vec::BoundedVec<( + _1, + runtime_types::pallet_conviction_voting::vote::AccountVote<_0>, )>, - pub checked: runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u32, - >, + pub delegations: + runtime_types::pallet_conviction_voting::types::Delegations<_0>, + pub prior: runtime_types::pallet_conviction_voting::vote::PriorLock<_1, _0>, + #[codec(skip)] + pub __subxt_unused_type_params: ::core::marker::PhantomData<_2>, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Delegating<_0, _1, _2> { + pub balance: _0, + pub target: _1, + pub conviction: runtime_types::pallet_conviction_voting::conviction::Conviction, + pub delegations: + runtime_types::pallet_conviction_voting::types::Delegations<_0>, + pub prior: runtime_types::pallet_conviction_voting::vote::PriorLock<_2, _0>, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct PriorLock<_0, _1>(pub _0, pub _1); + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Vote(pub ::core::primitive::u8); + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Voting<_0, _1, _2, _3> { + #[codec(index = 0)] + Casting(runtime_types::pallet_conviction_voting::vote::Casting<_0, _2, _2>), + #[codec(index = 1)] + Delegating( + runtime_types::pallet_conviction_voting::vote::Delegating<_0, _1, _2>, + ), + __Ignore(::core::marker::PhantomData<_3>), } } } @@ -40791,9 +41158,36 @@ pub mod api { #[codec(index = 3)] PendingResume { scheduled_at: _0, delay: _0 }, } - } - pub mod pallet_identity { - use super::runtime_types; + } + pub mod pallet_identity { + use super::runtime_types; + pub mod legacy { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct IdentityInfo { + pub additional: runtime_types::bounded_collections::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 mod pallet { use super::runtime_types; #[derive( @@ -40817,7 +41211,7 @@ pub mod api { #[doc = "See [`Pallet::set_identity`]."] set_identity { info: - ::std::boxed::Box, + ::std::boxed::Box, }, #[codec(index = 2)] #[doc = "See [`Pallet::set_subs`]."] @@ -40861,9 +41255,7 @@ pub mod api { set_fields { #[codec(compact)] index: ::core::primitive::u32, - fields: runtime_types::pallet_identity::types::BitFlags< - runtime_types::pallet_identity::types::IdentityField, - >, + fields: ::core::primitive::u64, }, #[codec(index = 9)] #[doc = "See [`Pallet::provide_judgement`]."] @@ -40948,24 +41340,21 @@ pub mod api { #[doc = "The target is invalid."] InvalidTarget, #[codec(index = 11)] - #[doc = "Too many additional fields."] - TooManyFields, - #[codec(index = 12)] #[doc = "Maximum amount of registrars reached. Cannot add any more."] TooManyRegistrars, - #[codec(index = 13)] + #[codec(index = 12)] #[doc = "Account ID is already named."] AlreadyClaimed, - #[codec(index = 14)] + #[codec(index = 13)] #[doc = "Sender is not a sub-account."] NotSub, - #[codec(index = 15)] + #[codec(index = 14)] #[doc = "Sub-account isn't owned by sender."] NotOwned, - #[codec(index = 16)] + #[codec(index = 15)] #[doc = "The provided judgement was for a different identity."] JudgementForDifferentIdentity, - #[codec(index = 17)] + #[codec(index = 16)] #[doc = "Error that occurs when there is an issue paying for judgement."] JudgementPaymentFailed, } @@ -41045,21 +41434,6 @@ pub mod api { } pub mod types { use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct BitFlags<_0>( - pub ::core::primitive::u64, - #[codec(skip)] pub ::core::marker::PhantomData<_0>, - ); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -41158,58 +41532,6 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - 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, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct IdentityInfo { - pub additional: runtime_types::bounded_collections::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, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Judgement<_0> { #[codec(index = 0)] Unknown, @@ -41236,12 +41558,10 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct RegistrarInfo<_0, _1> { + pub struct RegistrarInfo<_0, _1, _2> { pub account: _1, pub fee: _0, - pub fields: runtime_types::pallet_identity::types::BitFlags< - runtime_types::pallet_identity::types::IdentityField, - >, + pub fields: _2, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -41253,13 +41573,13 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Registration<_0> { + pub struct Registration<_0, _2> { pub judgements: runtime_types::bounded_collections::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 info: _2, } } } @@ -41329,13 +41649,7 @@ pub mod api { #[codec(index = 2)] #[doc = "At the end of the session, at least one validator was found to be offline."] SomeOffline { - offline: ::std::vec::Vec<( - ::subxt::utils::AccountId32, - runtime_types::pallet_staking::Exposure< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, - )>, + offline: ::std::vec::Vec<(::subxt::utils::AccountId32, ())>, }, } } @@ -41481,112 +41795,6 @@ pub mod api { } } } - pub mod pallet_membership { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub enum Call { - #[codec(index = 0)] - #[doc = "See [`Pallet::add_member`]."] - add_member { - who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - }, - #[codec(index = 1)] - #[doc = "See [`Pallet::remove_member`]."] - remove_member { - who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - }, - #[codec(index = 2)] - #[doc = "See [`Pallet::swap_member`]."] - swap_member { - remove: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - add: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - }, - #[codec(index = 3)] - #[doc = "See [`Pallet::reset_members`]."] - reset_members { - members: ::std::vec::Vec<::subxt::utils::AccountId32>, - }, - #[codec(index = 4)] - #[doc = "See [`Pallet::change_key`]."] - change_key { - new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - }, - #[codec(index = 5)] - #[doc = "See [`Pallet::set_prime`]."] - set_prime { - who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - }, - #[codec(index = 6)] - #[doc = "See [`Pallet::clear_prime`]."] - clear_prime, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] - pub enum Error { - #[codec(index = 0)] - #[doc = "Already a member."] - AlreadyMember, - #[codec(index = 1)] - #[doc = "Not a member."] - NotMember, - #[codec(index = 2)] - #[doc = "Too many members."] - TooManyMembers, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] - pub enum Event { - #[codec(index = 0)] - #[doc = "The given member was added; see the transaction for who."] - MemberAdded, - #[codec(index = 1)] - #[doc = "The given member was removed; see the transaction for who."] - MemberRemoved, - #[codec(index = 2)] - #[doc = "Two members were swapped; see the transaction for who."] - MembersSwapped, - #[codec(index = 3)] - #[doc = "The membership was reset; see the transaction for who the new set is."] - MembersReset, - #[codec(index = 4)] - #[doc = "One of the members' keys changed."] - KeyChanged, - #[codec(index = 5)] - #[doc = "Phantom member, never used."] - Dummy, - } - } - } pub mod pallet_message_queue { use super::runtime_types; pub mod pallet { @@ -41735,7 +41943,7 @@ pub mod api { #[doc = "See [`Pallet::as_multi_threshold_1`]."] as_multi_threshold_1 { other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, - call: ::std::boxed::Box, + call: ::std::boxed::Box, }, #[codec(index = 1)] #[doc = "See [`Pallet::as_multi`]."] @@ -41745,7 +41953,7 @@ pub mod api { maybe_timepoint: ::core::option::Option< runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, >, - call: ::std::boxed::Box, + call: ::std::boxed::Box, max_weight: runtime_types::sp_weights::weight_v2::Weight, }, #[codec(index = 2)] @@ -41905,7 +42113,7 @@ pub mod api { pub index: ::core::primitive::u32, } } - pub mod pallet_nomination_pools { + pub mod pallet_nis { use super::runtime_types; pub mod pallet { use super::runtime_types; @@ -41919,297 +42127,9 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub enum Call { - #[codec(index = 0)] - #[doc = "See [`Pallet::join`]."] - join { - #[codec(compact)] - amount: ::core::primitive::u128, - pool_id: ::core::primitive::u32, - }, - #[codec(index = 1)] - #[doc = "See [`Pallet::bond_extra`]."] - bond_extra { - extra: runtime_types::pallet_nomination_pools::BondExtra< - ::core::primitive::u128, - >, - }, - #[codec(index = 2)] - #[doc = "See [`Pallet::claim_payout`]."] - claim_payout, - #[codec(index = 3)] - #[doc = "See [`Pallet::unbond`]."] - unbond { - member_account: - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - #[codec(compact)] - unbonding_points: ::core::primitive::u128, - }, - #[codec(index = 4)] - #[doc = "See [`Pallet::pool_withdraw_unbonded`]."] - pool_withdraw_unbonded { - pool_id: ::core::primitive::u32, - num_slashing_spans: ::core::primitive::u32, - }, - #[codec(index = 5)] - #[doc = "See [`Pallet::withdraw_unbonded`]."] - withdraw_unbonded { - member_account: - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - num_slashing_spans: ::core::primitive::u32, - }, - #[codec(index = 6)] - #[doc = "See [`Pallet::create`]."] - create { - #[codec(compact)] - amount: ::core::primitive::u128, - root: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - nominator: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - bouncer: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - }, - #[codec(index = 7)] - #[doc = "See [`Pallet::create_with_pool_id`]."] - create_with_pool_id { - #[codec(compact)] - amount: ::core::primitive::u128, - root: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - nominator: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - bouncer: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pool_id: ::core::primitive::u32, - }, - #[codec(index = 8)] - #[doc = "See [`Pallet::nominate`]."] - nominate { - pool_id: ::core::primitive::u32, - validators: ::std::vec::Vec<::subxt::utils::AccountId32>, - }, - #[codec(index = 9)] - #[doc = "See [`Pallet::set_state`]."] - set_state { - pool_id: ::core::primitive::u32, - state: runtime_types::pallet_nomination_pools::PoolState, - }, - #[codec(index = 10)] - #[doc = "See [`Pallet::set_metadata`]."] - set_metadata { - pool_id: ::core::primitive::u32, - metadata: ::std::vec::Vec<::core::primitive::u8>, - }, - #[codec(index = 11)] - #[doc = "See [`Pallet::set_configs`]."] - set_configs { - min_join_bond: runtime_types::pallet_nomination_pools::ConfigOp< - ::core::primitive::u128, - >, - min_create_bond: runtime_types::pallet_nomination_pools::ConfigOp< - ::core::primitive::u128, - >, - max_pools: runtime_types::pallet_nomination_pools::ConfigOp< - ::core::primitive::u32, - >, - max_members: runtime_types::pallet_nomination_pools::ConfigOp< - ::core::primitive::u32, - >, - max_members_per_pool: runtime_types::pallet_nomination_pools::ConfigOp< - ::core::primitive::u32, - >, - global_max_commission: runtime_types::pallet_nomination_pools::ConfigOp< - runtime_types::sp_arithmetic::per_things::Perbill, - >, - }, - #[codec(index = 12)] - #[doc = "See [`Pallet::update_roles`]."] - update_roles { - pool_id: ::core::primitive::u32, - new_root: runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::utils::AccountId32, - >, - new_nominator: runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::utils::AccountId32, - >, - new_bouncer: runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::utils::AccountId32, - >, - }, - #[codec(index = 13)] - #[doc = "See [`Pallet::chill`]."] - chill { pool_id: ::core::primitive::u32 }, - #[codec(index = 14)] - #[doc = "See [`Pallet::bond_extra_other`]."] - bond_extra_other { - member: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - extra: runtime_types::pallet_nomination_pools::BondExtra< - ::core::primitive::u128, - >, - }, - #[codec(index = 15)] - #[doc = "See [`Pallet::set_claim_permission`]."] - set_claim_permission { - permission: runtime_types::pallet_nomination_pools::ClaimPermission, - }, - #[codec(index = 16)] - #[doc = "See [`Pallet::claim_payout_other`]."] - claim_payout_other { other: ::subxt::utils::AccountId32 }, - #[codec(index = 17)] - #[doc = "See [`Pallet::set_commission`]."] - set_commission { - pool_id: ::core::primitive::u32, - new_commission: ::core::option::Option<( - runtime_types::sp_arithmetic::per_things::Perbill, - ::subxt::utils::AccountId32, - )>, - }, - #[codec(index = 18)] - #[doc = "See [`Pallet::set_commission_max`]."] - set_commission_max { - pool_id: ::core::primitive::u32, - max_commission: runtime_types::sp_arithmetic::per_things::Perbill, - }, - #[codec(index = 19)] - #[doc = "See [`Pallet::set_commission_change_rate`]."] - set_commission_change_rate { - pool_id: ::core::primitive::u32, - change_rate: runtime_types::pallet_nomination_pools::CommissionChangeRate< - ::core::primitive::u32, - >, - }, - #[codec(index = 20)] - #[doc = "See [`Pallet::claim_commission`]."] - claim_commission { pool_id: ::core::primitive::u32 }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum DefensiveError { - #[codec(index = 0)] - NotEnoughSpaceInUnbondPool, - #[codec(index = 1)] - PoolNotFound, - #[codec(index = 2)] - RewardPoolNotFound, - #[codec(index = 3)] - SubPoolsNotFound, - #[codec(index = 4)] - BondedStashKilledPrematurely, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] - pub enum Error { - #[codec(index = 0)] - #[doc = "A (bonded) pool id does not exist."] - PoolNotFound, - #[codec(index = 1)] - #[doc = "An account is not a member."] - PoolMemberNotFound, - #[codec(index = 2)] - #[doc = "A reward pool does not exist. In all cases this is a system logic error."] - RewardPoolNotFound, - #[codec(index = 3)] - #[doc = "A sub pool does not exist."] - SubPoolsNotFound, - #[codec(index = 4)] - #[doc = "An account is already delegating in another pool. An account may only belong to one"] - #[doc = "pool at a time."] - AccountBelongsToOtherPool, - #[codec(index = 5)] - #[doc = "The member is fully unbonded (and thus cannot access the bonded and reward pool"] - #[doc = "anymore to, for example, collect rewards)."] - FullyUnbonding, - #[codec(index = 6)] - #[doc = "The member cannot unbond further chunks due to reaching the limit."] - MaxUnbondingLimit, - #[codec(index = 7)] - #[doc = "None of the funds can be withdrawn yet because the bonding duration has not passed."] - CannotWithdrawAny, - #[codec(index = 8)] - #[doc = "The amount does not meet the minimum bond to either join or create a pool."] - #[doc = ""] - #[doc = "The depositor can never unbond to a value less than"] - #[doc = "`Pallet::depositor_min_bond`. The caller does not have nominating"] - #[doc = "permissions for the pool. Members can never unbond to a value below `MinJoinBond`."] - MinimumBondNotMet, - #[codec(index = 9)] - #[doc = "The transaction could not be executed due to overflow risk for the pool."] - OverflowRisk, - #[codec(index = 10)] - #[doc = "A pool must be in [`PoolState::Destroying`] in order for the depositor to unbond or for"] - #[doc = "other members to be permissionlessly unbonded."] - NotDestroying, - #[codec(index = 11)] - #[doc = "The caller does not have nominating permissions for the pool."] - NotNominator, - #[codec(index = 12)] - #[doc = "Either a) the caller cannot make a valid kick or b) the pool is not destroying."] - NotKickerOrDestroying, - #[codec(index = 13)] - #[doc = "The pool is not open to join"] - NotOpen, - #[codec(index = 14)] - #[doc = "The system is maxed out on pools."] - MaxPools, - #[codec(index = 15)] - #[doc = "Too many members in the pool or system."] - MaxPoolMembers, - #[codec(index = 16)] - #[doc = "The pools state cannot be changed."] - CanNotChangeState, - #[codec(index = 17)] - #[doc = "The caller does not have adequate permissions."] - DoesNotHavePermission, - #[codec(index = 18)] - #[doc = "Metadata exceeds [`Config::MaxMetadataLen`]"] - MetadataExceedsMaxLen, - #[codec(index = 19)] - #[doc = "Some error occurred that should never happen. This should be reported to the"] - #[doc = "maintainers."] - Defensive(runtime_types::pallet_nomination_pools::pallet::DefensiveError), - #[codec(index = 20)] - #[doc = "Partial unbonding now allowed permissionlessly."] - PartialUnbondNotAllowedPermissionlessly, - #[codec(index = 21)] - #[doc = "The pool's max commission cannot be set higher than the existing value."] - MaxCommissionRestricted, - #[codec(index = 22)] - #[doc = "The supplied commission exceeds the max allowed commission."] - CommissionExceedsMaximum, - #[codec(index = 23)] - #[doc = "Not enough blocks have surpassed since the last commission update."] - CommissionChangeThrottled, - #[codec(index = 24)] - #[doc = "The submitted changes to commission change rate are not allowed."] - CommissionChangeRateNotAllowed, - #[codec(index = 25)] - #[doc = "There is no pending commission to claim."] - NoPendingCommission, - #[codec(index = 26)] - #[doc = "No commission current has been set."] - NoCommissionCurrentSet, - #[codec(index = 27)] - #[doc = "Pool id currently in use."] - PoolIdInUse, - #[codec(index = 28)] - #[doc = "Pool id provided is not correct/usable."] - InvalidPoolId, - #[codec(index = 29)] - #[doc = "Bonding extra is restricted to the exact pending reward amount."] - BondExtraRestricted, + pub struct Bid<_0, _1> { + pub amount: _0, + pub who: _1, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -42221,343 +42141,220 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Events of this pallet."] - pub enum Event { - #[codec(index = 0)] - #[doc = "A pool has been created."] - Created { - depositor: ::subxt::utils::AccountId32, - pool_id: ::core::primitive::u32, - }, - #[codec(index = 1)] - #[doc = "A member has became bonded in a pool."] - Bonded { - member: ::subxt::utils::AccountId32, - pool_id: ::core::primitive::u32, - bonded: ::core::primitive::u128, - joined: ::core::primitive::bool, - }, - #[codec(index = 2)] - #[doc = "A payout has been made to a member."] - PaidOut { - member: ::subxt::utils::AccountId32, - pool_id: ::core::primitive::u32, - payout: ::core::primitive::u128, - }, - #[codec(index = 3)] - #[doc = "A member has unbonded from their pool."] - #[doc = ""] - #[doc = "- `balance` is the corresponding balance of the number of points that has been"] - #[doc = " requested to be unbonded (the argument of the `unbond` transaction) from the bonded"] - #[doc = " pool."] - #[doc = "- `points` is the number of points that are issued as a result of `balance` being"] - #[doc = "dissolved into the corresponding unbonding pool."] - #[doc = "- `era` is the era in which the balance will be unbonded."] - #[doc = "In the absence of slashing, these values will match. In the presence of slashing, the"] - #[doc = "number of points that are issued in the unbonding pool will be less than the amount"] - #[doc = "requested to be unbonded."] - Unbonded { - member: ::subxt::utils::AccountId32, - pool_id: ::core::primitive::u32, - balance: ::core::primitive::u128, - points: ::core::primitive::u128, - era: ::core::primitive::u32, - }, - #[codec(index = 4)] - #[doc = "A member has withdrawn from their pool."] - #[doc = ""] - #[doc = "The given number of `points` have been dissolved in return of `balance`."] - #[doc = ""] - #[doc = "Similar to `Unbonded` event, in the absence of slashing, the ratio of point to balance"] - #[doc = "will be 1."] - Withdrawn { - member: ::subxt::utils::AccountId32, - pool_id: ::core::primitive::u32, - balance: ::core::primitive::u128, - points: ::core::primitive::u128, - }, - #[codec(index = 5)] - #[doc = "A pool has been destroyed."] - Destroyed { pool_id: ::core::primitive::u32 }, - #[codec(index = 6)] - #[doc = "The state of a pool has changed"] - StateChanged { - pool_id: ::core::primitive::u32, - new_state: runtime_types::pallet_nomination_pools::PoolState, - }, - #[codec(index = 7)] - #[doc = "A member has been removed from a pool."] - #[doc = ""] - #[doc = "The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked)."] - MemberRemoved { - pool_id: ::core::primitive::u32, - member: ::subxt::utils::AccountId32, - }, - #[codec(index = 8)] - #[doc = "The roles of a pool have been updated to the given new roles. Note that the depositor"] - #[doc = "can never change."] - RolesUpdated { - root: ::core::option::Option<::subxt::utils::AccountId32>, - bouncer: ::core::option::Option<::subxt::utils::AccountId32>, - nominator: ::core::option::Option<::subxt::utils::AccountId32>, - }, - #[codec(index = 9)] - #[doc = "The active balance of pool `pool_id` has been slashed to `balance`."] - PoolSlashed { - pool_id: ::core::primitive::u32, - balance: ::core::primitive::u128, - }, - #[codec(index = 10)] - #[doc = "The unbond pool at `era` of pool `pool_id` has been slashed to `balance`."] - UnbondingPoolSlashed { - pool_id: ::core::primitive::u32, - era: ::core::primitive::u32, - balance: ::core::primitive::u128, - }, - #[codec(index = 11)] - #[doc = "A pool's commission setting has been changed."] - PoolCommissionUpdated { - pool_id: ::core::primitive::u32, - current: ::core::option::Option<( - runtime_types::sp_arithmetic::per_things::Perbill, - ::subxt::utils::AccountId32, - )>, - }, - #[codec(index = 12)] - #[doc = "A pool's maximum commission setting has been changed."] - PoolMaxCommissionUpdated { - pool_id: ::core::primitive::u32, - max_commission: runtime_types::sp_arithmetic::per_things::Perbill, - }, - #[codec(index = 13)] - #[doc = "A pool's commission `change_rate` has been changed."] - PoolCommissionChangeRateUpdated { - pool_id: ::core::primitive::u32, - change_rate: runtime_types::pallet_nomination_pools::CommissionChangeRate< - ::core::primitive::u32, - >, - }, - #[codec(index = 14)] - #[doc = "Pool commission has been claimed."] - PoolCommissionClaimed { - pool_id: ::core::primitive::u32, - commission: ::core::primitive::u128, - }, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum BondExtra<_0> { - #[codec(index = 0)] - FreeBalance(_0), - #[codec(index = 1)] - Rewards, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct BondedPoolInner { - pub commission: runtime_types::pallet_nomination_pools::Commission, - pub member_counter: ::core::primitive::u32, - pub points: ::core::primitive::u128, - pub roles: - runtime_types::pallet_nomination_pools::PoolRoles<::subxt::utils::AccountId32>, - pub state: runtime_types::pallet_nomination_pools::PoolState, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum ClaimPermission { - #[codec(index = 0)] - Permissioned, - #[codec(index = 1)] - PermissionlessCompound, - #[codec(index = 2)] - PermissionlessWithdraw, - #[codec(index = 3)] - PermissionlessAll, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Commission { - pub current: ::core::option::Option<( - runtime_types::sp_arithmetic::per_things::Perbill, - ::subxt::utils::AccountId32, - )>, - pub max: ::core::option::Option, - pub change_rate: ::core::option::Option< - runtime_types::pallet_nomination_pools::CommissionChangeRate< - ::core::primitive::u32, - >, - >, - pub throttle_from: ::core::option::Option<::core::primitive::u32>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct CommissionChangeRate<_0> { - pub max_increase: runtime_types::sp_arithmetic::per_things::Perbill, - pub min_delay: _0, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum ConfigOp<_0> { - #[codec(index = 0)] - Noop, - #[codec(index = 1)] - Set(_0), - #[codec(index = 2)] - Remove, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct PoolMember { - pub pool_id: ::core::primitive::u32, - pub points: ::core::primitive::u128, - pub last_recorded_reward_counter: - runtime_types::sp_arithmetic::fixed_point::FixedU128, - pub unbonding_eras: - runtime_types::bounded_collections::bounded_btree_map::BoundedBTreeMap< - ::core::primitive::u32, - ::core::primitive::u128, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct PoolRoles<_0> { - pub depositor: _0, - pub root: ::core::option::Option<_0>, - pub nominator: ::core::option::Option<_0>, - pub bouncer: ::core::option::Option<_0>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum PoolState { - #[codec(index = 0)] - Open, - #[codec(index = 1)] - Blocked, - #[codec(index = 2)] - Destroying, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct RewardPool { - pub last_recorded_reward_counter: - runtime_types::sp_arithmetic::fixed_point::FixedU128, - pub last_recorded_total_payouts: ::core::primitive::u128, - pub total_rewards_claimed: ::core::primitive::u128, - pub total_commission_pending: ::core::primitive::u128, - pub total_commission_claimed: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SubPools { - pub no_era: runtime_types::pallet_nomination_pools::UnbondPool, - pub with_era: - runtime_types::bounded_collections::bounded_btree_map::BoundedBTreeMap< - ::core::primitive::u32, - runtime_types::pallet_nomination_pools::UnbondPool, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct UnbondPool { - pub points: ::core::primitive::u128, - pub balance: ::core::primitive::u128, + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call { + #[codec(index = 0)] + #[doc = "See [`Pallet::place_bid`]."] + place_bid { + #[codec(compact)] + amount: ::core::primitive::u128, + duration: ::core::primitive::u32, + }, + #[codec(index = 1)] + #[doc = "See [`Pallet::retract_bid`]."] + retract_bid { + #[codec(compact)] + amount: ::core::primitive::u128, + duration: ::core::primitive::u32, + }, + #[codec(index = 2)] + #[doc = "See [`Pallet::fund_deficit`]."] + fund_deficit, + #[codec(index = 3)] + #[doc = "See [`Pallet::thaw_private`]."] + thaw_private { + #[codec(compact)] + index: ::core::primitive::u32, + maybe_proportion: ::core::option::Option< + runtime_types::sp_arithmetic::per_things::Perquintill, + >, + }, + #[codec(index = 4)] + #[doc = "See [`Pallet::thaw_communal`]."] + thaw_communal { + #[codec(compact)] + index: ::core::primitive::u32, + }, + #[codec(index = 5)] + #[doc = "See [`Pallet::communify`]."] + communify { + #[codec(compact)] + index: ::core::primitive::u32, + }, + #[codec(index = 6)] + #[doc = "See [`Pallet::privatize`]."] + privatize { + #[codec(compact)] + index: ::core::primitive::u32, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Error` enum of this pallet."] + pub enum Error { + #[codec(index = 0)] + #[doc = "The duration of the bid is less than one."] + DurationTooSmall, + #[codec(index = 1)] + #[doc = "The duration is the bid is greater than the number of queues."] + DurationTooBig, + #[codec(index = 2)] + #[doc = "The amount of the bid is less than the minimum allowed."] + AmountTooSmall, + #[codec(index = 3)] + #[doc = "The queue for the bid's duration is full and the amount bid is too low to get in"] + #[doc = "through replacing an existing bid."] + BidTooLow, + #[codec(index = 4)] + #[doc = "Receipt index is unknown."] + UnknownReceipt, + #[codec(index = 5)] + #[doc = "Not the owner of the receipt."] + NotOwner, + #[codec(index = 6)] + #[doc = "Bond not yet at expiry date."] + NotExpired, + #[codec(index = 7)] + #[doc = "The given bid for retraction is not found."] + UnknownBid, + #[codec(index = 8)] + #[doc = "The portion supplied is beyond the value of the receipt."] + PortionTooBig, + #[codec(index = 9)] + #[doc = "Not enough funds are held to pay out."] + Unfunded, + #[codec(index = 10)] + #[doc = "There are enough funds for what is required."] + AlreadyFunded, + #[codec(index = 11)] + #[doc = "The thaw throttle has been reached for this period."] + Throttled, + #[codec(index = 12)] + #[doc = "The operation would result in a receipt worth an insignficant value."] + MakesDust, + #[codec(index = 13)] + #[doc = "The receipt is already communal."] + AlreadyCommunal, + #[codec(index = 14)] + #[doc = "The receipt is already private."] + AlreadyPrivate, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Event` enum of this pallet"] + pub enum Event { + #[codec(index = 0)] + #[doc = "A bid was successfully placed."] + BidPlaced { + who: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + duration: ::core::primitive::u32, + }, + #[codec(index = 1)] + #[doc = "A bid was successfully removed (before being accepted)."] + BidRetracted { + who: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + duration: ::core::primitive::u32, + }, + #[codec(index = 2)] + #[doc = "A bid was dropped from a queue because of another, more substantial, bid was present."] + BidDropped { + who: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + duration: ::core::primitive::u32, + }, + #[codec(index = 3)] + #[doc = "A bid was accepted. The balance may not be released until expiry."] + Issued { + index: ::core::primitive::u32, + expiry: ::core::primitive::u32, + who: ::subxt::utils::AccountId32, + proportion: runtime_types::sp_arithmetic::per_things::Perquintill, + amount: ::core::primitive::u128, + }, + #[codec(index = 4)] + #[doc = "An receipt has been (at least partially) thawed."] + Thawed { + index: ::core::primitive::u32, + who: ::subxt::utils::AccountId32, + proportion: runtime_types::sp_arithmetic::per_things::Perquintill, + amount: ::core::primitive::u128, + dropped: ::core::primitive::bool, + }, + #[codec(index = 5)] + #[doc = "An automatic funding of the deficit was made."] + Funded { deficit: ::core::primitive::u128 }, + #[codec(index = 6)] + #[doc = "A receipt was transfered."] + Transferred { + from: ::subxt::utils::AccountId32, + to: ::subxt::utils::AccountId32, + index: ::core::primitive::u32, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum HoldReason { + #[codec(index = 0)] + NftReceipt, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ReceiptRecord<_0, _1, _2> { + pub proportion: runtime_types::sp_arithmetic::per_things::Perquintill, + pub owner: ::core::option::Option<(_0, _2)>, + pub expiry: _1, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SummaryRecord<_0, _1> { + pub proportion_owed: runtime_types::sp_arithmetic::per_things::Perquintill, + pub index: ::core::primitive::u32, + pub thawed: runtime_types::sp_arithmetic::per_things::Perquintill, + pub last_period: _0, + pub receipts_on_hold: _1, + } } } pub mod pallet_offences { @@ -42617,6 +42414,11 @@ pub mod api { #[codec(index = 3)] #[doc = "See [`Pallet::unrequest_preimage`]."] unrequest_preimage { hash: ::subxt::utils::H256 }, + #[codec(index = 4)] + #[doc = "See [`Pallet::ensure_updated`]."] + ensure_updated { + hashes: ::std::vec::Vec<::subxt::utils::H256>, + }, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -42648,6 +42450,12 @@ pub mod api { #[codec(index = 5)] #[doc = "The preimage request cannot be removed since no outstanding requests exist."] NotRequested, + #[codec(index = 6)] + #[doc = "More than `MAX_HASH_UPGRADE_BULK_COUNT` hashes were requested to be upgraded at once."] + TooMany, + #[codec(index = 7)] + #[doc = "Too few hashes were requested to be upgraded (i.e. zero)."] + TooFew, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -42671,6 +42479,20 @@ pub mod api { #[doc = "A preimage has ben cleared."] Cleared { hash: ::subxt::utils::H256 }, } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum HoldReason { + #[codec(index = 0)] + Preimage, + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -42682,7 +42504,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum RequestStatus<_0, _1> { + pub enum OldRequestStatus<_0, _1> { #[codec(index = 0)] Unrequested { deposit: (_0, _1), @@ -42695,6 +42517,29 @@ pub mod api { len: ::core::option::Option<::core::primitive::u32>, }, } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum RequestStatus<_0, _1> { + #[codec(index = 0)] + Unrequested { + ticket: (_0, _1), + len: ::core::primitive::u32, + }, + #[codec(index = 1)] + Requested { + maybe_ticket: ::core::option::Option<(_0, _1)>, + count: ::core::primitive::u32, + maybe_len: ::core::option::Option<::core::primitive::u32>, + }, + } } pub mod pallet_proxy { use super::runtime_types; @@ -42717,21 +42562,21 @@ pub mod api { proxy { real: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, force_proxy_type: - ::core::option::Option, - call: ::std::boxed::Box, + ::core::option::Option, + call: ::std::boxed::Box, }, #[codec(index = 1)] #[doc = "See [`Pallet::add_proxy`]."] add_proxy { delegate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - proxy_type: runtime_types::polkadot_runtime::ProxyType, + proxy_type: runtime_types::rococo_runtime::ProxyType, delay: ::core::primitive::u32, }, #[codec(index = 2)] #[doc = "See [`Pallet::remove_proxy`]."] remove_proxy { delegate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - proxy_type: runtime_types::polkadot_runtime::ProxyType, + proxy_type: runtime_types::rococo_runtime::ProxyType, delay: ::core::primitive::u32, }, #[codec(index = 3)] @@ -42740,7 +42585,7 @@ pub mod api { #[codec(index = 4)] #[doc = "See [`Pallet::create_pure`]."] create_pure { - proxy_type: runtime_types::polkadot_runtime::ProxyType, + proxy_type: runtime_types::rococo_runtime::ProxyType, delay: ::core::primitive::u32, index: ::core::primitive::u16, }, @@ -42748,7 +42593,7 @@ pub mod api { #[doc = "See [`Pallet::kill_pure`]."] kill_pure { spawner: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - proxy_type: runtime_types::polkadot_runtime::ProxyType, + proxy_type: runtime_types::rococo_runtime::ProxyType, index: ::core::primitive::u16, #[codec(compact)] height: ::core::primitive::u32, @@ -42779,8 +42624,8 @@ pub mod api { delegate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, real: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, force_proxy_type: - ::core::option::Option, - call: ::std::boxed::Box, + ::core::option::Option, + call: ::std::boxed::Box, }, } #[derive( @@ -42844,7 +42689,7 @@ pub mod api { PureCreated { pure: ::subxt::utils::AccountId32, who: ::subxt::utils::AccountId32, - proxy_type: runtime_types::polkadot_runtime::ProxyType, + proxy_type: runtime_types::rococo_runtime::ProxyType, disambiguation_index: ::core::primitive::u16, }, #[codec(index = 2)] @@ -42859,7 +42704,7 @@ pub mod api { ProxyAdded { delegator: ::subxt::utils::AccountId32, delegatee: ::subxt::utils::AccountId32, - proxy_type: runtime_types::polkadot_runtime::ProxyType, + proxy_type: runtime_types::rococo_runtime::ProxyType, delay: ::core::primitive::u32, }, #[codec(index = 4)] @@ -42867,7 +42712,7 @@ pub mod api { ProxyRemoved { delegator: ::subxt::utils::AccountId32, delegatee: ::subxt::utils::AccountId32, - proxy_type: runtime_types::polkadot_runtime::ProxyType, + proxy_type: runtime_types::rococo_runtime::ProxyType, delay: ::core::primitive::u32, }, } @@ -42903,6 +42748,387 @@ pub mod api { pub delay: _2, } } + pub mod pallet_ranked_collective { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call { + #[codec(index = 0)] + #[doc = "See [`Pallet::add_member`]."] + add_member { + who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + }, + #[codec(index = 1)] + #[doc = "See [`Pallet::promote_member`]."] + promote_member { + who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + }, + #[codec(index = 2)] + #[doc = "See [`Pallet::demote_member`]."] + demote_member { + who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + }, + #[codec(index = 3)] + #[doc = "See [`Pallet::remove_member`]."] + remove_member { + who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + min_rank: ::core::primitive::u16, + }, + #[codec(index = 4)] + #[doc = "See [`Pallet::vote`]."] + vote { + poll: ::core::primitive::u32, + aye: ::core::primitive::bool, + }, + #[codec(index = 5)] + #[doc = "See [`Pallet::cleanup_poll`]."] + cleanup_poll { + poll_index: ::core::primitive::u32, + max: ::core::primitive::u32, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Error` enum of this pallet."] + pub enum Error { + #[codec(index = 0)] + #[doc = "Account is already a member."] + AlreadyMember, + #[codec(index = 1)] + #[doc = "Account is not a member."] + NotMember, + #[codec(index = 2)] + #[doc = "The given poll index is unknown or has closed."] + NotPolling, + #[codec(index = 3)] + #[doc = "The given poll is still ongoing."] + Ongoing, + #[codec(index = 4)] + #[doc = "There are no further records to be removed."] + NoneRemaining, + #[codec(index = 5)] + #[doc = "Unexpected error in state."] + Corruption, + #[codec(index = 6)] + #[doc = "The member's rank is too low to vote."] + RankTooLow, + #[codec(index = 7)] + #[doc = "The information provided is incorrect."] + InvalidWitness, + #[codec(index = 8)] + #[doc = "The origin is not sufficiently privileged to do the operation."] + NoPermission, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Event` enum of this pallet"] + pub enum Event { + #[codec(index = 0)] + #[doc = "A member `who` has been added."] + MemberAdded { who: ::subxt::utils::AccountId32 }, + #[codec(index = 1)] + #[doc = "The member `who`se rank has been changed to the given `rank`."] + RankChanged { + who: ::subxt::utils::AccountId32, + rank: ::core::primitive::u16, + }, + #[codec(index = 2)] + #[doc = "The member `who` of given `rank` has been removed from the collective."] + MemberRemoved { + who: ::subxt::utils::AccountId32, + rank: ::core::primitive::u16, + }, + #[codec(index = 3)] + #[doc = "The member `who` has voted for the `poll` with the given `vote` leading to an updated"] + #[doc = "`tally`."] + Voted { + who: ::subxt::utils::AccountId32, + poll: ::core::primitive::u32, + vote: runtime_types::pallet_ranked_collective::VoteRecord, + tally: runtime_types::pallet_ranked_collective::Tally, + }, + } + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct MemberRecord { + pub rank: ::core::primitive::u16, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Tally { + pub bare_ayes: ::core::primitive::u32, + pub ayes: ::core::primitive::u32, + pub nays: ::core::primitive::u32, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum VoteRecord { + #[codec(index = 0)] + Aye(::core::primitive::u32), + #[codec(index = 1)] + Nay(::core::primitive::u32), + } + } + pub mod pallet_recovery { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call { + #[codec(index = 0)] + #[doc = "See [`Pallet::as_recovered`]."] + as_recovered { + account: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + call: ::std::boxed::Box, + }, + #[codec(index = 1)] + #[doc = "See [`Pallet::set_recovered`]."] + set_recovered { + lost: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + rescuer: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + }, + #[codec(index = 2)] + #[doc = "See [`Pallet::create_recovery`]."] + create_recovery { + friends: ::std::vec::Vec<::subxt::utils::AccountId32>, + threshold: ::core::primitive::u16, + delay_period: ::core::primitive::u32, + }, + #[codec(index = 3)] + #[doc = "See [`Pallet::initiate_recovery`]."] + initiate_recovery { + account: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + }, + #[codec(index = 4)] + #[doc = "See [`Pallet::vouch_recovery`]."] + vouch_recovery { + lost: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + rescuer: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + }, + #[codec(index = 5)] + #[doc = "See [`Pallet::claim_recovery`]."] + claim_recovery { + account: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + }, + #[codec(index = 6)] + #[doc = "See [`Pallet::close_recovery`]."] + close_recovery { + rescuer: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + }, + #[codec(index = 7)] + #[doc = "See [`Pallet::remove_recovery`]."] + remove_recovery, + #[codec(index = 8)] + #[doc = "See [`Pallet::cancel_recovered`]."] + cancel_recovered { + account: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Error` enum of this pallet."] + pub enum Error { + #[codec(index = 0)] + #[doc = "User is not allowed to make a call on behalf of this account"] + NotAllowed, + #[codec(index = 1)] + #[doc = "Threshold must be greater than zero"] + ZeroThreshold, + #[codec(index = 2)] + #[doc = "Friends list must be greater than zero and threshold"] + NotEnoughFriends, + #[codec(index = 3)] + #[doc = "Friends list must be less than max friends"] + MaxFriends, + #[codec(index = 4)] + #[doc = "Friends list must be sorted and free of duplicates"] + NotSorted, + #[codec(index = 5)] + #[doc = "This account is not set up for recovery"] + NotRecoverable, + #[codec(index = 6)] + #[doc = "This account is already set up for recovery"] + AlreadyRecoverable, + #[codec(index = 7)] + #[doc = "A recovery process has already started for this account"] + AlreadyStarted, + #[codec(index = 8)] + #[doc = "A recovery process has not started for this rescuer"] + NotStarted, + #[codec(index = 9)] + #[doc = "This account is not a friend who can vouch"] + NotFriend, + #[codec(index = 10)] + #[doc = "The friend must wait until the delay period to vouch for this recovery"] + DelayPeriod, + #[codec(index = 11)] + #[doc = "This user has already vouched for this recovery"] + AlreadyVouched, + #[codec(index = 12)] + #[doc = "The threshold for recovering this account has not been met"] + Threshold, + #[codec(index = 13)] + #[doc = "There are still active recovery attempts that need to be closed"] + StillActive, + #[codec(index = 14)] + #[doc = "This account is already set up for recovery"] + AlreadyProxy, + #[codec(index = 15)] + #[doc = "Some internal state is broken."] + BadState, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Events type."] + pub enum Event { + #[codec(index = 0)] + #[doc = "A recovery process has been set up for an account."] + RecoveryCreated { + account: ::subxt::utils::AccountId32, + }, + #[codec(index = 1)] + #[doc = "A recovery process has been initiated for lost account by rescuer account."] + RecoveryInitiated { + lost_account: ::subxt::utils::AccountId32, + rescuer_account: ::subxt::utils::AccountId32, + }, + #[codec(index = 2)] + #[doc = "A recovery process for lost account by rescuer account has been vouched for by sender."] + RecoveryVouched { + lost_account: ::subxt::utils::AccountId32, + rescuer_account: ::subxt::utils::AccountId32, + sender: ::subxt::utils::AccountId32, + }, + #[codec(index = 3)] + #[doc = "A recovery process for lost account by rescuer account has been closed."] + RecoveryClosed { + lost_account: ::subxt::utils::AccountId32, + rescuer_account: ::subxt::utils::AccountId32, + }, + #[codec(index = 4)] + #[doc = "Lost account has been successfully recovered by rescuer account."] + AccountRecovered { + lost_account: ::subxt::utils::AccountId32, + rescuer_account: ::subxt::utils::AccountId32, + }, + #[codec(index = 5)] + #[doc = "A recovery process has been removed for an account."] + RecoveryRemoved { + lost_account: ::subxt::utils::AccountId32, + }, + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ActiveRecovery<_0, _1, _2> { + pub created: _0, + pub deposit: _1, + pub friends: _2, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct RecoveryConfig<_0, _1, _2> { + pub delay_period: _0, + pub deposit: _1, + pub friends: _2, + pub threshold: ::core::primitive::u16, + } + } pub mod pallet_referenda { use super::runtime_types; pub mod pallet { @@ -42923,9 +43149,64 @@ pub mod api { #[doc = "See [`Pallet::submit`]."] submit { proposal_origin: - ::std::boxed::Box, + ::std::boxed::Box, + proposal: runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::rococo_runtime::RuntimeCall, + runtime_types::sp_runtime::traits::BlakeTwo256, + >, + enactment_moment: + runtime_types::frame_support::traits::schedule::DispatchTime< + ::core::primitive::u32, + >, + }, + #[codec(index = 1)] + #[doc = "See [`Pallet::place_decision_deposit`]."] + place_decision_deposit { index: ::core::primitive::u32 }, + #[codec(index = 2)] + #[doc = "See [`Pallet::refund_decision_deposit`]."] + refund_decision_deposit { index: ::core::primitive::u32 }, + #[codec(index = 3)] + #[doc = "See [`Pallet::cancel`]."] + cancel { index: ::core::primitive::u32 }, + #[codec(index = 4)] + #[doc = "See [`Pallet::kill`]."] + kill { index: ::core::primitive::u32 }, + #[codec(index = 5)] + #[doc = "See [`Pallet::nudge_referendum`]."] + nudge_referendum { index: ::core::primitive::u32 }, + #[codec(index = 6)] + #[doc = "See [`Pallet::one_fewer_deciding`]."] + one_fewer_deciding { track: ::core::primitive::u16 }, + #[codec(index = 7)] + #[doc = "See [`Pallet::refund_submission_deposit`]."] + refund_submission_deposit { index: ::core::primitive::u32 }, + #[codec(index = 8)] + #[doc = "See [`Pallet::set_metadata`]."] + set_metadata { + index: ::core::primitive::u32, + maybe_hash: ::core::option::Option<::subxt::utils::H256>, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call2 { + #[codec(index = 0)] + #[doc = "See [`Pallet::submit`]."] + submit { + proposal_origin: + ::std::boxed::Box, proposal: runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::polkadot_runtime::RuntimeCall, + runtime_types::rococo_runtime::RuntimeCall, + runtime_types::sp_runtime::traits::BlakeTwo256, >, enactment_moment: runtime_types::frame_support::traits::schedule::DispatchTime< @@ -42939,26 +43220,78 @@ pub mod api { #[doc = "See [`Pallet::refund_decision_deposit`]."] refund_decision_deposit { index: ::core::primitive::u32 }, #[codec(index = 3)] - #[doc = "See [`Pallet::cancel`]."] - cancel { index: ::core::primitive::u32 }, + #[doc = "See [`Pallet::cancel`]."] + cancel { index: ::core::primitive::u32 }, + #[codec(index = 4)] + #[doc = "See [`Pallet::kill`]."] + kill { index: ::core::primitive::u32 }, + #[codec(index = 5)] + #[doc = "See [`Pallet::nudge_referendum`]."] + nudge_referendum { index: ::core::primitive::u32 }, + #[codec(index = 6)] + #[doc = "See [`Pallet::one_fewer_deciding`]."] + one_fewer_deciding { track: ::core::primitive::u16 }, + #[codec(index = 7)] + #[doc = "See [`Pallet::refund_submission_deposit`]."] + refund_submission_deposit { index: ::core::primitive::u32 }, + #[codec(index = 8)] + #[doc = "See [`Pallet::set_metadata`]."] + set_metadata { + index: ::core::primitive::u32, + maybe_hash: ::core::option::Option<::subxt::utils::H256>, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Error` enum of this pallet."] + pub enum Error { + #[codec(index = 0)] + #[doc = "Referendum is not ongoing."] + NotOngoing, + #[codec(index = 1)] + #[doc = "Referendum's decision deposit is already paid."] + HasDeposit, + #[codec(index = 2)] + #[doc = "The track identifier given was invalid."] + BadTrack, + #[codec(index = 3)] + #[doc = "There are already a full complement of referenda in progress for this track."] + Full, #[codec(index = 4)] - #[doc = "See [`Pallet::kill`]."] - kill { index: ::core::primitive::u32 }, + #[doc = "The queue of the track is empty."] + QueueEmpty, #[codec(index = 5)] - #[doc = "See [`Pallet::nudge_referendum`]."] - nudge_referendum { index: ::core::primitive::u32 }, + #[doc = "The referendum index provided is invalid in this context."] + BadReferendum, #[codec(index = 6)] - #[doc = "See [`Pallet::one_fewer_deciding`]."] - one_fewer_deciding { track: ::core::primitive::u16 }, + #[doc = "There was nothing to do in the advancement."] + NothingToDo, #[codec(index = 7)] - #[doc = "See [`Pallet::refund_submission_deposit`]."] - refund_submission_deposit { index: ::core::primitive::u32 }, + #[doc = "No track exists for the proposal origin."] + NoTrack, #[codec(index = 8)] - #[doc = "See [`Pallet::set_metadata`]."] - set_metadata { - index: ::core::primitive::u32, - maybe_hash: ::core::option::Option<::subxt::utils::H256>, - }, + #[doc = "Any deposit cannot be refunded until after the decision is over."] + Unfinished, + #[codec(index = 9)] + #[doc = "The deposit refunder is not the depositor."] + NoPermission, + #[codec(index = 10)] + #[doc = "The deposit cannot be refunded since none was made."] + NoDeposit, + #[codec(index = 11)] + #[doc = "The referendum status is invalid for this operation."] + BadStatus, + #[codec(index = 12)] + #[doc = "The preimage does not exist."] + PreimageNotExist, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -42971,7 +43304,7 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The `Error` enum of this pallet."] - pub enum Error { + pub enum Error2 { #[codec(index = 0)] #[doc = "Referendum is not ongoing."] NotOngoing, @@ -43030,7 +43363,8 @@ pub mod api { index: ::core::primitive::u32, track: ::core::primitive::u16, proposal: runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::polkadot_runtime::RuntimeCall, + runtime_types::rococo_runtime::RuntimeCall, + runtime_types::sp_runtime::traits::BlakeTwo256, >, }, #[codec(index = 1)] @@ -43048,7 +43382,7 @@ pub mod api { amount: ::core::primitive::u128, }, #[codec(index = 3)] - #[doc = "A deposit has been slashaed."] + #[doc = "A deposit has been slashed."] DepositSlashed { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, @@ -43059,7 +43393,8 @@ pub mod api { index: ::core::primitive::u32, track: ::core::primitive::u16, proposal: runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::polkadot_runtime::RuntimeCall, + runtime_types::rococo_runtime::RuntimeCall, + runtime_types::sp_runtime::traits::BlakeTwo256, >, tally: runtime_types::pallet_conviction_voting::types::Tally< ::core::primitive::u128, @@ -43132,6 +43467,116 @@ pub mod api { hash: ::subxt::utils::H256, }, } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Event` enum of this pallet"] + pub enum Event2 { + #[codec(index = 0)] + #[doc = "A referendum has been submitted."] + Submitted { + index: ::core::primitive::u32, + track: ::core::primitive::u16, + proposal: runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::rococo_runtime::RuntimeCall, + runtime_types::sp_runtime::traits::BlakeTwo256, + >, + }, + #[codec(index = 1)] + #[doc = "The decision deposit has been placed."] + DecisionDepositPlaced { + index: ::core::primitive::u32, + who: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 2)] + #[doc = "The decision deposit has been refunded."] + DecisionDepositRefunded { + index: ::core::primitive::u32, + who: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 3)] + #[doc = "A deposit has been slashed."] + DepositSlashed { + who: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 4)] + #[doc = "A referendum has moved into the deciding phase."] + DecisionStarted { + index: ::core::primitive::u32, + track: ::core::primitive::u16, + proposal: runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::rococo_runtime::RuntimeCall, + runtime_types::sp_runtime::traits::BlakeTwo256, + >, + tally: runtime_types::pallet_ranked_collective::Tally, + }, + #[codec(index = 5)] + ConfirmStarted { index: ::core::primitive::u32 }, + #[codec(index = 6)] + ConfirmAborted { index: ::core::primitive::u32 }, + #[codec(index = 7)] + #[doc = "A referendum has ended its confirmation phase and is ready for approval."] + Confirmed { + index: ::core::primitive::u32, + tally: runtime_types::pallet_ranked_collective::Tally, + }, + #[codec(index = 8)] + #[doc = "A referendum has been approved and its proposal has been scheduled."] + Approved { index: ::core::primitive::u32 }, + #[codec(index = 9)] + #[doc = "A proposal has been rejected by referendum."] + Rejected { + index: ::core::primitive::u32, + tally: runtime_types::pallet_ranked_collective::Tally, + }, + #[codec(index = 10)] + #[doc = "A referendum has been timed out without being decided."] + TimedOut { + index: ::core::primitive::u32, + tally: runtime_types::pallet_ranked_collective::Tally, + }, + #[codec(index = 11)] + #[doc = "A referendum has been cancelled."] + Cancelled { + index: ::core::primitive::u32, + tally: runtime_types::pallet_ranked_collective::Tally, + }, + #[codec(index = 12)] + #[doc = "A referendum has been killed."] + Killed { + index: ::core::primitive::u32, + tally: runtime_types::pallet_ranked_collective::Tally, + }, + #[codec(index = 13)] + #[doc = "The submission deposit has been refunded."] + SubmissionDepositRefunded { + index: ::core::primitive::u32, + who: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 14)] + #[doc = "Metadata for a referendum has been set."] + MetadataSet { + index: ::core::primitive::u32, + hash: ::subxt::utils::H256, + }, + #[codec(index = 15)] + #[doc = "Metadata for a referendum has been cleared."] + MetadataCleared { + index: ::core::primitive::u32, + hash: ::subxt::utils::H256, + }, + } } pub mod types { use super::runtime_types; @@ -43311,6 +43756,49 @@ pub mod api { } } } + pub mod pallet_root_testing { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call { + #[codec(index = 0)] + #[doc = "See `Pallet::fill_block`."] + fill_block { + ratio: runtime_types::sp_arithmetic::per_things::Perbill, + }, + #[codec(index = 1)] + #[doc = "See `Pallet::trigger_defensive`."] + trigger_defensive, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Event` enum of this pallet"] + pub enum Event { + #[codec(index = 0)] + #[doc = "Event dispatched when the trigger_defensive extrinsic is called."] + DefensiveTestCall, + } + } + } pub mod pallet_scheduler { use super::runtime_types; pub mod pallet { @@ -43336,7 +43824,7 @@ pub mod api { ::core::primitive::u32, )>, priority: ::core::primitive::u8, - call: ::std::boxed::Box, + call: ::std::boxed::Box, }, #[codec(index = 1)] #[doc = "See [`Pallet::cancel`]."] @@ -43354,7 +43842,7 @@ pub mod api { ::core::primitive::u32, )>, priority: ::core::primitive::u8, - call: ::std::boxed::Box, + call: ::std::boxed::Box, }, #[codec(index = 3)] #[doc = "See [`Pallet::cancel_named`]."] @@ -43370,7 +43858,7 @@ pub mod api { ::core::primitive::u32, )>, priority: ::core::primitive::u8, - call: ::std::boxed::Box, + call: ::std::boxed::Box, }, #[codec(index = 5)] #[doc = "See [`Pallet::schedule_named_after`]."] @@ -43382,7 +43870,7 @@ pub mod api { ::core::primitive::u32, )>, priority: ::core::primitive::u8, - call: ::std::boxed::Box, + call: ::std::boxed::Box, }, } #[derive( @@ -43415,545 +43903,154 @@ pub mod api { } #[derive( :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Events type."] - pub enum Event { - #[codec(index = 0)] - #[doc = "Scheduled some task."] - Scheduled { - when: ::core::primitive::u32, - index: ::core::primitive::u32, - }, - #[codec(index = 1)] - #[doc = "Canceled some task."] - Canceled { - when: ::core::primitive::u32, - index: ::core::primitive::u32, - }, - #[codec(index = 2)] - #[doc = "Dispatched some task."] - Dispatched { - task: (::core::primitive::u32, ::core::primitive::u32), - id: ::core::option::Option<[::core::primitive::u8; 32usize]>, - result: - ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, - }, - #[codec(index = 3)] - #[doc = "The call for the provided hash was not found so the task has been aborted."] - CallUnavailable { - task: (::core::primitive::u32, ::core::primitive::u32), - id: ::core::option::Option<[::core::primitive::u8; 32usize]>, - }, - #[codec(index = 4)] - #[doc = "The given task was unable to be renewed since the agenda is full at that block."] - PeriodicFailed { - task: (::core::primitive::u32, ::core::primitive::u32), - id: ::core::option::Option<[::core::primitive::u8; 32usize]>, - }, - #[codec(index = 5)] - #[doc = "The given task can never be executed since it is overweight."] - PermanentlyOverweight { - task: (::core::primitive::u32, ::core::primitive::u32), - id: ::core::option::Option<[::core::primitive::u8; 32usize]>, - }, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Scheduled<_0, _1, _2, _3, _4> { - pub maybe_id: ::core::option::Option<_0>, - pub priority: ::core::primitive::u8, - pub call: _1, - pub maybe_periodic: ::core::option::Option<(_2, _2)>, - pub origin: _3, - #[codec(skip)] - pub __subxt_unused_type_params: ::core::marker::PhantomData<_4>, - } - } - pub mod pallet_session { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub enum Call { - #[codec(index = 0)] - #[doc = "See [`Pallet::set_keys`]."] - set_keys { - keys: runtime_types::polkadot_runtime::SessionKeys, - proof: ::std::vec::Vec<::core::primitive::u8>, - }, - #[codec(index = 1)] - #[doc = "See [`Pallet::purge_keys`]."] - purge_keys, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Error for the session pallet."] - pub enum Error { - #[codec(index = 0)] - #[doc = "Invalid ownership proof."] - InvalidProof, - #[codec(index = 1)] - #[doc = "No associated validator ID for account."] - NoAssociatedValidatorId, - #[codec(index = 2)] - #[doc = "Registered duplicate key."] - DuplicatedKey, - #[codec(index = 3)] - #[doc = "No keys are associated with this account."] - NoKeys, - #[codec(index = 4)] - #[doc = "Key setting account is not live, so it's impossible to associate keys."] - NoAccount, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] - pub enum Event { - #[codec(index = 0)] - #[doc = "New session has happened. Note that the argument is the session index, not the"] - #[doc = "block number as the type might suggest."] - NewSession { - session_index: ::core::primitive::u32, - }, - } - } - } - pub mod pallet_staking { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub enum Call { - #[codec(index = 0)] - #[doc = "See [`Pallet::bond`]."] - bond { - #[codec(compact)] - value: ::core::primitive::u128, - payee: runtime_types::pallet_staking::RewardDestination< - ::subxt::utils::AccountId32, - >, - }, - #[codec(index = 1)] - #[doc = "See [`Pallet::bond_extra`]."] - bond_extra { - #[codec(compact)] - max_additional: ::core::primitive::u128, - }, - #[codec(index = 2)] - #[doc = "See [`Pallet::unbond`]."] - unbond { - #[codec(compact)] - value: ::core::primitive::u128, - }, - #[codec(index = 3)] - #[doc = "See [`Pallet::withdraw_unbonded`]."] - withdraw_unbonded { - num_slashing_spans: ::core::primitive::u32, - }, - #[codec(index = 4)] - #[doc = "See [`Pallet::validate`]."] - validate { - prefs: runtime_types::pallet_staking::ValidatorPrefs, - }, - #[codec(index = 5)] - #[doc = "See [`Pallet::nominate`]."] - nominate { - targets: ::std::vec::Vec< - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - >, - }, - #[codec(index = 6)] - #[doc = "See [`Pallet::chill`]."] - chill, - #[codec(index = 7)] - #[doc = "See [`Pallet::set_payee`]."] - set_payee { - payee: runtime_types::pallet_staking::RewardDestination< - ::subxt::utils::AccountId32, - >, - }, - #[codec(index = 8)] - #[doc = "See [`Pallet::set_controller`]."] - set_controller, - #[codec(index = 9)] - #[doc = "See [`Pallet::set_validator_count`]."] - set_validator_count { - #[codec(compact)] - new: ::core::primitive::u32, - }, - #[codec(index = 10)] - #[doc = "See [`Pallet::increase_validator_count`]."] - increase_validator_count { - #[codec(compact)] - additional: ::core::primitive::u32, - }, - #[codec(index = 11)] - #[doc = "See [`Pallet::scale_validator_count`]."] - scale_validator_count { - factor: runtime_types::sp_arithmetic::per_things::Percent, - }, - #[codec(index = 12)] - #[doc = "See [`Pallet::force_no_eras`]."] - force_no_eras, - #[codec(index = 13)] - #[doc = "See [`Pallet::force_new_era`]."] - force_new_era, - #[codec(index = 14)] - #[doc = "See [`Pallet::set_invulnerables`]."] - set_invulnerables { - invulnerables: ::std::vec::Vec<::subxt::utils::AccountId32>, - }, - #[codec(index = 15)] - #[doc = "See [`Pallet::force_unstake`]."] - force_unstake { - stash: ::subxt::utils::AccountId32, - num_slashing_spans: ::core::primitive::u32, - }, - #[codec(index = 16)] - #[doc = "See [`Pallet::force_new_era_always`]."] - force_new_era_always, - #[codec(index = 17)] - #[doc = "See [`Pallet::cancel_deferred_slash`]."] - cancel_deferred_slash { - era: ::core::primitive::u32, - slash_indices: ::std::vec::Vec<::core::primitive::u32>, - }, - #[codec(index = 18)] - #[doc = "See [`Pallet::payout_stakers`]."] - payout_stakers { - validator_stash: ::subxt::utils::AccountId32, - era: ::core::primitive::u32, - }, - #[codec(index = 19)] - #[doc = "See [`Pallet::rebond`]."] - rebond { - #[codec(compact)] - value: ::core::primitive::u128, - }, - #[codec(index = 20)] - #[doc = "See [`Pallet::reap_stash`]."] - reap_stash { - stash: ::subxt::utils::AccountId32, - num_slashing_spans: ::core::primitive::u32, - }, - #[codec(index = 21)] - #[doc = "See [`Pallet::kick`]."] - kick { - who: ::std::vec::Vec< - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - >, - }, - #[codec(index = 22)] - #[doc = "See [`Pallet::set_staking_configs`]."] - 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 = 23)] - #[doc = "See [`Pallet::chill_other`]."] - chill_other { - controller: ::subxt::utils::AccountId32, - }, - #[codec(index = 24)] - #[doc = "See [`Pallet::force_apply_min_commission`]."] - force_apply_min_commission { - validator_stash: ::subxt::utils::AccountId32, - }, - #[codec(index = 25)] - #[doc = "See [`Pallet::set_min_commission`]."] - set_min_commission { - new: runtime_types::sp_arithmetic::per_things::Perbill, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum ConfigOp<_0> { - #[codec(index = 0)] - Noop, - #[codec(index = 1)] - Set(_0), - #[codec(index = 2)] - Remove, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] - pub enum Error { - #[codec(index = 0)] - #[doc = "Not a controller account."] - NotController, - #[codec(index = 1)] - #[doc = "Not a stash account."] - NotStash, - #[codec(index = 2)] - #[doc = "Stash is already bonded."] - AlreadyBonded, - #[codec(index = 3)] - #[doc = "Controller is already paired."] - AlreadyPaired, - #[codec(index = 4)] - #[doc = "Targets cannot be empty."] - EmptyTargets, - #[codec(index = 5)] - #[doc = "Duplicate index."] - DuplicateIndex, - #[codec(index = 6)] - #[doc = "Slash record index out of bounds."] - InvalidSlashIndex, - #[codec(index = 7)] - #[doc = "Cannot have a validator or nominator role, with value less than the minimum defined by"] - #[doc = "governance (see `MinValidatorBond` and `MinNominatorBond`). If unbonding is the"] - #[doc = "intention, `chill` first to remove one's role as validator/nominator."] - InsufficientBond, - #[codec(index = 8)] - #[doc = "Can not schedule more unlock chunks."] - NoMoreChunks, - #[codec(index = 9)] - #[doc = "Can not rebond without unlocking chunks."] - NoUnlockChunk, - #[codec(index = 10)] - #[doc = "Attempting to target a stash that still has funds."] - FundedTarget, - #[codec(index = 11)] - #[doc = "Invalid era to reward."] - InvalidEraToReward, - #[codec(index = 12)] - #[doc = "Invalid number of nominations."] - InvalidNumberOfNominations, - #[codec(index = 13)] - #[doc = "Items are not sorted and unique."] - NotSortedAndUnique, - #[codec(index = 14)] - #[doc = "Rewards for this era have already been claimed for this validator."] - AlreadyClaimed, - #[codec(index = 15)] - #[doc = "Incorrect previous history depth input provided."] - IncorrectHistoryDepth, - #[codec(index = 16)] - #[doc = "Incorrect number of slashing spans provided."] - IncorrectSlashingSpans, - #[codec(index = 17)] - #[doc = "Internal state has become somehow corrupted and the operation cannot continue."] - BadState, - #[codec(index = 18)] - #[doc = "Too many nomination targets supplied."] - TooManyTargets, - #[codec(index = 19)] - #[doc = "A nomination target was supplied that was blocked or otherwise not a validator."] - BadTarget, - #[codec(index = 20)] - #[doc = "The user has enough bond and thus cannot be chilled forcefully by an external person."] - CannotChillOther, - #[codec(index = 21)] - #[doc = "There are too many nominators in the system. Governance needs to adjust the staking"] - #[doc = "settings to keep things safe for the runtime."] - TooManyNominators, - #[codec(index = 22)] - #[doc = "There are too many validator candidates in the system. Governance needs to adjust the"] - #[doc = "staking settings to keep things safe for the runtime."] - TooManyValidators, - #[codec(index = 23)] - #[doc = "Commission is too low. Must be at least `MinCommission`."] - CommissionTooLow, - #[codec(index = 24)] - #[doc = "Some bound is not met."] - BoundNotMet, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] - pub enum Event { - #[codec(index = 0)] - #[doc = "The era payout has been set; the first balance is the validator-payout; the second is"] - #[doc = "the remainder from the maximum amount of reward."] - EraPaid { - era_index: ::core::primitive::u32, - validator_payout: ::core::primitive::u128, - remainder: ::core::primitive::u128, - }, - #[codec(index = 1)] - #[doc = "The nominator has been rewarded by this amount."] - Rewarded { - stash: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 2)] - #[doc = "A staker (validator or nominator) has been slashed by the given amount."] - Slashed { - staker: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 3)] - #[doc = "A slash for the given validator, for the given percentage of their stake, at the given"] - #[doc = "era as been reported."] - SlashReported { - validator: ::subxt::utils::AccountId32, - fraction: runtime_types::sp_arithmetic::per_things::Perbill, - slash_era: ::core::primitive::u32, - }, - #[codec(index = 4)] - #[doc = "An old slashing report from a prior era was discarded because it could"] - #[doc = "not be processed."] - OldSlashingReportDiscarded { - session_index: ::core::primitive::u32, - }, - #[codec(index = 5)] - #[doc = "A new set of stakers was elected."] - StakersElected, - #[codec(index = 6)] - #[doc = "An account has bonded this amount. \\[stash, amount\\]"] - #[doc = ""] - #[doc = "NOTE: This event is only emitted when funds are bonded via a dispatchable. Notably,"] - #[doc = "it will not be emitted for staking rewards when they are added to stake."] - Bonded { - stash: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 7)] - #[doc = "An account has unbonded this amount."] - Unbonded { - stash: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 8)] - #[doc = "An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance`"] - #[doc = "from the unlocking queue."] - Withdrawn { - stash: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 9)] - #[doc = "A nominator has been kicked from a validator."] - Kicked { - nominator: ::subxt::utils::AccountId32, - stash: ::subxt::utils::AccountId32, - }, - #[codec(index = 10)] - #[doc = "The election failed. No new era is planned."] - StakingElectionFailed, - #[codec(index = 11)] - #[doc = "An account has stopped participating as either a validator or nominator."] - Chilled { stash: ::subxt::utils::AccountId32 }, - #[codec(index = 12)] - #[doc = "The stakers' rewards are getting paid."] - PayoutStarted { - era_index: ::core::primitive::u32, - validator_stash: ::subxt::utils::AccountId32, - }, - #[codec(index = 13)] - #[doc = "A validator has set their preferences."] - ValidatorPrefsSet { - stash: ::subxt::utils::AccountId32, - prefs: runtime_types::pallet_staking::ValidatorPrefs, - }, - #[codec(index = 14)] - #[doc = "A new force era mode was set."] - ForceEra { - mode: runtime_types::pallet_staking::Forcing, - }, - } + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Events type."] + pub enum Event { + #[codec(index = 0)] + #[doc = "Scheduled some task."] + Scheduled { + when: ::core::primitive::u32, + index: ::core::primitive::u32, + }, + #[codec(index = 1)] + #[doc = "Canceled some task."] + Canceled { + when: ::core::primitive::u32, + index: ::core::primitive::u32, + }, + #[codec(index = 2)] + #[doc = "Dispatched some task."] + Dispatched { + task: (::core::primitive::u32, ::core::primitive::u32), + id: ::core::option::Option<[::core::primitive::u8; 32usize]>, + result: + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + }, + #[codec(index = 3)] + #[doc = "The call for the provided hash was not found so the task has been aborted."] + CallUnavailable { + task: (::core::primitive::u32, ::core::primitive::u32), + id: ::core::option::Option<[::core::primitive::u8; 32usize]>, + }, + #[codec(index = 4)] + #[doc = "The given task was unable to be renewed since the agenda is full at that block."] + PeriodicFailed { + task: (::core::primitive::u32, ::core::primitive::u32), + id: ::core::option::Option<[::core::primitive::u8; 32usize]>, + }, + #[codec(index = 5)] + #[doc = "The given task can never be executed since it is overweight."] + PermanentlyOverweight { + task: (::core::primitive::u32, ::core::primitive::u32), + id: ::core::option::Option<[::core::primitive::u8; 32usize]>, + }, + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Scheduled<_0, _1, _2, _3, _4> { + pub maybe_id: ::core::option::Option<_0>, + pub priority: ::core::primitive::u8, + pub call: _1, + pub maybe_periodic: ::core::option::Option<(_2, _2)>, + pub origin: _3, + #[codec(skip)] + pub __subxt_unused_type_params: ::core::marker::PhantomData<_4>, + } + } + pub mod pallet_session { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call { + #[codec(index = 0)] + #[doc = "See [`Pallet::set_keys`]."] + set_keys { + keys: runtime_types::rococo_runtime::SessionKeys, + proof: ::std::vec::Vec<::core::primitive::u8>, + }, + #[codec(index = 1)] + #[doc = "See [`Pallet::purge_keys`]."] + purge_keys, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Error for the session pallet."] + pub enum Error { + #[codec(index = 0)] + #[doc = "Invalid ownership proof."] + InvalidProof, + #[codec(index = 1)] + #[doc = "No associated validator ID for account."] + NoAssociatedValidatorId, + #[codec(index = 2)] + #[doc = "Registered duplicate key."] + DuplicatedKey, + #[codec(index = 3)] + #[doc = "No keys are associated with this account."] + NoKeys, + #[codec(index = 4)] + #[doc = "Key setting account is not live, so it's impossible to associate keys."] + NoAccount, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Event` enum of this pallet"] + pub enum Event { + #[codec(index = 0)] + #[doc = "New session has happened. Note that the argument is the session index, not the"] + #[doc = "block number as the type might suggest."] + NewSession { + session_index: ::core::primitive::u32, + }, } } - pub mod slashing { + } + pub mod pallet_society { + use super::runtime_types; + pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, @@ -43965,11 +44062,211 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - 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>, + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call { + #[codec(index = 0)] + #[doc = "See [`Pallet::bid`]."] + bid { value: ::core::primitive::u128 }, + #[codec(index = 1)] + #[doc = "See [`Pallet::unbid`]."] + unbid, + #[codec(index = 2)] + #[doc = "See [`Pallet::vouch`]."] + vouch { + who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + value: ::core::primitive::u128, + tip: ::core::primitive::u128, + }, + #[codec(index = 3)] + #[doc = "See [`Pallet::unvouch`]."] + unvouch, + #[codec(index = 4)] + #[doc = "See [`Pallet::vote`]."] + vote { + candidate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + approve: ::core::primitive::bool, + }, + #[codec(index = 5)] + #[doc = "See [`Pallet::defender_vote`]."] + defender_vote { approve: ::core::primitive::bool }, + #[codec(index = 6)] + #[doc = "See [`Pallet::payout`]."] + payout, + #[codec(index = 7)] + #[doc = "See [`Pallet::waive_repay`]."] + waive_repay { amount: ::core::primitive::u128 }, + #[codec(index = 8)] + #[doc = "See [`Pallet::found_society`]."] + found_society { + founder: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + max_members: ::core::primitive::u32, + max_intake: ::core::primitive::u32, + max_strikes: ::core::primitive::u32, + candidate_deposit: ::core::primitive::u128, + rules: ::std::vec::Vec<::core::primitive::u8>, + }, + #[codec(index = 9)] + #[doc = "See [`Pallet::dissolve`]."] + dissolve, + #[codec(index = 10)] + #[doc = "See [`Pallet::judge_suspended_member`]."] + judge_suspended_member { + who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + forgive: ::core::primitive::bool, + }, + #[codec(index = 11)] + #[doc = "See [`Pallet::set_parameters`]."] + set_parameters { + max_members: ::core::primitive::u32, + max_intake: ::core::primitive::u32, + max_strikes: ::core::primitive::u32, + candidate_deposit: ::core::primitive::u128, + }, + #[codec(index = 12)] + #[doc = "See [`Pallet::punish_skeptic`]."] + punish_skeptic, + #[codec(index = 13)] + #[doc = "See [`Pallet::claim_membership`]."] + claim_membership, + #[codec(index = 14)] + #[doc = "See [`Pallet::bestow_membership`]."] + bestow_membership { + candidate: ::subxt::utils::AccountId32, + }, + #[codec(index = 15)] + #[doc = "See [`Pallet::kick_candidate`]."] + kick_candidate { + candidate: ::subxt::utils::AccountId32, + }, + #[codec(index = 16)] + #[doc = "See [`Pallet::resign_candidacy`]."] + resign_candidacy, + #[codec(index = 17)] + #[doc = "See [`Pallet::drop_candidate`]."] + drop_candidate { + candidate: ::subxt::utils::AccountId32, + }, + #[codec(index = 18)] + #[doc = "See [`Pallet::cleanup_candidacy`]."] + cleanup_candidacy { + candidate: ::subxt::utils::AccountId32, + max: ::core::primitive::u32, + }, + #[codec(index = 19)] + #[doc = "See [`Pallet::cleanup_challenge`]."] + cleanup_challenge { + challenge_round: ::core::primitive::u32, + max: ::core::primitive::u32, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Error` enum of this pallet."] + pub enum Error { + #[codec(index = 0)] + #[doc = "User is not a member."] + NotMember, + #[codec(index = 1)] + #[doc = "User is already a member."] + AlreadyMember, + #[codec(index = 2)] + #[doc = "User is suspended."] + Suspended, + #[codec(index = 3)] + #[doc = "User is not suspended."] + NotSuspended, + #[codec(index = 4)] + #[doc = "Nothing to payout."] + NoPayout, + #[codec(index = 5)] + #[doc = "Society already founded."] + AlreadyFounded, + #[codec(index = 6)] + #[doc = "Not enough in pot to accept candidate."] + InsufficientPot, + #[codec(index = 7)] + #[doc = "Member is already vouching or banned from vouching again."] + AlreadyVouching, + #[codec(index = 8)] + #[doc = "Member is not vouching."] + NotVouchingOnBidder, + #[codec(index = 9)] + #[doc = "Cannot remove the head of the chain."] + Head, + #[codec(index = 10)] + #[doc = "Cannot remove the founder."] + Founder, + #[codec(index = 11)] + #[doc = "User has already made a bid."] + AlreadyBid, + #[codec(index = 12)] + #[doc = "User is already a candidate."] + AlreadyCandidate, + #[codec(index = 13)] + #[doc = "User is not a candidate."] + NotCandidate, + #[codec(index = 14)] + #[doc = "Too many members in the society."] + MaxMembers, + #[codec(index = 15)] + #[doc = "The caller is not the founder."] + NotFounder, + #[codec(index = 16)] + #[doc = "The caller is not the head."] + NotHead, + #[codec(index = 17)] + #[doc = "The membership cannot be claimed as the candidate was not clearly approved."] + NotApproved, + #[codec(index = 18)] + #[doc = "The candidate cannot be kicked as the candidate was not clearly rejected."] + NotRejected, + #[codec(index = 19)] + #[doc = "The candidacy cannot be dropped as the candidate was clearly approved."] + Approved, + #[codec(index = 20)] + #[doc = "The candidacy cannot be bestowed as the candidate was clearly rejected."] + Rejected, + #[codec(index = 21)] + #[doc = "The candidacy cannot be concluded as the voting is still in progress."] + InProgress, + #[codec(index = 22)] + #[doc = "The candidacy cannot be pruned until a full additional intake period has passed."] + TooEarly, + #[codec(index = 23)] + #[doc = "The skeptic already voted."] + Voted, + #[codec(index = 24)] + #[doc = "The skeptic need not vote on candidates from expired rounds."] + Expired, + #[codec(index = 25)] + #[doc = "User is not a bidder."] + NotBidder, + #[codec(index = 26)] + #[doc = "There is no defender currently."] + NoDefender, + #[codec(index = 27)] + #[doc = "Group doesn't exist."] + NotGroup, + #[codec(index = 28)] + #[doc = "The member is already elevated to this rank."] + AlreadyElevated, + #[codec(index = 29)] + #[doc = "The skeptic has already been punished for this offence."] + AlreadyPunished, + #[codec(index = 30)] + #[doc = "Funds are insufficient to pay off society debts."] + InsufficientFunds, + #[codec(index = 31)] + #[doc = "The candidate/defender has no stale votes to remove."] + NoVotes, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -43981,9 +44278,99 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SpanRecord<_0> { - pub slashed: _0, - pub paid_out: _0, + #[doc = "The `Event` enum of this pallet"] + pub enum Event { + #[codec(index = 0)] + #[doc = "The society is founded by the given identity."] + Founded { + founder: ::subxt::utils::AccountId32, + }, + #[codec(index = 1)] + #[doc = "A membership bid just happened. The given account is the candidate's ID and their offer"] + #[doc = "is the second."] + Bid { + candidate_id: ::subxt::utils::AccountId32, + offer: ::core::primitive::u128, + }, + #[codec(index = 2)] + #[doc = "A membership bid just happened by vouching. The given account is the candidate's ID and"] + #[doc = "their offer is the second. The vouching party is the third."] + Vouch { + candidate_id: ::subxt::utils::AccountId32, + offer: ::core::primitive::u128, + vouching: ::subxt::utils::AccountId32, + }, + #[codec(index = 3)] + #[doc = "A candidate was dropped (due to an excess of bids in the system)."] + AutoUnbid { + candidate: ::subxt::utils::AccountId32, + }, + #[codec(index = 4)] + #[doc = "A candidate was dropped (by their request)."] + Unbid { + candidate: ::subxt::utils::AccountId32, + }, + #[codec(index = 5)] + #[doc = "A candidate was dropped (by request of who vouched for them)."] + Unvouch { + candidate: ::subxt::utils::AccountId32, + }, + #[codec(index = 6)] + #[doc = "A group of candidates have been inducted. The batch's primary is the first value, the"] + #[doc = "batch in full is the second."] + Inducted { + primary: ::subxt::utils::AccountId32, + candidates: ::std::vec::Vec<::subxt::utils::AccountId32>, + }, + #[codec(index = 7)] + #[doc = "A suspended member has been judged."] + SuspendedMemberJudgement { + who: ::subxt::utils::AccountId32, + judged: ::core::primitive::bool, + }, + #[codec(index = 8)] + #[doc = "A candidate has been suspended"] + CandidateSuspended { + candidate: ::subxt::utils::AccountId32, + }, + #[codec(index = 9)] + #[doc = "A member has been suspended"] + MemberSuspended { member: ::subxt::utils::AccountId32 }, + #[codec(index = 10)] + #[doc = "A member has been challenged"] + Challenged { member: ::subxt::utils::AccountId32 }, + #[codec(index = 11)] + #[doc = "A vote has been placed"] + Vote { + candidate: ::subxt::utils::AccountId32, + voter: ::subxt::utils::AccountId32, + vote: ::core::primitive::bool, + }, + #[codec(index = 12)] + #[doc = "A vote has been placed for a defending member"] + DefenderVote { + voter: ::subxt::utils::AccountId32, + vote: ::core::primitive::bool, + }, + #[codec(index = 13)] + #[doc = "A new set of \\[params\\] has been set for the group."] + NewParams { + params: runtime_types::pallet_society::GroupParams<::core::primitive::u128>, + }, + #[codec(index = 14)] + #[doc = "Society is unfounded."] + Unfounded { + founder: ::subxt::utils::AccountId32, + }, + #[codec(index = 15)] + #[doc = "Some funds were deposited into the society account."] + Deposit { value: ::core::primitive::u128 }, + #[codec(index = 16)] + #[doc = "A \\[member\\] got elevated to \\[rank\\]."] + Elevated { + member: ::subxt::utils::AccountId32, + rank: ::core::primitive::u32, + }, } } #[derive( @@ -43996,9 +44383,10 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ActiveEraInfo { - pub index: ::core::primitive::u32, - pub start: ::core::option::Option<::core::primitive::u64>, + pub struct Bid<_0, _1> { + pub who: _0, + pub kind: runtime_types::pallet_society::BidKind<_0, _1>, + pub value: _1, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -44010,9 +44398,11 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct EraRewardPoints<_0> { - pub total: ::core::primitive::u32, - pub individual: ::subxt::utils::KeyedVec<_0, ::core::primitive::u32>, + pub enum BidKind<_0, _1> { + #[codec(index = 0)] + Deposit(_1), + #[codec(index = 1)] + Vouch(_0, _1), } #[derive( :: subxt :: ext :: codec :: Decode, @@ -44024,13 +44414,12 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Exposure<_0, _1> { - #[codec(compact)] - pub total: _1, - #[codec(compact)] - pub own: _1, - pub others: - ::std::vec::Vec>, + pub struct Candidacy<_0, _1> { + pub round: ::core::primitive::u32, + pub kind: runtime_types::pallet_society::BidKind<_0, _1>, + pub bid: _1, + pub tally: runtime_types::pallet_society::Tally, + pub skeptic_struck: ::core::primitive::bool, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -44042,15 +44431,11 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Forcing { - #[codec(index = 0)] - NotForcing, - #[codec(index = 1)] - ForceNew, - #[codec(index = 2)] - ForceNone, - #[codec(index = 3)] - ForceAlways, + pub struct GroupParams<_0> { + pub max_members: ::core::primitive::u32, + pub max_intake: ::core::primitive::u32, + pub max_strikes: ::core::primitive::u32, + pub candidate_deposit: _0, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -44062,10 +44447,10 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct IndividualExposure<_0, _1> { + pub struct IntakeRecord<_0, _1> { pub who: _0, - #[codec(compact)] - pub value: _1, + pub bid: _1, + pub round: ::core::primitive::u32, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -44077,12 +44462,11 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Nominations { - pub targets: runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::subxt::utils::AccountId32, - >, - pub submitted_in: ::core::primitive::u32, - pub suppressed: ::core::primitive::bool, + pub struct MemberRecord { + pub rank: ::core::primitive::u32, + pub strikes: ::core::primitive::u32, + pub vouching: ::core::option::Option, + pub index: ::core::primitive::u32, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -44094,17 +44478,9 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - 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, + pub struct PayoutRecord<_0, _1> { + pub paid: _0, + pub payouts: _1, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -44116,18 +44492,9 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct StakingLedger { - pub stash: ::subxt::utils::AccountId32, - #[codec(compact)] - pub total: ::core::primitive::u128, - #[codec(compact)] - pub active: ::core::primitive::u128, - pub unlocking: runtime_types::bounded_collections::bounded_vec::BoundedVec< - runtime_types::pallet_staking::UnlockChunk<::core::primitive::u128>, - >, - pub claimed_rewards: runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u32, - >, + pub struct Tally { + pub approvals: ::core::primitive::u32, + pub rejections: ::core::primitive::u32, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -44139,12 +44506,9 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - 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 struct Vote { + pub approve: ::core::primitive::bool, + pub weight: ::core::primitive::u32, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -44156,26 +44520,300 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct UnlockChunk<_0> { - #[codec(compact)] - pub value: _0, - #[codec(compact)] - pub era: ::core::primitive::u32, + pub enum VouchingStatus { + #[codec(index = 0)] + Vouching, + #[codec(index = 1)] + Banned, } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ValidatorPrefs { - #[codec(compact)] - pub commission: runtime_types::sp_arithmetic::per_things::Perbill, - pub blocked: ::core::primitive::bool, + } + pub mod pallet_state_trie_migration { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call { + #[codec(index = 0)] + #[doc = "See [`Pallet::control_auto_migration`]."] + control_auto_migration { + maybe_config: ::core::option::Option< + runtime_types::pallet_state_trie_migration::pallet::MigrationLimits, + >, + }, + #[codec(index = 1)] + #[doc = "See [`Pallet::continue_migrate`]."] + continue_migrate { + limits: runtime_types::pallet_state_trie_migration::pallet::MigrationLimits, + real_size_upper: ::core::primitive::u32, + witness_task: + runtime_types::pallet_state_trie_migration::pallet::MigrationTask, + }, + #[codec(index = 2)] + #[doc = "See [`Pallet::migrate_custom_top`]."] + migrate_custom_top { + keys: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, + witness_size: ::core::primitive::u32, + }, + #[codec(index = 3)] + #[doc = "See [`Pallet::migrate_custom_child`]."] + migrate_custom_child { + root: ::std::vec::Vec<::core::primitive::u8>, + child_keys: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, + total_size: ::core::primitive::u32, + }, + #[codec(index = 4)] + #[doc = "See [`Pallet::set_signed_max_limits`]."] + set_signed_max_limits { + limits: runtime_types::pallet_state_trie_migration::pallet::MigrationLimits, + }, + #[codec(index = 5)] + #[doc = "See [`Pallet::force_set_progress`]."] + force_set_progress { + progress_top: runtime_types::pallet_state_trie_migration::pallet::Progress, + progress_child: + runtime_types::pallet_state_trie_migration::pallet::Progress, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Error` enum of this pallet."] + pub enum Error { + #[codec(index = 0)] + #[doc = "Max signed limits not respected."] + MaxSignedLimits, + #[codec(index = 1)] + #[doc = "A key was longer than the configured maximum."] + #[doc = ""] + #[doc = "This means that the migration halted at the current [`Progress`] and"] + #[doc = "can be resumed with a larger [`crate::Config::MaxKeyLen`] value."] + #[doc = "Retrying with the same [`crate::Config::MaxKeyLen`] value will not work."] + #[doc = "The value should only be increased to avoid a storage migration for the currently"] + #[doc = "stored [`crate::Progress::LastKey`]."] + KeyTooLong, + #[codec(index = 2)] + #[doc = "submitter does not have enough funds."] + NotEnoughFunds, + #[codec(index = 3)] + #[doc = "Bad witness data provided."] + BadWitness, + #[codec(index = 4)] + #[doc = "Signed migration is not allowed because the maximum limit is not set yet."] + SignedMigrationNotAllowed, + #[codec(index = 5)] + #[doc = "Bad child root provided."] + BadChildRoot, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Inner events of this pallet."] + pub enum Event { + #[codec(index = 0)] + #[doc = "Given number of `(top, child)` keys were migrated respectively, with the given"] + #[doc = "`compute`."] + Migrated { + top: ::core::primitive::u32, + child: ::core::primitive::u32, + compute: + runtime_types::pallet_state_trie_migration::pallet::MigrationCompute, + }, + #[codec(index = 1)] + #[doc = "Some account got slashed by the given amount."] + Slashed { + who: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 2)] + #[doc = "The auto migration task finished."] + AutoMigrationFinished, + #[codec(index = 3)] + #[doc = "Migration got halted due to an error or miss-configuration."] + Halted { + error: runtime_types::pallet_state_trie_migration::pallet::Error, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum MigrationCompute { + #[codec(index = 0)] + Signed, + #[codec(index = 1)] + Auto, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct MigrationLimits { + pub size: ::core::primitive::u32, + pub item: ::core::primitive::u32, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct MigrationTask { + pub progress_top: runtime_types::pallet_state_trie_migration::pallet::Progress, + pub progress_child: + runtime_types::pallet_state_trie_migration::pallet::Progress, + pub size: ::core::primitive::u32, + pub top_items: ::core::primitive::u32, + pub child_items: ::core::primitive::u32, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Progress { + #[codec(index = 0)] + ToStart, + #[codec(index = 1)] + LastKey( + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + ), + #[codec(index = 2)] + Complete, + } + } + } + pub mod pallet_sudo { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call { + #[codec(index = 0)] + #[doc = "See [`Pallet::sudo`]."] + sudo { + call: ::std::boxed::Box, + }, + #[codec(index = 1)] + #[doc = "See [`Pallet::sudo_unchecked_weight`]."] + sudo_unchecked_weight { + call: ::std::boxed::Box, + weight: runtime_types::sp_weights::weight_v2::Weight, + }, + #[codec(index = 2)] + #[doc = "See [`Pallet::set_key`]."] + set_key { + new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + }, + #[codec(index = 3)] + #[doc = "See [`Pallet::sudo_as`]."] + sudo_as { + who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + call: ::std::boxed::Box, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Error for the Sudo pallet"] + pub enum Error { + #[codec(index = 0)] + #[doc = "Sender must be the Sudo account"] + RequireSudo, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Event` enum of this pallet"] + pub enum Event { + #[codec(index = 0)] + #[doc = "A sudo call just took place."] + Sudid { + sudo_result: + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + }, + #[codec(index = 1)] + #[doc = "The sudo key has been updated."] + KeyChanged { + old_sudoer: ::core::option::Option<::subxt::utils::AccountId32>, + }, + #[codec(index = 2)] + #[doc = "A [sudo_as](Pallet::sudo_as) call just took place."] + SudoAsDone { + sudo_result: + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + }, + } } } pub mod pallet_timestamp { @@ -44203,141 +44841,6 @@ pub mod api { } } } - pub mod pallet_tips { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub enum Call { - #[codec(index = 0)] - #[doc = "See [`Pallet::report_awesome`]."] - report_awesome { - reason: ::std::vec::Vec<::core::primitive::u8>, - who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - }, - #[codec(index = 1)] - #[doc = "See [`Pallet::retract_tip`]."] - retract_tip { hash: ::subxt::utils::H256 }, - #[codec(index = 2)] - #[doc = "See [`Pallet::tip_new`]."] - tip_new { - reason: ::std::vec::Vec<::core::primitive::u8>, - who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - #[codec(compact)] - tip_value: ::core::primitive::u128, - }, - #[codec(index = 3)] - #[doc = "See [`Pallet::tip`]."] - tip { - hash: ::subxt::utils::H256, - #[codec(compact)] - tip_value: ::core::primitive::u128, - }, - #[codec(index = 4)] - #[doc = "See [`Pallet::close_tip`]."] - close_tip { hash: ::subxt::utils::H256 }, - #[codec(index = 5)] - #[doc = "See [`Pallet::slash_tip`]."] - slash_tip { hash: ::subxt::utils::H256 }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] - pub enum Error { - #[codec(index = 0)] - #[doc = "The reason given is just too big."] - ReasonTooBig, - #[codec(index = 1)] - #[doc = "The tip was already found/started."] - AlreadyKnown, - #[codec(index = 2)] - #[doc = "The tip hash is unknown."] - UnknownTip, - #[codec(index = 3)] - #[doc = "The account attempting to retract the tip is not the finder of the tip."] - NotFinder, - #[codec(index = 4)] - #[doc = "The tip cannot be claimed/closed because there are not enough tippers yet."] - StillOpen, - #[codec(index = 5)] - #[doc = "The tip cannot be claimed/closed because it's still in the countdown period."] - Premature, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] - pub enum Event { - #[codec(index = 0)] - #[doc = "A new tip suggestion has been opened."] - NewTip { tip_hash: ::subxt::utils::H256 }, - #[codec(index = 1)] - #[doc = "A tip suggestion has reached threshold and is closing."] - TipClosing { tip_hash: ::subxt::utils::H256 }, - #[codec(index = 2)] - #[doc = "A tip suggestion has been closed."] - TipClosed { - tip_hash: ::subxt::utils::H256, - who: ::subxt::utils::AccountId32, - payout: ::core::primitive::u128, - }, - #[codec(index = 3)] - #[doc = "A tip suggestion has been retracted."] - TipRetracted { tip_hash: ::subxt::utils::H256 }, - #[codec(index = 4)] - #[doc = "A tip suggestion has been slashed."] - TipSlashed { - tip_hash: ::subxt::utils::H256, - finder: ::subxt::utils::AccountId32, - deposit: ::core::primitive::u128, - }, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - 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 mod pallet_transaction_payment { use super::runtime_types; pub mod pallet { @@ -44477,8 +44980,8 @@ pub mod api { proposal_id: ::core::primitive::u32, }, #[codec(index = 3)] - #[doc = "See [`Pallet::spend`]."] - spend { + #[doc = "See [`Pallet::spend_local`]."] + spend_local { #[codec(compact)] amount: ::core::primitive::u128, beneficiary: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -44489,6 +44992,26 @@ pub mod api { #[codec(compact)] proposal_id: ::core::primitive::u32, }, + #[codec(index = 5)] + #[doc = "See [`Pallet::spend`]."] + spend { + asset_kind: ::std::boxed::Box< + runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset, + >, + #[codec(compact)] + amount: ::core::primitive::u128, + beneficiary: ::std::boxed::Box, + valid_from: ::core::option::Option<::core::primitive::u32>, + }, + #[codec(index = 6)] + #[doc = "See [`Pallet::payout`]."] + payout { index: ::core::primitive::u32 }, + #[codec(index = 7)] + #[doc = "See [`Pallet::check_status`]."] + check_status { index: ::core::primitive::u32 }, + #[codec(index = 8)] + #[doc = "See [`Pallet::void_spend`]."] + void_spend { index: ::core::primitive::u32 }, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -44506,7 +45029,7 @@ pub mod api { #[doc = "Proposer's balance is too low."] InsufficientProposersBalance, #[codec(index = 1)] - #[doc = "No proposal or bounty at that index."] + #[doc = "No proposal, bounty or spend at that index."] InvalidIndex, #[codec(index = 2)] #[doc = "Too many approvals in the queue."] @@ -44518,6 +45041,27 @@ pub mod api { #[codec(index = 4)] #[doc = "Proposal has not been approved."] ProposalNotApproved, + #[codec(index = 5)] + #[doc = "The balance of the asset kind is not convertible to the balance of the native asset."] + FailedToConvertBalance, + #[codec(index = 6)] + #[doc = "The spend has expired and cannot be claimed."] + SpendExpired, + #[codec(index = 7)] + #[doc = "The spend is not yet eligible for payout."] + EarlyPayout, + #[codec(index = 8)] + #[doc = "The payment has already been attempted."] + AlreadyAttempted, + #[codec(index = 9)] + #[doc = "There was some issue with the mechanism of payment."] + PayoutError, + #[codec(index = 10)] + #[doc = "The payout was not yet attempted/claimed."] + NotAttempted, + #[codec(index = 11)] + #[doc = "The payment has neither failed nor succeeded yet."] + Inconclusive, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -44580,6 +45124,36 @@ pub mod api { reactivated: ::core::primitive::u128, deactivated: ::core::primitive::u128, }, + #[codec(index = 9)] + #[doc = "A new asset spend proposal has been approved."] + AssetSpendApproved { + index: ::core::primitive::u32, + asset_kind: + runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset, + amount: ::core::primitive::u128, + beneficiary: runtime_types::xcm::VersionedMultiLocation, + valid_from: ::core::primitive::u32, + expire_at: ::core::primitive::u32, + }, + #[codec(index = 10)] + #[doc = "An approved spend was voided."] + AssetSpendVoided { index: ::core::primitive::u32 }, + #[codec(index = 11)] + #[doc = "A payment happened."] + Paid { + index: ::core::primitive::u32, + payment_id: ::core::primitive::u64, + }, + #[codec(index = 12)] + #[doc = "A payment failed and can be retried."] + PaymentFailed { + index: ::core::primitive::u32, + payment_id: ::core::primitive::u64, + }, + #[codec(index = 13)] + #[doc = "A spend was processed and removed from the storage. It might have been successfully"] + #[doc = "paid or it may have expired."] + SpendProcessed { index: ::core::primitive::u32 }, } } #[derive( @@ -44592,12 +45166,48 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum PaymentState<_0> { + #[codec(index = 0)] + Pending, + #[codec(index = 1)] + Attempted { id: _0 }, + #[codec(index = 2)] + Failed, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Proposal<_0, _1> { pub proposer: _0, pub value: _1, pub beneficiary: _0, pub bond: _1, } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SpendStatus<_0, _1, _2, _3, _4> { + pub asset_kind: _0, + pub amount: _1, + pub beneficiary: _2, + pub valid_from: _3, + pub expire_at: _3, + pub status: runtime_types::pallet_treasury::PaymentState<_4>, + } } pub mod pallet_utility { use super::runtime_types; @@ -44618,34 +45228,34 @@ pub mod api { #[codec(index = 0)] #[doc = "See [`Pallet::batch`]."] batch { - calls: ::std::vec::Vec, + calls: ::std::vec::Vec, }, #[codec(index = 1)] #[doc = "See [`Pallet::as_derivative`]."] as_derivative { index: ::core::primitive::u16, - call: ::std::boxed::Box, + call: ::std::boxed::Box, }, #[codec(index = 2)] #[doc = "See [`Pallet::batch_all`]."] batch_all { - calls: ::std::vec::Vec, + calls: ::std::vec::Vec, }, #[codec(index = 3)] #[doc = "See [`Pallet::dispatch_as`]."] dispatch_as { - as_origin: ::std::boxed::Box, - call: ::std::boxed::Box, + as_origin: ::std::boxed::Box, + call: ::std::boxed::Box, }, #[codec(index = 4)] #[doc = "See [`Pallet::force_batch`]."] force_batch { - calls: ::std::vec::Vec, + calls: ::std::vec::Vec, }, #[codec(index = 5)] #[doc = "See [`Pallet::with_weight`]."] with_weight { - call: ::std::boxed::Box, + call: ::std::boxed::Box, weight: runtime_types::sp_weights::weight_v2::Weight, }, } @@ -44756,6 +45366,12 @@ pub mod api { schedule1_index: ::core::primitive::u32, schedule2_index: ::core::primitive::u32, }, + #[codec(index = 5)] + #[doc = "See [`Pallet::force_remove_vesting_schedule`]."] + force_remove_vesting_schedule { + target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + schedule_index: ::core::primitive::u32, + }, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -44879,7 +45495,7 @@ pub mod api { #[codec(index = 3)] #[doc = "See [`Pallet::dispatch_whitelisted_call_with_preimage`]."] dispatch_whitelisted_call_with_preimage { - call: ::std::boxed::Box, + call: ::std::boxed::Box, }, } #[derive( @@ -44986,8 +45602,9 @@ pub mod api { #[codec(index = 4)] #[doc = "See [`Pallet::force_xcm_version`]."] force_xcm_version { - location: - ::std::boxed::Box, + location: ::std::boxed::Box< + runtime_types::staging_xcm::v3::multilocation::MultiLocation, + >, version: ::core::primitive::u32, }, #[codec(index = 5)] @@ -45044,8 +45661,8 @@ pub mod api { #[doc = "to it."] Unreachable, #[codec(index = 1)] - #[doc = "There was some other issue (i.e. not to do with routing) in sending the message. Perhaps"] - #[doc = "a lack of space for buffering the message."] + #[doc = "There was some other issue (i.e. not to do with routing) in sending the message."] + #[doc = "Perhaps a lack of space for buffering the message."] SendFailure, #[codec(index = 2)] #[doc = "The message execution fails the filter."] @@ -45123,8 +45740,8 @@ pub mod api { #[codec(index = 1)] #[doc = "A XCM message was sent."] Sent { - origin: runtime_types::xcm::v3::multilocation::MultiLocation, - destination: runtime_types::xcm::v3::multilocation::MultiLocation, + origin: runtime_types::staging_xcm::v3::multilocation::MultiLocation, + destination: runtime_types::staging_xcm::v3::multilocation::MultiLocation, message: runtime_types::xcm::v3::Xcm, message_id: [::core::primitive::u8; 32usize], }, @@ -45133,7 +45750,7 @@ pub mod api { #[doc = "matching query was never registered, it may be because it is a duplicate response, or"] #[doc = "because the query timed out."] UnexpectedResponse { - origin: runtime_types::xcm::v3::multilocation::MultiLocation, + origin: runtime_types::staging_xcm::v3::multilocation::MultiLocation, query_id: ::core::primitive::u64, }, #[codec(index = 3)] @@ -45152,8 +45769,8 @@ pub mod api { call_index: ::core::primitive::u8, }, #[codec(index = 5)] - #[doc = "Query response has been received and query is removed. The registered notification could"] - #[doc = "not be dispatched because the dispatch weight is greater than the maximum weight"] + #[doc = "Query response has been received and query is removed. The registered notification"] + #[doc = "could not be dispatched because the dispatch weight is greater than the maximum weight"] #[doc = "originally budgeted by this runtime for the query result."] NotifyOverweight { query_id: ::core::primitive::u64, @@ -45184,10 +45801,10 @@ pub mod api { #[doc = "not match that expected. The query remains registered for a later, valid, response to"] #[doc = "be received and acted upon."] InvalidResponder { - origin: runtime_types::xcm::v3::multilocation::MultiLocation, + origin: runtime_types::staging_xcm::v3::multilocation::MultiLocation, query_id: ::core::primitive::u64, expected_location: ::core::option::Option< - runtime_types::xcm::v3::multilocation::MultiLocation, + runtime_types::staging_xcm::v3::multilocation::MultiLocation, >, }, #[codec(index = 9)] @@ -45199,7 +45816,7 @@ pub mod api { #[doc = "valid response will be dropped. Manual governance intervention is probably going to be"] #[doc = "needed."] InvalidResponderVersion { - origin: runtime_types::xcm::v3::multilocation::MultiLocation, + origin: runtime_types::staging_xcm::v3::multilocation::MultiLocation, query_id: ::core::primitive::u64, }, #[codec(index = 10)] @@ -45209,7 +45826,7 @@ pub mod api { #[doc = "Some assets have been placed in an asset trap."] AssetsTrapped { hash: ::subxt::utils::H256, - origin: runtime_types::xcm::v3::multilocation::MultiLocation, + origin: runtime_types::staging_xcm::v3::multilocation::MultiLocation, assets: runtime_types::xcm::VersionedMultiAssets, }, #[codec(index = 12)] @@ -45217,7 +45834,7 @@ pub mod api { #[doc = ""] #[doc = "The cost of sending it (borne by the chain) is included."] VersionChangeNotified { - destination: runtime_types::xcm::v3::multilocation::MultiLocation, + destination: runtime_types::staging_xcm::v3::multilocation::MultiLocation, result: ::core::primitive::u32, cost: runtime_types::xcm::v3::multiasset::MultiAssets, message_id: [::core::primitive::u8; 32usize], @@ -45226,14 +45843,14 @@ pub mod api { #[doc = "The supported version of a location has been changed. This might be through an"] #[doc = "automatic notification or a manual intervention."] SupportedVersionChanged { - location: runtime_types::xcm::v3::multilocation::MultiLocation, + location: runtime_types::staging_xcm::v3::multilocation::MultiLocation, version: ::core::primitive::u32, }, #[codec(index = 14)] #[doc = "A given location which had a version change subscription was dropped owing to an error"] #[doc = "sending the notification to it."] NotifyTargetSendFail { - location: runtime_types::xcm::v3::multilocation::MultiLocation, + location: runtime_types::staging_xcm::v3::multilocation::MultiLocation, query_id: ::core::primitive::u64, error: runtime_types::xcm::v3::traits::Error, }, @@ -45253,7 +45870,7 @@ pub mod api { #[doc = "valid response will be dropped. Manual governance intervention is probably going to be"] #[doc = "needed."] InvalidQuerierVersion { - origin: runtime_types::xcm::v3::multilocation::MultiLocation, + origin: runtime_types::staging_xcm::v3::multilocation::MultiLocation, query_id: ::core::primitive::u64, }, #[codec(index = 17)] @@ -45261,46 +45878,48 @@ pub mod api { #[doc = "not match the expected. The query remains registered for a later, valid, response to"] #[doc = "be received and acted upon."] InvalidQuerier { - origin: runtime_types::xcm::v3::multilocation::MultiLocation, + origin: runtime_types::staging_xcm::v3::multilocation::MultiLocation, query_id: ::core::primitive::u64, - expected_querier: runtime_types::xcm::v3::multilocation::MultiLocation, + expected_querier: + runtime_types::staging_xcm::v3::multilocation::MultiLocation, maybe_actual_querier: ::core::option::Option< - runtime_types::xcm::v3::multilocation::MultiLocation, + runtime_types::staging_xcm::v3::multilocation::MultiLocation, >, }, #[codec(index = 18)] #[doc = "A remote has requested XCM version change notification from us and we have honored it."] #[doc = "A version information message is sent to them and its cost is included."] VersionNotifyStarted { - destination: runtime_types::xcm::v3::multilocation::MultiLocation, + destination: runtime_types::staging_xcm::v3::multilocation::MultiLocation, cost: runtime_types::xcm::v3::multiasset::MultiAssets, message_id: [::core::primitive::u8; 32usize], }, #[codec(index = 19)] #[doc = "We have requested that a remote chain send us XCM version change notifications."] VersionNotifyRequested { - destination: runtime_types::xcm::v3::multilocation::MultiLocation, + destination: runtime_types::staging_xcm::v3::multilocation::MultiLocation, cost: runtime_types::xcm::v3::multiasset::MultiAssets, message_id: [::core::primitive::u8; 32usize], }, #[codec(index = 20)] - #[doc = "We have requested that a remote chain stops sending us XCM version change notifications."] + #[doc = "We have requested that a remote chain stops sending us XCM version change"] + #[doc = "notifications."] VersionNotifyUnrequested { - destination: runtime_types::xcm::v3::multilocation::MultiLocation, + destination: runtime_types::staging_xcm::v3::multilocation::MultiLocation, cost: runtime_types::xcm::v3::multiasset::MultiAssets, message_id: [::core::primitive::u8; 32usize], }, #[codec(index = 21)] #[doc = "Fees were paid from a location for an operation (often for using `SendXcm`)."] FeesPaid { - paying: runtime_types::xcm::v3::multilocation::MultiLocation, + paying: runtime_types::staging_xcm::v3::multilocation::MultiLocation, fees: runtime_types::xcm::v3::multiasset::MultiAssets, }, #[codec(index = 22)] #[doc = "Some assets have been claimed from an asset trap"] AssetsClaimed { hash: ::subxt::utils::H256, - origin: runtime_types::xcm::v3::multilocation::MultiLocation, + origin: runtime_types::staging_xcm::v3::multilocation::MultiLocation, assets: runtime_types::xcm::VersionedMultiAssets, }, } @@ -45316,9 +45935,9 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Origin { #[codec(index = 0)] - Xcm(runtime_types::xcm::v3::multilocation::MultiLocation), + Xcm(runtime_types::staging_xcm::v3::multilocation::MultiLocation), #[codec(index = 1)] - Response(runtime_types::xcm::v3::multilocation::MultiLocation), + Response(runtime_types::staging_xcm::v3::multilocation::MultiLocation), } #[derive( :: subxt :: ext :: codec :: Decode, @@ -45450,7 +46069,7 @@ pub mod api { pub data: ::std::vec::Vec<::core::primitive::u8>, } } - pub mod polkadot_parachain { + pub mod polkadot_parachain_primitives { use super::runtime_types; pub mod primitives { use super::runtime_types; @@ -45476,8 +46095,8 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct HrmpChannelId { - pub sender: runtime_types::polkadot_parachain::primitives::Id, - pub recipient: runtime_types::polkadot_parachain::primitives::Id, + pub sender: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub recipient: runtime_types::polkadot_parachain_primitives::primitives::Id, } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -45517,7 +46136,7 @@ pub mod api { } pub mod polkadot_primitives { use super::runtime_types; - pub mod v5 { + pub mod v6 { use super::runtime_types; pub mod assignment_app { use super::runtime_types; @@ -45533,6 +46152,91 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Public(pub runtime_types::sp_core::sr25519::Public); } + pub mod async_backing { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct AsyncBackingParams { + pub max_candidate_depth: ::core::primitive::u32, + pub allowed_ancestry_len: ::core::primitive::u32, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct BackingState < _0 , _1 > { pub constraints : runtime_types :: polkadot_primitives :: v6 :: async_backing :: Constraints < _1 > , pub pending_availability : :: std :: vec :: Vec < runtime_types :: polkadot_primitives :: v6 :: async_backing :: CandidatePendingAvailability < _0 , _1 > > , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CandidatePendingAvailability<_0, _1> { + pub candidate_hash: runtime_types::polkadot_core_primitives::CandidateHash, + pub descriptor: + runtime_types::polkadot_primitives::v6::CandidateDescriptor<_0>, + pub commitments: + runtime_types::polkadot_primitives::v6::CandidateCommitments<_1>, + pub relay_parent_number: _1, + pub max_pov_size: ::core::primitive::u32, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Constraints < _0 > { pub min_relay_parent_number : _0 , pub max_pov_size : :: core :: primitive :: u32 , pub max_code_size : :: core :: primitive :: u32 , pub ump_remaining : :: core :: primitive :: u32 , pub ump_remaining_bytes : :: core :: primitive :: u32 , pub max_ump_num_per_candidate : :: core :: primitive :: u32 , pub dmp_remaining_messages : :: std :: vec :: Vec < _0 > , pub hrmp_inbound : runtime_types :: polkadot_primitives :: v6 :: async_backing :: InboundHrmpLimitations < _0 > , pub hrmp_channels_out : :: std :: vec :: Vec < (runtime_types :: polkadot_parachain_primitives :: primitives :: Id , runtime_types :: polkadot_primitives :: v6 :: async_backing :: OutboundHrmpChannelLimitations ,) > , pub max_hrmp_num_per_candidate : :: core :: primitive :: u32 , pub required_parent : runtime_types :: polkadot_parachain_primitives :: primitives :: HeadData , pub validation_code_hash : runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash , pub upgrade_restriction : :: core :: option :: Option < runtime_types :: polkadot_primitives :: v6 :: UpgradeRestriction > , pub future_validation_code : :: core :: option :: Option < (_0 , runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash ,) > , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct InboundHrmpLimitations<_0> { + pub valid_watermarks: ::std::vec::Vec<_0>, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct OutboundHrmpChannelLimitations { + pub bytes_remaining: ::core::primitive::u32, + pub messages_remaining: ::core::primitive::u32, + } + } pub mod collator_app { use super::runtime_types; #[derive( @@ -45581,12 +46285,12 @@ pub mod api { PrecheckingMaxMemory(::core::primitive::u64), #[codec(index = 5)] PvfPrepTimeout( - runtime_types::polkadot_primitives::v5::PvfPrepTimeoutKind, + runtime_types::polkadot_primitives::v6::PvfPrepTimeoutKind, ::core::primitive::u64, ), #[codec(index = 6)] PvfExecTimeout( - runtime_types::polkadot_primitives::v5::PvfExecTimeoutKind, + runtime_types::polkadot_primitives::v6::PvfExecTimeoutKind, ::core::primitive::u64, ), #[codec(index = 7)] @@ -45604,7 +46308,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ExecutorParams( pub ::std::vec::Vec< - runtime_types::polkadot_primitives::v5::executor_params::ExecutorParam, + runtime_types::polkadot_primitives::v6::executor_params::ExecutorParam, >, ); } @@ -45622,9 +46326,9 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UncheckedSigned<_0, _1> { pub payload: _0, - pub validator_index: runtime_types::polkadot_primitives::v5::ValidatorIndex, + pub validator_index: runtime_types::polkadot_primitives::v6::ValidatorIndex, pub signature: - runtime_types::polkadot_primitives::v5::validator_app::Signature, + runtime_types::polkadot_primitives::v6::validator_app::Signature, #[codec(skip)] pub __subxt_unused_type_params: ::core::marker::PhantomData<_1>, } @@ -45643,12 +46347,12 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct DisputeProof { pub time_slot: - runtime_types::polkadot_primitives::v5::slashing::DisputesTimeSlot, + runtime_types::polkadot_primitives::v6::slashing::DisputesTimeSlot, pub kind: - runtime_types::polkadot_primitives::v5::slashing::SlashingOffenceKind, - pub validator_index: runtime_types::polkadot_primitives::v5::ValidatorIndex, + runtime_types::polkadot_primitives::v6::slashing::SlashingOffenceKind, + pub validator_index: runtime_types::polkadot_primitives::v6::ValidatorIndex, pub validator_id: - runtime_types::polkadot_primitives::v5::validator_app::Public, + runtime_types::polkadot_primitives::v6::validator_app::Public, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -45687,11 +46391,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PendingSlashes { pub keys: ::subxt::utils::KeyedVec< - runtime_types::polkadot_primitives::v5::ValidatorIndex, - runtime_types::polkadot_primitives::v5::validator_app::Public, + runtime_types::polkadot_primitives::v6::ValidatorIndex, + runtime_types::polkadot_primitives::v6::validator_app::Public, >, pub kind: - runtime_types::polkadot_primitives::v5::slashing::SlashingOffenceKind, + runtime_types::polkadot_primitives::v6::slashing::SlashingOffenceKind, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -45763,9 +46467,9 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BackedCandidate<_0> { pub candidate: - runtime_types::polkadot_primitives::v5::CommittedCandidateReceipt<_0>, + runtime_types::polkadot_primitives::v6::CommittedCandidateReceipt<_0>, pub validity_votes: ::std::vec::Vec< - runtime_types::polkadot_primitives::v5::ValidityAttestation, + runtime_types::polkadot_primitives::v6::ValidityAttestation, >, pub validator_indices: ::subxt::utils::bits::DecodedBits< ::core::primitive::u8, @@ -45790,13 +46494,14 @@ pub mod api { pub horizontal_messages: runtime_types::bounded_collections::bounded_vec::BoundedVec< runtime_types::polkadot_core_primitives::OutboundHrmpMessage< - runtime_types::polkadot_parachain::primitives::Id, + runtime_types::polkadot_parachain_primitives::primitives::Id, >, >, pub new_validation_code: ::core::option::Option< - runtime_types::polkadot_parachain::primitives::ValidationCode, + runtime_types::polkadot_parachain_primitives::primitives::ValidationCode, >, - pub head_data: runtime_types::polkadot_parachain::primitives::HeadData, + pub head_data: + runtime_types::polkadot_parachain_primitives::primitives::HeadData, pub processed_downward_messages: ::core::primitive::u32, pub hrmp_watermark: _0, } @@ -45810,18 +46515,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct CandidateDescriptor<_0> { - pub para_id: runtime_types::polkadot_parachain::primitives::Id, - pub relay_parent: _0, - pub collator: runtime_types::polkadot_primitives::v5::collator_app::Public, - pub persisted_validation_data_hash: ::subxt::utils::H256, - pub pov_hash: ::subxt::utils::H256, - pub erasure_root: ::subxt::utils::H256, - pub signature: runtime_types::polkadot_primitives::v5::collator_app::Signature, - pub para_head: ::subxt::utils::H256, - pub validation_code_hash: - runtime_types::polkadot_parachain::primitives::ValidationCodeHash, - } + pub struct CandidateDescriptor < _0 > { pub para_id : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , pub relay_parent : _0 , pub collator : runtime_types :: polkadot_primitives :: v6 :: collator_app :: Public , pub persisted_validation_data_hash : :: subxt :: utils :: H256 , pub pov_hash : :: subxt :: utils :: H256 , pub erasure_root : :: subxt :: utils :: H256 , pub signature : runtime_types :: polkadot_primitives :: v6 :: collator_app :: Signature , pub para_head : :: subxt :: utils :: H256 , pub validation_code_hash : runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -45835,23 +46529,23 @@ pub mod api { pub enum CandidateEvent<_0> { #[codec(index = 0)] CandidateBacked( - runtime_types::polkadot_primitives::v5::CandidateReceipt<_0>, - runtime_types::polkadot_parachain::primitives::HeadData, - runtime_types::polkadot_primitives::v5::CoreIndex, - runtime_types::polkadot_primitives::v5::GroupIndex, + runtime_types::polkadot_primitives::v6::CandidateReceipt<_0>, + runtime_types::polkadot_parachain_primitives::primitives::HeadData, + runtime_types::polkadot_primitives::v6::CoreIndex, + runtime_types::polkadot_primitives::v6::GroupIndex, ), #[codec(index = 1)] CandidateIncluded( - runtime_types::polkadot_primitives::v5::CandidateReceipt<_0>, - runtime_types::polkadot_parachain::primitives::HeadData, - runtime_types::polkadot_primitives::v5::CoreIndex, - runtime_types::polkadot_primitives::v5::GroupIndex, + runtime_types::polkadot_primitives::v6::CandidateReceipt<_0>, + runtime_types::polkadot_parachain_primitives::primitives::HeadData, + runtime_types::polkadot_primitives::v6::CoreIndex, + runtime_types::polkadot_primitives::v6::GroupIndex, ), #[codec(index = 2)] CandidateTimedOut( - runtime_types::polkadot_primitives::v5::CandidateReceipt<_0>, - runtime_types::polkadot_parachain::primitives::HeadData, - runtime_types::polkadot_primitives::v5::CoreIndex, + runtime_types::polkadot_primitives::v6::CandidateReceipt<_0>, + runtime_types::polkadot_parachain_primitives::primitives::HeadData, + runtime_types::polkadot_primitives::v6::CoreIndex, ), } #[derive( @@ -45865,7 +46559,7 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CandidateReceipt<_0> { - pub descriptor: runtime_types::polkadot_primitives::v5::CandidateDescriptor<_0>, + pub descriptor: runtime_types::polkadot_primitives::v6::CandidateDescriptor<_0>, pub commitments_hash: ::subxt::utils::H256, } #[derive( @@ -45879,8 +46573,8 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CommittedCandidateReceipt<_0> { - pub descriptor: runtime_types::polkadot_primitives::v5::CandidateDescriptor<_0>, - pub commitments: runtime_types::polkadot_primitives::v5::CandidateCommitments< + pub descriptor: runtime_types::polkadot_primitives::v6::CandidateDescriptor<_0>, + pub commitments: runtime_types::polkadot_primitives::v6::CandidateCommitments< ::core::primitive::u32, >, } @@ -45906,27 +46600,11 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum CoreOccupied { - #[codec(index = 0)] - Parathread(runtime_types::polkadot_primitives::v5::ParathreadEntry), - #[codec(index = 1)] - Parachain, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum CoreState<_0, _1> { #[codec(index = 0)] - Occupied(runtime_types::polkadot_primitives::v5::OccupiedCore<_0, _1>), + Occupied(runtime_types::polkadot_primitives::v6::OccupiedCore<_0, _1>), #[codec(index = 1)] - Scheduled(runtime_types::polkadot_primitives::v5::ScheduledCore), + Scheduled(runtime_types::polkadot_primitives::v6::ScheduledCore), #[codec(index = 2)] Free, } @@ -45964,9 +46642,9 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum DisputeStatement { #[codec(index = 0)] - Valid(runtime_types::polkadot_primitives::v5::ValidDisputeStatementKind), + Valid(runtime_types::polkadot_primitives::v6::ValidDisputeStatementKind), #[codec(index = 1)] - Invalid(runtime_types::polkadot_primitives::v5::InvalidDisputeStatementKind), + Invalid(runtime_types::polkadot_primitives::v6::InvalidDisputeStatementKind), } #[derive( :: subxt :: ext :: codec :: Decode, @@ -45982,9 +46660,9 @@ pub mod api { pub candidate_hash: runtime_types::polkadot_core_primitives::CandidateHash, pub session: ::core::primitive::u32, pub statements: ::std::vec::Vec<( - runtime_types::polkadot_primitives::v5::DisputeStatement, - runtime_types::polkadot_primitives::v5::ValidatorIndex, - runtime_types::polkadot_primitives::v5::validator_app::Signature, + runtime_types::polkadot_primitives::v6::DisputeStatement, + runtime_types::polkadot_primitives::v6::ValidatorIndex, + runtime_types::polkadot_primitives::v6::validator_app::Signature, )>, } #[derive( @@ -46040,18 +46718,18 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct InherentData<_0> { pub bitfields: ::std::vec::Vec< - runtime_types::polkadot_primitives::v5::signed::UncheckedSigned< - runtime_types::polkadot_primitives::v5::AvailabilityBitfield, - runtime_types::polkadot_primitives::v5::AvailabilityBitfield, + runtime_types::polkadot_primitives::v6::signed::UncheckedSigned< + runtime_types::polkadot_primitives::v6::AvailabilityBitfield, + runtime_types::polkadot_primitives::v6::AvailabilityBitfield, >, >, pub backed_candidates: ::std::vec::Vec< - runtime_types::polkadot_primitives::v5::BackedCandidate< + runtime_types::polkadot_primitives::v6::BackedCandidate< ::subxt::utils::H256, >, >, pub disputes: ::std::vec::Vec< - runtime_types::polkadot_primitives::v5::DisputeStatementSet, + runtime_types::polkadot_primitives::v6::DisputeStatementSet, >, pub parent_header: _0, } @@ -46081,21 +46759,21 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct OccupiedCore<_0, _1> { pub next_up_on_available: ::core::option::Option< - runtime_types::polkadot_primitives::v5::ScheduledCore, + runtime_types::polkadot_primitives::v6::ScheduledCore, >, pub occupied_since: _1, pub time_out_at: _1, pub next_up_on_time_out: ::core::option::Option< - runtime_types::polkadot_primitives::v5::ScheduledCore, + runtime_types::polkadot_primitives::v6::ScheduledCore, >, pub availability: ::subxt::utils::bits::DecodedBits< ::core::primitive::u8, ::subxt::utils::bits::Lsb0, >, - pub group_responsible: runtime_types::polkadot_primitives::v5::GroupIndex, + pub group_responsible: runtime_types::polkadot_primitives::v6::GroupIndex, pub candidate_hash: runtime_types::polkadot_core_primitives::CandidateHash, pub candidate_descriptor: - runtime_types::polkadot_primitives::v5::CandidateDescriptor<_0>, + runtime_types::polkadot_primitives::v6::CandidateDescriptor<_0>, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -46125,36 +46803,9 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ParathreadClaim( - pub runtime_types::polkadot_parachain::primitives::Id, - pub runtime_types::polkadot_primitives::v5::collator_app::Public, - ); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ParathreadEntry { - pub claim: runtime_types::polkadot_primitives::v5::ParathreadClaim, - pub retries: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PersistedValidationData<_0, _1> { - pub parent_head: runtime_types::polkadot_parachain::primitives::HeadData, + pub parent_head: + runtime_types::polkadot_parachain_primitives::primitives::HeadData, pub relay_parent_number: _1, pub relay_parent_storage_root: _0, pub max_pov_size: ::core::primitive::u32, @@ -46169,12 +46820,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - 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::v5::ValidatorIndex, - } + pub struct PvfCheckStatement { pub accept : :: core :: primitive :: bool , pub subject : runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash , pub session_index : :: core :: primitive :: u32 , pub validator_index : runtime_types :: polkadot_primitives :: v6 :: ValidatorIndex , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -46218,9 +46864,9 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ScheduledCore { - pub para_id: runtime_types::polkadot_parachain::primitives::Id, + pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, pub collator: ::core::option::Option< - runtime_types::polkadot_primitives::v5::collator_app::Public, + runtime_types::polkadot_primitives::v6::collator_app::Public, >, } #[derive( @@ -46236,14 +46882,14 @@ pub mod api { pub struct ScrapedOnChainVotes<_0> { pub session: ::core::primitive::u32, pub backing_validators_per_candidate: ::std::vec::Vec<( - runtime_types::polkadot_primitives::v5::CandidateReceipt<_0>, + runtime_types::polkadot_primitives::v6::CandidateReceipt<_0>, ::std::vec::Vec<( - runtime_types::polkadot_primitives::v5::ValidatorIndex, - runtime_types::polkadot_primitives::v5::ValidityAttestation, + runtime_types::polkadot_primitives::v6::ValidatorIndex, + runtime_types::polkadot_primitives::v6::ValidityAttestation, )>, )>, pub disputes: ::std::vec::Vec< - runtime_types::polkadot_primitives::v5::DisputeStatementSet, + runtime_types::polkadot_primitives::v6::DisputeStatementSet, >, } #[derive( @@ -46258,21 +46904,21 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SessionInfo { pub active_validator_indices: - ::std::vec::Vec, + ::std::vec::Vec, pub random_seed: [::core::primitive::u8; 32usize], pub dispute_period: ::core::primitive::u32, - pub validators: runtime_types::polkadot_primitives::v5::IndexedVec< - runtime_types::polkadot_primitives::v5::ValidatorIndex, - runtime_types::polkadot_primitives::v5::validator_app::Public, + pub validators: runtime_types::polkadot_primitives::v6::IndexedVec< + runtime_types::polkadot_primitives::v6::ValidatorIndex, + runtime_types::polkadot_primitives::v6::validator_app::Public, >, pub discovery_keys: ::std::vec::Vec, pub assignment_keys: ::std::vec::Vec< - runtime_types::polkadot_primitives::v5::assignment_app::Public, + runtime_types::polkadot_primitives::v6::assignment_app::Public, >, - pub validator_groups: runtime_types::polkadot_primitives::v5::IndexedVec< - runtime_types::polkadot_primitives::v5::GroupIndex, - ::std::vec::Vec, + pub validator_groups: runtime_types::polkadot_primitives::v6::IndexedVec< + runtime_types::polkadot_primitives::v6::GroupIndex, + ::std::vec::Vec, >, pub n_cores: ::core::primitive::u32, pub zeroth_delay_tranche_width: ::core::primitive::u32, @@ -46331,18 +46977,125 @@ pub mod api { #[codec(index = 3)] ApprovalChecking, } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ValidatorIndex(pub ::core::primitive::u32); + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ValidatorIndex(pub ::core::primitive::u32); + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum ValidityAttestation { + #[codec(index = 1)] + Implicit(runtime_types::polkadot_primitives::v6::validator_app::Signature), + #[codec(index = 2)] + Explicit(runtime_types::polkadot_primitives::v6::validator_app::Signature), + } + } + } + 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 :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call { + # [codec (index = 0)] # [doc = "See [`Pallet::assign_perm_parachain_slot`]."] assign_perm_parachain_slot { id : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , # [codec (index = 1)] # [doc = "See [`Pallet::assign_temp_parachain_slot`]."] assign_temp_parachain_slot { id : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , lease_period_start : runtime_types :: polkadot_runtime_common :: assigned_slots :: SlotLeasePeriodStart , } , # [codec (index = 2)] # [doc = "See [`Pallet::unassign_parachain_slot`]."] unassign_parachain_slot { id : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , # [codec (index = 3)] # [doc = "See [`Pallet::set_max_permanent_slots`]."] set_max_permanent_slots { slots : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "See [`Pallet::set_max_temporary_slots`]."] set_max_temporary_slots { slots : :: core :: primitive :: u32 , } , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Error` enum of this pallet."] + pub enum Error { + #[codec(index = 0)] + #[doc = "The specified parachain is not registered."] + ParaDoesntExist, + #[codec(index = 1)] + #[doc = "Not a parathread (on-demand parachain)."] + NotParathread, + #[codec(index = 2)] + #[doc = "Cannot upgrade on-demand parachain to lease holding"] + #[doc = "parachain."] + CannotUpgrade, + #[codec(index = 3)] + #[doc = "Cannot downgrade lease holding parachain to"] + #[doc = "on-demand."] + CannotDowngrade, + #[codec(index = 4)] + #[doc = "Permanent or Temporary slot already assigned."] + SlotAlreadyAssigned, + #[codec(index = 5)] + #[doc = "Permanent or Temporary slot has not been assigned."] + SlotNotAssigned, + #[codec(index = 6)] + #[doc = "An ongoing lease already exists."] + OngoingLeaseExists, + #[codec(index = 7)] + MaxPermanentSlotsExceeded, + #[codec(index = 8)] + MaxTemporarySlotsExceeded, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Event` enum of this pallet"] + pub enum Event { + #[codec(index = 0)] + #[doc = "A parachain was assigned a permanent parachain slot"] + PermanentSlotAssigned( + runtime_types::polkadot_parachain_primitives::primitives::Id, + ), + #[codec(index = 1)] + #[doc = "A parachain was assigned a temporary parachain slot"] + TemporarySlotAssigned( + runtime_types::polkadot_parachain_primitives::primitives::Id, + ), + #[codec(index = 2)] + #[doc = "The maximum number of permanent slots has been changed"] + MaxPermanentSlotsChanged { slots: ::core::primitive::u32 }, + #[codec(index = 3)] + #[doc = "The maximum number of temporary slots has been changed"] + MaxTemporarySlotsChanged { slots: ::core::primitive::u32 }, + } + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -46353,15 +47106,13 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum ValidityAttestation { - #[codec(index = 1)] - Implicit(runtime_types::polkadot_primitives::v5::validator_app::Signature), - #[codec(index = 2)] - Explicit(runtime_types::polkadot_primitives::v5::validator_app::Signature), + 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: ::core::primitive::u32, } - } - pub mod vstaging { - use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -46372,638 +47123,13 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct AsyncBackingParams { - pub max_candidate_depth: ::core::primitive::u32, - pub allowed_ancestry_len: ::core::primitive::u32, - } - } - } - pub mod polkadot_runtime { - use super::runtime_types; - pub mod governance { - use super::runtime_types; - pub mod origins { - use super::runtime_types; - pub mod pallet_custom_origins { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Origin { - #[codec(index = 0)] - StakingAdmin, - #[codec(index = 1)] - Treasurer, - #[codec(index = 2)] - FellowshipAdmin, - #[codec(index = 3)] - GeneralAdmin, - #[codec(index = 4)] - AuctionAdmin, - #[codec(index = 5)] - LeaseAdmin, - #[codec(index = 6)] - ReferendumCanceller, - #[codec(index = 7)] - ReferendumKiller, - #[codec(index = 8)] - SmallTipper, - #[codec(index = 9)] - BigTipper, - #[codec(index = 10)] - SmallSpender, - #[codec(index = 11)] - MediumSpender, - #[codec(index = 12)] - BigSpender, - #[codec(index = 13)] - WhitelistedCaller, - } - } + pub enum SlotLeasePeriodStart { + #[codec(index = 0)] + Current, + #[codec(index = 1)] + Next, } } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct NposCompactSolution16 { - pub votes1: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes2: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - ( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ), - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes3: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 2usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes4: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 3usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes5: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 4usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes6: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 5usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes7: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 6usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes8: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 7usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes9: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 8usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes10: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 9usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes11: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 10usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes12: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 11usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes13: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 12usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes14: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 13usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes15: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 14usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - pub votes16: ::std::vec::Vec<( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 15usize], - ::subxt::ext::codec::Compact<::core::primitive::u16>, - )>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum OriginCaller { - # [codec (index = 0)] system (runtime_types :: frame_support :: dispatch :: RawOrigin < :: subxt :: utils :: AccountId32 > ,) , # [codec (index = 15)] Council (runtime_types :: pallet_collective :: RawOrigin < :: subxt :: utils :: AccountId32 > ,) , # [codec (index = 16)] TechnicalCommittee (runtime_types :: pallet_collective :: RawOrigin < :: subxt :: utils :: AccountId32 > ,) , # [codec (index = 22)] Origins (runtime_types :: polkadot_runtime :: governance :: origins :: pallet_custom_origins :: Origin ,) , # [codec (index = 50)] ParachainsOrigin (runtime_types :: polkadot_runtime_parachains :: origin :: pallet :: Origin ,) , # [codec (index = 99)] XcmPallet (runtime_types :: pallet_xcm :: pallet :: Origin ,) , # [codec (index = 6)] Void (runtime_types :: sp_core :: Void ,) , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - 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, - #[codec(index = 8)] - NominationPools, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Runtime; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum RuntimeCall { - #[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 = 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::Call2), - #[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 = 20)] - ConvictionVoting(runtime_types::pallet_conviction_voting::pallet::Call), - #[codec(index = 21)] - Referenda(runtime_types::pallet_referenda::pallet::Call), - #[codec(index = 23)] - Whitelist(runtime_types::pallet_whitelist::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)] - VoterList(runtime_types::pallet_bags_list::pallet::Call), - #[codec(index = 39)] - NominationPools(runtime_types::pallet_nomination_pools::pallet::Call), - #[codec(index = 40)] - FastUnstake(runtime_types::pallet_fast_unstake::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 = 60)] - Hrmp(runtime_types::polkadot_runtime_parachains::hrmp::pallet::Call), - #[codec(index = 62)] - ParasDisputes(runtime_types::polkadot_runtime_parachains::disputes::pallet::Call), - #[codec(index = 63)] - ParasSlashing( - runtime_types::polkadot_runtime_parachains::disputes::slashing::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 = 100)] - MessageQueue(runtime_types::pallet_message_queue::pallet::Call), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum RuntimeError { - #[codec(index = 0)] - System(runtime_types::frame_system::pallet::Error), - #[codec(index = 1)] - Scheduler(runtime_types::pallet_scheduler::pallet::Error), - #[codec(index = 10)] - Preimage(runtime_types::pallet_preimage::pallet::Error), - #[codec(index = 2)] - Babe(runtime_types::pallet_babe::pallet::Error), - #[codec(index = 4)] - Indices(runtime_types::pallet_indices::pallet::Error), - #[codec(index = 5)] - Balances(runtime_types::pallet_balances::pallet::Error), - #[codec(index = 7)] - Staking(runtime_types::pallet_staking::pallet::pallet::Error), - #[codec(index = 9)] - Session(runtime_types::pallet_session::pallet::Error), - #[codec(index = 11)] - Grandpa(runtime_types::pallet_grandpa::pallet::Error), - #[codec(index = 12)] - ImOnline(runtime_types::pallet_im_online::pallet::Error), - #[codec(index = 14)] - Democracy(runtime_types::pallet_democracy::pallet::Error), - #[codec(index = 15)] - Council(runtime_types::pallet_collective::pallet::Error), - #[codec(index = 16)] - TechnicalCommittee(runtime_types::pallet_collective::pallet::Error2), - #[codec(index = 17)] - PhragmenElection(runtime_types::pallet_elections_phragmen::pallet::Error), - #[codec(index = 18)] - TechnicalMembership(runtime_types::pallet_membership::pallet::Error), - #[codec(index = 19)] - Treasury(runtime_types::pallet_treasury::pallet::Error), - #[codec(index = 20)] - ConvictionVoting(runtime_types::pallet_conviction_voting::pallet::Error), - #[codec(index = 21)] - Referenda(runtime_types::pallet_referenda::pallet::Error), - #[codec(index = 23)] - Whitelist(runtime_types::pallet_whitelist::pallet::Error), - #[codec(index = 24)] - Claims(runtime_types::polkadot_runtime_common::claims::pallet::Error), - #[codec(index = 25)] - Vesting(runtime_types::pallet_vesting::pallet::Error), - #[codec(index = 26)] - Utility(runtime_types::pallet_utility::pallet::Error), - #[codec(index = 28)] - Identity(runtime_types::pallet_identity::pallet::Error), - #[codec(index = 29)] - Proxy(runtime_types::pallet_proxy::pallet::Error), - #[codec(index = 30)] - Multisig(runtime_types::pallet_multisig::pallet::Error), - #[codec(index = 34)] - Bounties(runtime_types::pallet_bounties::pallet::Error), - #[codec(index = 38)] - ChildBounties(runtime_types::pallet_child_bounties::pallet::Error), - #[codec(index = 35)] - Tips(runtime_types::pallet_tips::pallet::Error), - #[codec(index = 36)] - ElectionProviderMultiPhase( - runtime_types::pallet_election_provider_multi_phase::pallet::Error, - ), - #[codec(index = 37)] - VoterList(runtime_types::pallet_bags_list::pallet::Error), - #[codec(index = 39)] - NominationPools(runtime_types::pallet_nomination_pools::pallet::Error), - #[codec(index = 40)] - FastUnstake(runtime_types::pallet_fast_unstake::pallet::Error), - #[codec(index = 51)] - Configuration( - runtime_types::polkadot_runtime_parachains::configuration::pallet::Error, - ), - #[codec(index = 53)] - ParaInclusion(runtime_types::polkadot_runtime_parachains::inclusion::pallet::Error), - #[codec(index = 54)] - ParaInherent( - runtime_types::polkadot_runtime_parachains::paras_inherent::pallet::Error, - ), - #[codec(index = 56)] - Paras(runtime_types::polkadot_runtime_parachains::paras::pallet::Error), - #[codec(index = 60)] - Hrmp(runtime_types::polkadot_runtime_parachains::hrmp::pallet::Error), - #[codec(index = 62)] - ParasDisputes(runtime_types::polkadot_runtime_parachains::disputes::pallet::Error), - #[codec(index = 63)] - ParasSlashing( - runtime_types::polkadot_runtime_parachains::disputes::slashing::pallet::Error, - ), - #[codec(index = 70)] - Registrar(runtime_types::polkadot_runtime_common::paras_registrar::pallet::Error), - #[codec(index = 71)] - Slots(runtime_types::polkadot_runtime_common::slots::pallet::Error), - #[codec(index = 72)] - Auctions(runtime_types::polkadot_runtime_common::auctions::pallet::Error), - #[codec(index = 73)] - Crowdloan(runtime_types::polkadot_runtime_common::crowdloan::pallet::Error), - #[codec(index = 99)] - XcmPallet(runtime_types::pallet_xcm::pallet::Error), - #[codec(index = 100)] - MessageQueue(runtime_types::pallet_message_queue::pallet::Error), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum RuntimeEvent { - #[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 = 32)] - TransactionPayment(runtime_types::pallet_transaction_payment::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::Event2), - #[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 = 20)] - ConvictionVoting(runtime_types::pallet_conviction_voting::pallet::Event), - #[codec(index = 21)] - Referenda(runtime_types::pallet_referenda::pallet::Event), - #[codec(index = 23)] - Whitelist(runtime_types::pallet_whitelist::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)] - VoterList(runtime_types::pallet_bags_list::pallet::Event), - #[codec(index = 39)] - NominationPools(runtime_types::pallet_nomination_pools::pallet::Event), - #[codec(index = 40)] - FastUnstake(runtime_types::pallet_fast_unstake::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 = 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), - #[codec(index = 100)] - MessageQueue(runtime_types::pallet_message_queue::pallet::Event), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum RuntimeHoldReason {} - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SessionKeys { - pub grandpa: runtime_types::sp_consensus_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::v5::validator_app::Public, - pub para_assignment: runtime_types::polkadot_primitives::v5::assignment_app::Public, - pub authority_discovery: runtime_types::sp_authority_discovery::app::Public, - } - } - pub mod polkadot_runtime_common { - use super::runtime_types; pub mod auctions { use super::runtime_types; pub mod pallet { @@ -47032,7 +47158,7 @@ pub mod api { #[doc = "See [`Pallet::bid`]."] bid { #[codec(compact)] - para: runtime_types::polkadot_parachain::primitives::Id, + para: runtime_types::polkadot_parachain_primitives::primitives::Id, #[codec(compact)] auction_index: ::core::primitive::u32, #[codec(compact)] @@ -47120,10 +47246,10 @@ pub mod api { amount: ::core::primitive::u128, }, #[codec(index = 4)] - #[doc = "Someone attempted to lease the same slot twice for a parachain. The amount is held in reserve"] - #[doc = "but no parachain slot has been leased."] + #[doc = "Someone attempted to lease the same slot twice for a parachain. The amount is held in"] + #[doc = "reserve but no parachain slot has been leased."] ReserveConfiscated { - para_id: runtime_types::polkadot_parachain::primitives::Id, + para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, leaser: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, @@ -47131,13 +47257,14 @@ pub mod api { #[doc = "A new bid has been accepted as the current winner."] BidAccepted { bidder: ::subxt::utils::AccountId32, - para_id: runtime_types::polkadot_parachain::primitives::Id, + para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, amount: ::core::primitive::u128, first_slot: ::core::primitive::u32, last_slot: ::core::primitive::u32, }, #[codec(index = 6)] - #[doc = "The winning offset was chosen for an auction. This will map into the `Winning` storage map."] + #[doc = "The winning offset was chosen for an auction. This will map into the `Winning` storage"] + #[doc = "map."] WinningOffset { auction_index: ::core::primitive::u32, block_number: ::core::primitive::u32, @@ -47225,8 +47352,8 @@ pub mod api { #[doc = "Account ID sending transaction has no claim."] SenderHasNoClaim, #[codec(index = 3)] - #[doc = "There's not enough in the pot to pay out some unvested amount. Generally implies a logic"] - #[doc = "error."] + #[doc = "There's not enough in the pot to pay out some unvested amount. Generally implies a"] + #[doc = "logic error."] PotUnderflow, #[codec(index = 4)] #[doc = "A needed statement was not included."] @@ -47289,17 +47416,6 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct PrevalidateAttests; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum StatementKind { #[codec(index = 0)] Regular, @@ -47327,7 +47443,7 @@ pub mod api { #[doc = "See [`Pallet::create`]."] create { #[codec(compact)] - index: runtime_types::polkadot_parachain::primitives::Id, + index: runtime_types::polkadot_parachain_primitives::primitives::Id, #[codec(compact)] cap: ::core::primitive::u128, #[codec(compact)] @@ -47343,7 +47459,7 @@ pub mod api { #[doc = "See [`Pallet::contribute`]."] contribute { #[codec(compact)] - index: runtime_types::polkadot_parachain::primitives::Id, + index: runtime_types::polkadot_parachain_primitives::primitives::Id, #[codec(compact)] value: ::core::primitive::u128, signature: @@ -47354,25 +47470,25 @@ pub mod api { withdraw { who: ::subxt::utils::AccountId32, #[codec(compact)] - index: runtime_types::polkadot_parachain::primitives::Id, + index: runtime_types::polkadot_parachain_primitives::primitives::Id, }, #[codec(index = 3)] #[doc = "See [`Pallet::refund`]."] refund { #[codec(compact)] - index: runtime_types::polkadot_parachain::primitives::Id, + index: runtime_types::polkadot_parachain_primitives::primitives::Id, }, #[codec(index = 4)] #[doc = "See [`Pallet::dissolve`]."] dissolve { #[codec(compact)] - index: runtime_types::polkadot_parachain::primitives::Id, + index: runtime_types::polkadot_parachain_primitives::primitives::Id, }, #[codec(index = 5)] #[doc = "See [`Pallet::edit`]."] edit { #[codec(compact)] - index: runtime_types::polkadot_parachain::primitives::Id, + index: runtime_types::polkadot_parachain_primitives::primitives::Id, #[codec(compact)] cap: ::core::primitive::u128, #[codec(compact)] @@ -47387,19 +47503,19 @@ pub mod api { #[codec(index = 6)] #[doc = "See [`Pallet::add_memo`]."] add_memo { - index: runtime_types::polkadot_parachain::primitives::Id, + index: runtime_types::polkadot_parachain_primitives::primitives::Id, memo: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 7)] #[doc = "See [`Pallet::poke`]."] poke { - index: runtime_types::polkadot_parachain::primitives::Id, + index: runtime_types::polkadot_parachain_primitives::primitives::Id, }, #[codec(index = 8)] #[doc = "See [`Pallet::contribute_all`]."] contribute_all { #[codec(compact)] - index: runtime_types::polkadot_parachain::primitives::Id, + index: runtime_types::polkadot_parachain_primitives::primitives::Id, signature: ::core::option::Option, }, @@ -47468,7 +47584,8 @@ pub mod api { #[doc = "There are no contributions stored in this crowdloan."] NoContributions, #[codec(index = 17)] - #[doc = "The crowdloan is not ready to dissolve. Potentially still has a slot or in retirement period."] + #[doc = "The crowdloan is not ready to dissolve. Potentially still has a slot or in retirement"] + #[doc = "period."] NotReadyToDissolve, #[codec(index = 18)] #[doc = "Invalid signature."] @@ -47501,42 +47618,44 @@ pub mod api { #[codec(index = 0)] #[doc = "Create a new crowdloaning campaign."] Created { - para_id: runtime_types::polkadot_parachain::primitives::Id, + para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, }, #[codec(index = 1)] #[doc = "Contributed to a crowd sale."] Contributed { who: ::subxt::utils::AccountId32, - fund_index: runtime_types::polkadot_parachain::primitives::Id, + fund_index: + runtime_types::polkadot_parachain_primitives::primitives::Id, amount: ::core::primitive::u128, }, #[codec(index = 2)] #[doc = "Withdrew full balance of a contributor."] Withdrew { who: ::subxt::utils::AccountId32, - fund_index: runtime_types::polkadot_parachain::primitives::Id, + fund_index: + runtime_types::polkadot_parachain_primitives::primitives::Id, amount: ::core::primitive::u128, }, #[codec(index = 3)] #[doc = "The loans in a fund have been partially dissolved, i.e. there are some left"] #[doc = "over child keys that still need to be killed."] PartiallyRefunded { - para_id: runtime_types::polkadot_parachain::primitives::Id, + para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, }, #[codec(index = 4)] #[doc = "All loans in a fund have been refunded."] AllRefunded { - para_id: runtime_types::polkadot_parachain::primitives::Id, + para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, }, #[codec(index = 5)] #[doc = "Fund is dissolved."] Dissolved { - para_id: runtime_types::polkadot_parachain::primitives::Id, + para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, }, #[codec(index = 6)] #[doc = "The result of trying to submit a new bid to the Slots pallet."] HandleBidResult { - para_id: runtime_types::polkadot_parachain::primitives::Id, + para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, result: ::core::result::Result< (), runtime_types::sp_runtime::DispatchError, @@ -47545,19 +47664,19 @@ pub mod api { #[codec(index = 7)] #[doc = "The configuration to a crowdloan has been edited."] Edited { - para_id: runtime_types::polkadot_parachain::primitives::Id, + para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, }, #[codec(index = 8)] #[doc = "A memo has been updated."] MemoUpdated { who: ::subxt::utils::AccountId32, - para_id: runtime_types::polkadot_parachain::primitives::Id, + para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, memo: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 9)] #[doc = "A parachain has been moved to `NewRaise`"] AddedToNewRaise { - para_id: runtime_types::polkadot_parachain::primitives::Id, + para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, }, } } @@ -47603,6 +47722,26 @@ pub mod api { Ending(_0), } } + pub mod impls { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum VersionedLocatableAsset { + #[codec(index = 3)] + V3 { + location: runtime_types::staging_xcm::v3::multilocation::MultiLocation, + asset_id: runtime_types::xcm::v3::multiasset::AssetId, + }, + } + } pub mod paras_registrar { use super::runtime_types; pub mod pallet { @@ -47619,61 +47758,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { - #[codec(index = 0)] - #[doc = "See [`Pallet::register`]."] - register { - id: runtime_types::polkadot_parachain::primitives::Id, - genesis_head: runtime_types::polkadot_parachain::primitives::HeadData, - validation_code: - runtime_types::polkadot_parachain::primitives::ValidationCode, - }, - #[codec(index = 1)] - #[doc = "See [`Pallet::force_register`]."] - force_register { - who: ::subxt::utils::AccountId32, - deposit: ::core::primitive::u128, - id: runtime_types::polkadot_parachain::primitives::Id, - genesis_head: runtime_types::polkadot_parachain::primitives::HeadData, - validation_code: - runtime_types::polkadot_parachain::primitives::ValidationCode, - }, - #[codec(index = 2)] - #[doc = "See [`Pallet::deregister`]."] - deregister { - id: runtime_types::polkadot_parachain::primitives::Id, - }, - #[codec(index = 3)] - #[doc = "See [`Pallet::swap`]."] - swap { - id: runtime_types::polkadot_parachain::primitives::Id, - other: runtime_types::polkadot_parachain::primitives::Id, - }, - #[codec(index = 4)] - #[doc = "See [`Pallet::remove_lock`]."] - remove_lock { - para: runtime_types::polkadot_parachain::primitives::Id, - }, - #[codec(index = 5)] - #[doc = "See [`Pallet::reserve`]."] - reserve, - #[codec(index = 6)] - #[doc = "See [`Pallet::add_lock`]."] - add_lock { - para: runtime_types::polkadot_parachain::primitives::Id, - }, - #[codec(index = 7)] - #[doc = "See [`Pallet::schedule_code_upgrade`]."] - schedule_code_upgrade { - para: runtime_types::polkadot_parachain::primitives::Id, - new_code: runtime_types::polkadot_parachain::primitives::ValidationCode, - }, - #[codec(index = 8)] - #[doc = "See [`Pallet::set_current_head`]."] - set_current_head { - para: runtime_types::polkadot_parachain::primitives::Id, - new_head: runtime_types::polkadot_parachain::primitives::HeadData, - }, - } + # [codec (index = 0)] # [doc = "See [`Pallet::register`]."] register { id : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , genesis_head : runtime_types :: polkadot_parachain_primitives :: primitives :: HeadData , validation_code : runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCode , } , # [codec (index = 1)] # [doc = "See [`Pallet::force_register`]."] force_register { who : :: subxt :: utils :: AccountId32 , deposit : :: core :: primitive :: u128 , id : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , genesis_head : runtime_types :: polkadot_parachain_primitives :: primitives :: HeadData , validation_code : runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCode , } , # [codec (index = 2)] # [doc = "See [`Pallet::deregister`]."] deregister { id : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , # [codec (index = 3)] # [doc = "See [`Pallet::swap`]."] swap { id : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , other : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , # [codec (index = 4)] # [doc = "See [`Pallet::remove_lock`]."] remove_lock { para : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , # [codec (index = 5)] # [doc = "See [`Pallet::reserve`]."] reserve , # [codec (index = 6)] # [doc = "See [`Pallet::add_lock`]."] add_lock { para : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , # [codec (index = 7)] # [doc = "See [`Pallet::schedule_code_upgrade`]."] schedule_code_upgrade { para : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , new_code : runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCode , } , # [codec (index = 8)] # [doc = "See [`Pallet::set_current_head`]."] set_current_head { para : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , new_head : runtime_types :: polkadot_parachain_primitives :: primitives :: HeadData , } , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -47705,19 +47790,20 @@ pub mod api { #[doc = "Para is not a Parachain."] NotParachain, #[codec(index = 6)] - #[doc = "Para is not a Parathread."] + #[doc = "Para is not a Parathread (on-demand parachain)."] NotParathread, #[codec(index = 7)] #[doc = "Cannot deregister para"] CannotDeregister, #[codec(index = 8)] - #[doc = "Cannot schedule downgrade of parachain to parathread"] + #[doc = "Cannot schedule downgrade of lease holding parachain to on-demand parachain"] CannotDowngrade, #[codec(index = 9)] - #[doc = "Cannot schedule upgrade of parathread to parachain"] + #[doc = "Cannot schedule upgrade of on-demand parachain to lease holding parachain"] CannotUpgrade, #[codec(index = 10)] - #[doc = "Para is locked from manipulation by the manager. Must use parachain or relay chain governance."] + #[doc = "Para is locked from manipulation by the manager. Must use parachain or relay chain"] + #[doc = "governance."] ParaLocked, #[codec(index = 11)] #[doc = "The ID given for registration has not been reserved."] @@ -47726,8 +47812,8 @@ pub mod api { #[doc = "Registering parachain with empty code is not allowed."] EmptyCode, #[codec(index = 13)] - #[doc = "Cannot perform a parachain slot / lifecycle swap. Check that the state of both paras are"] - #[doc = "correct for the swap to work."] + #[doc = "Cannot perform a parachain slot / lifecycle swap. Check that the state of both paras"] + #[doc = "are correct for the swap to work."] CannotSwap, } #[derive( @@ -47744,22 +47830,22 @@ pub mod api { pub enum Event { #[codec(index = 0)] Registered { - para_id: runtime_types::polkadot_parachain::primitives::Id, + para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, manager: ::subxt::utils::AccountId32, }, #[codec(index = 1)] Deregistered { - para_id: runtime_types::polkadot_parachain::primitives::Id, + para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, }, #[codec(index = 2)] Reserved { - para_id: runtime_types::polkadot_parachain::primitives::Id, + para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, who: ::subxt::utils::AccountId32, }, #[codec(index = 3)] Swapped { - para_id: runtime_types::polkadot_parachain::primitives::Id, - other_id: runtime_types::polkadot_parachain::primitives::Id, + para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, + other_id: runtime_types::polkadot_parachain_primitives::primitives::Id, }, } } @@ -47776,7 +47862,100 @@ pub mod api { pub struct ParaInfo<_0, _1> { pub manager: _0, pub deposit: _1, - pub locked: ::core::primitive::bool, + pub locked: ::core::option::Option<::core::primitive::bool>, + } + } + pub mod paras_sudo_wrapper { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call { + #[codec(index = 0)] + #[doc = "See [`Pallet::sudo_schedule_para_initialize`]."] + sudo_schedule_para_initialize { + id: runtime_types::polkadot_parachain_primitives::primitives::Id, + genesis: + runtime_types::polkadot_runtime_parachains::paras::ParaGenesisArgs, + }, + #[codec(index = 1)] + #[doc = "See [`Pallet::sudo_schedule_para_cleanup`]."] + sudo_schedule_para_cleanup { + id: runtime_types::polkadot_parachain_primitives::primitives::Id, + }, + #[codec(index = 2)] + #[doc = "See [`Pallet::sudo_schedule_parathread_upgrade`]."] + sudo_schedule_parathread_upgrade { + id: runtime_types::polkadot_parachain_primitives::primitives::Id, + }, + #[codec(index = 3)] + #[doc = "See [`Pallet::sudo_schedule_parachain_downgrade`]."] + sudo_schedule_parachain_downgrade { + id: runtime_types::polkadot_parachain_primitives::primitives::Id, + }, + #[codec(index = 4)] + #[doc = "See [`Pallet::sudo_queue_downward_xcm`]."] + sudo_queue_downward_xcm { + id: runtime_types::polkadot_parachain_primitives::primitives::Id, + xcm: ::std::boxed::Box, + }, + #[codec(index = 5)] + #[doc = "See [`Pallet::sudo_establish_hrmp_channel`]."] + sudo_establish_hrmp_channel { + sender: runtime_types::polkadot_parachain_primitives::primitives::Id, + recipient: runtime_types::polkadot_parachain_primitives::primitives::Id, + max_capacity: ::core::primitive::u32, + max_message_size: ::core::primitive::u32, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Error` enum of this pallet."] + pub enum Error { + #[codec(index = 0)] + #[doc = "The specified parachain is not registered."] + ParaDoesntExist, + #[codec(index = 1)] + #[doc = "The specified parachain is already registered."] + ParaAlreadyExists, + #[codec(index = 2)] + #[doc = "A DMP message couldn't be sent because it exceeds the maximum size allowed for a"] + #[doc = "downward message."] + ExceedsMaxMessageSize, + #[codec(index = 3)] + #[doc = "Could not schedule para cleanup."] + CouldntCleanup, + #[codec(index = 4)] + #[doc = "Not a parathread (on-demand parachain)."] + NotParathread, + #[codec(index = 5)] + #[doc = "Not a lease holding parachain."] + NotParachain, + #[codec(index = 6)] + #[doc = "Cannot upgrade on-demand parachain to lease holding parachain."] + CannotUpgrade, + #[codec(index = 7)] + #[doc = "Cannot downgrade lease holding parachain to on-demand."] + CannotDowngrade, + } } } pub mod slots { @@ -47798,7 +47977,7 @@ pub mod api { #[codec(index = 0)] #[doc = "See [`Pallet::force_lease`]."] force_lease { - para: runtime_types::polkadot_parachain::primitives::Id, + para: runtime_types::polkadot_parachain_primitives::primitives::Id, leaser: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, period_begin: ::core::primitive::u32, @@ -47807,12 +47986,12 @@ pub mod api { #[codec(index = 1)] #[doc = "See [`Pallet::clear_all_leases`]."] clear_all_leases { - para: runtime_types::polkadot_parachain::primitives::Id, + para: runtime_types::polkadot_parachain_primitives::primitives::Id, }, #[codec(index = 2)] #[doc = "See [`Pallet::trigger_onboard`]."] trigger_onboard { - para: runtime_types::polkadot_parachain::primitives::Id, + para: runtime_types::polkadot_parachain_primitives::primitives::Id, }, } #[derive( @@ -47856,7 +48035,7 @@ pub mod api { #[doc = "First balance is any extra amount reserved on top of the para's existing deposit."] #[doc = "Second balance is the total amount reserved."] Leased { - para_id: runtime_types::polkadot_parachain::primitives::Id, + para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, leaser: ::subxt::utils::AccountId32, period_begin: ::core::primitive::u32, period_count: ::core::primitive::u32, @@ -47869,6 +48048,103 @@ pub mod api { } pub mod polkadot_runtime_parachains { use super::runtime_types; + pub mod assigner_on_demand { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call { + #[codec(index = 0)] + #[doc = "See [`Pallet::place_order_allow_death`]."] + place_order_allow_death { + max_amount: ::core::primitive::u128, + para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, + }, + #[codec(index = 1)] + #[doc = "See [`Pallet::place_order_keep_alive`]."] + place_order_keep_alive { + max_amount: ::core::primitive::u128, + para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Error` enum of this pallet."] + pub enum Error { + #[codec(index = 0)] + #[doc = "The `ParaId` supplied to the `place_order` call is not a valid `ParaThread`, making the"] + #[doc = "call is invalid."] + InvalidParaId, + #[codec(index = 1)] + #[doc = "The order queue is full, `place_order` will not continue."] + QueueFull, + #[codec(index = 2)] + #[doc = "The current spot price is higher than the max amount specified in the `place_order`"] + #[doc = "call, making it invalid."] + SpotPriceHigherThanMaxAmount, + #[codec(index = 3)] + #[doc = "There are no on demand cores available. `place_order` will not add anything to the"] + #[doc = "queue."] + NoOnDemandCores, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Event` enum of this pallet"] + pub enum Event { + #[codec(index = 0)] + #[doc = "An order was placed at some spot price amount."] + OnDemandOrderPlaced { + para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, + spot_price: ::core::primitive::u128, + }, + #[codec(index = 1)] + #[doc = "The value of the spot traffic multiplier changed."] + SpotTrafficSet { + traffic: runtime_types::sp_arithmetic::fixed_point::FixedU128, + }, + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CoreAffinityCount { + pub core_idx: runtime_types::polkadot_primitives::v6::CoreIndex, + pub count: ::core::primitive::u32, + } + } pub mod configuration { use super::runtime_types; pub mod pallet { @@ -47885,7 +48161,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { - # [codec (index = 0)] # [doc = "See [`Pallet::set_validation_upgrade_cooldown`]."] set_validation_upgrade_cooldown { new : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "See [`Pallet::set_validation_upgrade_delay`]."] set_validation_upgrade_delay { new : :: core :: primitive :: u32 , } , # [codec (index = 2)] # [doc = "See [`Pallet::set_code_retention_period`]."] set_code_retention_period { new : :: core :: primitive :: u32 , } , # [codec (index = 3)] # [doc = "See [`Pallet::set_max_code_size`]."] set_max_code_size { new : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "See [`Pallet::set_max_pov_size`]."] set_max_pov_size { new : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "See [`Pallet::set_max_head_data_size`]."] set_max_head_data_size { new : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "See [`Pallet::set_parathread_cores`]."] set_parathread_cores { new : :: core :: primitive :: u32 , } , # [codec (index = 7)] # [doc = "See [`Pallet::set_parathread_retries`]."] set_parathread_retries { new : :: core :: primitive :: u32 , } , # [codec (index = 8)] # [doc = "See [`Pallet::set_group_rotation_frequency`]."] set_group_rotation_frequency { new : :: core :: primitive :: u32 , } , # [codec (index = 9)] # [doc = "See [`Pallet::set_chain_availability_period`]."] set_chain_availability_period { new : :: core :: primitive :: u32 , } , # [codec (index = 10)] # [doc = "See [`Pallet::set_thread_availability_period`]."] set_thread_availability_period { new : :: core :: primitive :: u32 , } , # [codec (index = 11)] # [doc = "See [`Pallet::set_scheduling_lookahead`]."] set_scheduling_lookahead { new : :: core :: primitive :: u32 , } , # [codec (index = 12)] # [doc = "See [`Pallet::set_max_validators_per_core`]."] set_max_validators_per_core { new : :: core :: option :: Option < :: core :: primitive :: u32 > , } , # [codec (index = 13)] # [doc = "See [`Pallet::set_max_validators`]."] set_max_validators { new : :: core :: option :: Option < :: core :: primitive :: u32 > , } , # [codec (index = 14)] # [doc = "See [`Pallet::set_dispute_period`]."] set_dispute_period { new : :: core :: primitive :: u32 , } , # [codec (index = 15)] # [doc = "See [`Pallet::set_dispute_post_conclusion_acceptance_period`]."] set_dispute_post_conclusion_acceptance_period { new : :: core :: primitive :: u32 , } , # [codec (index = 18)] # [doc = "See [`Pallet::set_no_show_slots`]."] set_no_show_slots { new : :: core :: primitive :: u32 , } , # [codec (index = 19)] # [doc = "See [`Pallet::set_n_delay_tranches`]."] set_n_delay_tranches { new : :: core :: primitive :: u32 , } , # [codec (index = 20)] # [doc = "See [`Pallet::set_zeroth_delay_tranche_width`]."] set_zeroth_delay_tranche_width { new : :: core :: primitive :: u32 , } , # [codec (index = 21)] # [doc = "See [`Pallet::set_needed_approvals`]."] set_needed_approvals { new : :: core :: primitive :: u32 , } , # [codec (index = 22)] # [doc = "See [`Pallet::set_relay_vrf_modulo_samples`]."] set_relay_vrf_modulo_samples { new : :: core :: primitive :: u32 , } , # [codec (index = 23)] # [doc = "See [`Pallet::set_max_upward_queue_count`]."] set_max_upward_queue_count { new : :: core :: primitive :: u32 , } , # [codec (index = 24)] # [doc = "See [`Pallet::set_max_upward_queue_size`]."] set_max_upward_queue_size { new : :: core :: primitive :: u32 , } , # [codec (index = 25)] # [doc = "See [`Pallet::set_max_downward_message_size`]."] set_max_downward_message_size { new : :: core :: primitive :: u32 , } , # [codec (index = 27)] # [doc = "See [`Pallet::set_max_upward_message_size`]."] set_max_upward_message_size { new : :: core :: primitive :: u32 , } , # [codec (index = 28)] # [doc = "See [`Pallet::set_max_upward_message_num_per_candidate`]."] set_max_upward_message_num_per_candidate { new : :: core :: primitive :: u32 , } , # [codec (index = 29)] # [doc = "See [`Pallet::set_hrmp_open_request_ttl`]."] set_hrmp_open_request_ttl { new : :: core :: primitive :: u32 , } , # [codec (index = 30)] # [doc = "See [`Pallet::set_hrmp_sender_deposit`]."] set_hrmp_sender_deposit { new : :: core :: primitive :: u128 , } , # [codec (index = 31)] # [doc = "See [`Pallet::set_hrmp_recipient_deposit`]."] set_hrmp_recipient_deposit { new : :: core :: primitive :: u128 , } , # [codec (index = 32)] # [doc = "See [`Pallet::set_hrmp_channel_max_capacity`]."] set_hrmp_channel_max_capacity { new : :: core :: primitive :: u32 , } , # [codec (index = 33)] # [doc = "See [`Pallet::set_hrmp_channel_max_total_size`]."] set_hrmp_channel_max_total_size { new : :: core :: primitive :: u32 , } , # [codec (index = 34)] # [doc = "See [`Pallet::set_hrmp_max_parachain_inbound_channels`]."] set_hrmp_max_parachain_inbound_channels { new : :: core :: primitive :: u32 , } , # [codec (index = 35)] # [doc = "See [`Pallet::set_hrmp_max_parathread_inbound_channels`]."] set_hrmp_max_parathread_inbound_channels { new : :: core :: primitive :: u32 , } , # [codec (index = 36)] # [doc = "See [`Pallet::set_hrmp_channel_max_message_size`]."] set_hrmp_channel_max_message_size { new : :: core :: primitive :: u32 , } , # [codec (index = 37)] # [doc = "See [`Pallet::set_hrmp_max_parachain_outbound_channels`]."] set_hrmp_max_parachain_outbound_channels { new : :: core :: primitive :: u32 , } , # [codec (index = 38)] # [doc = "See [`Pallet::set_hrmp_max_parathread_outbound_channels`]."] set_hrmp_max_parathread_outbound_channels { new : :: core :: primitive :: u32 , } , # [codec (index = 39)] # [doc = "See [`Pallet::set_hrmp_max_message_num_per_candidate`]."] set_hrmp_max_message_num_per_candidate { new : :: core :: primitive :: u32 , } , # [codec (index = 41)] # [doc = "See [`Pallet::set_pvf_checking_enabled`]."] set_pvf_checking_enabled { new : :: core :: primitive :: bool , } , # [codec (index = 42)] # [doc = "See [`Pallet::set_pvf_voting_ttl`]."] set_pvf_voting_ttl { new : :: core :: primitive :: u32 , } , # [codec (index = 43)] # [doc = "See [`Pallet::set_minimum_validation_upgrade_delay`]."] set_minimum_validation_upgrade_delay { new : :: core :: primitive :: u32 , } , # [codec (index = 44)] # [doc = "See [`Pallet::set_bypass_consistency_check`]."] set_bypass_consistency_check { new : :: core :: primitive :: bool , } , # [codec (index = 45)] # [doc = "See [`Pallet::set_async_backing_params`]."] set_async_backing_params { new : runtime_types :: polkadot_primitives :: vstaging :: AsyncBackingParams , } , # [codec (index = 46)] # [doc = "See [`Pallet::set_executor_params`]."] set_executor_params { new : runtime_types :: polkadot_primitives :: v5 :: executor_params :: ExecutorParams , } , } + # [codec (index = 0)] # [doc = "See [`Pallet::set_validation_upgrade_cooldown`]."] set_validation_upgrade_cooldown { new : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "See [`Pallet::set_validation_upgrade_delay`]."] set_validation_upgrade_delay { new : :: core :: primitive :: u32 , } , # [codec (index = 2)] # [doc = "See [`Pallet::set_code_retention_period`]."] set_code_retention_period { new : :: core :: primitive :: u32 , } , # [codec (index = 3)] # [doc = "See [`Pallet::set_max_code_size`]."] set_max_code_size { new : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "See [`Pallet::set_max_pov_size`]."] set_max_pov_size { new : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "See [`Pallet::set_max_head_data_size`]."] set_max_head_data_size { new : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "See [`Pallet::set_on_demand_cores`]."] set_on_demand_cores { new : :: core :: primitive :: u32 , } , # [codec (index = 7)] # [doc = "See [`Pallet::set_on_demand_retries`]."] set_on_demand_retries { new : :: core :: primitive :: u32 , } , # [codec (index = 8)] # [doc = "See [`Pallet::set_group_rotation_frequency`]."] set_group_rotation_frequency { new : :: core :: primitive :: u32 , } , # [codec (index = 9)] # [doc = "See [`Pallet::set_paras_availability_period`]."] set_paras_availability_period { new : :: core :: primitive :: u32 , } , # [codec (index = 11)] # [doc = "See [`Pallet::set_scheduling_lookahead`]."] set_scheduling_lookahead { new : :: core :: primitive :: u32 , } , # [codec (index = 12)] # [doc = "See [`Pallet::set_max_validators_per_core`]."] set_max_validators_per_core { new : :: core :: option :: Option < :: core :: primitive :: u32 > , } , # [codec (index = 13)] # [doc = "See [`Pallet::set_max_validators`]."] set_max_validators { new : :: core :: option :: Option < :: core :: primitive :: u32 > , } , # [codec (index = 14)] # [doc = "See [`Pallet::set_dispute_period`]."] set_dispute_period { new : :: core :: primitive :: u32 , } , # [codec (index = 15)] # [doc = "See [`Pallet::set_dispute_post_conclusion_acceptance_period`]."] set_dispute_post_conclusion_acceptance_period { new : :: core :: primitive :: u32 , } , # [codec (index = 18)] # [doc = "See [`Pallet::set_no_show_slots`]."] set_no_show_slots { new : :: core :: primitive :: u32 , } , # [codec (index = 19)] # [doc = "See [`Pallet::set_n_delay_tranches`]."] set_n_delay_tranches { new : :: core :: primitive :: u32 , } , # [codec (index = 20)] # [doc = "See [`Pallet::set_zeroth_delay_tranche_width`]."] set_zeroth_delay_tranche_width { new : :: core :: primitive :: u32 , } , # [codec (index = 21)] # [doc = "See [`Pallet::set_needed_approvals`]."] set_needed_approvals { new : :: core :: primitive :: u32 , } , # [codec (index = 22)] # [doc = "See [`Pallet::set_relay_vrf_modulo_samples`]."] set_relay_vrf_modulo_samples { new : :: core :: primitive :: u32 , } , # [codec (index = 23)] # [doc = "See [`Pallet::set_max_upward_queue_count`]."] set_max_upward_queue_count { new : :: core :: primitive :: u32 , } , # [codec (index = 24)] # [doc = "See [`Pallet::set_max_upward_queue_size`]."] set_max_upward_queue_size { new : :: core :: primitive :: u32 , } , # [codec (index = 25)] # [doc = "See [`Pallet::set_max_downward_message_size`]."] set_max_downward_message_size { new : :: core :: primitive :: u32 , } , # [codec (index = 27)] # [doc = "See [`Pallet::set_max_upward_message_size`]."] set_max_upward_message_size { new : :: core :: primitive :: u32 , } , # [codec (index = 28)] # [doc = "See [`Pallet::set_max_upward_message_num_per_candidate`]."] set_max_upward_message_num_per_candidate { new : :: core :: primitive :: u32 , } , # [codec (index = 29)] # [doc = "See [`Pallet::set_hrmp_open_request_ttl`]."] set_hrmp_open_request_ttl { new : :: core :: primitive :: u32 , } , # [codec (index = 30)] # [doc = "See [`Pallet::set_hrmp_sender_deposit`]."] set_hrmp_sender_deposit { new : :: core :: primitive :: u128 , } , # [codec (index = 31)] # [doc = "See [`Pallet::set_hrmp_recipient_deposit`]."] set_hrmp_recipient_deposit { new : :: core :: primitive :: u128 , } , # [codec (index = 32)] # [doc = "See [`Pallet::set_hrmp_channel_max_capacity`]."] set_hrmp_channel_max_capacity { new : :: core :: primitive :: u32 , } , # [codec (index = 33)] # [doc = "See [`Pallet::set_hrmp_channel_max_total_size`]."] set_hrmp_channel_max_total_size { new : :: core :: primitive :: u32 , } , # [codec (index = 34)] # [doc = "See [`Pallet::set_hrmp_max_parachain_inbound_channels`]."] set_hrmp_max_parachain_inbound_channels { new : :: core :: primitive :: u32 , } , # [codec (index = 36)] # [doc = "See [`Pallet::set_hrmp_channel_max_message_size`]."] set_hrmp_channel_max_message_size { new : :: core :: primitive :: u32 , } , # [codec (index = 37)] # [doc = "See [`Pallet::set_hrmp_max_parachain_outbound_channels`]."] set_hrmp_max_parachain_outbound_channels { new : :: core :: primitive :: u32 , } , # [codec (index = 39)] # [doc = "See [`Pallet::set_hrmp_max_message_num_per_candidate`]."] set_hrmp_max_message_num_per_candidate { new : :: core :: primitive :: u32 , } , # [codec (index = 42)] # [doc = "See [`Pallet::set_pvf_voting_ttl`]."] set_pvf_voting_ttl { new : :: core :: primitive :: u32 , } , # [codec (index = 43)] # [doc = "See [`Pallet::set_minimum_validation_upgrade_delay`]."] set_minimum_validation_upgrade_delay { new : :: core :: primitive :: u32 , } , # [codec (index = 44)] # [doc = "See [`Pallet::set_bypass_consistency_check`]."] set_bypass_consistency_check { new : :: core :: primitive :: bool , } , # [codec (index = 45)] # [doc = "See [`Pallet::set_async_backing_params`]."] set_async_backing_params { new : runtime_types :: polkadot_primitives :: v6 :: async_backing :: AsyncBackingParams , } , # [codec (index = 46)] # [doc = "See [`Pallet::set_executor_params`]."] set_executor_params { new : runtime_types :: polkadot_primitives :: v6 :: executor_params :: ExecutorParams , } , # [codec (index = 47)] # [doc = "See [`Pallet::set_on_demand_base_fee`]."] set_on_demand_base_fee { new : :: core :: primitive :: u128 , } , # [codec (index = 48)] # [doc = "See [`Pallet::set_on_demand_fee_variability`]."] set_on_demand_fee_variability { new : runtime_types :: sp_arithmetic :: per_things :: Perbill , } , # [codec (index = 49)] # [doc = "See [`Pallet::set_on_demand_queue_max_size`]."] set_on_demand_queue_max_size { new : :: core :: primitive :: u32 , } , # [codec (index = 50)] # [doc = "See [`Pallet::set_on_demand_target_queue_utilization`]."] set_on_demand_target_queue_utilization { new : runtime_types :: sp_arithmetic :: per_things :: Perbill , } , # [codec (index = 51)] # [doc = "See [`Pallet::set_on_demand_ttl`]."] set_on_demand_ttl { new : :: core :: primitive :: u32 , } , # [codec (index = 52)] # [doc = "See [`Pallet::set_minimum_backing_votes`]."] set_minimum_backing_votes { new : :: core :: primitive :: u32 , } , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -47924,26 +48200,30 @@ pub mod api { pub validation_upgrade_cooldown: _0, pub validation_upgrade_delay: _0, pub async_backing_params: - runtime_types::polkadot_primitives::vstaging::AsyncBackingParams, + runtime_types::polkadot_primitives::v6::async_backing::AsyncBackingParams, pub max_pov_size: ::core::primitive::u32, pub max_downward_message_size: ::core::primitive::u32, pub hrmp_max_parachain_outbound_channels: ::core::primitive::u32, - pub hrmp_max_parathread_outbound_channels: ::core::primitive::u32, pub hrmp_sender_deposit: ::core::primitive::u128, pub hrmp_recipient_deposit: ::core::primitive::u128, pub hrmp_channel_max_capacity: ::core::primitive::u32, pub hrmp_channel_max_total_size: ::core::primitive::u32, pub hrmp_max_parachain_inbound_channels: ::core::primitive::u32, - pub hrmp_max_parathread_inbound_channels: ::core::primitive::u32, pub hrmp_channel_max_message_size: ::core::primitive::u32, pub executor_params: - runtime_types::polkadot_primitives::v5::executor_params::ExecutorParams, + runtime_types::polkadot_primitives::v6::executor_params::ExecutorParams, pub code_retention_period: _0, - pub parathread_cores: ::core::primitive::u32, - pub parathread_retries: ::core::primitive::u32, + pub on_demand_cores: ::core::primitive::u32, + pub on_demand_retries: ::core::primitive::u32, + pub on_demand_queue_max_size: ::core::primitive::u32, + pub on_demand_target_queue_utilization: + runtime_types::sp_arithmetic::per_things::Perbill, + pub on_demand_fee_variability: + runtime_types::sp_arithmetic::per_things::Perbill, + pub on_demand_base_fee: ::core::primitive::u128, + pub on_demand_ttl: _0, pub group_rotation_frequency: _0, - pub chain_availability_period: _0, - pub thread_availability_period: _0, + pub paras_availability_period: _0, pub scheduling_lookahead: ::core::primitive::u32, pub max_validators_per_core: ::core::option::Option<_0>, pub max_validators: ::core::option::Option<_0>, @@ -47954,9 +48234,9 @@ pub mod api { pub zeroth_delay_tranche_width: ::core::primitive::u32, pub needed_approvals: ::core::primitive::u32, pub relay_vrf_modulo_samples: ::core::primitive::u32, - pub pvf_checking_enabled: ::core::primitive::bool, pub pvf_voting_ttl: ::core::primitive::u32, pub minimum_validation_upgrade_delay: _0, + pub minimum_backing_votes: ::core::primitive::u32, } } pub mod disputes { @@ -48072,7 +48352,7 @@ pub mod api { #[doc = "See [`Pallet::report_dispute_lost_unsigned`]."] report_dispute_lost_unsigned { dispute_proof: ::std::boxed::Box< - runtime_types::polkadot_primitives::v5::slashing::DisputeProof, + runtime_types::polkadot_primitives::v6::slashing::DisputeProof, >, key_owner_proof: runtime_types::sp_session::MembershipProof, }, @@ -48160,53 +48440,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { - #[codec(index = 0)] - #[doc = "See [`Pallet::hrmp_init_open_channel`]."] - hrmp_init_open_channel { - recipient: runtime_types::polkadot_parachain::primitives::Id, - proposed_max_capacity: ::core::primitive::u32, - proposed_max_message_size: ::core::primitive::u32, - }, - #[codec(index = 1)] - #[doc = "See [`Pallet::hrmp_accept_open_channel`]."] - hrmp_accept_open_channel { - sender: runtime_types::polkadot_parachain::primitives::Id, - }, - #[codec(index = 2)] - #[doc = "See [`Pallet::hrmp_close_channel`]."] - hrmp_close_channel { - channel_id: - runtime_types::polkadot_parachain::primitives::HrmpChannelId, - }, - #[codec(index = 3)] - #[doc = "See [`Pallet::force_clean_hrmp`]."] - force_clean_hrmp { - para: runtime_types::polkadot_parachain::primitives::Id, - inbound: ::core::primitive::u32, - outbound: ::core::primitive::u32, - }, - #[codec(index = 4)] - #[doc = "See [`Pallet::force_process_hrmp_open`]."] - force_process_hrmp_open { channels: ::core::primitive::u32 }, - #[codec(index = 5)] - #[doc = "See [`Pallet::force_process_hrmp_close`]."] - force_process_hrmp_close { channels: ::core::primitive::u32 }, - #[codec(index = 6)] - #[doc = "See [`Pallet::hrmp_cancel_open_request`]."] - hrmp_cancel_open_request { - channel_id: - runtime_types::polkadot_parachain::primitives::HrmpChannelId, - open_requests: ::core::primitive::u32, - }, - #[codec(index = 7)] - #[doc = "See [`Pallet::force_open_hrmp_channel`]."] - force_open_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, - }, - } + # [codec (index = 0)] # [doc = "See [`Pallet::hrmp_init_open_channel`]."] hrmp_init_open_channel { recipient : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , proposed_max_capacity : :: core :: primitive :: u32 , proposed_max_message_size : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "See [`Pallet::hrmp_accept_open_channel`]."] hrmp_accept_open_channel { sender : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , # [codec (index = 2)] # [doc = "See [`Pallet::hrmp_close_channel`]."] hrmp_close_channel { channel_id : runtime_types :: polkadot_parachain_primitives :: primitives :: HrmpChannelId , } , # [codec (index = 3)] # [doc = "See [`Pallet::force_clean_hrmp`]."] force_clean_hrmp { para : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , num_inbound : :: core :: primitive :: u32 , num_outbound : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "See [`Pallet::force_process_hrmp_open`]."] force_process_hrmp_open { channels : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "See [`Pallet::force_process_hrmp_close`]."] force_process_hrmp_close { channels : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "See [`Pallet::hrmp_cancel_open_request`]."] hrmp_cancel_open_request { channel_id : runtime_types :: polkadot_parachain_primitives :: primitives :: HrmpChannelId , open_requests : :: core :: primitive :: u32 , } , # [codec (index = 7)] # [doc = "See [`Pallet::force_open_hrmp_channel`]."] force_open_hrmp_channel { sender : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , recipient : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , max_capacity : :: core :: primitive :: u32 , max_message_size : :: core :: primitive :: u32 , } , # [codec (index = 8)] # [doc = "See [`Pallet::establish_system_channel`]."] establish_system_channel { sender : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , recipient : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , # [codec (index = 9)] # [doc = "See [`Pallet::poke_channel_deposits`]."] poke_channel_deposits { sender : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , recipient : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -48276,6 +48510,9 @@ pub mod api { #[codec(index = 18)] #[doc = "The provided witness data is wrong."] WrongWitness, + #[codec(index = 19)] + #[doc = "The channel between these two chains cannot be authorized."] + ChannelCreationNotAuthorized, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -48289,44 +48526,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The `Event` enum of this pallet"] pub enum Event { - #[codec(index = 0)] - #[doc = "Open HRMP channel requested."] - #[doc = "`[sender, recipient, proposed_max_capacity, proposed_max_message_size]`"] - OpenChannelRequested( - runtime_types::polkadot_parachain::primitives::Id, - runtime_types::polkadot_parachain::primitives::Id, - ::core::primitive::u32, - ::core::primitive::u32, - ), - #[codec(index = 1)] - #[doc = "An HRMP channel request sent by the receiver was canceled by either party."] - #[doc = "`[by_parachain, channel_id]`"] - OpenChannelCanceled( - runtime_types::polkadot_parachain::primitives::Id, - runtime_types::polkadot_parachain::primitives::HrmpChannelId, - ), - #[codec(index = 2)] - #[doc = "Open HRMP channel accepted. `[sender, recipient]`"] - OpenChannelAccepted( - runtime_types::polkadot_parachain::primitives::Id, - runtime_types::polkadot_parachain::primitives::Id, - ), - #[codec(index = 3)] - #[doc = "HRMP channel closed. `[by_parachain, channel_id]`"] - ChannelClosed( - runtime_types::polkadot_parachain::primitives::Id, - runtime_types::polkadot_parachain::primitives::HrmpChannelId, - ), - #[codec(index = 4)] - #[doc = "An HRMP channel was opened via Root origin."] - #[doc = "`[sender, recipient, proposed_max_capacity, proposed_max_message_size]`"] - HrmpChannelForceOpened( - runtime_types::polkadot_parachain::primitives::Id, - runtime_types::polkadot_parachain::primitives::Id, - ::core::primitive::u32, - ::core::primitive::u32, - ), - } + # [codec (index = 0)] # [doc = "Open HRMP channel requested."] OpenChannelRequested { sender : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , recipient : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , proposed_max_capacity : :: core :: primitive :: u32 , proposed_max_message_size : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "An HRMP channel request sent by the receiver was canceled by either party."] OpenChannelCanceled { by_parachain : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , channel_id : runtime_types :: polkadot_parachain_primitives :: primitives :: HrmpChannelId , } , # [codec (index = 2)] # [doc = "Open HRMP channel accepted."] OpenChannelAccepted { sender : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , recipient : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , # [codec (index = 3)] # [doc = "HRMP channel closed."] ChannelClosed { by_parachain : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , channel_id : runtime_types :: polkadot_parachain_primitives :: primitives :: HrmpChannelId , } , # [codec (index = 4)] # [doc = "An HRMP channel was opened via Root origin."] HrmpChannelForceOpened { sender : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , recipient : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , proposed_max_capacity : :: core :: primitive :: u32 , proposed_max_message_size : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "An HRMP channel was opened between two system chains."] HrmpSystemChannelOpened { sender : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , recipient : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , proposed_max_capacity : :: core :: primitive :: u32 , proposed_max_message_size : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "An HRMP channel's deposits were updated."] OpenChannelDepositsUpdated { sender : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , recipient : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -48429,23 +48629,25 @@ pub mod api { #[doc = "Candidate scheduled despite pending candidate already existing for the para."] CandidateScheduledBeforeParaFree, #[codec(index = 11)] - #[doc = "Candidate included with the wrong collator."] - WrongCollator, - #[codec(index = 12)] #[doc = "Scheduled cores out of order."] ScheduledOutOfOrder, - #[codec(index = 13)] + #[codec(index = 12)] #[doc = "Head data exceeds the configured maximum."] HeadDataTooLarge, - #[codec(index = 14)] + #[codec(index = 13)] #[doc = "Code upgrade prematurely."] PrematureCodeUpgrade, - #[codec(index = 15)] + #[codec(index = 14)] #[doc = "Output code is too large"] NewCodeTooLarge, + #[codec(index = 15)] + #[doc = "The candidate's relay-parent was not allowed. Either it was"] + #[doc = "not recent enough or it didn't advance based on the last parachain block."] + DisallowedRelayParent, #[codec(index = 16)] - #[doc = "Candidate not in parent context."] - CandidateNotInParentContext, + #[doc = "Failed to compute group index for the core: either it's out of bounds"] + #[doc = "or the relay parent doesn't belong to the current session."] + InvalidAssignment, #[codec(index = 17)] #[doc = "Invalid group index in core assignment."] InvalidGroupIndex, @@ -48477,8 +48679,8 @@ pub mod api { #[doc = "The validation code hash of the candidate is not valid."] InvalidValidationCodeHash, #[codec(index = 27)] - #[doc = "The `para_head` hash in the candidate descriptor doesn't match the hash of the actual para head in the"] - #[doc = "commitments."] + #[doc = "The `para_head` hash in the candidate descriptor doesn't match the hash of the actual"] + #[doc = "para head in the commitments."] ParaHeadMismatch, #[codec(index = 28)] #[doc = "A bitfield that references a freed core,"] @@ -48501,36 +48703,36 @@ pub mod api { #[codec(index = 0)] #[doc = "A candidate was backed. `[candidate, head_data]`"] CandidateBacked( - runtime_types::polkadot_primitives::v5::CandidateReceipt< + runtime_types::polkadot_primitives::v6::CandidateReceipt< ::subxt::utils::H256, >, - runtime_types::polkadot_parachain::primitives::HeadData, - runtime_types::polkadot_primitives::v5::CoreIndex, - runtime_types::polkadot_primitives::v5::GroupIndex, + runtime_types::polkadot_parachain_primitives::primitives::HeadData, + runtime_types::polkadot_primitives::v6::CoreIndex, + runtime_types::polkadot_primitives::v6::GroupIndex, ), #[codec(index = 1)] #[doc = "A candidate was included. `[candidate, head_data]`"] CandidateIncluded( - runtime_types::polkadot_primitives::v5::CandidateReceipt< + runtime_types::polkadot_primitives::v6::CandidateReceipt< ::subxt::utils::H256, >, - runtime_types::polkadot_parachain::primitives::HeadData, - runtime_types::polkadot_primitives::v5::CoreIndex, - runtime_types::polkadot_primitives::v5::GroupIndex, + runtime_types::polkadot_parachain_primitives::primitives::HeadData, + runtime_types::polkadot_primitives::v6::CoreIndex, + runtime_types::polkadot_primitives::v6::GroupIndex, ), #[codec(index = 2)] #[doc = "A candidate timed out. `[candidate, head_data]`"] CandidateTimedOut( - runtime_types::polkadot_primitives::v5::CandidateReceipt< + runtime_types::polkadot_primitives::v6::CandidateReceipt< ::subxt::utils::H256, >, - runtime_types::polkadot_parachain::primitives::HeadData, - runtime_types::polkadot_primitives::v5::CoreIndex, + runtime_types::polkadot_parachain_primitives::primitives::HeadData, + runtime_types::polkadot_primitives::v6::CoreIndex, ), #[codec(index = 3)] #[doc = "Some upward messages have been received and will be processed."] UpwardMessagesReceived { - from: runtime_types::polkadot_parachain::primitives::Id, + from: runtime_types::polkadot_parachain_primitives::primitives::Id, count: ::core::primitive::u32, }, } @@ -48560,7 +48762,7 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AvailabilityBitfieldRecord<_0> { - pub bitfield: runtime_types::polkadot_primitives::v5::AvailabilityBitfield, + pub bitfield: runtime_types::polkadot_primitives::v6::AvailabilityBitfield, pub submitted_at: _0, } #[derive( @@ -48574,9 +48776,9 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CandidatePendingAvailability<_0, _1> { - pub core: runtime_types::polkadot_primitives::v5::CoreIndex, + pub core: runtime_types::polkadot_primitives::v6::CoreIndex, pub hash: runtime_types::polkadot_core_primitives::CandidateHash, - pub descriptor: runtime_types::polkadot_primitives::v5::CandidateDescriptor<_0>, + pub descriptor: runtime_types::polkadot_primitives::v6::CandidateDescriptor<_0>, pub availability_votes: ::subxt::utils::bits::DecodedBits< ::core::primitive::u8, ::subxt::utils::bits::Lsb0, @@ -48587,7 +48789,7 @@ pub mod api { >, pub relay_parent_number: _1, pub backed_in_number: _1, - pub backing_group: runtime_types::polkadot_primitives::v5::GroupIndex, + pub backing_group: runtime_types::polkadot_primitives::v6::GroupIndex, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -48601,7 +48803,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum UmpQueueId { #[codec(index = 0)] - Para(runtime_types::polkadot_parachain::primitives::Id), + Para(runtime_types::polkadot_parachain_primitives::primitives::Id), } } pub mod initializer { @@ -48637,10 +48839,10 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BufferedSessionChange { pub validators: ::std::vec::Vec< - runtime_types::polkadot_primitives::v5::validator_app::Public, + runtime_types::polkadot_primitives::v6::validator_app::Public, >, pub queued: ::std::vec::Vec< - runtime_types::polkadot_primitives::v5::validator_app::Public, + runtime_types::polkadot_primitives::v6::validator_app::Public, >, pub session_index: ::core::primitive::u32, } @@ -48661,7 +48863,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Origin { #[codec(index = 0)] - Parachain(runtime_types::polkadot_parachain::primitives::Id), + Parachain(runtime_types::polkadot_parachain_primitives::primitives::Id), } } } @@ -48681,56 +48883,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { - #[codec(index = 0)] - #[doc = "See [`Pallet::force_set_current_code`]."] - force_set_current_code { - para: runtime_types::polkadot_parachain::primitives::Id, - new_code: runtime_types::polkadot_parachain::primitives::ValidationCode, - }, - #[codec(index = 1)] - #[doc = "See [`Pallet::force_set_current_head`]."] - force_set_current_head { - para: runtime_types::polkadot_parachain::primitives::Id, - new_head: runtime_types::polkadot_parachain::primitives::HeadData, - }, - #[codec(index = 2)] - #[doc = "See [`Pallet::force_schedule_code_upgrade`]."] - force_schedule_code_upgrade { - para: runtime_types::polkadot_parachain::primitives::Id, - new_code: runtime_types::polkadot_parachain::primitives::ValidationCode, - relay_parent_number: ::core::primitive::u32, - }, - #[codec(index = 3)] - #[doc = "See [`Pallet::force_note_new_head`]."] - force_note_new_head { - para: runtime_types::polkadot_parachain::primitives::Id, - new_head: runtime_types::polkadot_parachain::primitives::HeadData, - }, - #[codec(index = 4)] - #[doc = "See [`Pallet::force_queue_action`]."] - force_queue_action { - para: runtime_types::polkadot_parachain::primitives::Id, - }, - #[codec(index = 5)] - #[doc = "See [`Pallet::add_trusted_validation_code`]."] - add_trusted_validation_code { - validation_code: - runtime_types::polkadot_parachain::primitives::ValidationCode, - }, - #[codec(index = 6)] - #[doc = "See [`Pallet::poke_unused_validation_code`]."] - poke_unused_validation_code { - validation_code_hash: - runtime_types::polkadot_parachain::primitives::ValidationCodeHash, - }, - #[codec(index = 7)] - #[doc = "See [`Pallet::include_pvf_check_statement`]."] - include_pvf_check_statement { - stmt: runtime_types::polkadot_primitives::v5::PvfCheckStatement, - signature: - runtime_types::polkadot_primitives::v5::validator_app::Signature, - }, - } + # [codec (index = 0)] # [doc = "See [`Pallet::force_set_current_code`]."] force_set_current_code { para : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , new_code : runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCode , } , # [codec (index = 1)] # [doc = "See [`Pallet::force_set_current_head`]."] force_set_current_head { para : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , new_head : runtime_types :: polkadot_parachain_primitives :: primitives :: HeadData , } , # [codec (index = 2)] # [doc = "See [`Pallet::force_schedule_code_upgrade`]."] force_schedule_code_upgrade { para : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , new_code : runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCode , relay_parent_number : :: core :: primitive :: u32 , } , # [codec (index = 3)] # [doc = "See [`Pallet::force_note_new_head`]."] force_note_new_head { para : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , new_head : runtime_types :: polkadot_parachain_primitives :: primitives :: HeadData , } , # [codec (index = 4)] # [doc = "See [`Pallet::force_queue_action`]."] force_queue_action { para : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , # [codec (index = 5)] # [doc = "See [`Pallet::add_trusted_validation_code`]."] add_trusted_validation_code { validation_code : runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCode , } , # [codec (index = 6)] # [doc = "See [`Pallet::poke_unused_validation_code`]."] poke_unused_validation_code { validation_code_hash : runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash , } , # [codec (index = 7)] # [doc = "See [`Pallet::include_pvf_check_statement`]."] include_pvf_check_statement { stmt : runtime_types :: polkadot_primitives :: v6 :: PvfCheckStatement , signature : runtime_types :: polkadot_primitives :: v6 :: validator_app :: Signature , } , # [codec (index = 8)] # [doc = "See [`Pallet::force_set_most_recent_context`]."] force_set_most_recent_context { para : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , context : :: core :: primitive :: u32 , } , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -48753,10 +48906,10 @@ pub mod api { #[doc = "Para cannot be offboarded at this time."] CannotOffboard, #[codec(index = 3)] - #[doc = "Para cannot be upgraded to a parachain."] + #[doc = "Para cannot be upgraded to a lease holding parachain."] CannotUpgrade, #[codec(index = 4)] - #[doc = "Para cannot be downgraded to a parathread."] + #[doc = "Para cannot be downgraded to an on-demand parachain."] CannotDowngrade, #[codec(index = 5)] #[doc = "The statement for PVF pre-checking is stale."] @@ -48792,46 +48945,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The `Event` enum of this pallet"] pub enum Event { - #[codec(index = 0)] - #[doc = "Current code has been updated for a Para. `para_id`"] - CurrentCodeUpdated(runtime_types::polkadot_parachain::primitives::Id), - #[codec(index = 1)] - #[doc = "Current head has been updated for a Para. `para_id`"] - CurrentHeadUpdated(runtime_types::polkadot_parachain::primitives::Id), - #[codec(index = 2)] - #[doc = "A code upgrade has been scheduled for a Para. `para_id`"] - CodeUpgradeScheduled(runtime_types::polkadot_parachain::primitives::Id), - #[codec(index = 3)] - #[doc = "A new head has been noted for a Para. `para_id`"] - NewHeadNoted(runtime_types::polkadot_parachain::primitives::Id), - #[codec(index = 4)] - #[doc = "A para has been queued to execute pending actions. `para_id`"] - ActionQueued( - runtime_types::polkadot_parachain::primitives::Id, - ::core::primitive::u32, - ), - #[codec(index = 5)] - #[doc = "The given para either initiated or subscribed to a PVF check for the given validation"] - #[doc = "code. `code_hash` `para_id`"] - PvfCheckStarted( - runtime_types::polkadot_parachain::primitives::ValidationCodeHash, - runtime_types::polkadot_parachain::primitives::Id, - ), - #[codec(index = 6)] - #[doc = "The given validation code was accepted by the PVF pre-checking vote."] - #[doc = "`code_hash` `para_id`"] - PvfCheckAccepted( - runtime_types::polkadot_parachain::primitives::ValidationCodeHash, - runtime_types::polkadot_parachain::primitives::Id, - ), - #[codec(index = 7)] - #[doc = "The given validation code was rejected by the PVF pre-checking vote."] - #[doc = "`code_hash` `para_id`"] - PvfCheckRejected( - runtime_types::polkadot_parachain::primitives::ValidationCodeHash, - runtime_types::polkadot_parachain::primitives::Id, - ), - } + # [codec (index = 0)] # [doc = "Current code has been updated for a Para. `para_id`"] CurrentCodeUpdated (runtime_types :: polkadot_parachain_primitives :: primitives :: Id ,) , # [codec (index = 1)] # [doc = "Current head has been updated for a Para. `para_id`"] CurrentHeadUpdated (runtime_types :: polkadot_parachain_primitives :: primitives :: Id ,) , # [codec (index = 2)] # [doc = "A code upgrade has been scheduled for a Para. `para_id`"] CodeUpgradeScheduled (runtime_types :: polkadot_parachain_primitives :: primitives :: Id ,) , # [codec (index = 3)] # [doc = "A new head has been noted for a Para. `para_id`"] NewHeadNoted (runtime_types :: polkadot_parachain_primitives :: primitives :: Id ,) , # [codec (index = 4)] # [doc = "A para has been queued to execute pending actions. `para_id`"] ActionQueued (runtime_types :: polkadot_parachain_primitives :: primitives :: Id , :: core :: primitive :: u32 ,) , # [codec (index = 5)] # [doc = "The given para either initiated or subscribed to a PVF check for the given validation"] # [doc = "code. `code_hash` `para_id`"] PvfCheckStarted (runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash , runtime_types :: polkadot_parachain_primitives :: primitives :: Id ,) , # [codec (index = 6)] # [doc = "The given validation code was accepted by the PVF pre-checking vote."] # [doc = "`code_hash` `para_id`"] PvfCheckAccepted (runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash , runtime_types :: polkadot_parachain_primitives :: primitives :: Id ,) , # [codec (index = 7)] # [doc = "The given validation code was rejected by the PVF pre-checking vote."] # [doc = "`code_hash` `para_id`"] PvfCheckRejected (runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash , runtime_types :: polkadot_parachain_primitives :: primitives :: Id ,) , } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -48844,9 +48958,10 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ParaGenesisArgs { - pub genesis_head: runtime_types::polkadot_parachain::primitives::HeadData, + pub genesis_head: + runtime_types::polkadot_parachain_primitives::primitives::HeadData, pub validation_code: - runtime_types::polkadot_parachain::primitives::ValidationCode, + runtime_types::polkadot_parachain_primitives::primitives::ValidationCode, pub para_kind: ::core::primitive::bool, } #[derive( @@ -48928,11 +49043,12 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum PvfCheckCause<_0> { #[codec(index = 0)] - Onboarding(runtime_types::polkadot_parachain::primitives::Id), + Onboarding(runtime_types::polkadot_parachain_primitives::primitives::Id), #[codec(index = 1)] Upgrade { - id: runtime_types::polkadot_parachain::primitives::Id, - relay_parent_number: _0, + id: runtime_types::polkadot_parachain_primitives::primitives::Id, + included_at: _0, + set_go_ahead: runtime_types::polkadot_runtime_parachains::paras::SetGoAhead, }, } #[derive( @@ -48949,6 +49065,22 @@ pub mod api { pub expected_at: _0, pub activated_at: _0, } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum SetGoAhead { + #[codec(index = 0)] + Yes, + #[codec(index = 1)] + No, + } } pub mod paras_inherent { use super::runtime_types; @@ -48969,10 +49101,9 @@ pub mod api { #[codec(index = 0)] #[doc = "See [`Pallet::enter`]."] enter { - data: runtime_types::polkadot_primitives::v5::InherentData< + data: runtime_types::polkadot_primitives::v6::InherentData< runtime_types::sp_runtime::generic::header::Header< ::core::primitive::u32, - runtime_types::sp_runtime::traits::BlakeTwo256, >, >, }, @@ -49013,56 +49144,65 @@ pub mod api { } pub mod scheduler { use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum AssignmentKind { - #[codec(index = 0)] - Parachain, - #[codec(index = 1)] - Parathread( - runtime_types::polkadot_primitives::v5::collator_app::Public, - ::core::primitive::u32, - ), + pub mod common { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Assignment { + pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, + } } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct CoreAssignment { - pub core: runtime_types::polkadot_primitives::v5::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::v5::GroupIndex, + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum CoreOccupied<_0> { + # [codec (index = 0)] Free , # [codec (index = 1)] Paras (runtime_types :: polkadot_runtime_parachains :: scheduler :: pallet :: ParasEntry < _0 > ,) , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ParasEntry < _0 > { pub assignment : runtime_types :: polkadot_runtime_parachains :: scheduler :: common :: Assignment , pub availability_timeouts : :: core :: primitive :: u32 , pub ttl : _0 , } } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ParathreadClaimQueue { - pub queue: ::std::vec::Vec< - runtime_types::polkadot_runtime_parachains::scheduler::QueuedParathread, - >, - pub next_core_offset: ::core::primitive::u32, + } + pub mod shared { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call {} } #[derive( :: subxt :: ext :: codec :: Decode, @@ -49074,12 +49214,90 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct QueuedParathread { - pub claim: runtime_types::polkadot_primitives::v5::ParathreadEntry, - pub core_offset: ::core::primitive::u32, + pub struct AllowedRelayParentsTracker<_0, _1> { + pub buffer: ::std::vec::Vec<(_0, _0)>, + pub latest_number: _1, + } + } + } + pub mod rococo_runtime { + use super::runtime_types; + pub mod governance { + use super::runtime_types; + pub mod origins { + use super::runtime_types; + pub mod pallet_custom_origins { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Origin { + #[codec(index = 0)] + StakingAdmin, + #[codec(index = 1)] + Treasurer, + #[codec(index = 2)] + FellowshipAdmin, + #[codec(index = 3)] + GeneralAdmin, + #[codec(index = 4)] + AuctionAdmin, + #[codec(index = 5)] + LeaseAdmin, + #[codec(index = 6)] + ReferendumCanceller, + #[codec(index = 7)] + ReferendumKiller, + #[codec(index = 8)] + SmallTipper, + #[codec(index = 9)] + BigTipper, + #[codec(index = 10)] + SmallSpender, + #[codec(index = 11)] + MediumSpender, + #[codec(index = 12)] + BigSpender, + #[codec(index = 13)] + WhitelistedCaller, + #[codec(index = 14)] + FellowshipInitiates, + #[codec(index = 15)] + Fellows, + #[codec(index = 16)] + FellowshipExperts, + #[codec(index = 17)] + FellowshipMasters, + #[codec(index = 18)] + Fellowship1Dan, + #[codec(index = 19)] + Fellowship2Dan, + #[codec(index = 20)] + Fellowship3Dan, + #[codec(index = 21)] + Fellowship4Dan, + #[codec(index = 22)] + Fellowship5Dan, + #[codec(index = 23)] + Fellowship6Dan, + #[codec(index = 24)] + Fellowship7Dan, + #[codec(index = 25)] + Fellowship8Dan, + #[codec(index = 26)] + Fellowship9Dan, + } + } } } - pub mod shared { + pub mod validator_manager { use super::runtime_types; pub mod pallet { use super::runtime_types; @@ -49094,9 +49312,475 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub enum Call {} + pub enum Call { + #[codec(index = 0)] + #[doc = "See [`Pallet::register_validators`]."] + register_validators { + validators: ::std::vec::Vec<::subxt::utils::AccountId32>, + }, + #[codec(index = 1)] + #[doc = "See [`Pallet::deregister_validators`]."] + deregister_validators { + validators: ::std::vec::Vec<::subxt::utils::AccountId32>, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Event` enum of this pallet"] + pub enum Event { + #[codec(index = 0)] + #[doc = "New validators were added to the set."] + ValidatorsRegistered(::std::vec::Vec<::subxt::utils::AccountId32>), + #[codec(index = 1)] + #[doc = "Validators were removed from the set."] + ValidatorsDeregistered(::std::vec::Vec<::subxt::utils::AccountId32>), + } } } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum OriginCaller { + # [codec (index = 0)] system (runtime_types :: frame_support :: dispatch :: RawOrigin < :: subxt :: utils :: AccountId32 > ,) , # [codec (index = 43)] Origins (runtime_types :: rococo_runtime :: governance :: origins :: pallet_custom_origins :: Origin ,) , # [codec (index = 50)] ParachainsOrigin (runtime_types :: polkadot_runtime_parachains :: origin :: pallet :: Origin ,) , # [codec (index = 99)] XcmPallet (runtime_types :: pallet_xcm :: pallet :: Origin ,) , # [codec (index = 4)] Void (runtime_types :: sp_core :: Void ,) , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum ProxyType { + #[codec(index = 0)] + Any, + #[codec(index = 1)] + NonTransfer, + #[codec(index = 2)] + Governance, + #[codec(index = 3)] + IdentityJudgement, + #[codec(index = 4)] + CancelProxy, + #[codec(index = 5)] + Auction, + #[codec(index = 6)] + Society, + #[codec(index = 7)] + OnDemandOrdering, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Runtime; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum RuntimeCall { + #[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 = 240)] + Beefy(runtime_types::pallet_beefy::pallet::Call), + #[codec(index = 8)] + 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 = 18)] + Treasury(runtime_types::pallet_treasury::pallet::Call), + #[codec(index = 20)] + ConvictionVoting(runtime_types::pallet_conviction_voting::pallet::Call), + #[codec(index = 21)] + Referenda(runtime_types::pallet_referenda::pallet::Call), + #[codec(index = 22)] + FellowshipCollective(runtime_types::pallet_ranked_collective::pallet::Call), + #[codec(index = 23)] + FellowshipReferenda(runtime_types::pallet_referenda::pallet::Call2), + #[codec(index = 44)] + Whitelist(runtime_types::pallet_whitelist::pallet::Call), + #[codec(index = 19)] + Claims(runtime_types::polkadot_runtime_common::claims::pallet::Call), + #[codec(index = 24)] + Utility(runtime_types::pallet_utility::pallet::Call), + #[codec(index = 25)] + Identity(runtime_types::pallet_identity::pallet::Call), + #[codec(index = 26)] + Society(runtime_types::pallet_society::pallet::Call), + #[codec(index = 27)] + Recovery(runtime_types::pallet_recovery::pallet::Call), + #[codec(index = 28)] + Vesting(runtime_types::pallet_vesting::pallet::Call), + #[codec(index = 29)] + Scheduler(runtime_types::pallet_scheduler::pallet::Call), + #[codec(index = 30)] + Proxy(runtime_types::pallet_proxy::pallet::Call), + #[codec(index = 31)] + Multisig(runtime_types::pallet_multisig::pallet::Call), + #[codec(index = 32)] + Preimage(runtime_types::pallet_preimage::pallet::Call), + #[codec(index = 39)] + AssetRate(runtime_types::pallet_asset_rate::pallet::Call), + #[codec(index = 35)] + Bounties(runtime_types::pallet_bounties::pallet::Call), + #[codec(index = 40)] + ChildBounties(runtime_types::pallet_child_bounties::pallet::Call), + #[codec(index = 38)] + Nis(runtime_types::pallet_nis::pallet::Call), + #[codec(index = 45)] + NisCounterpartBalances(runtime_types::pallet_balances::pallet::Call2), + #[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 = 60)] + Hrmp(runtime_types::polkadot_runtime_parachains::hrmp::pallet::Call), + #[codec(index = 62)] + ParasDisputes(runtime_types::polkadot_runtime_parachains::disputes::pallet::Call), + #[codec(index = 63)] + ParasSlashing( + runtime_types::polkadot_runtime_parachains::disputes::slashing::pallet::Call, + ), + #[codec(index = 64)] + MessageQueue(runtime_types::pallet_message_queue::pallet::Call), + #[codec(index = 66)] + OnDemandAssignmentProvider( + runtime_types::polkadot_runtime_parachains::assigner_on_demand::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 = 250)] + ParasSudoWrapper( + runtime_types::polkadot_runtime_common::paras_sudo_wrapper::pallet::Call, + ), + #[codec(index = 251)] + AssignedSlots(runtime_types::polkadot_runtime_common::assigned_slots::pallet::Call), + #[codec(index = 252)] + ValidatorManager(runtime_types::rococo_runtime::validator_manager::pallet::Call), + #[codec(index = 254)] + StateTrieMigration(runtime_types::pallet_state_trie_migration::pallet::Call), + #[codec(index = 249)] + RootTesting(runtime_types::pallet_root_testing::pallet::Call), + #[codec(index = 255)] + Sudo(runtime_types::pallet_sudo::pallet::Call), + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum RuntimeError { + #[codec(index = 0)] + System(runtime_types::frame_system::pallet::Error), + #[codec(index = 1)] + Babe(runtime_types::pallet_babe::pallet::Error), + #[codec(index = 3)] + Indices(runtime_types::pallet_indices::pallet::Error), + #[codec(index = 4)] + Balances(runtime_types::pallet_balances::pallet::Error), + #[codec(index = 240)] + Beefy(runtime_types::pallet_beefy::pallet::Error), + #[codec(index = 8)] + Session(runtime_types::pallet_session::pallet::Error), + #[codec(index = 10)] + Grandpa(runtime_types::pallet_grandpa::pallet::Error), + #[codec(index = 11)] + ImOnline(runtime_types::pallet_im_online::pallet::Error), + #[codec(index = 18)] + Treasury(runtime_types::pallet_treasury::pallet::Error), + #[codec(index = 20)] + ConvictionVoting(runtime_types::pallet_conviction_voting::pallet::Error), + #[codec(index = 21)] + Referenda(runtime_types::pallet_referenda::pallet::Error), + #[codec(index = 22)] + FellowshipCollective(runtime_types::pallet_ranked_collective::pallet::Error), + #[codec(index = 23)] + FellowshipReferenda(runtime_types::pallet_referenda::pallet::Error2), + #[codec(index = 44)] + Whitelist(runtime_types::pallet_whitelist::pallet::Error), + #[codec(index = 19)] + Claims(runtime_types::polkadot_runtime_common::claims::pallet::Error), + #[codec(index = 24)] + Utility(runtime_types::pallet_utility::pallet::Error), + #[codec(index = 25)] + Identity(runtime_types::pallet_identity::pallet::Error), + #[codec(index = 26)] + Society(runtime_types::pallet_society::pallet::Error), + #[codec(index = 27)] + Recovery(runtime_types::pallet_recovery::pallet::Error), + #[codec(index = 28)] + Vesting(runtime_types::pallet_vesting::pallet::Error), + #[codec(index = 29)] + Scheduler(runtime_types::pallet_scheduler::pallet::Error), + #[codec(index = 30)] + Proxy(runtime_types::pallet_proxy::pallet::Error), + #[codec(index = 31)] + Multisig(runtime_types::pallet_multisig::pallet::Error), + #[codec(index = 32)] + Preimage(runtime_types::pallet_preimage::pallet::Error), + #[codec(index = 39)] + AssetRate(runtime_types::pallet_asset_rate::pallet::Error), + #[codec(index = 35)] + Bounties(runtime_types::pallet_bounties::pallet::Error), + #[codec(index = 40)] + ChildBounties(runtime_types::pallet_child_bounties::pallet::Error), + #[codec(index = 38)] + Nis(runtime_types::pallet_nis::pallet::Error), + #[codec(index = 45)] + NisCounterpartBalances(runtime_types::pallet_balances::pallet::Error2), + #[codec(index = 51)] + Configuration( + runtime_types::polkadot_runtime_parachains::configuration::pallet::Error, + ), + #[codec(index = 53)] + ParaInclusion(runtime_types::polkadot_runtime_parachains::inclusion::pallet::Error), + #[codec(index = 54)] + ParaInherent( + runtime_types::polkadot_runtime_parachains::paras_inherent::pallet::Error, + ), + #[codec(index = 56)] + Paras(runtime_types::polkadot_runtime_parachains::paras::pallet::Error), + #[codec(index = 60)] + Hrmp(runtime_types::polkadot_runtime_parachains::hrmp::pallet::Error), + #[codec(index = 62)] + ParasDisputes(runtime_types::polkadot_runtime_parachains::disputes::pallet::Error), + #[codec(index = 63)] + ParasSlashing( + runtime_types::polkadot_runtime_parachains::disputes::slashing::pallet::Error, + ), + #[codec(index = 64)] + MessageQueue(runtime_types::pallet_message_queue::pallet::Error), + #[codec(index = 66)] + OnDemandAssignmentProvider( + runtime_types::polkadot_runtime_parachains::assigner_on_demand::pallet::Error, + ), + #[codec(index = 70)] + Registrar(runtime_types::polkadot_runtime_common::paras_registrar::pallet::Error), + #[codec(index = 71)] + Slots(runtime_types::polkadot_runtime_common::slots::pallet::Error), + #[codec(index = 72)] + Auctions(runtime_types::polkadot_runtime_common::auctions::pallet::Error), + #[codec(index = 73)] + Crowdloan(runtime_types::polkadot_runtime_common::crowdloan::pallet::Error), + #[codec(index = 99)] + XcmPallet(runtime_types::pallet_xcm::pallet::Error), + #[codec(index = 250)] + ParasSudoWrapper( + runtime_types::polkadot_runtime_common::paras_sudo_wrapper::pallet::Error, + ), + #[codec(index = 251)] + AssignedSlots( + runtime_types::polkadot_runtime_common::assigned_slots::pallet::Error, + ), + #[codec(index = 254)] + StateTrieMigration(runtime_types::pallet_state_trie_migration::pallet::Error), + #[codec(index = 255)] + Sudo(runtime_types::pallet_sudo::pallet::Error), + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum RuntimeEvent { + #[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 = 33)] + TransactionPayment(runtime_types::pallet_transaction_payment::pallet::Event), + #[codec(index = 7)] + Offences(runtime_types::pallet_offences::pallet::Event), + #[codec(index = 8)] + 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 = 18)] + Treasury(runtime_types::pallet_treasury::pallet::Event), + #[codec(index = 20)] + ConvictionVoting(runtime_types::pallet_conviction_voting::pallet::Event), + #[codec(index = 21)] + Referenda(runtime_types::pallet_referenda::pallet::Event), + #[codec(index = 22)] + FellowshipCollective(runtime_types::pallet_ranked_collective::pallet::Event), + #[codec(index = 23)] + FellowshipReferenda(runtime_types::pallet_referenda::pallet::Event2), + #[codec(index = 44)] + Whitelist(runtime_types::pallet_whitelist::pallet::Event), + #[codec(index = 19)] + Claims(runtime_types::polkadot_runtime_common::claims::pallet::Event), + #[codec(index = 24)] + Utility(runtime_types::pallet_utility::pallet::Event), + #[codec(index = 25)] + Identity(runtime_types::pallet_identity::pallet::Event), + #[codec(index = 26)] + Society(runtime_types::pallet_society::pallet::Event), + #[codec(index = 27)] + Recovery(runtime_types::pallet_recovery::pallet::Event), + #[codec(index = 28)] + Vesting(runtime_types::pallet_vesting::pallet::Event), + #[codec(index = 29)] + Scheduler(runtime_types::pallet_scheduler::pallet::Event), + #[codec(index = 30)] + Proxy(runtime_types::pallet_proxy::pallet::Event), + #[codec(index = 31)] + Multisig(runtime_types::pallet_multisig::pallet::Event), + #[codec(index = 32)] + Preimage(runtime_types::pallet_preimage::pallet::Event), + #[codec(index = 39)] + AssetRate(runtime_types::pallet_asset_rate::pallet::Event), + #[codec(index = 35)] + Bounties(runtime_types::pallet_bounties::pallet::Event), + #[codec(index = 40)] + ChildBounties(runtime_types::pallet_child_bounties::pallet::Event), + #[codec(index = 38)] + Nis(runtime_types::pallet_nis::pallet::Event), + #[codec(index = 45)] + NisCounterpartBalances(runtime_types::pallet_balances::pallet::Event2), + #[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 = 60)] + Hrmp(runtime_types::polkadot_runtime_parachains::hrmp::pallet::Event), + #[codec(index = 62)] + ParasDisputes(runtime_types::polkadot_runtime_parachains::disputes::pallet::Event), + #[codec(index = 64)] + MessageQueue(runtime_types::pallet_message_queue::pallet::Event), + #[codec(index = 66)] + OnDemandAssignmentProvider( + runtime_types::polkadot_runtime_parachains::assigner_on_demand::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 = 251)] + AssignedSlots( + runtime_types::polkadot_runtime_common::assigned_slots::pallet::Event, + ), + #[codec(index = 252)] + ValidatorManager(runtime_types::rococo_runtime::validator_manager::pallet::Event), + #[codec(index = 254)] + StateTrieMigration(runtime_types::pallet_state_trie_migration::pallet::Event), + #[codec(index = 249)] + RootTesting(runtime_types::pallet_root_testing::pallet::Event), + #[codec(index = 255)] + Sudo(runtime_types::pallet_sudo::pallet::Event), + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum RuntimeHoldReason { + #[codec(index = 32)] + Preimage(runtime_types::pallet_preimage::pallet::HoldReason), + #[codec(index = 38)] + Nis(runtime_types::pallet_nis::pallet::HoldReason), + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SessionKeys { + pub grandpa: runtime_types::sp_consensus_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::v6::validator_app::Public, + pub para_assignment: runtime_types::polkadot_primitives::v6::assignment_app::Public, + pub authority_discovery: runtime_types::sp_authority_discovery::app::Public, + pub beefy: runtime_types::sp_consensus_beefy::ecdsa_crypto::Public, + } } pub mod sp_arithmetic { use super::runtime_types; @@ -49139,18 +49823,6 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct PerU16(pub ::core::primitive::u16); - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Perbill(pub ::core::primitive::u32); #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -49163,7 +49835,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Percent(pub ::core::primitive::u8); + pub struct Permill(pub ::core::primitive::u32); #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, @@ -49175,7 +49847,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Permill(pub ::core::primitive::u32); + pub struct Perquintill(pub ::core::primitive::u64); } #[derive( :: subxt :: ext :: codec :: Decode, @@ -49419,7 +50091,7 @@ pub mod api { pub validator_set_id: ::core::primitive::u64, } } - pub mod crypto { + pub mod ecdsa_crypto { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, @@ -49444,6 +50116,24 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Signature(pub runtime_types::sp_core::ecdsa::Signature); } + pub mod mmr { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct BeefyAuthoritySet<_0> { + pub id: ::core::primitive::u64, + pub len: ::core::primitive::u32, + pub keyset_commitment: _0, + } + } pub mod payload { use super::runtime_types; #[derive( @@ -49856,38 +50546,6 @@ pub mod api { pub items: ::std::vec::Vec<_0>, } } - pub mod sp_npos_elections { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ElectionScore { - pub minimal_stake: ::core::primitive::u128, - pub sum_stake: ::core::primitive::u128, - pub sum_stake_squared: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - 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 { @@ -50496,34 +51154,15 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Header<_0, _1> { + pub struct Header<_0> { pub parent_hash: ::subxt::utils::H256, #[codec(compact)] pub number: _0, pub state_root: ::subxt::utils::H256, pub extrinsics_root: ::subxt::utils::H256, pub digest: runtime_types::sp_runtime::generic::digest::Digest, - #[codec(skip)] - pub __subxt_unused_type_params: ::core::marker::PhantomData<_1>, } } - pub mod unchecked_extrinsic { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct UncheckedExtrinsic<_0, _1, _2, _3>( - pub ::std::vec::Vec<::core::primitive::u8>, - #[codec(skip)] pub ::core::marker::PhantomData<(_1, _0, _2, _3)>, - ); - } } pub mod traits { use super::runtime_types; @@ -50896,6 +51535,29 @@ pub mod api { pub write: ::core::primitive::u64, } } + pub mod staging_xcm { + use super::runtime_types; + pub mod v3 { + use super::runtime_types; + pub mod multilocation { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct MultiLocation { + pub parents: ::core::primitive::u8, + pub interior: runtime_types::xcm::v3::junctions::Junctions, + } + } + } + } pub mod xcm { use super::runtime_types; pub mod double_encoded { @@ -52011,7 +52673,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum AssetId { #[codec(index = 0)] - Concrete(runtime_types::xcm::v3::multilocation::MultiLocation), + Concrete(runtime_types::staging_xcm::v3::multilocation::MultiLocation), #[codec(index = 1)] Abstract([::core::primitive::u8; 32usize]), } @@ -52143,23 +52805,6 @@ pub mod api { }, } } - pub mod multilocation { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct MultiLocation { - pub parents: ::core::primitive::u8, - pub interior: runtime_types::xcm::v3::junctions::Junctions, - } - } pub mod traits { use super::runtime_types; #[derive( @@ -52300,18 +52945,18 @@ pub mod api { response: runtime_types::xcm::v3::Response, max_weight: runtime_types::sp_weights::weight_v2::Weight, querier: ::core::option::Option< - runtime_types::xcm::v3::multilocation::MultiLocation, + runtime_types::staging_xcm::v3::multilocation::MultiLocation, >, }, #[codec(index = 4)] TransferAsset { assets: runtime_types::xcm::v3::multiasset::MultiAssets, - beneficiary: runtime_types::xcm::v3::multilocation::MultiLocation, + beneficiary: runtime_types::staging_xcm::v3::multilocation::MultiLocation, }, #[codec(index = 5)] TransferReserveAsset { assets: runtime_types::xcm::v3::multiasset::MultiAssets, - dest: runtime_types::xcm::v3::multilocation::MultiLocation, + dest: runtime_types::staging_xcm::v3::multilocation::MultiLocation, xcm: runtime_types::xcm::v3::Xcm, }, #[codec(index = 6)] @@ -52352,12 +52997,12 @@ pub mod api { #[codec(index = 13)] DepositAsset { assets: runtime_types::xcm::v3::multiasset::MultiAssetFilter, - beneficiary: runtime_types::xcm::v3::multilocation::MultiLocation, + beneficiary: runtime_types::staging_xcm::v3::multilocation::MultiLocation, }, #[codec(index = 14)] DepositReserveAsset { assets: runtime_types::xcm::v3::multiasset::MultiAssetFilter, - dest: runtime_types::xcm::v3::multilocation::MultiLocation, + dest: runtime_types::staging_xcm::v3::multilocation::MultiLocation, xcm: runtime_types::xcm::v3::Xcm, }, #[codec(index = 15)] @@ -52369,13 +53014,13 @@ pub mod api { #[codec(index = 16)] InitiateReserveWithdraw { assets: runtime_types::xcm::v3::multiasset::MultiAssetFilter, - reserve: runtime_types::xcm::v3::multilocation::MultiLocation, + reserve: runtime_types::staging_xcm::v3::multilocation::MultiLocation, xcm: runtime_types::xcm::v3::Xcm, }, #[codec(index = 17)] InitiateTeleport { assets: runtime_types::xcm::v3::multiasset::MultiAssetFilter, - dest: runtime_types::xcm::v3::multilocation::MultiLocation, + dest: runtime_types::staging_xcm::v3::multilocation::MultiLocation, xcm: runtime_types::xcm::v3::Xcm, }, #[codec(index = 18)] @@ -52399,7 +53044,7 @@ pub mod api { #[codec(index = 24)] ClaimAsset { assets: runtime_types::xcm::v3::multiasset::MultiAssets, - ticket: runtime_types::xcm::v3::multilocation::MultiLocation, + ticket: runtime_types::staging_xcm::v3::multilocation::MultiLocation, }, #[codec(index = 25)] Trap(#[codec(compact)] ::core::primitive::u64), @@ -52418,7 +53063,7 @@ pub mod api { #[codec(index = 30)] ExpectOrigin( ::core::option::Option< - runtime_types::xcm::v3::multilocation::MultiLocation, + runtime_types::staging_xcm::v3::multilocation::MultiLocation, >, ), #[codec(index = 31)] @@ -52461,22 +53106,22 @@ pub mod api { #[codec(index = 39)] LockAsset { asset: runtime_types::xcm::v3::multiasset::MultiAsset, - unlocker: runtime_types::xcm::v3::multilocation::MultiLocation, + unlocker: runtime_types::staging_xcm::v3::multilocation::MultiLocation, }, #[codec(index = 40)] UnlockAsset { asset: runtime_types::xcm::v3::multiasset::MultiAsset, - target: runtime_types::xcm::v3::multilocation::MultiLocation, + target: runtime_types::staging_xcm::v3::multilocation::MultiLocation, }, #[codec(index = 41)] NoteUnlockable { asset: runtime_types::xcm::v3::multiasset::MultiAsset, - owner: runtime_types::xcm::v3::multilocation::MultiLocation, + owner: runtime_types::staging_xcm::v3::multilocation::MultiLocation, }, #[codec(index = 42)] RequestUnlock { asset: runtime_types::xcm::v3::multiasset::MultiAsset, - locker: runtime_types::xcm::v3::multilocation::MultiLocation, + locker: runtime_types::staging_xcm::v3::multilocation::MultiLocation, }, #[codec(index = 43)] SetFeesMode { @@ -52487,12 +53132,12 @@ pub mod api { #[codec(index = 45)] ClearTopic, #[codec(index = 46)] - AliasOrigin(runtime_types::xcm::v3::multilocation::MultiLocation), + AliasOrigin(runtime_types::staging_xcm::v3::multilocation::MultiLocation), #[codec(index = 47)] UnpaidExecution { weight_limit: runtime_types::xcm::v3::WeightLimit, check_origin: ::core::option::Option< - runtime_types::xcm::v3::multilocation::MultiLocation, + runtime_types::staging_xcm::v3::multilocation::MultiLocation, >, }, } @@ -52520,18 +53165,18 @@ pub mod api { response: runtime_types::xcm::v3::Response, max_weight: runtime_types::sp_weights::weight_v2::Weight, querier: ::core::option::Option< - runtime_types::xcm::v3::multilocation::MultiLocation, + runtime_types::staging_xcm::v3::multilocation::MultiLocation, >, }, #[codec(index = 4)] TransferAsset { assets: runtime_types::xcm::v3::multiasset::MultiAssets, - beneficiary: runtime_types::xcm::v3::multilocation::MultiLocation, + beneficiary: runtime_types::staging_xcm::v3::multilocation::MultiLocation, }, #[codec(index = 5)] TransferReserveAsset { assets: runtime_types::xcm::v3::multiasset::MultiAssets, - dest: runtime_types::xcm::v3::multilocation::MultiLocation, + dest: runtime_types::staging_xcm::v3::multilocation::MultiLocation, xcm: runtime_types::xcm::v3::Xcm, }, #[codec(index = 6)] @@ -52572,12 +53217,12 @@ pub mod api { #[codec(index = 13)] DepositAsset { assets: runtime_types::xcm::v3::multiasset::MultiAssetFilter, - beneficiary: runtime_types::xcm::v3::multilocation::MultiLocation, + beneficiary: runtime_types::staging_xcm::v3::multilocation::MultiLocation, }, #[codec(index = 14)] DepositReserveAsset { assets: runtime_types::xcm::v3::multiasset::MultiAssetFilter, - dest: runtime_types::xcm::v3::multilocation::MultiLocation, + dest: runtime_types::staging_xcm::v3::multilocation::MultiLocation, xcm: runtime_types::xcm::v3::Xcm, }, #[codec(index = 15)] @@ -52589,13 +53234,13 @@ pub mod api { #[codec(index = 16)] InitiateReserveWithdraw { assets: runtime_types::xcm::v3::multiasset::MultiAssetFilter, - reserve: runtime_types::xcm::v3::multilocation::MultiLocation, + reserve: runtime_types::staging_xcm::v3::multilocation::MultiLocation, xcm: runtime_types::xcm::v3::Xcm, }, #[codec(index = 17)] InitiateTeleport { assets: runtime_types::xcm::v3::multiasset::MultiAssetFilter, - dest: runtime_types::xcm::v3::multilocation::MultiLocation, + dest: runtime_types::staging_xcm::v3::multilocation::MultiLocation, xcm: runtime_types::xcm::v3::Xcm, }, #[codec(index = 18)] @@ -52619,7 +53264,7 @@ pub mod api { #[codec(index = 24)] ClaimAsset { assets: runtime_types::xcm::v3::multiasset::MultiAssets, - ticket: runtime_types::xcm::v3::multilocation::MultiLocation, + ticket: runtime_types::staging_xcm::v3::multilocation::MultiLocation, }, #[codec(index = 25)] Trap(#[codec(compact)] ::core::primitive::u64), @@ -52638,7 +53283,7 @@ pub mod api { #[codec(index = 30)] ExpectOrigin( ::core::option::Option< - runtime_types::xcm::v3::multilocation::MultiLocation, + runtime_types::staging_xcm::v3::multilocation::MultiLocation, >, ), #[codec(index = 31)] @@ -52681,22 +53326,22 @@ pub mod api { #[codec(index = 39)] LockAsset { asset: runtime_types::xcm::v3::multiasset::MultiAsset, - unlocker: runtime_types::xcm::v3::multilocation::MultiLocation, + unlocker: runtime_types::staging_xcm::v3::multilocation::MultiLocation, }, #[codec(index = 40)] UnlockAsset { asset: runtime_types::xcm::v3::multiasset::MultiAsset, - target: runtime_types::xcm::v3::multilocation::MultiLocation, + target: runtime_types::staging_xcm::v3::multilocation::MultiLocation, }, #[codec(index = 41)] NoteUnlockable { asset: runtime_types::xcm::v3::multiasset::MultiAsset, - owner: runtime_types::xcm::v3::multilocation::MultiLocation, + owner: runtime_types::staging_xcm::v3::multilocation::MultiLocation, }, #[codec(index = 42)] RequestUnlock { asset: runtime_types::xcm::v3::multiasset::MultiAsset, - locker: runtime_types::xcm::v3::multilocation::MultiLocation, + locker: runtime_types::staging_xcm::v3::multilocation::MultiLocation, }, #[codec(index = 43)] SetFeesMode { @@ -52707,12 +53352,12 @@ pub mod api { #[codec(index = 45)] ClearTopic, #[codec(index = 46)] - AliasOrigin(runtime_types::xcm::v3::multilocation::MultiLocation), + AliasOrigin(runtime_types::staging_xcm::v3::multilocation::MultiLocation), #[codec(index = 47)] UnpaidExecution { weight_limit: runtime_types::xcm::v3::WeightLimit, check_origin: ::core::option::Option< - runtime_types::xcm::v3::multilocation::MultiLocation, + runtime_types::staging_xcm::v3::multilocation::MultiLocation, >, }, } @@ -52779,7 +53424,7 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct QueryResponseInfo { - pub destination: runtime_types::xcm::v3::multilocation::MultiLocation, + pub destination: runtime_types::staging_xcm::v3::multilocation::MultiLocation, #[codec(compact)] pub query_id: ::core::primitive::u64, pub max_weight: runtime_types::sp_weights::weight_v2::Weight, @@ -52900,7 +53545,7 @@ pub mod api { #[codec(index = 1)] V2(runtime_types::xcm::v2::multilocation::MultiLocation), #[codec(index = 3)] - V3(runtime_types::xcm::v3::multilocation::MultiLocation), + V3(runtime_types::staging_xcm::v3::multilocation::MultiLocation), } #[derive( :: subxt :: ext :: codec :: Decode, From bd8f6022a2c871f6981c173920e97fea8d127ac5 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Wed, 8 Nov 2023 13:37:42 +0200 Subject: [PATCH 04/28] codegen: Type aliases for runtime API parameters Signed-off-by: Alexandru Vasile --- codegen/src/api/runtime_apis.rs | 35 +++++++++++++++++++++++++-------- 1 file changed, 27 insertions(+), 8 deletions(-) diff --git a/codegen/src/api/runtime_apis.rs b/codegen/src/api/runtime_apis.rs index ea864903ff..21344beefd 100644 --- a/codegen/src/api/runtime_apis.rs +++ b/codegen/src/api/runtime_apis.rs @@ -39,19 +39,36 @@ fn generate_runtime_api( let inputs: Vec<_> = method.inputs().enumerate().map(|(idx, input)| { // These are method names, which can just be '_', but struct field names can't // just be an underscore, so fix any such names we find to work in structs. - let name = if input.name == "_" { - format_ident!("_{}", idx) + let (alias_name, name) = if input.name == "_" { + (format_ident!("Param{}", idx), format_ident!("_{}", idx)) } else { - format_ident!("{}", &input.name) + (format_ident!("{}", input.name.to_upper_camel_case()), format_ident!("{}", &input.name)) }; let ty = type_gen.resolve_type_path(input.ty); - let param = quote!(#name: #ty); - (param, name) - }).collect(); + let aliased_param = quote!( pub type #alias_name = #ty; ); + let ty_path = quote!( #method_name::#alias_name ); - let params = inputs.iter().map(|(param, _)| param); - let param_names = inputs.iter().map(|(_, name)| name); + let param = quote!(#name: #ty_path); + (param, name, aliased_param) + }).collect(); + let has_params = !inputs.is_empty(); + + let params = inputs.iter().map(|(param, _, _)| param); + let param_names = inputs.iter().map(|(_, name, _)| name); + let type_aliases = inputs.iter().map(|(_, _, aliased_param)| aliased_param); + + let aliased_module = if has_params { + quote!( + pub mod #method_name { + use super::#types_mod_ident; + + #( #type_aliases )* + } + ) + } else { + quote!() + }; // From the method metadata generate a structure that holds // all parameter types. This structure is used with metadata @@ -64,6 +81,8 @@ fn generate_runtime_api( pub struct #struct_name { #( pub #struct_params, )* } + + #aliased_module ); let output = type_gen.resolve_type_path(method.output_ty()); From bfa70d1785a00e56af7a3085a6c332635fab4858 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Wed, 8 Nov 2023 13:41:37 +0200 Subject: [PATCH 05/28] codegen: Type alias for runtime apis output Signed-off-by: Alexandru Vasile --- codegen/src/api/runtime_apis.rs | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/codegen/src/api/runtime_apis.rs b/codegen/src/api/runtime_apis.rs index 21344beefd..a497fad9c8 100644 --- a/codegen/src/api/runtime_apis.rs +++ b/codegen/src/api/runtime_apis.rs @@ -52,23 +52,20 @@ fn generate_runtime_api( let param = quote!(#name: #ty_path); (param, name, aliased_param) }).collect(); - let has_params = !inputs.is_empty(); let params = inputs.iter().map(|(param, _, _)| param); let param_names = inputs.iter().map(|(_, name, _)| name); let type_aliases = inputs.iter().map(|(_, _, aliased_param)| aliased_param); - let aliased_module = if has_params { - quote!( - pub mod #method_name { - use super::#types_mod_ident; + let output = type_gen.resolve_type_path(method.output_ty()); + let aliased_module = quote!( + pub mod #method_name { + use super::#types_mod_ident; - #( #type_aliases )* - } - ) - } else { - quote!() - }; + #( #type_aliases )* + pub type Output = #output; + } + ); // From the method metadata generate a structure that holds // all parameter types. This structure is used with metadata @@ -85,8 +82,6 @@ fn generate_runtime_api( #aliased_module ); - let output = type_gen.resolve_type_path(method.output_ty()); - let Some(call_hash) = api.method_hash(method.name()) else { return Err(CodegenError::MissingRuntimeApiMetadata( trait_name_str.to_owned(), @@ -96,7 +91,7 @@ fn generate_runtime_api( let method = quote!( #docs - pub fn #method_name(&self, #( #params, )* ) -> #crate_path::runtime_api::Payload { + pub fn #method_name(&self, #( #params, )* ) -> #crate_path::runtime_api::Payload { #crate_path::runtime_api::Payload::new_static( #trait_name_str, #method_name_str, From c5dff9b273de48d3ab998a3213d1342287a89662 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Wed, 8 Nov 2023 13:44:27 +0200 Subject: [PATCH 06/28] storage: Change path of the aliased module Signed-off-by: Alexandru Vasile --- codegen/src/api/storage.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codegen/src/api/storage.rs b/codegen/src/api/storage.rs index 4ae7d1d8f5..6289708a87 100644 --- a/codegen/src/api/storage.rs +++ b/codegen/src/api/storage.rs @@ -56,7 +56,7 @@ pub fn generate_storage( pub mod storage { use super::#types_mod_ident; - pub mod alias_types { + pub mod types { use super::#types_mod_ident; #( #alias_modules )* @@ -118,7 +118,7 @@ fn generate_storage_entry_fns( let alias_name = format_ident!("{}", storage_entry.name().to_upper_camel_case()); let alias_module_name = format_ident!("{snake_case_name}"); - let alias_storage_path = quote!( alias_types::#alias_module_name::#alias_name ); + let alias_storage_path = quote!( types::#alias_module_name::#alias_name ); let docs = storage_entry.docs(); let docs = should_gen_docs From c6bb34920374604743d9cca6045e8594a5d46a0b Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Thu, 9 Nov 2023 13:40:01 +0200 Subject: [PATCH 07/28] codegen: Adjust module indentation Signed-off-by: Alexandru Vasile --- codegen/src/api/calls.rs | 62 ++++++++----------------- codegen/src/api/events.rs | 1 + codegen/src/api/mod.rs | 18 +++++--- codegen/src/api/runtime_apis.rs | 2 +- codegen/src/types/composite_def.rs | 74 ++++++++++++++++++++++++++++-- codegen/src/types/mod.rs | 22 +++++++-- codegen/src/types/type_def.rs | 7 ++- 7 files changed, 123 insertions(+), 63 deletions(-) diff --git a/codegen/src/api/calls.rs b/codegen/src/api/calls.rs index a71ffffc41..ecad82f929 100644 --- a/codegen/src/api/calls.rs +++ b/codegen/src/api/calls.rs @@ -32,6 +32,7 @@ pub fn generate_calls( let mut struct_defs = super::generate_structs_from_variants( type_gen, + types_mod_ident, call_ty, |name| name.to_upper_camel_case().into(), "Call", @@ -44,11 +45,11 @@ pub fn generate_calls( .map(|(variant_name, struct_def)| { let fn_name = format_ident!("{}", variant_name.to_snake_case()); - let (call_fn_args, call_args, alias_args): (Vec<_>, Vec<_>, Vec<_>) = - match struct_def.fields { - CompositeDefFields::Named(ref named_fields) => { - let result = named_fields.iter().map(|(name, field)| { - let fn_arg_type = &field.type_path; + let (call_fn_args, call_args): (Vec<_>, Vec<_>) = match struct_def.fields { + CompositeDefFields::Named(ref named_fields) => { + named_fields + .iter() + .map(|(name, field)| { let call_arg = if field.is_boxed() { quote! { #name: ::std::boxed::Box::new(#name) } } else { @@ -59,27 +60,15 @@ pub fn generate_calls( let alias_name = format_ident!("{}", name.to_string().to_upper_camel_case()); - ( - quote!( #name: alias_types::#fn_name::#alias_name ), - call_arg, - quote!( pub type #alias_name = #fn_arg_type; ), - ) - }); - - ( - result - .clone() - .map(|(call_fn_args, _, _)| call_fn_args) - .collect(), - result.clone().map(|(_, call_args, _)| call_args).collect(), - result.map(|(_, _, alias_args)| alias_args).collect(), - ) - } - CompositeDefFields::NoFields => Default::default(), - CompositeDefFields::Unnamed(_) => { - return Err(CodegenError::InvalidCallVariant(call_ty)) - } - }; + (quote!( #name: types::#fn_name::#alias_name ), call_arg) + }) + .unzip() + } + CompositeDefFields::NoFields => Default::default(), + CompositeDefFields::Unnamed(_) => { + return Err(CodegenError::InvalidCallVariant(call_ty)) + } + }; let pallet_name = pallet.name(); let call_name = &variant_name; @@ -120,21 +109,12 @@ pub fn generate_calls( } }; - let alias_module = quote! { - pub mod #fn_name { - use super::#types_mod_ident; - - #(#alias_args)* - } - }; - - Ok((call_struct, client_fn, alias_module)) + Ok((call_struct, client_fn)) }) .collect::, _>>()?; - let call_structs = result.iter().map(|(call_struct, _, _)| call_struct); - let call_fns = result.iter().map(|(_, client_fn, _)| client_fn); - let alias_modules = result.iter().map(|(_, _, alias_module)| alias_module); + let call_structs = result.iter().map(|(call_struct, _)| call_struct); + let call_fns = result.iter().map(|(_, client_fn)| client_fn); let call_type = type_gen.resolve_type_path(call_ty); let call_ty = type_gen.resolve_type(call_ty); @@ -152,12 +132,6 @@ pub fn generate_calls( type DispatchError = #types_mod_ident::sp_runtime::DispatchError; - pub mod alias_types { - use super::#types_mod_ident; - - #( #alias_modules )* - } - pub mod types { use super::#types_mod_ident; diff --git a/codegen/src/api/events.rs b/codegen/src/api/events.rs index 383ed52694..11513f6f41 100644 --- a/codegen/src/api/events.rs +++ b/codegen/src/api/events.rs @@ -52,6 +52,7 @@ pub fn generate_events( let struct_defs = super::generate_structs_from_variants( type_gen, + types_mod_ident, event_ty, |name| name.into(), "Event", diff --git a/codegen/src/api/mod.rs b/codegen/src/api/mod.rs index 640e804203..7ef9fef6fb 100644 --- a/codegen/src/api/mod.rs +++ b/codegen/src/api/mod.rs @@ -237,13 +237,14 @@ impl RuntimeGenerator { let rust_items = item_mod_ir.rust_items(); - let apis_mod = runtime_apis::generate_runtime_apis( - &self.metadata, - &type_gen, - types_mod_ident, - &crate_path, - should_gen_docs, - )?; + // let apis_mod = runtime_apis::generate_runtime_apis( + // &self.metadata, + // &type_gen, + // types_mod_ident, + // &crate_path, + // should_gen_docs, + // )?; + let apis_mod = quote!(); // Fetch the paths of the outer enums. // Substrate exposes those under `kitchensink_runtime`, while Polkadot under `polkadot_runtime`. @@ -358,6 +359,7 @@ impl RuntimeGenerator { /// Return a vector of tuples of variant names and corresponding struct definitions. pub fn generate_structs_from_variants( type_gen: &TypeGenerator, + types_mod_ident: &syn::Ident, type_id: u32, variant_to_struct_name: F, error_message_type_name: &str, @@ -389,7 +391,9 @@ where let docs = should_gen_docs.then_some(&*var.docs).unwrap_or_default(); let struct_def = CompositeDef::struct_def( &ty, + types_mod_ident, struct_name.as_ref(), + &var.name, Default::default(), fields, Some(parse_quote!(pub)), diff --git a/codegen/src/api/runtime_apis.rs b/codegen/src/api/runtime_apis.rs index a497fad9c8..3df7e30dee 100644 --- a/codegen/src/api/runtime_apis.rs +++ b/codegen/src/api/runtime_apis.rs @@ -47,7 +47,7 @@ fn generate_runtime_api( let ty = type_gen.resolve_type_path(input.ty); let aliased_param = quote!( pub type #alias_name = #ty; ); - let ty_path = quote!( #method_name::#alias_name ); + let ty_path: TokenStream2 = quote!( types::#method_name::#alias_name ); let param = quote!(#name: #ty_path); (param, name, aliased_param) diff --git a/codegen/src/types/composite_def.rs b/codegen/src/types/composite_def.rs index 37787df083..36004e237c 100644 --- a/codegen/src/types/composite_def.rs +++ b/codegen/src/types/composite_def.rs @@ -5,6 +5,7 @@ use crate::error::CodegenError; use super::{Derives, Field, TypeDefParameters, TypeGenerator, TypeParameter, TypePath}; +use heck::{ToLowerCamelCase, ToSnakeCase as _, ToUpperCamelCase as _}; use proc_macro2::TokenStream; use quote::{format_ident, quote}; use scale_info::{form::PortableForm, Type, TypeDef, TypeDefPrimitive}; @@ -30,7 +31,9 @@ impl CompositeDef { #[allow(clippy::too_many_arguments)] pub fn struct_def( ty: &Type, + types_mod_ident: &syn::Ident, ident: &str, + variant_name: &str, type_params: TypeDefParameters, fields_def: CompositeDefFields, field_visibility: Option, @@ -67,6 +70,7 @@ impl CompositeDef { } let name = format_ident!("{}", ident); + let variant_name = format_ident!("{}", variant_name.to_snake_case()); let docs_token = Some(quote! { #( #[doc = #docs ] )* }); Ok(Self { @@ -75,6 +79,8 @@ impl CompositeDef { derives, type_params, field_visibility, + types_mod_ident: types_mod_ident.clone(), + variant_name, }, fields: fields_def, docs: docs_token, @@ -104,21 +110,50 @@ impl quote::ToTokens for CompositeDef { derives, type_params, field_visibility, + types_mod_ident, + variant_name, } => { let phantom_data = type_params.unused_params_phantom_data(); - let fields = self + let aliases = self .fields - .to_struct_field_tokens(phantom_data, field_visibility.as_ref()); + .to_type_aliases_tokens(field_visibility.as_ref()); + let fields = self.fields.to_struct_field_tokens( + variant_name, + phantom_data, + field_visibility.as_ref(), + ); let trailing_semicolon = matches!( self.fields, CompositeDefFields::NoFields | CompositeDefFields::Unnamed(_) ) .then(|| quote!(;)); + let should_alias = matches!( + &self.fields, + CompositeDefFields::Named(struct_fields) if !struct_fields.is_empty() + ) || matches!( + &self.fields, + CompositeDefFields::Unnamed(struct_fields) if !struct_fields.is_empty() + ); + + let alias_module = if should_alias { + quote! { + pub mod #variant_name { + use super::#types_mod_ident; + + #aliases + } + } + } else { + quote!() + }; + quote! { #derives #docs pub struct #name #type_params #fields #trailing_semicolon + + #alias_module } } CompositeDefKind::EnumVariant => { @@ -143,6 +178,8 @@ pub enum CompositeDefKind { derives: Derives, type_params: TypeDefParameters, field_visibility: Option, + types_mod_ident: syn::Ident, + variant_name: syn::Ident, }, /// Comprises a variant of a Rust `enum`. EnumVariant, @@ -210,9 +247,34 @@ impl CompositeDefFields { } } + /// Generate the code for type aliases which will be used to construct the `struct` or `enum`. + pub fn to_type_aliases_tokens(&self, visibility: Option<&syn::Visibility>) -> TokenStream { + match self { + Self::NoFields => { + quote!() + } + Self::Named(ref fields) => { + let fields = fields.iter().map(|(name, ty)| { + let alias_name = format_ident!("{}", name.to_string().to_upper_camel_case()); + quote! ( #visibility type #alias_name = #ty; ) + }); + quote!( #( #fields )* ) + } + Self::Unnamed(ref fields) => { + let fields = fields.iter().enumerate().map(|(idx, ty)| { + let alias_name = format_ident!("Field{}", idx); + quote! ( #visibility type #alias_name = #ty; ) + }); + + quote!( #( #fields )* ) + } + } + } + /// Generate the code for fields which will compose a `struct`. pub fn to_struct_field_tokens( &self, + alias_module_name: &syn::Ident, phantom_data: Option, visibility: Option<&syn::Visibility>, ) -> TokenStream { @@ -227,7 +289,8 @@ impl CompositeDefFields { Self::Named(ref fields) => { let fields = fields.iter().map(|(name, ty)| { let compact_attr = ty.compact_attr(); - quote! { #compact_attr #visibility #name: #ty } + let alias_name = format_ident!("{}", name.to_string().to_upper_camel_case()); + quote! { #compact_attr #visibility #name: #alias_module_name::#alias_name } }); let marker = phantom_data.map(|phantom_data| { quote!( @@ -243,9 +306,10 @@ impl CompositeDefFields { ) } Self::Unnamed(ref fields) => { - let fields = fields.iter().map(|ty| { + let fields = fields.iter().enumerate().map(|(idx, ty)| { let compact_attr = ty.compact_attr(); - quote! { #compact_attr #visibility #ty } + let alias_name = format_ident!("Field{}", idx); + quote! { #compact_attr #visibility #alias_module_name::#alias_name } }); let marker = phantom_data.map(|phantom_data| { quote!( diff --git a/codegen/src/types/mod.rs b/codegen/src/types/mod.rs index 4d1738f1e0..338da6109d 100644 --- a/codegen/src/types/mod.rs +++ b/codegen/src/types/mod.rs @@ -98,10 +98,9 @@ impl<'a> TypeGenerator<'a> { .or_insert_with(|| Module::new(ident, root_mod_ident.clone())) }); - innermost_module.types.insert( - path.clone(), - TypeDefGen::from_type(&ty.ty, self, &self.crate_path, self.should_gen_docs)?, - ); + innermost_module + .types + .insert(path.clone(), TypeDefGen::from_type(&ty.ty, self)?); } Ok(root_mod) @@ -274,6 +273,21 @@ impl<'a> TypeGenerator<'a> { .map_err(|e| CodegenError::InvalidTypePath(joined_path, e))?; Ok(self.derives.resolve(&ty_path)) } + + /// The name of the module which will contain the generated types. + pub fn types_mod_ident(&self) -> &Ident { + &self.types_mod_ident + } + + /// The `subxt` crate access path in the generated code. + pub fn crate_path(&self) -> &syn::Path { + &self.crate_path + } + + /// True if codegen should generate the documentation for the API. + pub fn should_gen_docs(&self) -> bool { + self.should_gen_docs + } } /// Represents a Rust `mod`, containing generated types and child `mod`s. diff --git a/codegen/src/types/type_def.rs b/codegen/src/types/type_def.rs index b257c90308..23d3f7bdd9 100644 --- a/codegen/src/types/type_def.rs +++ b/codegen/src/types/type_def.rs @@ -33,10 +33,11 @@ impl TypeDefGen { pub fn from_type( ty: &Type, type_gen: &TypeGenerator, - crate_path: &syn::Path, - should_gen_docs: bool, ) -> Result { let derives = type_gen.type_derives(ty)?; + let types_mod_ident = type_gen.types_mod_ident(); + let crate_path = type_gen.crate_path(); + let should_gen_docs = type_gen.should_gen_docs(); let type_params = ty .type_params @@ -70,6 +71,8 @@ impl TypeDefGen { let docs = should_gen_docs.then_some(&*ty.docs).unwrap_or_default(); let composite_def = CompositeDef::struct_def( ty, + types_mod_ident, + &type_name, &type_name, type_params.clone(), fields, From 10fdc756b95b4bdd45f0ba7f1cc25ec2cde38d47 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Thu, 9 Nov 2023 14:37:17 +0200 Subject: [PATCH 08/28] codegen: Do not alias for api::runtime_types with unresolved generics Signed-off-by: Alexandru Vasile --- codegen/src/api/calls.rs | 19 ++++++++++-- codegen/src/api/mod.rs | 1 + codegen/src/types/composite_def.rs | 50 ++++++++++++++++++++---------- codegen/src/types/type_def.rs | 1 + 4 files changed, 51 insertions(+), 20 deletions(-) diff --git a/codegen/src/api/calls.rs b/codegen/src/api/calls.rs index ecad82f929..08d70feb80 100644 --- a/codegen/src/api/calls.rs +++ b/codegen/src/api/calls.rs @@ -45,7 +45,7 @@ pub fn generate_calls( .map(|(variant_name, struct_def)| { let fn_name = format_ident!("{}", variant_name.to_snake_case()); - let (call_fn_args, call_args): (Vec<_>, Vec<_>) = match struct_def.fields { + let result: Vec<_> = match struct_def.fields { CompositeDefFields::Named(ref named_fields) => { named_fields .iter() @@ -60,9 +60,18 @@ pub fn generate_calls( let alias_name = format_ident!("{}", name.to_string().to_upper_camel_case()); - (quote!( #name: types::#fn_name::#alias_name ), call_arg) + let fn_arg_type = &field.type_path; + let alias_type = quote! { + pub type #alias_name = #fn_arg_type; + }; + + ( + quote!( #name: types::#fn_name::#alias_name ), + call_arg, + alias_type, + ) }) - .unzip() + .collect() } CompositeDefFields::NoFields => Default::default(), CompositeDefFields::Unnamed(_) => { @@ -70,6 +79,10 @@ pub fn generate_calls( } }; + let call_fn_args = result.iter().map(|(call_fn_arg, _, _)| call_fn_arg); + let call_args = result.iter().map(|(_, call_arg, _)| call_arg); + let alias_types = result.iter().map(|(_, _, alias_type)| alias_type); + let pallet_name = pallet.name(); let call_name = &variant_name; let struct_name = &struct_def.name; diff --git a/codegen/src/api/mod.rs b/codegen/src/api/mod.rs index 7ef9fef6fb..9680602a0c 100644 --- a/codegen/src/api/mod.rs +++ b/codegen/src/api/mod.rs @@ -400,6 +400,7 @@ where type_gen, docs, crate_path, + true, )?; Ok((var.name.to_string(), struct_def)) diff --git a/codegen/src/types/composite_def.rs b/codegen/src/types/composite_def.rs index 36004e237c..4a64a66c2a 100644 --- a/codegen/src/types/composite_def.rs +++ b/codegen/src/types/composite_def.rs @@ -40,6 +40,7 @@ impl CompositeDef { type_gen: &TypeGenerator, docs: &[String], crate_path: &syn::Path, + generate_alias: bool, ) -> Result { let mut derives = type_gen.type_derives(ty)?; let fields: Vec<_> = fields_def.field_types().collect(); @@ -81,6 +82,7 @@ impl CompositeDef { field_visibility, types_mod_ident: types_mod_ident.clone(), variant_name, + generate_alias, }, fields: fields_def, docs: docs_token, @@ -112,15 +114,15 @@ impl quote::ToTokens for CompositeDef { field_visibility, types_mod_ident, variant_name, + generate_alias, } => { let phantom_data = type_params.unused_params_phantom_data(); - let aliases = self - .fields - .to_type_aliases_tokens(field_visibility.as_ref()); + let fields = self.fields.to_struct_field_tokens( variant_name, phantom_data, field_visibility.as_ref(), + *generate_alias, ); let trailing_semicolon = matches!( self.fields, @@ -128,15 +130,14 @@ impl quote::ToTokens for CompositeDef { ) .then(|| quote!(;)); - let should_alias = matches!( - &self.fields, - CompositeDefFields::Named(struct_fields) if !struct_fields.is_empty() - ) || matches!( - &self.fields, - CompositeDefFields::Unnamed(struct_fields) if !struct_fields.is_empty() - ); + let has_fields = + matches!(&self.fields, CompositeDefFields::Named(fields) if !fields.is_empty()); + + let alias_module = if *generate_alias && has_fields { + let aliases = self + .fields + .to_type_aliases_tokens(field_visibility.as_ref()); - let alias_module = if should_alias { quote! { pub mod #variant_name { use super::#types_mod_ident; @@ -180,6 +181,7 @@ pub enum CompositeDefKind { field_visibility: Option, types_mod_ident: syn::Ident, variant_name: syn::Ident, + generate_alias: bool, }, /// Comprises a variant of a Rust `enum`. EnumVariant, @@ -256,7 +258,9 @@ impl CompositeDefFields { Self::Named(ref fields) => { let fields = fields.iter().map(|(name, ty)| { let alias_name = format_ident!("{}", name.to_string().to_upper_camel_case()); - quote! ( #visibility type #alias_name = #ty; ) + // Alias without boxing to have a cleaner call interface. + let ty_path = &ty.type_path; + quote! ( #visibility type #alias_name = #ty_path; ) }); quote!( #( #fields )* ) } @@ -277,6 +281,7 @@ impl CompositeDefFields { alias_module_name: &syn::Ident, phantom_data: Option, visibility: Option<&syn::Visibility>, + generate_alias: bool, ) -> TokenStream { match self { Self::NoFields => { @@ -289,8 +294,20 @@ impl CompositeDefFields { Self::Named(ref fields) => { let fields = fields.iter().map(|(name, ty)| { let compact_attr = ty.compact_attr(); - let alias_name = format_ident!("{}", name.to_string().to_upper_camel_case()); - quote! { #compact_attr #visibility #name: #alias_module_name::#alias_name } + + if generate_alias { + let alias_name = + format_ident!("{}", name.to_string().to_upper_camel_case()); + + let mut path = quote!( #alias_module_name::#alias_name); + if ty.is_boxed() { + path = quote!( ::std::boxed::Box<#path> ); + } + + quote! { #compact_attr #visibility #name: #path } + } else { + quote! { #compact_attr #visibility #name: #ty } + } }); let marker = phantom_data.map(|phantom_data| { quote!( @@ -306,10 +323,9 @@ impl CompositeDefFields { ) } Self::Unnamed(ref fields) => { - let fields = fields.iter().enumerate().map(|(idx, ty)| { + let fields = fields.iter().map(|ty| { let compact_attr = ty.compact_attr(); - let alias_name = format_ident!("Field{}", idx); - quote! { #compact_attr #visibility #alias_module_name::#alias_name } + quote! { #compact_attr #visibility #ty } }); let marker = phantom_data.map(|phantom_data| { quote!( diff --git a/codegen/src/types/type_def.rs b/codegen/src/types/type_def.rs index 23d3f7bdd9..ed800e08ba 100644 --- a/codegen/src/types/type_def.rs +++ b/codegen/src/types/type_def.rs @@ -80,6 +80,7 @@ impl TypeDefGen { type_gen, docs, crate_path, + false, )?; TypeDefGenKind::Struct(composite_def) } From 80086656e94b1194ce688a2fdb16ecafc42ae312 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Thu, 9 Nov 2023 15:28:55 +0200 Subject: [PATCH 09/28] codegen: Fix and document runtime API alias generation Signed-off-by: Alexandru Vasile --- codegen/src/api/calls.rs | 16 ++------ codegen/src/api/mod.rs | 15 ++++--- codegen/src/api/runtime_apis.rs | 65 +++++++++++++++++++++++++----- codegen/src/types/composite_def.rs | 43 +++++++++++++++++++- 4 files changed, 108 insertions(+), 31 deletions(-) diff --git a/codegen/src/api/calls.rs b/codegen/src/api/calls.rs index 08d70feb80..b2d441d28c 100644 --- a/codegen/src/api/calls.rs +++ b/codegen/src/api/calls.rs @@ -60,16 +60,7 @@ pub fn generate_calls( let alias_name = format_ident!("{}", name.to_string().to_upper_camel_case()); - let fn_arg_type = &field.type_path; - let alias_type = quote! { - pub type #alias_name = #fn_arg_type; - }; - - ( - quote!( #name: types::#fn_name::#alias_name ), - call_arg, - alias_type, - ) + (quote!( #name: types::#fn_name::#alias_name ), call_arg) }) .collect() } @@ -79,9 +70,8 @@ pub fn generate_calls( } }; - let call_fn_args = result.iter().map(|(call_fn_arg, _, _)| call_fn_arg); - let call_args = result.iter().map(|(_, call_arg, _)| call_arg); - let alias_types = result.iter().map(|(_, _, alias_type)| alias_type); + let call_fn_args = result.iter().map(|(call_fn_arg, _)| call_fn_arg); + let call_args = result.iter().map(|(_, call_arg)| call_arg); let pallet_name = pallet.name(); let call_name = &variant_name; diff --git a/codegen/src/api/mod.rs b/codegen/src/api/mod.rs index 9680602a0c..8cc946ddbc 100644 --- a/codegen/src/api/mod.rs +++ b/codegen/src/api/mod.rs @@ -237,14 +237,13 @@ impl RuntimeGenerator { let rust_items = item_mod_ir.rust_items(); - // let apis_mod = runtime_apis::generate_runtime_apis( - // &self.metadata, - // &type_gen, - // types_mod_ident, - // &crate_path, - // should_gen_docs, - // )?; - let apis_mod = quote!(); + let apis_mod = runtime_apis::generate_runtime_apis( + &self.metadata, + &type_gen, + types_mod_ident, + &crate_path, + should_gen_docs, + )?; // Fetch the paths of the outer enums. // Substrate exposes those under `kitchensink_runtime`, while Polkadot under `polkadot_runtime`. diff --git a/codegen/src/api/runtime_apis.rs b/codegen/src/api/runtime_apis.rs index 3df7e30dee..c3faf3a856 100644 --- a/codegen/src/api/runtime_apis.rs +++ b/codegen/src/api/runtime_apis.rs @@ -11,6 +11,48 @@ use proc_macro2::TokenStream as TokenStream2; use quote::{format_ident, quote}; /// Generates runtime functions for the given API metadata. +/// +/// # Note +/// +/// The modules are structured as follows: +/// +/// ```ignore +/// // Extracted from the runtime API metadata. +/// pub mod metadata { +/// +/// // Structure that exposes the `Metadata` runtime APIs. +/// struct Metadata; +/// impl Metadata { +/// +/// // Function that calls into the `Metadata_metadata_at_version` runtime API. +/// pub fn metadata_at_version( +/// version: types::metadata_at_version::Version, +/// ) -> ::subxt::runtime_api::Payload< +/// types::MetadataAtVersion, +/// types::metadata_at_version::Output, +/// > { +/// // .. +/// } +/// } +/// +/// // Contains the types of the metadata. +/// pub mod types { +/// +/// // This is the input of the runtime call. +/// pub struct MetadataAtVersion { +/// // Use the alias generated type. +/// pub version: metadata_at_version::Version, +/// } +/// +/// // Type alias module for the `Metadata_metadata_at_version` runtime call. +/// pub mod metadata_at_version { +/// pub type Version = ::core::primitive::u32; +/// +/// // This is the output of the runtime call. +/// pub type Output = ::core::option::Option; +/// } +/// } +/// ``` fn generate_runtime_api( api: RuntimeApiMetadata, type_gen: &TypeGenerator, @@ -44,18 +86,24 @@ fn generate_runtime_api( } else { (format_ident!("{}", input.name.to_upper_camel_case()), format_ident!("{}", &input.name)) }; - let ty = type_gen.resolve_type_path(input.ty); + // Generate alias for runtime type. + let ty = type_gen.resolve_type_path(input.ty); let aliased_param = quote!( pub type #alias_name = #ty; ); - let ty_path: TokenStream2 = quote!( types::#method_name::#alias_name ); - let param = quote!(#name: #ty_path); - (param, name, aliased_param) + // Structures are placed on the same level as the alias module. + let struct_ty_path = quote!( #method_name::#alias_name ); + let struct_param = quote!(#name: #struct_ty_path); + + // Function parameters must be indented by `types`. + let fn_param = quote!(#name: types::#struct_ty_path); + (fn_param, struct_param, name, aliased_param) }).collect(); - let params = inputs.iter().map(|(param, _, _)| param); - let param_names = inputs.iter().map(|(_, name, _)| name); - let type_aliases = inputs.iter().map(|(_, _, aliased_param)| aliased_param); + let fn_params = inputs.iter().map(|(fn_param, _, _, _)| fn_param); + let struct_params = inputs.iter().map(|(_, struct_param, _, _)| struct_param); + let param_names = inputs.iter().map(|(_, _, name, _,)| name); + let type_aliases = inputs.iter().map(|(_, _, _, aliased_param)| aliased_param); let output = type_gen.resolve_type_path(method.output_ty()); let aliased_module = quote!( @@ -72,7 +120,6 @@ fn generate_runtime_api( // to encode parameters to the call via `encode_as_fields_to`. let derives = type_gen.default_derives(); let struct_name = format_ident!("{}", method.name().to_upper_camel_case()); - let struct_params = params.clone(); let struct_input = quote!( #derives pub struct #struct_name { @@ -91,7 +138,7 @@ fn generate_runtime_api( let method = quote!( #docs - pub fn #method_name(&self, #( #params, )* ) -> #crate_path::runtime_api::Payload { + pub fn #method_name(&self, #( #fn_params, )* ) -> #crate_path::runtime_api::Payload { #crate_path::runtime_api::Payload::new_static( #trait_name_str, #method_name_str, diff --git a/codegen/src/types/composite_def.rs b/codegen/src/types/composite_def.rs index 4a64a66c2a..fe6ed03798 100644 --- a/codegen/src/types/composite_def.rs +++ b/codegen/src/types/composite_def.rs @@ -5,7 +5,7 @@ use crate::error::CodegenError; use super::{Derives, Field, TypeDefParameters, TypeGenerator, TypeParameter, TypePath}; -use heck::{ToLowerCamelCase, ToSnakeCase as _, ToUpperCamelCase as _}; +use heck::{ToSnakeCase as _, ToUpperCamelCase as _}; use proc_macro2::TokenStream; use quote::{format_ident, quote}; use scale_info::{form::PortableForm, Type, TypeDef, TypeDefPrimitive}; @@ -28,6 +28,47 @@ pub struct CompositeDef { impl CompositeDef { /// Construct a definition which will generate code for a standalone `struct`. + /// + /// This is useful for generating structures from call and enum metadata variants; + /// and from all the runtime types of the metadata. + /// + /// # Note + /// + /// ## Alias Generation + /// + /// This method will generate alias types for each field of the struct when the + /// `generate_alias` parameter is true and the structure has any fields. + /// + /// The runtime types that are placed under `pub mod runtime_types` may contain + /// generics that are not resolved yet. Therefore, this field should be disabled + /// for runtime types. + /// + /// ### Example with alias generation + /// + /// This is extracted from the `system::calls` module. + /// + /// ```ignore + /// pub struct RemarkWithEvent { + /// // Note that this type is aliased. + /// pub remark: remark_with_event::Remark, + /// } + /// + /// pub mod remark_with_event { + /// use super::runtime_types; + /// pub type Remark = ::std::vec::Vec<::core::primitive::u8>; + /// } + /// ``` + /// + /// ### Example without alias generation + /// + /// This is extracted from `runtime_types::pallet_referenda` module. + /// + /// ```ignore + /// pub struct DecidingStatus<_0> { + /// pub since: _0, + /// pub confirming: ::core::option::Option<_0>, + /// } + /// ``` #[allow(clippy::too_many_arguments)] pub fn struct_def( ty: &Type, From 2bd89d4e98982602b8a120179ea730ba9698b7c2 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Thu, 9 Nov 2023 15:30:38 +0200 Subject: [PATCH 10/28] Update artifacts Signed-off-by: Alexandru Vasile --- artifacts/polkadot_metadata_full.scale | Bin 298287 -> 288657 bytes artifacts/polkadot_metadata_small.scale | Bin 75404 -> 59353 bytes artifacts/polkadot_metadata_tiny.scale | Bin 35310 -> 37631 bytes .../src/full_client/codegen/polkadot.rs | 10407 +++++++++------- 4 files changed, 5914 insertions(+), 4493 deletions(-) diff --git a/artifacts/polkadot_metadata_full.scale b/artifacts/polkadot_metadata_full.scale index e49aa00fe610286ef682ce883f56a82448228dc3..2f58b0fd9eed2bea0d32d6bdba683fcf7ef29084 100644 GIT binary patch delta 82373 zcmeFa3w%`7wLgB=nKP3K1eib`6G&hJ2_zUo0tto?kU)4uc@q?r7>3LcMv_dJnEc|+wbfp|m8wPC+AF=<3$4#vY1L{gzpK5qEh??H+G_9byY@L}=FB5V z+t0n9|L61nRhl_xpS{;!`?dDk>$Si6g|P>p&Clrz#{6SG$~%~I+0<3x{_Y@oYFfLy z!-M^?Hh;`d1xf)G^z#P~703)nZVWiopi6(tQChgtLEejl-7Osp6lIOODH86+e|ouA zOb_XEwev=nw)Y1@-NC4)?9rds%11jC-y(mnAJC9=)#sd(RZS7J)G^MfDc8|GqSfOV zuV3uU-&C&nR&U!DG&0^u8wdQoy}?*l*i36~Ua~9LA5(Ia()Gb;G!*XFl$)u;%oR0~ ztW0jDbXmmT9~kg!$}Rd^PVeXuim$zIb$@TDKd349=moARqem*fj!4iS9gGZV%H!fp zfulhGY0l`9vC6{5;r?Br?ieb$I2;T0_h?EX(VhC$-}UN+?nzXlH@c@*uUQ)G?G5ja zZVwGC4g*)@-v!{eI%zJMXaR>E!GIojO_^src6BFmHaCxG?~lf~XX+OyMaqgKxOKs8 z!AP(_0PGJt>0Q0aJ!xi*&w^=vY;Ly7&sv}qD;1Y)55KTKkB57-SXM&qn33T?@(WGfig}h-4F})hGOW3$DI1xZtoZ`dMkk5mT6Bq^`hL# zD@)Mv;qFk7vz>6#9;@e#v<#@@72mpGcX(Hjd-r)KU6nwe6ZPkF#*Ln!lwKT+8vT3H zsXy*6_mnCX>$|rH1B1Q6h^D;c)OTuAn#+`eHIeWhz&Yil0Ta#ur)1PRQSq%D?2Uz@ zA&l7@PCb%4dCVlmw_v)XfzmG=Z_)rw3Dtg!TLG1D}rR5 zMvfchTg1yE#B=wIQ~zr2GT@KIl1tKew43w@vMmWqg@dzF{OmQFmJTl=+f8ZRjPAc`tH1Hb-qjgO5Sv} z)ulg^H|eql1FK+QeQ!91UT=5N9utc|SCrFI;PGVti?Z-ye{U$@kA)*E{rzY;5LxM> z>vmbGU1+YqN8hK7oBg4(e0>a4p(7Fst_<~HR!Fk5)#!zwr;Bbf3q+9K6$?i7e0SmW4;0V(!9ZA3{4VOXAR-|H>;Ham>Zqem zvDc+~A6!*@DbZCA-s`=yy7 zMJ>U=tj5Orxy{XM2DkQxx)tRv{hwx5(>?kFGndkR`k!Wg0R;bZbqDb5tFJG7fLfxF zv=R^K+v=+e9|HVGlt&o8@;&^gXbPz9)AQ8v`pfh3sOiD4uJ|{{hUFN_U~K&Ws9x&; z*7mMoz)J<8{y=b#hpJ>cHkRNXg{m;ZSfV@d?Fp*uXl|AzFT$%rUVk62DKD*&iQ@Zr zQ!T#X3P2198jkSJMis$51EEN; z%OA`7Jy(0E)z=@~?UT6ZkFA~@Unpyoh+Z7V`Uq%Q(I273TKj!|vx&YaH`uq^ANB2$ zg=#%({Got5Yf-8i@DK3{>N} z*D0giE2-7i7Z`sdyM!1C_VIM^@o4#C+k?I+)-D!qt*<@i!>ZdJLmO*%1yOCV-xnS1 z=Ca!cdwYklSA+t-aKslvM*k49A(tFk(fR|bP@l*Xubog!;-S8Q-st9wgAt~e!N7`e zH~65fy+Jvo3Tf_(XS>OVSt1F*aoV`2yRW%<*X-tIx!K74D5;P!A22@e(85F>2?e9# zP?Y1I8c>WLa1>qm?A|rIp%1&2KIezC$2>(97Y_DIo+GL#Pw7|wuqOT-`K&aB6!*qi zZpEII@}lDV?7Wnu;a?oc+~67hyYVG%prfSZ(@?arASLPVd2s^F9Pimn#uJS{d%i?A z7l58$dXAYtK3km0eQN7-P(zdNCz9l-E(ztNdEO@yCnk1@ZL7)I-118=sm3jQgG{9`gd_4bGmWPyx8faNi5!z$N6% zNc{dKR9=#n(rGh@Ex42ws=aiLmn#=H<^M7m; zrYC5~*|K6e5{ZjC$Xt-Blf>sc=zRWtwu5FDILW@UlB==gb@B|>&uUVfO4TxK#u0z- zMM0cra!I_sfu@KXH_*f>qbO~$=3`Fs>IFL=V^V-xPHe!oWt3{+-_|`;cYY? zj#WpIxbk9}Y-Xs;Es!jerWgxT%_lME5}NV1F3s`7EzLp_`{t|T#dED{?t}NO(Fh0Q zBWwGqO!uwZPUR2oUw2fcUcGgLSHE<_Dl1vvzpg2l3Sv0k4;^$qxc=gKq#ktYr!H-J z@c1PK*0Wx;DPkt;KiKq1>+#Aw7w@ z8{ME{m831F{Z7jBt_b${yN5LLZ1+dE*HOjt=H}Idv4O!DsF=6ilnWei>Q8k}uCRTi zyxw5H#~?eG~Jz3%eJNY5hwR#3{hM0e}0!Oi-}En~)z zQqh59Hn#n~0Zr-Dzj=9=e&dz`kE$dkC4QnKvVhw^HdSD#>VNp0qxw-D6XwBJat%_H~aNlOh>$s(O9b z<@$HGjms_>8Ku%medqR0y{)H8Em!piF27uVs;6keFyfJRmEK_No08&=r1ZqrnBfE> zEA{7tT{Dt}6S5Lp*;HZ3TK(;w=qQ^kWCL0RB%j`%@3G51232zuj)%skNW5%S&Jm$-~^wu5YQso})oW9eOD)(5+a4(-C8B~^p*f5(0v0Xy+vB>~>Y{$5w zOz}sjgHFitU)EckXURYO4m!-EJOg458`QJNJ^CDUnoFFYT`*z;0s#l)bK62agVuq3 zr-j0`;c41I2OR^TPJQISH0@UY!Y}$jm3q5FU%TsaeZtOitz0uZ@X*dlTD2xiY}QL7 zle8I{xp==ADc2e`vv^swTAORVd_7u{pC&hH*8qBO%Et&yHfZz_x3O_}sfw+gslt*? znp{~mv58uzf&6Cu8?iFgugT>(ZLnMo8CmWboUHCO9;fdrDqM)|!yjci!zB?u3PRqo z!Kq&m?5aykw^jXTC0(@A>6AUOc_t*jj!Ag)Tx_nN$#Kl%@7!gazNw0EG z)o03IY=zV1Ec=|sKu)nqUu@YE;+E^3#u$&|Ua@8PZ$+to@JGAm5Y5nOPa8EpxO9)3 zN@ieNQR_*;KL{}z8k9y(Xi(nV7z>9ZhzynT}o^9cdovU=Ig#|3-wR!n=rSP-0cBcLW+lcQbdlb zmk=j{(`V6FJCTRQVhYu53q_)_uI&=NR{a~sZloRbFUjD?1k6ePJX@p`d$j^`6o;CXRp5|@iacyyDbt7UK#8o z{lGu{Gt%eYu!z2=Uvrg^?ub)76z3IV$7drBXEoQkqj&%JRf zmFjgjmKq>)3Lx_t48E@S-Pl;tv@IOzX1SfeKMGNM9(kkTL8M4DT%G{7Yx$Tc^qKt^ zrh)lj|8f)8%RV(y1(H3VnlBT^>;L+xRWzuN{`6e^@Ta{-rV%VHg1jjR1YZ60p5j4Z z34UUT^6D&MFK_PpJ71XR+)H$Tct%an5KPthq$CSD+XFQ$0Fo>~dtih<{qUsXngun( zO}qaIpmK6v(!#*9U{X%eJhMYM$oi zG%&jV{&saQiNEGJ8piLViuE8m{@7q7h`v!EACq(Xb`mSxjv1=)TiK@UqrBzO0VrAe zqrv{@V6+P&p>0ET!R|oR-_;!%8i<9xmON8at|w}cpOQk(>q#tZr}6RqL|4nnwPwSj z743_=E?TmwYyFaS?X4@?FJ02swH|*v6=gq0(NQkX!3RFR=42aK26~Wap;>vNZ3Q;z;C0^^>m#u2;*syL%7PM|kh?he*`tI!dPOGwDYKQ+V0g2XLOTVTX);xsE03VG|05st|d z??%Pyy`V4~yrazx)KX4Av^P2%1W4=4HP*4v6kmQpE%>#VN3Q{Q^q ze2|_yZ(9h#@~PXF)1&(I+gH+K`kvc2fVe+%`{H~mkfRE0kGIJAulL?I!=XHi)6jG( zra5}e7fOn<$)g`La@5Uf@+Y(zUDy(BQzBcjWBOOVP?ePsKB@om3oEn}Km^Nm($tLQ zI{Ys1x0m77wrp&stXluf9lmVIkKNIO9sA&+V!h>1OUctj%a`mN4DB*ym@Ug|e5;_r zeHuCDYR?nR)$6`gr~ma(t@EAs3WfgC0zS2-aDlJcF zKWq&n{m@r@V^SOD)LXti)mza3mS7+p4R%Ql00^3~JBfXFLD==|-IOQy4X=LsrF?zW zyKeo*-=2zn`48V-hri2?HWby!a$PKw?sZ#wkJrlDO_?@3Ye11EM4u?HfBM1OJ}VY`i$^kEQ?kp4y}+&+nid=$c=J!P$zfq=we0P zAU3CLDy1APmRi_e1R$zdH)9M`HUOo26t~u!3L#NK-}##hDOX?cjY@Ttnh=-d=(j!M zL*IYrk@1wTpM0bp!jVaj7Mcvjsz*mcl5**zn~?g@qYEaKVV{B?KN__<6yp%{M|y&i zN%88H->F5;j_-tx@;L=i^hcv*`s?4hP0g2;PSOv3w^}V!^`AE{)klAC2_6}jNn<>) zZ-9&!@rE&U|^6g4rW;k{*~)>kF`>z9(k;i%JthGtDfAd(p7Dt z=zu@gy`3c=nG5Q{*B*PAfbr-5_1VHDDz%ui0aI-`gfj~ix4!n}0R^v=rZG?k>pn84k56-KYi*;$TS5g~e zWL3HqG&>Z~l=&*P;*`-^IHC(IdT1Apz|GD4iTTND{a=4@*@zixfo0=T^+YqIS=~>( z8Mm2gwD*T%A(V?Mqm@!qDxr)~+L8i_C3|q@ibWNVJ#nSf+C`Oo#U=--Z}aynW9=!k zIAxqYWj0dcN`XD8fio4_QyMv?$euEXQ;O{==W~kJp3=lACH9oLoHAZf>QztgK)82@ zKLF)*WKg`-NFKfS$%+dbRr2!j5~mLQuTjm5C9(}5SsDg#&w|l_ZA`Q(`N#(q^s*^h z!%^zlCo7g6r-oF8n!-jT(E(=XG$rFJrr&(k&HNIxOL9zkO1A1nPxpg|2z;Y5zg^AS zV$J~57U$*rePgTqfk0PZkQKffh#zDi`4||mU9aw{&b@){ry8j_xoo5%Sazm>F zgCcO)Yw#nby-6C8=O4o1i9B1w;a)}4pZ#iaVO@7`(BD5e(8ZIPN(66#$2wP!D+P5ODywcv=k{kay+uhJ{}JiV&mSD$3A(fd%H~LLu&*@`h(M(b?HbNGox1iPQ)s7nXGrzx3;!d4{0Dzh zuK(~q#*G1UZk$NxG=hWal<5UODcJs+?VzgoQwVEN%^<8nu*;am{G;W0y&ff$Qlc-j zM4wTj4;3z@o%%oDU#SkN;7iombo^fBdcDVB)hXx?|ZQxsb79^gM6Q&dtcg}JA|s#N>cXfx4qPoU{M+; z?t`G;WEU*MvG#r(viqdQTwnF_ENp`NUfz#AFYo8$p`4udbKUy_H6^TpR=DOqZTGCpC&W|VTQ5WhupBs`zyE4OYQl%?^7Qpf<)O$ex<}XXgsh{}egtFwf(%9}$4Avrv6y1~iW0ZH(~-M4rT($9MxKu#w6)UVzC7d>U)K0hOomHqLmP ztHqV)@d^W3ZZmLsO~J-1Ux3OmMM%By(u8gD@56y8dVH=yzc-o_hm zK;=!mO)%bo%W1ro8gIbm%z1c)7JzF<$GnHPiSlhWaQOgllZ-bY^O34g|38<=@qz-J zyOu}G0m6bu9v%lLyXAm5ATPrs4~N4gA9*kwIr5Q*!ol33TMmQ+<^p)+L2!(ak30g7 zk@Atd-;pODx$hmL;_{h$-Z5G}a<@Ci$VcvGN4|XIK6Z?ikKDhGaq^M-(@`iNxicL_ z@{xPeQ7j+18y#Nx$bIN2k&oPg4lpgi@^qY^C&=eB{8%a1>dJ*y|QDcYJ;4gnv)7ZeQk;{lsq+Nnq;^Y>lh!S3yONq#{eySfDW z&RA$b-}&gc)oOY{nI8p92m9rt;?TCFR&0Ji9+SnWfJs+?EhY`|=-5)zdM%Z=h=coq z^)|%NUCfzil#$Ju$pqO7pg!}6cb3Ck&2B&VNSKS_c&Ay1Q7^T?d{*!3$eXL=q@Q>r3m)3vag_Aag5Zi5;TsA;s$iCZ(tC1(%ZYDJAyE3>Q?eHnC+DBD6vplvs=Rj8+>Jy zc3o=g(sQ6x+g6D7!@JF5akkypC^^BQEMb9%;S7Nj%4qGzRFEmfxisUxBLo3MVgj5E z-k8*8#haT`%W}KGYC`;K!RsDUJn8L9&%rnZAWpK%@ah}BP5DV2;_PA3+?-mLd&xQ` zn2qWla-RjD{pc_@y~8pf*}-3o10qo9@4-Q)CGp%9;YA8z)H?pP7{lc8WZbZIn9%ey z4_`RH#G=7Cv6_AepfB8D&tm+*#!aD$I%#_@y%g9Yw$yKoyd(!MlR-Z9+scMC`H;O7 z+S9;`#jJ$EczVO8{wTK;W7R!q5}0}E6d0JU_(9|dPm3*kHvC|J?<2cm=eGv6qR zSH!jh-u7^BAi>4g8Oj!j7(!w6S*CngQPVXoX_fGRgiI+$qGl%FW?xt&r9Y-mI61n- zk>2|mWdX2B?kx#u!*+?cMN7^`V=|_eWLU;Bw)(_|86VnPoaq2kvl{?d&}su<8x*g@ zrCp`h|Gr?7^&KTz%+t7)gl*+&K6FmA5|C#h)<$=**8B3I<}>xiPYnHo5Vl|S zkK(XqZ~yG-6drblBZG;B>Wt+L{G+)&9;MzPoPeW>7rXTpPW_z{z>HjKj zPLM+H_8>b0ypW9uvO@>_CV1|d){IVVyMB02fxhLG@tC6v$y9Oy*<~FkZHgDo4IS-Eb+yKmS_Rq0yT>z zg@L?c&k#=2rLBX~I{=4i%MlMp>4lal(dr0TZ!A)rsFnE+v9BBAshfY>07C@q9Lc?G z3ydTU0g!&=x8v}2!Re`Wtq!``62e1bKM)4Pn<=(uJ&sLi^poGM&H`)NIl|Iczg40i zK7DaI2q0Ts!G4Jni6ssiU>(9R7y-yN)vYOAjuPpbiX}#uFVX+})_N6oaKG9+nF=1v z{bUI(ZDK0{xcLkY@bLyD+{@;n!6=+u>!g#brIN_lrtAfol*d=17PU@U>&R;}4|;|! zja>;d7>_)!u?a&2YveM#nX+lzJPcrigDRGW_5=eP*oat3S9Sqd9J#P7d5xC*eQ+rq zt^tg}8XJK&Jh~%H4WX)S#!gwF|Nh~2b%R43AEnMxH#x*RU&SWp`-4+I^oU!Jz3nAK zRjJ?kb_WD`e|&od?Eh<|!Qqg}@RfECqUDh5^U=&{$OW%_ht;3Yyt5L2%g(gJ;b7j~ zG(j#$uYSjwxk&!mnPvFv`~7PC-TC{^LIO;GScT`ce<+01vF8u{c>c?~lg_ES+IJZ_ z-;oCoF6MH&aMsC~6Qvac zy?z)a;k=(z=u(}1$5+S~;9h|Vym_`#K*j36Ul2E>1vTt-u)8{lON}od?abxBGXYJn9oepuTk;=sCgX(DU?;gr`K6DjMK_XwM1(Um> zs0zSf5;{3Z`m-HogeRXiW#Kc#o_tzgl!bFpwR^y=T zg1+zZaiVq-ErBVch)tr4)j@}NY7$+h4mm`%kDB5e?F|ZaZS~_!1#OMde-Ndagi4v2 zE@aAH4!s&n{Q_WJyZn)mf2$FUKn~0S2bE&3Zw+a^y-J<%AT&ihIX-Dc0COM}=1z8N zhe!9GuBcp^wz00)9vXhY0$r&k0r@rya=r9z?=nt6X1+lVpm3$6%tnVK@CMqmK0lEP z)+ezZt|TgHvnny`h=HOFw-}V!;&2faG}{2jdI2NAFrYOK^$qr6n7YAR^hlX(>V$33 z?y&|vXH-fyX?uy`XLGu|ISu~kP=B`sB%bimdY%x5p`EBNrzw;7I%qlbN=x`P?-OgSA^uXl+0$yBHAcZlxE)X492j|#Ir@vX^J%gN^JpZWCw zle>xf?(;nAL6dYWn?hact>(*!$0=X@bPBD7alb)Xdhb$;#O4a}PCEpymXU#A3HBlF z{jAJ2LY%bNO|`{s735bB8TD4qsk3L)@|L%)qgJ-EuGkuiK}864;bDh3zml5O#~dPB zNi`~I;&3HRAJ+=T8rc=)Ft_|}hjMqK<$r{6%%*!CHS2=@-ZlQA-mpJF_c|2FcOb~- zw|jY-8;>v?hb@>9p};t?JnW#Ri>)Mc15H|_J?anxQ>jS3H_>zc+teZ_Hii2g;=5C6 zO2z%aC&zunp&W7KdC`nr!R~@E9~V3;qFd{r@lYO4lpQ~fCa3^uj_~SfR62P$^R~yh zoyQ!?u|(;+r@{N|NryNwjb^GJIK-c)VGK<)IGu-9of8m0o<=3&<{!{F?Sz9iiZfL( zdi&=p%2!`+Pon8aXMAVQ zspIe}%r%~aSto#)jodVyCbSLL$dit9H);|4en^F*G^LI_(pEu1bIjTNuT@kiKAeuG zz3LD}=h0O4ltU~ykEW}q9pZ}f;MMn@L)?5G=r6v*tFNxG!O+Pz!k$qcMX;n$gg+I% z;V{0vY17xf;SkS#3(j~~)liA25&o%E0clle0OG?~qqw_B2LErkB6>vDwzlpo$S6aP1#Cl#dd9^7$Ena?RsO(rkMgSVEZskxeHtp(K>rHMVYbOFE1R{x}yCKRFP6*XT|@DHXFh1$c8 zM;%I`RlaN{l{!i^5_is|2~a`8{Z6hkO({d-j5?YK1WT;k$P@*iV%CkXHEOwLP?*vG zthz+kzfsOen3;@M8dnl3?|J~t0@Qgz|Sx1{NiFYof0v_kadfGT_-n;6lD$8ar zeqK)(*1SD)u1cGUAMXC8I8#e}()+6GV^;B5M8%_o|K{wNdRB83$fd(ooNT{Ny zG&;ET3dBq@)^MTtj|NQaER;^EHoLvCk-nkMkT0{TN)*naDQN%PIrMq_JU0g%OT8wl z&ZkwCcKmDlu?dFyw;C!1LxESvX-D<*$w^%13r!SF84dfwshCUM@h$AWi6|(nppv$S zUD#9l`-5zG3r7P`QhSxQ;z{#3w{}-5w=o<@Y~URO;T=J%3Y@$yhM{mM7CraMa?^Ry zG=K&?Z1WfTw2z@~;y>q7MJbvmJ&RJBCQbMn&CyxdOuA#PRv`TMsik7z-_#N@avn9Q z^EI(#9{h0G`Kd_kn@2HDG70aP7OE&~)o5WG>_rD*M9H!q!)eLG5|JgESkr=4|FA<0 zwa}z-j}p}+H^Kl+{Su)5t%X(;=4vpMwUpHc1qKMSvX=RDfumi^6KhVXh2pvYRCC0; zp8*|SsfnGxry}9_J$c22pQYAB%2z)N;*HN|zM+@Dhcj1b&kyt?b04 zAF9RT{`pjbkDWxl7G8^W{tC9PX%GNv}+V~7f>U< zZ@YjxMFlrHT0V>QAUy>}{n_ z;Q51Ac+NG73l@Q9`pxD%y@+NNWRo3>{KZrVQB&*lU{dBSrs)%K=CQ0^sljhZWlh<# z*tZx0DVe!oWChHyV=@kvOeoATq7%I?US3RJ8Uc$|#f6PJWFoNgr(k98Yoqb`cKCVS z{(;xUvrDPWgepcXfpdUSLuDR_Pd1z(C_>=15Sz61X=3#fT0GMZ)O0pT7cM1v%0W#W zTSA>`P!qnT)WE+No4+?LrCI+I7#4}nWw7OI6gMm*cwUO9meE|V9qDxJO2nMyw0(M? zX1CGVsbz?NccP!c%sCFv7Akzg5tjAyqNCxK6e)P0@KvNFjjCBFbl5J`P;GmQkG*3B@5d0(u&8b>Dk zr_mO)G)xDspz-1tS5uCeyEq4e)m=ffcXTJ!n~9}>Xf>^GA9gttvfL zh_QaadtH1tLRBUAs#GeSDw{f?b}Ma-MEpbbY!xa#j9@l=){iNIx%D+aRdPe0_T$)c zKlXh;H8tFyLMx7B(uyMnt>7Q1S09GOs&=$iXcC}A~IAd*Vu9KKrh|IuM7G>EAe}I z9}ad_chC4VdDQphd@L4^_o46eonq&wX&G1eolnzw=to55X~EBD`{5w_f>>}9isNI~ zO>_Z0C+@rn`{FC2J`7$?_Lo@#gaj*FoK zR9&3@wLnHdI4-_(fT}W!vV(Xqa$Nl70Ol9Ew)!))0QH1E14@Q&x#KhF4zr!knTmp@ zx9+4VlTKx$FsFFBz5#n`nQ5G03Nz)MGy?NxI)Qmp<}MI(BWS%zK2B#NAE!03FM`m% z=R!25@|viKVwD49NiU4?IbVD&N~2YBif>1$<-&X?HLYYzl_il#IIGoLiL+LfIPIL;@eHo&xMZp@Ek82^HVJd$H`wTY3zvTJ+7PG`udJQeVkCJ?CnpK= zScxvpB#)J5+5Ri3Vr=@9sCJ6GucY#IX46!K16QoxW<=)=EJo;zdJR5;5yc-UMYE#h)($n={vG zut)7q$sWN(rfVaZ*ZJa;8)@>0`P}!dPNmiPzs?*jasEH%NYZSKkYtXG-|Wm0I!kWw z7)80iu5=pv>q;KKwN7QN^M84N1w#LS++WfEa(~6||Jz?P_E!!2>jtq80*E-Ara3Bi z6w#5ob{j#XGK5v$nEafu>okN?(vBFKP>7d6Hj^?O1ra`s_%NG5I@bU^he1TRnAS)S z!rf{qcAzkeKPzkqwYF!;V49j^zf7%JyDwGpI($(8z8YWS;e@5D^nqZjYkvSnVhB#v^%q4ky!!i?v-^X#oXH?eeh5)NJ^Px99=PtzaYT_oaT$vH1ImmL6Oh;ZJK zp=CZB_>#XKXD|80bWI3_59HqGSgWWOV-w z&y2L1fz5It0XmE>=^li~SYKBxJOK45Li$Cak(b87JiKu1gH?2*N;Wbw@lds!QU}^> zl?@)MS(BF9%~y-$k%zB|Xox4B2NAA|zjS47R}c4ns%Fh_~miEtj@BR;$AZxI2b6RWAwn!23pHH>yi6#$Vm;b zXqTU)7Ylqt65l0OnK_)=O;XJ~(gv2NZ@e$%L(oi)EZ;D z*wd7ubLs`$m1B&KRUrcvD3hCVg=M%_@LD(dz~aN!hs*Eu^MW8 zi9%Qxif?fkS1Z7Ul!G1aHRJ#V`e|BapNaK7+jjJ5rY#f0s*(*=Jno!11TBPP(NP)3eYw+EcSq2Gc>H6gW``x`hhQQ?xy;J|o7C zZwo@~Y{BgtQ6D1r;r0{GR$IftY!-tb>=Ab!p^{7C=wJ(SL)yC?xaz|WAc|W>kR=I+ znaLhp3=#{=YeCr6x!<>i^K7YYFfdxjcZW#$vr^%!S_!3BfIzA~I}q`iN2s_6s%c;H z)~?zDj+hnja3kSXBctzd7_a#4PO9Qhuycpj96>u|fb&BjcOB5=4<*9#INTdDE9S0Y zuX$W@g4;^C#w`qaiw}F*c6;ME(-t2X!vKsrx#75NMS5wBK-n#_$}Qr|tuz_=`2lA4#6hz&5twYd7ey zU!F6>4)W&QFzpsSMxt34K?pg7JXY0*oqGLaCHjxob|5_1xdxFxWCoExWD6p1Jj)>R z<|7A@Hy=5OJPKtGBCp=<6kk0^i)C;j@%BNgF`gEGIqY%L(CW@JgMG+O*lhjhPFRNq1& z^)V+${wX`p!TxKNX z;Db)yrYT( z1q^`DR0RfuCh-Zz_jH5HW6}wLQD3NE_PJpuS6y51vGr)$eZy8`OdX6=BnS~hG*(?( zy1@urlEgd?<|3`*o!Yx+18D+dl(8=v1CXS=ebu;Esy_g$9vKmUBi6|)!_wwvmDMv2 zta`+HE*b^8-s>wwJ1 z9m#iCS-H%?-Ll?_`(f;F34c*ssmTX68PFq;u(Hh2Zo<7D$Q?%L%Eo4Ew^ zWdCM%F9Mm^yEg$XI_NcHlC&7eC83EU-y-kyT&>qy#K}!Ofn61N0c=pbqr>0;`In5) z1~T(w(>HU;*p=99tdYo=2MDSfj_Jon7tG~tGtns{wT-QEw@o4;P2>V~ZDs@;-UvA) zt5G_hQaVq=)o+}VURrM5exGDN9OE*hvGZ-q1n49#p*0-cL$T2blZXTbKM#)im%&3GO z?Y34RY&079_Jm`;pqZa(#pcVHG27f}a3@bY-AxvkZ3N?~vGs^%ITMi=Y{=gcdd4~! zwI${Tjs>!PhNF`B?}t>^tmmDHFl?}cM#O>0kjd^B$h&4`j1X@Nb9DS|F?><~rE%hF zMLXUKiew~WHOsr|QpX20fQJaonbmh~78EOBDDQq8C!|Xpxs|-RkY>n0A@a2(Pz_o# zd=*y64TD`|C{{hZqnMDaq}oIS=ZiT>R^;G$Pq8`o7V{0f$!h52MsA>#SYaYJ@j2QAuKv zHXNw81ov&Ou=lZz;&t=pC+`}xh6}Ad+Zf0L3G+@yo4Hv_oxJRaA8o_;+8ArwjMD1l zB*or8G!U#k={$PNEimX)acAx;W1F%#5a?6JWlg?f-1$pqIA{+`$IM8VS$zK$))>4B zX_^%$0J&GefB>g_lNCM&_IupI>T?FAFDcmlH{^b;;M%_-_YH+x)K{JQJB1bMDJRFX zXku1)#Fyv>=+Hm+C7McQM<4wXtdY&A6IuF8RNhJ3&hq)8J7MPV1`fyFI2`95rel*3 zd*E!*3Pkv;G+UH>h5F7ZC#*k>GluNgapKHZXzRHYjH|fgcuCRQ1*e^vp$PP2GYjIz zRi*1d$wAU2J*O(D16aHOj^zo1o3es_!%`A*nDht)N)kq5MxPCaE&qm#24t`WTtRS_ zO7q|fydfp(f%Jn+O;Q!H^A?<-&Nw;1z*MR^T6`Cb5l1x{kpx=hEvsVU*QjK9j@HrY zV=oYc8#Y7O1!`NM6JUWoq+Zw`m<&`Hxo{xC)?)xN&#oMjKpgur3#xF7s|C%BQ^0#H z_5ul{w#|gP!Bn&Gf*%%cu69*6V3vvoq7n;9&@6;U1BE#!EX(+=*(_Ls&H{>Y1L}Lu zqmO(IHdfUiII{#Nux*2-6*#c1L4X2r@Fgnw{0mgvk|h`c7(+gp@qM=Tdsux2e^pxt z80%z+0&(+8G@hY!WI!S9m0_S*gs^IB5W5iH_sT*LqdCDqb!`>ExA74rfnz)ax~gr! z7Gfc39cbj$vVNb`V*+fqe-OeZFkt?E>6uXD>*M<1u>>s~lobBnngoaeEK=x{YQ62z z=wL7a|75HozORB!3_?;E+YXT^{#Y}OsZ;>bHflBP@z(xCYJ#Jw^2dC=acGxgQgVQq-aAwc0CKK* zVMJ`meavtl-ZT#qC(cG-c_CilxX;~k?0Jcrv)wEu$wMCu6l!Zaa3q$5mExT~x6c3)>*?$|#rE{Wx`;bLQM*us$#$d(t6`&m5!8aAW!HF}jj78J^Dz z#m*|4Vsm=_&JSRTn`?Y7nPbO>1+a#u33zeo@pG!=5y`|h`90rkspXeiiE6L^H`;)o zpZ^=;Lo|xnPtbb&-0%dk2kB3qpkB*$8m}9lq|e!29Y3T`*j~jCX}?-1Yp50%{X31E zQ@Um~B9G#*&JK|448aTp;%Bw!fI$ZwHCG7n?^L!5ab6PTA$dR$J;{A<9ZDKR*bRrE z`IJ>*L#~Hi?sAxsn3c2BfF@=irxmSsnAR?N?*5Xh)+?SmP7^vCOvsC^gUR28ltWvy zeBH`5J`-`DdE^jXC&)YL9Qx@(RfD_B394z@%&j%<7&S5DzB{+xzA*08UchopL4_$! zSb_i%jqPS_3@(rM8R9xd7>cmk?Y04GGmg#C4F=P8?tSXge0QeR4%wG^3O8g9dgmHA z4VbeR4x}Ej?ME~zn-^!9OMKx+v?JT6a+etYV~S@BYodBS6f=HI-lI?an8uI_Akvc) zHRX!GJO%F~luf2w_%uy*RJxM>p}G2xXXc7ezeDGl9-+nJ*>_+TU+oeJp!Q8P3c* zUxt^)5|=pmGOcUQye6fFUEM;s(G8|MnO`kGM0k5l`Z=}>X?R~L4*i@ygcrlnFTO%A z619u_eo6DhH-AB1_a=g&dvCyZ^x0p~t*ViKs<`PCjfJbmQFs8ka3LC7?^hmu`v1Ux z3@_|o=BUU0)rUWU1vC2%Y);3;r`~`&4*VlN`8zmSz4``y18MtzML#kMPjwf7F9=6I z(!{m@g>UbQt6#!FJMXvfoa_8Geci}adGx$DFn>7Y;f5O@Yos%X}FqUE-jPR8i>S!OPF~7*a9QAff{TTFmtQk;$uTMLos1m z$OUj%fqJPsR*r(bLp5op5mj5v3b)jj>W_Dn>JRuvif}898H+GqywTxA$4G^VE8m`+ITn!hDnzYLkn6 za=Ef?p+oy!0;tr1KwZVBU7N;~shTg2|M%fsJ;N}eG^0A!Y6I&~l@ z`v8A;C=R%)U;);&DjZwVA0F)4&gb?hruHq6V8JXGghBl7 ze6=)Qwa6d1#ITmd#NCcJZX6rW`XHhO@i(qY3e*OSQBTZlKyEcIcZP*_B^h6B!-65> z_F~rZ1<+`jAyJcKXACV*mikbP2OfigPjIS2c%(Y;` z2O!ThEM*vi4+6+Yt-=a$yw-&!E{4TR40mf90#&)T5}RWcB<9j(2jNrsb~1?Kq!3P}B7}LLOMLeaGzUJ;fA|BH zSM79B0M`SWmi^7m>sVTd5JNo3J+KQ#DR`(3x}Zhsd(yZD85){MD(U9e^I z!UeX^-@DgEOag0gcsBNgL{bI#D`}oTWaLryy2RA?5Rnk}Ttn|s>Fgtz2By~R5@`bp zof#8IK4t{6d{p+i#PRp2y6k!vG5=;wp~VO%6KxrsJquR#*BdB`d4B|hz27AU{s`aF z11@p@AE|m0THTP^QmP2S4!4Uves{XWdw--$)q^gv_D|GOebA-lEe`L7uA6RkA!s1} zAXo!;=j|>9|KMVLuj)|_xsHDOPxQP>hebKOac_NGt(bPVOOw}z-Rnwv8Q(2SETJ0Z zUWS3!`?)}Un`Y!aV#|AkbHFCfW%mny)Rkey{V4LmFzr#7xS9}7`Z1Syh}5a-lP>WJ zspmOPxJZ1~p%yzGih^&*GeNYfYFkY^EwzoCw&T|(2;I@+NB_1dy=o8Uyy zYLG`p5oVXq%YK@6((KfiY#ntH9iX{uJjzSlV|aVjb@VY!eUL_-;xBoM7q{NO;W~Pi zOWjEHW@3bjPMg5qvjIEp624s3E9Se^QuSU{T;^71j5*_?(skH*aMLE@{>dE0;$PhA zXpJA+GtvzfbC1kG8H$$#{}UWt@_mZ9C6D8b?%}^U`~on$GCIr5%R4z9~F)iiPI6-f+&t5 z4Q$E3&P)KQX#{l5eN%%n*TA!8A8y`8k}}_h=X^$CA1SRld39#b!qj`)kob{?)%a_l zI+hgi7oQqJl%)4Hb+ve?98>UwQ~i2;NlxB!d4(%3c||n-XqPOQ*Vh+mTf`v1uWk=V zLa`whMs2jefxR_vu%|juY8WWgP>0FMC5|>IC4a%|F!txTTg>r`ML-V*BSSUoAunb(L)@QTPyrEwaTz#0Q750xu+QYJvEBbo@7CDv zS|v{fV%u^zw+FB>c*#)wPd3dBk}z?^FockhVoKoR`DV2c_lw(MEB4F8Sw+t=L{`aj zBxbVIqr&t&mj1;H)h$|ZAcr=a$Z(T_@I^K;!&n^1Y<=Atf2+(Ob8CosNQkwLkkqhS zW)?!JXazsr$69&mJXvD|N>sc{aSJD(Cl%#j4#zMSSIkpA>a98As(EU~jN5bE4clM~ zi2L8+yoR+0FI8rGFjcX#>;Z|CLpkEcc65fGw^JamHUlM zsF6KStg))CF)B2~Y`NM~C z<6|5Rk&w8djC`WjnO2(-WEy?k-8(4#ltvn&bUW7lK~x=#__oPegd-9Lco23QL6-XP zK}p*qQBPQcTB{Y2_PbHqFI)i(85j+nDRt><^7PZBpS zP#3EA=ZGIIP?xEX=7^G3b)x!Mj+oo3PT_QpC{uOB+?*b^5sM=RrO8*7hw-H16{V%G z(2p)qmof+mzkZ>*h%1#Zw=7h95c~PVg(|{Kr`7eOS=R}(uBUBvose~vkym+|>%!~v zMqNjrYgNDGP*3KFfhB7F`DF>#*SPE*?7Vj+MzlXh9vQBe$|<>x8on!Z&?#PAqLz7J zyXGxj-QR=zZ+Z~+Do1Eb)wp^pM;u$GPUGKw%hajjg{7)DBXRyRwInTZLE8IN;aQH7 z01HgLV$pJS!aszr59gg4_!&WR%a?Ki%Y>+NdQ)PqhkI!Pf&CyZ$KmZ1Th zoIpt;eWwvgwOvK5BeP|*FI1PUJC$SS>QPm?Z|18QM{xCTq~v=uGvAv=zBeWC67j}` zYU@huq1J67Hu4V&emVu(nM`PB3~2m=*h%QY_l!x`{DC>?KC(@^4~$%1(>fJ1byRHx2O`H}}3o08yx*moc$#fuXw;sl`hBP&&3Nj{iB zd6iH*?h7H`o-S~Np#S-9ab~4jI5y=oHZP=mSE*HF3*ko?;u}T^(R62?QsQP$t)n|u z;YOu(W$xj9&FTza0Pwx+76*Ausvn+GZg!=jRGLp7rP?hcM&-|Nr+FKSk7`xlq>2WU z@*AK5bO1VkDc!}E;TI#C)w1{&TM`puzv=x@TLrSc2Ci_teXH6dyxkaXL+o*fIS%73 z-UkQ!cl5(b2dY!KjhH%oi#kADc6EA5*u3$bH4w0XfW-TIY8zHTRs!=#DAl<#c)A$7 zj2}Bqe;C#=5lQ1=N`tI(eC9Jz~bM7sS6^!s3AXbOIoo(*9H4qv>-nyIXVBdw>CNucCCH=$gB`7Gi z^r%IbAv@%ds2$buCdbMc?1zkqTYI138}!BE7NUc!9p*Um5G6sCybFvE)Gk~Xq)uoe zTO1fd6LBO5drG~W`+p~`K9rSKH@g2vXf?q8gS6U2_kV>}!`bwlY4u#W#OjJ>m{$pe zY!ZU`wzaLcx{rQ)t$GWoOWaalFC7ktu2DydPp(%VgJQU)LtUQ(YxW)pO~vOs)UT-R zZgxTJQ&+lm+#4^pZB(cE>Z}{?*oBeysW`7yN%te(j-qSb;#(Wl%?0~ZO3A1w_`>|h ztPO7Cu(AmjC^D`Fi2VjhFg*DVWfPuMymrbIuivfsjdJ4qQ`DT%IMpT!14?VyiE3GZ1!W6ve5Gj|;}8vdo=i=pZ}h4^d1J+VAE7 z4g>yBz;-*4ym5td>_-6fWM)O#Z!U;ze82(Y+w_CxB)r`=Z4PE2$F8m7=8q7F_|pw) zp+`otztv5>Naip^;@~p1pcefoH9$7hlv^`Em0D#0uB5BfG{(|!gtnTDo-$lkxtA-< zJ&#Y3wk+tv+j;sObSsB4s;Gbo9=qUn4@sP>5T2qS+Xc*7n-NE32$<~J>oWY_4}$@c ze&Go3VczMD2u6{??i~r{Q8}D}i&=!-o(%(ie=nTFD=x;4WzNv5NRTg$z+NOjtWA7T z?nVnCo>7#0Gr&qmK`5PZL9g@(NV)=&*NDnsnOfd22YS(@BN;GoV&gmDjTx65-9;JA z&(e3w!;D)VLKVA}N8Ra8)#4PQWyY_r09%saXF4`OJ7Ddv3C<;r?IA5-WwQ>siL4a~ z-%Ic~%dKn)UrTv*O=fXu@r_m<=9QB9eAxbtlewlX2ZrqD%p3cFaRhHN88Oo%oE3JK z%b|sm>6uvD(hlLC#VD+SP~N5827tbx)KJEmpJ7upz=ozC{s}B8FkHiHTg+M#)FDTE z-RLUrBCDcZrW-bMY+EJmFigx7>HZ!tVznz!sRd|tKh_tbBPs5tTCg zC0Dx{>x4fT{F!8Hw&RN>M1gz&z)jcq2&4hqGxHl=5vi>*+k?tM><75#<0-NVsSWhA zi$OxjVXjgbPvjXT>`nLEI*X+e$;_j)E%t%6XRLyf+h}uC8Letpivu^R-ni-WDY;~0 zR3pk5Lp8{X%H*tMzRqe;De9EngS`mJ(+(2qd_U%ey5QCL16 zG6+mu^4Yb%1g_)EU?C^oIi*Nz9Tw&Q zl&b(}xMBElsKE&c0bW8(quF&tl1(-v!x>ag@&Oha2Fy4rO0l+`d%@fzjKv%ea99K! zb!tm3p`urN$DXYpf-q?}z}ax%O3oC-onXHbOXMi2akQ3+tGU!mv^3(1RR$8k6JDAR z;5n|0mzJtHrlDtWQiJ0H&e@pzrh!TCP%Q{!Oq$~>6Ewq_8;6}>w0{~X+8)?mC5V>g zGp&>wVo_th+gGpMOIlj{AnsWIjs$=;gQjUxnf8jk4_HBO(LO2M956GQGC`m&l|9|T z+BQ4wHH<+fYLCkYA0I|x@sJ?RpuiV1dFR53a2{|{fqxH{Id8>LWs>%sZR*B?GZP)e zNTI`UGKH*`2S*-j4Vozre^VZFCo~Lv@MXv9q(87UzsVCV3svv9(xnlcDFabD=7uXo zT_D)&7cI9!aQ3YRb=-MWy3P1}4BNVy6ATbX+JsF_Z@{|cS~+I&`+N|XX+H=&nFWzn z>Gi~$JmX~`QelB-L~vstTj*eJrs@~O17P(KuPqBw$_aNupJ=t%)F;|(s}{0Y!c+)@ zS$HRfYMW*>*c;9qEfOS+a5Rjo_7{&NF3TdSz+|D zk&!h0f~^`C4T`aIkEp08hED)Mn1;4@v7 zfl}2o;Gr3>N6uOn(xKT~>!X(B-m~9IAcT44TA~9vYy& zU<_woi0O=_u8h(?1Srrzrh~>N2pKu+wyb(B^^KgaG2A)@)RqFXZYrXHjB(d$B-|wIE`5cVN-tW8amuEfK@1m0vivwpHW^_{@ zu7d+81F6nV8EQ5)&sN)hK4*)s@1$hH zvlQ|Dt>NPPTPT&(^ltTEe`K?Rd1(e$7AQ4#%cx^*QB@z(YgUP!#fIzxyNIT@eo$P#CWI~_A%dhT?Fj0IUaTMCf>+u)C-&VYCgrI#S+@ZZLNK1tw)c&A0qMCLQ0C*b6 zk!=_WIogOCVt1opGK_PEH$U8$a5?!QpL4nV5|p!ho2h{%ryG$Cup9|B3S!?9(p(geUA_ z-_lOSYEK7>3wzXmbn*9j#1ntJ8_HDHrHdIqlICxVepNhR(~iLu+A-i6!Qo5m{#o$g)t1j;nO0O*+kq0; z32Wh%OAg-JVWiD|ZdhTstH5&}YcFQ$8HlB^^QJM#^t?Nk z2v*TR5z)~6sxDHTCmO?zgl2r0KCvlOmVG_D;~^g+bPW`$Pw zP#>gl16VTc7GNwu?ZC7;mRaf*1|o*mleYtH1DahbMysGgrS)cWUNle<)i*xH`{e)1LbX*VRatp$c!`>E!QHRlTc z79o16oU!4$L%?Z-umlcGC)i||yH_P$ZQCpn)QnHYd z7%B9r#C8*j)ehz3M{-x*qbcx+e#d(~#^06i^O!j9ReRuH{dj!m9=@9K0ipiKSNW~# zGxzc%YU9`VJU%GY-mmfbu?kSSHkjqR+u#C

a49gf=+OX`w}uZ<>>D^tRMk>8a4* zcP0}+BEz0Do-$1X5H%vV>L9X&Q${<;76S-}Qy1bwag9JKLR?T2 z(x%X7R+@Z`B{W1O@$uJqk&6O5qpD;t&sVX%ybO`=NA~h*_;Y42|4;SKeZ2lE)?ibk zrcH1l0y${XiW|o!vY(Et10D-MV5kH8Jl3Ng1FeDKzDx}&zH{tBN^?Y5hv@H7W*s&Y z63dQuV8^s|*ouucTDHU!n0&RjQn=3@SPo`}m86~mEC5?g_9m#L!hJ_P>;@R~s)@;| zD4?`OLHb!{qrvV_l5t$6zPa=XO>gIYvMM zVPVp*W-_9rv`>-LrdS|VcnR%0X*65fwrcpFO)(vt2I`C42%a-2F?QhaCi252RU=49 zqz#NDhzc3^t$=$xGaji#H9;;Y2GmAMH7AR6$kA>r58AGek$&_7mRdST36iTV`gYHJ za~SHrf&S{gIcnEUVG1auDyVU`rWUFm?YRme(UIib2hkKXUdcYF+`h-`twhr{-l#&vL zeaIxspxz?uZawW_X`T0w?2L~!xRGP906n*5m{!Bva|4$kW2G-835)JggvP zZdgOhR=Akjq^F63qsTb!P(;6`Dsm-aLQ-mqWfRTs=}s*Oj$I=lQ&=B(WN=9XdQ#WY z>z3CuPljB_E_xuJF)uoYPlyZgSeMd7GIVvQNOm3x(O=5MU8B903m>H0lYs&}UUUDC z@4NhJXG5yy@A6Uhm$iJ9SG|NAg1nn#8_ByevWj zzyLu?z%ilrJjtix`p~EFXFMF`x{J-BN*mMAg!tJf`BLt!p$64@ty|ydy*5k}VZpwA#&|ITvzk+&6>s(5%yUcKTa4&bFweoqMPdo0}S!}vm@jTB;e7XI3 zKIw`f3wMv#rVH37pX-{)0TvvCRSJayznT=ccy zt6qPRhj$=2`ol5^YM8?C$}z)}mkhQLlv`O{Xyu2fbOU<#C=H@BI-XGx#B| zT6K<>5NOY?b9^N~>{X}F@#V7*dsFpoN4&#m(-9PjZGA-NpP)AUicj{}N$q=t5L*9ral&gbiQ=#R z8X>OUlhl(79_y4@>8rsF(NUWUCR9!5Nfn$ea2?;E@ti?(aP;C*hDh7?Aq-BMdd@m+ z#{bV^6cK^}W)0AwrS@@8RD-;Z0D0el;}ln}(D&w~=w%l7L)< zn=}YH$*D3Ciw^~qzHKVhOL#~1gn+a>vKdTK19os-OKiK5?Je%E(_Kn16y&7>0j5>! z<~wv2G!JqV@eyRqvPE$MtBAB~vD3UuYe+NoCeb|#gtvQDv9gD7pV~=0p=pdlAy7*# zuq8@ZSHXYTl$K@`l9)NdJE84Mt0M_K0E0Xvy}^FReFsf7lvayi;tW>UFHgd>I_>Xy zKs|PX*H@hNvJzXXyQ!zA6Qts7+CG3A*U&Q>F{rc;-tcNa(KyOl&gLA`=SgCY=^L4C zz?N2&?|f*ch{rDUoyRAU5BhV#i=R|N^1*OI@&OWK0O=3B#macLb-G7Ql1@qYxtJ9VIBMuUm&%kcs$+-B@ zf5es1+})^-{SUs5<;KUo#y2qT@u}`JyxM_W`o}Xo%R9=)wwv{!c3sCNjkZky5F8@y zgJXPZ{7?BZlVS4Zk!X{#p(T9%fMc`xryl$%pZ)1kzSL29f7q&e zUysR{v{d7L!;+2n>2&l*y4`Lo$LFRyE!9Im<>PDI>#oG<0?h5LR{{gTZU92_-0QBA z)&+WgRmyW=SyOZ|f%mOE`rt3h4_GtRt}pYsmlyhs6{*;lv?3Mi)b9tZVtnBEHrJ-;MEd-v-+f7Ak9TEJT5!;gCIbv`xgJyt}OgC*C&f2h04r`~%VYUyLD z^el`_2KUOHZEi}}-|~5lPyOv#J|DadHELF^-Ke^hM%C&@9m}@rs8RT~+H|1NPP-u` zZKF<`{l2w<(&F1j9|4Q)XH}~B=TN`D0(&qnT8ReZU-&uydlzppYv|A16Pv<51@(2W z)#M!0uWbbwQLWoc63AYMVRW>5N&KQvHIWQkvy?D3{D7!^v@k(o(+Y4DQz?b0Ev>j6 zgF~}g6|4p_W0yIIaUw!HMiMTpxrAYhzXquU1UZb0O~MqGVaPh+(E#Y?R;XHScMOtR zTdLcj^`vW6oiao7ap0oR{-q!#-2=T8DWabQVh%FU z2m*j5@oZ#rsr@)9qh>Cli`{PWrBboY4&hu52gM;YGDH5sCXorsIGl?gN)|QapL=zt zeBI7VLtyCYi1m_)og~=msZ5?P!Zu-AHRS5f8xoyKL+o-VJ)4Obv515%nGPsd*prf(?h#SdoLnS&@Ut05x^#A`nhM* zy8DJNwYzUn-Ra$Z!|ueykNGuF#I66B=i$%b$Gm1jqEhReZss}9TR!Wp`@RFC`aJdS z$9$vb9X#jfeb#yNaPKW5$S?Tz?iMqqUi7ijgi@X4CrpJ=r6QR1f}Q?1BE&!NsV*jR zR0$Ic?Ju(uDvLN1LCQy*Jy%UMh9N2Ca|E~S-zN(?Lg6j()+4l{v)7QaDNM&tzL z6C!`M%b&_qd!XPP63XU5FbXnzOlA!079mRL^7Kc9xG_8`E&G_^*~ggd^an~COxv9t{6mqsGfhO|^0hZnxl6u!|E-aW6hB|6yM>X;dU^{35^+W*ll zm$MSGe1NVOK{tb7G4K%m(H1`gL!J1l?H=`nEJAk5RNKWaKYM`4J@^w7Goq?8G!?Kb7TfxerplvNcDN9i+RG(xBw!;3v3PkVU z($YpS=&Eiu^ED5d=Nm>IJ2T~yRqAS+w!xqbcCzo5)OoNXw6VJU7Jf7V*y6XgnAH>; zQp@&XAPu4a+hYY`K``Q)002kLjG6*8^g~E^}_;$!agCyfK1pLZ=q}A+MNs?XJZxZkKtN-+hXJZG_G8Ls}DjJsQ(X_+|{i&%BqFje1 zvg@En(tXH(#BUwKM}F9E9rnAcfsF<%G(z|9il`F5DC9@{>PEkq%a8iim+`lz4#51h z(`h?kHyowRMb>j^wbPZqiTtIknHcCw92Q$>!QDSY@a8$!naAUYkQ~)Pn$7N!cov@}37Gy%&J(a<3Skkg7T+`dr z+5t+8N46s$@DS6Qa%Ol_&X}g0@vEyxi-i?u)6%~&JpCIcJ^kV5{1$#N+@%{bt+)K@ znt+(DUL7sE_&fSbEkEy9Ukr%3v(Kj$dtrF77fi7i>_Rffh_+9CfK17?MPt7Ou$Fpl zrHnnnk76t@`iF`?CARpZr8|oq%QjblNT6`4ua6OVo&XJ+1Pr7q7%Qe;#;jZz`(ToQ zpTJug_nwyH)aJ3`veCjqe1Z0V#*4ztue!3-{dm4WT3Jg7T2BJ6kM$aX(ZKGNm+Lw! z>;^2h-m`Mo8W#%KRx{PF$BMkgZY%d%gs8Rkwg40%lWn&PfC`A74J*QH1#7!jb$3Pp z91Bo7wPc)_G1_MZ;TE6)=FqK7bs`sva+< z@f^1bj~6ow>z9Q|4M%aK#5Yq+_*N8O>}Cs?-5!df3%98!P~AfF8Ap|qw7lGlpg7#- z)f%3=*qUIiNS3z-(SA7b+R(d2Zs=b(qh9sfiNZ6h&v{c`?qmiS>qIMmeFv^$q8KTR zs9W7XUd$*3&K+FOBe?d}ssWmUM*afS;-<*vhdtVjH8 zviz;)S^0evL?DoB>K&sR@%7G+%(5v3c5e4G_;-SsO+RQ1f6JBEsKdy+2a~XsA|kMByzH5TA`kYMVK(AnW4eSwJm}g0sLw!J zylV0!G!Q1O+DT$2hb5|a63!l&kG?Spr|m|cdU=wV7OSj>wlGSHr}cdZ%BHGYeC$rD zI;zpAo3@$f!|MB^Rcaa@Zqw>AX+>aTvKtB{YeK~xmgz%lxfT~1;GIcm9G|8bhw zz=}6Otp(*9xDLPqg4fkn0lIiK*j$i;K(?%>50?O_9eLtsyemVkn=bk?x|p)ka3ZH?jLV&wLm4WJ9wIn``G^X zxwE%Sw3zSVvvQA`nlGmLoChuIKUB-}MUkWjYJ0v|#(^UJLcVx%^j#U1mD_jVoWZ|y zAGp+KXNuKV?9MnWvJsJp|CVE}Kx&H3x8ki=hBW(=f4Rf z*n|bp0F`PE!}0$w3VN;hg!!V4Pbh`nc4ZF)K2pX+1At8hSMZwJ(H-FSzP$wq=VJOzQ%6=CQ}0dsc##`N8tEt$3`+`w;=E`Q5!(yTi_Xw+x2Q# zuvYt;qfLmA?+6MF!8lTNN%8Gu&1k3oe0~Os!fdiq&TqiafyKs)rVe zc~gU%aeG-G3~0Cl0(T)e0GsG@e@_cjzh5Y(UyVJ4wqW2o!$nS0s=yV(jD^D+9fHp) z!K`gU@M+J0hA748^{RyxVhZCxKt+A$GSqDq;_|E(#e~NSRmfY z5b@tvi0dVPCqq?Mi7)Ys8R}G(n9p6ADsu@a-;_*MwnSVmw=i~_YF;8HxEde+h*|N^ zED_IeR8&$UKy_%jw5a2SB3pgCMl6wqnbJ~hnHYE9GEmD#p{`gaW_XM76#LT}D)`kd86=ij+GD}G^_m>>{D>Ap@>!{P1r9x17o;z{xl=8K9g&lX}exw(rcaz0v4MrTFOi z>m0wlwPcuv)h(#Y#V^^PmQmfbQF>xJraIDAu@VaS;Z?mGOnIi0I(ASemKJfqZO(E) zs0~U%GQGk}bOUTA6rMh=qJXptFlbfqw(0F9@1XWRH!vTT)YL575dZ3c5Nzrqh84Bh z>_)pB_{m_+>qP3vR`I~ZUj!T0uezal<*J67@?dkKzp81Q$eUPlEmmqY64hjxSsvij z`+pH!qTc9~rLj;1D;yvoP^187lf09#f(s~QgFl+kn?(^iJHk+Bx_*xkxx+-Oe4UC-Fi#V_`HYMAhRI4mx~Fw^59&x zm{^)Rk8n%UI6Aaf-~xnblRrc5#*IMk;?Haox3IBQneSQtx~@J(zx+Ym&7oeMB4)>K z2(AEk1~2fsx;6Av8{9f@@rVwTTGb8%8yLv6wewVPslDK|Egd9?j9Qexz;ubI66~$W zR~X7#2|7lhg&9R9Ah0{N=Rek`oeKtaymn{=$_QD-j3SdL2or`hpdVct4bi zQC(ecxaF2;k*+p!N$eQbaedag^cuU-L>Tue;|iaOQ-zEv*?(GIy_ zHWu})Y-9lub&uQjE^}3W{ z8_X#w=Kor1NqP&7RE*`&8|nzm=J5E3Lpd!%y$8YDwBpP&NXz7;MzlHDY|bPjBw|Hx z?{7*pt_h86#$6@o{C}v=_lh7JP~Ywq5n^=4Y!P4NwV7)F7V%BKI#X5kiQlm!YHn04 z;EkE8Gb(C5hZ(!aVjF>3|HCMB2`!oG=TXq%aHbmH4>k#h{eAu7x7>Atv9Fo6t{&JX zvj5!C{mE-tbY*(u(+9&xm&KV5VUJ+~d{nJ|jxhmu?f+$qyL& zjyijrI4yQ$`qZHvB4>g>DZGMq+hT0Cx^TCcsK$K*UE7tZR(?b5CZzQ@z9E*ZE6@np zTCxB$Vwj9?87fNB1}$iK!yv=~>k(VF1Iypoto1dy**Z7v16SZKqTH_r^%HgB8)8x+ zElhJ0HexRcVglP7PF?JUUfdaAQag z9bX8x)7$_BC=x|9Hyy(%5)>LT321u)pjvm-@X$7j0;FVW^Zv}S>XwH@sp~-IqnWSM z?wF_k=R@G+PGqWW4~vs>6lde()d$4OjGxX_qaG3WxzEsWJQJ){UAK!#>ck@=2zK*> zO!dwq;vC}hfBY@62i}vqfz9fP+r_V@<#Cq7vZ~i6I4B!bFT3*NUw+`S)T%qhjqz9h zR!rg{<~}&S0`QM?^AH{MJO6NW-t0N_$^5IwpI7kzcKm;(r2+><)s)JQx4TwPHSg&+ z^6NAO_&Zf~9~8Ay9*!ORT)}91Y5qCI(BG-*e|=XJs!In&V5*rFCzWNTrZd$QsI}h} zWB-~0AN#JD_?Ocy`U^=OdQ6n5?#D#dUrtv)Y$T}pcjNz*Zk9bRvZqvjbkpR$YUFO( z!*TE9VqA`%o@6o$DsNq0fqMRNv3SaVp8Wd4l(!ZQI8{fJGgVDGBoI|JJRw?R zIqvb+hVf{$<*Y z#jyLN|I%I~ePlQzicV*jj=m~!j?=B-)=;i#f~GYV)cuxxK<)U7xIC6$i}++6Q2?Ay zmn+W=CQOp#7{;48QXZgxCR~0J4;>?K%Qe)#tCV8L`qiwNT&i1-2R_q>GCCO6slxp%L;!gKmnxvr= z5a_<2Oabd~iIZzY3aA&erhp0*uqoq(yI^Z+RJ*F>#CY|$#e*!y+^2llSp^B(Pn5Rd z(2Z3D8cBKSFTJ;{f57GppPHionqPQ`2hd#Gvq|ZO?%`qO#6GbgZWZC6v2mz%qyA!H zpIDZ#a@&n|d1#|>Yoeul_1E=ITJzym8i7Fj3FZCwigQ`9TtWfw>(?C|N)U&Q)+cr_ zBhjw^W^u8RXE77A2scUuz|w&IpSR1MXxAqc_um|Uk5#IT5)c&se`uZjWl*hsLd+M7 z+!NK8pAbc(kI{}@&Do>au~qIOb@B<3%QmWi#XBgX!fO1J;#c_4rT+LN1o(~Wny18? zYQ&Qsb;)epTGbxeUb^$Pdf;cRS+!KN*+i7rXsw*%;#Y358h6r4V6g$to^z?i-xJG4 ztvg%Y^*tzO>)h(8?}@t+E4=7w@dDrIRv$kte#`-N{gY?J=}9{{JK@TLy9MqwOmI8y z761GqZX`M)mgE&Jfty0&#WTOSl9pxS9~dh2@rxoifQ1KHfvo*tIFUpBuOr~O!rvF; zT^&m{?q>1W_eCdDU;lx)yKTUoG*~dla#0V!WxDf*7K&w^a)EF`21l3Sc`(A^M)D{P zh;8FAfH)BCz%7RSK#)}zo)B3vKvM=ys1BViJp&-wHrShUWsPR3A>M%Tq<|cfX$CbG z0~M~tB#jaY0uP*t0*IXn6j$gvEV*1au|3j92zVN-)W(F>Z)2!lcL7&QljKj>Ee3*; zO7EhlCa@ZHCU{{w;({fKgU~+5?0$x_)*v7p0|b%Rt<@alTj3niee}+Jp)U2r0KDH1 zRRlR)_R%#1PN^`Ag@Q2O8=(~n08$=MDpG?q*iX%clL;7Cb1s_0e~`|VJkvQxDz!kVXwRb<<=6oVan$5lN=K4ab5c4Z+2SXgoG1#XTc{oIOe1e z6(U}bZYN$csF@Khex-0B&Y+A?6Ydw&dxVxR1_`*F2x~R$Lnw%gWub~f>=0~xQQTw< zn3CQBLNaLk2{9+Jbnc{p!rL{{Nn&hGs|@#27^)mP)YMK(&mJ?grzai)rZXkZ3MoqH z+t5aY^qS|fK8?kTMT=-UTrL6m6me(}QWJu!(R?R|TJIj9S#?C9D%YZ`4e=US5&?Xt zwVPJb+j^HcV}^|e-HWYB(NTMe@rv1caBODUK}d@=r{3deM<-WfIz8-_z;!%eo#LyM#u16Qx!@}fqf&D@04na0f;OVDdf5gZ()?? z9{?$frRnEs2(;Ow6ypy2kt7&NIvO2yT?SOkgHLKlgU(vPNwh8?^`YU0gh>}F=(T`jOACBP^E3Pq zpqc1vz%f*UPZ)Ajd>~Mn1F2#WNfp^QblYTu7EDs6aIVG1sYQcKidU>ON1snC878J? z?OtIDg}|ow1#b5?e3UBrw#X`Tg76b1qZ@?cZ*Qh(s3@fjsIz(@YuD+9#Xg~7D9PTB zm{Dvbdz0a?)%ytz#`BUOU9=0dYixiJ-I=}u$S98O5hDG{^OiK)KQKNzt}FrTWmCQ0 z8T$0YP6MP$MPdgzBS_MRd{u?MEhfx$`k2y^#HxyhKybF(2X7$Yre!fo8>?{1qds1f z3j(N&W|tAbD{T5eMCw@e< zXg3rM$4e*EbF>>hX(tn%H4v96iNm}ZV~rVO`?Y3rk`7`qK;vttAG-qV2%FHKKn;P8 zpm|H&mv)0eQ^67d=PqQ8ryH<{opU%v5I)+V&R59um`FQgnCJkgA0>#QEPT}IV%`0Z zlP-XsYY}fAh2WIiCxrNPI7KnycEYoPhb|uRY z0Nm4;UHSF;^{pwjSXsrYstHjSyPp@Cs`-b)wI&G_Z+DMu)ljMHHK@_b^z>B_i<@jv zh>Xk)bQI!81G15{K)Cb3C7JUqy}%?COePPBn9nMjDDvO9h6Ox%0sN^k{@7 zuy@!E6r_eu)5)SCzM(dVqC`iR2mEc^bc>FHgs0&WqNMV2V2y^brk4OK2^XgH5G};M zM4fFwY(c?YMEUWoJBU5+&{ni@6Ly?2Dr(}X{SQj1Qa}Z4YZ(lMLbwOm?4E>lICS0Q zPN8*E8q*d_A{)uU3Rz{zIWnSA1ob6mtBnLfZ7l$jBQ6lbUG&bT!zQqItJ!=QR>ag6 zGF!E2vxvBRP@At{bzR+II*m&+04<;wpACK23daQuB@Hlorm-N9G!jK&ZMft(8tD&_ zn*7J}!ehOY*KyrTPDRDhN<5u$yi|Di|f}L@>tKnNget6+F;G=a%;fUyX zExdAAw2HItT=mZ7FfakqIlln@E5$6$CpIhR`fcOuL6)Q*K;7_DypJMn=mjea>J-ukTgJ+q(Q_?&o6cKmDZ zD0S5j#c?slGgbZ94@JHl?*R_-wCBa_oJE4Y1?cY-Mx>Qa8G@vR zWQ?@|nBgE)GDL@Q0VwT9fHq?zqM^ns25vUk=JwUMwst`iqMFcVKyR2AO*Sc6WD0h^ z&JK>;r1Ek&jFp#z9V^fc(RU&jHnY`&okthzJSnb@>W9Zg6QSWwdr_2UY`{?9)|UEL zKu)*6D00Zyc<+m%a@q#LF1YfmwHxGM+8i1Gm;ZQCwDNP7TK^+)ki#s)8g6TJeh5m$^}}4_xjx_3u51ICY&AH@m*|`D2$`s{f=YnI7>Nw@gNNvImN^mt#W@ zxNC@vU7nL04@)(M%e5-VW%d92^?%bC#4I>oX$GfX&nF2>MoU7Bl)Z7FFaRI#$Pn1{ z1AwntOMV|9pLA*=ljEU)lM%e8K1stn!To@q(_1($8U+f0FSZ%nA8<`wF;hA0S>Qp4 z9&5u5QouZv;IvU%vn@P86=5zxr33&9HfJ-g^+PC--uiGLp`EWA`5KAJXh5ZhuqXB0OpvRjakCvPnoF8P*?N7G_KOF$(9Zp(9w1$$*5?sBjg!b=cBQqnAhoH` zPTC033;@y(la;&x7j7dgT*F4At0~RaHYhaQ_PQfU8QKhD&NbpQk;A|)Y7CA!;$Up` z42ieU)WJDk8wg42&rxC?8f0<%PoZ}!bVNwk126>IO2zJp`Fhr7t+jTIgx*im@ zu>w6JTD24iknMuZdn*$V%Zc%|hlpmMRuiclPzY$Y;k_LWE|K28YnS+Tqmqh5@75>2 z%{AEGb@_zMg!y*n4SL0v?Yc=T!rg(u+XB%!@2N2}#kiPRyPByYDG4)+#%R$uQK@cZ z$m)R8J84D;922|=>929Z5CnUuWLc!WCt3a{ zG&LlpXEAI|EKNP^7s@3_Sedr-=p8*8^Du{OeCNO_|6J|TQDd-ydMr&()rNt)yH zg|dmYYXNKLXidS=4QRI7aM09v`+zo!!!9v#)?-m%ay1i6iyp!bsm!&k+tm^q)NZFy zph@csWUzdwz~~?twyux`^%^)y!>dvU(H!UuwWe&dgR2TY1FSs)9nDZ6J3eAmF?C?3 zqWX?|hi-ttbrB;B@&*-1UvNt?QOV+VXxsEc&~G5yM7r%A9T7q6?XAlvVg%idOr5WT zKN7|*V|}u(biD}lICM7`wmB`-a67R&b{s3DeuNL8|LFJT&Tu|4p3t~`=3kD#(QF8ZrX;08-S))drJnWxtd5lS!5D^=8~_ZFG^@vq9zK({3C;-U zpiK}=_w=lH0sF^>sJC~&am2Qxnz60)W+XWPs~A%Ts;A{3>JwHCt+4sQ&9P1!BbN@4 zk_Lc>H`v(WcX&zw+xE`m#oL7o^CfH3dj|>7K}b)o4-|@S>Z|84Q?$D6Atfo?Axv7h zB;L3`#O|8y`NX&xHYA=V{&9u4M)KVr<8i&mGor_}t4pv;t~gw-FEIG`V=ce0HBPF# zT6F3Mwh~MIp;}!1NuJnZucvtLKgnzs*!#9TrM}N(vE1i@yo3`os4}^1EDRvTVdwY$ z^|GBmI>~n4cRy-M{-XiInPmP~TR2Q%T;0QEJ>Tz%|BA~+jNBW8QrJZE09t_pQ9nRN2rDjxkw%nfWF?FA-Bph zg1R1^DI4$!p}Ctg<+Yx@g0T#X0iHUZDGS-L__<73!Uzm`oJX$D+(+F*+!DB!Y1x4! zUaP+S4ox|S_UEeac;r7IoFnR$YXcFMI2pD>2n(s7dgY2a^&s|GO9soCXye=xz(rT3 zzz=Jk@A_g1dc7J zQ6T2grO?epvZ2b+h6qC6#C=W3NJ<9Bv0d*SZCwVN8f$S5cq#-`#zYVq(ofuDlJhdI zoK7jQu)v=gRT06rtJa&};QG_1+=l2K+O**hw6d0V^)gt3p{=k7Wck(vu~NimK~i zA*a&|cxmv?hB=IC2mCRZ(n3S7up#Jq5T#r$vnvXnkxVgr!6sqXY3tl!Un9%{2P43g z33!61v*Zpr(~D1~C>P=anRh43n|!ot$Z;QYrPgN47czA}{DrE15DZKxN1jKG zsC(KZ83T^U0@PVBp#FA}{4}5?F%XMT2O!P?o^JKX;v)3@Mswh_;MO4;i1_++T*Z1!Wz3NO$+oCVGvr1W8qm|On)2nRT=&o^q<)w$7w{Ty{9?Xb z!+4=ob+cq4YN_+8TW0|+r7V7Wmb`=Il_BJ%5+0S`e){{r9Hl7~e#w_Ko7s+2tVeAt zkd1P#Yy=E*fjpP70fS(5s>21qt~pf*!$4X5XN7V)!{0y7mRB<|S00O(7RgUBzQL>R zDV7s5^r!~ZHM)h{FTqlYkR4fk3Nho-uSKSnnN71$^-gwR&c?+LGA5qJS1o%a` zQ!h5ai;y?MT-oAP-<~TEAWy^_UvZ_3GEcE&<3SV=pZUsFav@NbrKO58tB{!HHG1rl=fYPk`g_ITB6_{8t>s;lP9A23h+-T82$@svrHgCh5O z)!1@54+-~q)rxYt*^PK?iyib{qZX}{Ay=I|{16;%XecZyp@&) z*MpMG2IjA~gGJdVJlE4#_2$7PB2LH!Nn2urAzSn6D3q zp@u`uDPme|F31Ug!dc;vSorL;Y99$rRc&Gk1pr7R6w6@H9kB(p+CbwLkorx-B8N)R z$e3=WeK4HFYH(y9EmkGCOVEryxQ8^7lD;MAoEPRy2x|KjsC@4L+;Q-im?Ma0#(f`O zUa*mewYWwv9U>0z3fL3vFeG#SA>=B4Gh8ga#*f5$f!8YBQ5-(`aTNFmm2a@fjV-v9FkXvAXh~fC9v&l3b zU1yDw6=%p5_5y(sy#)+Eg0Kd{Bdiqp6HP&2L8nxZRdp?Z~CLpW%yCFY%@7*>ZWgDC1@7t#Vm_DLCU*V;0J5K@B%71VO=hts{ThdejRG zL9ENvv{V0Zq*f|h(;tp4SGO|>KKxDn8X)t(BuSu0Z2M-{S? zBjS4TBAfzc{G3;9TqLjOh=@G*Fv!5mi{!!pPD9)Ls6~iqe9U6d{Ye`oD?=j?ZPmnsOwK_C$Duc@KyQ1GrXsss*}a)^K~+xulA|O z>tqA5J8Y%AGPXmqD$w7JzE-P}Rz+&my2TnXK&-_#G%B5?2dU@IhXic!CUwxd;Vg<_ zQUHYyngs@~5PYr;N~y!xp^1w0$H+uQJ_DLZuz4sWTp1&mqa_I~Ppc!{`Rb(<6`4)p z0HsaDfMmq2@K_pBcWAy1OBu6aDNU2ZG+Ho{8zKol7PfJOgW15D(a>@`m&ugghI>Y8 z!_Wen4NsXYCI+Q$dO07ZmZMugv>C+2Ca66rg-M^{h@_!vsJD{k<29ra6EPv*3~GV_ zK|bMF8iR%{y_1*^V(X1I${9>uYT5)OOEo&%)I!^b4)@4qvW+eltIhDIKvDP`=re@j*E!zL#qJa`x*ResL6gCLZX0Mvlg9eyH z0;t9`LI(c8u_swrLr+y3LZo#yw|`P4(39CgxGd~qb-@1lXb6~vHa4(yfD8T1UrAUO z`XiV&a{EAKE>QW@e}Vd7B9-w#Ksv2kGYaz<#tm$ZW=y(a`|QAiu}^M&lam3<0P%u% z8d)L|JA=%lTF2D|H!hs&L~ObsdA>$mmxjKE9+cP)hkw(0EoheribU(!NhuqQ8E>^v z0pehLR**jfdeH?ZaQ|z1y=w(6wGVre1jh&n5=q!pBXW=_2FJTI4(Qoy!CDxBjO~_$ za=O(`Dg%qg02>u1Z$ z*BYbOO0ciZ8#P~UgE_4C?F3&Dx@+WgJ~?h^*Fd`K!U=v}F<- zah-sO4uqRGmItpg1-~*R*NB<)+A0suE7fiJ3fN4Ql*NeUV!udVZ6W3bRJvAcnFy@u=8d8O2*8EyaDkt#cN$ z4Hby_xB6_7{uoaXgu)kt$-{C7MaEfmY@Ae%l(%+0xWsmQe znz~lzOx)``w$E1?AgRxvi?v7O&)S`#+Sba2Vn0%SbFC~DRnR=0T`RxD0k7TO0CmS9 zpL(o8o+Ge;FE`4Q@__HKPu;jqeifHd{QEk&P#*U^>Qlw*WyH7N7XUZVa@+?H>jUd$ zT&@0;EE|8u=kDKrz*nG+DH@uxeboKJmb zqx_h^<5RbNTD~- z!P7!;sz=2!wPUk2u-Ii0xt}lat3wgFoLBkPe?>4M zHGWlbv;2`f%If?|+#1ki>Z}h8|Zjnb~Bi|>Admy3B zzn0Exkl8MSA(W*4@C(ssz{ag!9~=bv5RPhHAYe%!CkdD5X4RTNRYA#`cglH1~7~W0*kO@wDYIp_9jbV1{~sd+a;AvFdvEOfY6 z7;gD?r%e^9_gaQlw84@MlGWxw;sT!vSENBYuq(Wbh&51uh$7%1Q1yKxYaD5(X?#s< z^&U{$JLOvV0RE&C!th;wHN8vrP1wOI5_4$gZx7}#zH?C4ak-1_^~YcRjNHfKU)v%( z815xhf9k{HJK$GkQMq#J>dc!qftoel(v3yXWOkZ4$36T}zd8_=C;W%}S$bU@@jvH} z_w~!aVd;<9RxBxYfBe~P@<}$~MyF6}nRsult;QokNvBwC`u^x+Zbe_yvs8 zE^qv?FUSDH%{}qw?v&FQKMO6&UGjgjo$BZp_CD+6r`C_J#$G@kdf$ZxS&K<&GPDz z4K)u3Vo4VI3Kbfon08tZlyZ)?!`m20>EJT7ReIV(@*Xl1(e}aJX?hPD1es24_-Mr? z+E4+8<~!I(13+8E6}}C|ppW~EHJ<>KP4d*XN&}-xox?_VI-RE0-%LQLZi#< zGh2_i5=dGt!RywpT1htkO(E+r@vPYI&?%YC3|$`fR)6F#795TB_kjTDp3o@RR6sM6 zQ8>KdIJ*^XBTk5n_@>rf%+yOFkkcwKWY7jz49s7QTkD|mg+xesALljojp)8aC5Y$yYvHpE(}OZ=tXcydc(n`jER;qj8TvTFMC`uY+#a! z1pzxlT?#_!lyE}}S%-#>BhZtQgFt=JSIUoAIlVPBB{4C&Hag@I<41{X4k+{}oMGC7 zF?xixWkkVbRwCdCC5Dv_vjg%G_zoC74jlTVT}gJ>Vg)FEp>{IQI(1y)NE2S7{{ zji*V{3j;c45M6r}5ak^{T@hRnkH&WQtVzy|16qg8)fR$6n>HHO92OozUoZ-q@lV?r NLznGLR)5iN{cqr|;r9Rl literal 298287 zcmeFa4QO1~nKypU%pGZ*jFU+_=}vYhyOZ6?yW{si5wb036|dsIWJ|8}R<;#ePMo(k zU+?eq z2HnbBz1|&m21|{TCm6Gs#fzUFPXB%Jh^a;30BIKG55Fa=Emm0DapUptrPjD#2d^q z^?JQJXtwP#&kP@(V!Vt=>8@9u=4bUQR%UFh!Yb(E7@JJb^!m+qbI{zft73?=iziM! z8d^tFj3v@+I!o>MG23XNuwi%XezTr$G&gK#ke?TSP?Kj{-3@1k&pc_@XXM)@thFc?Qn;ikA?3HIcS6=Dcmt|{dHqYnJVcpqSdd@;;quH^S8jMZx0yQ(7KEuXX$t|#l z;ugzZv1_e8l*D?xG}yHJmcKQ|8Va?A&Q`PE?XuuH?yFJcxEA#_{U{k>rZY?mLA9Q=oy7SC9&r_#Y zF{CT$*j$iW2GzgO}jB{QD3+D z=hYr`^vh5U&Wf0#X1lgwTkOmHSyiE@-i6BF#R?!YP3&ijeU)#k;!XJ~RN7)iwZ&2V zYc6z65<=xuY;m<;>o~PKZK9Rh4o!*0UgrOx8o~zGU#mU&IRvE03RecTTg}df#lGpH z=*U;0(&ManX?@)$3T3f>%im%@b*HG=u6D)C5QZ66nz!5CdcRiRvDkmQH5&S5sK!04 zKoq^+Y+39+&i_+kTknD(V`R5%qei6|QDUisA;Yj7Kf~_DwAl5{PP1NXo$IziYz8)v zzyFT~ec}vGi`kXUer*F2y&#aI0e*nyOnf@ihb?$4WSn?Y@nJ!(zv|JKs1M!{e?P{1Y9MhcZtsMOKFEp}hOI%Z`B@s zG=QIBf6FT8YtG;*k(yheC=ZYGFRQxicwZgL521QxHnmdg*Oof<)=<*qW8?g*J-n)K z)|wrs+SFe{RZn3tp&Sr>Y@A>BRiU36LpIH_i~Tl;$m3#3xNtY|G6Zr)V&f2lI2_PI zniKtSYY`VoA3`;!oN8ac4AnT#a#vd20or(CoUc0cGgRi2tT;Cm z1PH~hj`N!}^%N?(2!^ZQz1?VaYaqK%kMl-dKZeRKvC_4Adqpty7P~RdH`PpS*W01O zbvAhcXCt_ZCx-SAGi!_a5duM5eyBb}UqUs(5w2zeB2HemlM}oS_-=4fv&8CSo}2Y6 z!#YlG$Kq3(Rma?~cdzkD&8{!u5j^cz=Q>4O*DBV#?H+^^yHRu`fc0UkwKFl}!aZMW zw(LflPrG34ejl73pVDv_=$Y-(F1JbR92l7H`*_;!tv+ z6XlEcZ6z35yik)OBIA>*r%$``A{f-oxnjq@T~yx%ggOoZwgh5!^dYrP(1 zjmCu46SG)c@Aive$cvJ(RqV&awK(z1m`sRWQgkYDEjjTVjxfi$?#+)7(-;Tr9jCf( z+c$X@3?)Rv>v65PQ>&_G@)w102e!I$$&>6DXQc~TtYZnrZpHzW4f1s6X&ddb^u;df zvPRk`gSl<0A``OQhM9k7cic;~a256JKk|az|KcVSBSSgwmqH?qcP0-F|=ABQ~Gi z%_>(rwJmIo+FHwI88&^n+Z|l&4(3{|?rju5%GjoV&;nhC%$$S#VQ;5-dN@tu7H!OV z{$-&{;Wp1U-^Fkij0^nVwiUTOK^`g_jHv*(AMhU3Q! zlLE$lM-L??W%8^I6fa<$+ru{IMNQf{u>)C>OU3{+<{ZZ!U?TG8h57<>fG#^y z$$$=yfol}AEh{c|TMahOrZ5Bx+t@e_F)k26&bGRBY)5v4v0i!#l6=jboY2JZOzA3Z z*>xa@T2{i`4C$-TA+Eze{U);2(#m`Qz!yWl}R-wsFP+1;z>&yUVp5 zq6v&`XJ*xD;EI|NWZM-^K~S={H|d!0>jEP$BcE7mj+5yY38q|e1Q+Xnq#gTf0WdK#*(W)~v9J_7$3)GX_9 zf!YRy&W@NodB$~UMHdHMG>tO?2N(?xm^QpaN5D2<%@>=pTm^W-(B8J|;NLWg%>kj-b=#h>CdH}d6iNR! z@hrHFbT-RAZ{_7uAzh)x)7gvNj*Wejy@GWBEia>u^SqUpYbA|BUxXT|!PDtWw=DKW zlw=vuPK#l)p(I|Q%9mY@rdH8}_gN+f!eKX{#xo9QM%;p~=gmA82Id`{C^#}A&*6&P z+K#H&*EJ>z=UR5HA5}GBwL(=p#kwp$VLeOZep3wJ&7$2Iwu{|$%r?eX(vz=drWIjP zI;M#3PAw7n2Z?QNfX7Jl%PFVZhhZ`;_fU`Y&XEy70bhp277FxqTrG`TOVOr9tIrMn}qf25v>tK+FQ+m zQ>+jB*k1#;gG=+fkNMZ!HKrAHfkDSgW!4hotA&M5gU;u4EPKkq$lJCy0p!72fZ9u) zKgRtZ4X#u1t;O45I3%&8+C_!LL~$O>!*bUdjA$=kYm?v}Y>B5I=SEZDOR;|&MXVIZ zZ9!4V&Lf}2p;%lSg5uEWUR>CQghslFT5I0!b)Dv*vMnh-xT|6lq!S$P5CRF5`o&h) zaVDTNf}RrU8XPPzShPc{F+B*c&`8`9*0P2rMHRb&y;@d-c*VwGL@f|)P4N%7kQLNm zimrksDX#4lVO|&zt1pc$G4LXhv#ehbEz>h3fMQ^T(WY3IBTU^dih0C})E|#cl&^O5 z!+u&!S-%doICLQe+SK4_Cs6yxCKfMC+%DU&>GYc^t6e1@2VFft3O0wi3}MetI4%7o3az4RG(+ z+@M-e%|gK-3i}XpXGR=M1+{wjGvMRaPeljhz7jLskb3~Tr)*DbOh}Hy)5{kjYdOaz zicet|H~O{P`)Mt0Jt)V^*Bns;g44k)VkyyZXi;@k`-Llz2f?WBr}-lm4>hkT#fZk+ zO=r#CtZg;B{bLh(2m@GH`)T$r>t%C{p;H48Oe_`vsEeNX{MlhY{)mg*qj!gauL&S> zIDNoNSB4G=8~Z~(W8EJbGuZbeAhV5P8N3s*R)XzwU>8LvTUfamIHEw}#eRnFsP(Ej zbl6W4t~q$ct38-v&^;@XWZq-loO4H7EcBr&KapQ@oFUbV9N~MdNBC-YfDPG1F_KI~ zZE&-Y0v&V^H1?)k&^IeZamdlRQKO#?j0dI|!=VVX;KQ6c@gZ^TWvz#!+H2Umwb!uM zLapVOg+#fZF~85c8KP-YE}bY|?Z{vIf%h?MGX!s_;7llic|Y(z9)TZrFPNf<{OV>+ zFf5U0X5{SVBA`JU0hHYtsTXrWcY-|hykN>;1cs``$%1awr}RlK4-7~N=W$kn^>+_s z;{9LFXk{xPmgHeK`1~kPG0N??Gw}KgGe0HnWY6^!9 zGB1OvGyBg=q|&5{ee)AbU*)Ul9w3v_5tTg=3#``Pi@wX_U2|a&b7(-^Mjw&&WKnhK zH=Q3+8Mj&Q7;M+J#W<6Mng*K3Wq6i z)Pt)N3XBXdxzIxW#^6ccf>(I~dW1D7$QdsQ;8o0EL z)=ED>0uHo>MS(9JFA}agfFbmQIT0(9ObiVT7za-sDp?z%B1|H~R%4!&L^zG0JtDIT zse`VFX?27>5_-Rs^}Mt=ko15hCuh(RN1iZ7qE7xSxYhlyzOn3&eJ8M3dIAn+92-SV zcJcbB(WJA9Ar+$D^&9L0zj$eN;dF78ia}>X95M7W(9{-f;j2J$9z^1G(&vI}#$hYr zZZ$Cvu8$X~q$Y|`o#4k#HybXyEKhPODeQd{`A;=Tg`MUlcbkXMjqb$} z>$_Na(xmJsO}7Lt%VanD#UQU~!3J%s;6QJGg+Y zJ3^Td-Ag#NQHg)x)4?k2sP*EUuRFAYh%TU?AbnJaJXSzSCW_~~pp6Ut8kCD|*gC(< z3-ksf!|ovk9N93jv%ovk1W*YCGY z6N3T!E_l0={7tIi1iT?=2>piCoc2cxFg1)@1?9X3{WmC5BtaZb@iLWt1hQYf34h^Z0tcK(q+SZrW+JJc8etu~xiRdugbqWVU|2EB*FR0* zDsE4%-!K&I--m-Hyp7?T_d{1ptk5!tiHzy$$lUEPW$DK_N@E?1=@%@B?!7o3$VMSd z5>Q0A8W_pQ={msM-mZv~16$!`v1*D?Zo|SwgaGe^sQ{cXsSKUr2KnFazR>^4?WXc6 zG`g9Y2I6zW!Dbg`LGozgQ#JLpQ^i*LXFjFB?vM)*bg*BhuDXT9<`oC8un6@qCv=>z z5RZUGWxaS#tCKa@V2z$AI8lHo56x5q_OF+BsR3!7O77nGe})h4zp#G+%IP0h*pD+S z!iQdY6Ia!EWUxx}E5kJ`B@|>o;WKvQ#HmxqA3J?ozx|2peP2-Dd=)Ie=lxGzo2KiV z85nONYGvjZVfYxV!Q%q1z&6ZWI4UOH0j)M0|0-;p?zof7v-Lws@HTZ-LF@XezC6ip z`fA*qD8Ll{$!?eC;Ky@5J*BU|y^0w{NWOYg$q4-`KyI)EjDl==z6! zJ6)R7_cJ(5@a~lbxOxvr?ekmTorMf+{r=~C7kj<${5$`a7-;Be;iLz7Tf?4lL07b= zGzOmi7RO4S{W}o+5B47>Vv9>5FmWhqwTagQ7}&u+3~e8h>_6Rw?z$9*7y3N>#Jd;} zVoatX9^fa`27=IKd5OLOEtu1IK@s+lcuW?uHhf;ebGal&0+M1Sq-L>mJ#FVIvE+B! z9=Co9!=r?#@%0)eCLhhx(WCupp^<<~u01ggCosDY1-on>+u&eLkYM5T&3Z zhJObDOu+TMWp9wFMz3YVuA9f8gR3=Vh;i#*4augV0V(d3=9)B8H83NBEti{o0**Ou z(RjzZwDn5^zKb&$d~m+71`Hu-%SLIoaP?!*C8v`}jog%;zA7dku66P{56_X4 zax3gGb7Z&Gxg{E#sGM!p>bJy z!hgq@o{{scSTlYl7nWE#OZduzFPMVQEFnSdoBYgq&`bd{>7 zH>QtfWvnk7lL-(425fHbcA8yL`${fv8pb$)M`25F>lHV^?aI|bC-DW`0;GF$QryCM zVfT-M4(QjH=!G?-AB&>Egm&eagrp`e>nvhzSkwB6rfGBH9_uG=H6m;t>Lh0dMoZEa z>@*Uv+{Tm>2h<1$iPpW=FZYd>_77RsHMJ2OCX);eyS-J7!SN;rMQ*;f8fiU-alKk5 z9@s3bd}l@uc-H!s#?RX*LN^Y%mrPqAFCD;^bGWOo3+Lg3c$!u_gjscB7{>+AtXvsl zH(scHhFJccIZ5Xs6B+L}$SWR1l1*P}lIOFoK(2qOh-Ssc)OR&$SNiU1@^ld=9UQc9 z?@jLDBb;Zc5DtH(+4kMfWbjyr96^o>@D}ua;F(Ts$N$XOkvLQ&c(C+o^zCRwDS5jz zxQk%H023#VZB$bX47sQVITlv-&S?4;I$@zy#9a=nELGJ+7kpZDd9+|*mZ3*iI&^vL z9g|)+H5`s=sTC!NnVY^gZXQ$gJ{RA$c+ABS;p$F!X2-^L;y@R8y3-B4O6}Gwc_843 zH9J)y0c8t%p!+#G2F>P9v5ZCqn@6gT1_?}5+fjpou0wf2H{?(ha*WaUqS{{(2dFzg z2@>uUn@ggQpYB4l+d>a(#3$Z$Yci-F4+^)awYvy z_@pdaNnI0OhGT!8jj zT1fw+_ZSs`mjHQGi!*v1)Jpj6HHPvcxd1Wj?Jhmv|0eUtCH3`4|4u*q)IE#tkMA; zjD~>wOzX{!GoFJttOtH+@)%TWxdjktV#+~j+mh+=fmenKsI^>&N~k&QPItJmNirOc z8sTSY3zuNQ;P;1}tDH`D-7Bs4_bS3S(DnobQ4W$IY$7nhz{=Ps?dcH58T^~c_-=34 z;38u;7C1?9!uZ`A_DT0PQJgE@RO3><{^{#Cj^W4+;wlb8AEqRH0y~)F$c}rJ3kLz5 zHj?{+=JqyOf)q{_a@=VFi<=AW-e8A@|0YgZxEuin`U7^!2ihBi${H@LcEo5-l-#Pg zFms&4tXf7dh*^=tcq|Hp+tEHqMo(eEd2?usEDF3t3_X$Y-^2P{!UhDm)xR^uc zD_!p9#MFWcAb^_`xUQM7ez^qCO49C0rUcWX3|rK50PF97w;;g{VimAzyVE*>8?9u( zk@jo&0?HN1_=|g6iY%F)BUVZP@m7PfsH-kREeJ1+Vog{8X)UZHW&`=y6N9Jh$8P7q zF--alAt}(3c=%`i{l0W>c@RLhH7;yNu~F9Lx7)JAV+~g^7na!#}cvD|%_%~c8>?s|5`(Xb8=UbJq;NjR;+aDnBz4NnJ} z;R$^Y1wK`R@rmfgSj;52P9qaj0--r&*xJKNaDCuH-NTUL3MxgotMzwG3&yzhvg8-l z>WsCmP0Xl(4oe-v`oN>lFBX0^akHfoComu z5hlIsHv*=(P($4MceHc;)5<~e`VFx(ab8Q)AqWbY3F6IgyAITGPtU9kO|{4Yn#I+b zHR)*zLl_ux@+vpA$kt7v+STM;q z6qbSmZvasiXRmd1_a|28;rvC&&C6S2D=-@h^WgqRCBiyteVI_y9p7hRf|R&(hxy&nm_Nvk&(o(^%m*1!YJ=m}9?7zlQ{|0VZ7Wg~)OkTv7o zF8p53X5#V|k`IJSCH+fsb zf&){RHhD?;Tx=mwrxG+Kk}dg2@V-0l;C8tsx|cx?S04#_8M*-wHLSM;P7@8mUI}+> zbrfCxA9vj1rZUkO!6`|{a>cKBtOZ6u9=K4f_JQSN{DJbXqCIdF0v1Yq*GZE`6z-g5ri@c;Ju23n#w}mqP^G z)m~TGMe@8rQ1K-dw)aP4d`i`kui#mOo75Dk4K6VtvBGapxNBru6y{1qvw|DR<2)Sg zxpJ8#NVGxK${WRxq z9wq|t6BDjf9;Sl zcuL3i_hI0R>i>G;aJfgsNJjPmU)yxbMviF|ag+Sh(K z9mGpX{?1{}Kp^{s4-+@J#5al7d{>M0B8r#eROsX6Sh%KqYOd74$0ItZeH2swxbY_VbLaCeBW zF&`F>=`=Jusl%n|l@8&*WUjzVKgxiEhq^ z$^XmXU+d=T`FiSb&k(mM9|q^$+&?cJ@@}9wLH^wk$SCxU)Zub@I(Lz;=fONhuO0H( zyD5=;7zDE)y?w|SxQUj07=%(Py)|~YG})iP$%hAAedl;&hNdi87R2R^A~Ir7;vaa) z%OAcZpUk>WUi+WExq{O6;Ph!(;^vKsX&9TTh>6of>`eqjf<;{Xt*At(a0v|53zkNG z_~8y<6KU8m+|VCiqY0}Kt}Jpc-I%zpt5uclwhGHc{TA9cp(L$uMnf@b0vGs&4-lTM zi`0fdCx_&GZD)bPec1{mP3Hf)guQCX+POk8|*0cu`Oljvzx1X+xl+;MoH1|}&~ z3!vb&0KSiW_2G7pyDtdEj*yM;`wfI*BtJKq;|snkaMqXiV8ogslj+0)d9E*UhJWx} zpPE7#NW7S0Pk3H?+Qp%-y!N~WnlI{ahyWjxiDtT8+gY=#(jU25zsmVHRq7XA7g2|V zv+@k3HK4%9GKmc$_;5H}AmS#jj=fbm0{S75A`tLCwR_u5PywRhT;0RU4 z`|z~?H}7Z4`r4>@m%T!74~E`c<^Fs=&xZ2(Angwb(9_;c3+-MIB0kwE+=c^TQTAsX z4{JM!LEt;Cn6(}3S)c;CG=uw0K^V&Gz`N3KeLe`nr~x3eDu0g;6BA0pdOirntO78L zlz>B|4jKU{X?-~eC|v2lX6gpdRFs4J8tm+$@y{&F;K)@9#jr&eOW>~zI_-a?e5&2` z8t2awfnM+xgrcbn_iTjYu#rrlPsDx($EXZPBdhIjK8pf4WiL@QA5jB@{Hwtch(H2E zfK@?ptOK}F9#oav=#Y`*)^~SB(#3}6p5o+^9}4c>f^DLEO<)V;^XE8Uxrjqto@?{! zhNifLX{?1XkONx_HJ)A!M2e(vq|SV3LeqIUo!sW>r3Qb7BMuC_=#dy4bNmdampBHg z@({spNIt?v2ocPkI98OgIaeT%6I4c^3V&fXLcszZTr?z)p91onfq|&!B?whNotJC` z&kDaI-sCLDv7kv4qhf+hl0(wz({O`?yo~&FGPGzLD9Eaem*GnS8bi5#Cb?03#^tP# zX*Q}rzR{$Bq|-bab$n3wQPqq~D-8&%sZ1IAW5Ib?Y-Ogb-vp|qp?3xdwFWL-zEJ^oJ{Q%qf*dR-daZLS{p9g9x9ZPvUM>$G zovIY^pJP}f;Q#1iZ&fVFF94l6`GVG#Lr2MT_@9-oRM;1IIy|68@eBf0!JDbSBdaqu zP|tH6NIuw*2-mc;0-Ie&!*4|tc=Gaj`5CTiU-I~9TC2i0DMU)G4CEZ-Q$dc)GB1JV zUBK134h5E73DOZ1JFq?d74F8tg&!ih5{2-}Q99TrVh3mrmPR7_WFNEbhq9wQbsH(7RZ=@k$G9qGVqArKN05$WELF*1l2l}Ej4 zanrY|At83)9paWJfS1nZ>9D+b#^%c{bNp|niFLNwt-Y^~ez=-j~og+$2E zHduCt?3QiA9k(TJc-}!%Ns|wZ0E})=y00<$yH0x9LrU*#%am&U0MWpV?4p}JPsUe` zA657MtUsq<%9Jt;plD}SrO~R^!Zt!Gi=P1H_XZa=p)c~F#O{q zi1WO}-nR*M8as{CG!J5fdr>4J8FR(Vql)07UuF7RB_0#W9-tA~u7X&@l-9-Vs^6M9rmR+w z40v?`DKFEE;OL3OHDR7RvN$Tvhtii=d=X4Cm@P2QFe6oQUltj-q+fp0oUKr8fYcGr z>F@?!j7o-KnM(^;i+Dj)T_r9-^@6Flw^kz>7@B?iFZP1e9YV=L5OGr<}sppaTM<3CWVv5QL&8B5=ej1C5^BAXP!=n+{Q!=`Di5pm2*8CjfFJ z!=OyfNJmDpAbt_8V`WUV9{L0;sN)%uoL_cKvg}35*@V|`5C`@GXW!wY^H7O%ghE*J z^l+N7H>p~deQy`Wt*DnBT~5sN44UosfNtgr6fZ2#k&GR84=;<@S;PqbU_bD{00rS? zL-5|(4?LWh20*+qF?@SJ5MMO`z8Zq}j;9V%iocLLC@owA$k+`@ivIivN4wO}L)8X; z4k~@0s2{euVx3bptkg0>F>cu62{Eh;?$!HtU~BqEQ8z}_bukzi9NbFf1(p8j$Na}L z>WUSGzbn-dL)eCCnqs}Ic9mHf0S9C*Bv_hNQY2(EgNpVU&i@HS7(oa3Rk!43NBUR( zlNo)*YJV_r)FRcLOP1f|{1-DmkGTB-n-Rc}Ed?eMQbxYV`EO^)zf6tVQfD1mKlU>` z%U(Vw+^4Nm;H;gWasHn(ZjL5+uF2Q?0?gj!+2vlhb*t9sf?2 zrz;fr#PGTJXw7hkhw^@na+AU|3=TsDbU^s6+DTaAdXoQ!TUYq+ z$PhXyqVlShq22L{O~fJ?z{Bas(m0wE*3dt|23dZxQoI5a7iI-qY{U18{U)MyJ*@6X zV?rxZN21J~)*|d>>WyBW)5)WeNPVwZDx!67CGCGu zkAR7^(y0VGb~NE8q;U`V5K*^EuwKgyhzJAh{=P548;kk_X%79w8mu&(&SK@?pWxpY znniu;EFt)(qoY#zxfS2MnW`$c*#jd)_hDF-6N%gRlG`B*wr|(p4L|9ly}LcWfY6rrZbY=ngh6|S5OR5U|1!qbE3d}?H3vXG^gs-S^c zyKO^4=+t+rQnQ3$+-_sxu#gBX{Cu#NW_E;Xy#_98EEfn$Q-j^Ss8;^b{r7BXfs{Dj&|@BU?|KiqSwVfSFfnNGuh)bA?!X z{&f?zNROBr-4FzTMG!xkKQY78gApcN(l@D_^$#UDsX)||Kc`o4d){SQD0EXa9~8(+ zHVoCdAtig?Q1Y4x=Tw!6I@L<7wMcPp7>J|G0RpTV5B_nOlif{rFjZd%50b|SawsY3r%OeB2Jmf$N2b8yOT8pJc~W2R{0hmE!lM!Wb>#F^*YHo-k3wS$Zmm$5YM z#&IOZ)xS?{Lr&L|d6imj-9CMSsVQm1_0Top@Aq>Vs0jGA< z0h{sV*+aEpmO7W4xpNc}@w|=TJu)6=GbvP+NP$|igq`g0qrfEiT zC(BUjsG=^h4WC)08x;+vOxs07b&MLk?ZA{|N2E`SMSN8bIC4qfwwoK9a6h7%D)IbN z;xT3h!=`US;J~)}@xV4h9vi)#vlLt3f&hr^%ufAj8<}jN$Taw;ZKU)T|9{^`k0o|b z`Q?d=c_o^OG@(x1`4S^38eX%C+D-Zxv_8x=gW!7gf5oDmm0|2jY@_T(6abWX9+~M# z9$NYY3Ehh^s{-62*m%&gy6p!DyS;b`LF94p*_YiX$bnxru`{a!=#;`)p2@p8W|pNJ z1li8@!N8~cHm)DIIoR}j%M?%o4WZ=~V!%7_3Pq4wL>#3NCZ~upxmC#rK)9Gu?NfJJZXWEgW_ZGbDwyG3Mn#UPAweYec<^lAc*^o%1Gb(gVBnUWCU zBY0atsVG^L;J^#77u>hLk0^UED|#Ujm%u5o?s8L#eT9D`bO@f4r{B3oreE^syosIU z&^^Qec=T>YrY!QYk`#;Jsq8;Di5qPBbqT)K3ZE#`4HV}Mg#kY#B!r2<`wbpHNxGKUg zjBd|?nu>x?BzTsVx?eG>%Y%)`UFo%&$WD=g+ci9M6d;B}tG45RW|N}e+#2lk%?=p3 zUCI|~vZN0NIFcuJ>y|{7yv~5z)e)ut>oi$U2ZU>EdsDimxc&Hd!_&8ErMOPN6`)w9 zykx#Je8wfYG7nY_s!sAEk&$McOCmXzFgam=xJn!tP@>XdF+OWk<~4F5s z=2faK3Zfn|YldRmNX)ROu8F)+;EL-auM}Ob>N-u>K=k$q+n`JZcr*mSzK-Dm71|H* zgc->u1_Yq1AR{9%4UsIV?L}R95+fo|d>`S{804L(JnGGMD1judj(N6_*l|jkrY^HC z;4Q*cv$}30pQ0EfnWZu|*%MegLlg^F2hfHZGcm^^rNVoq=QJuv?A>iwy8=;1W6VCmX2~rP0tzA_$$AJh2)_w(V3coF9kutACoq_5j#0~pKg5Ssg*bE{BiVP5TA`?ub;znyK;i{}cKj2)Q$zDcu0nA~Z z91SS0Cj36!+fE?yQmcw%teHs9>#?HyMIzs&2R3lA*IL41T99J9lZNL-KsO(HW=g^j zHD0W)$c(z=HQoNG5qKt%3+uxXyF#r+F8}36j)JtIr?xFnFO;!w=U)yaLdQY zmsH?(+IMW`yiFknC{}{}o?w%oqzDwXmV8dKNfmrgK3lB3Y}XuHKBd_5WtSjBK_c>5 z^|3T&z1N=t{YG2kta7D|?T%2vu(pHuD4lI?sD~rqeCXR1l2GySE{6QijpneeU);^g zD6O9|Y~GD@F7s8Q&QXSal5LrU26x`{#>vY8Q{GDM09hq>$60I#j#cyshe7<`P9n4D z0(1ev#OZqFQaK9?OxTdH`7&j1^O+5$GuWpVdoIDJ#1(az0mU6kG*rB7J3VCXfgK_I z8GO%kiEIYjIlXmqN?dh^aa&Y10i}5XXo5R|7LINdaAb;wP7YzmzL4Oh|3g|j+_{8< z_!nG&rO)WMzVE!0U4+X4FiT%Mj_flDUeuMbXwuhCq=WB*PYIMbnF+od^^`>UsqCl{ zqrQQUy>==$s>I&Er2y;E{NBs&z2q1m|6O74J{Z% zGiCoK)9O>kw1lRDQ8AtpBDNYq5Iy03#! zo$WSu$g??%JwJE}dz4;)dJRBbXFl2LuGLy_+HsH>cnId>1yBHYIN1@#z7i0+@Yxi) zUce~`;`2gyW_^Hoxpa1iy5%&{h`$3kMxB1K6I{qI6ntw|E8e_!;4nt8!tpJYQzLt z*e07NZf#H)5I18B@U9?-%U ztf+IX5V9|Yk@Y5?=W<}q>O{FUKSX*f@XG^@AjbDRjzk&Y3{iU8?gu!#`5qH&er`Z# zJ;DaT!LYw;g(O?Nfbm@g3$@1@76U(;E(m|^zAZRZT5zu88Hb22g#w86q|o;N(K`7Cam4ah0hQBh^Tm*78E$8lNdE``FZQVc!? z9r};q#4bU^hExxJ^es;*4RJ)i`xJB+C}b+nJ>1cgNzsXFZGd2ygN%%Gbcdtm!^U^7 zGjxT?-yjgk%cim2-M;v0htyoMw3q^N9u>f#$c2YngaMoaaKO zO+gYw9UyTq`kOZrnO&B5cww^dfE|&SWKQ9d%y+;^Bt(4&u7_Nff{dzYrHLMyuB-SQ-SphuC#!-{KHnQkKSdkAZjk1VDBW{ zaCB-ng(*Omz5qW%-AQk0{m|d4y7|AW$FRAFyvhJILr);+;3ql`w5NOUKz2{sA0_y! zPog^L0o{@H+s@8}?pv~iX~8sF1~RKMdVui(#-!aMc6%g2L#{IcxM-*( zTBJaH`@uV586lNiC;(Y;S(h5tR|zdjomCCTCt0m<#7db{>4tH9?zuln(<#N*7Bwx` z{l4cRWH|Q0A+QuUOZoAF+u8Hr=Owr4ahWL-eIH=7b1*ySJ)8oG$2t3%=Ubz%w1(E~ z%oMq0_1*k0yik+T?Dp)=9d8=Rbqp?1D$ zw;B$G$ceJ(XozS*1igTDiZWTypJq}99HRh!TAPAP%Ja}gfPqVxo)KgpqH2INEq$6a zZ1^e~LQn8JYQTp;h6Mi%S@MW06nE~3C_#S%DRkP+a3d5aFbh!tpLL2M8N6m>g`ETp z$O1v3kH!p%Z{XlCSDGN3O{GHE2Py*`A_(JRyiF0XV)4yH;5ue{^(#1pA^lW~2HJ{| zkVpBqjhn~^;i9FoXjCkcQLW_HMUiKcd|EFzxv~)3&A71T0R;GY7}+V)Ue%phTvv5R zJ8EWkJl zzyfV%>jn03r7edVHkb*gwpSIaeMa30BAmKob6r zqfk8>hNEi&P7(3%1uQyOvwXjeSlG}l|#Ev`iJV$pCTi$c#w!P*( zWnnZKc#k>cE^7J;&-6BW6eeTC?!y`c8%vVUDj8WwJqYxRMswmqng^vYz@Y^#l>3Ig zpU5nW+byI3Qf5x5Y%BWRmR&D<9mE|h{wu@_fYiWhNuH-ZuTsKC*X1cPsq%RuAcxdPvGf6`2<|9;^{BN(@6}=(|GzT`2<{U;HfB|fD81d4?&6T zh1wUd{u)O0%^Cvli>JR~rBB)QdhM2eQGx+>v$nd4n9Tas!%WOSVAE95>?a|-;-{E< zJmM$Ke3D8az6JeEiJvsnNq7L@EzNUsT>PY2PLfwyTFh}0+G_ly2~OT6e$wnF?-oC4 zYLgl9ljb!E`z^}Sq$ckXKWRpj_llo1gUS2EPny2u$HY&XyX42kPnxRa{o*IhQ}Pqy zCrwiF&%{rfp=4hCr0GdMAb!%^B>!Ceq=`xXh4@Lck}QayG$qLg#ZQ`#T?e&m>(pZhaa_8d!wQ;(V*N;ZT&f zVG@&G;ZvF}3fcyXcU)zoATJi?CH(^uIancJb4akvQ}&wJ)gW~k``iN2IP9Y7m5ttc zkG9dmTWTX|8JlH=RY}3v=V2X>YaE7TbzJ+sCJTkDom)r>Kt2eC^R~TGBYzaX9LaDG zqvjwcFhZCDz0#+s^e4OB2H8=N*y7SU=sU&ND=&9%KQR=>Fi@h>Lcb4htnSbupOnuf zGn2{&k8^)JENhl2w%hg&l!=IN*@{1?XQdz`3Rme=dM@eSH6}TXfUM#*==`3=nox!T z0UhULiOzk6m+J-{j~m^x-rf;deIY57$1XZJb>P1o8QjS-Bu}?ZAfT^B9Wo9fb*nOj zh-QHXZXyXDgPxI9J1kWMzoSN_j%lRSNr;$~5!cW6KQKWRK}e$YwLnuPI6rDGhqNNS z8m05O)0qmYCXn-muDcSyj0NU5U-1%xNw{*7&@zQ?qqt}R$6^h+py1a5X=RsH?l%Wb zor5le?)VDzK3pCRzjzH44Io{Tm?!;8N^^JK*0_18I0C+G_A~GVs|K6h!-g5r&2+fw zP#b8P9Eq{AbjuCI7S{I!;%9%C0XYm3bHvm#8hE2C2cs)_E^y?544FsX7jVYm$ooPv z?EXn{Atd!=yqKBm?BGnOAb9GkQcH@XdLe(SNZT_nLwQKM9JF(G+_ltw z9133x+ApIT#>mP9D$3q;`RHTR5{3jRR}e0p$+7nd|o)wy@|bFrh7mHL%O_I^(&}E24KFOO&A0B zKWim-zFvUJE_R}r&%W>PM$)7T266{R6}}Rn3c%H*3NJ{i@Io?;pseIRCD%0eQ_1a> z;nG3T9Ocnym=@ey1k(NT>)y5|`FVi7>EG5mf=Ou_B#|O!iMSHvPo;B7__a&wN@PRj zsDs<2&+Z%Y@CZW0Xin=JhXNDaP%X(H^5$QKWctC5QgfQ>yI@sXN*a6}E?@|h4lj;) zXa!X${#24`%1~z$<{B|t1tPPEIy>9p5s~|fz3S20KDKw|P zssJ`wyNx?p?yQa&qdi^h3}sUGgQw<%nO!wE3iB~jDetc+0eP!&6rk}iAg>|-tx(7@ z-1>jWXsRK0HQ50aWd)Da2 z?i+SGxJl9nfNUr)RSQHV+$M6-LLCW~^1?st*wIz4+L7nXTLEQ}1sW>M~aKZ*x2 zIw`a9a5J)Tq8A6ldj28|yK!T3hfP2@Xh_9D;sJd_9`UvBNT?ckE82x~!l zB_EX=oxLt}yaxfIGl&jIktGpdve|47xR57__siKTL6In5&&2Y=2 z;=!z(SCW~pDvlFjD24wsY23(e*;j&I591Tg4V{~Tl?=8gH_0*l+55HIRj1p6KTEgs zT9SX8Ec8(7Us11S^bgXcz*gUcjtH*!NP2UIjPwO4QOSoEY~eMxWdBO1)`N5~xPr** z&<=k-C=?nvU|3pYgN3(bvyIp~U?=;y00uJ>vJUhS%4AjsN$il~NWA)-<;DeAQ2oC` zMS+j?ZKJJtz-V_s?RpVu-NA%xBSW}4!yfHF=Q--0`c1oZ~fW4Os!m}pd8 z=(hgIp$|E1%3(zV%ihhp>N*6IHN=etWtO8z60Hnqgix6kB`wSBLGxY-8Q0S>i&&32c4HTjV5;rJuIhZC^7xy4Q{_#UR7@I9Qm;d^+ri3djbC%%(p z_yTvV^rW66(D;e3eW^5 zU=+nafx{^(0K==aGNJ%YYT|KNX;pzaDlkU{$o7Z=G|`DA7-v<13sm3&6(EZw3ee;y zuEHj(3Or2(o~8n1r$hl-5Q!Sh@T!1K1#Bun)=Ly9os`ZY z17B^!;$^s)h>N*)e2BD=0Z`Nh^`Ge>tspYTt;3WFzwdQ~M{AKWXq0WqWDyJy2X>~s zVBrFQ)YYkMdf7P^;J<~KzMB0El*(8QwKl1^OwT>sPewI}z**e0#xHSy+VFrU z0Kh$vGd2e{reFKIMZsG-4a`=*=4XF}=cD1FMiCBW%2@zYx*C~m5!}Zh$bCp@Nq$9X zm1H)JWPUb98`e&G@hUZlywo1~Knn%BV|F~mc({pauZa;MZ`KBJmGZp}Z@}NA17TYQ+yibI`%iP35 z98%=~Rm3Sr3ImyGl#bCVQ5Gl*JB@EZGLiCFILYV?l~iN8TiFr`2DE>jSHL8@5T#^L zp^rMoW%%=o?=vN!5O5;EtZs;#+{mA?EiM%{MO>lRtYG$0nOF2~Q}IA!qQ-y*df3C9 zBZyKLIfAoMb0?CQ(;j@?KSDv-jZZ;$;pJ5wRkA`Q)qWgNE@MumA5Y*dlUw6R6r|FB zcpME~fmHdfXFc*SZ&Be$l5-JH#CJbr?lA*PnXLfX6*1;?Yma8NEvF0If%otRf(W0Z z0^sr0cXqF-c8`Jr=t_U6vIeXBVL9>Fycd~`)(QHn0-$h0_wv<7?&xWnMz73wEdH#% z5Q;9)(i3;VTz(4d(|x8M!*q_=eVZbmPH=|Efs9O>H8_gAtP}3=!>Y8gCIC z0B*Zg7}BE27n1I}1-@tTuR@4bNS_lQE~BDpA7>voljO!X3Y2D*cGiU)wX}2QS~DvF z(81^ozHX)C_`A|s&2IT!`O=m1@FGNJRzV z^Mus9aQ~RcjkSJvhkQOD-F_n;(tfkyzOqM9&~Ct2+Lu^2oCx=|J%W1G1QpI$`}!V1 zA<$J2D@fu-y5BeAL50W;&rW(oNaQ@e<~`$(5Gow-Q#2*Um!}lRis_jT)|tcJgqq+x z0eSDuu)O!Cl=tY5m4216@5Lj&615A%ZUU1;E1DfTy&c;}DR_wvb>$c7zvzhM$W~@q z2{$5#lgdl)m-K{SlR*p)1n+=A2K6AW=Bjc){l%ax5m^j-wG2J8f`Bw^qm4@ z;652_?9^$MH7u@$P*{vu2mn7%ALT)ZCLCA*G+5!gyE!2K{L7zpb16@7Wx{wJpmpW8*uMX&b#Q=SQOJ^*3fwQ-jg{E zJ^}$)<575p>j0WqFB{Nc_rM54I-#jt7qUM9{Xqo5% z6BBy3nV&DN79dLV73j4miV87Eny+Y;n1+;0q@5}n0vZquChaM&0g0>$_h=L!8LX(m zLB$6x8@$aasGi&RVD8R)qQC_!0^E0LXxz75oG75E_14g#mT|8}@q8sU;{6ReLkHpic0Z4*`^y!*Kb*sOQP|%HG z3u9Po_rNm+u>3?6-H59R$U<77wKwbuXExkj9@41^U1|XCpG65A(e(gToL-@?p<^a* zMslJx8d(i61%;!Jbes!Z+u#>*O(=Y3JP<|JVygnSOB>WE#6tdyIFb-i5pch0bV$Rc z>@?WYIx7$IdHYvd!TM!*llg`v7K$GE&3?OA?Lx-Um(i<(0k}KgVtz1cO`)`|E^f_2Ak zNj|3r%P)=6wtz!qF)sDLm4g;(K2QLN>N%7Fi}J76^3#7)Srf7-JoMi7<*{Jr?Tc>7>@iB)5{xUzpOptv)Fkmp~{|I`f#Jd)I zchA750wCZgG<~7AjWF}w{>};*9mKoUy>4i3p`pkL#{@*R&(lTS6Vl=?+a2N`NCW({k#J0`5KK?) z9)Ky%iS)I&sSY?lAFYkbJDb9@MJn<{Dj1=(V+XVR-yhw22^vQ!xP|m!2ZX?{Mk6py zw8DYnlOiB@0$wU&7_1!LBKWNeK4bCciHL~f(^*oLaJ9ZhW{pM2^mZTH#k8ym5C=w4 zK8RfylYWe>%;NlIZX+)QZm~26>mokUZ(xyD{g}u^?`OEXVjfQECdU zqG^zGBqc-3(K@5t0g5)wpc$Fpm|RIj8ViW|&V>}eDPr}{OSvCAS;j8CVqkM@^pLDZp;{+NEcRWJFRZ5!9TPrml2%6dxRqxBKwPv zAHrCqJ}^Gx>Ne!i z*Z?umL}!Q7l_KV5%dVe3-R)x}PM=7RiYcSt@`%&Uh-0 z&Y0amo7&$rm5MtZro7>RfM4=;5&nkAjNy4-j>e(_PouzM zv8+Wti5bC-QMG*TOYxqtP$0UGx2P`Lb-URc%q(I_O$*FO11MZl7qGBs?8I!~?VJd3 zD|C@4JnwY_ojncreX%`g#3CpAf}E}TMpU{jrEFyA?dZ5`_{i@O}**H^{+}rm*&tQcWT^*(A3Xu`ww| z5_zpWkmBWY>Nl0$hV(9&y@sFF6dG)K=OMdDvEGs43%c>Zn@KXUU>86a+#O7ERnFTp z52nb`LbmFy8brb*WNGKSbyn1@kpfRx3aFijye)_K=U_k(h_DA@*YKq7Bk8E}E5o%` zvraqi7l=2im#=>N;NGC@Z6iFC+9lhGrX7KfSWFK9dpLI5BiD&#T|}HwIBEuUHO?{6 zu&YA*bwMhWU`t-!#8vyx!Yl?ySS1!Yk6>sQ-PgXdgL8F_+>+I{)Y_WW0sjA=r8j&JR z*;7!jDH+r20{3EiJ+f~g$5Rr@sgwuhcq)C@{PVaVp$moVenl7@ig`OMvCDd9QSJ}o=T-y zEp`xQP4qAaIe{SZ#HA3plvo+Fj1+HJVX3o4pOGUj#arqjvMko39gD(knR*N|2ln_X66U|s;Mt8&Vqr=*%k>>jx9baMZ z?cy~V^on!|xRNipTRO^cb&x8666ow$TzCr7H*E3nR((0B^oWKEVIrbEqQ-IU(YGLx zHm$zlmZ%O|YN;;}8(^#fYe^EdkYiR8Pa)dK)3jQc&{rOe}qg=mTV~yfj9Cn`hVHy8|T{ zu1r#ZtQgLgPpJb)3Z$W9NUscNI3e5E+uS1`>d--0!_ma6f;+DRq)mdCOh2S?v8Lp5 z1@nx{y;zDl_<0PvM&y`K7W+V@0~_m|(H+SW_ZaFy@tR;Nsgu%Zs4O!OIQ=}CONm#} zQ3_|%2pHBhhuR2yRlKt>j%jh)B%#r*V@z&}FLF5qFhlrcX^He75T@cgt}*~Gif=k< zfG`rmVOn(?65;2-<}6~U&Pf9z1ipl6f(SzZToqr9B9V85!8C%<7nEsDk5^Hfh}4Tv z+zGi-JeX+bx_qbP1!*k&(?)3k;TNk&UTIqaE={3{eFlxm4l)td<&zRYA9CUA#1Q=ONPA5oAc=bdtb>ZJxSEges?YUeg=)+-M5oYAQoi#G00iVAz3gn=K*=7ySvIzu?o)=x>!T6b~vAfdK;M+FVRa;3{r^U)i^I$=~Vts|dc-4^1I%Z`mWbor!W zs;ErkUCt{{YE3b%!>{a)a~LZu@LjlpUFBK!!tM=6_c>iYPYi|V6$G@&xedyxJrKPj z1;p1=v02+@h$D8q+#aD7S}JN+?hGa4^dEbZ8!{KB;NOF?ie`NvoeS|Jf+=Q}5pz|y zgT<#dw0@HlF>K6BKL~V>;5SZl5X$Rzpm=igdXFR~8aH6;b9aa5e_)IfBfa0V&g~jv z)dZ_>dBw>$&`C3K7F9#Lh|D7*(^B%HDA}eLluUi4QMmvQWxJ2WohdUfgZh9nMUqpZ zp@$>ps-md2s*^*%VwUqb@!muep&#(y$mSKW+~gLy&_zDWe8-h zO9%(ds1nS)aVa-~K!oN&X2F541Kb+`9L^#ktjz&8s{qUl{M|Q@YogkP;~8QchM|Ol zHySknD66XXG89cIBwWBcy}i(PGG1P9_Q7n>`ipFpmvFw0`W|<)-3+D$^nfLu ze|5M-Dy$&a7))C5`+?2kE6~7>LC^nM{A`x${qF4s%+cZ7JtcLIKd%C?`Uf}z_S_79 zz$fLX%Iy|Ct`#w^qe^7p>>9OTid)#Ru=w|12m7OpJi=&CDr@P=a6L%$cK_YDXHlk*q}IJhs?(paQb%NPp~Bg&plXsfYoPzU3|;zV$hZ!OtbrTDpOW>S-0!$&?#KWlC}XXX9EtG@4zfZV)K*aIDzyj4bj2n zZe2T}6qHKkgOtoY=@z_JZ_kvE!A~lbyOzLX@y!en6HrFrg!Oy?UD4iJ^oLp96}>!M zd;$9#W4saW#+>*DB0P)wTQ_B^D zIQmqug$pr-Jy3J|${7D)VDxBiW!BXzJGlETB37P0eHpipplP7=Amknw8Q?!@N=< zv^y_(Vl2rjj%r$MU;#y>Ec|>9JA+UNEk9K>%gaDYEk0(M_t8S2(OyHoY}o5H1f;C` z+C|V58LrXy4z~dp71!W3bOsXOKLnYESfFTeTYiLPguJEJY~4>pNf|WPammH)?r!UP z%)He$8Zz4cyet9r*dO2exb;s_osNf%_MdH0Vm??OViq2l@IBF+|GM2jDRavrq8ku@ zX^dB%5_xxIg2A+TOK6wwVFa%0A_f`xAJ+3DCMAjK7J941}2OZd#^pi;F z2QoCjb<+F@cZ?sUvIIN5bz-Vb6*b+O3W9;Ell&LS{}H;Y;WR^PQu4WOcKh$9I5MJj zq-f08yDCU?Nhl?CHDR;1z3;f_g;SQCC32y?+SY_f2SqK(av=7PHW$3Jp@jD&s|l;NL zTQj8+=|5oJYjzNkl;X*rJb~3!aU(XJJc0Gwu?M%i{aZi7dc7!rlEwszSe#!XtLe!T zH?aPubuBXAKROj#QA(p_c{L>g1-uOZ3=7PO$=FI6m~D_gQMQLHs_=-KrmI5sU&#MeqtKgpvvk4nzGo>Q~dK!*|l3|>BgqrkPeF# ziW=k$uAV$GbMgdunlU68?6h{yQF;m7e<`iBprN9G4MGw9J`_l2yNw+h4$>$Meudpf zFEFZ*(!Gtd3@m!wkJ&BLb#%CS|PGd{!>HTDzA}W*w5j&5#d!j zdmDWdG1ll>JA5*ygPoPZAig@{2qc7_!S?{;`{P|B`(8wM-K#^_JaHR!4zE`A4D5Ld*)Q1748j?@ zACNH7_lR&ta|6-@4`6&FDQ33{Nw#O}s^c_p)H||JfLf|nQze{m(frEBdU#e~cO+do?T?!tX zAEwxcE~JXDw1IGMO2>o}@)s_Nq_|WDNO=sCvwB&IRpQ0Gv{cd7FiRrZl(;>yWv?n( z5_fz^j0+b{u&F18c7F$ud)U)Z;IaV+i21j7A6%EJVX(WA!0VmkxFdR;l1*@PyGYq+#_Kg6HwVdG< zIKabrAyR=pG{(!9#G|zOUZbEkP568(ez%7ExUi(Fe#)$+50CN9`7V?(_Ckk@PL03{ zz`krO!tv&!eOvk7Tmr*)8DOD7Ku@Iig1eDIo*3?zfa8XKJIXfxdJ(EAQB#p&lWH%B73VIIV`F?)U?5(fZ??ct zswFGeklXFiOYtaMR`C5RkzD)4!rpr`aeXtF=sgTqXUUsr!xpGR=d=NmAKeg)uDB<) zWt;o!UUq#+IQk82g|;Ryy9|)F;_hKDW!bE5Llc@^fbVq(?qidJ_ADaa85S#Iw?$E< zIA|khX2eSR7@W!;Jxdk}Fo%OMc))6|DwQM=NwqQ6oQM5dWMlUiGvoTJ?nF;J~foA zL9u;;CmilNrZ|+Ub*a!2{lYo=2RcXj7~^AFn)E^N&kZrR%|>dB7erM$xiT>B9Kj@= zA9gmHGK?5wsVG2Roiy>cFmoZ24J26eXkxfry+-U+9p|af)&W)iktn!Aki{n0T#B|D(FcE}CvXcTO-SfO+kZ2CGf=D_O+iN}MyJ!kp3J}x3mS!|vc zgitbdgZO0ecG_Y`lIry|i4Fzv`uL+3`@Rw>jz4+>oR55e5=sHTXp>@D1Rz}t3<)xd z-#4b2dmrDB&0ZWL%q2t1f`*3q63$cv0`QNZUsx{|yC2M&j+_e-40#9WAi||8 z4J6P&3k@{T!u$FDp65B|%s>5!owvR3>#~hC=RD{6`+I)>|4_O8eA!c77>z~mtCe;+ z5;@r5t0yf5X(3vDl2m%t%4#DpK(_e^1yuQM2kKzu)p(6sMP{RrjN2j7y=o0z7 zT9$6XTt=@t-}M+ zm78^lDX6ys(hX4YN71F6;*xlAg|;Yr#FTpsawVNYlT3-tXezqm9x^ncy5z946+9S4 z52w)G!8=Y&xr7yf$hjM;#Egox?j?BOY=+_+RSHhg^-v_?LK5mDuB(NL@slK^F^2MN z2Yab}1YEl5@G=JO6+#Yk;4mbAUe+orJMR9)MpKhKZiYDHJ2%kh}hT{eOl_z@< zPy3+Xo_2-tCA->_{O8(ce}w$#aJ;Dg^GKQN_h`QXdK+dal>N;0(i7=WOveQ< zqgToD)$|poc27wkUp^kb{8N+nCSOXZXPT^<#PxJ=y+30`XL5A)-c7JK?>Os<2w>k1i(iq5LM$(wOw%uY_=i8&mUp*)7<*(lJd2{8j z3^5H7!Di0yHS5OoB~kY*r=vOXP#f(5?;nch-TR>Ed1W98_^+WWW0|S)Hi&QkZ_$eD zGccqI|J)-n*azT0u9o+2Rjr2$Vg`%RoZ$;+&M3rlmNu4PU#tUpA?zq%_i$K?>ul1y z{-ye$iSAAZ4K}xdlD$gg;QMk)G+zS8UexN@i~k<2xGU1V+WvRre?(VI)bDH^%|s+V z0@XBI%Nr5z4|t7s?A=Q|C4AAM(nT-rd&19-p^-^|F60(#Dx!%Pthzc$S z^Oa3w(Dze=7Vv+Wo<^d_RSVXhe;<*i!JjlB^Zz?4qRd%s?AA6qrQ|uUz_C}+8H|YA zC_=(P_D;8?R-hkB>ltKO*suKr(H0 z?suc!nFnQ>a>Q$PR>N;J3U4WOejBCEImbD;O)Zo1Jo=;H>%g8mmDhiY=H)zawbt4Z z5J`{Y)jyZfu25assnQ;dRy^1Gp2psGCDrf!XX9gn!7BPM(E@5BGAA~gPEi$2M^jHV zmPs`jJrvD~A~5n*avT0vMjnkc!$!}%eaW;+|GmGy>VNdt zS7l7!Os21Tq`$uEkE3O;zk|;r-Kta|(Vs+I$-cf3bHQKYPIY58yRveLcxl-AMC=b| zP7yDqsAe|1)M$A7GFN-U@yl74mIN`q{W>y|pyDc4-?Ewq| zn-}dJd)>XRAp4?(FAc-7dNuc-b~CQ{y5HEtI@^+($7zvqm>Z5i+PnUM?F?|-7DNlH z1O|XRsuj;oAN5n*-#_>!Ebx^M+zRpSt~>le1_HN!B;9~May_}X^4w-G3GZ)Z>gy^U zeJsV@Ikx2xO=mZOOEsOZ_SJO0+HZ&+O(z~o-I~rGPUn+-HJ!73ctKSuq;d}MC?_we zO#KUsjXqj`ovu3Ql0VsR{>N0LemXtSqbX7|OawH1cG!GMS3J7)@ew97kdM%Ll%joJ zOg&1&E9aKOaV@6)r2ZAl`n>D)aJQc?$gSr9x1ZM!aQpc}Sohoey8V1<_)xc>F9|1n zc{uuV+Ea&8xYJMREw`V%Kk@$=Za-gr%kAeax1YW$X`@)C5@`jr?gBV^-3WR-)4Fxa zZ@K*puvq<{>h=RwI^6B2Z=<8Aox6>>@qZAvpRYP9_}kjGUk^mI%PRYg1FW*&5CQ(? zaP-ae+YSQ!mQ}W$TGrsSIy8R&U$M$UqTjO0nhH3H1}pbFU2@;D%95Y+EvszwAHph& zh<1Qgw)5>#$YT$pd&??2z?$~q%X^t-gmetUR)Wf#{&)&KKp zSut1dReKVW6o}3#?~+ITHb(G;(AL>~zcUJKet67nngn()Cd=wN%OI zbHH~b2UG09kEQVIFh$EcX`biEKt(Wp}afB+<|L8~yoDhsV!uQXZ3}wQf%>@vp2`=QL`V zi;b>4vBaY6QQXH}&Yxk^@Np8(Z5>k@)7WpVZC0!6F@Uv?E$U|-hMk!nyUvVF=-#;CW?RgYWRu!vJiO+_qTMtC?4iC&DJGG(M zrch=h2QSIAMGRCcT~CHF{7?v5-l-Dxd_2^$oQ ztXGRRezj6;@w>QuZM9W8^q7A&Jig!oo*F@TSB3n{x#<@co^h{k?owh)061NC!Tmjn z?C_&fH`PkdEDKM^f;hJZa`>rHk&;=(Th(g4xaWE<6;}m;1afazNT@-yIO7$|MHgGh zlj0^({jFlz)&JYBmL9QQZ)#jc;WfJ8udy4%l!#I3h{ze}luh{jjXyI(r4fC$UHEABwx2jL2Q}>{3yrq@Rn(6!YDz_~Pt#!Jz82UH&QNee=F$Sl)PQITTd_%$B)e3NG_dDQ(fFX#H z#HF}eDJ_IS-_6X9J?2pI*SRs>x+(*Pw8Zy}c!~5EZq44GbKt0pF0ppA?2D$ryk1u( zjW$ml`+EWeleOppUaR3hM z4XRDDwVv5e?2uol=jot?>?6rPgM#*MovHcDl#N(yHvpYt`XWGX#U;#u6RH6{xmkGz z@=cjnAsH32>Yi8tX$MaSOitw{x@UKX{HNk|-uSMK79Q+3y8)LxY*@33-&C_EUd3Gq z*n#irv~qjw7#MB6c!iGjd#Zjo`uxrC_`FA-yUoVEPReb#bMh=XV($3}eZl2GBpxMy zwN$iT3^2UpSb-2xmu;iHy+3C}%Vuj=pftC#*Q{PZ?q!)1Br4)p4>a~gq_Z}Rf`r@KDvszh z2t&!=!Kx`HSRE_w+4gsLyUZ{;{+;rR#$t*p0U?5h%{>)LF3sAu7z#ikP$4r7Qgnlq z99@$Nud2QKf8bV=h={s!y_MunB$x7_P&TZDPzfOUoB#jnbdqExKOK)54!<4$mN6GQ zN}oVImk!p}F37|j$!07flh>qpado`l)OvQg7&_^Blbt@k^x^c;5PcL94Jd~1ij)F! zDW*Ks-rlR1oEsivhuVy6?ch0BS(e=fss3I)5m!`>#eS%eI;jLUUVO@G14?=ggC23R z@XJf-H$4+Yrg3uuV!2-u?-2L0xw}w{DhcraUFJRzrwxfq2|LkmRRPPDTs8rYf#`h_ z$E9vY!+*?@-w~9!a@tc_z1OsG=OXaKbf;l_

6 zDyML%iONEbbH&Sms<`K_J`F=QeTRPzI+VSk;c_2;4EI}mh}QjQ8%TtuIr_{6uua|oO~#4H*}m3)99DPNM+ZPaaoL2Cz}9C z=$iXsq*OQ4f8#i^eNsU5+q#1$L0QfGB!X&&>zki~KRgHZ15e%rylg=k2>Q=2-fNSC zXW-|<$!b>1sb6@I^s{iP4I6gTtzUtYW4P{KU^n*Rn?9ln7k;_3qIOo1M;@<@) zQL>H@tM1QaD|MuA+QUMq+0gZ6d_b=q-XYy^5+{GzXUIX&5_EVI11{J>vq)ix+Q8}c zMW%>%B>;Eg{a=;+?~48#t_a-$>Ta~?X{wcY+0ZgL9DwOZSS zKGVjl$z@KlBG!@at0*<^;KZqXgCep~&v;AK@B``0(t}S1*T17U`P-#_oxn;;i2`qj zPGXD9Fot%x11hixc`42Kp2c|fn_+*2M0%<{NOdUrP~VA|u2X}unt8^&9%SbJ>!Hl= z;BGQ`Tl->l;08{AiUcYZC6nvoTr**{X9*_hw+9?ZP-z?r9QTckf7}BH;OPuEP_8@3 zy3IA?4Ayp0w*^~aPU$?gaHFw}Mzm4C0ne?KO-m<7>6ZIPP>%b~q~qfeT2g05d~_)F z5dgZDoRD|9!d086%HW+fPt!uwYc%~eWM4myQN5N8)+K70HjrUTkyB!?yTR5|6}3}^ zx~I;L0;%-fqFCK5W?!_5>r&UxrgJ;JK6f)V8Pp9OzH`&ryJgwdgJc4S#7!vLo{1GK z7YP`uHnaJzr~R&@8^1=s&AYW$b&3fUVpic!s&{G)l8^XHXL;BlPv_~>Ru9`4PV~S1K64eV@)tXU4~4!3a;mFf!d$4iM@s( ztn1Q3=-9{54UJzxpiKLfnw;Al#WAsTFuT|qK%Nl!VhgoRu?#Uo;xrqCUkAL8eG|@< z`=DT}5&^G)=gI62pK|3HylHJ8tI5t2Po$L^(!<7HMdd?m?r|rDIgvaPOZ@fP4r#Ux z2Q~dre)p@jChBnmEi@rJ)Cv;*y;T)Rr2AEx_DCjg|9OM+OOl8C&d(zlo1V?6Ez=aI z!lqe?$KL6dmRE#HEc*cUqJbu95v0F*U?g6(cfE32q1`y(?IgLs>PRA%Kl^0zbpQ$; zSV~ABT!R%+d2(BfTA4Y)DJSi-!}+TFM+!$mj=k7!a{5}GJgTT4iC4T~2Zs^1NFp=$ z_YldC(P!KuXi_je91u+2r*3VRJ?><%jOkvS_F6zJ*3i$Kdp7IVKV-7)B>qLXp4`-z&$7O5XDOb3_sNVf- zO57hei^<~*IqgkL-KaO7GW`VZCY^JM$I(I&C~}bsg)I4AbYkvP9UHReXOXI|LC&@# z(c|$MD6W$rjOYTtPC=}cRLVOGY&%Q1IdfEt_;ql4f=M?S;I!;4r6L12<02Li%Pk`A zxFM>Qjy|i-%gx(+rZe^Zt-IIj4)IB1Z`4nx6ZMBUU3BxksOh?K)7kc)5EeUlh}NDi ztdJ{gIvPVwJ6o<%qi>-`hNaNWMhWM1_og9FH^5C$TVZ?l_e_EPPRHkO!I&e+T4C5Q zGf?K%U%DAzcG}?bE%ILDT)=FMEYY{IQ=osNxu`~D+_Z>&SS}!G7BD}} ztaBx95GJ?{ub^Y}lQW+XoJRVeVrfQJ^h&dQmx8CqxJSnY>SRiqK0_6D!DKYIQB&AR zf%xHgmBl%9m~BN0CtKw^9EyBG@<$Cs$Zp#K5vAz4_y#Efw#zV(jUt&$-R;GlNuFAB zI%k970q0jVWpH{o4F28inGL}3XlX`yLYs|!DOY+i=*eWO8-prGk+p}ekQ}P2bmtH< zc&1*A>8OfYeHv%56|kOt5)C`Ks--uYpTmf@vCb2wa`vk2wKoU!?R>y#kBoO>8{6tm zYoEJ0Ue>W!OeYRnxtFFbJS_(RShcM6i%RK?m(Be31`zDY zrp!EzMtiW-HZ5JyMzuM(#f+zqjlpdSIKl|#ni{!dKLed`A%KKP@x)x)a}v`(cTku8eKDnV=;$$AQYkq+jTUR7C7to3i5J;!wY{{Be%@&ZoiE&0Raley z-|#K1*W>uCGMfd?kv!sf<)Ye`kC-h$#fqq}gZrW7R1-Ef?Mgst>SeAdXF1_9uXupa zI)^|c{aR}avxxdb0mBa)yM-Rc3&AHQp!04#qe~7`s)3D9!3q;rq!1C#MXSTV^7dUE zc$vyJNyt$^NNts){Neo8MKjht^7KTU+3u8^B)fI0DXbj7U|db!CQ&Ln#j)Q3v0-pX z!4+W-rWo{mkG+*~7Oy~+`9S+)UWF8w{Kb;=3GSKmK?J?3o&obOQu@SMi#>lw$Gc@x zU~8}L9xlP19+^0re||4WPb{L&=TNxk=aJwM!=f`IaV33drE+%Ly6cyK_jg9o(#g1Z zsamcqm)m8sQjf$l7Z63g+3+#M^LL?=*!91YZ=vrG1K6=iPoO2Qzc+n8SKOk%HRe!$ zVSPCrnlx0~dlC%a%o&;SJ000(RP*B;Wll1~o1pkc<}@Vtn`{m;FIS4F?gmfb*_*pk z*ZH7|maks~7Bb~TE(*dIrV2MG`4{Pb@p#tP@XVH#z6Ia~X2jP=k?x|Ba{d0U3S%DT zxqn8e)7KPR+ifao7IxKE;m%{{(sT46lq8qpc^u$p;aaI=x{C(-0cxD5&0v20ygcHW43wt##XU6kb-!xmXv7LRM5ZKG~);Uu& zW1e>O_9bh7qi*3sl|o0f&qO?b190Z8!!$|qkMJJsS~gLnR0;X;tlssbXw_pt?@pJ1 z7ChbO#g#jo7eoMWAaBUCA$s^^eCZjK_h2Ok(S|wb%U!mUp4WGT$p-fp4wVpaE`b~> zI%QY7*XF_^pLx=e%r1gyx@H?~TRYF}^dE!$^=zi+!c5V}TT!bcO?9|%zcJQss@X{H zj7`hzyA#P2&C@JVESxdoE}D3Ub1JPKJg3w#$v2O1*FJIRr>IHy-IME*Mv-Tz-A6aQk)WyQDIl#7cX7Ex?*x1y#!_reEU$m{$5x3 zY>uZJwcVO27eL6ysgX+=;h?-*-oSZ&&b#GMno*BK#G&}37uK)jW(kIM_WF)Vet^~)l%*8jA<&DM)P2K{=N0RK9K%t<>GKSOr)ac9{1cGo_*A{$noC>5 zZX42k{)I5U>Qfo#*mwNPBQDO4k*=HS7r;ku%@0oGr|ZBlwCM6}>|e-D<&14BeQo{u z_ZrTx5dbo1a!$GY{0r;EH=??sPE)T7?$E@)4jSI#fe3O$)KM07ZhhaW+!vciXtBK4 zCjTmi@GT2!BiL!XffSEXeGgwJjNTB#T`8qZ`ZY2vzRxv}V=Ylk1om{M>LectGexh9 za>QfHVw`>SoF55!1)A}%nV=;KVtzhuG&IRbp~V-GX6jO8BLte56x62Z0s!(uVe{h1 zfpN&;3|l?$6&EH2YumCaN{=Zojwrf(#O^FCGY>A4#u(7qbf~;UZ&ybK25S=c1jk4f zdmmTROI9XkUC<3SUsK;Y_AiIElzXL4m~W4DEK-3-*RwvB=D7Fc2qPy2l`v&UuhRRz zpB<9S)i>@+LLKl;(JY#v^V}>?93JcY^x$opY;8B%eGp4w0iIH2bF1jWY7N#nPvBLn zy2icW=R|xi_tJUdNAhM8uetu-eA5@qHgk(}sMq0XN>lbBuB!buWy-$n*>JpjY}hsH zrr+Rc3o8=bx5WaQ0yumbZgeW$+N^lKt*G*~0h*uj$H10`dn85N)xGAvK`FMlwK6h- zz)(i+nNy4cih%`t?whN*U75veJf zWfY;+d)U{-C3<~z=_@xVQzn1gtV_+&met+m;TQkrV4wl%nUK&2Zl)KO+&j+ z9)u(h^S*(TAr1$tcuMsrRdRCyg-Ff~KZ**M#XR}`rRb9wQ7W!D2Q+k3ZT??2SQE9i z7Y+k@oQW@!?2@?eIK>hW%4R(f8!M82;-Y2qXBqJ8OMB%C5xc|^0}J459idw*vpDOQ z>9`^Mm;9>%+kh8!wi0vpMfZie%lT&GL2Wt(BK#ci%9+Uhh57tejR=z7JM)I%eTcn% zGV==$<9hk?uDi=cMlKb5;8+{o7miCS9zxlv6f#Sy!IxsnL5mp>9DgD?ouB4j+LNMz zvFW<4(aB_l*_mL(#JabHlA4kAh4o8*Q(Gof-ohFVswZuvdx^u7xofE8!$cC2aQeR1xLc#wgwPbw-#6oZ*$9B2?T zgfX=>-cH0VMgD7+C|zfS1cxQ;FG@9WFn+NszvixdFAf<_cH&hA2@u_|UQI_yUVWq- zcM|E{^gNjN2-uZ++1V7={j}D>Lyaa}1B&h4!?EmhgR$()Mze9ZvfU`xdwG}H;1blA z_aHRNc??08w7qFZq851L5O8|CUYY~UiJ}B_2Kr&m3jH{YmE$-DWvYmi-CUQRDryZt zH>n(o&Q+m$cYxE^@dhLIDD(%ClwlzAjB&)+mey$EHyErYt`PD7hV4Y*j6s4nTx5g2 z)9QiCpt$9BdFu;;i}O;!38BQw08=Q5yj;vROqnRYrrboHAAhlmdBjKr1e>YW38~fg zz{0=CZ>R-TchGETyaBUI2({wN!INwHukmOIlj{o`CzDIU>p~*wDoTr&kV&?ypa(D@ zo;m$F)`51m;pCrnhd@T&tEb)E7pSpB=iKSxP}kgFmm6X`!B@&nP@1|}A!|c_K6)hi zYxNCdvq{XVv)JT7OB<4*j;i%jn!|gd;Z?T-fUO^ro4~=Pkt^L*kpG;XWdnG{acR-Q zU{)J2$=A#HU-#YWQN@~NC^^N(JLb8_My!X=*AErLUKklCRhD*Z?cT;tFG6^JW+@OB z=7M2E3`2P&UZM39Pi#ZVTJ0yEz}-&Ik^R5uVhT~Siko2%pS^H37%L3>rF5z^aRWsZ zo&`=V(x+6yA(a%Sy_)RtT+PdPHt5c3I(DkvT{6pV^88ZIOr!@ZQNkP3sYSp6qE?`h zyaNNLl-3BJi>Fa#H}}!C4UIn++us6I>w!P4R6S-GbKtHt@E<`p?tHxf+DyiC9eV7) zQ&yB0|2AYWES7J^<{T!FM>&b_jI>J5ZzSshRH2SLzT^q_u#9*9?zYQ?6Q(wY7HT&P z0DAEqXLhTzVH>WaKG@GyMbE7`PFMQEaITcFiS zDxJgHQrq0W2AX$St|s5Wins>xdLV3lkhX z8r+P5F=$HZirZ{Ro6W=w{BHz;hA|^OZC5n_afahNu0Y>?1JuoYQ^e^WCxUJ7TcE4) z;jk-4|JZ@vD{#rL1(~i=bwMX@WGN%#Prresgh;Py!lr55jDw^6fVcAdcwE$~<) zPOq2Fc`cuNgm{abdn{}pF9&+D7PQr`3=gUiU4S%P^yI~%r4)1afs5c@B~>8F2-O$qDsR+Maad`6C1{c0Q}Br|U1u6~FrlYf&kdN}Ok zpzz@RDn(0ia7WrpIfde^(*l(H%pw)jjMLAJ?65tcdo>OyDbu)%9NHDZ?*bbIJe)g0 zVJ?`i(?%~Ua^u4x2cv)~A%qCACAMm}w)dZlohm*(%ixM!!QP18w^Y1Zu9G>jcw6#= z%Ce!Mk_(eup2e-PU6>|sF^PTJ7?zPBK}pprvO_6l3s#}fb;3?iEcx#B!1x3J z^pKS!qZlPb{JiTh`YhE|Z4rK@Y2w&R)2;b<;?mn6BX7*$yE)~Gk9?K_M;;D4YcHKj zzHa_9u9>ig7%SxN6kf!g+FJ!B?3Px2H?lU~t{N_dogijhp4mQc!UHrGK zsX9vdK?1GFUl#1Xru;drLr*=Xp1pKA$GJ90t)WZO z8oHH9C`kLu*5Vcnl-gxWi2#AujlJ7joYc3lhc!TVwT;eQF-IHBDFW?0JeO7+HC!bU zrP@Z)sE8s$4+B>1vzC4^?Q`|j;Bz@&=K%P7u!&3F**kRSIsGj`ce+@AjNWNv*Y24J zyuXvh2HGK$W`RUY-S_@*V7l7isf@`5Bh=a@dE&qux%D@Ie5<+!N23hF zzTIHn?f&r>ehWbAfuDZN+tVG)n~WMx1931f;xxus-+v3y*O2Xi>1d_)vE4D^YqYt@ zst?(nR%zX1LO1PPHqJM7;*&}Fs1wKW#J1d6i=(WdsFJ}7%LSPeO$$Bfb3G@>+1=`9 znI1?UjrB2bft;s=mM$dSAMGI;dIW@!|!aggJ>arA-vgUbb@2XmhKD z{0rEZNyodyX=UE**$@T8M-HsTkjt+!aSk)M@=ma`LCH{%vbFf$y@fw7{^{FaNV)d! z45-a8X}nHtB);Oiy6T+S-3+7TX6zqGiLhbmyn;F)FiNtch^1KfEqzCg=6Z2k?nU(9RO3@g|sknvKnUY#3}6)!qcTpnRl@c zg}{~h*i#r(&>}v&<907N04P0@RhuAqJ<B^(Aae%=M|?TQSJy1=iG6kWScqBvzP8kww3lf`s9d}!fJX52#z?ui|?w8BX zCl>Gy*Tj3`#~pVkeQ168iG+s}<=tBAvm^2J68|MAGK#OD{i(O)ywj+6_j?xKuXZ&& zb!MaJvm?p)g~nZh>gPv5B>WE*yLI2cFcR^Pq&1@_CZaEOpSClzIy%h9kjX_a_1xg* zKgE@1Yh7rErNo#1h8LL*pv#PStJ=ORg_h`G@MUQ_)UqNTSkL99;h&YZG>kupr_k!P zRvWMj;OiD1v<2xoQP^}0==V-)qB=@bsA}UbJUNUun8`jwrFOhYv>nf|+7NnW)4Skf zX#5{s0}Y~kNE2I#UqmVh7(dm$!e}(Uh^<8a5zN(CKgBbK^RqxvGd|d>&Y{dV#5GUg$nUK0J`VSFO_*Bg7J|0IY?U9$<6uuK!ctw@PfO_x<~)X!Ahw}>D9TW;n}colv67rY09Z1Pb0S=X;r$kNezB}y31Ho#@tBC$4^ zB1-eJqdZyLMm(%mDDLn#^d7Y3oAy{iK z(RWI$fI^tKcDBKJYtDsdcd8q+=iPg*mg@g}btJjLg^0c}5>F`vc@=WNvndytuPgNW zNKZkY*SSMDVZT07IOkmxLY!K2=0=EEo1D;%p?Z{79Y0RWThvQFk#an7c15SuZe6pG zi?}>AgMXT~{c?q#v8Xy-K&|p}JnxePs5=NOdxQoa@BBi1DGd9>6D$6qG`sZtcpTff z5!Jy=sQ^jDd%3o8Gmbyu`^$Z7FBfwYd?y2WUaLG5cTP59v%n=^9f`h~<-H1>HB%1_ zRT(lYGI=gssjxR}xM@4xRSlm4V|L_-kx%N3NOkvq!Z~!Y3E+0 ziC?a-z`zhc{@S}#qM?Xu>}}jsZ)xvCY_^Hq24cIkEy?-OAKFum3#QoSI{jnzG^Di) zUI{3xQ%n~$sNvK}vbj?&P3o-R;gY}c&MAUp^O&$}B>u#Utv0F?iY6BF;52>Sd5FbRaRDwgmHKgZ@*dO= z$MH&*xRGpU?t|0tn%h+p?6}z0XeOtU2%mmuBqqvCv}v(l55Uo+!F8Z->hO`Fc+P+0 zn8qmjPRE^NK7|SJ5dFUG^Gn-MpUOU<3>d`8Yw3rwGnL&- zXYB#Jfra$TvwX5-ku}N@2^@b{umI?gb;c99^sNTwUQ37sntAPb1amcUBSRJRc~~5m zCKwmJb;}#-fM`vOxfJ(xTST>OVx{cJfo8=`rG3exM<19$)_HaXk^{+*OCWYZ*b`^q z@j%xq%`>wUj35He_b~0%w;MQ9+-&-F3n|94U5>1e8VlY3e{!%liNHEognYTeiHrDNQ|Pye&iZN3(irU zCMzT|sVC8IM&jo?pJmO5BI2SMwLP75Wu&=Z{CXswf2O&qbdvTviheyZ zF>M>xtWLL@Z-4BuM;{;Olde{>?CiCP5+sKe-=o~(Z}8bJshu`|6URj!qOxg_Kk_#R zt!?1`A*lSeOJu7L*v$cl@VnenDk%2C;Iroe#EZL)jV=76GdEUAXvxM0W3p=^pv@Ke zA4ttvD7x5p^O|qH631XsdtffJC<_Y5W$s2j%D<1349wkVLGsVsM06j24Dsv!LYn4V z*QS>MOssn;=;BLzwL9KY>CYYQFP3pAZ~6iR2}J0Bl?xhUtDJoaaFkuSt0mQZ8oV)f z#GE5aVWf9g_pjZ>!>YAa+jS$w8mWjsH8xrQ;th@T>~iqDB%DCZ{B@fQSmy!8alw}z z%gQF}Ln;Zp2!w1Gu3bry(P_G7@aZdl(>f3S1chWR^RtK^m?MLU{5BlU06m~n9FL~H z5pa3F5zj!DmZ5+W=e*EUn!H@UiL^SD>}H>sPppPWYddN>s}kxFq+m6T#J4awBT`8&&iQkM zju};Qm{r(<^F>vxDBU`ul9gT0Y#pln)PF$bMM;U4>d3;JQF;Q&c}*DDZ;+o6GUy=e-e zhFjcJ)ff;-n95Lc&;QBD3hJkP1p-bsgG(31YfIx(-d=`kpnn31{R3g@<`J8I;FMz#;CiG)A-%97x6EEizEdi>jI;FJYdJSVU2aA%`C})f`&qerRQxPsGa=IrP_s) zN)1S2C{sxV(LNYiIhV)J`QqSB9^&kE{Pq%1K}2)dAlxl zxlmXLDl`{oaTW!J;w`RJ@%%Rh656l<$qFaU%<+%id8nr(2j8joJfGRCOASQl)k6G_ znQ*sw)1F`0+N-~~=waU?``>B#I5{xafDf%r3#G=Qx0@3SqI74imkRMGay?%3Ik2sR zOI#PsK-`tKa@tjojl^mmiS6W&SgmL0Q0-`WHpM(0C4D3;+aCK75E_CYz6hA`vRvKK zj!;;w5WRHl*-be4l_ZWSlfBnFxu?=>?=5Ksq3+X8H`hXu`Iot^!#eD5p*-XH#s23$ zX7A@+Y#l5lVqrevcswf$D>n|Cb})HI`^R2Tj|0icCtVnH%q(_2qtQt)^kRx!>ha=mwKtoNi0>>+zEp`8_6?@#mhuRrHaDj6A z(eqX~0anuOBSUQNp24L<}8=@rTL5GAMn1(Ex3&JRWlCYh?lBG zm7!q2w2%tN?j%np=h7!mZY(Va%cxGzwHi)7WUv9-rDN~{Cc7-z|CTHoEk*a_I4%|# zjSzw3tsLf8h;z0}1PFh^zcdNBW$gBqeGHv<<;y2MZEc4v%~a;(HL{&3naTQ6_Q+*5I97q zQAU$pB}I$Ui%a#9uH|j%LZkt{iqX@NQh1(^vwYJer>xozuL;Q#H6xH5s!ZYgry4o( z2GjGo@Kv)aXt3~1?X~+%llEWEE9$#iac3P70^&_FYQnU+oiY#+tz|%%3s#p#oS-gF z?NU$xHOs5mM@8_-%>Ar?iu+bsJvHq`323lYJErW~W{!46hb-Ctr>3OJ2TA>I|m>sB>Xj*1(Q#&zh7L{FT9>MfqK$-$PaJ=9y!3HBAR% zdHaLsV={g?Ju>;b1IR#gJI}#Hzn^?7ePL3C)x*O6ASOpVJ*AOrbyTHNP?-{}#8&y9 zIQWbCk=I;BG$K%T(!7(S7CUV25?Q#)pA-8Bu zoUgbI!QCKr(+PJT9TZ~1UNvQ_Jx+-JAo&E0HfC6I6M5K`Pp<X96d3UBvaEp7d2BgGrI;k3{X;HTaNsK?%FlAiYDPmn%HHlG-hL zpm0@VaT%q3YIkjilD~N`$Cer4OT~9(v0Dnul98-fuDnlD6O-2!6D|FkPakiuU#wPl zdC6losl1tm!Fq*2I>ocDKJSjm3-zYz%+fA5v}6oWy6apXOeOO6($X5f{H2)T&)C!y0rAAsizt=X~C1c zM&~?n=sP!xYoouzyP2f?vkb=l{`bQ8^qg&^^P)l0JQ?S_O3cc+U3}N|rKgrxFwa|Jj$nu< zEt`^bDwQV~4d|)=33!LYd~G((pUY7i5emGuG;yN6)|1NG*qQmkWBmUH502!`@#Z|w z`iySfRz4TT*JMNjyGM6j5f9-`+8;Yt?iYiHccu-OsKYXjc|OOls5A|BzR_sZxs-q9 z=&B3RC)u2cBL*oK)ylnU(X3b|OoKo>`3ME9!ksjuP-d7*-ekjE7^&CTc=Am)HV!fY z4!>C@z{5>UKmYBo(oft~`ejZf_Dj*7pG3bZq}3Q}J8O+PewKZ#x&=Z}jA7tNAyeyk z8#yNu1f1gT-YwG77$U!t;e0a9H`}*J^a06O%^oYoynB8Gviwi|SA2j$>DONQ_nX{G ze=T}CKJhpj)Zb{){Qfs1vGM3s6ptR)PToi1b#gS_#0o)S8~C~IJ9FIv4x+Gx^~&Ck zA_K-d{ThqVVW?4A9*;rcAip!}dRowa5{-_=-^#iWnb~XQT@UBdE>b@{i8;1poG#P3!z-mlxnq^L!Od$m zRO!y>WapG8NyECmf8QtxKlR6=*LSh}`vxv$(wgRVKBOop?_&l}_aC3oI(2ID52jUg zu1f)Qf1fcXl!$+d$wLt)vh&PzbHugeyf5PkvN+t+TBY!xT1M@%L7mG<_0oD^H2!B# zZcS;Ioq_33=8B&A(dX&XPtT=2LXZgu-LBrY;Fi|Iqw&ge_A~v$9CXm1Ju(`<-@IaF zKJEmtY+s|<&_(_BWUf+JSSmb#llVAKKRt1b)P}0xai+J2hvHc@U;fvdKSkj9fn#6j z2S*)td}uV|G#(rUXA~w*#?eFkHN?+{`y9A8$%kFRq@D*YnG$rA9iT*wfEs|Cdlo&? zr)L8toY6QMok*b*Zo-Dk&J8PwLtqLtOlyZKX3Pvg?j8Z2_w!&j1X<0&VWp9^}7^xXaPTs3N zc{{$9UwjIVHz(-(PECqzS!47YF4g;-r-qlLm>o`nR3*32t=Xp-Umr$+M2J7-AoA&4m9=Z zd&-2iaa3bArO+>txbAt89Z^S3RCSg~(K$7FS&qm}R~t<5Y-y&^Ph5`~*EJEf z^+7tgapk5nt4(Z~tv#CXMQGA7Tp1!hkS0o7iJ04Nle!mfnq9%Kc%bIZLQ`p`fS~PP zFmojoM5W_BljlN(kC0+zeUGY}?W!xLhP%)1n*Frx!ppeL0=>T=+QGlo>WH1wi`=n> zXcIO*x7Hf$3OE2|9x!7rv{kA9!gfjPhu3kP32tu!&M&e^+>qsJTP-cVr%Ba=o1_Lp zbIw^sf0zW%HjDPYFL$W_$vLZGH?=^5E_8PUp7yb0)2Dey zo?gniJU>2KSoWR(A#&$Vb&@4e;434&-Ry>Z18TCiO%SBwF^jXtM50e0kLA^QWfXdP)rUL~0F%;; z6mj|}00*%>bZaO{X@~PxF`6}NQ0g}3L~;%yXNlRkeYSaL(^0hF5SmOhv`byYB~m(} zOCF=8LB+uFNnq3F?-g8L=7w2!amUrl!$ok{#d33dAHovHx|uG~yhZy6iTQ%%&=s|s zLq7`6LYYNN7<-w|^yeLe@X|SY)2#@{Ew39zIq(4}k9!I>l7f|9-Sy&gIo+h~F?yNl zKHJgK72BWC!iSL-oMWXU8!pz=UFKAmwi{@f7SZ-9-p;?nO5E?5nWgMYG2E$f zN?O#ki_}?B1GW%*K9nEPZ1ymr_3VRIX~nZR_QgeWfaIQ?NIup7%Yd;1J2nd=6MTM> z&>~rU< znr{J z^Pk0S#nD$6H-UKcVfR}DiD}0h)%nAPkvDK)!Hb$Gk(;~zqp{?}?#V$P;kb~=9qB}! z0CLJ?T({ngK{RiIs+FsoS4Om~pWw)IUF*O-6)ElaUDPBxPX8o` z4RS3+Jq+7aF5VU2UtG^VTgPI8Qze;=n(11xjv}I0<-r_HB>xKQO@xZ&1|#DwUL=gh z`K4{V#ldYDFNmsC)<{HJ4R!=h{JCRu1ASD#FJ#<+n~97a9SA5ew&OwUcMyqICCI$l zvF9Kn?t+Nm$?U!sMv)JKyAgimBdobRn#Mx6k%n4(IH3eiZV-vU-OllD-0}{^p7WH= z(S&&JR^|uZ*>*xM7rCZU_1L@L$91+g+U0{ii~P3c93-X@?{-l9u+iwqTu}DTXx^6; zP5Xp&BPh&$-1Lj3%xiHX`{WWjRalY@%Mi)+cp(JQ$_0p=k>@_A4RLg`fa9}`qk=AQ&e;EeLN zfac{CXq;Vur?fVa!DW!b`zS+fwuMfsbE0rD7RDf_h@=e5#Go0P9x5#+A8HS|iUm&W zl0v|JMRTbRvdr&Se0y3Tg{Top+}-Y!w?T+*=1{>Td4G89RZ2eaI#@SK$-Pd~eK?L_ zyWcncXY^PcePDEaJr$mVE?W8#5KLZ$Kbf&f8F$nzQ_rm6uxY2#sm`CifF+a;ljwt^ z@pt`?MStGdYUHlxoZc|ugf8;xd(yuJor-$-^l1E-+3&0)FCWYMJJ%=Le;lU|TW6SK z&Q_6ECC3x}7l${xW8YpGjenB2QRLR)rzLt5=K9XT)`?dSu}*yQDAtKrj*U=0;uZfN z%PIap;?(3k~rQasiu zfMuz#pviUwWphvU9QvvDlcT8i1HZ%$u~|g4J73QKXzKJdCeShe!*90rVdUu6hfE`1 zII2b-nNtwh3YzxOe%kXpCJ6-X`J80}RL(I7^BBIxf?PbKTj(ae!)EHhi+PYZZ7dre z@?kk^W-$Ti5kMtyx)iW&u@>^8E6H!!M!*#Hp{#4X3)5cd%$vE6!18`MGj|4)Rk^Qo zMsb=zN(E2HkHsNbU7B%f>MFj{^)~K(7vKdu{570YLHxtvJeRO|!@K)Y0t`W@6~8~8 z%G^4>IvRg0&a8PioL`3@o(d;2^XydJ;4lR?^juLRL*|{lPP7+4_vglP96;BYbLI*X zc&Kr>V805IQjNwR^)sY+G5_`S+J`_+?efXUYG!)GsZeuwnZQJj5 zq!UqbRRIFm_S(POfd~+NH-ZYK?Q%PJlGJJgA-BgR=XVUd(Hv27x*U(iakwRTdpIdT zInO#EHVOh`IhR^(rdo%z=nj2;2wxOmqDdRP=-?Zkb;jvtfT0Xj$=jA{hSrFePz3es zqj3nP?gzF}e2%<;H5sGB7e|Hn7-KGZ0iieF9F6a#H^e>i*VIp!`8pS*ACivQ?jq~1 z)s>2VuNnd><4JC7bLTsw@rQh8v*9*(UDnfFw$}$9__V*JgJkqV>=2gl|Kf9QF_ALV$$AG+?Qq95_c5Wjw` z|Ne9|;veHY7XNHC`q{w!m~qG*AHZDFhm@$0-5YbNWdWZ5<3AA{#G#UO1cdLR<^_ly z0EV=1J>Z=?<9GqZ8_Kn;275sI@nU)_(2`hr_Vm>PE*aYQv~YX+W`(m@OYd&)`+2<& zx`dyP#*-KJh~USyOV35IiI~V9M?W99L*c{mb64;|EjIxmX{dk%@&`LB;A^pzIwU^W z=I(87HyX|SlL@LcZs#6E(ejOURdtB6t|sD1D-NG)W^Ri4-xD|x?dBg$x$Vk7ie?EP zt)W)IEX(vZjcfkpXpG|}asQWXA;Y ztZ{G#?&zC7BM#0;hfm0(tTbNEk@YO_aT8AxZG{l>sJKZVs}wp_iCu&zqSf%&5(Sac zJLTmhZEz426@&qmLB_&FY{=5=(?Z4;$%+celK2>U4pwqMF^oJG%6b;oGg~SKkiXaL z!$`!7nqDo_z-N4@CSl`pkJ|W=m6Wweaaya5)M%mk7iQ$Ky>OmU>Wzhu}u!73gi2 zm>wxBQdC-(ggKggQ5z9DWJAksIA$-?oB2GT2%XFr_k#B|)NSY2*&U-kVY@0f!;U*!fm3M*3f0sCM)|R2~!X?jr`{&59XRc8e{m`sizZso)9*xM0 z+?Al~%FcEd}@D21sfj+2Abg6hWu17AZ2gTw00i!uYh^xLw4FiWGN50?Q6TDtgVxelqOQ+^6*8+pSCLjqan{d|h zew(SQ)(aEtin~r9pW60&-DLgZeS*Y;L zqZS)6mZr_~P5WGZ(N^sN9dYA7lwY?~>w&X$XugNi>QYd1#^2a?UJKafV_T!r?pB=54Lr2#o&7dI7HR zh80RsU~<|)X=cfQNsg04$;sIL0(I$YgJeQpFy0DDd;67o2pO)z2BZU(*2C(}j)J&- zZPUyO3JCq1C5l;c0qz-n5L|=4WbGne+9NW*p=p1uwDw%+cSW{lC9$|K&hpWx^HEm) zuxM7{s&(7#No~|Ncwkk!gG9sl&ZbnlF9Vi6oOKB&>;;x2q_Pr{Bri(xd}@{xVw4H6 zZCRJg4xqmp9P5ir^+hp9=D<^{6t5E17d^t_9sJ2>6_|QXVx&9ftjJig)GDX$qzt zuy~2|lHsHRpgg8+JTn$O-aC_Cu)lN(Fqbu+ERE^#Ss96Bk@lFQPC%gVaE$S>h57u3p!Pc_0y zA!3(c!^7qBLoePyM1OHV1#x)%W%sCXw(s+o()>S*VW!5`wOWIIJa;CYV~h~nm&s3`uG@>LfJ=z1zNvrZL(Rsaw5*U zK()gM<^3+zV02lS=Hgg%)mHj6D}DOdE4}Gg`dn_MH@j9kzXZ(U+-CH#W0@1M{#)^U z&jKgVQz4(_7dIm^z9!*rp5oX12X*Y0)#vJ7)^l3c&9Uf(vGI-#@5P?z_#O6yggxx! zfX-Ai+Rz#teKX6mA$3Ub64PA_>r&=p6FoYRY}?M!fA8xr>Z)bf)*66qzu$cq?JxsJ z<}tXqJ_K4ftxAcMi`Gg;Kd|w`@sgK4w`v;*G13J|#e?osRzdSwZG*mC&jJ&q9$)#! z1jjZ4it-heW>SYzF!^>sCOJ%EfpquwyR;f73Eda}h1MZ0&S1e6pb0lYstuJ- z(B|VXta_xRox4*bzP8%Z!ouEGpaZb1*+$P5YYKy+(hzQ03`SBiujjCXA>WTPS*=;P*X+BnX0GBu8^*;^N*&TNzXpLL7vG}7o2GgIQe46qTfC;P} z`^NWS(RMOcC2ULYWm_Qb$8yAFap;k%AfjbduG!Sm{dRfZp?d@@nxzo!8ceQo>o5q* z!=ewzceUGjVL3^Z4Xm_GN}I6T-n@B=6Q7akC#!dz zG6St(Rnn8xc3zn(G_Wa22PKAbMha1Q#esBLrIa{hDQeVu$mj>%)G z9$}yEGl4e$nXCUAsH>OiOxFB!QQQGQGW2X~n$1y0r;VXncThpQL3M9ZkVxFhhFVaA9Pm`f+|y1a8#>h{q)_^YamT3bcy82dI3-qwy3$}x$HNKl>Jp$x zOLJkmG)Z{YTY#@ByJ?9)ozn9;4MyNb-IF7r-&fV$2m%Z-R-E!I@jHT{&uzKfZxNZmRc*?2L_r~InyXiTddxt?i^HK%*?)5Hg zKL2HhZMt(&@s#&6hd+;^Vul~1DS1svfQuF}9BT5AKrNmc#M6E`9oujsnp(1mM2Z*m zdmqp4?Q)RSwaQ+#i`Poh)LO9TARWZtzC8@~V)se0ErVBng%REw`^TnDK37ey#?}Wi z(v-rErTx<@Y^5kgi&805d;e%~qx{Wy9p1M`ES3 zoV=7bW>b~tUlx*;a&jh+1e9r})}s_p`QTV#)eD<8rqvb`;+)GZ;%L}&GCnKkhkD!f zVN#^+fl~tc?CyEQcpN0^apo&y@oTx69fmkx8MM6Ro=y(Jp%as+MGb)-5mk~@(1F4L zRGOt4eADsa2@tg?cK=LR>CO$S+nDaNIUE6ILfwY5lB!dF8OYJ)ayWkrIcX+W1It`GX2KefFtFSmM_JNYRx`#(CY#n zeIR9yfQAg)dMiJN_LFYcPQaC`Szz`%1%zf*E*vh~jXLsx*X9Ga5kYOj%hC)=WU?1? z%n-iQ)~mkBV{FS>-Ax+k%?o;Ypsp#YN=uRfMX*xBquhvLRfl$b1e$ZWk?NCUg^znM z4pHiBo-uE(8P8A5I+af_TTlq}Mq?YxS)-mqhS97z|C-`-%{pbi;CPm`K0OwHO1B-v zc*8lHwelQn_LbZlHO^rUA=!KUJS1;xJOa+>0|SCulORB zA51c<^JkB|16s@tN@$`Y4vAZ3ix z{P!#95b?Qc!p-d$qAy4T$?q>6d!b(*a~8I*=G3WQwvP9biHYc|>X_fJkBuMc^ryr( zRV&WVg5wMU;R7gtF~CXur4#6;dXZW`{54N8r?r*`urHj5SFe}vhJF^qAM71B4h1d< zD#t2B-#F?*@;tja1}%_{jKZR%XveN=>0PqraS*x18e)>1YUy1{+qv&dV0V|m2#C;` zJf1ym?WhdG%sx#eMG?{NVd^GWneU(<--1z7GY`E&2p(TytUrDkfW}DE{8Y zmeVsJGJIX5x9n9eOM#M@DS@w3D(vuq_pe&KwsBWFJ3ARl&!Ely)U^xmai6jcm27)t zAGPjxiP!SXqE>N!19}8X>!+F<=d?_ zX-g;Uf1YYos-86=9Fls2xNGMNGLbxsYk22T;vKvrd;Tp*WSNLC-lR=0c zIy9~4Yc++i=$$g4PT7qh5$L=ZNvvR66qC!Mh2Nr8z@a{utBHdDBEmtn`CK7B$DzB* zB!=(BpD(0!X4WWC()!U@{CA%H3ALwG?#ga_8pma$h3a58>&nCcmO-QUqy7|sS+Wld z)!HqB=&NfxRK4mNW1RX{6V$hwa`gYlWAQ>d{JZCh&(Qae$2!YlS#yk1ik^smI(S1F zN@LsBiQThZom5~*C>!y!vG^?9na>upxXMLZa2YVd)`d8ULHj45CvQYv+;{4@-i^J+gZod7528{X^jXjx z-@~)KA->KLxhVPYQgK#WTCJRhfos6rQCl0Uvs02;4zx@9#L>F+!x)DPY2u7%r3_)3 z#wxo*=@&!h`Qd=vjnp+v@iHAM-bbZS;nu{V%U|5pO>*Aqj)TCz-os|v`-x<0Nvw9? zo+}=8oUd*Z=+s(mTtj|nYE>M=)wpvZK{@2Tmt^gg&av+7$=ae)G53WWM0`3;buK0n zsbjs`tubspgPa2r@2=0cHTl#6IUwPe0CrDti`32_KsRy}!%w7et9RV>%U`FLhrAw*VsOKiBDeN<+- zZbs~2?g(pC-xXPd&T@S# zzT+F6ldtabK5}x%nYa&cbqqNF z11;^Q?UKuwjkkG2-iy&#;e~j~UBQqNg1vq3`U=xGUh0V_mI-`tt=C`B#d47bl8Du5 zx@+2A4}HAi_1E3~bMPsdPw4GX{v;T`csK$zn!pSJn?!}ZrkX|NrTfK*@Pdx6<4*U}IK_g;6ql6I*ez_w|D zagWuM^Ud&$!1~uH8o+XewW~^dZU$M8CFv2ClCv}C8q9-gQ(Ew?Jpkb=`x&$yv_vNp zc9gTw3D|&4(^sq0jb=)Y+jQ*kgj1$l&n_}3;3!!zxdpempR3Ez5I($AzEg#(^#D!M zanq{wy#qMQy|f2En?HuqYEXu_#F#A>as?gvA0&SnUZi%H_pTG%vRS)r#gM~W8n3@F zga0at$gyoE(F0KJ^rsU||FH0AZ2AW$o|>Poyg*E0;60Mub=$(=S*`0Hv(K5Y5`ovQ z+9Zd=9um8aSSx3wW~=lWOk7Ix?C>o+vgEWT*`_$qCD-|1`KBK5h5nRb2Yg{_mTq7# zJO0w5s4GA6h7eX5;`KBCjkg(KoC=Mhoy2?-O+!kZq8ZJ+0*c0b^`JMCwIC9 z7pBQsaw7ywnBYl+hZST^N|mf%2V1zBel@ok~4}=`AObFhyT&b!QC6c ziqp<7&$)q=ayyfWO4;^PHPB_*hG)QBCv4|H*HB9~QUA0kIn0dQb4NNl_TCHv3GM{)MbPr|)3B6zC`7U1Mc zb1NM0W$d3fTh-{lB*qkrd-L)q*pMqt;j%P5z_pL2lh5ccHTAX_3)#}bR0|YN;ca^@ z=}1dgL_RLw!;F;!u7?tWf^5;;JYI=;L51dFPxwj44)X!W5f<;+6i1nlpxSxhP?om) z4#$&Q9PUL6jHJr*MwM+zMFm*zPPR9WE?rNhJic?x@KDr;uZ(uJS}XO}+H&byP^>#w z4wAJa_dW;@@3lmm((CN0qQZ++pKIu*`z2QvHpwJPJeX)fnWol5r{cf$@{(2i$txo| z)i@;4lbA0v!j0NrR1txv2^51ORUSU&9J!dI`pC3E!VYQz9&vKjL&p|29*&b6h$<0= z-L!1|!^iHWPXfRYh_Q zqYFHp-%^+Oa?1`nbrLkYhbmvn88&6Qy~HEEbC4A5Mw(5eQd$r+iIsOygCY5^27T?E zZF)*E%f9S~K9PJ)AE%4mtDiB@N+a++&0e?mlto=~&Yq|^72M=}fBJtN=1vc4?QA%n zZNbdwBMEw}04F_VIn)dQcjf{rwcB0+@3|f4zHtOBaQf8vc2ATyP9caL5ZBgOEHRLK zFCZ*mYP19>*^})in1%U!I?GcsQ9)3#p}PP|fX?bkQfWY+F`q zdp6e#8957Y{H(o)_SJT4aw6-~q+(6{H0&g(=~dn!?lw$myQhWI*yY#wQEQ{E$ktec zQ1x44=YIGl4rb?sM+lQ(M(N6dDoN}EJ zHn#>VR)-}>Uu^wFm5tu&e7knHR%vgAMN{lo$sE%(PU*MnP3!Vbb8~H{QQ6yOVACa~ z4OVvVYyxbKyHJ`a*u_fl=^_;sZ*fu4PGg0j=y2yAyzDhGVIKu$0aNwEKG7K|P9HrL z@lT4=)2E`xPE8!0HuSO;$)dNGKUKZ^jJXj<$xlRUl@x%}Me!k(L>Z1aM^PYTK6$;E z-rzoPxEs{tntpsTdWZh|!#G+xn6S-Qat#5+){;vqV>jS@t!<&X*UfHdRi{;h{FZm*+3*Bo@5$~d6}b#(ElGuTD`ca+FWI{6_8S&rvbUOFnq6G8%yj>Iz;_^*fc3Hi?5 zJc-#ZbaKf;B4<%}Y&2`sHE%v}GA3h;9|F~if4q2!tA_3X!*rRvUm#g4WY+pk60frl zVs!Tw;E-!=3pTpax-~DBSmX(z``}hr9B^}%!t{_)>Por7+~@53${Gs0{NuBM>KXca zY$Tq2m++WdWOVspNX!ni7Yf@SMLICe0cxdC869w}!H6`JWub=77l{8w`V646hbD@e zif7Yn(12E8RayrrXi4$1fyCM>eX7q0@<#$gnKnn!$`U!_C)n^2ZzLK9I*7r`EX4Wk%Kip~-VnFtm^8SjQCUFL* zQ9x!P+IG~swk*@Ul2UFM=~|CX5iB0HQ9oluCxiegTgtNe@`QVL1D+AC`iuD+klsEM z&9i6*^b>zkEu9OWqVxG*U}Gi5c{x1OakX%PuzV)M)%-#9SZOyjNFm}{^Cp$W#FZ<| z^lE%n!BS}U)4|b2rCJQdy5rH{^79Lfw1HqW2UCpUQmHt#D~)ZJOO+JDfV%3vYq?x3 zBb0*)pS#wf593-|Y5u7&Z+TONNQY&QW_|b};SVbSB!mN^l7kF%(gaL;fXFX~$#P0% zljqXUN-w8vZ-lPSTQxMGp!_7h3wSF%8mEoYEH7xZ@%15BRjQasp)eKZQvFv@No)Ml zS%ZWN7*f1GIXB&q3MmU+cD`LQyQnq(Wnq@KuZFSE9kg+AHR^EOFx^w7Y&D}e@I@H>1ZsUnz@%yt9gD7nOTFi%SiZgdf6ctX{$_z!;6vf)EWm_)2d^wc) zS@uHJRVQR#;v!Mb{Wcofzg4e6=0ekNLTJ%c6*|y5S`rYV42#l#I^`cICP`uQ}+9i#vOnOc-PWwf?!j=(i$5PaqDllVgF|l#^nzeFi{Swm3d!SH+Yc^kG zACT_cq^FYmW6e6dne3$EbvL-88ZiwW_vMB;4ww=JR;VBJ> zZuWnxZ~M&e2Dnqx1{131Y*fEJ)`x;j?2l(0BIF2lRg9VW&yH`j*Y4=-y4cZqljnd= z&k0-UMyFu#UkabLwXX~3m`Y;Z!GPEEWF2J;lx?{7$AO0yksljn%O0g-)L~Kb4);n6 zoj2vOrDblFwgcw&IWU0-AyIGzPV&>^pCc;H^O$^!P1~nsq!|n{GMs~*>fG18K~+9| zCOV=g$2blfjc+Jc5Sf6Dqjss|&egobsh5b3pb@$%wPDEnM!{L#orA! zbk@U!@oUw4JQR$;ur6U#KwBpf`t&ne6)BjWuyvFK?@2{%tg{6p9| zGxFT2h=0-03#TIf@hCod`D9c+nC)E9iMQZn6(3UXld^KE0;X43A85o$pqG7Hah%^z zp8_zh3+{$;m0L0&!GWrXVuC?iMTu=pG(yaF3swx-3$Uv=E*4z%hCEDW%nFm#ppP6s07fXmMXj`Qn&lk-LA42-2Gh9bH4 zEYl{hs$_1xvYETMa=1$89AQY=sgAvwBi$S;fdLVRHPaQ-?xf%Q{rN=qX}9|D=E_!Q z8e?P7z~Z_z{(@wjx$1Xk0_cM8III~aQ#`OS`PnxepByf;Rt0hhuC+rX#lV#{S2%aC z5W1i&nWmE_m0~<;^k(N&ysGy9W!XFE-as7F^Su^lo$q&aZp%j+?bLon`$y^6eH#^`{h_#^ z!ebAfjPWsboTPq#Kzs7RQ_%-c+O|+qs|MzUn40MDo@NDh1qO- zlBnNyMbV6!n3$xlKccDZQ!z>Zef3oI>QRqrK_f3&xU^V0c~AFKA58Bu8Xnbb#gqn? zOZ5bNTji73@Uzd~&66meF}9J`_qql2Pab(%-F+5v>&1CI+n++uu>_SGabpJ$H>pLn zo?p4Mc|q#4C9?vFT$woDZL^q+=N0PJT60X)!HNyvv}yG?4sJS*F`|bY&idpey=e~O zDKqA@K6@&DzbRLW9c@5pTs{xtlN(4BF zqG>PG6cm7wdlUCp?{unCqv#8oJ{XRoFSCxMus=l9-BDIz zJSVmsB$rB6J~Ba#c-G5=YfAspdj0=l?|tAay~_K}_m%J18e4K?7;ofeXs#W(Xk5*U zY-BPX#xR=Em=T$Oj5NkBcIV!a?#zhMKXfH~l$h4+I<0BU2D;EdOSU9|1}D%sDYVeS z23nlO32Y(7DQrsv3AE5c3tMPmH#GbGJWzT&U2pg z{6E*^4XyLZ^4d)mb7}88Mtp8QV!_SJE0{ZGv40N*`}i@|{{2Gh2d~LKcv-+~>^=fB z5|x~2ugpiyX^5bYv3k{vb=ikC6x09cmJDuBAd#0XjZ4CS#qAhBgSm|*+nL(3?8z-V zI2<}S8NwS7x>4&RJ8ZS?t;8owfBA8rW>s&HeJc-n@u?h+_Affr8T@rItnod8s1#gE&+;EgEE0O zf)RoMTwbrBf9;I!qKbm>)gJcg-3W$cobc>PBOOB2?4B(N+QAqS`<-y22-IXd@0!{t zL>5LgvKENW%YdsW44ax;8rm*Hv;DNV+0)l#PhXm$j93{?G)xS}(+9YMPWv@D*AAkS z>DB>iI46{~@4P18FHT-A{VW`O&_wdt&3_yVbc6E9`frpHvd;<9&tH>${+ixK(#1`V zE){ZeQH@x%o#gHhCZr9=JK{5{IX)P%^v(miZ=ro|EZ?``dor;ujh+EH!S9i&M=`WQ z2q6O@^eUsm))4xhuDhxDDhEz)CJOBVt}Q|Z_R9erj7J>-4t8bF#+U$e7k7mLWM38% zU%M^)>SfGlMDq!Ap@^18S6tpW`If*Af#A+ymfK?B2Z(v}X41)fQOWgMjjF z4gcM1GX9k(85QPxmp(I%q`HsHBh#X=%F0Yz9ZxznORkd-A@-DPZERmoks(NO zfeN2kuL{xxJGu(&3rmwnqj0c3D!!WV8V_d6KTsGa9I3G4Ar*k+a5@+wR5(GYVW}S2 z_;xQuq#t!9=Tq_61|Z_6A?nw&M6Re2O}A+`Re!{}`6Y_&gp?32Q|p+VzzS;`9BS|A z>@v78N~KON<<+9RI83UrY7ud*_R9xEI_ZAMTN-3Vaw>4i~>jUd_LI11>r zH^k@#8jStw(6p(Cnu+e=Hk)h+Fz1-JZ5LxkLpp?q&71qDFYLn-b{z7%`N;S0+ zBJq19aH!u9jeCZf;*qY718y+jIfKT9XL$_~vrs^sNn+x~#jb8TQE^S}=3F3_J16$> z%-9HlRuyC%R0*UCE-3%IwtAlV{UliLtGS^wOxNO`w1QSQN%BD0`c%@@dRuL|#b7YE z1-1hRmy9REB#4Xojl))#fT9T1C15<|U71i3D9%B%J4QGi z?!Yj#|03oR4=El&JfZ}uFruA#&}Z0zl^?3zpZi-fWztLfS|a}z^G|aZaSAuKkt1NC zhvNJOZcs(bfU~;}2GB`>TWrme{H~)cs*8UT^O&Y=y5>0A44N&}o03vT&4CK+>-p6V7bk1dPTlqysf^ewoAhK*MZ+P@=>G6=1r!bQ{ zuF1K|rz$8)`jfU#T-of>!s#}Co?2di)!LpH*I#(s{fGd;#Jp9cTSW@p-k0Ovr9Y2R zFNIOH1(%71yhu1zzcaF)ub;lqT5tFFBw@2P-Px}x2!(+Q%i9y=G!M4dw5E+f9K@l0WKTL$lK73;To zyk53_%k`%UW<+~0#T)W%RBs>xtwt=GhxDsvL%+!Ab9r{%<#u!XRdjR5HFVRebaOr3 zAXA;%mff&rN29D>3O;gs&p^H>Ee^HemR2xbK7>osWwsGHA5DfckI3G=A=c|~<(uX? zg*~la)^{rKu;M1994}~a|Db|wuw*^2FJy8P9Yxj#m}9m~Im>SByJYBL^t^PIva{st zq16=AQ$<6F!IIzY-RXtcO~rU%;aHJp6!(oU&L~!SV^2tnkAoI!bXXitvrdK&++d$bd(gD}N?4GmIdj~& z3zAcB)~TvEJjFRP-QUm&9^xSPXx)ne#6 zUX?u_=20TMT^v3|oJSCf;*@%8PgGjFzfyjfT^wK~urK2vxw&s(3&(ohYS}WMJtsWX zZ3^ozVaD>T4TwMQ>dW7piom2LGq$slvzzngP22J#)(3rJ)h7JA<;KfhamO8PE_d>( z-7uC+|JQSCU&g=Y1BZ*<-nZjYLBJ6&nAZd|<8|wC=~lp>XssXTvX~X#TRuVMk+Y0q zhct7vYh>&f9oYya?0~u8FOFXCbk4$V*@C9jggsFj(iB0ZTLjFwW(=%25%vbMhQ~un z!A4)ZXmVX_3}GPUurWlZ6XDqvy_VJJ8bu}h&=8Q!aU1Pwb2=lCZ_te}qV7<9dC}n1K$D+{d37z7Ex3NqEud)E$%Bfc~}k1|FXu%ivk>~xKv1r`c%#vr+{tfjVE6B(5#uVmYmovjtA%O3dIDwfiEg z7eWcIzzFK0u!;wfeo}`}oFQf=43u;h)7$Y>MVzJYsZ&R=l1^OgL%zK?FI@Ew2%8 zijOJ=vjq|@>POeGmE);3xU5TYAdijq$8(amxy@##Wj7e(@M>|J_iVg~7Yg&;DgT1w zi3w^b>Cr-;ZOE-2c05fz*j&!~ zx&Jhvjc_AiSbzeAV+UURs{R7(O~FB1Z}SmXUCO@#)dnlS$uGk48M0#RYYtsPG%#JG za4NpgHE(?^^gp84$_D*OeA>Y!;9S@yya^>a@zBI5{ z3?Cr|v*pzb+&BowS4a>dkry#A>}tm3MLAOBXPOiuN6 zMVXx9WkNypAIi$E_Y7wDZjFd~bB%BZ!rr@C+s=t`|BZ0saH%&vzR_}b!&lnUk!#_H zuZmFWbL{4CgMI4C&b=UyC-ffk#yt- zNRq5kNY4*Y;#nklUyLX?f8x}1gWzg>iTefZCE~$+a>Z!)=@2LGEL`n;c(#2MCnrnL zY_UHuaGTvM&N^6|#q)|bs<^OOdchCTFh5(Qr8z~>-OpXl>fgWh(Ks}-vh?6Aw^J|H zb!UeT#evHyLq1Yj7BYl}^R4QZ# zvaGfBCN0;ydzaofahEXBvDdOtTPKvLFlwyqxl&gXH!?(a?8{=d(j~&dT}=|7g4;U} zvEbcbVLDW)eb_YIT|-*5L8`-4e__25@-)|4jbdJibf7&?q%tJC{ww;q11P`J15;|a z;Y+8;;%2}%%APmCeg*bJ<3U}0&$z%r?fANNMm0SeAV4)r<&Ka z5}XTO!fV6|TvhvMlvPe(k3J_U=3_zDJ-#x>wcE&5rdtMQftk6%Vyvn#7j(-`8Mv?ZaXSu6 z#3z-@WSA5&U6G9n=T#nMNCwgM&?Ezu;)QQln*4ehw+@>sh-k!ZJhDy60KUj!$8`b_ z7~m_hZT9$zvBA*wwRX2awQC9woxwNBiL~_?l2TOvt$Tz~F-s0l2$F;Hhx|M*XCB2) zfdpxCTyoM@*Qp)ua)tI}=0O#nsjQ-=O9*Pnh7jiC8CP)UFQHJ}MlijEwS|i2545OS zwPt%cy%n_!6&)aP#OzP@YC)=xB|li|gX2`NQpHe0D#$+d9E6934yAyhdk0kE5iw*yWz=ff zQ`<}_cumK9Yu(Djnkx_bPp!9?nD@TkK2~cY;jRKm@7=f6vg@uS9{M&F#|{AYWW9I4 zu$JAg_7_&#uOLv~dL00k*O_uMGBl9=G=2$laT760bO*!d(K###8VAB7J}V!f-oIK};o=gF zWiNuj_)}r73R?1Vk62R&q3d6=v1TK1N{R6W`qCitp)GExg|h;d`05Zdwi+3*SB z$9z;(>&ChkaLm^4ZHBjj?C1OV*H(s5vOprZ*IL}0jizM_@QN$*5iLM$W{h9h3@7JL z!lYJPZp?tipOe6F(h3^%9)^GGW`z~Mj$0Z*{-~~^jqTW+DX#8C#0K+$wOeo7!{sh! zlDZWAy9w@+ds%T|Hgx-4efg(K3fM>L#YULeqzp_wt}0|W(cbl}Y3uPoTkoyV*5gK7 zj}B(<6>0JG>(9E|_lIsjSn2lt*6kph;e+az#}99|Jbv4t`KnHgoLb~~!@|M}VeG%( zPC)Vw5eg6mi6T;MO{m%=w6*fxk-9>gSL^_cLBAXg9KxJU%H-w)Eb3?L)KE}`kU@@5 zU3WUgIj$=s)^sxu1|MXrAUL*RDs?aa>35|M&lO0Sa8NsX=@2m@cDGAMh9XenkrYCG zIGI~3)NgFRyGatWN^zd8b1ln^OSES!l(OrSyXNMR#?3Tf2GJNc-wU*Q8NHF?^tzSnc*u1Q*2UbQd)U zXtEvxgKNm`Kp7a!re-@5wP{TQy6oNx+z`U*2>nLg39$G{eg4Y2DWV72I#YGSAq7PgGYC%+T7II884c`EKn;fh9@QHlF?rI zxf2L4j~Cqpp_?<%dSB4G6YLdq;@D)z0Bp2X1>v?jip7DgwbM17w!-Kh4@1YwjrH|S z_Ey4a{CLEwx%6PXyYJeXqtP7>Nzvhv(%AF!lm+nxGg@Kk+{n8QDcRqYxNtb)k(;@e!?)ci_WlGOLjanLcGlAq~-my;U3ut{(Q}lvLRkk~w;Y->T*Y z^5%w$=v=Ea%g#btGvaB-&r-EQQM8CYV!If=i;cqwWaprGcuDJoBjh!^B$b_@?d4k+ z{ePAls^_?hNU(Z{xGH~?M5h|q#i%Au&tC2FIl7Y>1y8)5&^!$6j)^Z6Ububq~;P1PK(Z#9bj$|@w@ugeon*L z_0zK&b??1Ay7`P@Q^*(A&x!OEhs<5 zp^cUOsV(L_T#moVr18_sU;5;gc_%^uLW#HC?b#$ z(z5=v5PL`pw;Ys1Ql~ZMds0(~mk;gS2Pw0vxsTJ!JFGE14$NaeE1z%@E)Vvny6vO&5w;g+=5i34CUfDbVlA*A z(q4d%iseufV?mLT0dH|vr@|a^%)^5hWk8sp-Py7tx5XgEhfSZTJz|46FMvp?g0Lac zr5HLEW3DlGn$@auL!7D1TGmb5`rjW0R~Z)ai>$bVjfF`zh(BL@;IxsD^RN# zL=9i#ps9If)i^#=M2+SLI~qa`QweTI+-|ZwVmpv&1mNn{cpf&4zyj?FceUAra4UDf}u@8=0HBzHU+Ecce00 zMKY)BG?D?rdeQY35y0R+3oAqXE@EH+>X{8PpBGOV`eNUg`@Y)u^}cWReYfv>eR==3 z{_Kl=1EXhER`0ZzoF9fK$&!rXHEk(!m`WB;D@TD4R2gLsn`0M?gHj2kHH6EexXftl zt`2)wZHnid4pP*9>t~9VAoNM^;h(Q=-OGOOWt9q$E+_7>KBg~r_VD$sdl>T`LiXpV zef}~}1r5W0bL)@y`Ny~oNEf8Uh>w0WK3WI0?Av{LA61~qb?F-zCJQD+y6iNyY;L9x zam#+s^ICn9;1_kqw0C+xx7H{=z+n>}F}m>B6Cbg)@OVXh9J9w-e7xNrx5dX7+2fV* z@yG4)s`$9a9(&{C9rn0As|PSf?fL5T>~LL^o*l5h^z4xJr)LN4+Vt$O{ZM*#;HX>} z#&hVdOV1A8bJDZJ_uTk=o5QywJv)5Yr)P)ne@M>`-w&r}hi@=FJA5~!XNT|4q-Tfk zN7A#yw=+FEe9w!|FLe0+YDl2MO3x18&FR_U z`*Z2p;d_339&`AH)3d|3D?K}Wx1?u>@6V@ahi@c3JAAv-v%^=UXNT_v>Dl2MP0tSB zt?~JGhwrxZ?C`xXJv)43>Dl4CJv}>oFG|l2-;bwfhi^}McKGf{&ko<-^z87xI6l9~ z;oFy<9lkr$v%~k2^z87xG(9_f`_r?-H=dpyz60sm;X9a~9lnY5?C>3m&p+<)-Ibml zzL%wEhwpHDcK9aKv%~lD^z88cM0$4kj-+RY?`V2<_>QG#hwpfN-sA9{NY4)6E7G&W zcQQRYd{gP!;hRp+4&SNt?C{;4o*lkdre}xmp7iYS-5a0paQOa0dUp6;m7X2G`_i++ zcYk_z`2J#gcKA-GXNRwmo*lksdUp8Eq-Te3CL4-D4(U?a;E*nt4G!sR$_9sYrEG9W z+hv18x>`0kq-$k^L;673;E+C;8p5G+v21Wi*UJWn^e4*(hxDh)28Z;avcVyJZQ00c`w9MYdj4dI}9tZZ;d-%vIL;5$%28Z--l?@K*+sg)r z^ykY4hxC6f8ywQVof^X7^NzB?A^nB2!6E&{vcVz!rLw^xeP`L=kiM&Ia7h17+2D}= za@pXJzPoI2NFPrP;TZarvcVz!)w01MeNWlokiNHUa7h1d+2D}=TG`-`K2bI}q`zJ^ zIHbQ(HaMhzFExY%>3wB`L;C)*!6E(oWrIWd56T9I^aEvsL;At8!6E&JWrIWdkIDvz z^h0HXL;B&=5RRt*t!!{ef3s|GNIz0GIHVsf8ywPqTsAnQ|D9MV518ywO}r z>6cSOIHUe`+2D}=o3gva7h1s+2D}= zhtv?xsBe@F4(T_`28Z4G!slDjOWq|6DdWq~9qU9MbQm zhHysx-(`bC`u~&-4(T724G!t|$_9t@zmyFQ=^u0R@7A^tF2p9BU$&r`*07mPumH`p zg3V(g&vieR8}zg9ZQaeNcjFG&5$nfoiNX4k_xGL;ZUtSa(N^G$?m%g-D-y18@Vw$K zrpsSW_zwY$Z)~{fJ=@m5Wy;YYuF|=M_F*D-%`Jw0l86n2Qi3a9?M(#&>`+>BT05{Ccmzq)V)D0>HN~-VlRIu%Vl`; zSK8P2Q*w-C@bnRu^y@Yq?g+PRYheheNuMiY(c9AZ13SlOXXVq(-;@s=#ITv)nGdDH zQTd0r?a-^u94lchBl;w}z8|X-klxVWyAvCh>I>~TzTCvn8EcLtYdE!)+fW5Bj=D(^Gg&Qo4!yq4|emGDq~1(0_=GZdS3 zo{t!+HAo;+=06x>t9!B?c*zJUxFW0LzsAB(%402?2&uyd=D70Lh$!2ZO&q#-9>el# z8@%E9!pNWDOFKx*(gJ3>ymxI+c2&kb+q1Y=@fR*pTeUYkk{%2#9yYf<8{##O?9Z+y ztMf9Zwi#0TMh{w0>JhwsYs*ZLyBH~_i$j)hDy@Q`&~!VYBzo=E{@zh2Dpu}okH&(( z6RN(K)p9E!bbEg#t2Mq+1}1rt04fTxF>degyz_he6(q-xfy+CfA^X3cJNq;KCCF|2 z6=T`>1^`YN7m8yD#}pBU4)X!-C|Z9aA2`G1UE~>@1-^N%SzlRNNsWWJbVtv)KYzOXQEW>$LXKyMyY#uvsHrcU#j`mmg&rwada|0cHW;piS zdR2g7=$tT?IYJv(*GKXrm7h+8)=ZI$<_T{f&Ao6%<*n)FIUKJs5@zc+hLm$nCaFd_ zQThHzY|bdOxU#fNeSy^!Jej@1Ru$#Bz^l4fc(U6j+89|>8( zRHq_S=d`iwfxLDs%P(;~mVWNzGFW>tyB7$0?(fg;-*R}ng~z<$>5iVfuO5s2*0LtN zCO#d6x9&SUQdj-XY$#nyQOoA~^Re`(x1faqyIuo2Xl^<7Xtm=sJcY|nSe<7s0OLSy z`qe)3tyX_dDJ>nc`#Q#A0rxD0;>5U(IqDrrBbK#G=vXWSnjfij8-Kh+ucKjTyH)72 zN=8h0XI>#gGg{2on4!#Iwt!c<%p#um?QEvp|h7jqyB@p*iiGfI< zHKNNDsRT7ziFrl$XIXt3f1~BNRVZw&WAOEE46Hi_*0&t|K0^L<#ZEdB7+GAtBuXNz z!3mPxCUsahFC?s;h$N#M*TR=dCBPBSwRTIZqj~MHg?MwnU+4XY*=swd^SbWoyw0bi z|4`AlpW?(n-SNqF-RQs0(f@ir>3Ktc_J%Dnp>RGY&_i-9+sz1h-@eppRW4=+vfWqZ zM^Ynkx#6mVEbAyyn|0pvm2KD#S*F67K3rVnA5hnMrRzvDecvC{@US;+IJwt*IJqfM zNK`c#wg2mRTYtvCT9F=p`T33&Ioe%y{U{Y;*pd; zJ+2jgZ-2(WiN{hkX8I$B>V9LHno;_*BPRpX>(glMdJ?`+E!V5Zo1$vZNGcgMIh%i4T2G}U)zkf67`5^aM-H{bM^d%rr4@RCPiCL)@7rXs!I_nH zuCNpVtgLJnD=6`J*ZY8sI8teehqqyp-t=SS(<@?x4Vb0{6u_2_m@O_-yv(Wjvc9biKe_$@c;^ZgZl zl1PwEXHw~$!2Z~CZFJg1-iUZr_dwq#<9YV0{kc>p{Rvk$Q7zpJ*zr}CR|<>~Rm~y0 z2_1cPQ>fx#X(Z75_5Pfg5^k3{AhHf1Xmx|SOO_DtKw97I&-fSi^zELp?Ax27|8h6z zcRRM;x4XCAw|(ng86KfQ}ApqrNt<{qpsVE(TzF4TLV~Ukg?o8BI2Z_8Py#*z8lzg+Z zgx`5|>y;S^{v`OU(h|=gbksPY-gRS9Z#Er(I6%<-PatCl1!#MgZM(KQ(~;^-N4jRZ zz2oKnYpZYfgNzM`QB$q=x@&K^HoJ~Ld#=AWyM8lV9XUk#r&&d!IiD5e+JIHl#|@i( zxWiCX8#s(WYS$o*&hu$3_xI%0ZsAFYU}Fv23n5IEkipp)AiKjN6ko&To+3YW2>Cs) zW4@18rwc3JFxwli?Nvcu1^YU?COc_ycDZ@Ew0SdwxqynLEx!?Z+mLd0qm$b%$3!{K zndX_+!~y>AplWEv%fc0?I;M=w)8sCiVIqX$=A%>{BA;)*wRmpzd~B@Eye`j&hY8#z z`R7GryRv*FRQ_D$cH_@qmA~EgYUL>5YEs5b4Q^soYTvNty|kcekF|XGWO^V@7;;^D z5IdUSYX5YekB)o8l%BDaY&NwWhXk&sGva_-Fl~f;*i}q*xRw)*%YU<+9Lvrr|2LS+ zAPWGt^WOX(;lY61umHDqtmy6CD|)-H=>lJ!A4LD@8NW8;UpD2~ zCwsF)*Y;h)4!mP^eYw>>5{$8`%BCz(uNM_E81lhEU-f*517*++&O>=jvtj1>PB!Dl zwj<5iS7Ux;w>V-q{GOe==?%ivz>2KEY~+VSjD`>8zH0`l|e)@CA|h*4XvI)!Bfy3OTO5`Fwc!3=Lf` z5{t>nrIM|+?1tX_VtAL0uePq&YZny>{*LxG<=N2#` zskQ5izHDfMq!w-ioLR4Bw{B0L%*NKPPp-{&9wgsmW^SIcsN3^D3K)$E!Vhd5WP~tl zi54k^SZ@%WZkM;;`jYI2vcuD@ne&TW!94Gh3$fm{?9hL0*IYk8knKNl9%}>6s6!!p znN{7MzcWD8iYd*fm&0pav%M}mlAxoW0GD5@*?N_I*NsWKCb-jKA&Yx8?L)NnX@^!Le72MtRIj`F? ze6TZ<40w^Z@4q@<4j5flOIP2D8`iDT=u@?9q3nAhG&X1*OniU8D))K zAKa9U9XvlbKU;qF`m6Id$7R+pr?>p}&t(JCbIT0$rmGWg4M~SxIbsy^)YbX7LN{lc=h~-5M;ks# z8>R9>WuM%fQLcnsUlTn~;ND?w*IkppJ@mSme#45$j~hCFN%s6~xK^k&%AwQe zP*w_%c71Ud{#q#loFjetv_$%DvLL!T)RW`2d;2K%?q%n?-#nZR9gHP!YE%QuXH#vP zu8}9Rp?hW)PS}x$^wXC|!I)AVT`$jM6sa+zl%*-vvd{I2LhQH<=}4ZZ+4UuMwl4*d zED!(PA8V`Td95ew8^<8|1O4aW+E=U~*4edr%KOL6U3_)iO05IQ649)h((2p{#Wl&) z4KGbj6nj!|gMcOl~st!1x0B9d+E&BN5guxg9uE5rZ$=N!y4pHy&xiHTPXu8~eb?ID7 zIk_WgfHtKrUZ9u*IcnvED6C-WuafHKC~QCsKyw#)l5SAV1_lH= zSNV2ew+bXla-7rh8zU`~URTsH0IQm6Bc#r`x3*EJA}d_Xu##N{N|x(-HD)*~8&}nf zLouVliMew~2zf^IRqY#fe~RyREXD|F_id{#8!9}u0**bHrx-NnPCL&Ilalq0x<64Y zVtJ{JU=yk*bP*w0fc0a?rw{ElyznBqf$jR5U%_NafbH{Ey}(kpSq#c)wa9-{N+EI` zCB7_ski^bU)h8)qVDDPF4wCVej((Q1v|bb9#M0e<+>5Qc_TRZFTq3+3@lo)uk8mG368(T%|*-s5>&% zyg|#C-PlNYq%%Z3BLZ~7$-O3+eS zbi^8_mzL*d+G1RzYgg5>;hS@9i)GQ*nbzuqEv_bNLa4k{AEt&i&Sg4fji5FH*+ee8 z4ENmeM3o|v`5D-#yVZX4CP3^R+62`G-GMu3*#ga0yBAYkLPxX#52 zsD$zd2B(S#&b1HaUiYibWY3*n-90m}d|X?Pc@QH{s4bJ{lhRIItTeY zT$@6^i?d%!%f%eycW0^0>-7wT)XIzv530%ns}rV;D3V@ACaW z;zWk(+`71{!5W0R8)r!n_97p46@aLRPDNSR5jQg+_by@&t~~GA9&=xpS>r4?k_FhdG$a4rR5Lj*JN+~&o8+@ zz4n_3KJm@IU;FMS(wpDo&CU+Lt=bZNrNOZP#ehDC(F51ztCze*N3Tw02koA)=k7-o^@AIpE%=q zf6G<-_x$!AlNsOoE8oQzULO8IqypMV{E`)9d@Ku?_-2Z~&md^bEk3Yxp;e&cTaBQ% zUG@1Z>M=lfANm4H`|kLx(SC18|4%f;@4xzY&cE%d#@`YQKmLb5_eT%C>Dyl-{2<%^ zU-o_`|ISLr3)OuZ{Hl+%LXl;ZEWMvdMq@YddEDM)sM-jwMXiB=Zxy%*K>zq{>V^S$kyNM4rEf!eRPhyIK5zn=66-W0HL21Qu+~Y0Fr#yLf2`Ut5{`cp5fZ;iTP0OM3iGOb zsoF<_Ay5`EyY>(@qQ6u3hIoyQ&IV1kt7CBkm#V`wSDWn%s&i3iDe4cru)g~x^#{fx z?&7T+L3(7BgLMi!kyXPuFb_6w+kM;ZFLFJAGjBT3SnPlSJ{k<`J8!sfOGSNRGs5$*J|DzhAT3WKta5K!>m$i><&PB2)C zLnM66IM=|yZBYIWR|RiJZa$BRVRI0gq?KnQb#QI})TZkPLsfBe zZaN(nDXa&Y%Cn~h)BJ`PE8f{+L?Hu20m^!kXKQ)gJI}J-@7PRaN>SO9vVfKs-u5BM z|L{62Ow>x~@ePcLe@EYlj)Yoar0<{jVb#G7M#2obMz2iHAaH6bDlTDeX?r-ry48P& zT{m%9OV@Iuj9UU*zNK!j6kzwqP-iBTc8C{XA%%O~ecS-BBJLtkS;In_;nDGX(+F%4)%v@h7*va* z!U42Q1vByW)g?SH?UDLMe~2en}X$D$R1B#a6j_W^4l@ z3P|%T%M(%{5#>#qTXV4=^=MXSU~^^NO)AT4E9l>_KPsV}7cL!!-7`zzKxJ)q>j;`} z&7wFl`=zrKBMPO656QXj2HS&Ho`Lm?Qk(=fi0#WYOM)mdTMjf4M$*)DY z4k}tyzK0&Fm*BAB#LJj%dvzt;sF8iA{z~y=79V|jg`_5o0oa~`jvbX-40kf=MClf( z(IwU*&-J}tbG_AuU~$SJDsvKHw;f93d26~U=FRoSsbdp|PM$t^{Mgj=$x{cXCyyUH zJ$2}1M-LsFK7HiSv6oFBZWP(q>c`nN02w-vHG(uLiJ2^bLo*^})GE{&SFtsMb-=3-K!!yJiNpb^Z=bUHpi13kV$GZYUrq70|N;f!tQ4=}8cl*m;<}ki4X(AP+ zw4$Lpis@XeEHJ@v`W|tbq{w+mS$Xy_LXoDg#h~;sm$U^zsyR=+THUOGtZz3g(P^l7 z?tlbyp)f)bM5yeBoCSh{X5j&K1XvM`?Dbv_Y*B*7Y<<|zo7p8@(aXz3ZO9^|0_w=3 zSY~$>*`y>vu^+8FKQ~C62smmrs3+!^J;1(fm&Z;d!a0W1jm)O!8?+d>#8f!fS2ztH zs>g$6hm`B6#0JKPei*rhbs$kNqS85s@xX90j)*=HyH#kMx@C=HyKgn)!w&vz6img5 z3OY6`kdr-gV_r$rHqIK2g^u08gAI}>V#p~5T_c0SE>Hw0`^oB~M+mQ08(27@Nu1So zh8+U+r89Ov)k+&J(Ijx+6234PBUF4Bc<9&Gi`{5NHKP!DVGhFxF_;@=WTZ62Oq~ge zNWhL#meQ;o?d_s|gsCa=D>AnopRFH8`$*=|h}=Nns6(g=wnf<7vS{mJ5wlk$R84M@V)VwUxg|Q;pBp3rW7A^N zthflF_Vcr-d+6Pl8rrz8jmvc-K29+FIjFwtwCqq9d1POy53et+sf;gG zq37py*{3n(%CIm|*sg5mP<;?4+O1v1*p$$T#!u0lZNgheN9%2W zJ5ewDQoncBZ4GH=jKpyYNye>gGqT+gx+yZ$W8-@u(2Sr-1`HCNiBpwG^(d#*$ML>& zwcnom?J|KMvAZzWtnaoGy9zb&uWg0nh7PdW*1{m5vzUWWLRY|FqN>=0kmnVED|(FG`ze+j?xpnc zkcJuW!JutFfkROIt^|O4G}U9e5`(iXKw9MY=ULyFE%8JQ!K^p7I|uIjnr#9vZm+E+ zZ-i9-$cl_wBr$}s!VVKn6dX9tTo1as1pD>vAmT*$w4623q7$mk*HIQ@LH*jH8{P2j z%u)wxQhJn`uFNgYIJ%*@GBUY~mV|9z2rPtya5hL~WDM&lXw4pw{Z5%WL`3|sPj!c> z9WreAD|Ng+<~DGCrHPmN*n#l_haxxO2$t+2DBxW7HcZtSxxFVwxUxjl904@u+9654Z+M$CPC8Bc4JVeLV`5+lZ}g8ox)%rtc3 zW8|+lZmsXG^O&4I?RVIMB*-yp85!Ey;T}ohew}jP7$+(M^}xV8{t6QMqcWpLT}5Ap zi_*>H;vvNOb-g{=kd}cJU0BY`KYRO*Ej`$wbiXm_(zX(kpNzQ#P2A943{A|Pbs_Gs8H!c=Y3!dU4Ba)!`6 zFm}U89g!$I^1K4<_w(n&jQ~_cPcZ&Pql7qsq%LE)U?Kvg?ai6wQ7A<=j5X(wn=!Jn zdZW=;#CEcipcozNyyySuT0;;ZuAxc8*H@UUJ_;NL}TH@QLN8Rr^rrM;UkCSFgWzK+}+b z%g!@d%0eDW{d`kQ#KmfONH>>YNclrh{sAFqbu0838J1vU&^=&|1a>S7fpYKnu*xi< z3$0LIj0Z~Yc!7pjBJ7OXZB51|U5ul(qm~_iA&Wnh1Y<821 z11BAE@yL0Yie$Ge8i;rl29Yz#lt%|>&H0WX9Mp8RdDCc;n;B)SEYY>hrXOg z@1sE7^! zLxx2FV-aQ%t;mg-aF7Iaz?o=a`h~ub%5SX6#2j=*7iJ%0wsb~#7gzl`N@TpTS%3=D zfwONA%(P1F9J3ef1uUCF8^#EzXPXb`W2qTt)dYvk5uF{ICCcuNlJ;y@xL2z8TfUlI zo^;=FaX$Y2wAG&|cHA@&N@X7f(Z+XlK+UqV}~WnT=_Z`fF&XJ~8l zo~1@2{o(d89`KWXJ&LqMI@|*8jC{pG*+_rK5|cWt&OFyXu1zn*9J!y2%lyuH>qj&NwJ(wy(;sJFIl8af}>T`{QS zBo$cycJ^04Y9Mt$04fe54qt1xmyu0aRGJ!oqQk9aHSUJOJRN2!-9;TC;-HYBvs225RG2C7xh@ zeRo^d>v{*C;G79lsB^k?jF>K9<2E?FKNkIN@}vXo=;*jY7~It>SS_-B5_eVzIvXJ@ z0=vil`U_rQ-l+)fV{CnexOg?B`km>|)0*$F27hrjoxZBjLIWjP--hu{3x{_qET@tR zi2qqV)NiR*KI|Z(7k}&-0icu07`tBVA{??1tR-k@_zUoTV3L8QAk4_lABaIGk&;ZD zG~G>w(4jb2_@(fbmYSCus9Oq@j7k>Wmy3xlfI~($4?E}W(kOLMdBv1cBDy0w&rpxX zm3r6#r?Fn=D5_vcc6LNMKsT7=G9=&JUPQn~ZE$0aLXm@u4X`_?W=|CW)U|px>`J_h zVR_~6+Mu_ytvU5)(Fj*@psN391$E_HJb_ykraU7rkAJ**&)w0g)fvC~c4Kttvux!u zXdzgxk|nHNOb3m8i*BI)@Is{*R45DRl+BqdRhGHeM7|PE5ez&e^`jfltV);Bfos@;nb>vsOPsL03U(*h(RqbZy8r3FXe3^kEBxsF)WU^|6{(i1Le$doKFaUm0sK-n;B z@5j4#I}yo7(@G9lTX_$g{(*7|9SnRikZmt zAlb@7Zi@Y^V#q#PS`kc}YT!3+kP_X_d4|_rq?39RgcSUMa$X5Y05r#d?s)`%D#B;u zC6fAYHeRBa;&7nSaRXVqWOEw>>~R{9ZJCKd4ErI$jZh?~GP_R`Guyk}W!7$!E<$vH zJY5JvGGiT7EfF(E=h-_gX1wn!oqaD@5{PzkdezA~fsMk5WQ?p>WDiT2HmT8Ex?*Wa ziVFBK2@Xm+qG$od629u(cM=QZj#XceL~0m^%zfDD|aoe zRN#yW1MdmHnxy3jlSqU2)V{*C>QY1xH+XmNpkx5l}8h-`w`JBd6N-b81p zI5PA~bzN*dSkBIv$Eyi6(KJ~1` z6!%~!Oh6+R7T7Xv=C?wyNtkH2a5C{D`Vx%Yc5RSb1Dy5+=n<~y+&p)P5;~1^(bpU$ zfu$k4GrOTJ42Nx>=Jm#Fh=Y)|7lI0+t>McCksRuQtn}@x3|Emv#Gz?e5d72H$U317 z3ZSlF2&|N|FavkJg;CvDDeFa7yKN*2p~T=fy9bPWM#Z22g^?>O?NLv5g3qmT;xXAu z){QcLWd?B`3+Xb17~fXwQe;gLADzg!DF=u3+}OL9w51iHr#-x@uw6Dxl84Y4eycXe zm`V$qNj?K+ZWxP~)-nj&6SD`1(yg72EZxzkKGPVyhSa69v!zTbNkSi#L_S{;nT&1? zZo_1eG4c_#`*{M!Fd0Z?jR=Wns6?u6YBq=vt~fVX-WhVJ6<9L2fVMpcb%0A;ULO#Z z!yN!wFPyf-EC{?B_UfT)>xwk`{zQrjI}F=sX(dHD)SfLnEW6m69VR0E6J>|Nzj|n; zX*_!1K0A)0bdDUWt%>U+WB)suib5qlND5Re(4q*17f0BRSf^r=6|s)?;*@)tgTc%1 zL-Z~ZmwZ?|#2iJD&qdJ%X_)<447uQAK)x1+J@8qBGRQX$q{+IHU#ugyr5Nb8XE?XT zagoGf6|r~w&|%S^?wAZyhtyU~CJ=kMJ8B`em5r3yB>HASsd;Bw?@`cz%nD1;W|%QI zcp`xl>%Vtznkjs^m_9_-_mtpCFM?nlMgs#(?N$d7JGGJy9Q&p7Sg6;yHlK7Dn<&>f zJUKOe{N%l-Ck~w;JWsEon!#O;p|dIz5|GgwWnES;)`O1MIFfVb_~fWFV{$p3W606I z>lRHwc<>BwWDuljptLw*7SP*Qg(v4PM0igDNG_ z9y}++2?GpM;g*C#nNSwul>Ol4m4Go;!UPCTkNFEwCT0VnGbl$c+JgcP_h5N0vUk@f znFiTo^XJ@%CQp5=`GF6C&+?$ zq$4zTxPp*_^A?s>#mmTB>!I}-@M9EC$NU=%KTedD?qQX7Z>NU>gXP3|plQJ-mMhTk zBJ-ydzVoerS#OYiSPB(OD<{MDIMFHvMzRo<_{W|IxGA1T9J3Rkh|a?h8|DQKhZ$CG z%iz<`2{V3ktWtJ8zGHS*A)~O*D>_zOfzWqzFHmY6qrwD?xYLXz(c=~^GOR4|`$#w1 zxqm9iCb1_{6wb!&B<*6yb)-?c`A^H(s1kvWTJRZ-&WhAd!feOZb0)G8d0cb+Cyl)$ z0zb{w$+`!I8Sl?o6%POZA z&Ew*SMzLT0IEW`uR#r{p8+d*14q3Xg-uK{plfoG#v!IP{%4=>mUgP~(rK_|j}Um+AIfJtWJsJ@-EIc@%Uu0_>P_Rn89YyRB-l28PrT| zzQzoQ)QENhLv&V03=_H;T)oJ?WZ%p5)$t|oL0_(I5+yk+2{rJMhJn*4RB(ERBWKp0 zF+0G5HZw`}TGT7@NNG&5m?Z3r9-_ylO#lf94t`Kiz?>yhdn_-(d0&&nYy%1s8T6Y3 zAY-h;Up_OpGPAY-e$84iY{5C_B>gX{WmmEP)M7C68nEW2-8S$x*66fByW2X8M*v3jbFIA}LMU;0g=;372qmVUK{}~S=8Jr|mZ!}KiA4e)&h@xqGG zpjYKyVn4BUb;7bqo19m02S_kFcEJPJQ`*cH;G`4q^1$gDc+AFQic=WC-Bj`}(Zpl* z_yZZKazzQ>P**8PwTmHrW3S21^_JepdmlEocZvV&y)%a;Vl;pyR+qI*V_gVN*tQ|c z_ks-@l<%-Lv?u~>$OMtUvTHZJ?wj{H%0G0xjF)15ukO>imm6+oOf05#2Gwe7ICM&&Hj{PpQ zglUUijSx|QdLlq@31FJk7Uvw%kt95x#hBRGWKE{2*Z^wg-G71MjZ7)GTq%Gg55zWzu1S%|nlnoKJ zMs8FsHTJq0ZOWx>*I$6ba|0rX%k!X*csfuBOEQn^d_UqS<&Rl3@R27>hs z!6^Tw_se^;KrW2b_a17C)Jw+Afzf`DO~ zH`IOz6Vh9jr=2EPj2=erpcD{6O{?bz2BzVSCmyRGOF9`#UTaMx#h$s;w2xe;t$axEYWGq zV5{dF(KJ*)w?+sywjg$UcAZJbSh*D4A`XI0Kp{i=J46l!8Og#EgP;k)J5~Dg$k*5y zEO*Ih#bJ5L>h-V-kWC?i7^MLnF^^!Sw?r$~#~W2zFsG_1)*?HwhmS&zX<4&vzpAZq zK#yEK)0$BvhSk-2rsb(mc~G~5?7*ogxXzU3;%9BFgaZFr>?584oDb|BFod&9#&Ko> zB#6zOv#ubed_Tr4Iap6EDjE{} zA3VRdc!4vh&aw}~oi|57!`95|MC(VvwireT1rMOKxY3RxlnFTymUS@VTc3JGHRFEKqL#3{bxwRD4#tjjb zDnaeyo`YOi>oPuhjeVPLhArPAsSxp-vG|u}+(;{n~H# zv*m0lbF9en4`4gXhW+4@A_dKJ{b{P#PT-gy?K`Wn78Zn6d&uw|1^J+pq^;jBMi2T# zdWIX#UUqw|Bd1q&VsiF~Q-V@ zhAj?H1av{=R)>-H3hKJJ~EjcI`m#aO7@;(H*=KBq4~ma4h9|7LG}*ovgdR@%hXTiQ(g z_g%#0KzN+J=+Nefu6@W!(c(j+ERT*UWj`pxdKtWX4~1ez6)liu6axeF2K7`3%|;aA z{SMQG&MLi`wmfnRH*|pVegqZKVp~gS6|zXHZ;i6H)@m*cd3~EQNz@w$V{v z{en%^zh}Ge`dHk+H$f^l39~OlIpEr$a^2aYil0;prt+%z9U5mBY262QIGb|2$O>de|pM9Vj{z@bPOK%dAOk_r2;=5KaNRhKe z{`oxrSnuXZ)c46A5hAYrtl{k7>w9Rnjsr~{A_y1K9I3xMkpG}gFsL74WP>>ay3wm5 zu4tDKcX52GHB3Gnmci_A)flE?;4)HFg`iQBiF~|ViqZWBtZt%c`% zNo?teKpZpM7pJ3TMde@YrI=~F?FH38-1{=HhYRXgR?mF%+2EeiU&mOE~4HKCPnGn$)q|3avML`B*+4;a|8R7KGG&L zx+uDA43$;=4;cc%F^6qs!$UCb$U4qkzAxXGYqrp%ak36f-D| z0@&orR|~aH{O~x-?Ng#IrNt@HLdJxMy4@tw(k*o)n0q>{E`_pVnRw&p^AFB$cQ8? z%fn4I&k{k*7Ui%~XtXhW>`=JfO#AT&XkIGzo%CRt*|mjE)ZFSbG3j3U)`(CRs?Upl zD$@T2e8PZU;xE2qW|Zjo5vs%GjQH<`rwd&&X_!FQIRZoC15!?z;D??t z#_013C|GwwydrU38>V71Gw>n)%~@PabF&WimtRfdh7VZZwjHd$4}}iO4Hu5EQDz7> za8P1gL!9v1LXkdXjv1fL@-9%?wwR2Iu6XUfH zw&*y72g#}u9elC0WrjIn+tJCJhePy$K=pwTti_xtZ_p&OX8os85HCLKLA~Z^iOP7;S>~Zq)R&wB3 z57bQv_3$}B;c0pcMB1(&E_dvxPRKZFmhFOe1~e?gRYx*YejE?RXM&u1wOcvhl_o%# z_-7dg&`1QN9P5<&g=M&fDU<
zUwz$6fHU!R?{IwHtTym`=kFx8Yl${_81CvKm{ zrdTwoy@4drZZ%$vmFK+PtS~--8@X(7PdK~CPEH1!O@~gGF zB$Pt~gz)R8n8^EVS%m_#gP~SlpI3|rmho!-d|19g}|(2QC2!7p`D99RqVr< zNl$-1TFVB%R#&lOY7xObw`3{_5uBGL=@fHLObuL=2xjM6hoOF%Y@lLWX%RM@(te9F zY5x$M1)R?zEr+AIS%3M|@nesozmaImfRiWgn(`H3yZVm^x>A_e^7=t}uTnlTL=QeoNxAq5+j(=bpQYm1>iHC4Afrg+x`yHeN6#3{6k{CPe3 zAC2xiq!L1^JBw?ILQ_ao&%ZL;;rV;WuGQL8P)s;LgC2zR#;l<;5kFdv)zDQry-Cc1 zt_qaJq1Yg}7mkIuYz8i=fsuIh4(;IDz=a zC#u78fl?A&I_RRc)-7sq?#oxo()%P9Ial^r6|?}o$xS0R6w4qCqujv8i_s%Z1s7K_ zgd>h>9K3_GQAy>#b+~6rQ651wiObS7t~zgh$dYuo&8MTc4{XsJ^CI+vXcS3z>e>#9 zVuCJOs)7Nq)qV!vXdE%-bcXd~BKph(8a}Y}jBxUiEpED|DDr0!zRq$qN6 zb==FxJyFa1I1|uBly=5KXfdE4KvkiV3X7s*6-IC=u!{BbqynZ3AbytMZc^Sb20~2b zVyI2oio9T3QmR=s60w;(sxx1Pb77=zQ84yZ`Udp*DWj9qNSO82DLZri9TJQHuDsU9 z%9ACpiCgwKeW!Jm;H~A5qymChX55qM&5?Rum$GOpsQh^UT?u4xQkFc595EJ38hrGJ_WGP3*ea zz!OdqU3MuaEiIwwHkK0m46%`@97Zf4-JRRgqLoZ3`&?Zr5Gz8?LNExx;;&bU2@gL5 zcCR5~PHGNA{APOBd)SM^GQ=y6tsgca+js=PH;)TJ2kg#3YQgI5>p$8Y+@DVi(pG{~<}L zayFick_*)e6O*Xi4^v;|w zKS4=Aivf%81vcOsy?VsND+v^wfC16&k@Fd z4sS<*qf_fU%mov!hq6;$%iVd@4e4G3qGpDt(i{`5>|wr9CXnAf8V5|rPzazYgu`|T z93~61T5bF*;dIaQK~)`~glnsVpvM1yg7OXY-!DPk-jiSdCr?m^wr_IJ zc;0pM_>OYdPC`n3tH%1G4b>`SK&xT%7I5-h_ZH38_u3{rV|f zk1j%^JxQhufSW)6L$1<$(&uS?ae7x6m~oSl0aKE$tC}r_526q#OiER4o(K0G461rC zHEBcp?q2(`TUnK_A0 zO)93U@S4q$`J^!m>i$nDyaJtN9`#ZcwRDOq$}JfBp5Z?kfm$;+ z)07rG6_jml&!bA*%LV>mmi1EL=`Ntt}&rNc2*EdN`5Ha`lSsk5pvf&HwEC zKsd34rXYN~vSn-BWv|LU_6!yx!*$g{ROEN`)8h2Uw#`r2TD#CdV9&GGH*w4tn8ylHCkt z2EE1$Gk`mt>#^fvkDu%s-~j3%gDgMy9~2cF4!oIyz3h;vGeAvCGb$^9QALH%SVJB0 z8G3=8!6h6Vh$?fuZr4x=gc!*KepF#FXtt=khA;sonx=)5)$9{Th%bsno+9b>I)b@HRkU z6H|J7g7^aBKZBeyFwjr$9RaLSNYR9~_Qn42N#bJz14?MDU91F~2Ih5|MdLd;g^JN> z)SogyRZ4?$2(;jK3zC6HR)TF>1+fPq2vLRGCww29LA}#4iV4tUPl?H4vtnkoP3Zh9 zDrh)!O%wBCl@zfE^AW+C3Tq}sWc_ewsWz6VdI47?mJJzPPiQeA!exj?)$#eMMWLkT z#X#7mqkQEG64*U!FiJt?@&-bcs7XKAUE)TGuv?DuE1PC259#_|j?EFE;(g-c)$JA# z0ILJ*FcVWki~2!#dT>>-3UDwR9E;M*%@9Q(v)N=7#^wFjmD%l5oecMT_eO|LM;M8+ z#{%@qj#YYppZEW)VSe=3udX@Ikj)ntD$<0{;R;%Fgs&O(wWo)6Zx3fyH+24fvN zOOXG65Otr8n8Q|LHLog&6IP-PDA-fHYT_(K#)9&Ta&5TsJQM6e{7?zZKsj+^kO!I@ z#{RperTo

#`$Bk`Mexl>;|x>@7vIdnMg}yhCOREQ*i45H+;sHWE86cp_J!Lsxod z$LCd*$+SJ0`%UM@m^$8*-<)Up{o9|D;S0eXxVEwm=M8@iY@rHLLOCVzxOTIJJG3Y@ zVe?ovHM@r@iexEABo}HiGQo}ub=^11DCV~HX-Fy@4bC4?gyCKs$sT;`C?XZiDjxoU zD;9&lzWue^zfV_q?^<$&Yj#2`M7qHj9**OVR=rKOOPiZUF6AhH`$oyv(MyO^r=NW6 zp!zz34xu|+O-cHBI8$Hn?Qz|6xPN_`Ou*-s6%?inSMuBq^%2?k(jDcg7S%f;{BV8?>mG;fcrX=T+ zJ^Ajuw_@hDEGFmS@so-OnX)Z{GX+|V<^_3jg*j7SF4OMq?n7s`qU$cZH%O6UWbb_> zn7w1*8f18B3;1RZEs6erIvra1$AD>M-YUt5qE&u&4i=oxsg z&hcj#k~3_sBTFXHhPyrgBz-70MjSHOw?x09{OBBN@>g@#yjy5W6lO%(K+d#-v5wDtk{)VjrjZn|=U9TSMwExc_T;uZ!*F^*x+P&di74_qky zmyTo*pNOO3YYQAM1tk3Gk6yUHC%-k{F)=0kjs=cRxbY6jYr~BnKWOi;^iiYt=<_0} zJV*jny}Mi;Kkmb^sQ3cx1m-O*>@r%XvuXS>q_z$WJp9}%OyKRLtQe1Kskdg-vPlQo zs6q-cm0W)4P9i+BUVO+B`eIMhLpl!p0Lbd5DV}H}e>hT-ZDosHU)@c}Yuj ze72>$?~sXZ{G$DW2f4PJgF95}keJctMgx@uH$|4oh=-Wyl)8ewkjsxaZvh7=5(Muq zDco?TGCjqX=;E`GxkJR`Me3_!N5&S!wO%S81yr5}nG8YHIsy|1<%o&J=bQB=)c+T{p%k!IPW;K-lONMvoTqRneOT4EJo+6)mXpt(e>T> z!~cnsP<((v@zlZ5p$s?$bI<)t7wxsL6koUhK6d`~77Be$Hni%Zcx%OaeaFhN!R?_- z{!{H$=(#-9^kpN+A??-=8ruGB|5>U5k;ad);0N9Lwb@u;?w8;5mgwlY_ZPoqOZQ8= zE^HGziwiIRo-qDH*;vzWqx^3<%8rb9xftjPX%fCG>XdPFBXw$pCDJ`Ry171^s0?rc zLuBlI=HzewmJzRJ-9bN>PnCZ*8#NB1%Rx{pKdzoOoE{=pfvrxBa3|k1d3_@H@BYI< zeUsgC^j7=tg?s;vk^7Hk!vueXZVjFdR|%?3-QL6E+3y|Q&K-ZLb$9#Uc&+{S%VQt4 zZtLt%alF%}Nw!vQ)2|zXp&Hs%aDh7YBD9mT%i5neW_wgOd2OMi>-x(d|8$AtEOs6F zSN5v>KaD0_T-W>;0w?>;PydR2Q~$YJ4CtG(5#gc=^8PoU{H2mDrhXq@4j>!*i!5b) z-xJo~+Wlkp&7n`X{);-UePOHEah*P?uyvKq+o_AS?wi}M&xT$ZnQC7CS=*Od$YfoWy!6w9`RzRNv4(K)77OSf4nFE>Xo%Yaj?0IV~;*U?Zx`U@#!cl z)K4tUUue#vkp#VYZ|`(RqZJT7H#`~yIHvhPWU`fLYjc3v?NF@{1E^FYG@)QQ1~ zN8In-_%V<(xC#4e%on(;y;)IZX6`X7Li8Y-zvURQpv56x(DFKbr%vWgKF9=&ne>;Z7v|Nlltio1rwh6dCkiCaxU+iTWQr{FZtp z^TPe=)q84oPN^QAhqq@7R}kml3`(`ycl)r6B{D*QpGPw1!WmgwZ$dw~Db|gUmW@4I zp{hm@GIXjizZcUn!=wdSqgLzcddp@N0;8>n=}IZLiygfVTlfWwD&r(Lf+As&XI$R3 z*lHAmC}-`EW^?1!6I$7he|B)4G$*VC&w4e6Pg33j1)!a0W@P}#@^-0bX%@XA|6EW0?JEaIiFuftDK+WWzWbcB{H5WZ4lS%vuvkbo8z{j-#^IPu`8~zx+pBeOeUfg>5%>tCI*U z+5K7I#jAo#_uF)=LKcB>=l*HLhrjd46V>33zSbp2?CKmkk2DCR;5eFX!zrT=v}Y*b zPdyC&rWv3DK z2}r(a$FyI76C|7V#{~@NxG|{1u2V0O72|`EHnbR+z$$KIQ8-B09k3wxgvWntaRLLJ zgWE?eiMNlZHM8Xp{r7^OXe}vu^v3noB*3A}5zJUEs5=S?gMD0D!1gbAX0Oa9>Eu!hH*M~_;r?lp4ugJf9<=}q9 zQ`qJqj_Z-%cuRGw58z@HZq6u}t8{&OxFMypgDnYC3K5kidMlyVR>pj-7pVo1s~a{K z|0da5n>7)6$7b)?lC~G;+BZ`ZOn)w&9X{ZBpj^>o;Z@M6QuVZnRUah0pWYsKE;BhB z-!BeV=N%)z9zOf49g$x^V%+wRg zlqvSDFhXFz4WRq;K9$qD#l7$fM%;Nc-&)i~NRDM7Rl*=9c#BWh-tbCzAr4|8u)LB= zgdGVYk=yyf5G=T1GkJGj;wf|&wqtjH%E{n1F0U=Bu)nk|oZo4$#j(WPloCe}1aXG< zRX5S43I5jqI)WFIEdeXC$qhtd3l<7k1+BymAyq5Z`Zd#i>Xx-?I|=qO%)*3f*0;W> z?klpZnB8Prk)E>+V!}X&@WEnk+`}d)RA4vmVL{PbQ8jd25y2@->uwWm$HoDHWdG|iWxo4t6PYawKv<24Q!ms zA&XwNflqY@`3fwFz`P=V{T2E5uIwYa$D)-3-+Qe2WR>s5i0kj0?^(eJjZ9|!%$i14 z{_5(|BYqsS&Yg)G+8ZSNlJoup;FZvDV~jl=_~meAF-C~XwJiFP|F^w&fwQZu@4eR! zd&od$(xC(!H0TC`OmMQ8V6Y)3n#qk!oxqR`w*sBLGqWcdnH#fbAkzaiwqUUbFO*ur zqZV4V;H6?ki&a`^<)9TUo@1>Sw9?`!?W+~u>Zw)i`+k4_|MRT1_RJ&&rJuLw^U9}n zXZBv}x%{91{q|7MV^%+mF{ANCIq9K_bBHin{#xJ+itrgIGt`@xM62pQ36Y#LEQWh( zM+zMyM??#Ov*m(hAwaF)&f#z~lo5lyJEwOK*-nS^-z1qVS=d*jhPql+mdg{e*1qL) zs^9N3&skG~l2X>*a#X3bboKVQt|C3ob0e4CQ*sy^N5rG7FK3{>;0%0ewP}36A!NIx z2vO)iqoy(xSD0W4IZ>v?1O?8NWOGVP;ON4*#1fSXApP00lfr$)=2Zjm@+;XrNCDm# zN=>czhw|`4|NZ!+JQjf#yEg&7P|cZE$q*D02AVQPXSZ9E^i{coLa>mT1qoR(?Xc6H zG%Gwsc7-`>Q(~s}QpgR{%Hm7hq@MR@iX$j@ankStJJEYmiyz2R3Einfj>`Nc*1X}+ zKxO_9qZ8G1`@H>N6DY%Oo@@L+B*Sk0)T0wN^}JAmP3;xZ1rGHSCijK2zev5)@|?!` zGf!nHji%HEx3%LhT|CjY0v3QhTd5?#gZS9@T5{7L4i%hQhan6wz{IWjt^$K1R)eyx z2GD%e8ZMXu%@pY09E`Hw_Si#x^@;szo}X+XaD8KDgQCTe{As;F!eHo(JeVeRI39}R z0XpE~QU%9Q#ZW{c5HQuYi#>^2YK;oW)iWvyc~A5nps7O;0qXZE!p>hTU3cs$$$DLv zFl?j^zb-ZZxnfKH>pVt#sK97F1fcs8@Z|3^`w>7y9)y}zbb-L z-X3oUrjdRFNYS}sr1@(xOPo$HklcoE9*XMk;`Y2R*lS(Mv0t+F&S&**j9i|-&b0@N zG5lK(%kXU_TpA>H&-F@L2U`kcyt5vl0WQw_uWUx1m<%$|U8%*Pip<9_-K0x1xJtJj zRccwV3W;*OYl}0Py}zwt1O&P5l-`nb-n}w=>wN2 z5^HgXsFugRIO!M|rPr4IZ>#;UglzX4I6L#3@uN_}95gamV#=2LIPmcoZon4HhASU1 zE0IfYM_+1*IJK-m%7*EU&qwp0z4cw(zCqL%h=@P zl_aiYYxOPQ%d@30s-|~WEi%W<%SzAw+9MS-%+eKdwf*Pha{piR|8DTuXl|G`tQ{Q+TI;6x0bmNBQ)3&cT~SGLsiOOhr9>zt z%2KW5@6ka*CL}kZGiCZcFEC6aUC%T-#Sf<&@D}d8SrHS?_*v?UkY5K$eHu8Td3?_O zTm>k^Y(k+>b}=1a;_0eDevs$v~d(MsHRzwF;jqE!}+VsmXyIp(qYl z&eix!r%i3^XY2LS5q|4jVHK}30!lE`mG389W^t%73s>+@gRyp)3kt7%%}XZ%G5Po- zvz|FNjE7`a$ya9W8W0a|<$L9D)qT!nplbYZ%;T=%bZ|uDD43lh`ctosSE^R==FSa` znzx2_a3v?GmHnnrC_}k|fS7LZjKRH=V`fVy$y>xvVS0!qm$wSjHp0);Cs{CDCU@-7 z*cCgoJ1>iu!Ll%vlCY>Wsm?Dg$Dc^cEm}qFNiL%bYIP+}$VcFgim*wpr{GE0xY|>sTjJNTX;_lXm6_L7h%E0m z(CKAWL+bcW^$ITgea2G_%LeBz$1E*Xed{dp7A@t~LCdfr)l83)bRwfu@0ysGhc(oF zhi?t@E$P#mh3zmDb@i2Z@?T8^#-Y@X(Qe+biC*s5?2`f?sYrp4INiKp1J$=Mo;ZgN zI%n2Ulp-(&G8gS(;(Xu z>l3PIo*qx8zP4UJ3)dmNr`q-1Y<_=Qo-ts_r4!c>JjX4L@_~*6VJK{6kaK-YalG{M z!)&gU+yzyx99Jtp&zfhSVO!qnKonZ-G-Bo_c_#;*r?NX~<7;RbjB}PLO)st5m-MBx z8)Xfr4u)De?5G7W*5z1NQML=C7W2y-1o&_)jFxw7LkoeRQIZzmrL`XN#zQDlhRQh_ zHD+}l7MdnTr*32-aO=%{P5pFMt@AN6X_6!KsHk1j%(l%XCA~}vmU}cUxaaayG|*7M z3M3u3P=PqMb8n=%&O@-1QmFCe5+J#M(*FP_9G%CtdI^BEfBq5a+|AMS5sqlp41H#; zC!2DWA`AlGCbM7^3DXoBtM1KsK|o{<%4|VHka_rPr@UYRRjCYP^>4YaPP-tGiyW{v z%9cuyor*#w95A)6+yGZN5nI?blLw`*bHlp`T57Xz9uJ{4R_A<_9=$dbikiw0Dd;Sa z9hJwNqqKg2t0V`6)OXRAM)>E;4eu>bBa${R6PXLsb5n#1r)yJ`;3E%o7euCp<1iiw zcFBeGXXVaTxThpmlFY)RV$=C*mBJYn!69tU&KlWC#Ne2nLO8_=SkO=fNR8`7 zuf`5tkMbFnL>0iEZh{Qz(*yL*qREy?EpCs~fB!4C%c26^ep!H7mR08}azR55M;Gyr zb}MM2fxBTf=6s1bsE}z@UdWPb>j4uBjNEsh@p9d1WXgQ60ZQG0Oxj#MNp?|fSYqAS zy4+@{5YB=#eZevk1!C^&972zitriq*F?(qu5Fa&_s0|XY1ucbmonvLbk-%WBr+d_I z&dX3rGPAYGUAALe{}7K^d}gTOcZV~9vwBiT3KMMH8238pYxEhBJEo}0$t0&!O+J>! zOt+8cfZUP+U=P+LwdNhz7I5ScZx~+?-p7%o-l|d@qx=@!Ne4Eym{YRURbmY?KCmK; z+57#ZhcUr#BsvN4`>lOuvPdwyDir3}?!z>j^0$BW_*D3=-KI|im*4H$e4N>6->HNYD(}+~e zFP9k%2hGtGX7px8Gb`Uz%C+`w#*0wJc$wrCzg7f&n~r6r4Y=$!)(_4ngv^TvF$2h<>FE62G`MXH#ps4nL3LB@EU)Nl_RSH zi#DKwyxzOin~!Pj!pfueU-ouZ!Jnd7kNs17h3rZn}+^#TI#*+5#!w6UW@R zkx-0G`oXX{@^Gw?FRrE9!7Lb)yevu7-q*f$oLjwsZzWO??FnI#?oc&s3h@jVoAW`G zlsO?IL>eGFA2uk@s+g9s~^JvN>*KbR5pWGpbWOq5LOz;b)6vgZaP|JI!6?dAn zlt}F5onY5ts}L4~FQ|Qq85L?35?=#z?D9@ikd>3o5Fm-UBkR+s7}*k{TcG^@@S_ns z@54ltPca-kX)vjfZX;b?uWw~YZJ_G`ZD5!UFp00uk|o3QX#xY>D_c~iMwPd?q1I%o z>_zos4R#0@yZA=bblL4jDf`f%`_|La8_K1VmX_BuM5gjJ9z6D#6Hh)WR!#l$I}g1T zEjYRJLvQ_Ceg0N&`m&?=JpJt(Z_(#bpZMGl^ttu^7fgsbzu?^2f70iMU%K$R7Cv`A zT3w~PabLe-?6dm(=sz9$P3jDjfBTic8*kqd@i4F`cm7(;^;`5ld{M>(; z;Pc>v-~Hh)^SSR+$Nl|{d|vRUXTRxRPUiF8r?3CiRz7drzo~yepGzM9pm-1OJ&ck=l&v&VktRUFJez9GGQ2?z7%pSf+~ zvwVK&n^#@?K@RA>FL~pO-p2ub9=deRMeRxQe|_L9H+_i% z`j@wU^}Vm-fd2By?N`@P)L-=C>Q%o?+U+s#IqpwB!vUT2!za$Ho(TSI+*ExfH6g$8 zZ?FI4RWIT^zdZC%aw>Rq*BOuh?-zp?)Bp6~;7d5aPd_}mt2;@)@^@$L_|vnKx;K-O_J+>Z}ovwe}O{V=YQeSU*7|MJhf!s*Dp(w_Is~BYWql%{6V?& z^)FtPB-g$3!>u3tl_Ys#`4_J4ctetGJn6~drSC|RZ=CAMnhi^m!N*EZ{MErF$x!1fzcO?G zlH`KVzo$LzI4XJQAKrD~+Xs$HYWLs#FMsrzqmn;8{f0-lO=Dx>9OPg zxi$I0->uko#s5Ag`Px%!|M=gYw=7Bj_|eH?!*(4KRoAmu3vrK&n1uD_V?xYp7#9YkB|S} z`(FBjlad#od&9#AM=HsUe|qSZYmZxW@vZ!-z0}V`}C{cF#Y}H%`2*F-}dGer6=z>{>wYQ z_R>=2t!MxC1NU51>VNcyfAE3pt}A`xxLZGV?tAYnbwBh^&-?htzErAA?0Vf>&so0Y z_8+|Jr0Iuxm)w8cRZ}1N*_)Oe`i@t$vv zeemey(u-bq!>X&69y;*e_3!$lU9E@i_}h2x`PhbIlKbBG#G%Kx9h;mneNUxteA%I= z?mzyem*3l#+`j2EkN#cf@Q~?NOKXym%3t2_!uB+|zT?C_d$zqax&47R{l)bi=Oi!wz=~TQzTuV0BcEM8 za^^>OCU1Z2ZL7ZW(esi^9{#ho!QZ(!sT@0d@Q1IjCEXwY_!l3)Wh|+F=Jy|c=hqG< z_rCo8t(X1R*CqG9?$p}wgKtT`|J2~4x7_=lr1I*U@BiX&e=PaZcmDQG_rLXX$$>Th z?R)9Je$xs>`JeYcVs`o%V$F?Pq?NMhkhXOcezX#lLJ386(4EBjg{Z^X)~f<8SKGpK z$V1#thct89Y_1%&>_NY=ni~pBWZ2hhGExpVy-lm8VWY#C?))X+ zfYxQ+Oct-NPzr)%)i3s>&33OIUfd*9RhDNgWpi5w%Ecb+{DQ6^MUGwpDx6>)x^cm>p9C)7ta&g{lubo!a$yfP>f@tp9d3ggZCd;!VXokK zQxXg?WFEOVYz8fl=WL?2*z0oMxu!i;XOa3jC{vca5HCm)q@-_$b3)g`qElfV*1CD@ z(&RwpRCQwDFr=CpoaMjM)eKoAFMi=lsuFVi+@-rwA~U2`z~;`Z*%&@D{x%OW8t7{9g4!j@9coZ1>`~t4|8d6 zB-6{TBv*Ld6_w4K$<)rjyrOc(Bj)fG!VKE$Ytr%B!RBXpQ`snjKHj_Pl>|bdjsZ46 z2px3DuFI^RN$7U0aps8Hw4E8Zx>iJ}x(93jDwE4%OkNNQ<^Vy3qamSLxTccl{8K@3dg zRIq@;;B`k>f>lols4rX38WcCtv1R~vs>v=4z;+-XJ963MN~}YVTL1~aU!69_b|=a{ z4D+xf{XXw_fmr4zJ1ea}v-O?T-TkZ=$Ql2*3$$)iB;CM^VJ_Kn*QIBz-;hR-Hi63M z3(C?B>6Pkb>$)mubyZ&4RY}wIitKpB=#5hb_k6da|LdG6b<60JI$2$u!%BA(Kxk3B8fbe?*l+aCH!{AiTsf6?ECuizJmd8!%bVhtF$QJp6&^Dg9^3Zg0) z=JVCO$aa-eLQ&x8#5RJ4Gxfs_wd(e4C>x+yedt*eaV#a1nx+AI3o+u%4)x44$9Wq( zMctkThZBLt&Zr<*jd_qoerh4>MS|%@zO##oMDOt1QyR2Zh|leZRh{BNNhvyEdKXZ3 zLI(WMe$ela2{ULq30)3KH(DAahnj(mK??yUa>oOGNXLkWP3*}fQ20T*j+zY0>1>B( z$sVnvi={qJWXEb#2ui_$Ws5SOy;qe-W@tB6h5&iyK-?bQ7M}TwDvQwMp>eP;0kx5@ z=Vf1p?!fbAj)3$l#1^i@Sr}lrS0UGZ5*I<2@bJB24>%#MHWczyIU|ZlgP3R2y6|af zmA*X0;J>pxFO0Q*=wPi5o~>zN<6HYhI~t1YbW+_6b|gs^~ZNOo_n zmL%`O!^FW2fV<-XauWRha}F{ESPv+!Z{Eg0NRGnDEMY}SF`jZuA!P$n5Z4qXtBpl`8H)3+zO68qR^InB?uOl*WlXO0?x=u z_<8x*wor0p9Tvh-r^zG5t`2*9cJ7c95g&1(tjyF$be$~Xoetz~z``^?mLrf-9O+&f z#(aStUt^u+1Lp73{eeMrg|2&4gkL4nb*q8v95F(+B&`fO2l^P{^HteY-a=FV7?J*V#~&2LkLE@o|lkZ zghymzMYt5U^<%+h6Y)p`ikz+-f~AgpPp~<$R5_RIHLh8LopRAG2O}2iCsWy>Th{mM z_eFk2c@Vi9#njf&2p~UH%t76sXS-Hs4@H32hB04NpL1FipDMfqmvZi%4(A9lZ{0uE z<|{G9&MFStmw}C!XWtn*Y9)3myYiW{mq;YV+nGEoXLx5HL3jbY7l9w%f25-PIGDHO zuo-@tj4(lE;PE>)fKRxEt8b6=9zx_cR-dJQTZEv4Jd{T(J)o`qj;Y(66|T{62LzBx zD}%4eq~{)=?1m6Huf?S-lqtGw(5#pc1EyauG9r_nifgKm8dhHfl}6-sy_xCZ_s8j6 z;6ybXeJkYHSZixGXSwTK$~u#Sdy#!+kb5>^h%MX3=%$413WC5}6nucR9Ywv!n)1nA z4g^|`%NB^(9|{g7TP)M7&k#moEb@}erIVMo&TH;HF*!BXC|_@qXr9u*352f7fPI(A zSJdUkz+@;GZ7m<$eNwXw)4_p^dTcFePm!6prD-Y%lA@|~a3#`7M(}smIXP-{cn0t} zU}HvQ0W{%{c)k`pWNj8aj8;@YnFVuSTk*-saWsymB3qSFnqQ*+)9v!5)0T=PB*?* zM?hkUnD=>NN6;wA)uppVWgXUu(kA?}8+2a-rRJS~6;jAfj5?>QNwx@5ZAjr}C`;t? zRomNxC>=B%RUmfc?Y0?9;ZYW(Z*8AN^GPVQE3R}?ojD43LUPvhW>#<78f`_<^3Lyw z4*0s@Y{Jpl%Ny6F_+a+R8G(97n!o&#VF+tLiYlbx)sO_>2p@P)-xwZw2E{qur#Y5j zHVv^8Y6#JowZEp*gZUX=Eqk3u$QJ4WMSA?)H|%OOm^dow7Lt6QB0C0 zh>K;~KaM7`H`DRB#wuIPIiKN78mwZQ5<*~TTa{lM2ddmusF=eAYounWBUUV6835Kj180t$UT`)D zz-TitB=g7B0%GDbKm~Wszs)l#<+k(}vpm~37ZY&Eqgc4S>J`QflqeEXoS@yT+egUI zs9jAk*OCmdr!K4Z%kst|pPU#R9UkLY)rH1cF`R^JXYprfgODJGd`ORx<5-G4pwW36 z%L%FV%nU2Y8rfV{4amC(yeAQCCTA(#k-*mYvzB120+oP~Y3a0OoynGd0u#o28s}THE@>{wSu5s@*kGgpio1@u z=uaz)eX-=W@q#hu%q*sAJ}_mu4Th91@_pgY(q`dBc4W3ff3Lfs3tB0F$)VtYWR;Yj zjs;yq{6^Xj=K0j@G}%AK`WV<$BK=zRrBlwb=sHr$R6}zXbGlHbTKu!E+YKWBlE!Gu zK2K2j$p8Jj4;=aRBmY|B=lK8rq_PNLoc67MQ}|!4MgJcz3Q`6oxf&dYwWF~eXF6-- zw=~UG55{yuKW=Ye>wBjw+}dSihjS;7e?4y$@MK~?DU9x01~d3SU5D=RuI3rTvpDW# z5eO3`V|-f9NtL${b08=549m9`R;UlYVicCgDw?(NnJL6XY7$h&J57GuK72q@sB?F1FON4iW{|N0kGMW5IHF5KuGr6Xn9!2VR!uM2I;YO# zKn*ttm!}WSZ4+ZDse`XN9Ku75b86Lf0y2!_a=jTw(mv#DG5^&*8`7rasW`54tPu9P zM*vso%h)rZGBw;&=UusgL#Uu!ph`;*ko!S&5J%xNe-lZlKm2iHYX&opKWI?F z!B{=tdU$N=T=NRV67e7_EphZGfo&gl7`{Jcaw5yUT8U21AW_JV3n$_3VoMl+>OVnl zx6BVar2VrjjEYZ5_>s!aJw3a3U_8e6d-{7rYC+D5!eH<~9Wp1S7xhnDI=T%4R$17l zs{$sGS@tuVHXKU3&!5;PIL}`rca872*e0TigQhAX+T9-J}m@1HE z5zd0D(WcXWtE^fG|O!h#JfTHGW^=mh??Ro-P?utj`7yJ}DCHVN#bQZ(j==}#C^ z6vmcB)1L}_vYeRtdl2!HGQ%G0B7mYvnc=$b?zQ}Xw`#3Y zxgDuCqPu?Ojd$lfxVEnQ%5+nIHg&LWMwh8SC7}Y`i9O+N5jK$B6KtLo(1T^Wj-c&o zW^DG1&tkAS%FzfrIl=iwzA%(`syf^!V}PL&_%pslmC; zgC~^TBWV~YdDKtbK*PBxCK9AILUs~I^py0dP!{&7imEbj=1!0DYjrQ488{Qh9@dS* z{%jU*q%pELdmN;rr=z@OxKvQw4HN8FEdd7NF;lt5)q_C9tRGl2q-f@R5ee5eAz|_* zNAn!$F-8Mg)EO9@atufRC*4D2jdiy1aRSO`%p;9#t&Tv8pIHN@weZy(o8eJvB49XB zZPMG6eleIoI0(8AYM<4#zdyrs^C|{?>h&CS$E6^;LYk7ZM*Z;d>>_1Q()0b{OzuSV zuvRu)ED;ZK!Ejrl_0h&Xg)?`T30gX4u`OKsZ@>dPiZr<{u#+6lImHwJ70wOv%c;a% z#zrMa#Ppy`?j>h_rpX1d^4*S4CT=24Wf7Ig@#LeSE0UHiErna%L)nabTCCr{OneVA zOi#Kdrw$ibJ=t3cbbKCy1QZ3f0cxD0+Jg&^3Mk@6r?a)dbrk@_(h;*$;R~)WM3$9( z)hxTmC8lvFoMv{VW?(AwrD~-!{9uhU;vGY5QDwtYz!1a-8DUKdeyE$M@c_{a8m}}W zn;zogGVZNm>k&7tr-ezm#n95;-w1&e zq;__G4xgM(3QQ$Ue&h&es|Ekf24n`Qa&B~q-LVcM=FlufzzL^_Q&CU>+e49>w5o#q ziDVq(762<_rncxaJts>;W|GZ^lX9Bd6Tn;|57M$vZn;g| z;~s2VJoj#`0bNi=R(}6QJJld!t$C<&Gq~o_hAp0l6SM@*g(dHf#QVIi>}}Gy-LsQLCgj9 z^@A*`O@ji8YT79vxu#S~#8KPMb}KVO1!;ESj=d%)L1uhZG=ytFE=P6zQJGJZCo0=y zcuVcgeM@pT#(B3fzr4s6jbKY~4pQU*JAM=%>Kmnee2&f`!Hl^}Q1AxEVdKCwJRRW`=%lu%{qw15uSCYY@|MXj?%HoXEKmiLp>y_TR@Ar^t6J^B>=H1Q`mTl5@l zXHi44wQ)28ANh@*gXJrhtKje4k`FDTBBZUCJ6q&hv4sONEz)t(wdDM7Eq0tPUR)J| zBiFp-4z}#D5MFYScQK}@3l?j!7HfmR%NXN6%LG)77G(lK5HOEI?i;tNS%4GwZExKz z;<1r1D}xe=-&A^~C8U7@!6A;`k5=x7)sM#(EG{MYfw3#^AoP%y=8AH$l6~mhgi}vHn&PhMpu4Fz_$gVKrundn}Mn{L49)-IJR{+NT117HZWh7Kb z1rlcD#loE;dyS~g^QvxEm4 z0RLB1)g&EeC<;`JNL?2d#6tsAD=wZiSG*$JTAj47krCsW3!XJC2cUxmSz|Uo(umvI zTZUJfVyF&@!nm6E{rMh%(bi?hxm)up?3 zT5i%d$ooPEXy8+%7PPHdM7JxRghIzuf2tCYgK(`w0LxC#7pM&@V|IYehlkudnw?oe zO#2-wdd1hNAqS{uM^s$1+Iw(Z1*i7@Ma2v{C zZH6k)92WCcm<2|ikLq@RDqc$Wsmt9vUhQ}`6MhQGAHx(yKQ=j z?#vOl(=q|D8|@bEJdX?0*^jNAm(8224aL*Srl3jdXbqSD^p%iuRK5ZKK50M_xI}ttftVC|H^|&MLA;^?>%Vg(h*pA>6EL#$gQn;1pb&(}Xjl z4CBL_Ld%AgBWQp-Xu$t)28Ou^gO`lycM?-2s0DHapKX@rz2+N| z>O&@M;@;z$Oqf`NR|_>t;(`||w@~jE@bNzna%>66u`PfRpOrL(whNp;N6kJvEzt*v zrz5ZFKqQp>Or_PtLx~WP9%^jJ&nQi9dImCxCBe5CI4mtJN#2zK;2D>cSz9J;!p!gu zOHWkfPbV#o$GTAGTt;XgIlFN&`$V>EnLVN^Q;ilf8uTrOj52~JpV@va_KelxZc#MO z4w*LP6MQ?e^7v6;ifCA1n88sZLn2gUsT`>o5JgZpwEEdv<6OTX&+URwGfl_smH2?k zB(X6D6-`)lj3j8<*5ZVihnL<}bb%GA{ZA-afzT3XVc=AS5wT2gV!tyaugg-)J3AV9 zBentivpOO9;mu#}Y}B5J;$MCUrCac^u5o zI!Md*E(d)jcX(J>%yLkLm&`EVTtWyoTRU+LX=gqUz-5ljvU%QIxyWObnZczsyP+dy zC4IoIJv3Pz_XDiZOg#K69**nvvTC!kp*$2;(roQvmV%+X_#tZb!6YkY&dD+IeBv=9Nv!e(|{QggcyRVJkwT!0Ks zJUO{4$wI*ehud4Uyi*l$%G(?rXJJHW?Y_U@Ru)Fe5TNN5cx9eubDg3J@y?4uNk*F;9_t$X&8^mN+Fi z8hp6hJmI61e0~{eA@JDvd&XxtbESk}N0Hd==&IeiUKEHc z^`Oj~uFBS~%C64cT#%#uJJ9n99Gcba_bOH1z7&0Bh4p&P_^VC;enuiYNx}`*kgkfmJKrLn$Lgjx9E)Q{J^_cfYc#aTWTDW=WvO zqYHTIu3iA{%9N#@*+htzhIB9;dRCUNlHuGPy?KEsdRX#}2bacSV1bEhdL~ z#By#O{;n1Hoto?_Lw4MJbV$mAPK!ds6keBcDgwaTj#naM3d@^pm=E{NfdJ+#elD~% z^6++uRv0ds=P%b(EOX825R7Y~RIKxouF9ZlrYPlQz%tC2fHel02*mh_{FNg6<-0j zX9H=s%V{G;EN*eo9RVmg_zcL~#z;(UhFu^sQi@gqv>uypK8X$KwFNZhhbud3KXn~3 z``n(5fk;OT7!%qhOieVjAM5tQCb=H4jgwsyf99MUlUyGqLN(<&7fnSbg(kK(ms*6Qs_vWd zD4OJy`VI$Dr4jdNgS)fQys@%2Zlvph*$#uk=+6Fte8`h50XFTneL1BCH2DV@6@eOC zZagRp_&l=}&lXqg*_F@~lS&xH@qYXT8;=*RXESZm=kcjMnuad3fT?x;@DB zWILF4NaR^MH7Yn(G=3?q%DE%J{N^z-&8z_4z`q6!nz5%r*$aq#`;{`eh&1jg_ zyiV9$$np_J`2%uBRC_IVU7I$LMa)8>F>mVV#6faZoX-T{8?&!=_I6c3uyl9Rq)l5o z?3_D(+&TNZDm$37q&ZnKTq@ud78B8Bub&@=A6YB(fP3;S%-cbFzy}ByoP!7&$~xbq zrnl@k61pXQ1sd9>%nlqC66V*nd>d?ReSc+d@XP5i1lmkr&Q2$+O#z4O1UJedtmuvH zW@4?IAaGF)K~$e3iN!mStQPD{95%RncNJE-eH3lo7df}&dn|G#_Ui5$MgjjXrjn^0 zGHB$NW)0>O2D53|tR_fW1=&ATNKQ^{#02L-u^BnTq4!)@t<5}c&pM_y*<@=K4FYqPW*I&hcvxi%b%yq(u}^n+`vrVFDHyO${3!U-AAQ?JlWN- zD^gZ%DtD=+13PNd6jn55L>HNfpJn?)&N@i0J+X(f*@P{@KN`)exR6o6rk&Uclc^Qw zl@qL^#laN51D6{2b1D1Mdi%TNc6lKvK^#d zD262E8eZ6L?~7loS0KNj$bDh5X7@-!58-s4j}a9Y*Lwcd>0peT!?PlTXI6% ziJ*~c0W=nVA5(|fA!>Zc!Ov33wN0I#EvX?d50Ra)rbfDbE0!Gk#rYHSCOC-+THj8q z>O%H;T(E{TDIF$BZ-Pbw!sB@n?i+j7bFordoHSGu_zqA-b-BGZ5Tk_dAHzSCsb`}T zW`Z0x^0Eav(akr@Po6~N=C2`uZKl}| z8K~RlNWZTbvP7)q-LijCN`zkU1!KuC;=2!Miew72dJ5X@vyXLyhqTFnHY{4F+g;{3^*ErCjXQhn#ymMW;bRI@ zd9rE&51_7Lig72?H5<+&n|LQ#tzyM$+%dPrgG*HtrRMUtq}NR6DZQnow0mi*)!^k- z!X5Aa!V}`f;Xf`n9RN%LI-+LKlTf8mDy$YQPb!}$GG=#924)agOn?k2YsQ-p3K3i} zB4Mq zvX8nGzshuONe{TR<%Eb!INj>xYVmfQBV)#$n1wLn~8X^jFc@_Ps>K38&^<5Nh( z30ZSW=H)SIAg~Vgh~%Hrq>m4eP03$6S z1GlU`1!Xw-;Jxi+m1ZW~LDR-rRwiA0cy{~o~Scws?goi*Ew0j06}$jsU)zlqjt1?k!>)?#JO_E{ek zUPnTqg|kf+KKZ8k%9=s2`hc87u8QcX#|bm6wZ#a|F3*BVpyDcJe8$(M(krRNdUV8- z_ob)FqanwMBpyOjeyt>-$3l=&%cLfPHunXjNlUl2lrDh77+yG9;M<=4*`)laGo`G6 zEJ#@er?N;#th4ugMhQ~dh}lqFOoW7FsE*}H*)QqL-OOPq78LRwjp-MW3^GegJKD}o z$n*B31_(X;t7Aj>mpPk>KF0<~#g-Md@Gz^Vbf233wRT z8(VXy$-dEHq9D+DR=uDbK9ENnD&$b@Tf4>#yhgg}V*gsIMaOQWL0jNU;c?2E$vV!& zKp36oI{v;)WWzh`emf{BC=1bbv*8})Z|td^3|XFSIT z(p@QfsH1~Sd{o&>+jb?Zw@pu8Gdwm~n<(Y~>{zi=Hzv7edWF>M1I7v@@bM5wbkxO2 z*qP_muh~_**}!paEzypH7D&c6TL_6{{b)csA$=N9fsPY69Wws7Wl8xcT-TcLw0PEjHbmzc z`%Z~tpR%T^+jF)RPKL%iGcSLau2hNtwc>>n-2nQguDLqrKqT4GMqrUg5!Z*E>%OVl zm^JhY2^MIeP*-hc%2@gg_^+1VK%AV??S4;HRm@aLLGmE>k!l1QKXDZKXLe0pfsUmu z%cWqxM2O8(iOiD2$Uu8rGZ)GBoZ0E#?30?j~hqdM*>AU6r{1@{LZ~ zcmfb=`RSnz5|A*ymafvv_y?h%C0(N;p8fU+H%p7fyvm| znsmcnJiI{mBE%J|a8DOPXnRzQ{d*U&GL|ZrY}@Vf7%fAfMVZo@;x$~egyIoAo^XQ+ ztMtM>M6WPYbDFtHW>A@W7_Ecl01c0h=OEKWY-(%(^@P|{W4jHgA8-~q9~nR=g@-^l3wy0Dh> zZEIPw^a$0fB2akTBZ6-4CML)|A8&$Yk8s>HlRDKe;XrSa7V9tWY3p3DX4rbXEQu68AMD8UXKt>XMwtTkj z^MbRB7ZhiKK=VkZ=)QAdq0d`-;OJ5v^?-S&q%uovl#&(jzyUzk;F}0OJuej*l+1k& zxf>>C*4Zn*RQYkug*!poJ&y4n{I=BNx%z;C&f#Uw_AEueIF47-pc{F|LH{%S!AgM1 zXyXdZt*jBDRG3h_5gcpWy)B|+FXk^oSyYuI{G&LJl*9ai@XK*{CAEF_+ZaGeAI=e#x=rmvP%@?ci?5C6w#)M<~4|kbDsI83VA=liOHsHrMQUfm490n6Y*! zl}@t}#r@#Uq1$3uRRfQWb0I*>b|JP|i`ZR&G0U3G{_9uSdw(s5ymY!AU5 z!?DU6i7FG;;QH6om0?=MBB|*ZrzRAmP@*NE0a4_BFb& z{BCLTG|=ZjgK~)v2X-1R+XzmaU@cqSk)fEn&6*)EHSf+!HSEZk1!+Y-SAEdt(QPfY z3DaoO(wEzYlk&}_&87QVzSg#S*EaQ{L&Nw*5?}XSkjeuY^&V@%)@W(J@tF4Q9Tc0_+g5>qrgPo4l&Hv_I$iKp z_yV6W|@A-uIxUU2NA(v9Ui zu@yNZRtPDE&JUgj2$noYU)_C_y-6&DB^yI9 zjwrTfx$ICa1u%+Lw81C*U&)E><(rxy5PuN}vKy1rzW6l-se=JXW zA^3j6TXrufYH7aFYWPLH%jA6xdZ4J&*pZ;f*p~H()GF0%>>QHS zG+ugJ-5s_<%9TzSmuv6`I{+Z^@IYqRMjY+lDxGEP?C2Os*0D)(z`4Q9oGY)+{&`&c z$?Y9u)HLuw;TW>t)8rgA>2jig`DU?DmH(4~9sLQR4h*?#{FD7=LrA=2@#oQrK0ipK z8acqx%F_+8LdL0sVnjSBJ0Y6Tb~b8y_EOpxd*bCgYLuBm&eVySb?qm#ml5vbB}N4C zhkQjiVFn<5v7Ge8Uxf;%ehFl|hT6EwXc@wUPEN~1NBeTQCN*WS}!#*t%8iT#1; zLh0;j6Hvy3p8d=*xuaS<(ghe1M20i2P`aR*9&f?S-dMiB%Qi4pM#Z_j}}E=<%p(FNv>c6V3n-V(E78 z5k5FGIT(7!x2{ruZ<;H2tn}Yjt}K7IY0g4N@Yru2-caS+gDytJE~y(P&Bnb}KAZCmM0op-di&Kx|hz0(MBP-Q3Gz3r|#<-M#K524~$ z%7sMAp&1IHvM@nm%-yKk`_cMvs6?KF);i;E_JF$8eDgAkV_v4oS8ZQVi8_NldaaWJ zY|xlLG|)V@0zddSq&67iFkyjo2rAr^_aVq3W^*ym8TByL>D~ipw4eeLc z*3D5QeNK5%3gF;6Fw~f%^q=BYGeU;A_-hy+pDS0sH}}68%ISVRNlpn*Cm6DS3V2e* zeUl|pSFH!>p3sv{VaVzu(Yp@{XztL69bm%B^hLpi!(TRkx+@r()<4&J3pSEV+goA$ zmyVJZp|x-vA)7KpH;S)_9?$_mal)Ty-9(}xKh0*l4YMGfrNHtWc3Wt%Xz40iT-H5O z`7L2QH~T`HC=Krw#bNC6bQl`3%H`qM9ueospd>Tg9$Y}8%q{8UwOJez{B%|OZ2JmQ zpu?uLzH9^;@8V^0rkY|P{L>T8fMP}sHY)zSK+eN~4?YizPZsaG0uHMhtEPMxrzi>w84HwVNYWR(ytl~>d zssI!hBoU5XFj#u8$W_D)`G^F!?A(oyM`?iS8+Wf@y}@+ONg_We#+f@El-B8ZE2pZf zjrrh%sLeDWZWQoxRru<(mb=w{!E{Int!NeH?@R60`(P3RObeHm5xPO)hsH%aT1zhv z*{A5M#MB1C;6bCmq=Qgv@m#`lkTuWcJ2XqpDK;<*XAiouO-yN?EhBm9%^PIER`-&- z4&)UW!w4V{l`kKbGF&h0y@@8zY3aDIRN2Xen||3u{u<{`$ioQ9iX4T>IzG$L6c7S! zo*$TpxJyq)k=#j(gpJ$Ik1KEF!PA3|3Lft6>%LN%^c7a3+b=TA4Zx8gdBvdQX_ zrmQp;<`BoobnfC9vME^mbg^Anjv<* z>>eJ!iY0hqO?h=z17*eNX4zTP%&A~>o-~p=n zAQP)rZY)0k&F#8KB_2^+qVXH_wfJtKEItT7N6%~{bVd%-I3O%uH8J_-`K!mXE9WM6 zORybJ?M^Sxslte9aNnFU-ExQc)yXaAv=AMME6ksD3Np(!YXPzW8R-g{b;3;E(OzB` z`>Dr9>A4)YcS$j`H^?VzN?RAEAkdq8tf$>M8ycA`uP`RlaYuXGquBy;{zE}Wv!D$> zSu7{ic_b&6tVxkNl7sNkx|KlmyC^a*IaZgtahN3tyc^t&ie8m0b2-%UBU0`c_m)8n@zIDmfsR>$!p5*=ZliCxf)}U`Gc= zr$B1@%$2*d1){!xzI0!E>%$o=RBmXk>FiNsz&Q$ov&cH&#Hi2N5+lo?hbTdb!2lTg z_cvx**T=tXHLq`3Y&#FMKiIBbmCi;Gtpt{W6_a~Pfv$lz--`wGF(>V4veS@5ga&p6 zy#TssKDy^@;~{-l1$|=B1c9d2dDx_@8>-BmaawU=7ZGV?YrQ@)hvna~o`jf@xxr8X zp!%Mch>$jn+rGgbwMHwItvhz?yj02q83jbU#o|MYuQQocdARFy^ngbtpUz3e#*DUo zU}HXB_KMirJwXVB6E)9b$Uhm3XOnxFTX!`*U?=_M_Dvb$I?{fRQ?B5k%Y?<@j@c&_ z8We|h@32Ax_37`2+sr){XnQI?svw~b9m4dU02%rCFHe)=>ZxPU>*PL#G9h1YFHJWn z_l*x`%g^bqy2e()3FUYhlh`9zY}zn8NhPv z4wE5ryrXkqqRzz%(^uNeoHV>mzQUl;9zzPBXP;aCvE2JFkHU*(9rg+y_6i6-V# z5nAlVAuh~i1}Mq<#Wm|3F<$1;Y4g8?wT!CW2{FcDi7jJ;zPhk9R(`%JeUL-C>CQZD zEYSU3LStD%>C}Z1OF`aRs0l*k`w%J&y(%z~*nVWI=w3099-fD9u_*jACP<>I zIbVVnI@)MgwwwbmJ_0S94M(2^f~&MV3t7Ho5)m*~wpN@qt@K;>QHYC!Z{B%LHa7`X zG)oFy4xF?t{l16>0SOu@qnt-8)QukU&pR<&-Lle+1?Q?C2zHRn?I3cC%!PAlc0R+W z_D`5+%Wx-uNn|Q3S?!_lj9H5=Pp|+e0mZxs+lU{U4jxLmm#G4A4(WZSLw>!xa#1*W z7E1Gcl-w3(?cw5M>#v@3WpC-XVBsQh))E&9BJ*!_5YEfIAryUCyJ|RAhS%5vb8v>w0@= z&|hqPq;&Z{QtbvUozf$f;iuD<9J9Q2G^bKqn3JifQh9OSmW`?}1!jZql{jQCVWq0`@p0?oP7gTZkvWO%EtEzMzrA45Z=0|auy_R-+P{id{>q_88 zkMHA_udrpGxcsE$E52K~$m1q@$#)aoVNECCTih3~!S#{S(D&g2F*K_BY}M%N&?urieLo_Pn}*7M74LW18|~0?l|y&>?u*^EX5ZlW^pf+N%#00MMzDXNjuLa>^3}A zlcL*42XFm*Fp559wSQ`5@L35-A|0N)r{}!w{XIcJBK=1a2SoDJFiTJX$N`~sI4~$R zgQy>rxA!Cpe&8#v57`gAjS$QW6C+YK<2`NrD9nL=WaSZ;vU`^=R#jIncASgQ`H*Cj zVz!M|FQFo()3iEYv{6?^c|i#FF(JmlUH<<)8s|los=fB#Na0C`>7G~RYVyxw^r+Q@tgTuIb>f@nyr*UWHegX z!1_yJ8`rJ&)83WiAsbR4Xlz_p%7)E%;P111ORlLQJteXcy5|Lpg?b`aI7vF7=aO%t3F&zAd_zZe4gKV*du@U0e)dmQ_n$iC59^S}KPdCQ*%|4!q|0iBMO+e_ zq#Ec6mhas5Sc{9;D|bb~E_1)VtxQ-HnSsX-85@7X0d78SuG}JQ8)6rc2}`1TdxJQ> zG=#Kc#sqUd1YrxW0Jb#OF8A_FlZwkM zEbi^kaCOvkTA1}!G#F?d$ULVZN}$kEqukLTX#AG8^{enu#}J0OL(Pv60}6W7p{!d` z)bGMVDN#NLp2bKhylDU~W-kw<(!ODOcaiVV1e{gj$@S+fZ@ZN$Zaq<8(&7Cgkkp;2IJ0nI=Cf8_ zVsR2(8k#hIgo5UKRdKI?DGqsrKP} z@*S0J!#ez=s$slddhJpOtpf{AGz%VQ9nbu=&f1l=rUY^eJFH0u2J&?FP|U~LIy!9( z+^i#$t!=XhXO3%cqi;;dj^)XA|AiYV21DgQ@qymuNuNL9E;bc}@Mw9Z|G9c){MozE zWIy|#9V?ThSSk?~v<*zvqBi-+(!+ga9s1|yQdnBKw^X?xG`v6%$Mk81?4imj^U`wp zdV}Dluf}zJ-K_yoW2`LVRaLWA(@P3-7WZ77x_3D><36(niv<;jAN0r|Qem2pCe-&# z)cMS!da>P|IxxAjPK9D1UDb(=PLQ{nh6xS>-~vm;2nq-~DBz+%FaZJxhULdV0tf;cV$3@14q@y5xigEE8^i<^C7#*>#-|f&b8X@-hfA|ku@2TNg^bA_zN>6 z>I)`nz+!?O%pFq)+t{rQsS|I->^%tICs**v$VDNK`nq zCqS$vkgR!qPP@7rlGiDAB#e+cLg>@v0J|#X&=<_CxiKlhEc<-P&4Esr)6Tj1EVE|J z&D)2UrhO857T3Q((vfpfB3XfdL{niQ$-@i!EmFk)6q1~YZHtQmUS$(Ys^PVXzb}~u zu#w%$9J$kp3!;0;ZwV0+xg?0fzL`}8z3fj}3*m<>KKp^pAA__ZP_k0GyI><1<@@+S z0&(MaQG^6Id=uHiJlWX`)0#EE>`}WEzfE?zyjyJ!Mb^4akl;{M?WgRmr3>K~>`Zo1 zN=cX3Z&z%g)n-Umy#ai}*Ca3~}3IVk-nfPzRY5onS}W-ea}JwgoSPIk2LbK#f=HMw(F_JhJBX zI~A4hp2XfRPPps0@U*c>`KM^}s#OHSa2K<}d)NFsu(SU?*zB7nDSJxReFnrupJgE5 zEcwE$w^8(FVr8wRcLQNhmM(=qu*0PtnTG{)a;H=4QS6CczeDjSG^m{gT$v6Dgv=rz zk#WJyT1MwBC~mg)$WE8s>2x`@zAC5IV7`FLB~)@a z1lY+kDFGm;ip7N+33**$&7<>iZT!l#)F^;D)qi(U(TdWtvQ}LZ0Y6IfU}({Xl^F{@ z&Rwg>u4cK<<&_=qF`8zY&$#)RJ-2ef!W&SsPIfsRT#EG`htf+R(~v5{ieZPX^J>W$ zl0@Ty6j8J0^SU<64zFhO$$r`1Ejv9npWo?rYR(=-wM<@`>UA2;s4w^2O~|V(vpk2M z)-g*hF0gxDF218J(#liVj`Bo$CWQaD%NLY>5|L+x&%lNKy?nWFD$LySicCmia>Wuz zXS*t#kikBzSOr-uf7N_?USK;rl34zR1&M`XD;LdclfLPqz#iY5$_}ndNk{@>f=s_+ zclw;@&63!gtFmG*aps^8x)26Zv;qt$MKB5G>SyA+{=Q}PS0W6w0%llf1?mU>yY`vT z{`2G9$Q|y6iQiZ<#MpH{>m(jRtGCr3n#;?qO5t4!!B)Ez?!UPsAn6j zDZEXNQt8;}U<8EPbWsOty z1vI5qlQqSyhbmK|uF4`hbg0P@oB-_k>V+wU%t0S6n%!_C21q~(Pdw4 z9&Bf3HI4mW?d;ggz?Tv-BJ5fHptuv@X|`tdd~=;5qrV8obnj|;c@~(ah2Y#^2(CuI zi?K7gwNFJFMRJVYT)kcR0ldy`t$u`^yFW335~)gd$(Wg_B6$an=r20z<|af0?DvB& z*4NLya}g&`MVy-h6?k zYyJIA*0%PwwYS-L@Uu70oZ^i|G7cZ*n@jr}=?F0S`9#+6Lh6Pwm;?+6&I}g2Zf9KmPhd1Ktd8H68<`^p zS(DQ-78KT`V?P8_KoPPX*ohYkQ>Vi>L830tlfY(=b;|b5PS0a?R(@Ay+;D?*s|2G_Y6S;nwyTclZU}VG?~rB z8I5+6M9CKX8%2pbn!VjpjH#J<(1}8G`eJu*YB2HITXY;0=ZtF;@8C< zeuRKMdP3D_tRaDDwykvoM&Nf^v*|8`w2AJFW}R(0P{ek(rP6_D_Hx_G!f~WfFzFs* z1nCk@R%#}DIiD6fVR>yqyyN4FjEBrED&l1tH;3zg2> zNR1RmrjsemO%CARxmKDM3^|a18jJqL%2FTBiG^7R!AZ$=4nfbR`kg^2?kP~_%rckz zP?Hr*A^nQeEkC9t8~2tvughT|L_n09gKs%Ml4hAL!H+yn^|tFRO%l>}RfKI!;-ddnwI`!NN6l!sf0P?;J-E^aeS^|D48bFIvy`XmKT* zjTtP@a*HhI^lffn0(+J(J3+}A{mF59l9JQ>(J4w!#f0+2NB!&QY0AFqZ`YH&bb3B! z&+2<79#xmq*pygYodu*NR?lJ&1v+9H`J?lcoM5wiEJmP=-N~O_q@*a0t?S98fjG8i zYYN-jQ$YKS%is1ar`wIo?5#`bPJX$P4#Z9D-uh|+-DSL4|73O?2!I_V8C`(!Z0yN} zv;P26TUnXjpCV)^j{WkG=V3kFfb*DfH^d=wimk_kR+gUD#XPHaR-_%kkL3+ z{l%P`%bEPW)1x}=fKN@39Ly5K`5{=8&L*Z{QoQ}t_?|jj+>`>g)CPt1h zqejZXAb}~s>v61QcLvM)(lL5mzudEX4L!oI?uQj@WcOmBNPs=NlaPmp5#(g6ZX34h zN)fEytJ}uuHhOiX2Hew}bLg52$tg~uRUjwhM5(IHuPBYO&m=wwR*E@HA+n(szaS^# zSm9tMCekmIn)^F8D0U|07Le3f_#XVI_&l{JH zr|yH-*ny`c{C)DNn(7b?axQ|T4q+-y9UQGlqAqZ4KSIgHxRADQ{_@7+3p%N?pa|q< z1lQANR;IighySh{0P>0pTkYM7Bj8dT)tKb-+y)yDe%a=9Bn8t^DbxjUGwajymtTw6 zVarUpZZY^DZ?5jg_ zp^v>Xv=9rwH;0xk!p!@jaMDwwsCGYw5$w9wq1s&u!&|;bLd$R1lL=ecmOW{4m$>|Q z3h3}cOnYU|N+BkEC$a*ptBTko{ZZzrIy*R%wn2loIcBa~g93Vz_=r#T&irJr@kvs| zI;_2?H}x6;`%x&F7=v$ERp&o5Pe>1A`RFqidYrOVd*?5#1(0~L#_L?Pb^$WE?1CKb zW5=J#{5Mx7?+vZY`81fA!lWR@^q@c#?l=RA%pD}Q&~kJ}B*9^UWbqY81d?Hnw6Y{X zE5r99cEwPg^CI|g2IKFv=H?mP4cV|gRu|UNVvA0f;y^dUjrImY!$5)1f^l;l%Kmt$ z*7^2VQVka#7vLD4638wCPR?{VeF6ePOA?7J7~zTo>N8d&^H&Y$prJA6@CJHPU_Tiy zqn9Y7&*t&w*otSfdH1X1*`K$rh#=?eO!1#J#9tJ#E^DUvQI$B^gJA@o8p#Y=!LLRV zgI9MvmzsSYYr7{<%5(X`K=|&^bNOfo!6M??b7S<1 zz@GhT0lg})pMA9`b~~aCpc|)^ix1U%Ix&%S)cM`M2HtMfD-Kl@o4`y&sMPywwyl_sVQJ#utd0eh zm`iet4zYh4#NIUlEex`{TlRPq*A&RyVV8IIVYANWSKQdH<*{;NG-^%5_rUoU2DJMlKXfU8~3$&^f{Xu z#3t-v@v_k8?ZM&3=W*Vr_phN)ugkp-CGu&&?VHA){<{e@L_D_XTnqtna6tS$ZfV2H zakAJCt$4^W6{s!5>nRe2f^Jj;o6}H<91$Fo+R;B%J<3u1P@^x#Ry~)nYV!uPA`uR7 z)3ek&a-~mKgB%3V%~95Yd?L=}eg*p{zcvQby@`f2!LX0NxD^iKFBekRDp23bh=>qRJ;VhXxuG&AXD zqOC=QeOw#DDBXr?qoak~>xi(<_L30_I|ia9O6I{+2_YBbg!8`x-XlKn%OVLzW>Mw0+`I(3oyssfo=Y3gDL<3lhX4lX`yX21K|y>kw6#&5@*fd7@q5i?u<;tJTsHokaw|8B_S zY~y-`j2YM6(N1wdBnKll8WgAQG>EuN+v<44a(+%AOvIFf0zte^m`%+_*PE?xyo043 zu+*Hy?+vZzy`hnrTpTgzZ%0mwCP^X(_1@ATNMxKheGZDGgFSg5Ku?+3tpn>8j)`Eg z1d0oDCH#er)?7K*6u=?xxX8v{s%6Ix-jR4ngaRucc`FXy^}`m@>1g)u!2&uaGV@Dm zw|j49o9d7n=n;{9_);o8Yi4m@U%Bi|1S!X7l5*T2rDGQJeSKNt1)b-G zCq;6e%jc9x&Y9VPv25WYCbw||3)r8(t_oL!*Z=wQ=ayfIfPZc#{Bs8UOTlmM8PB8V zMb+=Jewnyhn*_zHSax(QNXu7|(+d_Tl)F*%1?(!xYa{ zES@`KICGY=UEjD15+{y)qfUTlCjNB@Cod@zyI*-2@;b2G?^YzVs(>P)1CnqgFKK-~ zMcQP!&FPWDzs8~G9}cVV7JKA7{P$bm*#S?omWicB$Dlj8K>x&Oj;br@b@;-YPuNKu zkscU719NW$f4*>T^LzqvFPsyH*eer@;zIZG`hT)>6S*S4XECp>#&&u0Yp>3(pp})q z+mR#qbKzPPn|-8Zc?&%(BpaQ%It&)rY|1n4@_O#h*UdI_sr~_}WM4dz$$oM~iswzy z`VU@N(Dp_1s{;GWk@e}z9^JFLz4ZA_9QHp?ZhigN_kZ{+emxKW2e#q6`NGSlWo-9% zKY(_&_2{xYU(k7F5BPb!m-smsw&GjK{WVTUyN|cpfxIP>gmDYiye~FgDae>)X7ijCFzf^Dx zZ{Q&*y*!uZ5Ow@e5xgE-m(zp8*Uuvg-CpnJeE0zo3mY+?a|hhba}>YR>yV^lSjqCA zA}DPC z@!eQr=e|)21FY+fJlM;gdBXzlu;XteN439j1IWa?Z@fl|*WETCS zDq)0*Y{&02#e?(^WiS7J+5GomhdH+fPgSW-tqKn#B~*SCkcMYZeDM1^5O;iKL-a)P zB>{xPbP+56zyiG!$_E8N&rmk}$MyZY5IUTt#YFt+0QR_&1gWl?O97i~4=a9et3C|9 zN_#8yr>#E4zE1ITnO>vj68%|QZ}7==YA(>9+^={P)v4a31;&a-uOE9rXa`Y3fh7dp zuEYqvxp(NdhEc`~z3e|Or_7rp^ri@v3A{2lr}Y@SkrwvD%jH5AF1dBNkY4U(#aF(B zUCtj}sllnktUvuP9i!}ze>x?k3l;3>hYT*WhL6gGMj?X@eDt~4EFl4HKyDOT*v*fQ zv2XvSD6w5IX}#%!MOSb=Un|%+@%O(}QVzWAZyRU3ri62>nb}K!D*)$`oc@)S zS#R7BlVDU})|*G^xWN8#vkUJpQ0Dm8HoQ14u=oG9ANwU%_FuQk=m~-S=$3M$6{d$Fx)CY4WtY|E5MJ1(~vQ2 z6X9hco;D0a63oRz30cEZ6nwY84QmN*N};))alnC?P4OVzuNa0JTp}4&2DjPZ5Kz)j zLr8cu3=JNAp>d!_3a6F%e>L0+IsjQh-|!gPiG+t0ySdc-2ok@}Z;lvS z>c@U?RCyCb8A2c?5nhUjqKETod_*a^CJR-AMn3ZF_Io|v0D4X%X*FK-W+;Zf;UP1uNgtz+bYkSNZT8^THp7Gr;a`WL;hSdoN!(5` zQHMDo?mhZuJUjsrPd3hm?*SY*nmh+yfuw6QFc}G9BJ3O05qV#vhsEK!sZfR+G^Ikd z__`?mc=*?;uw?jHDx}ia#o@P8;qkdcP!P)J`mh%}2q(m0B&7D}Hx|GaQt&SU8 zEuh2S!HEwxtB#s7AOYwVdNg%0EJ9By4zFAS@4}AZd6}?ixG@tfG3kOn13D`XKb{H6 zq1y}M@cvAw%+A$kO^t59)#o%dOrpc*L^@N*C>7ru-Wd&Z`&}3dQLB3tsj9Yib%zvQ z&Ep1FdT&?$CJzn{Y~eSy2sl3t>Wm&T`NF$U?g5OVpA1iYTH-o_hSk-Nk(!%?vDn2Y z$CBN}Pk*WTB|%4C6>z%nNQ?=`VR-nH5AF59hLx_T%lQ~7Oh8vqt-mr-v{2yN6#O2` zGF-Pw!l5ymfo_yMd}2Z;OZ^YDu4&@Yy)&O24kj600gqwlI7~r9)10{Jr$fdf5M6^# z2u~b>{z2amXWULbJy7|c*d_7eu6)y-z_;!1%;yqb+yOoK*gK<68*ZhOy^TGMMiUpa%|WfrJCWAj_t3 zjGuHxWIf(V(S(vhG%iQJ_zT_85JglxJVk+A*y_}}rAfm`LCct~w*&CRC6W9;4y%*S delta 27918 zcmcJ24R}@6neJM9@5lj8@E{2U2)KbDCzu=pBs9c;1QJXvza}WCY0e>Mha5RS;p}sO zRPENe+L0DIFiSf+BQv$uR%f8_~C{=aXnoc*bO_+?{K%F4wq-dyqcq*?s3o^;$g$b$_X zgM*oTI@cM?#dr;?;#KKPde92;D%oJHlZONRUXhyI&F>b!>6tV3%H+so=Uc&Mdt@M% zP2`3FGcgz*v9bfX;Y50mUAxW7?oK3=j2SG*gZY&!7(2n(MLG5uV-<`&9B3VhC6iWe zz|O_?qDSksv1B41%Vo0LveuBzSb&EIGpSU>Hu7`PHcD zy1%Nr_FHKuXBd5qx7T)MW7}ehc#zjw+1NmWP#WYWo=W5~zHYy_wtjyBIyM}J&%D4R*iZmHP8L@J*$V=1BtGc$xn2V&WH#JooS zw&DR^gs>q4>O=I&99gE^`JBDKBAm_1BTYls%C zEJ1Zjp=!oF-eIcOX4qet3Hbg<^@X8q1yPM;nR^o0EpNDHIovhYNG6-JXwQ6T0p8Tt z)}}bY$@Rn;2U22#InZCOi2mv%^Z{&0@h0nmT{J@)*c`&N2)SxpAAUpG3vkPzmCnWX zScGJBNMzL#8_d|6TmeEK?Y+C_z@nOXWO!>bE|&s2SF7nv*n`+7D{hE~+b?yDz--=; zHZ#e%nikr*z13cWp0Wwdl%O8~__)^{#5EYp+m@NgnUD&}cxO5T;ky9;O${xNmA&I{cJPevbC?P&Fmwxvas1X;(<&$Ici#|L=H1F4-A6@hVtn+ z=q_uSyA@n#e*&nbrH{mNgTt}iNh@MPV&KDQ!vYQj9Doo5jmh>&jDWNv!=IPsbh$-r2O!);60vfJOL^iFFE!~fF9NQ{1oXU zD#XZ=3c;ltV@?8#V^fS1B!eW~;juXsqsO$dl17Q(K^`Lzz-c_L-7t(j2G^WtR#S}y zW6G;fm%023$a0~}#86KITfzdPwi zdmN^M#=W#cB0_N45?8ije4_0=R!+`m1Uf0wd99~=q+ac{avr^m-;@#3ytnakRa|M@ z+flS0Qa{AzSSSP*^|7)RRGA$yH@1>`?aIas9!h26)*al}#M6wNk`Q2?L8Z>9g%l8g zCVp|rLVisA?vmaWcahD&?l5YuvFv;@7clzxQKO5;c_6TLufdKo{0nwvvj&SZsBw1g zB5~)8f2}>t<9&$~q+=qTYlj?PPh`0zpW1C@*NRtWtPqb^r7qkkQyqYXbFeyp;ihY6 zZdtHyB$M15i)V5JS?Ed(-*k=oP4+(|`8 zA>Vq1xuU6`==}kL8DPi7mufGYU$-rnjiqfc)&RtH=D#?3uB?`mGW zmVcVpt-j9;@3k!W6-k(Fx41UGVdTX7wR6Ot`LkuCJ^Tal&ivNtrZ;Rka;BFqXOa;| z|CwU`rE}FFQwlf{H(q+sd4!i!UZ*m5JAraCWuZun0ts_S(HdfEs2j$r@W~#AFbZ#g zt(eU~on+xu)Vk|8zypP@a4$kz$m_tapQK%XkEOT+f(f$6`KNnSWG+hS$OHLS#!gZ1 zAbW~`y0cOR68!X3zXS0O8%00t`xk z#qgfHFg&L)!^ylHBA(D3i$T6{VUPugxpIKHaqygnE&wpJ0em3+yl1#4c-cOYyjqDf(VeLT&cCl zjbs6c2SfD*q#9+$!Lm{Ewyd*e+~{?7$QN&GQ|-~SbDVu>@a}XzH6T44SUUr-nA5iF z+Uv$$9v}s0TyKE%Ob83p8E0v%*(SYy!-$sxa_u0C`n#4P`q#pIf|X-)&f_G}#qxPo z&RU4-vff?~^sX8tE00}d>?|EXKF0exl5cYBXnLP<3nv-FJ~T%n(1!w$t@H)XwkHq* z#w~tpzj5I`dTgQ|?vgWE^o22D@F1jj1(A|c8n_xV+ zaDkdUs8ft@l|nsVZ$R#YlbM_V?3S7#_{y0qn3ZBRQdCVf?k$BoVP61kRyrh|A-CFQ zLF1r!e127}`@N_E^cY&OO4Yz2y@u~-&`GFEr1$5OX*_@*XB)h^s!w44zL*d%MVfzPy;D*{3kb#d5wg7f1krxXoR!nm$yWj5~#lyJ^|ps@%tD-Zx0G zq9n9COoFTxS6m3g3QH{xLhxo4n?NKf0fW4fbCZ?~!dc6vm+!@dFfmxG1M)|ZN=D{j zH3j&EypeJ9xTKuYOCe&Anyf`qZbHfAz*e165KT&=sP^a?23e1IUeUyUZ7az{Ff$abUBkN({TlE+*#TPWbk28rin!gi zz-06f;Xm2D!1v>tJ7w)Rky0ptmvW+-^JX8u+;J|O6~LaaS-X^h2;9OF9EL?WoAXW| zl4NBkox?0!X;Fok?7XsO6z*NiW=*bpu1 z2|&Y&lVT$y$>J8Z4Bn--7k~A&~2hKJQmx;J>eZ<9!dKzJG zA?$rbH)^(yNLv!N*kK+}mLOxH-b~6e*kS3>9unN#3&2FZDBL4KEELx-*jf%|(Psc7rY#&P>G$1*Q|5k(vn?)OI9vQ? zVdAm`4~CH*a2?|sSTl*7-LO6ho4M~mW<|>?poCdsV9^SlFX!S<7cJ2$xcI@MU5m~c z!J6HP+)}QaWqoHTf~;S+1eT|qS=Ky;}zmqWLCJP z5Waw;XB{Ma*~>tD41-x;N08WT@sm0;)B_1Ay|7iy{n(%i@!ZX`Cbcw6o)OPoHj{4_ z%NNhm-Z$vQx|SOFH3ctqb|23h`dU z9PxMI*`a<;E)YD^#7F`@OuzWI@Zu>gU%FRov@gx@ayXzAtf;=j9eF+U=HwsfO5 z-D}i*c_ZH^=Jn1Mw_YBsJ;wRA4TzXh&dSSD$tE9k0ZggOOCTH2lg=kpj68cm&nSdZ(u!Hd1 zqFElS<&nAK`o^7FLO!TyN%o}oi;l)Q;#ZB+w3vK2zhxb=1S9#J)tke-X~v8Ps^oqe z?4(#0sh{*X=U&g*jP+wMBY28;@$H=LqLH8CY`Zt)BatQi5pg=Qia#R)%hpZaObwpn z>>c9Ix|XJ%G~zB8gz}0;u)Fgbj*v=-*MYl-5>_&9?-GZXUBMp`FD`53FNiDqYUl7~ zkUzQ%3|leqehUm=^keL8LwuocrT9WqP2Ecne%m}Av5Utb7pq(L6UUok%hvF~xCmW? z8)zec4neY--ccKfFxYGSq-a=qqxj?Hm+Eivr{w2~6;&afc@ZJoU?1^Q^2MDiW`v5P zdJ8yzoL(#fTFDYWS!eAZB+~4>& z>@+6<2cG}!=Vs5CK!%9S>X~9qYa9Pi9BeHYo9}bP66ai8N5U|cLnM&6_#JV&b=Kr_ zU_c}AHh)+A{p#?PCyZ!8j>lcYbSJr8VCW%L{+|JhszHXlUIpb1f zFH{6_jmBGDqvkp*v1b@YC%bc!*uJiDb%zE`T9eLXQ?X=+Cc`%k86;5UhWL-_Qot4Y z!K11TyPZa>7C%|Hk#~t19hYgxBsekLu~Ivt-u-Py)x6Cb?}MRBqLI>o8<54dmDj}X znIzuqxT1No4!i{<-X6jljleDh-X5S;_iOC)G(MrY#PLtv$2E{EZ8>1?uCjjq?DTw{AlALJV9r zU);ZO@~nLtuZ3M8+)QmpP$_*i~B*akX=|F4|I5)pO8JJ@%PpvgoIQy zMFENs&|czCHki$oX5cSzjJIZNW?(70K&V|*23-bOi3yCge7bCPMXAjU6h1w>GANM-I`)%b1RfW;ZGqV|~Z z0;$6TAvO;mw6`Jd#!aPlN19yd1RNqNfGNuaIx5`+*;7?gZBvvIkr}%p0m9vk-8-5J z@P_@kxu2h_$9}`3kkv3*`vWLa(74|WFHx$cYONffv)O%w>UTBvfW&<+#2yL+TTAn? zezA-y6aqW+QluL$I%o)=ylj0PJytrKhp}oIFU#h9sw1N7md_p3(tXj&W>nO!qyYlq zD8YfSXr|eF`~;*wa{hURY2a&M$z|iEf~-~s|Ezd19#Nu@aN+~9=B$8*$K~>ax3H6h z53aLQflp5%RUzM=k%EfHn^7Nw@Q@ePW=0$jQ1MWR;dm81vXrJb=g8ccu}w9TQqFJD z+>t~CEo+RhIRIVcf}(oIpeZm2PYJ9;ENGX^Iq^VH>&I=;lP4j6X-3L^Qmr z@uBCg+{|R<))HIJmg-+5 zmdF5G=0_(ZP0p6g=1kU7T7?CSqd}W$%38#ZbbLoTfhsDbH*V{}lvSx3(TXh_$O^5zY!Yd883(p1X=pahn9S8gu?AUx zh)uLm=`E`J!z0LXga6#xl-rsV&hr=1(p2lPh|48iE2Bt zwM`TqfJ_r<#1*JU5XuD%2xPgC9LXrYAPpIh`LBv_B83-i5eZpTXL)eoea9gaauzZe zt9cJ75;UHq&C6M;L=X&^LM;@23}+5N3}v(V5i0qEFF<5$I=-Xe@ji*FL>jeft$mry z=2%+E35bbHjJxr~gc~thv`H?>pzH}Y1ZlZQ9VX=x*bHM0_p8>hqaJ-xNu_GqLQ)5Iwc}DP|9*Em9DTVLzMxeEK`-#TIo!F&#)AZ?n1F4 zgT82!+=_82I__9Q`6NmqQFjZ*Lta^75Z)6Uib$u60$(E7tU9on_fgvqPPavL7TqxgDjR)S!uXbz*HO!J~ zQIf1GsQihM2$K@bW;0bWbos=5@+AbQh+Od$9k9}c=J+#rid5P5*{8TphV5j9Igm=!f}Ev7owIOxve6&EX*V%S@ z)Tpz~Q>iB$+he`gYRh%;PVWvGz?-MVrjC7~?+eF?wWj-9(CyK ztXO|t_|ggDOpH|q(WFOb_XNeE>*}=EgJNG|ws`TnChcwYamLQewRhCVT|1X(@2Zb~ zv2&sJVNgUDRgL}Q&ig~!`}FwAsg}-BDi}lNKsEbWVt$A`JGc@`jk9w>!Eaiv^U8qu zKVO|IcHU$<rRx<<-UyBp;TE)`m&ZETq1b%?aL^rsPdg9n) zs|5P1<2UzJwFNCwR?KM$UzN?|M_l$P2w1-Mq=z!jZ2tw+;^Gkt~W+D0!t_$6pmY?b<23 zX!qaM**@7)Ya6`MS^8@^^mA`cH$2=)xhw>U4v>uSB)8|Ay$hM3b`(cAvyeKc8o? zd#Kd{gB>g5ynYVO!+S)9fgE*Ss{w=?YP^DFgH5PO5IbR7i@~M`RbIGkthaTH1*SvVrD&`Q z*%)fA?qEGwQfxhVgSOldCl0o0n|1NagN@p1L(CezOj~1!D@T8P6?2R`@3I>i`^#M57#K_6fFVtZYs#_L=br3AxC!hJCK2;Xe5M+o`b4R*%O zeD~ZO;b+~?$8L^jr)7#76F+z09sgVtakB7)LUDGdC0rD(hJvX#q8cfk@MLxGUF&tUbzQmI?mu{`blVzK;7 zHH%vO7)t9lB&x{rr?8NPAPUNK_gbU&sQB5f%a+a7_$JRc*h)FALF@AgILYiOZ{fEZ z>=Z5hc7r`v>87Zz{?hUro+-iiq48{b2(tmcUnpsZ&~jP5#ZlSn6tb530us;c@e1)5 z&2vKc7;aKz@8ixMJ*>iIJ?-QystO0nmTWz+Eq z2N`_>)qX&H=Z?#lzEm=;hsIC;AvOJ1<-k|F0~ZVcYzs0le4RUXQR3}GaI;SFLdM=F zBnBQgn%TQFr&AE51g@SN;Aqc_CDrQHr%|D=0}TLgDT4!FPIkChFTi~fZ2BJ#&0A4X!NXyMwHr+QK;pI; zIdy7@NGF<(@7kzFdHYa3WY@)Cxl9exwYUZgL*d-)3choFY`4`ll0gzqKFX^MAC6*B z*DIDTFIn}1ig6sh0KAM9zZ?)3eRXMjhuog#`UrT@ASM3j zNFyww$BryoTU<;qS)bsH5ZS8dIU_V%7jGO{IAdHn!D?O1`r0yHGj`S2x^;eH?C3F= z0n5kci|aY6fJX10I}L77(J?9U(B1!x9QdvG*!&jpzWix@{Wks$@!!9`B=#B~u4$5u zRchAmL6UsZW6!*^N@r7e0DmU-6Xq z-JdVjkD41q(_cik-vWE*39~byLQHh@3lW6W2pzsN^CO5?AowDqByinj%;!q}7BiX= zdZoB6lFf-s+%%trl|}zTo4MG1|03O7Z;2!KH){PT61#tac=i5O^ZPkqQcW|3aBvE9 zuL=sw6V$nkSblurWmaSl&fXz>(gAj9pkur8)aq{Q8)iI%Q(YFtS#0r@ZbOdT1AZuKo6a^N3a;T<#rmySq?$*ILw42wSF*E zB{B=4V>{C4V#$yEl!EC%b)-Tg4mSBJ(N(|u^M3r#bFl8a;n;smcB!xOk zp<=6v6xN4$UNb_th01ZxK7iia#mx?c0SmetSVZh56+>vyLZltQ5!sT4O`O7c6lzQ0 z+_0&Rt0JVHLu5Qg71*Yopr|}zVWUg3)@E)Z{)0pC8BhqS`w-vyBEmvxMM?$j%2W$}tr$9WqECf#N;e}qZMuzRMhC-&t!AVzjSUbXAG5fCD zy0dYMJc!-fv9ZftbkxtuMP-@>5w=0p2vO*EII<2K=?5Mu6@mJubwn%0|BM9)*kD+R z2D+F)W?w1v>Bwc_xH?732!V8oLJt2Es#Q_~(e{`Z%FSfufIeCM{sWec=bUdqpJ*c8 zE~$3NNyE$C3uk?THBO&!jc%d<)J5d&-4kF^S`oqJK?gJux5V9kd3Y;(Z7OUKt z5B z296Y}*fS(Y8s$*%L}0ii)!d7J# zN)oTciNs|D=aS7$P&K#<#Y{kt!WxpK?O*TXP%dyHnwC?7wFTP*V%SSYCQ`^$CqN-U zCoW!jl4u=L0&}KB=YY(Ig3OC=V^K-VQB)aBBp4lKSAD99Q6v~$Zo;H}ll1o$j0F%R z7@gdNlF=vC|KEbqA=}oMj2rSu+^2Ig-vxOcx>4#Ts0ey0YXQKa*1-sa98k1MWQxiX z;#p+w)qN<`uz^zgDsqPc50ldB)UX%UhLoDvG;qVdykq4hsTT>%+lW!558_EY&t8KO z12&DI>Wc~&<;~0PSZ8&FgWB0k*VY?35d?5Q9c)Qm$C?IoP;mza|bfR12223 z1<}Xd7O5V0@t`+lBaocA)|2g$r9D|qeNrkzd&0E#;a&@p^fyG^HOsmK9B{ST+6uZM z>fmT*7Y?lU(v19;bm#~sLXh@gxl&BFi#c}@aL|SmQvP87FtA*aubZWH7wzup?b~|I zu7S?3ZGGKQYGz9*L;A+O=_u#moDlBjp}mnHXvyACN=kd*)WGtRqQZa*M+)=x@A>1? zP^1;2Hxww!Y&1(I)L_y(N0D1Ua@So74Rjq1qTdx2r?sCTWXx&~`WJYR?C^0%S#XR~ zBsXnRJCIfGRc1;L(_Gcmu^G~!fF?=q1$lx16B!408!5NRtw)fxW4=rBu-Su!>YsNP};ZUP9U$<_XDtkS^5*$?qO8ARRZbQC$%(nR2f{AvL1J zHwdk}2qhbm3A!+-7&8s`n(osJUXajOlpI~l{}Vnmq$?-1qDj3G5i!xp?@Uj(5D zh$aWb%DKh!FruhGrvD2wstSL7p{5FmtT@6GK9@wz-HAPWNI-zZXspOQZqluKphAZz zPafnkqq5r6Rc*L_CF-dPA2&c8Sqo6mINO%q17{%efxj};wa95H$AZ8nmSrG5F)W0E zq;P*p?mc)B*6$Qh;}H)!$ou6KV|@zk{J$U_2lQ!2{xI6PAnEu!u#K)pa7l;U4xA4& zdnF~n|Hf7lCHRCunio5*WG3OU*yt(dKqXB)%JR@BuMzxAyhr#W|J%LyjHm}ZU-?hr9@RHaYm6I^&L3g9) zVexpzl5#*+YAOX1Sx1vqbKI735N(j|VDNRVN`@=~CrtIyv(`wxf+i;vI*X;yQGh?Q z%rTohe>Y(}1!>bt^Xj9EkfcZ;A2m2W%nez;2Ygs8K+3ft&1>YkQp!zBa z>0DSuV!Bdpl!!)k4JT&IanBd-L4hrctH3~=w5{NGy1O%?QiBSc8{K;t{eZ?tavctW zWu;drs(>68LWaG((-3|OM5B@}ez|yry(Ixqe9RM6UMLSbO1YwtQgPf1=gE_(OjSlB zn>NVH7$_gI2qcfV1c-2=m`B3`lmsr>gxN@#B4k#aNQ<-OWUPT?J19snLZ*hi15kRCjR?k}p|nz5 z?cyqOX@EE|B9$n{s+EI5y8lI06GsstsTqn4KRF3dLxGKOA=VzN?P*vg%3z^;KVX$e zR}GUHh`WCA6|O-@@B5>hq+F4AqsZ;+Nn&yA(Lagh2;x z44^@-*xe3{s?;ZYf z+r+-FnNDC0hrmOmKw9YNsO)w#hJ8^H5nNRvE7j$ST&kC_B$ddayA4ro@8lwVu93P;xi7uS()JuYH}WZkn&;qnHnCTJ?sK^JLLCT+ zuzdydVs{KxbTB{>7=cMRnjTa>wKRa}Inl%oQST&)nnPQgI~i0MBes@pYoqIG+(GE- z5Lxp;kxogZGN#2@g>JCA1Vk-GQ^4cc!2%^J=8^hH9s))H$W1eq_(4Q}u=SyvrRk*Z zB=vovFnQP%$%#i829hR#qLxDB6uXj#aFxdIkl(&|Cermr0)|SLv3@xnnlEZwJp&W? z^QVq&qb>GEMi7Z40o52&RWw4%l0I+{!LvxHkQj?2UL!Au8k;5Jz6a28w5T{v2PL|n z^oTqj?IXrrIPpLO+-2NVNHalJ0C7nYBG410a|n||2qZ=)*p@!;ZWNirK*)_wE?}+> zCbb{=9e_}G_`r!7fkaT{`Zk%_P(+A`QX~ZSMjR;dHYQenKd|&MV6MsHdQh6bjy!O^ z2WGg`0Jas&4h~ax33)*rZ9z3Zo?!Ci+_g$H(W2nJ+mTjTLGDkUvB?}J)ppmU^426} zt#l2ky4;QYlShkLCzCXEv^YQ`o6A^D3I3PCPbr8f+DD3LLcx+LN(e&a6S+BeOYst7 zoV@IU&*IaHZ7wSURS$Oqfj7kUHfFL*qxHmrL=04X?pUdDaJ?ugMuO}?U&OPQ%Kp*% z2w%YYUA3)v(Oe@mVjob$UVCsZKFw_SS+YXys z{DdTS0lGB>9YDwiW=tdov> zWcE-vx+s1m!#FNGBKlZ_det;qWI(Kaz8HhBC){14i!^h?Q7k%mxBDDJQa z!iJ(2pd~EC4b(>%OiOaX9qf29K}hi=eQBaSFbOgh=&TMA5M9x;=z1^{WGfQWQLF_K z>eK~y2(dqPsj!^0S`gAZj#MzQ^v@+=9|`I`$vjURApZ>(0_h?PPvLQ_1yjK)N=ZY- z57eF8z%`)*JLnnWWMWxarGpWz!v?^x18YX!Q__Zvu_z==p8SV_lARog?WR*fQ9}0t zLJcra8HB+c?lM>E+TLbm!4|>LMI;PHia6O-*-8R{5F_nm7h{Z0$2B^Gp<3$nR#7KO zuu}ZPl%j09x_n#`rwWBo2AfnI_9fCSZL3a740if3=K^MkW2ehx3h5N7E-go8$Gm&t z;HuzObQ$F$X`9CxDMAmcbhUhe)=Ezk(nN@OJsUbg+fB%CqPV{r%Eo3D`n$({9ppRw zn7%r$NOm7?$A$*PNj1dAi0a@b(-pJwC}HHbg7D2`l~^f_IH6hu6^tR};-$_fk}36o z03>C86%J8U0Yed_r!0a9gPz++qO|0(x)olsLEVKWGA{H*Y8)v)DZhw*69~X4%ha`7 z{*W*hSRaPQu`#O^FFg{W#O+5?_CWM(cE(Np zvq&J2bg>MYPy%@?+!K|=DCKNH_5d?fXqa`d3$Cj8y@d}jQ-(0*B?4FRf|h{N7-LTZy$k zW?KmB9FDyZ8Jql_ZkThgTry*9$HO|;XY2FD4UdHR(Xl%oY2sRoF248I*Euh9)I+Y; zS25$g(>OPDt6tYFZ>hlz#Mk3Ydat}lXor4uow~aQ#YNY`287hur3Ya?;y#oiMSJ(J)t*+J?Mj0NQfqx#X?_0ABT4++*H(@FDU3Gve3wChLoqatvkS#QCm+G|gI6?ez~ z{fSO~kGS~c8(Jk7|9dR(n&59Bi51>S+$5lmtLe@v!E-ehlwLdFLrgCaMTfRF>u{J-}C z7cr_@<9s$Gp66K*s7U8-b^QVjq8b&(s7qT8E(WK=>KNyf^NpjrktZ4@4_3CHU?k%s z@760bHj+>?!R<%L8A7!b8@ehupiFC6P*jIOn2&^A`GqYo@Ha=iZLtUT@kSK2MGy;ZT{O7Qff9L;-ouLvC&G62#l(*uTT%6l9>^WMQxD5R%>k-RYkFa< z;_-EwB(JN+`Y*n*sD>YhQ^eR<6F>9dTVtHRFW!FQ1zd0!#_5zioifj)Kh)2S{ovGc zj@$Eo{k^4Hg)vt1{iVFJpVvY;LMz+HP++_D$={UsIwZC{^@-8XCmUkR55BKe8)DKA zhw!~i7yEvA3qI5v;{6}~70xLg65{DLtg>IRr)nW2}BV`Bra&eg<^{&A&# z+&DdU>5H0uK?N-< zqv7<=*em}n#I^1E*c-213h`PY^f&&6zb5|c8<*CY;n-e;1q)IQADn6h-^vw&T8mv5MsY diff --git a/artifacts/polkadot_metadata_tiny.scale b/artifacts/polkadot_metadata_tiny.scale index 10277b8f8da544d25125637eda176188a8bf7600..7dce918539b70ca7033f39725a97dad7f10bc42f 100644 GIT binary patch delta 9133 zcma($4OCRunfJSIzyTgI7{&np3q z6WiFWJ#}y0)ot9y)3{yFS<_hKX>7}$+Qv3^V;axKwr*lK?n!z!+s$@8CpjUf>t?_E z-ps%-CQagD-n;MK@Bjb)H=`e)p_w7Ykn`R>mU(SaqZaYw|L5QQkixUL=uBLTvW#0&;>7+CzSfZ-kVBJr05m+X~@z_O$Jf!XDDd zewE>5-^p0&3_!~^#oyAUjw!m~HI&f9gtW6)Gire_nppjxBc5eU-;s7Z!I;w;Nie>;V5pd|ih%o_hAL*y+&gaX3+CsL>@VLhh%MigaqvRd&6blKB3UC+u`VvR`)9{2z!=U%k&Fw>5w|MSB z!qHD7f$i%msC@?7;%Eoev9N5!G=-3J95XdBpT$R;{U2Q93_j3*B&UJ>u*(h4v$wle z(Nn>S?rOu!2gy~a*07p;kt&p{c=zZ$VNo-$job7NG*Y9Wln$uGFU(oH@7gP5~{Ia1& z!Y$pE(q{DIELJ6!w$@Y8h(>~Yd~(>2aYmc;1(k3D3$Q0eDKAAwmrTUa!2VfW-UR^N$uKidS2u*u&KTR{ zC~zWY5;(eLeVmYb)C_fzTLSx2Zne{88{~ZF0u=ISIE2D`M_?NtDrSG5Ta-78+_^Nx zuSQig^I7(4t}FXp0na;u+%^H!JHdibG!Md^KSv)MTwLLOPp}pCMY-B+wjn41usb$K z!sw;MF&GIcHd2C=;=d36EVN6DUG%2FPVpOAzt8J?hIY1Wi5qHI z*Ai*TOHet72n}-5#-78Eud&}ODWL%Dqa_b)xmRGrkhU)qLpmjA@lmjw5#S`Q*z5x! zlH>S9w*onqX%jmm2e`O*0%{%q5OOq=?Y*yjWiJxG#mXXshK9yYz@>(wL0?!7DZT9b z_dO27Y;i&BlxNYsqQ4jlXJLQk`+fdUxvYv?o0 z%}KWL6wj05oSQ(`US(2O3`{r}aNEp?E5Ro~CS+g{GAoj^S@=@}9pgN1H!p?R&0F zvcHWf-a(G%uwR$8c+UY;cgR5=J^DsX_uQ9*YL$+{F*pt<;WV6qvv3~B$(%&JlPCt3 z$JNP=;dBoBmfN%LDMu&9BiJ#Qm%s}Jo(V&f;Uc#P7w$cS2YxY=v7C9V-_* z8s?DA18rcp_wBWjAx=8VOtX5TRGenlU>Xg!WTxCU;pqYtiv zo9y`qi{$f&e-7?-K)|<<2ov&kZuxQ0w=6QQak-+qxX4v50L+J1a%@t^kftcTa@20y z1OtFM(S=fam!H0z!zwCW@E+@{tf1F(*cU1*o01Wva#S|tpij}Xh?ZO|G+*^Qs8Vlu zT+uM3cHuTcZg2*+(_0oFyVh=`xxoH*t;BzRw6?1w0fF31Vd-uPOLx;*y3K7LYrS`J z;!#en8qU3K@|i)iD7j`Po9zwN{zx$R84HcODO$~^X;C{LBM_4EQ3B_{y5fpit9+0W zc$^fvt z2esUkBfaTIdaWZ@670WPx7H-KcmOKr%2<6ZKz}lM%|&Z0a-1m`wx(m)YGKGQHH8cv zs&`o!*i8L0nq@8*Hn=(?nv$l!6>)K_YH(wY`M9C*fpP$e_d=F?$Q0%uM3GN7tp1EU z-$?8%|1_9Ld=ZM1DwHTZLByJ69{NL+l$%nX-A73&-w>muL`;nevltZcvyDt56mmBq z;>^ZXGy_<<_0!W>=)Q^GXtUSAG$l8i5vPhld=Kr_J? zdYY1q1k}aNWoWq#%?)sdg__&4fp5SH;%ZhrUi_+g8ysV6Hf)1)?BIqK6>C$>;C#9n zoVU#2U^WM^ronCMS_xo=-~qIT2hf*LRQuw^;x_d88Q$%n#T2&`-!lovxF%*OIc&mo zFN9f65hlhs8&*G74ajpT?f~{3>nSHCZ46d-BwZ5{Y zCWWV~={#Mvc&bm?mzAE*&=GmyJDNcK;lnN~QZyt2#>B=V*Zbg#M?T)Dv~u$j#U{8x zNfS4)o5*OwgrL2E-QHMCk0chHZB=wS(I5=Borc@&p`MZ=%CN>;t zUya%6T>JgI+EYlslg{EDi^Vf2YHpz~k<(o0A5n5DJJr~e8obMm{bY8$@@?qA@>F0u zJF3>T1N00AvD3g3vX9R`{K_UZ93aG-U^PP^9?oi(KnBD(fLA+e`g>ET%oox#3v!48 z-kP#+C~X^74Y*4&LH91`;C6V!Bav7*(5;1{J-iJx+eY1H+l*zh4chkeGT(Oq9ZL(z z+Fo6a8!Fe;J`>{90*DiRF(V1Gb6gIGmEb(cygzIinKTsLrzs(9KT#}+-mp8Q=(>#K zr?gKb#D!&_EfI*yMO7-0)@-qdH?wSPeg0HK_txl`hC?H)Z?HD=^CpUbZF#?@;7G0jeR}%c!nSFC4pro$GLO9P_D65{7Ri7!*1e^ee!@q}PAzxI{=6dnO zj;S4i`9OUM!Ov4KRF9)g_*Bb2RtONdx2d$CDL|LG7sm-)+qy3jGs*>cme;{vz zSjDBEsb*nWb;}>Pm)VhN?osUm8NR1KW4C3_dd%!PN2r}6O&WNs0FCqP-L#4RsKuyH zp2w+2fTy`xe6loJj7e*1g>v1Q;(^|D5A<3d*vebn6XdAKe$lxu{{)5@cU+ATO&<`L zy{n?)ND8d2>9Dq1u#SoBl}B3Wagn{?T|-ZatoG3#?LLWzF|@>6G6_2;1p%0ylf;9I z)sra}gwrXT3+8V&XVfX1&x_34{ZQdKu7iC7xx{}9NH0R761ga{6Wuj1$$r^gJ9SV1 z7Z)8jI+V>>Gfu^XX@Q(cL3mi0kMS@GXUwsRQ9#b}smdvV>|`H!WAv)Xf{$%maZ&)cJJwKFDd8U+ zkXFj^afqtur`f+fHdJs%fa-Q@D9A4Xu(-aK$sXNQ4JX;erWN=4EV8qkT3~|xep4xM z7?0Qs(H2M5v2$!!&oX*LWCwaSR9r_kEzjlior~!Tzi6pz=OXrIPet8rQ=YCFf!yLc zxGa#HDFCjd1GvJPd$-efL{_?a6}#Bm3D?+1y%qEhU-)vxdnw0nq#wUw;eS_TH#U2* zM}MHN_Ms2bbc1uKwC2ATWsmZu)G99l@-o#TpsFOE@mDOzOEylXiM zLv7~jU{vvMQ#2jp7v3~9nrlN7@s;BsR+}r2Dq%%e^^+i3J9;A;Ht!gxPJ`r5K=&(W zV5ri3+pef%<3{aS7}|pgUmH_~G&!uxW)|+3CwWPJ9)>PKn}fGI;`03#1w>{W`&)!7 zcrkORzm5in*bDuCiL>msfi9Hf;emgrDzNb_SA`j@>*@v>1lh}j&B7h5Rx^e^mwg2s zI9`_Tzz1w{=tWksz25l|*o}!9aE}Bd{=GgPJ|&&P?NSx^eL zr=>>~gZ;$kWJ~-j;UcT?D=2}#@jsha4|CTi87L@k;5!gw?*)FkfYR&ipOhEj7CSKN zMR{Bv?V`B?TQv4F;U%ZQu8nc0-+E zOsuCTWcJHLk6d_TVhAn_hsOa8@#m2SYyWYq18+} zR1D|YhC@@1iRwg3nDnUukE-^bIdb@r-4q92E8E_TTb^ln{+Px!9GpZm;a6u;hsX2CPAPd*!lT@>BcoM& z!pelLghQxA=NP@@F@Uo-;mn-z1)39V?om%E#yHSg(ZKGUrp&% zjqxbn5mSSBnQq661qIy*MKLO49m8*{F=G;!BNwKmPV<}PQ}GSbo;U!k>u}>92`_OZ zEpD}{A<5i!9~Aod zJPMcybwyJ#^?V*dAWrP1B5|zKVBwX#Mv^L7+QSQ^SmVQcaIzXkmGkb>#BCC)DN(B* zG|PMLa~xejnKC7^km0K85iYv8plpuM>5;JOwy-<|k}1=L`=wDW5}Gd)jB-54aT4V4 zB;qmApx985Iu`GW#gb%9Ar*W9Ti+_Yl3yT4toG-GzzIgJ2k(uXf3@O7QZXhro}iNQ zj{y2JgBK>i=vMw^HL delta 7129 zcma($4Nw$Un(uqvg9FUqpo0#7rilX%2n3WtMKBI-y7e|*ZEE8YtCHNMHs<10ti!!{rB!-~S8;E>O0L%1q)InoFJA6@ z-7~;|`;$sB-LJp*{r~&zY5G5mCJif^y!h<#q)W-Q;n2{a>B_?b5;7d~R&2>Ih%p<3~;al6YmR8_S^dxru(LZ=jc6Q%%bB1_&XavbLl`7-0vJR>D3uk+c+|>|9a-$n2A(GPh=K^22^&11Z$krv&{A$(w+ia8~zX|>kC9w%{!pT2%)jMMUE93I2!d=LQZhbJ>(_)5$s$Pa-8j5v>80? z?L{l#X?AVVqmE}m+7n&BQCd^h&9#0GVX1{&26ooIJlkEdR~`!ZWi1r(%Hgmhu4$1N z9N%W|r#4%rIsRH5|6P`Ckruxi!&zC;O~{vk2FqIPYzy=UWi1*}xOIQRyvvrE@8Lz! z{PJteZ(Wt#BJPBj#Wr}2owwu_w;0meb@_e<4%g0NsjZNJLsfjCpnvv+m?%rLZc9z3 z9M_w#5umK!>eSJ_8ArD|0o_{*(9NEZTkKQo2H_3Zzz(F9v8`#P@Q>`fX}jPio-b$r zomTC54;mXrqJh03pR5H!!Rp3hX&YKQpKV&4Up_`Hjd5r8hUJLt8;}D*S2z+F4rqbB zipq_M3b24Bx^@jAnQXajp2AEfu6uB^Cu}+EKY~Uz67%yp8q72O2{KHw+cS`k1hz(5 z9U!Ec8`en*P3-0LGP_f3<6L|K4(_$>$bPwr6{oLVJVnglj3~Z9IG_ZzDHcq3Cc7~X z>90wNe%1ABMX#<5g&^t@B=}7$Lw@Y)E zG=i-+6v9}~QKP+2Dn9KRd%)hX3;@>ejC*zyM%O+4bT{N+a(PO!4~GO{3@eVpL}VB#_<_aqe0QbN<8ML!kl^k6xU zoSJiOnGg>bH-^i*CRVx31w26V#_w-^Aod2IUzJ6Y3s9@@$EvDX=Rg7n7Gd(FBw0XO zW}Vh)JQ2->U?CIuL`#62S|nQPL!;a-<$%6`e+YSLk(p-?kv$aR*M=`xa9iq(Q==zJ$EtUc37 zZ(3M$RwiSaW%QQu_#c_8>F36yGiw#S%^x??yOzmkvfi-KFO4r9s|!*C0G5V`Ovtox z_R8uNi~S(AS5?IAB8u%gNB4#sz;m8m7J_FU`SfP4uSL?ka3`2Qi%u|rX# zLz)@=!y`68Ett*Q2SwuHlAs+TBB|9O3$3iYJddT9zC}xn$KRB0r}@U?6Au*#r!f-J zOYQ7O4_U^~05o<42ZN!}V0%Oks0EohWuL9|?#u8!Mnr>^WF8y`50VGpT zKUwZFUubCP4;AX7;RLhaT4?rLhFSwUl@fPFn{PnzM~4)DJ+@v19WI9#GjG5@WfW#9 zPVRGHp|#73lmr5|7ZSK_5V$9@pRZk>IxP~ih}=c1E#hKjxm}M$LeX$6kY~$dZaleW zRb*%0KO2&ac*5_maKaROw&Fp03)mYK1L${|?oGf`euhBgxB`#3ODQ%biz_qPzqvOW zj|FrZSWf*)_ITwIdJkBzG8dBBvz4o`w7mRSmO#4Ww?D6x@Jq@%C%p}n@_n$r zL}zDJ{Ws7uQdkr1k`X; zQ`$7_CAi55nC&`Akp$RtHHE@31y)kC!a+zkc3q-n1arU@(uvPBij?9=Q#Y+bFI>B+ z62{n*n`%>(w3rDcZ?b3~} z_%X%tWC}c)ot$8N=AO%QzbPRFn+`&cQ^T0mwh*qek7~Q%C@ZPk2(2toR|+TC$+}hW5__+1s%0WUwo?mbJ7vgr zIsxw5f_S^8hg)Wx@b5M|jjT`^PY$E?na&TvX*9Ieyy<_P`<%s+3}+}g!@cfxO0J5A z4W4hXvrp@@==In;vwKS6GJC`BK&iSs6L60GpQjw&W@QbP$(Jx8(swDj82kQo!^-jV z6#Y>zX1-S?6d@S`Tj|GB$Lf($6;W{PfxEgLy za^4ynV=iqeAAdK2_z(m-6U`9NL-Y(=J$EXX_%!0tKcfxaK)GukQ zv0mG>7CY<9R!gJ4O9-k;P>rhIUPb8}bNC`-VJ$T0+Fc42v8Fmc?_T9HO;d8o%0Aor z&=PzygDch^V!LpUGFNla_{9X~L0G^&U_XxR-}qyU%yxxny!$u!q2PNR|d!okU7TOZt$1(>}?$aO3GIHe+MJ}xsDLwlaU3Q|j`{*y0|yH>Wp zxw>dNK}UrPbyR5R2-4WEn*X8e9)izyg%UP}<#f$ejF_3cLj za7G%N-nPz>o`y=R5y*uU{I!!2J{(CTGmSNFFNX&9o$YJJn^0^XhJ5zJ=(FMt(Of4q z3nV##V5=~fVk`1AkH6dmaNbnU2!nn-4>&K)+@gCc`^>tSRkgTiej0nHxgZ-S4Ww_k zlk56Ox8F`~aHazSIm}MCL}_6f%W2)2s|et7MJp?cCH#YnlVUll4TK`NgizFB_Jh`T z`-lK#bwfj;QN_=fN!UGrnSIq-hIPZWBlkX^OVU{9j%s*{y|^PEIF2o52QFj!0{vqw zr7fGf)7YxEjYZ`s=IqRWaG{A08s@rWX3w@2+3R$DI*$mXhTGz(KsKZ?e@g-TqODbE zNVBlC;%w$^Z^C4MroBjLojFNjU$y&JHz!b=SV(Qcpw=|!-cLJL!D;rd9c#ur(iYBa zWw9k8&N!h6k5?i-*OiB(nX|EeK=BRY2IFxh5^B@8a-HC*)lb{Pif^YeHg|(%y?)ld zFLok>rA$A0LiZ2?AYT~!g)B({^ju}Q%-;lHzM+R zxWFFX^VWFdw$N|@^8}7_Ex2(}>%sv`br^MowZa=wM&*cK6)mF!A+t?%Ljo5uC@BUd z^@Sojcf-nXufiW?O@FWR`9iqAZSqT_vMTlCHZ90uOFiLGU>w_DuNLz58gsrmCyY$s zxMFeONBm~9iFXo+Dtv_}51|63*d5%oN<9X2kIsV}qrp*?dSXzVhygT9!x>b@N4!1wbX^}?K1oQo;4X4!L02&3a;LvkZ;gCfca9o43l+T4^!@3fB8grTGyPaNov^bC(7wf zV3PM++?h!|7Zy*su$PPu>l?!inmc)?ryOvmE9fnR{K=Ny)sQ-sgF<5ut$x$UzVG|( zyc>7e_x%4$r%KpgDQ`gytM2QkQ%&r2-vK(+%AEbLny=jvUzQ$GH1-332K&$c6>x;n z0R<-5z`#$^Omm9e6%We}{0-ExUj*KtN8~hn?#Z_>CYlDD;38v#9(t3q>x2I!ocx@! zSB8EnWWZLIr!Ez5(c6^u44-4a4DEmqSzfpeN3CdBU6wCY4=Q6`+=3_(FYXIMeTBkp zI{DH5W-3h6lF0|ge+ZNRrQrnYX505x;xhVsd$(u5(AA53D6hUf@ftb~MtO*Q*ulQs z`_HL$f?dbeEObu3KY9of4qC_F0oXlh`R>ml2Yadvq!H{ycd;cvcZgm15;9;1S^hqfq6 lPb{ISxO+zlF^Wpri^o ::subxt::runtime_api::Payload< - types::Version, - runtime_types::sp_version::RuntimeVersion, - > { + ) -> ::subxt::runtime_api::Payload + { ::subxt::runtime_api::Payload::new_static( "Core", "version", @@ -200,8 +198,9 @@ pub mod api { #[doc = " Execute the given block."] pub fn execute_block( &self, - block : runtime_types :: sp_runtime :: generic :: block :: Block < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > , :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > >, - ) -> ::subxt::runtime_api::Payload { + block: types::execute_block::Block, + ) -> ::subxt::runtime_api::Payload + { ::subxt::runtime_api::Payload::new_static( "Core", "execute_block", @@ -216,10 +215,11 @@ pub mod api { #[doc = " Initialize a block with the given header."] pub fn initialize_block( &self, - header: runtime_types::sp_runtime::generic::header::Header< - ::core::primitive::u32, - >, - ) -> ::subxt::runtime_api::Payload { + header: types::initialize_block::Header, + ) -> ::subxt::runtime_api::Payload< + types::InitializeBlock, + types::initialize_block::Output, + > { ::subxt::runtime_api::Payload::new_static( "Core", "initialize_block", @@ -245,6 +245,10 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Version {} + pub mod version { + use super::runtime_types; + pub type Output = runtime_types::sp_version::RuntimeVersion; + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -255,7 +259,14 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ExecuteBlock { pub block : runtime_types :: sp_runtime :: generic :: block :: Block < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > , :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > > , } + pub struct ExecuteBlock { + pub block: execute_block::Block, + } + pub mod execute_block { + use super::runtime_types; + pub type Block = runtime_types :: sp_runtime :: generic :: block :: Block < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > , :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > > ; + pub type Output = (); + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -267,8 +278,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct InitializeBlock { - pub header: - runtime_types::sp_runtime::generic::header::Header<::core::primitive::u32>, + pub header: initialize_block::Header, + } + pub mod initialize_block { + use super::runtime_types; + pub type Header = + runtime_types::sp_runtime::generic::header::Header<::core::primitive::u32>; + pub type Output = (); } } } @@ -281,10 +297,8 @@ pub mod api { #[doc = " Returns the metadata of a runtime."] pub fn metadata( &self, - ) -> ::subxt::runtime_api::Payload< - types::Metadata, - runtime_types::sp_core::OpaqueMetadata, - > { + ) -> ::subxt::runtime_api::Payload + { ::subxt::runtime_api::Payload::new_static( "Metadata", "metadata", @@ -302,10 +316,10 @@ pub mod api { #[doc = " Use [`Self::metadata_versions`] to find out about supported metadata version of the runtime."] pub fn metadata_at_version( &self, - version: ::core::primitive::u32, + version: types::metadata_at_version::Version, ) -> ::subxt::runtime_api::Payload< types::MetadataAtVersion, - ::core::option::Option, + types::metadata_at_version::Output, > { ::subxt::runtime_api::Payload::new_static( "Metadata", @@ -326,7 +340,7 @@ pub mod api { &self, ) -> ::subxt::runtime_api::Payload< types::MetadataVersions, - ::std::vec::Vec<::core::primitive::u32>, + types::metadata_versions::Output, > { ::subxt::runtime_api::Payload::new_static( "Metadata", @@ -354,6 +368,10 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Metadata {} + pub mod metadata { + use super::runtime_types; + pub type Output = runtime_types::sp_core::OpaqueMetadata; + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -365,7 +383,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct MetadataAtVersion { - pub version: ::core::primitive::u32, + pub version: metadata_at_version::Version, + } + pub mod metadata_at_version { + use super::runtime_types; + pub type Version = ::core::primitive::u32; + pub type Output = + ::core::option::Option; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -378,6 +402,10 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct MetadataVersions {} + pub mod metadata_versions { + use super::runtime_types; + pub type Output = ::std::vec::Vec<::core::primitive::u32>; + } } } pub mod block_builder { @@ -392,13 +420,10 @@ pub mod api { #[doc = " this block or not."] pub fn apply_extrinsic( &self, - extrinsic : :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) >, + extrinsic: types::apply_extrinsic::Extrinsic, ) -> ::subxt::runtime_api::Payload< types::ApplyExtrinsic, - ::core::result::Result< - ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, - runtime_types::sp_runtime::transaction_validity::TransactionValidityError, - >, + types::apply_extrinsic::Output, > { ::subxt::runtime_api::Payload::new_static( "BlockBuilder", @@ -416,7 +441,7 @@ pub mod api { &self, ) -> ::subxt::runtime_api::Payload< types::FinalizeBlock, - runtime_types::sp_runtime::generic::header::Header<::core::primitive::u32>, + types::finalize_block::Output, > { ::subxt::runtime_api::Payload::new_static( "BlockBuilder", @@ -429,7 +454,14 @@ pub mod api { ], ) } - #[doc = " Generate inherent extrinsics. The inherent data will vary from chain to chain."] pub fn inherent_extrinsics (& self , inherent : runtime_types :: sp_inherents :: InherentData ,) -> :: subxt :: runtime_api :: Payload < types :: InherentExtrinsics , :: std :: vec :: Vec < :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > > >{ + #[doc = " Generate inherent extrinsics. The inherent data will vary from chain to chain."] + pub fn inherent_extrinsics( + &self, + inherent: types::inherent_extrinsics::Inherent, + ) -> ::subxt::runtime_api::Payload< + types::InherentExtrinsics, + types::inherent_extrinsics::Output, + > { ::subxt::runtime_api::Payload::new_static( "BlockBuilder", "inherent_extrinsics", @@ -445,11 +477,11 @@ pub mod api { #[doc = " Check that the inherents are valid. The inherent data will vary from chain to chain."] pub fn check_inherents( &self, - block : runtime_types :: sp_runtime :: generic :: block :: Block < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > , :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > >, - data: runtime_types::sp_inherents::InherentData, + block: types::check_inherents::Block, + data: types::check_inherents::Data, ) -> ::subxt::runtime_api::Payload< types::CheckInherents, - runtime_types::sp_inherents::CheckInherentsResult, + types::check_inherents::Output, > { ::subxt::runtime_api::Payload::new_static( "BlockBuilder", @@ -476,7 +508,17 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ApplyExtrinsic { pub extrinsic : :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > , } + pub struct ApplyExtrinsic { + pub extrinsic: apply_extrinsic::Extrinsic, + } + pub mod apply_extrinsic { + use super::runtime_types; + pub type Extrinsic = :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > ; + pub type Output = ::core::result::Result< + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + runtime_types::sp_runtime::transaction_validity::TransactionValidityError, + >; + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -488,6 +530,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct FinalizeBlock {} + pub mod finalize_block { + use super::runtime_types; + pub type Output = + runtime_types::sp_runtime::generic::header::Header<::core::primitive::u32>; + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -499,7 +546,12 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct InherentExtrinsics { - pub inherent: runtime_types::sp_inherents::InherentData, + pub inherent: inherent_extrinsics::Inherent, + } + pub mod inherent_extrinsics { + use super::runtime_types; + pub type Inherent = runtime_types::sp_inherents::InherentData; + pub type Output = :: std :: vec :: Vec < :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > > ; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -511,7 +563,16 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct CheckInherents { pub block : runtime_types :: sp_runtime :: generic :: block :: Block < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > , :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > > , pub data : runtime_types :: sp_inherents :: InherentData , } + pub struct CheckInherents { + pub block: check_inherents::Block, + pub data: check_inherents::Data, + } + pub mod check_inherents { + use super::runtime_types; + pub type Block = runtime_types :: sp_runtime :: generic :: block :: Block < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > , :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > > ; + pub type Data = runtime_types::sp_inherents::InherentData; + pub type Output = runtime_types::sp_inherents::CheckInherentsResult; + } } } pub mod tagged_transaction_queue { @@ -531,15 +592,12 @@ pub mod api { #[doc = " might be verified in any possible order."] pub fn validate_transaction( &self, - source: runtime_types::sp_runtime::transaction_validity::TransactionSource, - tx : :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) >, - block_hash: ::subxt::utils::H256, + source: types::validate_transaction::Source, + tx: types::validate_transaction::Tx, + block_hash: types::validate_transaction::BlockHash, ) -> ::subxt::runtime_api::Payload< types::ValidateTransaction, - ::core::result::Result< - runtime_types::sp_runtime::transaction_validity::ValidTransaction, - runtime_types::sp_runtime::transaction_validity::TransactionValidityError, - >, + types::validate_transaction::Output, > { ::subxt::runtime_api::Payload::new_static( "TaggedTransactionQueue", @@ -569,7 +627,22 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ValidateTransaction { pub source : runtime_types :: sp_runtime :: transaction_validity :: TransactionSource , pub tx : :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > , pub block_hash : :: subxt :: utils :: H256 , } + pub struct ValidateTransaction { + pub source: validate_transaction::Source, + pub tx: validate_transaction::Tx, + pub block_hash: validate_transaction::BlockHash, + } + pub mod validate_transaction { + use super::runtime_types; + pub type Source = + runtime_types::sp_runtime::transaction_validity::TransactionSource; + pub type Tx = :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > ; + pub type BlockHash = ::subxt::utils::H256; + pub type Output = ::core::result::Result< + runtime_types::sp_runtime::transaction_validity::ValidTransaction, + runtime_types::sp_runtime::transaction_validity::TransactionValidityError, + >; + } } } pub mod offchain_worker_api { @@ -581,10 +654,11 @@ pub mod api { #[doc = " Starts the off-chain task for given block header."] pub fn offchain_worker( &self, - header: runtime_types::sp_runtime::generic::header::Header< - ::core::primitive::u32, - >, - ) -> ::subxt::runtime_api::Payload { + header: types::offchain_worker::Header, + ) -> ::subxt::runtime_api::Payload< + types::OffchainWorker, + types::offchain_worker::Output, + > { ::subxt::runtime_api::Payload::new_static( "OffchainWorkerApi", "offchain_worker", @@ -610,8 +684,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct OffchainWorker { - pub header: - runtime_types::sp_runtime::generic::header::Header<::core::primitive::u32>, + pub header: offchain_worker::Header, + } + pub mod offchain_worker { + use super::runtime_types; + pub type Header = + runtime_types::sp_runtime::generic::header::Header<::core::primitive::u32>; + pub type Output = (); } } } @@ -624,10 +703,8 @@ pub mod api { #[doc = " Get the current validators."] pub fn validators( &self, - ) -> ::subxt::runtime_api::Payload< - types::Validators, - ::std::vec::Vec, - > { + ) -> ::subxt::runtime_api::Payload + { ::subxt::runtime_api::Payload::new_static( "ParachainHost", "validators", @@ -647,14 +724,7 @@ pub mod api { &self, ) -> ::subxt::runtime_api::Payload< types::ValidatorGroups, - ( - ::std::vec::Vec< - ::std::vec::Vec, - >, - runtime_types::polkadot_primitives::v6::GroupRotationInfo< - ::core::primitive::u32, - >, - ), + types::validator_groups::Output, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", @@ -674,12 +744,7 @@ pub mod api { &self, ) -> ::subxt::runtime_api::Payload< types::AvailabilityCores, - ::std::vec::Vec< - runtime_types::polkadot_primitives::v6::CoreState< - ::subxt::utils::H256, - ::core::primitive::u32, - >, - >, + types::availability_cores::Output, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", @@ -699,16 +764,11 @@ pub mod api { #[doc = " and the para already occupies a core."] pub fn persisted_validation_data( &self, - para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, - assumption: runtime_types::polkadot_primitives::v6::OccupiedCoreAssumption, + para_id: types::persisted_validation_data::ParaId, + assumption: types::persisted_validation_data::Assumption, ) -> ::subxt::runtime_api::Payload< types::PersistedValidationData, - ::core::option::Option< - runtime_types::polkadot_primitives::v6::PersistedValidationData< - ::subxt::utils::H256, - ::core::primitive::u32, - >, - >, + types::persisted_validation_data::Output, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", @@ -726,7 +786,15 @@ pub mod api { } #[doc = " Returns the persisted validation data for the given `ParaId` along with the corresponding"] #[doc = " validation code hash. Instead of accepting assumption about the para, matches the validation"] - #[doc = " data hash against an expected one and yields `None` if they're not equal."] pub fn assumed_validation_data (& self , para_id : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , expected_persisted_validation_data_hash : :: subxt :: utils :: H256 ,) -> :: subxt :: runtime_api :: Payload < types :: AssumedValidationData , :: core :: option :: Option < (runtime_types :: polkadot_primitives :: v6 :: PersistedValidationData < :: subxt :: utils :: H256 , :: core :: primitive :: u32 > , runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash ,) > >{ + #[doc = " data hash against an expected one and yields `None` if they're not equal."] + pub fn assumed_validation_data( + &self, + para_id: types::assumed_validation_data::ParaId, + expected_persisted_validation_data_hash : types :: assumed_validation_data :: ExpectedPersistedValidationDataHash, + ) -> ::subxt::runtime_api::Payload< + types::AssumedValidationData, + types::assumed_validation_data::Output, + > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", "assumed_validation_data", @@ -744,13 +812,11 @@ pub mod api { #[doc = " Checks if the given validation outputs pass the acceptance criteria."] pub fn check_validation_outputs( &self, - para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, - outputs: runtime_types::polkadot_primitives::v6::CandidateCommitments< - ::core::primitive::u32, - >, + para_id: types::check_validation_outputs::ParaId, + outputs: types::check_validation_outputs::Outputs, ) -> ::subxt::runtime_api::Payload< types::CheckValidationOutputs, - ::core::primitive::bool, + types::check_validation_outputs::Output, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", @@ -771,7 +837,7 @@ pub mod api { &self, ) -> ::subxt::runtime_api::Payload< types::SessionIndexForChild, - ::core::primitive::u32, + types::session_index_for_child::Output, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", @@ -790,13 +856,11 @@ pub mod api { #[doc = " and the para already occupies a core."] pub fn validation_code( &self, - para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, - assumption: runtime_types::polkadot_primitives::v6::OccupiedCoreAssumption, + para_id: types::validation_code::ParaId, + assumption: types::validation_code::Assumption, ) -> ::subxt::runtime_api::Payload< types::ValidationCode, - ::core::option::Option< - runtime_types::polkadot_parachain_primitives::primitives::ValidationCode, - >, + types::validation_code::Output, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", @@ -817,14 +881,10 @@ pub mod api { #[doc = " assigned to occupied cores in `availability_cores` and `None` otherwise."] pub fn candidate_pending_availability( &self, - para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, + para_id: types::candidate_pending_availability::ParaId, ) -> ::subxt::runtime_api::Payload< types::CandidatePendingAvailability, - ::core::option::Option< - runtime_types::polkadot_primitives::v6::CommittedCandidateReceipt< - ::subxt::utils::H256, - >, - >, + types::candidate_pending_availability::Output, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", @@ -843,11 +903,7 @@ pub mod api { &self, ) -> ::subxt::runtime_api::Payload< types::CandidateEvents, - ::std::vec::Vec< - runtime_types::polkadot_primitives::v6::CandidateEvent< - ::subxt::utils::H256, - >, - >, + types::candidate_events::Output, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", @@ -864,15 +920,9 @@ pub mod api { #[doc = " Get all the pending inbound messages in the downward message queue for a para."] pub fn dmq_contents( &self, - recipient: runtime_types::polkadot_parachain_primitives::primitives::Id, - ) -> ::subxt::runtime_api::Payload< - types::DmqContents, - ::std::vec::Vec< - runtime_types::polkadot_core_primitives::InboundDownwardMessage< - ::core::primitive::u32, - >, - >, - > { + recipient: types::dmq_contents::Recipient, + ) -> ::subxt::runtime_api::Payload + { ::subxt::runtime_api::Payload::new_static( "ParachainHost", "dmq_contents", @@ -888,17 +938,10 @@ pub mod api { #[doc = " messages in them are also included."] pub fn inbound_hrmp_channels_contents( &self, - recipient: runtime_types::polkadot_parachain_primitives::primitives::Id, + recipient: types::inbound_hrmp_channels_contents::Recipient, ) -> ::subxt::runtime_api::Payload< types::InboundHrmpChannelsContents, - ::subxt::utils::KeyedVec< - runtime_types::polkadot_parachain_primitives::primitives::Id, - ::std::vec::Vec< - runtime_types::polkadot_core_primitives::InboundHrmpMessage< - ::core::primitive::u32, - >, - >, - >, + types::inbound_hrmp_channels_contents::Output, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", @@ -914,12 +957,10 @@ pub mod api { #[doc = " Get the validation code from its hash."] pub fn validation_code_by_hash( &self, - hash : runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash, + hash: types::validation_code_by_hash::Hash, ) -> ::subxt::runtime_api::Payload< types::ValidationCodeByHash, - ::core::option::Option< - runtime_types::polkadot_parachain_primitives::primitives::ValidationCode, - >, + types::validation_code_by_hash::Output, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", @@ -936,14 +977,8 @@ pub mod api { #[doc = " Scrape dispute relevant from on-chain, backing votes and resolved disputes."] pub fn on_chain_votes( &self, - ) -> ::subxt::runtime_api::Payload< - types::OnChainVotes, - ::core::option::Option< - runtime_types::polkadot_primitives::v6::ScrapedOnChainVotes< - ::subxt::utils::H256, - >, - >, - > { + ) -> ::subxt::runtime_api::Payload + { ::subxt::runtime_api::Payload::new_static( "ParachainHost", "on_chain_votes", @@ -960,11 +995,9 @@ pub mod api { #[doc = " NOTE: This function is only available since parachain host version 2."] pub fn session_info( &self, - index: ::core::primitive::u32, - ) -> ::subxt::runtime_api::Payload< - types::SessionInfo, - ::core::option::Option, - > { + index: types::session_info::Index, + ) -> ::subxt::runtime_api::Payload + { ::subxt::runtime_api::Payload::new_static( "ParachainHost", "session_info", @@ -982,10 +1015,12 @@ pub mod api { #[doc = " NOTE: This function is only available since parachain host version 2."] pub fn submit_pvf_check_statement( &self, - stmt: runtime_types::polkadot_primitives::v6::PvfCheckStatement, - signature: runtime_types::polkadot_primitives::v6::validator_app::Signature, - ) -> ::subxt::runtime_api::Payload - { + stmt: types::submit_pvf_check_statement::Stmt, + signature: types::submit_pvf_check_statement::Signature, + ) -> ::subxt::runtime_api::Payload< + types::SubmitPvfCheckStatement, + types::submit_pvf_check_statement::Output, + > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", "submit_pvf_check_statement", @@ -1000,7 +1035,13 @@ pub mod api { } #[doc = " Returns code hashes of PVFs that require pre-checking by validators in the active set."] #[doc = ""] - #[doc = " NOTE: This function is only available since parachain host version 2."] pub fn pvfs_require_precheck (& self ,) -> :: subxt :: runtime_api :: Payload < types :: PvfsRequirePrecheck , :: std :: vec :: Vec < runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash > >{ + #[doc = " NOTE: This function is only available since parachain host version 2."] + pub fn pvfs_require_precheck( + &self, + ) -> ::subxt::runtime_api::Payload< + types::PvfsRequirePrecheck, + types::pvfs_require_precheck::Output, + > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", "pvfs_require_precheck", @@ -1014,7 +1055,15 @@ pub mod api { } #[doc = " Fetch the hash of the validation code used by a para, making the given `OccupiedCoreAssumption`."] #[doc = ""] - #[doc = " NOTE: This function is only available since parachain host version 2."] pub fn validation_code_hash (& self , para_id : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , assumption : runtime_types :: polkadot_primitives :: v6 :: OccupiedCoreAssumption ,) -> :: subxt :: runtime_api :: Payload < types :: ValidationCodeHash , :: core :: option :: Option < runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash > >{ + #[doc = " NOTE: This function is only available since parachain host version 2."] + pub fn validation_code_hash( + &self, + para_id: types::validation_code_hash::ParaId, + assumption: types::validation_code_hash::Assumption, + ) -> ::subxt::runtime_api::Payload< + types::ValidationCodeHash, + types::validation_code_hash::Output, + > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", "validation_code_hash", @@ -1033,16 +1082,8 @@ pub mod api { #[doc = " Returns all onchain disputes."] pub fn disputes( &self, - ) -> ::subxt::runtime_api::Payload< - types::Disputes, - ::std::vec::Vec<( - ::core::primitive::u32, - runtime_types::polkadot_core_primitives::CandidateHash, - runtime_types::polkadot_primitives::v6::DisputeState< - ::core::primitive::u32, - >, - )>, - > { + ) -> ::subxt::runtime_api::Payload + { ::subxt::runtime_api::Payload::new_static( "ParachainHost", "disputes", @@ -1057,12 +1098,10 @@ pub mod api { #[doc = " Returns execution parameters for the session."] pub fn session_executor_params( &self, - session_index: ::core::primitive::u32, + session_index: types::session_executor_params::SessionIndex, ) -> ::subxt::runtime_api::Payload< types::SessionExecutorParams, - ::core::option::Option< - runtime_types::polkadot_primitives::v6::executor_params::ExecutorParams, - >, + types::session_executor_params::Output, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", @@ -1081,11 +1120,7 @@ pub mod api { &self, ) -> ::subxt::runtime_api::Payload< types::UnappliedSlashes, - ::std::vec::Vec<( - ::core::primitive::u32, - runtime_types::polkadot_core_primitives::CandidateHash, - runtime_types::polkadot_primitives::v6::slashing::PendingSlashes, - )>, + types::unapplied_slashes::Output, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", @@ -1102,12 +1137,10 @@ pub mod api { #[doc = " NOTE: This function is only available since parachain host version 5."] pub fn key_ownership_proof( &self, - validator_id: runtime_types::polkadot_primitives::v6::validator_app::Public, + validator_id: types::key_ownership_proof::ValidatorId, ) -> ::subxt::runtime_api::Payload< types::KeyOwnershipProof, - ::core::option::Option< - runtime_types::polkadot_primitives::v6::slashing::OpaqueKeyOwnershipProof, - >, + types::key_ownership_proof::Output, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", @@ -1125,11 +1158,11 @@ pub mod api { #[doc = " NOTE: This function is only available since parachain host version 5."] pub fn submit_report_dispute_lost( &self, - dispute_proof: runtime_types::polkadot_primitives::v6::slashing::DisputeProof, - key_ownership_proof : runtime_types :: polkadot_primitives :: v6 :: slashing :: OpaqueKeyOwnershipProof, + dispute_proof: types::submit_report_dispute_lost::DisputeProof, + key_ownership_proof: types::submit_report_dispute_lost::KeyOwnershipProof, ) -> ::subxt::runtime_api::Payload< types::SubmitReportDisputeLost, - ::core::option::Option<()>, + types::submit_report_dispute_lost::Output, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", @@ -1149,8 +1182,10 @@ pub mod api { #[doc = " This is a staging method! Do not use on production runtimes!"] pub fn minimum_backing_votes( &self, - ) -> ::subxt::runtime_api::Payload - { + ) -> ::subxt::runtime_api::Payload< + types::MinimumBackingVotes, + types::minimum_backing_votes::Output, + > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", "minimum_backing_votes", @@ -1166,15 +1201,10 @@ pub mod api { #[doc = " Returns the state of parachain backing for a given para."] pub fn para_backing_state( &self, - _0: runtime_types::polkadot_parachain_primitives::primitives::Id, + _0: types::para_backing_state::Param0, ) -> ::subxt::runtime_api::Payload< types::ParaBackingState, - ::core::option::Option< - runtime_types::polkadot_primitives::v6::async_backing::BackingState< - ::subxt::utils::H256, - ::core::primitive::u32, - >, - >, + types::para_backing_state::Output, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", @@ -1192,7 +1222,7 @@ pub mod api { &self, ) -> ::subxt::runtime_api::Payload< types::AsyncBackingParams, - runtime_types::polkadot_primitives::v6::async_backing::AsyncBackingParams, + types::async_backing_params::Output, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", @@ -1211,7 +1241,7 @@ pub mod api { &self, ) -> ::subxt::runtime_api::Payload< types::DisabledValidators, - ::std::vec::Vec, + types::disabled_validators::Output, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", @@ -1239,6 +1269,12 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Validators {} + pub mod validators { + use super::runtime_types; + pub type Output = ::std::vec::Vec< + runtime_types::polkadot_primitives::v6::validator_app::Public, + >; + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -1250,6 +1286,17 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ValidatorGroups {} + pub mod validator_groups { + use super::runtime_types; + pub type Output = ( + ::std::vec::Vec< + ::std::vec::Vec, + >, + runtime_types::polkadot_primitives::v6::GroupRotationInfo< + ::core::primitive::u32, + >, + ); + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -1261,6 +1308,15 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AvailabilityCores {} + pub mod availability_cores { + use super::runtime_types; + pub type Output = ::std::vec::Vec< + runtime_types::polkadot_primitives::v6::CoreState< + ::subxt::utils::H256, + ::core::primitive::u32, + >, + >; + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -1272,8 +1328,20 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PersistedValidationData { - pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub assumption: runtime_types::polkadot_primitives::v6::OccupiedCoreAssumption, + pub para_id: persisted_validation_data::ParaId, + pub assumption: persisted_validation_data::Assumption, + } + pub mod persisted_validation_data { + use super::runtime_types; + pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Assumption = + runtime_types::polkadot_primitives::v6::OccupiedCoreAssumption; + pub type Output = ::core::option::Option< + runtime_types::polkadot_primitives::v6::PersistedValidationData< + ::subxt::utils::H256, + ::core::primitive::u32, + >, + >; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1286,8 +1354,15 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AssumedValidationData { - pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub expected_persisted_validation_data_hash: ::subxt::utils::H256, + pub para_id: assumed_validation_data::ParaId, + pub expected_persisted_validation_data_hash: + assumed_validation_data::ExpectedPersistedValidationDataHash, + } + pub mod assumed_validation_data { + use super::runtime_types; + pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type ExpectedPersistedValidationDataHash = ::subxt::utils::H256; + pub type Output = :: core :: option :: Option < (runtime_types :: polkadot_primitives :: v6 :: PersistedValidationData < :: subxt :: utils :: H256 , :: core :: primitive :: u32 > , runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash ,) > ; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1300,10 +1375,16 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CheckValidationOutputs { - pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub outputs: runtime_types::polkadot_primitives::v6::CandidateCommitments< + pub para_id: check_validation_outputs::ParaId, + pub outputs: check_validation_outputs::Outputs, + } + pub mod check_validation_outputs { + use super::runtime_types; + pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Outputs = runtime_types::polkadot_primitives::v6::CandidateCommitments< ::core::primitive::u32, - >, + >; + pub type Output = ::core::primitive::bool; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1316,6 +1397,10 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SessionIndexForChild {} + pub mod session_index_for_child { + use super::runtime_types; + pub type Output = ::core::primitive::u32; + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -1327,8 +1412,17 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ValidationCode { - pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub assumption: runtime_types::polkadot_primitives::v6::OccupiedCoreAssumption, + pub para_id: validation_code::ParaId, + pub assumption: validation_code::Assumption, + } + pub mod validation_code { + use super::runtime_types; + pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Assumption = + runtime_types::polkadot_primitives::v6::OccupiedCoreAssumption; + pub type Output = ::core::option::Option< + runtime_types::polkadot_parachain_primitives::primitives::ValidationCode, + >; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1341,7 +1435,16 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CandidatePendingAvailability { - pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub para_id: candidate_pending_availability::ParaId, + } + pub mod candidate_pending_availability { + use super::runtime_types; + pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Output = ::core::option::Option< + runtime_types::polkadot_primitives::v6::CommittedCandidateReceipt< + ::subxt::utils::H256, + >, + >; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1354,6 +1457,14 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CandidateEvents {} + pub mod candidate_events { + use super::runtime_types; + pub type Output = ::std::vec::Vec< + runtime_types::polkadot_primitives::v6::CandidateEvent< + ::subxt::utils::H256, + >, + >; + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -1365,7 +1476,17 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct DmqContents { - pub recipient: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub recipient: dmq_contents::Recipient, + } + pub mod dmq_contents { + use super::runtime_types; + pub type Recipient = + runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Output = ::std::vec::Vec< + runtime_types::polkadot_core_primitives::InboundDownwardMessage< + ::core::primitive::u32, + >, + >; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1378,7 +1499,20 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct InboundHrmpChannelsContents { - pub recipient: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub recipient: inbound_hrmp_channels_contents::Recipient, + } + pub mod inbound_hrmp_channels_contents { + use super::runtime_types; + pub type Recipient = + runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Output = ::subxt::utils::KeyedVec< + runtime_types::polkadot_parachain_primitives::primitives::Id, + ::std::vec::Vec< + runtime_types::polkadot_core_primitives::InboundHrmpMessage< + ::core::primitive::u32, + >, + >, + >; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1390,7 +1524,16 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ValidationCodeByHash { pub hash : runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash , } + pub struct ValidationCodeByHash { + pub hash: validation_code_by_hash::Hash, + } + pub mod validation_code_by_hash { + use super::runtime_types; + pub type Hash = runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash ; + pub type Output = ::core::option::Option< + runtime_types::polkadot_parachain_primitives::primitives::ValidationCode, + >; + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -1402,6 +1545,14 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct OnChainVotes {} + pub mod on_chain_votes { + use super::runtime_types; + pub type Output = ::core::option::Option< + runtime_types::polkadot_primitives::v6::ScrapedOnChainVotes< + ::subxt::utils::H256, + >, + >; + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -1413,7 +1564,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SessionInfo { - pub index: ::core::primitive::u32, + pub index: session_info::Index, + } + pub mod session_info { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Output = + ::core::option::Option; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1426,8 +1583,15 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SubmitPvfCheckStatement { - pub stmt: runtime_types::polkadot_primitives::v6::PvfCheckStatement, - pub signature: runtime_types::polkadot_primitives::v6::validator_app::Signature, + pub stmt: submit_pvf_check_statement::Stmt, + pub signature: submit_pvf_check_statement::Signature, + } + pub mod submit_pvf_check_statement { + use super::runtime_types; + pub type Stmt = runtime_types::polkadot_primitives::v6::PvfCheckStatement; + pub type Signature = + runtime_types::polkadot_primitives::v6::validator_app::Signature; + pub type Output = (); } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1440,6 +1604,10 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PvfsRequirePrecheck {} + pub mod pvfs_require_precheck { + use super::runtime_types; + pub type Output = :: std :: vec :: Vec < runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash > ; + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -1451,8 +1619,15 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ValidationCodeHash { - pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub assumption: runtime_types::polkadot_primitives::v6::OccupiedCoreAssumption, + pub para_id: validation_code_hash::ParaId, + pub assumption: validation_code_hash::Assumption, + } + pub mod validation_code_hash { + use super::runtime_types; + pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Assumption = + runtime_types::polkadot_primitives::v6::OccupiedCoreAssumption; + pub type Output = :: core :: option :: Option < runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash > ; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1465,6 +1640,16 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Disputes {} + pub mod disputes { + use super::runtime_types; + pub type Output = ::std::vec::Vec<( + ::core::primitive::u32, + runtime_types::polkadot_core_primitives::CandidateHash, + runtime_types::polkadot_primitives::v6::DisputeState< + ::core::primitive::u32, + >, + )>; + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -1476,7 +1661,14 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SessionExecutorParams { - pub session_index: ::core::primitive::u32, + pub session_index: session_executor_params::SessionIndex, + } + pub mod session_executor_params { + use super::runtime_types; + pub type SessionIndex = ::core::primitive::u32; + pub type Output = ::core::option::Option< + runtime_types::polkadot_primitives::v6::executor_params::ExecutorParams, + >; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1489,6 +1681,14 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UnappliedSlashes {} + pub mod unapplied_slashes { + use super::runtime_types; + pub type Output = ::std::vec::Vec<( + ::core::primitive::u32, + runtime_types::polkadot_core_primitives::CandidateHash, + runtime_types::polkadot_primitives::v6::slashing::PendingSlashes, + )>; + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -1500,7 +1700,15 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct KeyOwnershipProof { - pub validator_id: runtime_types::polkadot_primitives::v6::validator_app::Public, + pub validator_id: key_ownership_proof::ValidatorId, + } + pub mod key_ownership_proof { + use super::runtime_types; + pub type ValidatorId = + runtime_types::polkadot_primitives::v6::validator_app::Public; + pub type Output = ::core::option::Option< + runtime_types::polkadot_primitives::v6::slashing::OpaqueKeyOwnershipProof, + >; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1513,10 +1721,16 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SubmitReportDisputeLost { - pub dispute_proof: - runtime_types::polkadot_primitives::v6::slashing::DisputeProof, - pub key_ownership_proof: - runtime_types::polkadot_primitives::v6::slashing::OpaqueKeyOwnershipProof, + pub dispute_proof: submit_report_dispute_lost::DisputeProof, + pub key_ownership_proof: submit_report_dispute_lost::KeyOwnershipProof, + } + pub mod submit_report_dispute_lost { + use super::runtime_types; + pub type DisputeProof = + runtime_types::polkadot_primitives::v6::slashing::DisputeProof; + pub type KeyOwnershipProof = + runtime_types::polkadot_primitives::v6::slashing::OpaqueKeyOwnershipProof; + pub type Output = ::core::option::Option<()>; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1529,6 +1743,10 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct MinimumBackingVotes {} + pub mod minimum_backing_votes { + use super::runtime_types; + pub type Output = ::core::primitive::u32; + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -1540,7 +1758,17 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ParaBackingState { - pub _0: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub _0: para_backing_state::Param0, + } + pub mod para_backing_state { + use super::runtime_types; + pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Output = ::core::option::Option< + runtime_types::polkadot_primitives::v6::async_backing::BackingState< + ::subxt::utils::H256, + ::core::primitive::u32, + >, + >; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1553,6 +1781,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AsyncBackingParams {} + pub mod async_backing_params { + use super::runtime_types; + pub type Output = + runtime_types::polkadot_primitives::v6::async_backing::AsyncBackingParams; + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -1564,6 +1797,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct DisabledValidators {} + pub mod disabled_validators { + use super::runtime_types; + pub type Output = + ::std::vec::Vec; + } } } pub mod beefy_api { @@ -1575,10 +1813,8 @@ pub mod api { #[doc = " Return the block number where BEEFY consensus is enabled/started"] pub fn beefy_genesis( &self, - ) -> ::subxt::runtime_api::Payload< - types::BeefyGenesis, - ::core::option::Option<::core::primitive::u32>, - > { + ) -> ::subxt::runtime_api::Payload + { ::subxt::runtime_api::Payload::new_static( "BeefyApi", "beefy_genesis", @@ -1594,14 +1830,8 @@ pub mod api { #[doc = " Return the current active BEEFY validator set"] pub fn validator_set( &self, - ) -> ::subxt::runtime_api::Payload< - types::ValidatorSet, - ::core::option::Option< - runtime_types::sp_consensus_beefy::ValidatorSet< - runtime_types::sp_consensus_beefy::ecdsa_crypto::Public, - >, - >, - > { + ) -> ::subxt::runtime_api::Payload + { ::subxt::runtime_api::Payload::new_static( "BeefyApi", "validator_set", @@ -1623,15 +1853,11 @@ pub mod api { #[doc = " hardcoded to return `None`). Only useful in an offchain context."] pub fn submit_report_equivocation_unsigned_extrinsic( &self, - equivocation_proof: runtime_types::sp_consensus_beefy::EquivocationProof< - ::core::primitive::u32, - runtime_types::sp_consensus_beefy::ecdsa_crypto::Public, - runtime_types::sp_consensus_beefy::ecdsa_crypto::Signature, - >, - key_owner_proof: runtime_types::sp_consensus_beefy::OpaqueKeyOwnershipProof, + equivocation_proof : types :: submit_report_equivocation_unsigned_extrinsic :: EquivocationProof, + key_owner_proof : types :: submit_report_equivocation_unsigned_extrinsic :: KeyOwnerProof, ) -> ::subxt::runtime_api::Payload< types::SubmitReportEquivocationUnsignedExtrinsic, - ::core::option::Option<()>, + types::submit_report_equivocation_unsigned_extrinsic::Output, > { ::subxt::runtime_api::Payload::new_static( "BeefyApi", @@ -1661,13 +1887,11 @@ pub mod api { #[doc = " older states to be available."] pub fn generate_key_ownership_proof( &self, - set_id: ::core::primitive::u64, - authority_id: runtime_types::sp_consensus_beefy::ecdsa_crypto::Public, + set_id: types::generate_key_ownership_proof::SetId, + authority_id: types::generate_key_ownership_proof::AuthorityId, ) -> ::subxt::runtime_api::Payload< types::GenerateKeyOwnershipProof, - ::core::option::Option< - runtime_types::sp_consensus_beefy::OpaqueKeyOwnershipProof, - >, + types::generate_key_ownership_proof::Output, > { ::subxt::runtime_api::Payload::new_static( "BeefyApi", @@ -1697,6 +1921,10 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BeefyGenesis {} + pub mod beefy_genesis { + use super::runtime_types; + pub type Output = ::core::option::Option<::core::primitive::u32>; + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -1708,6 +1936,14 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ValidatorSet {} + pub mod validator_set { + use super::runtime_types; + pub type Output = ::core::option::Option< + runtime_types::sp_consensus_beefy::ValidatorSet< + runtime_types::sp_consensus_beefy::ecdsa_crypto::Public, + >, + >; + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -1719,12 +1955,22 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SubmitReportEquivocationUnsignedExtrinsic { - pub equivocation_proof: runtime_types::sp_consensus_beefy::EquivocationProof< - ::core::primitive::u32, - runtime_types::sp_consensus_beefy::ecdsa_crypto::Public, - runtime_types::sp_consensus_beefy::ecdsa_crypto::Signature, - >, - pub key_owner_proof: runtime_types::sp_consensus_beefy::OpaqueKeyOwnershipProof, + pub equivocation_proof: + submit_report_equivocation_unsigned_extrinsic::EquivocationProof, + pub key_owner_proof: + submit_report_equivocation_unsigned_extrinsic::KeyOwnerProof, + } + pub mod submit_report_equivocation_unsigned_extrinsic { + use super::runtime_types; + pub type EquivocationProof = + runtime_types::sp_consensus_beefy::EquivocationProof< + ::core::primitive::u32, + runtime_types::sp_consensus_beefy::ecdsa_crypto::Public, + runtime_types::sp_consensus_beefy::ecdsa_crypto::Signature, + >; + pub type KeyOwnerProof = + runtime_types::sp_consensus_beefy::OpaqueKeyOwnershipProof; + pub type Output = ::core::option::Option<()>; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1737,8 +1983,16 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct GenerateKeyOwnershipProof { - pub set_id: ::core::primitive::u64, - pub authority_id: runtime_types::sp_consensus_beefy::ecdsa_crypto::Public, + pub set_id: generate_key_ownership_proof::SetId, + pub authority_id: generate_key_ownership_proof::AuthorityId, + } + pub mod generate_key_ownership_proof { + use super::runtime_types; + pub type SetId = ::core::primitive::u64; + pub type AuthorityId = runtime_types::sp_consensus_beefy::ecdsa_crypto::Public; + pub type Output = ::core::option::Option< + runtime_types::sp_consensus_beefy::OpaqueKeyOwnershipProof, + >; } } } @@ -1751,13 +2005,8 @@ pub mod api { #[doc = " Return the on-chain MMR root hash."] pub fn mmr_root( &self, - ) -> ::subxt::runtime_api::Payload< - types::MmrRoot, - ::core::result::Result< - ::subxt::utils::H256, - runtime_types::sp_mmr_primitives::Error, - >, - > { + ) -> ::subxt::runtime_api::Payload + { ::subxt::runtime_api::Payload::new_static( "MmrApi", "mmr_root", @@ -1772,13 +2021,8 @@ pub mod api { #[doc = " Return the number of MMR blocks in the chain."] pub fn mmr_leaf_count( &self, - ) -> ::subxt::runtime_api::Payload< - types::MmrLeafCount, - ::core::result::Result< - ::core::primitive::u64, - runtime_types::sp_mmr_primitives::Error, - >, - > { + ) -> ::subxt::runtime_api::Payload + { ::subxt::runtime_api::Payload::new_static( "MmrApi", "mmr_leaf_count", @@ -1795,17 +2039,11 @@ pub mod api { #[doc = " use historical MMR state at given block height `n`. Else, use current MMR state."] pub fn generate_proof( &self, - block_numbers: ::std::vec::Vec<::core::primitive::u32>, - best_known_block_number: ::core::option::Option<::core::primitive::u32>, + block_numbers: types::generate_proof::BlockNumbers, + best_known_block_number: types::generate_proof::BestKnownBlockNumber, ) -> ::subxt::runtime_api::Payload< types::GenerateProof, - ::core::result::Result< - ( - ::std::vec::Vec, - runtime_types::sp_mmr_primitives::Proof<::subxt::utils::H256>, - ), - runtime_types::sp_mmr_primitives::Error, - >, + types::generate_proof::Output, > { ::subxt::runtime_api::Payload::new_static( "MmrApi", @@ -1829,12 +2067,10 @@ pub mod api { #[doc = " same position in both the `leaves` vector and the `leaf_indices` vector contained in the [Proof]"] pub fn verify_proof( &self, - leaves: ::std::vec::Vec, - proof: runtime_types::sp_mmr_primitives::Proof<::subxt::utils::H256>, - ) -> ::subxt::runtime_api::Payload< - types::VerifyProof, - ::core::result::Result<(), runtime_types::sp_mmr_primitives::Error>, - > { + leaves: types::verify_proof::Leaves, + proof: types::verify_proof::Proof, + ) -> ::subxt::runtime_api::Payload + { ::subxt::runtime_api::Payload::new_static( "MmrApi", "verify_proof", @@ -1856,12 +2092,12 @@ pub mod api { #[doc = " same position in both the `leaves` vector and the `leaf_indices` vector contained in the [Proof]"] pub fn verify_proof_stateless( &self, - root: ::subxt::utils::H256, - leaves: ::std::vec::Vec, - proof: runtime_types::sp_mmr_primitives::Proof<::subxt::utils::H256>, + root: types::verify_proof_stateless::Root, + leaves: types::verify_proof_stateless::Leaves, + proof: types::verify_proof_stateless::Proof, ) -> ::subxt::runtime_api::Payload< types::VerifyProofStateless, - ::core::result::Result<(), runtime_types::sp_mmr_primitives::Error>, + types::verify_proof_stateless::Output, > { ::subxt::runtime_api::Payload::new_static( "MmrApi", @@ -1892,6 +2128,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct MmrRoot {} + pub mod mmr_root { + use super::runtime_types; + pub type Output = ::core::result::Result< + ::subxt::utils::H256, + runtime_types::sp_mmr_primitives::Error, + >; + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -1903,6 +2146,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct MmrLeafCount {} + pub mod mmr_leaf_count { + use super::runtime_types; + pub type Output = ::core::result::Result< + ::core::primitive::u64, + runtime_types::sp_mmr_primitives::Error, + >; + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -1914,8 +2164,20 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct GenerateProof { - pub block_numbers: ::std::vec::Vec<::core::primitive::u32>, - pub best_known_block_number: ::core::option::Option<::core::primitive::u32>, + pub block_numbers: generate_proof::BlockNumbers, + pub best_known_block_number: generate_proof::BestKnownBlockNumber, + } + pub mod generate_proof { + use super::runtime_types; + pub type BlockNumbers = ::std::vec::Vec<::core::primitive::u32>; + pub type BestKnownBlockNumber = ::core::option::Option<::core::primitive::u32>; + pub type Output = ::core::result::Result< + ( + ::std::vec::Vec, + runtime_types::sp_mmr_primitives::Proof<::subxt::utils::H256>, + ), + runtime_types::sp_mmr_primitives::Error, + >; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1928,9 +2190,16 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct VerifyProof { - pub leaves: - ::std::vec::Vec, - pub proof: runtime_types::sp_mmr_primitives::Proof<::subxt::utils::H256>, + pub leaves: verify_proof::Leaves, + pub proof: verify_proof::Proof, + } + pub mod verify_proof { + use super::runtime_types; + pub type Leaves = + ::std::vec::Vec; + pub type Proof = runtime_types::sp_mmr_primitives::Proof<::subxt::utils::H256>; + pub type Output = + ::core::result::Result<(), runtime_types::sp_mmr_primitives::Error>; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1943,10 +2212,18 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct VerifyProofStateless { - pub root: ::subxt::utils::H256, - pub leaves: - ::std::vec::Vec, - pub proof: runtime_types::sp_mmr_primitives::Proof<::subxt::utils::H256>, + pub root: verify_proof_stateless::Root, + pub leaves: verify_proof_stateless::Leaves, + pub proof: verify_proof_stateless::Proof, + } + pub mod verify_proof_stateless { + use super::runtime_types; + pub type Root = ::subxt::utils::H256; + pub type Leaves = + ::std::vec::Vec; + pub type Proof = runtime_types::sp_mmr_primitives::Proof<::subxt::utils::H256>; + pub type Output = + ::core::result::Result<(), runtime_types::sp_mmr_primitives::Error>; } } } @@ -1974,10 +2251,7 @@ pub mod api { &self, ) -> ::subxt::runtime_api::Payload< types::GrandpaAuthorities, - ::std::vec::Vec<( - runtime_types::sp_consensus_grandpa::app::Public, - ::core::primitive::u64, - )>, + types::grandpa_authorities::Output, > { ::subxt::runtime_api::Payload::new_static( "GrandpaApi", @@ -2001,14 +2275,11 @@ pub mod api { #[doc = " hardcoded to return `None`). Only useful in an offchain context."] pub fn submit_report_equivocation_unsigned_extrinsic( &self, - equivocation_proof: runtime_types::sp_consensus_grandpa::EquivocationProof< - ::subxt::utils::H256, - ::core::primitive::u32, - >, - key_owner_proof: runtime_types::sp_consensus_grandpa::OpaqueKeyOwnershipProof, + equivocation_proof : types :: submit_report_equivocation_unsigned_extrinsic :: EquivocationProof, + key_owner_proof : types :: submit_report_equivocation_unsigned_extrinsic :: KeyOwnerProof, ) -> ::subxt::runtime_api::Payload< types::SubmitReportEquivocationUnsignedExtrinsic, - ::core::option::Option<()>, + types::submit_report_equivocation_unsigned_extrinsic::Output, > { ::subxt::runtime_api::Payload::new_static( "GrandpaApi", @@ -2038,13 +2309,11 @@ pub mod api { #[doc = " older states to be available."] pub fn generate_key_ownership_proof( &self, - set_id: ::core::primitive::u64, - authority_id: runtime_types::sp_consensus_grandpa::app::Public, + set_id: types::generate_key_ownership_proof::SetId, + authority_id: types::generate_key_ownership_proof::AuthorityId, ) -> ::subxt::runtime_api::Payload< types::GenerateKeyOwnershipProof, - ::core::option::Option< - runtime_types::sp_consensus_grandpa::OpaqueKeyOwnershipProof, - >, + types::generate_key_ownership_proof::Output, > { ::subxt::runtime_api::Payload::new_static( "GrandpaApi", @@ -2064,7 +2333,7 @@ pub mod api { #[doc = " Get current GRANDPA authority set id."] pub fn current_set_id( &self, - ) -> ::subxt::runtime_api::Payload + ) -> ::subxt::runtime_api::Payload { ::subxt::runtime_api::Payload::new_static( "GrandpaApi", @@ -2092,6 +2361,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct GrandpaAuthorities {} + pub mod grandpa_authorities { + use super::runtime_types; + pub type Output = ::std::vec::Vec<( + runtime_types::sp_consensus_grandpa::app::Public, + ::core::primitive::u64, + )>; + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -2103,12 +2379,21 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SubmitReportEquivocationUnsignedExtrinsic { - pub equivocation_proof: runtime_types::sp_consensus_grandpa::EquivocationProof< - ::subxt::utils::H256, - ::core::primitive::u32, - >, + pub equivocation_proof: + submit_report_equivocation_unsigned_extrinsic::EquivocationProof, pub key_owner_proof: - runtime_types::sp_consensus_grandpa::OpaqueKeyOwnershipProof, + submit_report_equivocation_unsigned_extrinsic::KeyOwnerProof, + } + pub mod submit_report_equivocation_unsigned_extrinsic { + use super::runtime_types; + pub type EquivocationProof = + runtime_types::sp_consensus_grandpa::EquivocationProof< + ::subxt::utils::H256, + ::core::primitive::u32, + >; + pub type KeyOwnerProof = + runtime_types::sp_consensus_grandpa::OpaqueKeyOwnershipProof; + pub type Output = ::core::option::Option<()>; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -2121,8 +2406,16 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct GenerateKeyOwnershipProof { - pub set_id: ::core::primitive::u64, - pub authority_id: runtime_types::sp_consensus_grandpa::app::Public, + pub set_id: generate_key_ownership_proof::SetId, + pub authority_id: generate_key_ownership_proof::AuthorityId, + } + pub mod generate_key_ownership_proof { + use super::runtime_types; + pub type SetId = ::core::primitive::u64; + pub type AuthorityId = runtime_types::sp_consensus_grandpa::app::Public; + pub type Output = ::core::option::Option< + runtime_types::sp_consensus_grandpa::OpaqueKeyOwnershipProof, + >; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -2135,6 +2428,10 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CurrentSetId {} + pub mod current_set_id { + use super::runtime_types; + pub type Output = ::core::primitive::u64; + } } } pub mod babe_api { @@ -2146,10 +2443,8 @@ pub mod api { #[doc = " Return the configuration for BABE."] pub fn configuration( &self, - ) -> ::subxt::runtime_api::Payload< - types::Configuration, - runtime_types::sp_consensus_babe::BabeConfiguration, - > { + ) -> ::subxt::runtime_api::Payload + { ::subxt::runtime_api::Payload::new_static( "BabeApi", "configuration", @@ -2166,7 +2461,7 @@ pub mod api { &self, ) -> ::subxt::runtime_api::Payload< types::CurrentEpochStart, - runtime_types::sp_consensus_slots::Slot, + types::current_epoch_start::Output, > { ::subxt::runtime_api::Payload::new_static( "BabeApi", @@ -2183,10 +2478,8 @@ pub mod api { #[doc = " Returns information regarding the current epoch."] pub fn current_epoch( &self, - ) -> ::subxt::runtime_api::Payload< - types::CurrentEpoch, - runtime_types::sp_consensus_babe::Epoch, - > { + ) -> ::subxt::runtime_api::Payload + { ::subxt::runtime_api::Payload::new_static( "BabeApi", "current_epoch", @@ -2202,10 +2495,8 @@ pub mod api { #[doc = " previously announced)."] pub fn next_epoch( &self, - ) -> ::subxt::runtime_api::Payload< - types::NextEpoch, - runtime_types::sp_consensus_babe::Epoch, - > { + ) -> ::subxt::runtime_api::Payload + { ::subxt::runtime_api::Payload::new_static( "BabeApi", "next_epoch", @@ -2231,13 +2522,11 @@ pub mod api { #[doc = " worker, not requiring older states to be available."] pub fn generate_key_ownership_proof( &self, - slot: runtime_types::sp_consensus_slots::Slot, - authority_id: runtime_types::sp_consensus_babe::app::Public, + slot: types::generate_key_ownership_proof::Slot, + authority_id: types::generate_key_ownership_proof::AuthorityId, ) -> ::subxt::runtime_api::Payload< types::GenerateKeyOwnershipProof, - ::core::option::Option< - runtime_types::sp_consensus_babe::OpaqueKeyOwnershipProof, - >, + types::generate_key_ownership_proof::Output, > { ::subxt::runtime_api::Payload::new_static( "BabeApi", @@ -2261,14 +2550,11 @@ pub mod api { #[doc = " hardcoded to return `None`). Only useful in an offchain context."] pub fn submit_report_equivocation_unsigned_extrinsic( &self, - equivocation_proof: runtime_types::sp_consensus_slots::EquivocationProof< - runtime_types::sp_runtime::generic::header::Header<::core::primitive::u32>, - runtime_types::sp_consensus_babe::app::Public, - >, - key_owner_proof: runtime_types::sp_consensus_babe::OpaqueKeyOwnershipProof, + equivocation_proof : types :: submit_report_equivocation_unsigned_extrinsic :: EquivocationProof, + key_owner_proof : types :: submit_report_equivocation_unsigned_extrinsic :: KeyOwnerProof, ) -> ::subxt::runtime_api::Payload< types::SubmitReportEquivocationUnsignedExtrinsic, - ::core::option::Option<()>, + types::submit_report_equivocation_unsigned_extrinsic::Output, > { ::subxt::runtime_api::Payload::new_static( "BabeApi", @@ -2298,6 +2584,10 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Configuration {} + pub mod configuration { + use super::runtime_types; + pub type Output = runtime_types::sp_consensus_babe::BabeConfiguration; + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -2309,6 +2599,10 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CurrentEpochStart {} + pub mod current_epoch_start { + use super::runtime_types; + pub type Output = runtime_types::sp_consensus_slots::Slot; + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -2320,6 +2614,10 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CurrentEpoch {} + pub mod current_epoch { + use super::runtime_types; + pub type Output = runtime_types::sp_consensus_babe::Epoch; + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -2331,6 +2629,10 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct NextEpoch {} + pub mod next_epoch { + use super::runtime_types; + pub type Output = runtime_types::sp_consensus_babe::Epoch; + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -2342,8 +2644,16 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct GenerateKeyOwnershipProof { - pub slot: runtime_types::sp_consensus_slots::Slot, - pub authority_id: runtime_types::sp_consensus_babe::app::Public, + pub slot: generate_key_ownership_proof::Slot, + pub authority_id: generate_key_ownership_proof::AuthorityId, + } + pub mod generate_key_ownership_proof { + use super::runtime_types; + pub type Slot = runtime_types::sp_consensus_slots::Slot; + pub type AuthorityId = runtime_types::sp_consensus_babe::app::Public; + pub type Output = ::core::option::Option< + runtime_types::sp_consensus_babe::OpaqueKeyOwnershipProof, + >; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -2356,11 +2666,23 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SubmitReportEquivocationUnsignedExtrinsic { - pub equivocation_proof: runtime_types::sp_consensus_slots::EquivocationProof< - runtime_types::sp_runtime::generic::header::Header<::core::primitive::u32>, - runtime_types::sp_consensus_babe::app::Public, - >, - pub key_owner_proof: runtime_types::sp_consensus_babe::OpaqueKeyOwnershipProof, + pub equivocation_proof: + submit_report_equivocation_unsigned_extrinsic::EquivocationProof, + pub key_owner_proof: + submit_report_equivocation_unsigned_extrinsic::KeyOwnerProof, + } + pub mod submit_report_equivocation_unsigned_extrinsic { + use super::runtime_types; + pub type EquivocationProof = + runtime_types::sp_consensus_slots::EquivocationProof< + runtime_types::sp_runtime::generic::header::Header< + ::core::primitive::u32, + >, + runtime_types::sp_consensus_babe::app::Public, + >; + pub type KeyOwnerProof = + runtime_types::sp_consensus_babe::OpaqueKeyOwnershipProof; + pub type Output = ::core::option::Option<()>; } } } @@ -2376,10 +2698,8 @@ pub mod api { #[doc = " Retrieve authority identifiers of the current and next authority set."] pub fn authorities( &self, - ) -> ::subxt::runtime_api::Payload< - types::Authorities, - ::std::vec::Vec, - > { + ) -> ::subxt::runtime_api::Payload + { ::subxt::runtime_api::Payload::new_static( "AuthorityDiscoveryApi", "authorities", @@ -2405,6 +2725,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Authorities {} + pub mod authorities { + use super::runtime_types; + pub type Output = + ::std::vec::Vec; + } } } pub mod session_keys { @@ -2422,10 +2747,10 @@ pub mod api { #[doc = " Returns the concatenated SCALE encoded public keys."] pub fn generate_session_keys( &self, - seed: ::core::option::Option<::std::vec::Vec<::core::primitive::u8>>, + seed: types::generate_session_keys::Seed, ) -> ::subxt::runtime_api::Payload< types::GenerateSessionKeys, - ::std::vec::Vec<::core::primitive::u8>, + types::generate_session_keys::Output, > { ::subxt::runtime_api::Payload::new_static( "SessionKeys", @@ -2443,15 +2768,10 @@ pub mod api { #[doc = " Returns the list of public raw public keys + key type."] pub fn decode_session_keys( &self, - encoded: ::std::vec::Vec<::core::primitive::u8>, + encoded: types::decode_session_keys::Encoded, ) -> ::subxt::runtime_api::Payload< types::DecodeSessionKeys, - ::core::option::Option< - ::std::vec::Vec<( - ::std::vec::Vec<::core::primitive::u8>, - runtime_types::sp_core::crypto::KeyTypeId, - )>, - >, + types::decode_session_keys::Output, > { ::subxt::runtime_api::Payload::new_static( "SessionKeys", @@ -2479,7 +2799,12 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct GenerateSessionKeys { - pub seed: ::core::option::Option<::std::vec::Vec<::core::primitive::u8>>, + pub seed: generate_session_keys::Seed, + } + pub mod generate_session_keys { + use super::runtime_types; + pub type Seed = ::core::option::Option<::std::vec::Vec<::core::primitive::u8>>; + pub type Output = ::std::vec::Vec<::core::primitive::u8>; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -2492,7 +2817,17 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct DecodeSessionKeys { - pub encoded: ::std::vec::Vec<::core::primitive::u8>, + pub encoded: decode_session_keys::Encoded, + } + pub mod decode_session_keys { + use super::runtime_types; + pub type Encoded = ::std::vec::Vec<::core::primitive::u8>; + pub type Output = ::core::option::Option< + ::std::vec::Vec<( + ::std::vec::Vec<::core::primitive::u8>, + runtime_types::sp_core::crypto::KeyTypeId, + )>, + >; } } } @@ -2505,8 +2840,8 @@ pub mod api { #[doc = " Get current account nonce of given `AccountId`."] pub fn account_nonce( &self, - account: ::subxt::utils::AccountId32, - ) -> ::subxt::runtime_api::Payload + account: types::account_nonce::Account, + ) -> ::subxt::runtime_api::Payload { ::subxt::runtime_api::Payload::new_static( "AccountNonceApi", @@ -2534,7 +2869,12 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AccountNonce { - pub account: ::subxt::utils::AccountId32, + pub account: account_nonce::Account, + } + pub mod account_nonce { + use super::runtime_types; + pub type Account = ::subxt::utils::AccountId32; + pub type Output = ::core::primitive::u32; } } } @@ -2545,15 +2885,10 @@ pub mod api { impl TransactionPaymentApi { pub fn query_info( &self, - uxt : :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) >, - len: ::core::primitive::u32, - ) -> ::subxt::runtime_api::Payload< - types::QueryInfo, - runtime_types::pallet_transaction_payment::types::RuntimeDispatchInfo< - ::core::primitive::u128, - runtime_types::sp_weights::weight_v2::Weight, - >, - > { + uxt: types::query_info::Uxt, + len: types::query_info::Len, + ) -> ::subxt::runtime_api::Payload + { ::subxt::runtime_api::Payload::new_static( "TransactionPaymentApi", "query_info", @@ -2567,13 +2902,11 @@ pub mod api { } pub fn query_fee_details( &self, - uxt : :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) >, - len: ::core::primitive::u32, + uxt: types::query_fee_details::Uxt, + len: types::query_fee_details::Len, ) -> ::subxt::runtime_api::Payload< types::QueryFeeDetails, - runtime_types::pallet_transaction_payment::types::FeeDetails< - ::core::primitive::u128, - >, + types::query_fee_details::Output, > { ::subxt::runtime_api::Payload::new_static( "TransactionPaymentApi", @@ -2589,9 +2922,11 @@ pub mod api { } pub fn query_weight_to_fee( &self, - weight: runtime_types::sp_weights::weight_v2::Weight, - ) -> ::subxt::runtime_api::Payload - { + weight: types::query_weight_to_fee::Weight, + ) -> ::subxt::runtime_api::Payload< + types::QueryWeightToFee, + types::query_weight_to_fee::Output, + > { ::subxt::runtime_api::Payload::new_static( "TransactionPaymentApi", "query_weight_to_fee", @@ -2606,9 +2941,11 @@ pub mod api { } pub fn query_length_to_fee( &self, - length: ::core::primitive::u32, - ) -> ::subxt::runtime_api::Payload - { + length: types::query_length_to_fee::Length, + ) -> ::subxt::runtime_api::Payload< + types::QueryLengthToFee, + types::query_length_to_fee::Output, + > { ::subxt::runtime_api::Payload::new_static( "TransactionPaymentApi", "query_length_to_fee", @@ -2633,7 +2970,20 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct QueryInfo { pub uxt : :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > , pub len : :: core :: primitive :: u32 , } + pub struct QueryInfo { + pub uxt: query_info::Uxt, + pub len: query_info::Len, + } + pub mod query_info { + use super::runtime_types; + pub type Uxt = :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > ; + pub type Len = ::core::primitive::u32; + pub type Output = + runtime_types::pallet_transaction_payment::types::RuntimeDispatchInfo< + ::core::primitive::u128, + runtime_types::sp_weights::weight_v2::Weight, + >; + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -2644,7 +2994,18 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct QueryFeeDetails { pub uxt : :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > , pub len : :: core :: primitive :: u32 , } + pub struct QueryFeeDetails { + pub uxt: query_fee_details::Uxt, + pub len: query_fee_details::Len, + } + pub mod query_fee_details { + use super::runtime_types; + pub type Uxt = :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > ; + pub type Len = ::core::primitive::u32; + pub type Output = runtime_types::pallet_transaction_payment::types::FeeDetails< + ::core::primitive::u128, + >; + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -2656,7 +3017,12 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct QueryWeightToFee { - pub weight: runtime_types::sp_weights::weight_v2::Weight, + pub weight: query_weight_to_fee::Weight, + } + pub mod query_weight_to_fee { + use super::runtime_types; + pub type Weight = runtime_types::sp_weights::weight_v2::Weight; + pub type Output = ::core::primitive::u128; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -2669,7 +3035,12 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct QueryLengthToFee { - pub length: ::core::primitive::u32, + pub length: query_length_to_fee::Length, + } + pub mod query_length_to_fee { + use super::runtime_types; + pub type Length = ::core::primitive::u32; + pub type Output = ::core::primitive::u128; } } } @@ -2684,7 +3055,7 @@ pub mod api { &self, ) -> ::subxt::runtime_api::Payload< types::AuthoritySetProof, - runtime_types::sp_consensus_beefy::mmr::BeefyAuthoritySet<::subxt::utils::H256>, + types::authority_set_proof::Output, > { ::subxt::runtime_api::Payload::new_static( "BeefyMmrApi", @@ -2703,7 +3074,7 @@ pub mod api { &self, ) -> ::subxt::runtime_api::Payload< types::NextAuthoritySetProof, - runtime_types::sp_consensus_beefy::mmr::BeefyAuthoritySet<::subxt::utils::H256>, + types::next_authority_set_proof::Output, > { ::subxt::runtime_api::Payload::new_static( "BeefyMmrApi", @@ -2730,6 +3101,12 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AuthoritySetProof {} + pub mod authority_set_proof { + use super::runtime_types; + pub type Output = runtime_types::sp_consensus_beefy::mmr::BeefyAuthoritySet< + ::subxt::utils::H256, + >; + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -2741,6 +3118,12 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct NextAuthoritySetProof {} + pub mod next_authority_set_proof { + use super::runtime_types; + pub type Output = runtime_types::sp_consensus_beefy::mmr::BeefyAuthoritySet< + ::subxt::utils::H256, + >; + } } } pub mod genesis_builder { @@ -2757,7 +3140,7 @@ pub mod api { &self, ) -> ::subxt::runtime_api::Payload< types::CreateDefaultConfig, - ::std::vec::Vec<::core::primitive::u8>, + types::create_default_config::Output, > { ::subxt::runtime_api::Payload::new_static( "GenesisBuilder", @@ -2779,11 +3162,9 @@ pub mod api { #[doc = " Please note that provided json blob must contain all `GenesisConfig` fields, no defaults will be used."] pub fn build_config( &self, - json: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::runtime_api::Payload< - types::BuildConfig, - ::core::result::Result<(), ::std::string::String>, - > { + json: types::build_config::Json, + ) -> ::subxt::runtime_api::Payload + { ::subxt::runtime_api::Payload::new_static( "GenesisBuilder", "build_config", @@ -2810,6 +3191,10 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CreateDefaultConfig {} + pub mod create_default_config { + use super::runtime_types; + pub type Output = ::std::vec::Vec<::core::primitive::u8>; + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -2821,7 +3206,12 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BuildConfig { - pub json: ::std::vec::Vec<::core::primitive::u8>, + pub json: build_config::Json, + } + pub mod build_config { + use super::runtime_types; + pub type Json = ::std::vec::Vec<::core::primitive::u8>; + pub type Output = ::core::result::Result<(), ::std::string::String>; } } } @@ -3311,45 +3701,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - pub mod remark { - use super::runtime_types; - pub type Remark = ::std::vec::Vec<::core::primitive::u8>; - } - pub mod set_heap_pages { - use super::runtime_types; - pub type Pages = ::core::primitive::u64; - } - pub mod set_code { - use super::runtime_types; - pub type Code = ::std::vec::Vec<::core::primitive::u8>; - } - pub mod set_code_without_checks { - use super::runtime_types; - pub type Code = ::std::vec::Vec<::core::primitive::u8>; - } - pub mod set_storage { - use super::runtime_types; - pub type Items = ::std::vec::Vec<( - ::std::vec::Vec<::core::primitive::u8>, - ::std::vec::Vec<::core::primitive::u8>, - )>; - } - pub mod kill_storage { - use super::runtime_types; - pub type Keys = ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>; - } - pub mod kill_prefix { - use super::runtime_types; - pub type Prefix = ::std::vec::Vec<::core::primitive::u8>; - pub type Subkeys = ::core::primitive::u32; - } - pub mod remark_with_event { - use super::runtime_types; - pub type Remark = ::std::vec::Vec<::core::primitive::u8>; - } - } pub mod types { use super::runtime_types; #[derive( @@ -3363,7 +3714,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Remark { - pub remark: ::std::vec::Vec<::core::primitive::u8>, + pub remark: remark::Remark, + } + pub mod remark { + use super::runtime_types; + pub type Remark = ::std::vec::Vec<::core::primitive::u8>; } impl ::subxt::blocks::StaticExtrinsic for Remark { const PALLET: &'static str = "System"; @@ -3381,7 +3736,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetHeapPages { - pub pages: ::core::primitive::u64, + pub pages: set_heap_pages::Pages, + } + pub mod set_heap_pages { + use super::runtime_types; + pub type Pages = ::core::primitive::u64; } impl ::subxt::blocks::StaticExtrinsic for SetHeapPages { const PALLET: &'static str = "System"; @@ -3398,7 +3757,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetCode { - pub code: ::std::vec::Vec<::core::primitive::u8>, + pub code: set_code::Code, + } + pub mod set_code { + use super::runtime_types; + pub type Code = ::std::vec::Vec<::core::primitive::u8>; } impl ::subxt::blocks::StaticExtrinsic for SetCode { const PALLET: &'static str = "System"; @@ -3415,7 +3778,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetCodeWithoutChecks { - pub code: ::std::vec::Vec<::core::primitive::u8>, + pub code: set_code_without_checks::Code, + } + pub mod set_code_without_checks { + use super::runtime_types; + pub type Code = ::std::vec::Vec<::core::primitive::u8>; } impl ::subxt::blocks::StaticExtrinsic for SetCodeWithoutChecks { const PALLET: &'static str = "System"; @@ -3432,10 +3799,14 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetStorage { - pub items: ::std::vec::Vec<( + pub items: set_storage::Items, + } + pub mod set_storage { + use super::runtime_types; + pub type Items = ::std::vec::Vec<( ::std::vec::Vec<::core::primitive::u8>, ::std::vec::Vec<::core::primitive::u8>, - )>, + )>; } impl ::subxt::blocks::StaticExtrinsic for SetStorage { const PALLET: &'static str = "System"; @@ -3452,7 +3823,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct KillStorage { - pub keys: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, + pub keys: kill_storage::Keys, + } + pub mod kill_storage { + use super::runtime_types; + pub type Keys = ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>; } impl ::subxt::blocks::StaticExtrinsic for KillStorage { const PALLET: &'static str = "System"; @@ -3469,8 +3844,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct KillPrefix { - pub prefix: ::std::vec::Vec<::core::primitive::u8>, - pub subkeys: ::core::primitive::u32, + pub prefix: kill_prefix::Prefix, + pub subkeys: kill_prefix::Subkeys, + } + pub mod kill_prefix { + use super::runtime_types; + pub type Prefix = ::std::vec::Vec<::core::primitive::u8>; + pub type Subkeys = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for KillPrefix { const PALLET: &'static str = "System"; @@ -3487,7 +3867,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RemarkWithEvent { - pub remark: ::std::vec::Vec<::core::primitive::u8>, + pub remark: remark_with_event::Remark, + } + pub mod remark_with_event { + use super::runtime_types; + pub type Remark = ::std::vec::Vec<::core::primitive::u8>; } impl ::subxt::blocks::StaticExtrinsic for RemarkWithEvent { const PALLET: &'static str = "System"; @@ -3499,7 +3883,7 @@ pub mod api { #[doc = "See [`Pallet::remark`]."] pub fn remark( &self, - remark: alias_types::remark::Remark, + remark: types::remark::Remark, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "System", @@ -3516,7 +3900,7 @@ pub mod api { #[doc = "See [`Pallet::set_heap_pages`]."] pub fn set_heap_pages( &self, - pages: alias_types::set_heap_pages::Pages, + pages: types::set_heap_pages::Pages, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "System", @@ -3533,7 +3917,7 @@ pub mod api { #[doc = "See [`Pallet::set_code`]."] pub fn set_code( &self, - code: alias_types::set_code::Code, + code: types::set_code::Code, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "System", @@ -3549,7 +3933,7 @@ pub mod api { #[doc = "See [`Pallet::set_code_without_checks`]."] pub fn set_code_without_checks( &self, - code: alias_types::set_code_without_checks::Code, + code: types::set_code_without_checks::Code, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "System", @@ -3566,7 +3950,7 @@ pub mod api { #[doc = "See [`Pallet::set_storage`]."] pub fn set_storage( &self, - items: alias_types::set_storage::Items, + items: types::set_storage::Items, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "System", @@ -3583,7 +3967,7 @@ pub mod api { #[doc = "See [`Pallet::kill_storage`]."] pub fn kill_storage( &self, - keys: alias_types::kill_storage::Keys, + keys: types::kill_storage::Keys, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "System", @@ -3600,8 +3984,8 @@ pub mod api { #[doc = "See [`Pallet::kill_prefix`]."] pub fn kill_prefix( &self, - prefix: alias_types::kill_prefix::Prefix, - subkeys: alias_types::kill_prefix::Subkeys, + prefix: types::kill_prefix::Prefix, + subkeys: types::kill_prefix::Subkeys, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "System", @@ -3618,7 +4002,7 @@ pub mod api { #[doc = "See [`Pallet::remark_with_event`]."] pub fn remark_with_event( &self, - remark: alias_types::remark_with_event::Remark, + remark: types::remark_with_event::Remark, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "System", @@ -3649,7 +4033,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An extrinsic completed successfully."] pub struct ExtrinsicSuccess { - pub dispatch_info: runtime_types::frame_support::dispatch::DispatchInfo, + pub dispatch_info: extrinsic_success::DispatchInfo, + } + pub mod extrinsic_success { + use super::runtime_types; + pub type DispatchInfo = runtime_types::frame_support::dispatch::DispatchInfo; } impl ::subxt::events::StaticEvent for ExtrinsicSuccess { const PALLET: &'static str = "System"; @@ -3667,8 +4055,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An extrinsic failed."] pub struct ExtrinsicFailed { - pub dispatch_error: runtime_types::sp_runtime::DispatchError, - pub dispatch_info: runtime_types::frame_support::dispatch::DispatchInfo, + pub dispatch_error: extrinsic_failed::DispatchError, + pub dispatch_info: extrinsic_failed::DispatchInfo, + } + pub mod extrinsic_failed { + use super::runtime_types; + pub type DispatchError = runtime_types::sp_runtime::DispatchError; + pub type DispatchInfo = runtime_types::frame_support::dispatch::DispatchInfo; } impl ::subxt::events::StaticEvent for ExtrinsicFailed { const PALLET: &'static str = "System"; @@ -3702,7 +4095,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A new account was created."] pub struct NewAccount { - pub account: ::subxt::utils::AccountId32, + pub account: new_account::Account, + } + pub mod new_account { + use super::runtime_types; + pub type Account = ::subxt::utils::AccountId32; } impl ::subxt::events::StaticEvent for NewAccount { const PALLET: &'static str = "System"; @@ -3720,7 +4117,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An account was reaped."] pub struct KilledAccount { - pub account: ::subxt::utils::AccountId32, + pub account: killed_account::Account, + } + pub mod killed_account { + use super::runtime_types; + pub type Account = ::subxt::utils::AccountId32; } impl ::subxt::events::StaticEvent for KilledAccount { const PALLET: &'static str = "System"; @@ -3738,8 +4139,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "On on-chain remark happened."] pub struct Remarked { - pub sender: ::subxt::utils::AccountId32, - pub hash: ::subxt::utils::H256, + pub sender: remarked::Sender, + pub hash: remarked::Hash, + } + pub mod remarked { + use super::runtime_types; + pub type Sender = ::subxt::utils::AccountId32; + pub type Hash = ::subxt::utils::H256; } impl ::subxt::events::StaticEvent for Remarked { const PALLET: &'static str = "System"; @@ -3748,7 +4154,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod account { use super::runtime_types; @@ -3834,7 +4240,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::account::Account, + types::account::Account, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -3856,7 +4262,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::account::Account, + types::account::Account, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -3879,7 +4285,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::extrinsic_count::ExtrinsicCount, + types::extrinsic_count::ExtrinsicCount, ::subxt::storage::address::Yes, (), (), @@ -3901,7 +4307,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::block_weight::BlockWeight, + types::block_weight::BlockWeight, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -3922,7 +4328,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::all_extrinsics_len::AllExtrinsicsLen, + types::all_extrinsics_len::AllExtrinsicsLen, ::subxt::storage::address::Yes, (), (), @@ -3944,7 +4350,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::block_hash::BlockHash, + types::block_hash::BlockHash, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -3967,7 +4373,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::block_hash::BlockHash, + types::block_hash::BlockHash, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -3991,7 +4397,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::extrinsic_data::ExtrinsicData, + types::extrinsic_data::ExtrinsicData, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -4013,7 +4419,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::extrinsic_data::ExtrinsicData, + types::extrinsic_data::ExtrinsicData, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -4036,7 +4442,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::number::Number, + types::number::Number, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -4057,7 +4463,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::parent_hash::ParentHash, + types::parent_hash::ParentHash, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -4078,7 +4484,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::digest::Digest, + types::digest::Digest, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -4105,7 +4511,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::events::Events, + types::events::Events, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -4126,7 +4532,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::event_count::EventCount, + types::event_count::EventCount, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -4157,7 +4563,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::event_topics::EventTopics, + types::event_topics::EventTopics, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -4188,7 +4594,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::event_topics::EventTopics, + types::event_topics::EventTopics, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -4211,7 +4617,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::last_runtime_upgrade::LastRuntimeUpgrade, + types::last_runtime_upgrade::LastRuntimeUpgrade, ::subxt::storage::address::Yes, (), (), @@ -4232,7 +4638,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::upgraded_to_u32_ref_count::UpgradedToU32RefCount, + types::upgraded_to_u32_ref_count::UpgradedToU32RefCount, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -4254,7 +4660,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::upgraded_to_triple_ref_count::UpgradedToTripleRefCount, + types::upgraded_to_triple_ref_count::UpgradedToTripleRefCount, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -4276,7 +4682,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::execution_phase::ExecutionPhase, + types::execution_phase::ExecutionPhase, ::subxt::storage::address::Yes, (), (), @@ -4405,36 +4811,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - pub mod report_equivocation { - use super::runtime_types; - pub type EquivocationProof = - runtime_types::sp_consensus_slots::EquivocationProof< - runtime_types::sp_runtime::generic::header::Header< - ::core::primitive::u32, - >, - runtime_types::sp_consensus_babe::app::Public, - >; - pub type KeyOwnerProof = runtime_types::sp_session::MembershipProof; - } - pub mod report_equivocation_unsigned { - use super::runtime_types; - pub type EquivocationProof = - runtime_types::sp_consensus_slots::EquivocationProof< - runtime_types::sp_runtime::generic::header::Header< - ::core::primitive::u32, - >, - runtime_types::sp_consensus_babe::app::Public, - >; - pub type KeyOwnerProof = runtime_types::sp_session::MembershipProof; - } - pub mod plan_config_change { - use super::runtime_types; - pub type Config = - runtime_types::sp_consensus_babe::digests::NextConfigDescriptor; - } - } pub mod types { use super::runtime_types; #[derive( @@ -4448,15 +4824,20 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ReportEquivocation { - pub equivocation_proof: ::std::boxed::Box< + pub equivocation_proof: + ::std::boxed::Box, + pub key_owner_proof: report_equivocation::KeyOwnerProof, + } + pub mod report_equivocation { + use super::runtime_types; + pub type EquivocationProof = runtime_types::sp_consensus_slots::EquivocationProof< runtime_types::sp_runtime::generic::header::Header< ::core::primitive::u32, >, runtime_types::sp_consensus_babe::app::Public, - >, - >, - pub key_owner_proof: runtime_types::sp_session::MembershipProof, + >; + pub type KeyOwnerProof = runtime_types::sp_session::MembershipProof; } impl ::subxt::blocks::StaticExtrinsic for ReportEquivocation { const PALLET: &'static str = "Babe"; @@ -4473,15 +4854,20 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ReportEquivocationUnsigned { - pub equivocation_proof: ::std::boxed::Box< + pub equivocation_proof: + ::std::boxed::Box, + pub key_owner_proof: report_equivocation_unsigned::KeyOwnerProof, + } + pub mod report_equivocation_unsigned { + use super::runtime_types; + pub type EquivocationProof = runtime_types::sp_consensus_slots::EquivocationProof< runtime_types::sp_runtime::generic::header::Header< ::core::primitive::u32, >, runtime_types::sp_consensus_babe::app::Public, - >, - >, - pub key_owner_proof: runtime_types::sp_session::MembershipProof, + >; + pub type KeyOwnerProof = runtime_types::sp_session::MembershipProof; } impl ::subxt::blocks::StaticExtrinsic for ReportEquivocationUnsigned { const PALLET: &'static str = "Babe"; @@ -4498,7 +4884,12 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PlanConfigChange { - pub config: runtime_types::sp_consensus_babe::digests::NextConfigDescriptor, + pub config: plan_config_change::Config, + } + pub mod plan_config_change { + use super::runtime_types; + pub type Config = + runtime_types::sp_consensus_babe::digests::NextConfigDescriptor; } impl ::subxt::blocks::StaticExtrinsic for PlanConfigChange { const PALLET: &'static str = "Babe"; @@ -4510,8 +4901,8 @@ pub mod api { #[doc = "See [`Pallet::report_equivocation`]."] pub fn report_equivocation( &self, - equivocation_proof: alias_types::report_equivocation::EquivocationProof, - key_owner_proof: alias_types::report_equivocation::KeyOwnerProof, + equivocation_proof: types::report_equivocation::EquivocationProof, + key_owner_proof: types::report_equivocation::KeyOwnerProof, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Babe", @@ -4531,8 +4922,8 @@ pub mod api { #[doc = "See [`Pallet::report_equivocation_unsigned`]."] pub fn report_equivocation_unsigned( &self, - equivocation_proof : alias_types :: report_equivocation_unsigned :: EquivocationProof, - key_owner_proof: alias_types::report_equivocation_unsigned::KeyOwnerProof, + equivocation_proof: types::report_equivocation_unsigned::EquivocationProof, + key_owner_proof: types::report_equivocation_unsigned::KeyOwnerProof, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Babe", @@ -4551,7 +4942,7 @@ pub mod api { #[doc = "See [`Pallet::plan_config_change`]."] pub fn plan_config_change( &self, - config: alias_types::plan_config_change::Config, + config: types::plan_config_change::Config, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Babe", @@ -4569,7 +4960,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod epoch_index { use super::runtime_types; @@ -4667,7 +5058,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::epoch_index::EpochIndex, + types::epoch_index::EpochIndex, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -4689,7 +5080,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::authorities::Authorities, + types::authorities::Authorities, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -4712,7 +5103,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::genesis_slot::GenesisSlot, + types::genesis_slot::GenesisSlot, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -4734,7 +5125,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::current_slot::CurrentSlot, + types::current_slot::CurrentSlot, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -4765,7 +5156,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::randomness::Randomness, + types::randomness::Randomness, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -4787,7 +5178,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::pending_epoch_config_change::PendingEpochConfigChange, + types::pending_epoch_config_change::PendingEpochConfigChange, ::subxt::storage::address::Yes, (), (), @@ -4808,7 +5199,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::next_randomness::NextRandomness, + types::next_randomness::NextRandomness, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -4829,7 +5220,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::next_authorities::NextAuthorities, + types::next_authorities::NextAuthorities, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -4859,7 +5250,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::segment_index::SegmentIndex, + types::segment_index::SegmentIndex, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -4881,7 +5272,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::under_construction::UnderConstruction, + types::under_construction::UnderConstruction, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -4903,7 +5294,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::under_construction::UnderConstruction, + types::under_construction::UnderConstruction, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -4927,7 +5318,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::initialized::Initialized, + types::initialized::Initialized, ::subxt::storage::address::Yes, (), (), @@ -4951,7 +5342,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::author_vrf_randomness::AuthorVrfRandomness, + types::author_vrf_randomness::AuthorVrfRandomness, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -4977,7 +5368,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::epoch_start::EpochStart, + types::epoch_start::EpochStart, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -5003,7 +5394,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::lateness::Lateness, + types::lateness::Lateness, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -5026,7 +5417,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::epoch_config::EpochConfig, + types::epoch_config::EpochConfig, ::subxt::storage::address::Yes, (), (), @@ -5049,7 +5440,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::next_epoch_config::NextEpochConfig, + types::next_epoch_config::NextEpochConfig, ::subxt::storage::address::Yes, (), (), @@ -5078,7 +5469,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::skipped_epochs::SkippedEpochs, + types::skipped_epochs::SkippedEpochs, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -5178,13 +5569,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - pub mod set { - use super::runtime_types; - pub type Now = ::core::primitive::u64; - } - } pub mod types { use super::runtime_types; #[derive( @@ -5199,7 +5583,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Set { #[codec(compact)] - pub now: ::core::primitive::u64, + pub now: set::Now, + } + pub mod set { + use super::runtime_types; + pub type Now = ::core::primitive::u64; } impl ::subxt::blocks::StaticExtrinsic for Set { const PALLET: &'static str = "Timestamp"; @@ -5209,7 +5597,7 @@ pub mod api { pub struct TransactionApi; impl TransactionApi { #[doc = "See [`Pallet::set`]."] - pub fn set(&self, now: alias_types::set::Now) -> ::subxt::tx::Payload { + pub fn set(&self, now: types::set::Now) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Timestamp", "set", @@ -5225,7 +5613,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod now { use super::runtime_types; @@ -5243,7 +5631,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::now::Now, + types::now::Now, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -5267,7 +5655,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::did_update::DidUpdate, + types::did_update::DidUpdate, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -5324,32 +5712,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - pub mod claim { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - } - pub mod transfer { - use super::runtime_types; - pub type New = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Index = ::core::primitive::u32; - } - pub mod free { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - } - pub mod force_transfer { - use super::runtime_types; - pub type New = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Index = ::core::primitive::u32; - pub type Freeze = ::core::primitive::bool; - } - pub mod freeze { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - } - } pub mod types { use super::runtime_types; #[derive( @@ -5364,7 +5726,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Claim { - pub index: ::core::primitive::u32, + pub index: claim::Index, + } + pub mod claim { + use super::runtime_types; + pub type Index = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for Claim { const PALLET: &'static str = "Indices"; @@ -5381,8 +5747,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Transfer { - pub new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub index: ::core::primitive::u32, + pub new: transfer::New, + pub index: transfer::Index, + } + pub mod transfer { + use super::runtime_types; + pub type New = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Index = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for Transfer { const PALLET: &'static str = "Indices"; @@ -5400,7 +5771,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Free { - pub index: ::core::primitive::u32, + pub index: free::Index, + } + pub mod free { + use super::runtime_types; + pub type Index = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for Free { const PALLET: &'static str = "Indices"; @@ -5417,9 +5792,15 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceTransfer { - pub new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub index: ::core::primitive::u32, - pub freeze: ::core::primitive::bool, + pub new: force_transfer::New, + pub index: force_transfer::Index, + pub freeze: force_transfer::Freeze, + } + pub mod force_transfer { + use super::runtime_types; + pub type New = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Index = ::core::primitive::u32; + pub type Freeze = ::core::primitive::bool; } impl ::subxt::blocks::StaticExtrinsic for ForceTransfer { const PALLET: &'static str = "Indices"; @@ -5437,7 +5818,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Freeze { - pub index: ::core::primitive::u32, + pub index: freeze::Index, + } + pub mod freeze { + use super::runtime_types; + pub type Index = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for Freeze { const PALLET: &'static str = "Indices"; @@ -5449,7 +5834,7 @@ pub mod api { #[doc = "See [`Pallet::claim`]."] pub fn claim( &self, - index: alias_types::claim::Index, + index: types::claim::Index, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Indices", @@ -5465,8 +5850,8 @@ pub mod api { #[doc = "See [`Pallet::transfer`]."] pub fn transfer( &self, - new: alias_types::transfer::New, - index: alias_types::transfer::Index, + new: types::transfer::New, + index: types::transfer::Index, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Indices", @@ -5481,10 +5866,7 @@ pub mod api { ) } #[doc = "See [`Pallet::free`]."] - pub fn free( - &self, - index: alias_types::free::Index, - ) -> ::subxt::tx::Payload { + pub fn free(&self, index: types::free::Index) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Indices", "free", @@ -5500,9 +5882,9 @@ pub mod api { #[doc = "See [`Pallet::force_transfer`]."] pub fn force_transfer( &self, - new: alias_types::force_transfer::New, - index: alias_types::force_transfer::Index, - freeze: alias_types::force_transfer::Freeze, + new: types::force_transfer::New, + index: types::force_transfer::Index, + freeze: types::force_transfer::Freeze, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Indices", @@ -5519,7 +5901,7 @@ pub mod api { #[doc = "See [`Pallet::freeze`]."] pub fn freeze( &self, - index: alias_types::freeze::Index, + index: types::freeze::Index, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Indices", @@ -5551,8 +5933,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A account index was assigned."] pub struct IndexAssigned { - pub who: ::subxt::utils::AccountId32, - pub index: ::core::primitive::u32, + pub who: index_assigned::Who, + pub index: index_assigned::Index, + } + pub mod index_assigned { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Index = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for IndexAssigned { const PALLET: &'static str = "Indices"; @@ -5571,7 +5958,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A account index has been freed up (unassigned)."] pub struct IndexFreed { - pub index: ::core::primitive::u32, + pub index: index_freed::Index, + } + pub mod index_freed { + use super::runtime_types; + pub type Index = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for IndexFreed { const PALLET: &'static str = "Indices"; @@ -5589,8 +5980,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A account index has been frozen to its current account ID."] pub struct IndexFrozen { - pub index: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, + pub index: index_frozen::Index, + pub who: index_frozen::Who, + } + pub mod index_frozen { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Who = ::subxt::utils::AccountId32; } impl ::subxt::events::StaticEvent for IndexFrozen { const PALLET: &'static str = "Indices"; @@ -5599,7 +5995,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod accounts { use super::runtime_types; @@ -5617,7 +6013,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::accounts::Accounts, + types::accounts::Accounts, (), (), ::subxt::storage::address::Yes, @@ -5640,7 +6036,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::accounts::Accounts, + types::accounts::Accounts, ::subxt::storage::address::Yes, (), (), @@ -5691,44 +6087,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - pub mod transfer_allow_death { - use super::runtime_types; - pub type Dest = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Value = ::core::primitive::u128; - } - pub mod force_transfer { - use super::runtime_types; - pub type Source = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Dest = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Value = ::core::primitive::u128; - } - pub mod transfer_keep_alive { - use super::runtime_types; - pub type Dest = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Value = ::core::primitive::u128; - } - pub mod transfer_all { - use super::runtime_types; - pub type Dest = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type KeepAlive = ::core::primitive::bool; - } - pub mod force_unreserve { - use super::runtime_types; - pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Amount = ::core::primitive::u128; - } - pub mod upgrade_accounts { - use super::runtime_types; - pub type Who = ::std::vec::Vec<::subxt::utils::AccountId32>; - } - pub mod force_set_balance { - use super::runtime_types; - pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type NewFree = ::core::primitive::u128; - } - } pub mod types { use super::runtime_types; #[derive( @@ -5742,9 +6100,14 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct TransferAllowDeath { - pub dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub dest: transfer_allow_death::Dest, #[codec(compact)] - pub value: ::core::primitive::u128, + pub value: transfer_allow_death::Value, + } + pub mod transfer_allow_death { + use super::runtime_types; + pub type Dest = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Value = ::core::primitive::u128; } impl ::subxt::blocks::StaticExtrinsic for TransferAllowDeath { const PALLET: &'static str = "Balances"; @@ -5761,10 +6124,16 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceTransfer { - pub source: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub source: force_transfer::Source, + pub dest: force_transfer::Dest, #[codec(compact)] - pub value: ::core::primitive::u128, + pub value: force_transfer::Value, + } + pub mod force_transfer { + use super::runtime_types; + pub type Source = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Dest = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Value = ::core::primitive::u128; } impl ::subxt::blocks::StaticExtrinsic for ForceTransfer { const PALLET: &'static str = "Balances"; @@ -5781,9 +6150,14 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct TransferKeepAlive { - pub dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub dest: transfer_keep_alive::Dest, #[codec(compact)] - pub value: ::core::primitive::u128, + pub value: transfer_keep_alive::Value, + } + pub mod transfer_keep_alive { + use super::runtime_types; + pub type Dest = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Value = ::core::primitive::u128; } impl ::subxt::blocks::StaticExtrinsic for TransferKeepAlive { const PALLET: &'static str = "Balances"; @@ -5800,8 +6174,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct TransferAll { - pub dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub keep_alive: ::core::primitive::bool, + pub dest: transfer_all::Dest, + pub keep_alive: transfer_all::KeepAlive, + } + pub mod transfer_all { + use super::runtime_types; + pub type Dest = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type KeepAlive = ::core::primitive::bool; } impl ::subxt::blocks::StaticExtrinsic for TransferAll { const PALLET: &'static str = "Balances"; @@ -5818,8 +6197,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceUnreserve { - pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub amount: ::core::primitive::u128, + pub who: force_unreserve::Who, + pub amount: force_unreserve::Amount, + } + pub mod force_unreserve { + use super::runtime_types; + pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Amount = ::core::primitive::u128; } impl ::subxt::blocks::StaticExtrinsic for ForceUnreserve { const PALLET: &'static str = "Balances"; @@ -5836,7 +6220,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UpgradeAccounts { - pub who: ::std::vec::Vec<::subxt::utils::AccountId32>, + pub who: upgrade_accounts::Who, + } + pub mod upgrade_accounts { + use super::runtime_types; + pub type Who = ::std::vec::Vec<::subxt::utils::AccountId32>; } impl ::subxt::blocks::StaticExtrinsic for UpgradeAccounts { const PALLET: &'static str = "Balances"; @@ -5853,9 +6241,14 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceSetBalance { - pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub who: force_set_balance::Who, #[codec(compact)] - pub new_free: ::core::primitive::u128, + pub new_free: force_set_balance::NewFree, + } + pub mod force_set_balance { + use super::runtime_types; + pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type NewFree = ::core::primitive::u128; } impl ::subxt::blocks::StaticExtrinsic for ForceSetBalance { const PALLET: &'static str = "Balances"; @@ -5867,8 +6260,8 @@ pub mod api { #[doc = "See [`Pallet::transfer_allow_death`]."] pub fn transfer_allow_death( &self, - dest: alias_types::transfer_allow_death::Dest, - value: alias_types::transfer_allow_death::Value, + dest: types::transfer_allow_death::Dest, + value: types::transfer_allow_death::Value, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Balances", @@ -5885,9 +6278,9 @@ pub mod api { #[doc = "See [`Pallet::force_transfer`]."] pub fn force_transfer( &self, - source: alias_types::force_transfer::Source, - dest: alias_types::force_transfer::Dest, - value: alias_types::force_transfer::Value, + source: types::force_transfer::Source, + dest: types::force_transfer::Dest, + value: types::force_transfer::Value, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Balances", @@ -5907,8 +6300,8 @@ pub mod api { #[doc = "See [`Pallet::transfer_keep_alive`]."] pub fn transfer_keep_alive( &self, - dest: alias_types::transfer_keep_alive::Dest, - value: alias_types::transfer_keep_alive::Value, + dest: types::transfer_keep_alive::Dest, + value: types::transfer_keep_alive::Value, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Balances", @@ -5924,8 +6317,8 @@ pub mod api { #[doc = "See [`Pallet::transfer_all`]."] pub fn transfer_all( &self, - dest: alias_types::transfer_all::Dest, - keep_alive: alias_types::transfer_all::KeepAlive, + dest: types::transfer_all::Dest, + keep_alive: types::transfer_all::KeepAlive, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Balances", @@ -5941,8 +6334,8 @@ pub mod api { #[doc = "See [`Pallet::force_unreserve`]."] pub fn force_unreserve( &self, - who: alias_types::force_unreserve::Who, - amount: alias_types::force_unreserve::Amount, + who: types::force_unreserve::Who, + amount: types::force_unreserve::Amount, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Balances", @@ -5959,7 +6352,7 @@ pub mod api { #[doc = "See [`Pallet::upgrade_accounts`]."] pub fn upgrade_accounts( &self, - who: alias_types::upgrade_accounts::Who, + who: types::upgrade_accounts::Who, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Balances", @@ -5975,8 +6368,8 @@ pub mod api { #[doc = "See [`Pallet::force_set_balance`]."] pub fn force_set_balance( &self, - who: alias_types::force_set_balance::Who, - new_free: alias_types::force_set_balance::NewFree, + who: types::force_set_balance::Who, + new_free: types::force_set_balance::NewFree, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Balances", @@ -6007,8 +6400,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An account was created with some free balance."] pub struct Endowed { - pub account: ::subxt::utils::AccountId32, - pub free_balance: ::core::primitive::u128, + pub account: endowed::Account, + pub free_balance: endowed::FreeBalance, + } + pub mod endowed { + use super::runtime_types; + pub type Account = ::subxt::utils::AccountId32; + pub type FreeBalance = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Endowed { const PALLET: &'static str = "Balances"; @@ -6027,8 +6425,13 @@ pub mod api { #[doc = "An account was removed whose balance was non-zero but below ExistentialDeposit,"] #[doc = "resulting in an outright loss."] pub struct DustLost { - pub account: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, + pub account: dust_lost::Account, + pub amount: dust_lost::Amount, + } + pub mod dust_lost { + use super::runtime_types; + pub type Account = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for DustLost { const PALLET: &'static str = "Balances"; @@ -6046,9 +6449,15 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Transfer succeeded."] pub struct Transfer { - pub from: ::subxt::utils::AccountId32, - pub to: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, + pub from: transfer::From, + pub to: transfer::To, + pub amount: transfer::Amount, + } + pub mod transfer { + use super::runtime_types; + pub type From = ::subxt::utils::AccountId32; + pub type To = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Transfer { const PALLET: &'static str = "Balances"; @@ -6066,8 +6475,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A balance was set by root."] pub struct BalanceSet { - pub who: ::subxt::utils::AccountId32, - pub free: ::core::primitive::u128, + pub who: balance_set::Who, + pub free: balance_set::Free, + } + pub mod balance_set { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Free = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for BalanceSet { const PALLET: &'static str = "Balances"; @@ -6085,8 +6499,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some balance was reserved (moved from free to reserved)."] pub struct Reserved { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, + pub who: reserved::Who, + pub amount: reserved::Amount, + } + pub mod reserved { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Reserved { const PALLET: &'static str = "Balances"; @@ -6104,8 +6523,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some balance was unreserved (moved from reserved to free)."] pub struct Unreserved { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, + pub who: unreserved::Who, + pub amount: unreserved::Amount, + } + pub mod unreserved { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Unreserved { const PALLET: &'static str = "Balances"; @@ -6124,11 +6548,18 @@ pub mod api { #[doc = "Some balance was moved from the reserve of the first account to the second account."] #[doc = "Final argument indicates the destination balance type."] pub struct ReserveRepatriated { - pub from: ::subxt::utils::AccountId32, - pub to: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - pub destination_status: - runtime_types::frame_support::traits::tokens::misc::BalanceStatus, + pub from: reserve_repatriated::From, + pub to: reserve_repatriated::To, + pub amount: reserve_repatriated::Amount, + pub destination_status: reserve_repatriated::DestinationStatus, + } + pub mod reserve_repatriated { + use super::runtime_types; + pub type From = ::subxt::utils::AccountId32; + pub type To = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; + pub type DestinationStatus = + runtime_types::frame_support::traits::tokens::misc::BalanceStatus; } impl ::subxt::events::StaticEvent for ReserveRepatriated { const PALLET: &'static str = "Balances"; @@ -6146,8 +6577,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some amount was deposited (e.g. for transaction fees)."] pub struct Deposit { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, + pub who: deposit::Who, + pub amount: deposit::Amount, + } + pub mod deposit { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Deposit { const PALLET: &'static str = "Balances"; @@ -6165,8 +6601,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some amount was withdrawn from the account (e.g. for transaction fees)."] pub struct Withdraw { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, + pub who: withdraw::Who, + pub amount: withdraw::Amount, + } + pub mod withdraw { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Withdraw { const PALLET: &'static str = "Balances"; @@ -6184,8 +6625,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some amount was removed from the account (e.g. for misbehavior)."] pub struct Slashed { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, + pub who: slashed::Who, + pub amount: slashed::Amount, + } + pub mod slashed { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Slashed { const PALLET: &'static str = "Balances"; @@ -6203,8 +6649,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some amount was minted into an account."] pub struct Minted { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, + pub who: minted::Who, + pub amount: minted::Amount, + } + pub mod minted { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Minted { const PALLET: &'static str = "Balances"; @@ -6222,8 +6673,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some amount was burned from an account."] pub struct Burned { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, + pub who: burned::Who, + pub amount: burned::Amount, + } + pub mod burned { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Burned { const PALLET: &'static str = "Balances"; @@ -6241,8 +6697,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some amount was suspended from an account (it can be restored later)."] pub struct Suspended { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, + pub who: suspended::Who, + pub amount: suspended::Amount, + } + pub mod suspended { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Suspended { const PALLET: &'static str = "Balances"; @@ -6260,8 +6721,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some amount was restored into an account."] pub struct Restored { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, + pub who: restored::Who, + pub amount: restored::Amount, + } + pub mod restored { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Restored { const PALLET: &'static str = "Balances"; @@ -6279,7 +6745,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An account was upgraded."] pub struct Upgraded { - pub who: ::subxt::utils::AccountId32, + pub who: upgraded::Who, + } + pub mod upgraded { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; } impl ::subxt::events::StaticEvent for Upgraded { const PALLET: &'static str = "Balances"; @@ -6298,7 +6768,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Total issuance was increased by `amount`, creating a credit to be balanced."] pub struct Issued { - pub amount: ::core::primitive::u128, + pub amount: issued::Amount, + } + pub mod issued { + use super::runtime_types; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Issued { const PALLET: &'static str = "Balances"; @@ -6317,7 +6791,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Total issuance was decreased by `amount`, creating a debt to be balanced."] pub struct Rescinded { - pub amount: ::core::primitive::u128, + pub amount: rescinded::Amount, + } + pub mod rescinded { + use super::runtime_types; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Rescinded { const PALLET: &'static str = "Balances"; @@ -6335,8 +6813,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some balance was locked."] pub struct Locked { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, + pub who: locked::Who, + pub amount: locked::Amount, + } + pub mod locked { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Locked { const PALLET: &'static str = "Balances"; @@ -6354,8 +6837,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some balance was unlocked."] pub struct Unlocked { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, + pub who: unlocked::Who, + pub amount: unlocked::Amount, + } + pub mod unlocked { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Unlocked { const PALLET: &'static str = "Balances"; @@ -6373,8 +6861,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some balance was frozen."] pub struct Frozen { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, + pub who: frozen::Who, + pub amount: frozen::Amount, + } + pub mod frozen { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Frozen { const PALLET: &'static str = "Balances"; @@ -6392,8 +6885,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some balance was thawed."] pub struct Thawed { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, + pub who: thawed::Who, + pub amount: thawed::Amount, + } + pub mod thawed { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Thawed { const PALLET: &'static str = "Balances"; @@ -6402,7 +6900,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod total_issuance { use super::runtime_types; @@ -6461,7 +6959,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::total_issuance::TotalIssuance, + types::total_issuance::TotalIssuance, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -6483,7 +6981,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::inactive_issuance::InactiveIssuance, + types::inactive_issuance::InactiveIssuance, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -6527,7 +7025,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::account::Account, + types::account::Account, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -6572,7 +7070,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::account::Account, + types::account::Account, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -6596,7 +7094,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::locks::Locks, + types::locks::Locks, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -6619,7 +7117,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::locks::Locks, + types::locks::Locks, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -6642,7 +7140,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::reserves::Reserves, + types::reserves::Reserves, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -6664,7 +7162,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::reserves::Reserves, + types::reserves::Reserves, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -6687,7 +7185,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::holds::Holds, + types::holds::Holds, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -6710,7 +7208,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::holds::Holds, + types::holds::Holds, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -6734,7 +7232,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::freezes::Freezes, + types::freezes::Freezes, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -6756,7 +7254,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::freezes::Freezes, + types::freezes::Freezes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -6877,9 +7375,15 @@ pub mod api { #[doc = "A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,"] #[doc = "has been paid by `who`."] pub struct TransactionFeePaid { - pub who: ::subxt::utils::AccountId32, - pub actual_fee: ::core::primitive::u128, - pub tip: ::core::primitive::u128, + pub who: transaction_fee_paid::Who, + pub actual_fee: transaction_fee_paid::ActualFee, + pub tip: transaction_fee_paid::Tip, + } + pub mod transaction_fee_paid { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type ActualFee = ::core::primitive::u128; + pub type Tip = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for TransactionFeePaid { const PALLET: &'static str = "TransactionPayment"; @@ -6888,7 +7392,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod next_fee_multiplier { use super::runtime_types; @@ -6906,7 +7410,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::next_fee_multiplier::NextFeeMultiplier, + types::next_fee_multiplier::NextFeeMultiplier, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -6927,7 +7431,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::storage_version::StorageVersion, + types::storage_version::StorageVersion, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -6993,7 +7497,7 @@ pub mod api { use super::runtime_types; pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod author { use super::runtime_types; @@ -7007,7 +7511,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::author::Author, + types::author::Author, ::subxt::storage::address::Yes, (), (), @@ -7048,8 +7552,13 @@ pub mod api { #[doc = "(kind-specific) time slot. This event is not deposited for duplicate slashes."] #[doc = "\\[kind, timeslot\\]."] pub struct Offence { - pub kind: [::core::primitive::u8; 16usize], - pub timeslot: ::std::vec::Vec<::core::primitive::u8>, + pub kind: offence::Kind, + pub timeslot: offence::Timeslot, + } + pub mod offence { + use super::runtime_types; + pub type Kind = [::core::primitive::u8; 16usize]; + pub type Timeslot = ::std::vec::Vec<::core::primitive::u8>; } impl ::subxt::events::StaticEvent for Offence { const PALLET: &'static str = "Offences"; @@ -7058,7 +7567,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod reports { use super::runtime_types; @@ -7079,7 +7588,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::reports::Reports, + types::reports::Reports, (), (), ::subxt::storage::address::Yes, @@ -7102,7 +7611,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::reports::Reports, + types::reports::Reports, ::subxt::storage::address::Yes, (), (), @@ -7126,7 +7635,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::concurrent_reports_index::ConcurrentReportsIndex, + types::concurrent_reports_index::ConcurrentReportsIndex, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -7149,7 +7658,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<[::core::primitive::u8; 16usize]>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::concurrent_reports_index::ConcurrentReportsIndex, + types::concurrent_reports_index::ConcurrentReportsIndex, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -7175,7 +7684,7 @@ pub mod api { _1: impl ::std::borrow::Borrow<[::core::primitive::u8]>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::concurrent_reports_index::ConcurrentReportsIndex, + types::concurrent_reports_index::ConcurrentReportsIndex, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -7213,33 +7722,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - pub mod report_equivocation { - use super::runtime_types; - pub type EquivocationProof = - runtime_types::sp_consensus_beefy::EquivocationProof< - ::core::primitive::u32, - runtime_types::sp_consensus_beefy::ecdsa_crypto::Public, - runtime_types::sp_consensus_beefy::ecdsa_crypto::Signature, - >; - pub type KeyOwnerProof = runtime_types::sp_session::MembershipProof; - } - pub mod report_equivocation_unsigned { - use super::runtime_types; - pub type EquivocationProof = - runtime_types::sp_consensus_beefy::EquivocationProof< - ::core::primitive::u32, - runtime_types::sp_consensus_beefy::ecdsa_crypto::Public, - runtime_types::sp_consensus_beefy::ecdsa_crypto::Signature, - >; - pub type KeyOwnerProof = runtime_types::sp_session::MembershipProof; - } - pub mod set_new_genesis { - use super::runtime_types; - pub type DelayInBlocks = ::core::primitive::u32; - } - } pub mod types { use super::runtime_types; #[derive( @@ -7253,14 +7735,19 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ReportEquivocation { - pub equivocation_proof: ::std::boxed::Box< + pub equivocation_proof: + ::std::boxed::Box, + pub key_owner_proof: report_equivocation::KeyOwnerProof, + } + pub mod report_equivocation { + use super::runtime_types; + pub type EquivocationProof = runtime_types::sp_consensus_beefy::EquivocationProof< ::core::primitive::u32, runtime_types::sp_consensus_beefy::ecdsa_crypto::Public, runtime_types::sp_consensus_beefy::ecdsa_crypto::Signature, - >, - >, - pub key_owner_proof: runtime_types::sp_session::MembershipProof, + >; + pub type KeyOwnerProof = runtime_types::sp_session::MembershipProof; } impl ::subxt::blocks::StaticExtrinsic for ReportEquivocation { const PALLET: &'static str = "Beefy"; @@ -7277,14 +7764,19 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ReportEquivocationUnsigned { - pub equivocation_proof: ::std::boxed::Box< + pub equivocation_proof: + ::std::boxed::Box, + pub key_owner_proof: report_equivocation_unsigned::KeyOwnerProof, + } + pub mod report_equivocation_unsigned { + use super::runtime_types; + pub type EquivocationProof = runtime_types::sp_consensus_beefy::EquivocationProof< ::core::primitive::u32, runtime_types::sp_consensus_beefy::ecdsa_crypto::Public, runtime_types::sp_consensus_beefy::ecdsa_crypto::Signature, - >, - >, - pub key_owner_proof: runtime_types::sp_session::MembershipProof, + >; + pub type KeyOwnerProof = runtime_types::sp_session::MembershipProof; } impl ::subxt::blocks::StaticExtrinsic for ReportEquivocationUnsigned { const PALLET: &'static str = "Beefy"; @@ -7302,7 +7794,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetNewGenesis { - pub delay_in_blocks: ::core::primitive::u32, + pub delay_in_blocks: set_new_genesis::DelayInBlocks, + } + pub mod set_new_genesis { + use super::runtime_types; + pub type DelayInBlocks = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for SetNewGenesis { const PALLET: &'static str = "Beefy"; @@ -7314,8 +7810,8 @@ pub mod api { #[doc = "See [`Pallet::report_equivocation`]."] pub fn report_equivocation( &self, - equivocation_proof: alias_types::report_equivocation::EquivocationProof, - key_owner_proof: alias_types::report_equivocation::KeyOwnerProof, + equivocation_proof: types::report_equivocation::EquivocationProof, + key_owner_proof: types::report_equivocation::KeyOwnerProof, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Beefy", @@ -7335,8 +7831,8 @@ pub mod api { #[doc = "See [`Pallet::report_equivocation_unsigned`]."] pub fn report_equivocation_unsigned( &self, - equivocation_proof : alias_types :: report_equivocation_unsigned :: EquivocationProof, - key_owner_proof: alias_types::report_equivocation_unsigned::KeyOwnerProof, + equivocation_proof: types::report_equivocation_unsigned::EquivocationProof, + key_owner_proof: types::report_equivocation_unsigned::KeyOwnerProof, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Beefy", @@ -7356,7 +7852,7 @@ pub mod api { #[doc = "See [`Pallet::set_new_genesis`]."] pub fn set_new_genesis( &self, - delay_in_blocks: alias_types::set_new_genesis::DelayInBlocks, + delay_in_blocks: types::set_new_genesis::DelayInBlocks, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Beefy", @@ -7373,7 +7869,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod authorities { use super::runtime_types; @@ -7409,7 +7905,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::authorities::Authorities, + types::authorities::Authorities, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -7430,7 +7926,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::validator_set_id::ValidatorSetId, + types::validator_set_id::ValidatorSetId, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -7452,7 +7948,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::next_authorities::NextAuthorities, + types::next_authorities::NextAuthorities, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -7482,7 +7978,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::set_id_session::SetIdSession, + types::set_id_session::SetIdSession, (), (), ::subxt::storage::address::Yes, @@ -7513,7 +8009,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u64>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::set_id_session::SetIdSession, + types::set_id_session::SetIdSession, ::subxt::storage::address::Yes, (), (), @@ -7538,7 +8034,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::genesis_block::GenesisBlock, + types::genesis_block::GenesisBlock, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -7618,7 +8114,7 @@ pub mod api { use super::runtime_types; pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod root_hash { use super::runtime_types; @@ -7640,7 +8136,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::root_hash::RootHash, + types::root_hash::RootHash, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -7661,7 +8157,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::number_of_leaves::NumberOfLeaves, + types::number_of_leaves::NumberOfLeaves, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -7685,7 +8181,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::nodes::Nodes, + types::nodes::Nodes, (), (), ::subxt::storage::address::Yes, @@ -7710,7 +8206,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u64>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::nodes::Nodes, + types::nodes::Nodes, ::subxt::storage::address::Yes, (), (), @@ -7736,7 +8232,7 @@ pub mod api { use super::runtime_types; pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod beefy_authorities { use super::runtime_types; @@ -7760,7 +8256,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::beefy_authorities::BeefyAuthorities, + types::beefy_authorities::BeefyAuthorities, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -7784,7 +8280,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::beefy_next_authorities::BeefyNextAuthorities, + types::beefy_next_authorities::BeefyNextAuthorities, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -7814,17 +8310,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - pub mod set_keys { - use super::runtime_types; - pub type Keys = runtime_types::rococo_runtime::SessionKeys; - pub type Proof = ::std::vec::Vec<::core::primitive::u8>; - } - pub mod purge_keys { - use super::runtime_types; - } - } pub mod types { use super::runtime_types; #[derive( @@ -7838,8 +8323,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetKeys { - pub keys: runtime_types::rococo_runtime::SessionKeys, - pub proof: ::std::vec::Vec<::core::primitive::u8>, + pub keys: set_keys::Keys, + pub proof: set_keys::Proof, + } + pub mod set_keys { + use super::runtime_types; + pub type Keys = runtime_types::rococo_runtime::SessionKeys; + pub type Proof = ::std::vec::Vec<::core::primitive::u8>; } impl ::subxt::blocks::StaticExtrinsic for SetKeys { const PALLET: &'static str = "Session"; @@ -7866,8 +8356,8 @@ pub mod api { #[doc = "See [`Pallet::set_keys`]."] pub fn set_keys( &self, - keys: alias_types::set_keys::Keys, - proof: alias_types::set_keys::Proof, + keys: types::set_keys::Keys, + proof: types::set_keys::Proof, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Session", @@ -7914,7 +8404,11 @@ pub mod api { #[doc = "New session has happened. Note that the argument is the session index, not the"] #[doc = "block number as the type might suggest."] pub struct NewSession { - pub session_index: ::core::primitive::u32, + pub session_index: new_session::SessionIndex, + } + pub mod new_session { + use super::runtime_types; + pub type SessionIndex = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for NewSession { const PALLET: &'static str = "Session"; @@ -7923,7 +8417,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod validators { use super::runtime_types; @@ -7964,7 +8458,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::validators::Validators, + types::validators::Validators, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -7986,7 +8480,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::current_index::CurrentIndex, + types::current_index::CurrentIndex, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -8009,7 +8503,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::queued_changed::QueuedChanged, + types::queued_changed::QueuedChanged, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -8032,7 +8526,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::queued_keys::QueuedKeys, + types::queued_keys::QueuedKeys, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -8057,7 +8551,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::disabled_validators::DisabledValidators, + types::disabled_validators::DisabledValidators, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -8078,7 +8572,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::next_keys::NextKeys, + types::next_keys::NextKeys, (), (), ::subxt::storage::address::Yes, @@ -8100,7 +8594,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::next_keys::NextKeys, + types::next_keys::NextKeys, ::subxt::storage::address::Yes, (), (), @@ -8123,7 +8617,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::key_owner::KeyOwner, + types::key_owner::KeyOwner, (), (), ::subxt::storage::address::Yes, @@ -8146,7 +8640,7 @@ pub mod api { _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::key_owner::KeyOwner, + types::key_owner::KeyOwner, (), (), ::subxt::storage::address::Yes, @@ -8172,7 +8666,7 @@ pub mod api { _1: impl ::std::borrow::Borrow<[::core::primitive::u8]>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::key_owner::KeyOwner, + types::key_owner::KeyOwner, ::subxt::storage::address::Yes, (), (), @@ -8206,32 +8700,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - pub mod report_equivocation { - use super::runtime_types; - pub type EquivocationProof = - runtime_types::sp_consensus_grandpa::EquivocationProof< - ::subxt::utils::H256, - ::core::primitive::u32, - >; - pub type KeyOwnerProof = runtime_types::sp_session::MembershipProof; - } - pub mod report_equivocation_unsigned { - use super::runtime_types; - pub type EquivocationProof = - runtime_types::sp_consensus_grandpa::EquivocationProof< - ::subxt::utils::H256, - ::core::primitive::u32, - >; - pub type KeyOwnerProof = runtime_types::sp_session::MembershipProof; - } - pub mod note_stalled { - use super::runtime_types; - pub type Delay = ::core::primitive::u32; - pub type BestFinalizedBlockNumber = ::core::primitive::u32; - } - } pub mod types { use super::runtime_types; #[derive( @@ -8245,13 +8713,18 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ReportEquivocation { - pub equivocation_proof: ::std::boxed::Box< + pub equivocation_proof: + ::std::boxed::Box, + pub key_owner_proof: report_equivocation::KeyOwnerProof, + } + pub mod report_equivocation { + use super::runtime_types; + pub type EquivocationProof = runtime_types::sp_consensus_grandpa::EquivocationProof< ::subxt::utils::H256, ::core::primitive::u32, - >, - >, - pub key_owner_proof: runtime_types::sp_session::MembershipProof, + >; + pub type KeyOwnerProof = runtime_types::sp_session::MembershipProof; } impl ::subxt::blocks::StaticExtrinsic for ReportEquivocation { const PALLET: &'static str = "Grandpa"; @@ -8268,13 +8741,18 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ReportEquivocationUnsigned { - pub equivocation_proof: ::std::boxed::Box< + pub equivocation_proof: + ::std::boxed::Box, + pub key_owner_proof: report_equivocation_unsigned::KeyOwnerProof, + } + pub mod report_equivocation_unsigned { + use super::runtime_types; + pub type EquivocationProof = runtime_types::sp_consensus_grandpa::EquivocationProof< ::subxt::utils::H256, ::core::primitive::u32, - >, - >, - pub key_owner_proof: runtime_types::sp_session::MembershipProof, + >; + pub type KeyOwnerProof = runtime_types::sp_session::MembershipProof; } impl ::subxt::blocks::StaticExtrinsic for ReportEquivocationUnsigned { const PALLET: &'static str = "Grandpa"; @@ -8291,8 +8769,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct NoteStalled { - pub delay: ::core::primitive::u32, - pub best_finalized_block_number: ::core::primitive::u32, + pub delay: note_stalled::Delay, + pub best_finalized_block_number: note_stalled::BestFinalizedBlockNumber, + } + pub mod note_stalled { + use super::runtime_types; + pub type Delay = ::core::primitive::u32; + pub type BestFinalizedBlockNumber = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for NoteStalled { const PALLET: &'static str = "Grandpa"; @@ -8304,8 +8787,8 @@ pub mod api { #[doc = "See [`Pallet::report_equivocation`]."] pub fn report_equivocation( &self, - equivocation_proof: alias_types::report_equivocation::EquivocationProof, - key_owner_proof: alias_types::report_equivocation::KeyOwnerProof, + equivocation_proof: types::report_equivocation::EquivocationProof, + key_owner_proof: types::report_equivocation::KeyOwnerProof, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Grandpa", @@ -8324,8 +8807,8 @@ pub mod api { #[doc = "See [`Pallet::report_equivocation_unsigned`]."] pub fn report_equivocation_unsigned( &self, - equivocation_proof : alias_types :: report_equivocation_unsigned :: EquivocationProof, - key_owner_proof: alias_types::report_equivocation_unsigned::KeyOwnerProof, + equivocation_proof: types::report_equivocation_unsigned::EquivocationProof, + key_owner_proof: types::report_equivocation_unsigned::KeyOwnerProof, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Grandpa", @@ -8344,8 +8827,8 @@ pub mod api { #[doc = "See [`Pallet::note_stalled`]."] pub fn note_stalled( &self, - delay: alias_types::note_stalled::Delay, - best_finalized_block_number : alias_types :: note_stalled :: BestFinalizedBlockNumber, + delay: types::note_stalled::Delay, + best_finalized_block_number: types::note_stalled::BestFinalizedBlockNumber, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Grandpa", @@ -8379,10 +8862,14 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "New authority set has been applied."] pub struct NewAuthorities { - pub authority_set: ::std::vec::Vec<( + pub authority_set: new_authorities::AuthoritySet, + } + pub mod new_authorities { + use super::runtime_types; + pub type AuthoritySet = ::std::vec::Vec<( runtime_types::sp_consensus_grandpa::app::Public, ::core::primitive::u64, - )>, + )>; } impl ::subxt::events::StaticEvent for NewAuthorities { const PALLET: &'static str = "Grandpa"; @@ -8423,7 +8910,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod state { use super::runtime_types; @@ -8459,7 +8946,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::state::State, + types::state::State, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -8480,7 +8967,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::pending_change::PendingChange, + types::pending_change::PendingChange, ::subxt::storage::address::Yes, (), (), @@ -8502,7 +8989,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::next_forced::NextForced, + types::next_forced::NextForced, ::subxt::storage::address::Yes, (), (), @@ -8523,7 +9010,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::stalled::Stalled, + types::stalled::Stalled, ::subxt::storage::address::Yes, (), (), @@ -8545,7 +9032,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::current_set_id::CurrentSetId, + types::current_set_id::CurrentSetId, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -8576,7 +9063,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::set_id_session::SetIdSession, + types::set_id_session::SetIdSession, (), (), ::subxt::storage::address::Yes, @@ -8607,7 +9094,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u64>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::set_id_session::SetIdSession, + types::set_id_session::SetIdSession, ::subxt::storage::address::Yes, (), (), @@ -8695,16 +9182,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - pub mod heartbeat { - use super::runtime_types; - pub type Heartbeat = - runtime_types::pallet_im_online::Heartbeat<::core::primitive::u32>; - pub type Signature = - runtime_types::pallet_im_online::sr25519::app_sr25519::Signature; - } - } pub mod types { use super::runtime_types; #[derive( @@ -8718,9 +9195,15 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] 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, + pub heartbeat: heartbeat::Heartbeat, + pub signature: heartbeat::Signature, + } + pub mod heartbeat { + use super::runtime_types; + pub type Heartbeat = + runtime_types::pallet_im_online::Heartbeat<::core::primitive::u32>; + pub type Signature = + runtime_types::pallet_im_online::sr25519::app_sr25519::Signature; } impl ::subxt::blocks::StaticExtrinsic for Heartbeat { const PALLET: &'static str = "ImOnline"; @@ -8732,8 +9215,8 @@ pub mod api { #[doc = "See [`Pallet::heartbeat`]."] pub fn heartbeat( &self, - heartbeat: alias_types::heartbeat::Heartbeat, - signature: alias_types::heartbeat::Signature, + heartbeat: types::heartbeat::Heartbeat, + signature: types::heartbeat::Signature, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ImOnline", @@ -8767,7 +9250,12 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A new heartbeat was received from `AuthorityId`."] pub struct HeartbeatReceived { - pub authority_id: runtime_types::pallet_im_online::sr25519::app_sr25519::Public, + pub authority_id: heartbeat_received::AuthorityId, + } + pub mod heartbeat_received { + use super::runtime_types; + pub type AuthorityId = + runtime_types::pallet_im_online::sr25519::app_sr25519::Public; } impl ::subxt::events::StaticEvent for HeartbeatReceived { const PALLET: &'static str = "ImOnline"; @@ -8801,7 +9289,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "At the end of the session, at least one validator was found to be offline."] pub struct SomeOffline { - pub offline: ::std::vec::Vec<(::subxt::utils::AccountId32, ())>, + pub offline: some_offline::Offline, + } + pub mod some_offline { + use super::runtime_types; + pub type Offline = ::std::vec::Vec<(::subxt::utils::AccountId32, ())>; } impl ::subxt::events::StaticEvent for SomeOffline { const PALLET: &'static str = "ImOnline"; @@ -8810,7 +9302,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod heartbeat_after { use super::runtime_types; @@ -8849,7 +9341,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::heartbeat_after::HeartbeatAfter, + types::heartbeat_after::HeartbeatAfter, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -8870,7 +9362,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::keys::Keys, + types::keys::Keys, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -8892,7 +9384,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::received_heartbeats::ReceivedHeartbeats, + types::received_heartbeats::ReceivedHeartbeats, (), (), ::subxt::storage::address::Yes, @@ -8914,7 +9406,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::received_heartbeats::ReceivedHeartbeats, + types::received_heartbeats::ReceivedHeartbeats, (), (), ::subxt::storage::address::Yes, @@ -8939,7 +9431,7 @@ pub mod api { _1: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::received_heartbeats::ReceivedHeartbeats, + types::received_heartbeats::ReceivedHeartbeats, ::subxt::storage::address::Yes, (), (), @@ -8964,7 +9456,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::authored_blocks::AuthoredBlocks, + types::authored_blocks::AuthoredBlocks, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -8988,7 +9480,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::authored_blocks::AuthoredBlocks, + types::authored_blocks::AuthoredBlocks, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -9015,7 +9507,7 @@ pub mod api { _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::authored_blocks::AuthoredBlocks, + types::authored_blocks::AuthoredBlocks, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -9077,53 +9569,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - pub mod propose_spend { - use super::runtime_types; - pub type Value = ::core::primitive::u128; - pub type Beneficiary = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - } - pub mod reject_proposal { - use super::runtime_types; - pub type ProposalId = ::core::primitive::u32; - } - pub mod approve_proposal { - use super::runtime_types; - pub type ProposalId = ::core::primitive::u32; - } - pub mod spend_local { - use super::runtime_types; - pub type Amount = ::core::primitive::u128; - pub type Beneficiary = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - } - pub mod remove_approval { - use super::runtime_types; - pub type ProposalId = ::core::primitive::u32; - } - pub mod spend { - use super::runtime_types; - pub type AssetKind = - runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset; - pub type Amount = ::core::primitive::u128; - pub type Beneficiary = runtime_types::xcm::VersionedMultiLocation; - pub type ValidFrom = ::core::option::Option<::core::primitive::u32>; - } - pub mod payout { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - } - pub mod check_status { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - } - pub mod void_spend { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - } - } pub mod types { use super::runtime_types; #[derive( @@ -9138,8 +9583,14 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ProposeSpend { #[codec(compact)] - pub value: ::core::primitive::u128, - pub beneficiary: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub value: propose_spend::Value, + pub beneficiary: propose_spend::Beneficiary, + } + pub mod propose_spend { + use super::runtime_types; + pub type Value = ::core::primitive::u128; + pub type Beneficiary = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; } impl ::subxt::blocks::StaticExtrinsic for ProposeSpend { const PALLET: &'static str = "Treasury"; @@ -9157,7 +9608,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RejectProposal { #[codec(compact)] - pub proposal_id: ::core::primitive::u32, + pub proposal_id: reject_proposal::ProposalId, + } + pub mod reject_proposal { + use super::runtime_types; + pub type ProposalId = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for RejectProposal { const PALLET: &'static str = "Treasury"; @@ -9175,7 +9630,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ApproveProposal { #[codec(compact)] - pub proposal_id: ::core::primitive::u32, + pub proposal_id: approve_proposal::ProposalId, + } + pub mod approve_proposal { + use super::runtime_types; + pub type ProposalId = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for ApproveProposal { const PALLET: &'static str = "Treasury"; @@ -9193,8 +9652,14 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SpendLocal { #[codec(compact)] - pub amount: ::core::primitive::u128, - pub beneficiary: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub amount: spend_local::Amount, + pub beneficiary: spend_local::Beneficiary, + } + pub mod spend_local { + use super::runtime_types; + pub type Amount = ::core::primitive::u128; + pub type Beneficiary = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; } impl ::subxt::blocks::StaticExtrinsic for SpendLocal { const PALLET: &'static str = "Treasury"; @@ -9212,7 +9677,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RemoveApproval { #[codec(compact)] - pub proposal_id: ::core::primitive::u32, + pub proposal_id: remove_approval::ProposalId, + } + pub mod remove_approval { + use super::runtime_types; + pub type ProposalId = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for RemoveApproval { const PALLET: &'static str = "Treasury"; @@ -9229,13 +9698,19 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Spend { - pub asset_kind: ::std::boxed::Box< - runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset, - >, + pub asset_kind: ::std::boxed::Box, #[codec(compact)] - pub amount: ::core::primitive::u128, - pub beneficiary: ::std::boxed::Box, - pub valid_from: ::core::option::Option<::core::primitive::u32>, + pub amount: spend::Amount, + pub beneficiary: ::std::boxed::Box, + pub valid_from: spend::ValidFrom, + } + pub mod spend { + use super::runtime_types; + pub type AssetKind = + runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset; + pub type Amount = ::core::primitive::u128; + pub type Beneficiary = runtime_types::xcm::VersionedMultiLocation; + pub type ValidFrom = ::core::option::Option<::core::primitive::u32>; } impl ::subxt::blocks::StaticExtrinsic for Spend { const PALLET: &'static str = "Treasury"; @@ -9253,7 +9728,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Payout { - pub index: ::core::primitive::u32, + pub index: payout::Index, + } + pub mod payout { + use super::runtime_types; + pub type Index = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for Payout { const PALLET: &'static str = "Treasury"; @@ -9271,7 +9750,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CheckStatus { - pub index: ::core::primitive::u32, + pub index: check_status::Index, + } + pub mod check_status { + use super::runtime_types; + pub type Index = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for CheckStatus { const PALLET: &'static str = "Treasury"; @@ -9289,7 +9772,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct VoidSpend { - pub index: ::core::primitive::u32, + pub index: void_spend::Index, + } + pub mod void_spend { + use super::runtime_types; + pub type Index = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for VoidSpend { const PALLET: &'static str = "Treasury"; @@ -9301,8 +9788,8 @@ pub mod api { #[doc = "See [`Pallet::propose_spend`]."] pub fn propose_spend( &self, - value: alias_types::propose_spend::Value, - beneficiary: alias_types::propose_spend::Beneficiary, + value: types::propose_spend::Value, + beneficiary: types::propose_spend::Beneficiary, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Treasury", @@ -9318,7 +9805,7 @@ pub mod api { #[doc = "See [`Pallet::reject_proposal`]."] pub fn reject_proposal( &self, - proposal_id: alias_types::reject_proposal::ProposalId, + proposal_id: types::reject_proposal::ProposalId, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Treasury", @@ -9334,7 +9821,7 @@ pub mod api { #[doc = "See [`Pallet::approve_proposal`]."] pub fn approve_proposal( &self, - proposal_id: alias_types::approve_proposal::ProposalId, + proposal_id: types::approve_proposal::ProposalId, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Treasury", @@ -9350,8 +9837,8 @@ pub mod api { #[doc = "See [`Pallet::spend_local`]."] pub fn spend_local( &self, - amount: alias_types::spend_local::Amount, - beneficiary: alias_types::spend_local::Beneficiary, + amount: types::spend_local::Amount, + beneficiary: types::spend_local::Beneficiary, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Treasury", @@ -9370,7 +9857,7 @@ pub mod api { #[doc = "See [`Pallet::remove_approval`]."] pub fn remove_approval( &self, - proposal_id: alias_types::remove_approval::ProposalId, + proposal_id: types::remove_approval::ProposalId, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Treasury", @@ -9387,10 +9874,10 @@ pub mod api { #[doc = "See [`Pallet::spend`]."] pub fn spend( &self, - asset_kind: alias_types::spend::AssetKind, - amount: alias_types::spend::Amount, - beneficiary: alias_types::spend::Beneficiary, - valid_from: alias_types::spend::ValidFrom, + asset_kind: types::spend::AssetKind, + amount: types::spend::Amount, + beneficiary: types::spend::Beneficiary, + valid_from: types::spend::ValidFrom, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Treasury", @@ -9412,7 +9899,7 @@ pub mod api { #[doc = "See [`Pallet::payout`]."] pub fn payout( &self, - index: alias_types::payout::Index, + index: types::payout::Index, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Treasury", @@ -9428,7 +9915,7 @@ pub mod api { #[doc = "See [`Pallet::check_status`]."] pub fn check_status( &self, - index: alias_types::check_status::Index, + index: types::check_status::Index, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Treasury", @@ -9444,7 +9931,7 @@ pub mod api { #[doc = "See [`Pallet::void_spend`]."] pub fn void_spend( &self, - index: alias_types::void_spend::Index, + index: types::void_spend::Index, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Treasury", @@ -9476,7 +9963,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "New proposal."] pub struct Proposed { - pub proposal_index: ::core::primitive::u32, + pub proposal_index: proposed::ProposalIndex, + } + pub mod proposed { + use super::runtime_types; + pub type ProposalIndex = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for Proposed { const PALLET: &'static str = "Treasury"; @@ -9495,7 +9986,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "We have ended a spend period and will now allocate funds."] pub struct Spending { - pub budget_remaining: ::core::primitive::u128, + pub budget_remaining: spending::BudgetRemaining, + } + pub mod spending { + use super::runtime_types; + pub type BudgetRemaining = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Spending { const PALLET: &'static str = "Treasury"; @@ -9513,9 +10008,15 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some funds have been allocated."] pub struct Awarded { - pub proposal_index: ::core::primitive::u32, - pub award: ::core::primitive::u128, - pub account: ::subxt::utils::AccountId32, + pub proposal_index: awarded::ProposalIndex, + pub award: awarded::Award, + pub account: awarded::Account, + } + pub mod awarded { + use super::runtime_types; + pub type ProposalIndex = ::core::primitive::u32; + pub type Award = ::core::primitive::u128; + pub type Account = ::subxt::utils::AccountId32; } impl ::subxt::events::StaticEvent for Awarded { const PALLET: &'static str = "Treasury"; @@ -9533,8 +10034,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A proposal was rejected; funds were slashed."] pub struct Rejected { - pub proposal_index: ::core::primitive::u32, - pub slashed: ::core::primitive::u128, + pub proposal_index: rejected::ProposalIndex, + pub slashed: rejected::Slashed, + } + pub mod rejected { + use super::runtime_types; + pub type ProposalIndex = ::core::primitive::u32; + pub type Slashed = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Rejected { const PALLET: &'static str = "Treasury"; @@ -9553,7 +10059,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some of our funds have been burnt."] pub struct Burnt { - pub burnt_funds: ::core::primitive::u128, + pub burnt_funds: burnt::BurntFunds, + } + pub mod burnt { + use super::runtime_types; + pub type BurntFunds = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Burnt { const PALLET: &'static str = "Treasury"; @@ -9572,7 +10082,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Spending has finished; this is the amount that rolls over until next spend."] pub struct Rollover { - pub rollover_balance: ::core::primitive::u128, + pub rollover_balance: rollover::RolloverBalance, + } + pub mod rollover { + use super::runtime_types; + pub type RolloverBalance = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Rollover { const PALLET: &'static str = "Treasury"; @@ -9591,7 +10105,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some funds have been deposited."] pub struct Deposit { - pub value: ::core::primitive::u128, + pub value: deposit::Value, + } + pub mod deposit { + use super::runtime_types; + pub type Value = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Deposit { const PALLET: &'static str = "Treasury"; @@ -9609,9 +10127,15 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A new spend proposal has been approved."] pub struct SpendApproved { - pub proposal_index: ::core::primitive::u32, - pub amount: ::core::primitive::u128, - pub beneficiary: ::subxt::utils::AccountId32, + pub proposal_index: spend_approved::ProposalIndex, + pub amount: spend_approved::Amount, + pub beneficiary: spend_approved::Beneficiary, + } + pub mod spend_approved { + use super::runtime_types; + pub type ProposalIndex = ::core::primitive::u32; + pub type Amount = ::core::primitive::u128; + pub type Beneficiary = ::subxt::utils::AccountId32; } impl ::subxt::events::StaticEvent for SpendApproved { const PALLET: &'static str = "Treasury"; @@ -9629,8 +10153,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The inactive funds of the pallet have been updated."] pub struct UpdatedInactive { - pub reactivated: ::core::primitive::u128, - pub deactivated: ::core::primitive::u128, + pub reactivated: updated_inactive::Reactivated, + pub deactivated: updated_inactive::Deactivated, + } + pub mod updated_inactive { + use super::runtime_types; + pub type Reactivated = ::core::primitive::u128; + pub type Deactivated = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for UpdatedInactive { const PALLET: &'static str = "Treasury"; @@ -9648,13 +10177,22 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A new asset spend proposal has been approved."] pub struct AssetSpendApproved { - pub index: ::core::primitive::u32, - pub asset_kind: - runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset, - pub amount: ::core::primitive::u128, - pub beneficiary: runtime_types::xcm::VersionedMultiLocation, - pub valid_from: ::core::primitive::u32, - pub expire_at: ::core::primitive::u32, + pub index: asset_spend_approved::Index, + pub asset_kind: asset_spend_approved::AssetKind, + pub amount: asset_spend_approved::Amount, + pub beneficiary: asset_spend_approved::Beneficiary, + pub valid_from: asset_spend_approved::ValidFrom, + pub expire_at: asset_spend_approved::ExpireAt, + } + pub mod asset_spend_approved { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type AssetKind = + runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset; + pub type Amount = ::core::primitive::u128; + pub type Beneficiary = runtime_types::xcm::VersionedMultiLocation; + pub type ValidFrom = ::core::primitive::u32; + pub type ExpireAt = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for AssetSpendApproved { const PALLET: &'static str = "Treasury"; @@ -9673,7 +10211,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An approved spend was voided."] pub struct AssetSpendVoided { - pub index: ::core::primitive::u32, + pub index: asset_spend_voided::Index, + } + pub mod asset_spend_voided { + use super::runtime_types; + pub type Index = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for AssetSpendVoided { const PALLET: &'static str = "Treasury"; @@ -9691,8 +10233,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A payment happened."] pub struct Paid { - pub index: ::core::primitive::u32, - pub payment_id: ::core::primitive::u64, + pub index: paid::Index, + pub payment_id: paid::PaymentId, + } + pub mod paid { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type PaymentId = ::core::primitive::u64; } impl ::subxt::events::StaticEvent for Paid { const PALLET: &'static str = "Treasury"; @@ -9710,8 +10257,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A payment failed and can be retried."] pub struct PaymentFailed { - pub index: ::core::primitive::u32, - pub payment_id: ::core::primitive::u64, + pub index: payment_failed::Index, + pub payment_id: payment_failed::PaymentId, + } + pub mod payment_failed { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type PaymentId = ::core::primitive::u64; } impl ::subxt::events::StaticEvent for PaymentFailed { const PALLET: &'static str = "Treasury"; @@ -9731,7 +10283,11 @@ pub mod api { #[doc = "A spend was processed and removed from the storage. It might have been successfully"] #[doc = "paid or it may have expired."] pub struct SpendProcessed { - pub index: ::core::primitive::u32, + pub index: spend_processed::Index, + } + pub mod spend_processed { + use super::runtime_types; + pub type Index = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for SpendProcessed { const PALLET: &'static str = "Treasury"; @@ -9740,7 +10296,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod proposal_count { use super::runtime_types; @@ -9786,7 +10342,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::proposal_count::ProposalCount, + types::proposal_count::ProposalCount, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -9807,7 +10363,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::proposals::Proposals, + types::proposals::Proposals, (), (), ::subxt::storage::address::Yes, @@ -9830,7 +10386,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::proposals::Proposals, + types::proposals::Proposals, ::subxt::storage::address::Yes, (), (), @@ -9854,7 +10410,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::deactivated::Deactivated, + types::deactivated::Deactivated, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -9876,7 +10432,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::approvals::Approvals, + types::approvals::Approvals, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -9897,7 +10453,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::spend_count::SpendCount, + types::spend_count::SpendCount, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -9919,7 +10475,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::spends::Spends, + types::spends::Spends, (), (), ::subxt::storage::address::Yes, @@ -9942,7 +10498,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::spends::Spends, + types::spends::Spends, ::subxt::storage::address::Yes, (), (), @@ -10098,44 +10654,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - pub mod vote { - use super::runtime_types; - pub type PollIndex = ::core::primitive::u32; - pub type Vote = runtime_types::pallet_conviction_voting::vote::AccountVote< - ::core::primitive::u128, - >; - } - pub mod delegate { - use super::runtime_types; - pub type Class = ::core::primitive::u16; - pub type To = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Conviction = - runtime_types::pallet_conviction_voting::conviction::Conviction; - pub type Balance = ::core::primitive::u128; - } - pub mod undelegate { - use super::runtime_types; - pub type Class = ::core::primitive::u16; - } - pub mod unlock { - use super::runtime_types; - pub type Class = ::core::primitive::u16; - pub type Target = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - } - pub mod remove_vote { - use super::runtime_types; - pub type Class = ::core::option::Option<::core::primitive::u16>; - pub type Index = ::core::primitive::u32; - } - pub mod remove_other_vote { - use super::runtime_types; - pub type Target = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Class = ::core::primitive::u16; - pub type Index = ::core::primitive::u32; - } - } pub mod types { use super::runtime_types; #[derive( @@ -10150,10 +10668,15 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Vote { #[codec(compact)] - pub poll_index: ::core::primitive::u32, - pub vote: runtime_types::pallet_conviction_voting::vote::AccountVote< + pub poll_index: vote::PollIndex, + pub vote: vote::Vote, + } + pub mod vote { + use super::runtime_types; + pub type PollIndex = ::core::primitive::u32; + pub type Vote = runtime_types::pallet_conviction_voting::vote::AccountVote< ::core::primitive::u128, - >, + >; } impl ::subxt::blocks::StaticExtrinsic for Vote { const PALLET: &'static str = "ConvictionVoting"; @@ -10170,10 +10693,18 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Delegate { - pub class: ::core::primitive::u16, - pub to: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub conviction: runtime_types::pallet_conviction_voting::conviction::Conviction, - pub balance: ::core::primitive::u128, + pub class: delegate::Class, + pub to: delegate::To, + pub conviction: delegate::Conviction, + pub balance: delegate::Balance, + } + pub mod delegate { + use super::runtime_types; + pub type Class = ::core::primitive::u16; + pub type To = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Conviction = + runtime_types::pallet_conviction_voting::conviction::Conviction; + pub type Balance = ::core::primitive::u128; } impl ::subxt::blocks::StaticExtrinsic for Delegate { const PALLET: &'static str = "ConvictionVoting"; @@ -10191,7 +10722,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Undelegate { - pub class: ::core::primitive::u16, + pub class: undelegate::Class, + } + pub mod undelegate { + use super::runtime_types; + pub type Class = ::core::primitive::u16; } impl ::subxt::blocks::StaticExtrinsic for Undelegate { const PALLET: &'static str = "ConvictionVoting"; @@ -10208,8 +10743,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Unlock { - pub class: ::core::primitive::u16, - pub target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub class: unlock::Class, + pub target: unlock::Target, + } + pub mod unlock { + use super::runtime_types; + pub type Class = ::core::primitive::u16; + pub type Target = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; } impl ::subxt::blocks::StaticExtrinsic for Unlock { const PALLET: &'static str = "ConvictionVoting"; @@ -10226,8 +10766,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RemoveVote { - pub class: ::core::option::Option<::core::primitive::u16>, - pub index: ::core::primitive::u32, + pub class: remove_vote::Class, + pub index: remove_vote::Index, + } + pub mod remove_vote { + use super::runtime_types; + pub type Class = ::core::option::Option<::core::primitive::u16>; + pub type Index = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for RemoveVote { const PALLET: &'static str = "ConvictionVoting"; @@ -10244,9 +10789,15 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RemoveOtherVote { - pub target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub class: ::core::primitive::u16, - pub index: ::core::primitive::u32, + pub target: remove_other_vote::Target, + pub class: remove_other_vote::Class, + pub index: remove_other_vote::Index, + } + pub mod remove_other_vote { + use super::runtime_types; + pub type Target = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Class = ::core::primitive::u16; + pub type Index = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for RemoveOtherVote { const PALLET: &'static str = "ConvictionVoting"; @@ -10258,8 +10809,8 @@ pub mod api { #[doc = "See [`Pallet::vote`]."] pub fn vote( &self, - poll_index: alias_types::vote::PollIndex, - vote: alias_types::vote::Vote, + poll_index: types::vote::PollIndex, + vote: types::vote::Vote, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ConvictionVoting", @@ -10276,10 +10827,10 @@ pub mod api { #[doc = "See [`Pallet::delegate`]."] pub fn delegate( &self, - class: alias_types::delegate::Class, - to: alias_types::delegate::To, - conviction: alias_types::delegate::Conviction, - balance: alias_types::delegate::Balance, + class: types::delegate::Class, + to: types::delegate::To, + conviction: types::delegate::Conviction, + balance: types::delegate::Balance, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ConvictionVoting", @@ -10300,7 +10851,7 @@ pub mod api { #[doc = "See [`Pallet::undelegate`]."] pub fn undelegate( &self, - class: alias_types::undelegate::Class, + class: types::undelegate::Class, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ConvictionVoting", @@ -10317,8 +10868,8 @@ pub mod api { #[doc = "See [`Pallet::unlock`]."] pub fn unlock( &self, - class: alias_types::unlock::Class, - target: alias_types::unlock::Target, + class: types::unlock::Class, + target: types::unlock::Target, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ConvictionVoting", @@ -10335,8 +10886,8 @@ pub mod api { #[doc = "See [`Pallet::remove_vote`]."] pub fn remove_vote( &self, - class: alias_types::remove_vote::Class, - index: alias_types::remove_vote::Index, + class: types::remove_vote::Class, + index: types::remove_vote::Index, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ConvictionVoting", @@ -10353,9 +10904,9 @@ pub mod api { #[doc = "See [`Pallet::remove_other_vote`]."] pub fn remove_other_vote( &self, - target: alias_types::remove_other_vote::Target, - class: alias_types::remove_other_vote::Class, - index: alias_types::remove_other_vote::Index, + target: types::remove_other_vote::Target, + class: types::remove_other_vote::Class, + index: types::remove_other_vote::Index, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ConvictionVoting", @@ -10416,7 +10967,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod voting_for { use super::runtime_types; @@ -10444,7 +10995,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::voting_for::VotingFor, + types::voting_for::VotingFor, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -10467,7 +11018,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::voting_for::VotingFor, + types::voting_for::VotingFor, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -10493,7 +11044,7 @@ pub mod api { _1: impl ::std::borrow::Borrow<::core::primitive::u16>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::voting_for::VotingFor, + types::voting_for::VotingFor, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -10519,7 +11070,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::class_locks_for::ClassLocksFor, + types::class_locks_for::ClassLocksFor, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -10543,7 +11094,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::class_locks_for::ClassLocksFor, + types::class_locks_for::ClassLocksFor, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -10615,54 +11166,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - pub mod submit { - use super::runtime_types; - pub type ProposalOrigin = runtime_types::rococo_runtime::OriginCaller; - pub type Proposal = runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::rococo_runtime::RuntimeCall, - runtime_types::sp_runtime::traits::BlakeTwo256, - >; - pub type EnactmentMoment = - runtime_types::frame_support::traits::schedule::DispatchTime< - ::core::primitive::u32, - >; - } - pub mod place_decision_deposit { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - } - pub mod refund_decision_deposit { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - } - pub mod cancel { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - } - pub mod kill { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - } - pub mod nudge_referendum { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - } - pub mod one_fewer_deciding { - use super::runtime_types; - pub type Track = ::core::primitive::u16; - } - pub mod refund_submission_deposit { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - } - pub mod set_metadata { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - pub type MaybeHash = ::core::option::Option<::subxt::utils::H256>; - } - } pub mod types { use super::runtime_types; #[derive( @@ -10676,16 +11179,21 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Submit { - pub proposal_origin: - ::std::boxed::Box, - pub proposal: runtime_types::frame_support::traits::preimages::Bounded< + pub proposal_origin: ::std::boxed::Box, + pub proposal: submit::Proposal, + pub enactment_moment: submit::EnactmentMoment, + } + pub mod submit { + use super::runtime_types; + pub type ProposalOrigin = runtime_types::rococo_runtime::OriginCaller; + pub type Proposal = runtime_types::frame_support::traits::preimages::Bounded< runtime_types::rococo_runtime::RuntimeCall, runtime_types::sp_runtime::traits::BlakeTwo256, - >, - pub enactment_moment: + >; + pub type EnactmentMoment = runtime_types::frame_support::traits::schedule::DispatchTime< ::core::primitive::u32, - >, + >; } impl ::subxt::blocks::StaticExtrinsic for Submit { const PALLET: &'static str = "Referenda"; @@ -10703,7 +11211,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PlaceDecisionDeposit { - pub index: ::core::primitive::u32, + pub index: place_decision_deposit::Index, + } + pub mod place_decision_deposit { + use super::runtime_types; + pub type Index = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for PlaceDecisionDeposit { const PALLET: &'static str = "Referenda"; @@ -10721,7 +11233,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RefundDecisionDeposit { - pub index: ::core::primitive::u32, + pub index: refund_decision_deposit::Index, + } + pub mod refund_decision_deposit { + use super::runtime_types; + pub type Index = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for RefundDecisionDeposit { const PALLET: &'static str = "Referenda"; @@ -10739,7 +11255,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Cancel { - pub index: ::core::primitive::u32, + pub index: cancel::Index, + } + pub mod cancel { + use super::runtime_types; + pub type Index = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for Cancel { const PALLET: &'static str = "Referenda"; @@ -10757,7 +11277,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Kill { - pub index: ::core::primitive::u32, + pub index: kill::Index, + } + pub mod kill { + use super::runtime_types; + pub type Index = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for Kill { const PALLET: &'static str = "Referenda"; @@ -10775,7 +11299,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct NudgeReferendum { - pub index: ::core::primitive::u32, + pub index: nudge_referendum::Index, + } + pub mod nudge_referendum { + use super::runtime_types; + pub type Index = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for NudgeReferendum { const PALLET: &'static str = "Referenda"; @@ -10793,7 +11321,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct OneFewerDeciding { - pub track: ::core::primitive::u16, + pub track: one_fewer_deciding::Track, + } + pub mod one_fewer_deciding { + use super::runtime_types; + pub type Track = ::core::primitive::u16; } impl ::subxt::blocks::StaticExtrinsic for OneFewerDeciding { const PALLET: &'static str = "Referenda"; @@ -10811,7 +11343,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RefundSubmissionDeposit { - pub index: ::core::primitive::u32, + pub index: refund_submission_deposit::Index, + } + pub mod refund_submission_deposit { + use super::runtime_types; + pub type Index = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for RefundSubmissionDeposit { const PALLET: &'static str = "Referenda"; @@ -10828,8 +11364,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetMetadata { - pub index: ::core::primitive::u32, - pub maybe_hash: ::core::option::Option<::subxt::utils::H256>, + pub index: set_metadata::Index, + pub maybe_hash: set_metadata::MaybeHash, + } + pub mod set_metadata { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type MaybeHash = ::core::option::Option<::subxt::utils::H256>; } impl ::subxt::blocks::StaticExtrinsic for SetMetadata { const PALLET: &'static str = "Referenda"; @@ -10841,9 +11382,9 @@ pub mod api { #[doc = "See [`Pallet::submit`]."] pub fn submit( &self, - proposal_origin: alias_types::submit::ProposalOrigin, - proposal: alias_types::submit::Proposal, - enactment_moment: alias_types::submit::EnactmentMoment, + proposal_origin: types::submit::ProposalOrigin, + proposal: types::submit::Proposal, + enactment_moment: types::submit::EnactmentMoment, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Referenda", @@ -10864,7 +11405,7 @@ pub mod api { #[doc = "See [`Pallet::place_decision_deposit`]."] pub fn place_decision_deposit( &self, - index: alias_types::place_decision_deposit::Index, + index: types::place_decision_deposit::Index, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Referenda", @@ -10880,7 +11421,7 @@ pub mod api { #[doc = "See [`Pallet::refund_decision_deposit`]."] pub fn refund_decision_deposit( &self, - index: alias_types::refund_decision_deposit::Index, + index: types::refund_decision_deposit::Index, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Referenda", @@ -10896,7 +11437,7 @@ pub mod api { #[doc = "See [`Pallet::cancel`]."] pub fn cancel( &self, - index: alias_types::cancel::Index, + index: types::cancel::Index, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Referenda", @@ -10911,10 +11452,7 @@ pub mod api { ) } #[doc = "See [`Pallet::kill`]."] - pub fn kill( - &self, - index: alias_types::kill::Index, - ) -> ::subxt::tx::Payload { + pub fn kill(&self, index: types::kill::Index) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Referenda", "kill", @@ -10930,7 +11468,7 @@ pub mod api { #[doc = "See [`Pallet::nudge_referendum`]."] pub fn nudge_referendum( &self, - index: alias_types::nudge_referendum::Index, + index: types::nudge_referendum::Index, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Referenda", @@ -10947,7 +11485,7 @@ pub mod api { #[doc = "See [`Pallet::one_fewer_deciding`]."] pub fn one_fewer_deciding( &self, - track: alias_types::one_fewer_deciding::Track, + track: types::one_fewer_deciding::Track, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Referenda", @@ -10964,7 +11502,7 @@ pub mod api { #[doc = "See [`Pallet::refund_submission_deposit`]."] pub fn refund_submission_deposit( &self, - index: alias_types::refund_submission_deposit::Index, + index: types::refund_submission_deposit::Index, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Referenda", @@ -10980,8 +11518,8 @@ pub mod api { #[doc = "See [`Pallet::set_metadata`]."] pub fn set_metadata( &self, - index: alias_types::set_metadata::Index, - maybe_hash: alias_types::set_metadata::MaybeHash, + index: types::set_metadata::Index, + maybe_hash: types::set_metadata::MaybeHash, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Referenda", @@ -11013,12 +11551,18 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A referendum has been submitted."] pub struct Submitted { - pub index: ::core::primitive::u32, - pub track: ::core::primitive::u16, - pub proposal: runtime_types::frame_support::traits::preimages::Bounded< + pub index: submitted::Index, + pub track: submitted::Track, + pub proposal: submitted::Proposal, + } + pub mod submitted { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Track = ::core::primitive::u16; + pub type Proposal = runtime_types::frame_support::traits::preimages::Bounded< runtime_types::rococo_runtime::RuntimeCall, runtime_types::sp_runtime::traits::BlakeTwo256, - >, + >; } impl ::subxt::events::StaticEvent for Submitted { const PALLET: &'static str = "Referenda"; @@ -11036,9 +11580,15 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The decision deposit has been placed."] pub struct DecisionDepositPlaced { - pub index: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, + pub index: decision_deposit_placed::Index, + pub who: decision_deposit_placed::Who, + pub amount: decision_deposit_placed::Amount, + } + pub mod decision_deposit_placed { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for DecisionDepositPlaced { const PALLET: &'static str = "Referenda"; @@ -11056,9 +11606,15 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The decision deposit has been refunded."] pub struct DecisionDepositRefunded { - pub index: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, + pub index: decision_deposit_refunded::Index, + pub who: decision_deposit_refunded::Who, + pub amount: decision_deposit_refunded::Amount, + } + pub mod decision_deposit_refunded { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for DecisionDepositRefunded { const PALLET: &'static str = "Referenda"; @@ -11076,8 +11632,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A deposit has been slashed."] pub struct DepositSlashed { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, + pub who: deposit_slashed::Who, + pub amount: deposit_slashed::Amount, + } + pub mod deposit_slashed { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for DepositSlashed { const PALLET: &'static str = "Referenda"; @@ -11095,14 +11656,21 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A referendum has moved into the deciding phase."] pub struct DecisionStarted { - pub index: ::core::primitive::u32, - pub track: ::core::primitive::u16, - pub proposal: runtime_types::frame_support::traits::preimages::Bounded< + pub index: decision_started::Index, + pub track: decision_started::Track, + pub proposal: decision_started::Proposal, + pub tally: decision_started::Tally, + } + pub mod decision_started { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Track = ::core::primitive::u16; + pub type Proposal = runtime_types::frame_support::traits::preimages::Bounded< runtime_types::rococo_runtime::RuntimeCall, runtime_types::sp_runtime::traits::BlakeTwo256, - >, - pub tally: - runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>, + >; + pub type Tally = + runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>; } impl ::subxt::events::StaticEvent for DecisionStarted { const PALLET: &'static str = "Referenda"; @@ -11120,7 +11688,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ConfirmStarted { - pub index: ::core::primitive::u32, + pub index: confirm_started::Index, + } + pub mod confirm_started { + use super::runtime_types; + pub type Index = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for ConfirmStarted { const PALLET: &'static str = "Referenda"; @@ -11138,7 +11710,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ConfirmAborted { - pub index: ::core::primitive::u32, + pub index: confirm_aborted::Index, + } + pub mod confirm_aborted { + use super::runtime_types; + pub type Index = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for ConfirmAborted { const PALLET: &'static str = "Referenda"; @@ -11156,9 +11732,14 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A referendum has ended its confirmation phase and is ready for approval."] pub struct Confirmed { - pub index: ::core::primitive::u32, - pub tally: - runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>, + pub index: confirmed::Index, + pub tally: confirmed::Tally, + } + pub mod confirmed { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Tally = + runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>; } impl ::subxt::events::StaticEvent for Confirmed { const PALLET: &'static str = "Referenda"; @@ -11177,7 +11758,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A referendum has been approved and its proposal has been scheduled."] pub struct Approved { - pub index: ::core::primitive::u32, + pub index: approved::Index, + } + pub mod approved { + use super::runtime_types; + pub type Index = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for Approved { const PALLET: &'static str = "Referenda"; @@ -11195,9 +11780,14 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A proposal has been rejected by referendum."] pub struct Rejected { - pub index: ::core::primitive::u32, - pub tally: - runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>, + pub index: rejected::Index, + pub tally: rejected::Tally, + } + pub mod rejected { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Tally = + runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>; } impl ::subxt::events::StaticEvent for Rejected { const PALLET: &'static str = "Referenda"; @@ -11215,9 +11805,14 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A referendum has been timed out without being decided."] pub struct TimedOut { - pub index: ::core::primitive::u32, - pub tally: - runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>, + pub index: timed_out::Index, + pub tally: timed_out::Tally, + } + pub mod timed_out { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Tally = + runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>; } impl ::subxt::events::StaticEvent for TimedOut { const PALLET: &'static str = "Referenda"; @@ -11235,9 +11830,14 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A referendum has been cancelled."] pub struct Cancelled { - pub index: ::core::primitive::u32, - pub tally: - runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>, + pub index: cancelled::Index, + pub tally: cancelled::Tally, + } + pub mod cancelled { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Tally = + runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>; } impl ::subxt::events::StaticEvent for Cancelled { const PALLET: &'static str = "Referenda"; @@ -11255,9 +11855,14 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A referendum has been killed."] pub struct Killed { - pub index: ::core::primitive::u32, - pub tally: - runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>, + pub index: killed::Index, + pub tally: killed::Tally, + } + pub mod killed { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Tally = + runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>; } impl ::subxt::events::StaticEvent for Killed { const PALLET: &'static str = "Referenda"; @@ -11275,9 +11880,15 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The submission deposit has been refunded."] pub struct SubmissionDepositRefunded { - pub index: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, + pub index: submission_deposit_refunded::Index, + pub who: submission_deposit_refunded::Who, + pub amount: submission_deposit_refunded::Amount, + } + pub mod submission_deposit_refunded { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for SubmissionDepositRefunded { const PALLET: &'static str = "Referenda"; @@ -11295,8 +11906,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Metadata for a referendum has been set."] pub struct MetadataSet { - pub index: ::core::primitive::u32, - pub hash: ::subxt::utils::H256, + pub index: metadata_set::Index, + pub hash: metadata_set::Hash, + } + pub mod metadata_set { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Hash = ::subxt::utils::H256; } impl ::subxt::events::StaticEvent for MetadataSet { const PALLET: &'static str = "Referenda"; @@ -11314,8 +11930,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Metadata for a referendum has been cleared."] pub struct MetadataCleared { - pub index: ::core::primitive::u32, - pub hash: ::subxt::utils::H256, + pub index: metadata_cleared::Index, + pub hash: metadata_cleared::Hash, + } + pub mod metadata_cleared { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Hash = ::subxt::utils::H256; } impl ::subxt::events::StaticEvent for MetadataCleared { const PALLET: &'static str = "Referenda"; @@ -11324,7 +11945,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod referendum_count { use super::runtime_types; @@ -11373,7 +11994,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::referendum_count::ReferendumCount, + types::referendum_count::ReferendumCount, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -11395,7 +12016,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::referendum_info_for::ReferendumInfoFor, + types::referendum_info_for::ReferendumInfoFor, (), (), ::subxt::storage::address::Yes, @@ -11417,7 +12038,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::referendum_info_for::ReferendumInfoFor, + types::referendum_info_for::ReferendumInfoFor, ::subxt::storage::address::Yes, (), (), @@ -11443,7 +12064,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::track_queue::TrackQueue, + types::track_queue::TrackQueue, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -11468,7 +12089,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u16>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::track_queue::TrackQueue, + types::track_queue::TrackQueue, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -11491,7 +12112,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::deciding_count::DecidingCount, + types::deciding_count::DecidingCount, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -11514,7 +12135,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u16>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::deciding_count::DecidingCount, + types::deciding_count::DecidingCount, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -11543,7 +12164,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::metadata_of::MetadataOf, + types::metadata_of::MetadataOf, (), (), ::subxt::storage::address::Yes, @@ -11571,7 +12192,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::metadata_of::MetadataOf, + types::metadata_of::MetadataOf, ::subxt::storage::address::Yes, (), (), @@ -11693,36 +12314,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - pub mod add_member { - use super::runtime_types; - pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - } - pub mod promote_member { - use super::runtime_types; - pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - } - pub mod demote_member { - use super::runtime_types; - pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - } - pub mod remove_member { - use super::runtime_types; - pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type MinRank = ::core::primitive::u16; - } - pub mod vote { - use super::runtime_types; - pub type Poll = ::core::primitive::u32; - pub type Aye = ::core::primitive::bool; - } - pub mod cleanup_poll { - use super::runtime_types; - pub type PollIndex = ::core::primitive::u32; - pub type Max = ::core::primitive::u32; - } - } pub mod types { use super::runtime_types; #[derive( @@ -11736,7 +12327,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AddMember { - pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub who: add_member::Who, + } + pub mod add_member { + use super::runtime_types; + pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; } impl ::subxt::blocks::StaticExtrinsic for AddMember { const PALLET: &'static str = "FellowshipCollective"; @@ -11753,7 +12348,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PromoteMember { - pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub who: promote_member::Who, + } + pub mod promote_member { + use super::runtime_types; + pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; } impl ::subxt::blocks::StaticExtrinsic for PromoteMember { const PALLET: &'static str = "FellowshipCollective"; @@ -11770,7 +12369,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct DemoteMember { - pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub who: demote_member::Who, + } + pub mod demote_member { + use super::runtime_types; + pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; } impl ::subxt::blocks::StaticExtrinsic for DemoteMember { const PALLET: &'static str = "FellowshipCollective"; @@ -11787,8 +12390,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RemoveMember { - pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub min_rank: ::core::primitive::u16, + pub who: remove_member::Who, + pub min_rank: remove_member::MinRank, + } + pub mod remove_member { + use super::runtime_types; + pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type MinRank = ::core::primitive::u16; } impl ::subxt::blocks::StaticExtrinsic for RemoveMember { const PALLET: &'static str = "FellowshipCollective"; @@ -11805,8 +12413,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Vote { - pub poll: ::core::primitive::u32, - pub aye: ::core::primitive::bool, + pub poll: vote::Poll, + pub aye: vote::Aye, + } + pub mod vote { + use super::runtime_types; + pub type Poll = ::core::primitive::u32; + pub type Aye = ::core::primitive::bool; } impl ::subxt::blocks::StaticExtrinsic for Vote { const PALLET: &'static str = "FellowshipCollective"; @@ -11823,8 +12436,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CleanupPoll { - pub poll_index: ::core::primitive::u32, - pub max: ::core::primitive::u32, + pub poll_index: cleanup_poll::PollIndex, + pub max: cleanup_poll::Max, + } + pub mod cleanup_poll { + use super::runtime_types; + pub type PollIndex = ::core::primitive::u32; + pub type Max = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for CleanupPoll { const PALLET: &'static str = "FellowshipCollective"; @@ -11836,7 +12454,7 @@ pub mod api { #[doc = "See [`Pallet::add_member`]."] pub fn add_member( &self, - who: alias_types::add_member::Who, + who: types::add_member::Who, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "FellowshipCollective", @@ -11852,7 +12470,7 @@ pub mod api { #[doc = "See [`Pallet::promote_member`]."] pub fn promote_member( &self, - who: alias_types::promote_member::Who, + who: types::promote_member::Who, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "FellowshipCollective", @@ -11869,7 +12487,7 @@ pub mod api { #[doc = "See [`Pallet::demote_member`]."] pub fn demote_member( &self, - who: alias_types::demote_member::Who, + who: types::demote_member::Who, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "FellowshipCollective", @@ -11886,8 +12504,8 @@ pub mod api { #[doc = "See [`Pallet::remove_member`]."] pub fn remove_member( &self, - who: alias_types::remove_member::Who, - min_rank: alias_types::remove_member::MinRank, + who: types::remove_member::Who, + min_rank: types::remove_member::MinRank, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "FellowshipCollective", @@ -11904,8 +12522,8 @@ pub mod api { #[doc = "See [`Pallet::vote`]."] pub fn vote( &self, - poll: alias_types::vote::Poll, - aye: alias_types::vote::Aye, + poll: types::vote::Poll, + aye: types::vote::Aye, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "FellowshipCollective", @@ -11921,8 +12539,8 @@ pub mod api { #[doc = "See [`Pallet::cleanup_poll`]."] pub fn cleanup_poll( &self, - poll_index: alias_types::cleanup_poll::PollIndex, - max: alias_types::cleanup_poll::Max, + poll_index: types::cleanup_poll::PollIndex, + max: types::cleanup_poll::Max, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "FellowshipCollective", @@ -11954,7 +12572,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A member `who` has been added."] pub struct MemberAdded { - pub who: ::subxt::utils::AccountId32, + pub who: member_added::Who, + } + pub mod member_added { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; } impl ::subxt::events::StaticEvent for MemberAdded { const PALLET: &'static str = "FellowshipCollective"; @@ -11972,8 +12594,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The member `who`se rank has been changed to the given `rank`."] pub struct RankChanged { - pub who: ::subxt::utils::AccountId32, - pub rank: ::core::primitive::u16, + pub who: rank_changed::Who, + pub rank: rank_changed::Rank, + } + pub mod rank_changed { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Rank = ::core::primitive::u16; } impl ::subxt::events::StaticEvent for RankChanged { const PALLET: &'static str = "FellowshipCollective"; @@ -11991,8 +12618,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The member `who` of given `rank` has been removed from the collective."] pub struct MemberRemoved { - pub who: ::subxt::utils::AccountId32, - pub rank: ::core::primitive::u16, + pub who: member_removed::Who, + pub rank: member_removed::Rank, + } + pub mod member_removed { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Rank = ::core::primitive::u16; } impl ::subxt::events::StaticEvent for MemberRemoved { const PALLET: &'static str = "FellowshipCollective"; @@ -12011,10 +12643,17 @@ pub mod api { #[doc = "The member `who` has voted for the `poll` with the given `vote` leading to an updated"] #[doc = "`tally`."] pub struct Voted { - pub who: ::subxt::utils::AccountId32, - pub poll: ::core::primitive::u32, - pub vote: runtime_types::pallet_ranked_collective::VoteRecord, - pub tally: runtime_types::pallet_ranked_collective::Tally, + pub who: voted::Who, + pub poll: voted::Poll, + pub vote: voted::Vote, + pub tally: voted::Tally, + } + pub mod voted { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Poll = ::core::primitive::u32; + pub type Vote = runtime_types::pallet_ranked_collective::VoteRecord; + pub type Tally = runtime_types::pallet_ranked_collective::Tally; } impl ::subxt::events::StaticEvent for Voted { const PALLET: &'static str = "FellowshipCollective"; @@ -12023,7 +12662,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod member_count { use super::runtime_types; @@ -12061,7 +12700,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::member_count::MemberCount, + types::member_count::MemberCount, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -12084,7 +12723,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u16>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::member_count::MemberCount, + types::member_count::MemberCount, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -12107,7 +12746,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::members::Members, + types::members::Members, (), (), ::subxt::storage::address::Yes, @@ -12130,7 +12769,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::members::Members, + types::members::Members, ::subxt::storage::address::Yes, (), (), @@ -12154,7 +12793,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::id_to_index::IdToIndex, + types::id_to_index::IdToIndex, (), (), ::subxt::storage::address::Yes, @@ -12176,7 +12815,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u16>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::id_to_index::IdToIndex, + types::id_to_index::IdToIndex, (), (), ::subxt::storage::address::Yes, @@ -12201,7 +12840,7 @@ pub mod api { _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::id_to_index::IdToIndex, + types::id_to_index::IdToIndex, ::subxt::storage::address::Yes, (), (), @@ -12226,7 +12865,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::index_to_id::IndexToId, + types::index_to_id::IndexToId, (), (), ::subxt::storage::address::Yes, @@ -12250,7 +12889,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u16>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::index_to_id::IndexToId, + types::index_to_id::IndexToId, (), (), ::subxt::storage::address::Yes, @@ -12277,7 +12916,7 @@ pub mod api { _1: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::index_to_id::IndexToId, + types::index_to_id::IndexToId, ::subxt::storage::address::Yes, (), (), @@ -12302,7 +12941,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::voting::Voting, + types::voting::Voting, (), (), ::subxt::storage::address::Yes, @@ -12325,7 +12964,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::voting::Voting, + types::voting::Voting, (), (), ::subxt::storage::address::Yes, @@ -12351,7 +12990,7 @@ pub mod api { _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::voting::Voting, + types::voting::Voting, ::subxt::storage::address::Yes, (), (), @@ -12375,7 +13014,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::voting_cleanup::VotingCleanup, + types::voting_cleanup::VotingCleanup, (), (), ::subxt::storage::address::Yes, @@ -12396,7 +13035,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::voting_cleanup::VotingCleanup, + types::voting_cleanup::VotingCleanup, ::subxt::storage::address::Yes, (), (), @@ -12428,54 +13067,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - pub mod submit { - use super::runtime_types; - pub type ProposalOrigin = runtime_types::rococo_runtime::OriginCaller; - pub type Proposal = runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::rococo_runtime::RuntimeCall, - runtime_types::sp_runtime::traits::BlakeTwo256, - >; - pub type EnactmentMoment = - runtime_types::frame_support::traits::schedule::DispatchTime< - ::core::primitive::u32, - >; - } - pub mod place_decision_deposit { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - } - pub mod refund_decision_deposit { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - } - pub mod cancel { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - } - pub mod kill { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - } - pub mod nudge_referendum { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - } - pub mod one_fewer_deciding { - use super::runtime_types; - pub type Track = ::core::primitive::u16; - } - pub mod refund_submission_deposit { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - } - pub mod set_metadata { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - pub type MaybeHash = ::core::option::Option<::subxt::utils::H256>; - } - } pub mod types { use super::runtime_types; #[derive( @@ -12489,16 +13080,21 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Submit { - pub proposal_origin: - ::std::boxed::Box, - pub proposal: runtime_types::frame_support::traits::preimages::Bounded< + pub proposal_origin: ::std::boxed::Box, + pub proposal: submit::Proposal, + pub enactment_moment: submit::EnactmentMoment, + } + pub mod submit { + use super::runtime_types; + pub type ProposalOrigin = runtime_types::rococo_runtime::OriginCaller; + pub type Proposal = runtime_types::frame_support::traits::preimages::Bounded< runtime_types::rococo_runtime::RuntimeCall, runtime_types::sp_runtime::traits::BlakeTwo256, - >, - pub enactment_moment: + >; + pub type EnactmentMoment = runtime_types::frame_support::traits::schedule::DispatchTime< ::core::primitive::u32, - >, + >; } impl ::subxt::blocks::StaticExtrinsic for Submit { const PALLET: &'static str = "FellowshipReferenda"; @@ -12516,7 +13112,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PlaceDecisionDeposit { - pub index: ::core::primitive::u32, + pub index: place_decision_deposit::Index, + } + pub mod place_decision_deposit { + use super::runtime_types; + pub type Index = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for PlaceDecisionDeposit { const PALLET: &'static str = "FellowshipReferenda"; @@ -12534,7 +13134,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RefundDecisionDeposit { - pub index: ::core::primitive::u32, + pub index: refund_decision_deposit::Index, + } + pub mod refund_decision_deposit { + use super::runtime_types; + pub type Index = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for RefundDecisionDeposit { const PALLET: &'static str = "FellowshipReferenda"; @@ -12552,7 +13156,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Cancel { - pub index: ::core::primitive::u32, + pub index: cancel::Index, + } + pub mod cancel { + use super::runtime_types; + pub type Index = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for Cancel { const PALLET: &'static str = "FellowshipReferenda"; @@ -12570,7 +13178,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Kill { - pub index: ::core::primitive::u32, + pub index: kill::Index, + } + pub mod kill { + use super::runtime_types; + pub type Index = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for Kill { const PALLET: &'static str = "FellowshipReferenda"; @@ -12588,7 +13200,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct NudgeReferendum { - pub index: ::core::primitive::u32, + pub index: nudge_referendum::Index, + } + pub mod nudge_referendum { + use super::runtime_types; + pub type Index = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for NudgeReferendum { const PALLET: &'static str = "FellowshipReferenda"; @@ -12606,7 +13222,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct OneFewerDeciding { - pub track: ::core::primitive::u16, + pub track: one_fewer_deciding::Track, + } + pub mod one_fewer_deciding { + use super::runtime_types; + pub type Track = ::core::primitive::u16; } impl ::subxt::blocks::StaticExtrinsic for OneFewerDeciding { const PALLET: &'static str = "FellowshipReferenda"; @@ -12624,7 +13244,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RefundSubmissionDeposit { - pub index: ::core::primitive::u32, + pub index: refund_submission_deposit::Index, + } + pub mod refund_submission_deposit { + use super::runtime_types; + pub type Index = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for RefundSubmissionDeposit { const PALLET: &'static str = "FellowshipReferenda"; @@ -12641,8 +13265,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetMetadata { - pub index: ::core::primitive::u32, - pub maybe_hash: ::core::option::Option<::subxt::utils::H256>, + pub index: set_metadata::Index, + pub maybe_hash: set_metadata::MaybeHash, + } + pub mod set_metadata { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type MaybeHash = ::core::option::Option<::subxt::utils::H256>; } impl ::subxt::blocks::StaticExtrinsic for SetMetadata { const PALLET: &'static str = "FellowshipReferenda"; @@ -12654,9 +13283,9 @@ pub mod api { #[doc = "See [`Pallet::submit`]."] pub fn submit( &self, - proposal_origin: alias_types::submit::ProposalOrigin, - proposal: alias_types::submit::Proposal, - enactment_moment: alias_types::submit::EnactmentMoment, + proposal_origin: types::submit::ProposalOrigin, + proposal: types::submit::Proposal, + enactment_moment: types::submit::EnactmentMoment, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "FellowshipReferenda", @@ -12677,7 +13306,7 @@ pub mod api { #[doc = "See [`Pallet::place_decision_deposit`]."] pub fn place_decision_deposit( &self, - index: alias_types::place_decision_deposit::Index, + index: types::place_decision_deposit::Index, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "FellowshipReferenda", @@ -12693,7 +13322,7 @@ pub mod api { #[doc = "See [`Pallet::refund_decision_deposit`]."] pub fn refund_decision_deposit( &self, - index: alias_types::refund_decision_deposit::Index, + index: types::refund_decision_deposit::Index, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "FellowshipReferenda", @@ -12709,7 +13338,7 @@ pub mod api { #[doc = "See [`Pallet::cancel`]."] pub fn cancel( &self, - index: alias_types::cancel::Index, + index: types::cancel::Index, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "FellowshipReferenda", @@ -12724,10 +13353,7 @@ pub mod api { ) } #[doc = "See [`Pallet::kill`]."] - pub fn kill( - &self, - index: alias_types::kill::Index, - ) -> ::subxt::tx::Payload { + pub fn kill(&self, index: types::kill::Index) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "FellowshipReferenda", "kill", @@ -12743,7 +13369,7 @@ pub mod api { #[doc = "See [`Pallet::nudge_referendum`]."] pub fn nudge_referendum( &self, - index: alias_types::nudge_referendum::Index, + index: types::nudge_referendum::Index, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "FellowshipReferenda", @@ -12760,7 +13386,7 @@ pub mod api { #[doc = "See [`Pallet::one_fewer_deciding`]."] pub fn one_fewer_deciding( &self, - track: alias_types::one_fewer_deciding::Track, + track: types::one_fewer_deciding::Track, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "FellowshipReferenda", @@ -12777,7 +13403,7 @@ pub mod api { #[doc = "See [`Pallet::refund_submission_deposit`]."] pub fn refund_submission_deposit( &self, - index: alias_types::refund_submission_deposit::Index, + index: types::refund_submission_deposit::Index, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "FellowshipReferenda", @@ -12793,8 +13419,8 @@ pub mod api { #[doc = "See [`Pallet::set_metadata`]."] pub fn set_metadata( &self, - index: alias_types::set_metadata::Index, - maybe_hash: alias_types::set_metadata::MaybeHash, + index: types::set_metadata::Index, + maybe_hash: types::set_metadata::MaybeHash, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "FellowshipReferenda", @@ -12826,12 +13452,18 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A referendum has been submitted."] pub struct Submitted { - pub index: ::core::primitive::u32, - pub track: ::core::primitive::u16, - pub proposal: runtime_types::frame_support::traits::preimages::Bounded< + pub index: submitted::Index, + pub track: submitted::Track, + pub proposal: submitted::Proposal, + } + pub mod submitted { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Track = ::core::primitive::u16; + pub type Proposal = runtime_types::frame_support::traits::preimages::Bounded< runtime_types::rococo_runtime::RuntimeCall, runtime_types::sp_runtime::traits::BlakeTwo256, - >, + >; } impl ::subxt::events::StaticEvent for Submitted { const PALLET: &'static str = "FellowshipReferenda"; @@ -12849,9 +13481,15 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The decision deposit has been placed."] pub struct DecisionDepositPlaced { - pub index: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, + pub index: decision_deposit_placed::Index, + pub who: decision_deposit_placed::Who, + pub amount: decision_deposit_placed::Amount, + } + pub mod decision_deposit_placed { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for DecisionDepositPlaced { const PALLET: &'static str = "FellowshipReferenda"; @@ -12869,9 +13507,15 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The decision deposit has been refunded."] pub struct DecisionDepositRefunded { - pub index: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, + pub index: decision_deposit_refunded::Index, + pub who: decision_deposit_refunded::Who, + pub amount: decision_deposit_refunded::Amount, + } + pub mod decision_deposit_refunded { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for DecisionDepositRefunded { const PALLET: &'static str = "FellowshipReferenda"; @@ -12889,8 +13533,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A deposit has been slashed."] pub struct DepositSlashed { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, + pub who: deposit_slashed::Who, + pub amount: deposit_slashed::Amount, + } + pub mod deposit_slashed { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for DepositSlashed { const PALLET: &'static str = "FellowshipReferenda"; @@ -12908,13 +13557,20 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A referendum has moved into the deciding phase."] pub struct DecisionStarted { - pub index: ::core::primitive::u32, - pub track: ::core::primitive::u16, - pub proposal: runtime_types::frame_support::traits::preimages::Bounded< + pub index: decision_started::Index, + pub track: decision_started::Track, + pub proposal: decision_started::Proposal, + pub tally: decision_started::Tally, + } + pub mod decision_started { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Track = ::core::primitive::u16; + pub type Proposal = runtime_types::frame_support::traits::preimages::Bounded< runtime_types::rococo_runtime::RuntimeCall, runtime_types::sp_runtime::traits::BlakeTwo256, - >, - pub tally: runtime_types::pallet_ranked_collective::Tally, + >; + pub type Tally = runtime_types::pallet_ranked_collective::Tally; } impl ::subxt::events::StaticEvent for DecisionStarted { const PALLET: &'static str = "FellowshipReferenda"; @@ -12932,7 +13588,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ConfirmStarted { - pub index: ::core::primitive::u32, + pub index: confirm_started::Index, + } + pub mod confirm_started { + use super::runtime_types; + pub type Index = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for ConfirmStarted { const PALLET: &'static str = "FellowshipReferenda"; @@ -12950,7 +13610,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ConfirmAborted { - pub index: ::core::primitive::u32, + pub index: confirm_aborted::Index, + } + pub mod confirm_aborted { + use super::runtime_types; + pub type Index = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for ConfirmAborted { const PALLET: &'static str = "FellowshipReferenda"; @@ -12968,8 +13632,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A referendum has ended its confirmation phase and is ready for approval."] pub struct Confirmed { - pub index: ::core::primitive::u32, - pub tally: runtime_types::pallet_ranked_collective::Tally, + pub index: confirmed::Index, + pub tally: confirmed::Tally, + } + pub mod confirmed { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Tally = runtime_types::pallet_ranked_collective::Tally; } impl ::subxt::events::StaticEvent for Confirmed { const PALLET: &'static str = "FellowshipReferenda"; @@ -12988,7 +13657,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A referendum has been approved and its proposal has been scheduled."] pub struct Approved { - pub index: ::core::primitive::u32, + pub index: approved::Index, + } + pub mod approved { + use super::runtime_types; + pub type Index = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for Approved { const PALLET: &'static str = "FellowshipReferenda"; @@ -13006,8 +13679,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A proposal has been rejected by referendum."] pub struct Rejected { - pub index: ::core::primitive::u32, - pub tally: runtime_types::pallet_ranked_collective::Tally, + pub index: rejected::Index, + pub tally: rejected::Tally, + } + pub mod rejected { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Tally = runtime_types::pallet_ranked_collective::Tally; } impl ::subxt::events::StaticEvent for Rejected { const PALLET: &'static str = "FellowshipReferenda"; @@ -13025,8 +13703,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A referendum has been timed out without being decided."] pub struct TimedOut { - pub index: ::core::primitive::u32, - pub tally: runtime_types::pallet_ranked_collective::Tally, + pub index: timed_out::Index, + pub tally: timed_out::Tally, + } + pub mod timed_out { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Tally = runtime_types::pallet_ranked_collective::Tally; } impl ::subxt::events::StaticEvent for TimedOut { const PALLET: &'static str = "FellowshipReferenda"; @@ -13044,8 +13727,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A referendum has been cancelled."] pub struct Cancelled { - pub index: ::core::primitive::u32, - pub tally: runtime_types::pallet_ranked_collective::Tally, + pub index: cancelled::Index, + pub tally: cancelled::Tally, + } + pub mod cancelled { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Tally = runtime_types::pallet_ranked_collective::Tally; } impl ::subxt::events::StaticEvent for Cancelled { const PALLET: &'static str = "FellowshipReferenda"; @@ -13063,8 +13751,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A referendum has been killed."] pub struct Killed { - pub index: ::core::primitive::u32, - pub tally: runtime_types::pallet_ranked_collective::Tally, + pub index: killed::Index, + pub tally: killed::Tally, + } + pub mod killed { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Tally = runtime_types::pallet_ranked_collective::Tally; } impl ::subxt::events::StaticEvent for Killed { const PALLET: &'static str = "FellowshipReferenda"; @@ -13082,9 +13775,15 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The submission deposit has been refunded."] pub struct SubmissionDepositRefunded { - pub index: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, + pub index: submission_deposit_refunded::Index, + pub who: submission_deposit_refunded::Who, + pub amount: submission_deposit_refunded::Amount, + } + pub mod submission_deposit_refunded { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for SubmissionDepositRefunded { const PALLET: &'static str = "FellowshipReferenda"; @@ -13102,8 +13801,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Metadata for a referendum has been set."] pub struct MetadataSet { - pub index: ::core::primitive::u32, - pub hash: ::subxt::utils::H256, + pub index: metadata_set::Index, + pub hash: metadata_set::Hash, + } + pub mod metadata_set { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Hash = ::subxt::utils::H256; } impl ::subxt::events::StaticEvent for MetadataSet { const PALLET: &'static str = "FellowshipReferenda"; @@ -13121,8 +13825,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Metadata for a referendum has been cleared."] pub struct MetadataCleared { - pub index: ::core::primitive::u32, - pub hash: ::subxt::utils::H256, + pub index: metadata_cleared::Index, + pub hash: metadata_cleared::Hash, + } + pub mod metadata_cleared { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Hash = ::subxt::utils::H256; } impl ::subxt::events::StaticEvent for MetadataCleared { const PALLET: &'static str = "FellowshipReferenda"; @@ -13131,7 +13840,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod referendum_count { use super::runtime_types; @@ -13178,7 +13887,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::referendum_count::ReferendumCount, + types::referendum_count::ReferendumCount, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -13200,7 +13909,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::referendum_info_for::ReferendumInfoFor, + types::referendum_info_for::ReferendumInfoFor, (), (), ::subxt::storage::address::Yes, @@ -13222,7 +13931,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::referendum_info_for::ReferendumInfoFor, + types::referendum_info_for::ReferendumInfoFor, ::subxt::storage::address::Yes, (), (), @@ -13248,7 +13957,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::track_queue::TrackQueue, + types::track_queue::TrackQueue, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -13274,7 +13983,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u16>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::track_queue::TrackQueue, + types::track_queue::TrackQueue, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -13298,7 +14007,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::deciding_count::DecidingCount, + types::deciding_count::DecidingCount, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -13321,7 +14030,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u16>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::deciding_count::DecidingCount, + types::deciding_count::DecidingCount, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -13350,7 +14059,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::metadata_of::MetadataOf, + types::metadata_of::MetadataOf, (), (), ::subxt::storage::address::Yes, @@ -13378,7 +14087,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::metadata_of::MetadataOf, + types::metadata_of::MetadataOf, ::subxt::storage::address::Yes, (), (), @@ -13500,27 +14209,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - pub mod whitelist_call { - use super::runtime_types; - pub type CallHash = ::subxt::utils::H256; - } - pub mod remove_whitelisted_call { - use super::runtime_types; - pub type CallHash = ::subxt::utils::H256; - } - pub mod dispatch_whitelisted_call { - use super::runtime_types; - pub type CallHash = ::subxt::utils::H256; - pub type CallEncodedLen = ::core::primitive::u32; - pub type CallWeightWitness = runtime_types::sp_weights::weight_v2::Weight; - } - pub mod dispatch_whitelisted_call_with_preimage { - use super::runtime_types; - pub type Call = runtime_types::rococo_runtime::RuntimeCall; - } - } pub mod types { use super::runtime_types; #[derive( @@ -13534,7 +14222,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct WhitelistCall { - pub call_hash: ::subxt::utils::H256, + pub call_hash: whitelist_call::CallHash, + } + pub mod whitelist_call { + use super::runtime_types; + pub type CallHash = ::subxt::utils::H256; } impl ::subxt::blocks::StaticExtrinsic for WhitelistCall { const PALLET: &'static str = "Whitelist"; @@ -13551,7 +14243,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RemoveWhitelistedCall { - pub call_hash: ::subxt::utils::H256, + pub call_hash: remove_whitelisted_call::CallHash, + } + pub mod remove_whitelisted_call { + use super::runtime_types; + pub type CallHash = ::subxt::utils::H256; } impl ::subxt::blocks::StaticExtrinsic for RemoveWhitelistedCall { const PALLET: &'static str = "Whitelist"; @@ -13568,9 +14264,15 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct DispatchWhitelistedCall { - pub call_hash: ::subxt::utils::H256, - pub call_encoded_len: ::core::primitive::u32, - pub call_weight_witness: runtime_types::sp_weights::weight_v2::Weight, + pub call_hash: dispatch_whitelisted_call::CallHash, + pub call_encoded_len: dispatch_whitelisted_call::CallEncodedLen, + pub call_weight_witness: dispatch_whitelisted_call::CallWeightWitness, + } + pub mod dispatch_whitelisted_call { + use super::runtime_types; + pub type CallHash = ::subxt::utils::H256; + pub type CallEncodedLen = ::core::primitive::u32; + pub type CallWeightWitness = runtime_types::sp_weights::weight_v2::Weight; } impl ::subxt::blocks::StaticExtrinsic for DispatchWhitelistedCall { const PALLET: &'static str = "Whitelist"; @@ -13587,7 +14289,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct DispatchWhitelistedCallWithPreimage { - pub call: ::std::boxed::Box, + pub call: ::std::boxed::Box, + } + pub mod dispatch_whitelisted_call_with_preimage { + use super::runtime_types; + pub type Call = runtime_types::rococo_runtime::RuntimeCall; } impl ::subxt::blocks::StaticExtrinsic for DispatchWhitelistedCallWithPreimage { const PALLET: &'static str = "Whitelist"; @@ -13599,7 +14305,7 @@ pub mod api { #[doc = "See [`Pallet::whitelist_call`]."] pub fn whitelist_call( &self, - call_hash: alias_types::whitelist_call::CallHash, + call_hash: types::whitelist_call::CallHash, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Whitelist", @@ -13616,7 +14322,7 @@ pub mod api { #[doc = "See [`Pallet::remove_whitelisted_call`]."] pub fn remove_whitelisted_call( &self, - call_hash: alias_types::remove_whitelisted_call::CallHash, + call_hash: types::remove_whitelisted_call::CallHash, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Whitelist", @@ -13633,9 +14339,9 @@ pub mod api { #[doc = "See [`Pallet::dispatch_whitelisted_call`]."] pub fn dispatch_whitelisted_call( &self, - call_hash: alias_types::dispatch_whitelisted_call::CallHash, - call_encoded_len: alias_types::dispatch_whitelisted_call::CallEncodedLen, - call_weight_witness: alias_types::dispatch_whitelisted_call::CallWeightWitness, + call_hash: types::dispatch_whitelisted_call::CallHash, + call_encoded_len: types::dispatch_whitelisted_call::CallEncodedLen, + call_weight_witness: types::dispatch_whitelisted_call::CallWeightWitness, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Whitelist", @@ -13656,7 +14362,7 @@ pub mod api { #[doc = "See [`Pallet::dispatch_whitelisted_call_with_preimage`]."] pub fn dispatch_whitelisted_call_with_preimage( &self, - call: alias_types::dispatch_whitelisted_call_with_preimage::Call, + call: types::dispatch_whitelisted_call_with_preimage::Call, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( @@ -13690,7 +14396,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CallWhitelisted { - pub call_hash: ::subxt::utils::H256, + pub call_hash: call_whitelisted::CallHash, + } + pub mod call_whitelisted { + use super::runtime_types; + pub type CallHash = ::subxt::utils::H256; } impl ::subxt::events::StaticEvent for CallWhitelisted { const PALLET: &'static str = "Whitelist"; @@ -13707,7 +14417,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct WhitelistedCallRemoved { - pub call_hash: ::subxt::utils::H256, + pub call_hash: whitelisted_call_removed::CallHash, + } + pub mod whitelisted_call_removed { + use super::runtime_types; + pub type CallHash = ::subxt::utils::H256; } impl ::subxt::events::StaticEvent for WhitelistedCallRemoved { const PALLET: &'static str = "Whitelist"; @@ -13724,13 +14438,18 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct WhitelistedCallDispatched { - pub call_hash: ::subxt::utils::H256, - pub result: ::core::result::Result< + pub call_hash: whitelisted_call_dispatched::CallHash, + pub result: whitelisted_call_dispatched::Result, + } + pub mod whitelisted_call_dispatched { + use super::runtime_types; + pub type CallHash = ::subxt::utils::H256; + pub type Result = ::core::result::Result< runtime_types::frame_support::dispatch::PostDispatchInfo, runtime_types::sp_runtime::DispatchErrorWithPostInfo< runtime_types::frame_support::dispatch::PostDispatchInfo, >, - >, + >; } impl ::subxt::events::StaticEvent for WhitelistedCallDispatched { const PALLET: &'static str = "Whitelist"; @@ -13739,7 +14458,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod whitelisted_call { use super::runtime_types; @@ -13752,7 +14471,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::whitelisted_call::WhitelistedCall, + types::whitelisted_call::WhitelistedCall, (), (), ::subxt::storage::address::Yes, @@ -13773,7 +14492,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::whitelisted_call::WhitelistedCall, + types::whitelisted_call::WhitelistedCall, ::subxt::storage::address::Yes, (), (), @@ -13805,45 +14524,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - pub mod claim { - use super::runtime_types; - pub type Dest = ::subxt::utils::AccountId32; - pub type EthereumSignature = - runtime_types::polkadot_runtime_common::claims::EcdsaSignature; - } - pub mod mint_claim { - use super::runtime_types; - pub type Who = runtime_types::polkadot_runtime_common::claims::EthereumAddress; - pub type Value = ::core::primitive::u128; - pub type VestingSchedule = ::core::option::Option<( - ::core::primitive::u128, - ::core::primitive::u128, - ::core::primitive::u32, - )>; - pub type Statement = ::core::option::Option< - runtime_types::polkadot_runtime_common::claims::StatementKind, - >; - } - pub mod claim_attest { - use super::runtime_types; - pub type Dest = ::subxt::utils::AccountId32; - pub type EthereumSignature = - runtime_types::polkadot_runtime_common::claims::EcdsaSignature; - pub type Statement = ::std::vec::Vec<::core::primitive::u8>; - } - pub mod attest { - use super::runtime_types; - pub type Statement = ::std::vec::Vec<::core::primitive::u8>; - } - pub mod move_claim { - use super::runtime_types; - pub type Old = runtime_types::polkadot_runtime_common::claims::EthereumAddress; - pub type New = runtime_types::polkadot_runtime_common::claims::EthereumAddress; - pub type MaybePreclaim = ::core::option::Option<::subxt::utils::AccountId32>; - } - } pub mod types { use super::runtime_types; #[derive( @@ -13857,9 +14537,14 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Claim { - pub dest: ::subxt::utils::AccountId32, - pub ethereum_signature: - runtime_types::polkadot_runtime_common::claims::EcdsaSignature, + pub dest: claim::Dest, + pub ethereum_signature: claim::EthereumSignature, + } + pub mod claim { + use super::runtime_types; + pub type Dest = ::subxt::utils::AccountId32; + pub type EthereumSignature = + runtime_types::polkadot_runtime_common::claims::EcdsaSignature; } impl ::subxt::blocks::StaticExtrinsic for Claim { const PALLET: &'static str = "Claims"; @@ -13876,16 +14561,23 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct MintClaim { - pub who: runtime_types::polkadot_runtime_common::claims::EthereumAddress, - pub value: ::core::primitive::u128, - pub vesting_schedule: ::core::option::Option<( + pub who: mint_claim::Who, + pub value: mint_claim::Value, + pub vesting_schedule: mint_claim::VestingSchedule, + pub statement: mint_claim::Statement, + } + pub mod mint_claim { + use super::runtime_types; + pub type Who = runtime_types::polkadot_runtime_common::claims::EthereumAddress; + pub type Value = ::core::primitive::u128; + pub type VestingSchedule = ::core::option::Option<( ::core::primitive::u128, ::core::primitive::u128, ::core::primitive::u32, - )>, - pub statement: ::core::option::Option< + )>; + pub type Statement = ::core::option::Option< runtime_types::polkadot_runtime_common::claims::StatementKind, - >, + >; } impl ::subxt::blocks::StaticExtrinsic for MintClaim { const PALLET: &'static str = "Claims"; @@ -13902,10 +14594,16 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ClaimAttest { - pub dest: ::subxt::utils::AccountId32, - pub ethereum_signature: - runtime_types::polkadot_runtime_common::claims::EcdsaSignature, - pub statement: ::std::vec::Vec<::core::primitive::u8>, + pub dest: claim_attest::Dest, + pub ethereum_signature: claim_attest::EthereumSignature, + pub statement: claim_attest::Statement, + } + pub mod claim_attest { + use super::runtime_types; + pub type Dest = ::subxt::utils::AccountId32; + pub type EthereumSignature = + runtime_types::polkadot_runtime_common::claims::EcdsaSignature; + pub type Statement = ::std::vec::Vec<::core::primitive::u8>; } impl ::subxt::blocks::StaticExtrinsic for ClaimAttest { const PALLET: &'static str = "Claims"; @@ -13922,7 +14620,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Attest { - pub statement: ::std::vec::Vec<::core::primitive::u8>, + pub statement: attest::Statement, + } + pub mod attest { + use super::runtime_types; + pub type Statement = ::std::vec::Vec<::core::primitive::u8>; } impl ::subxt::blocks::StaticExtrinsic for Attest { const PALLET: &'static str = "Claims"; @@ -13939,9 +14641,15 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] 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::utils::AccountId32>, + pub old: move_claim::Old, + pub new: move_claim::New, + pub maybe_preclaim: move_claim::MaybePreclaim, + } + pub mod move_claim { + use super::runtime_types; + pub type Old = runtime_types::polkadot_runtime_common::claims::EthereumAddress; + pub type New = runtime_types::polkadot_runtime_common::claims::EthereumAddress; + pub type MaybePreclaim = ::core::option::Option<::subxt::utils::AccountId32>; } impl ::subxt::blocks::StaticExtrinsic for MoveClaim { const PALLET: &'static str = "Claims"; @@ -13953,8 +14661,8 @@ pub mod api { #[doc = "See [`Pallet::claim`]."] pub fn claim( &self, - dest: alias_types::claim::Dest, - ethereum_signature: alias_types::claim::EthereumSignature, + dest: types::claim::Dest, + ethereum_signature: types::claim::EthereumSignature, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Claims", @@ -13974,10 +14682,10 @@ pub mod api { #[doc = "See [`Pallet::mint_claim`]."] pub fn mint_claim( &self, - who: alias_types::mint_claim::Who, - value: alias_types::mint_claim::Value, - vesting_schedule: alias_types::mint_claim::VestingSchedule, - statement: alias_types::mint_claim::Statement, + who: types::mint_claim::Who, + value: types::mint_claim::Value, + vesting_schedule: types::mint_claim::VestingSchedule, + statement: types::mint_claim::Statement, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Claims", @@ -13998,9 +14706,9 @@ pub mod api { #[doc = "See [`Pallet::claim_attest`]."] pub fn claim_attest( &self, - dest: alias_types::claim_attest::Dest, - ethereum_signature: alias_types::claim_attest::EthereumSignature, - statement: alias_types::claim_attest::Statement, + dest: types::claim_attest::Dest, + ethereum_signature: types::claim_attest::EthereumSignature, + statement: types::claim_attest::Statement, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Claims", @@ -14020,7 +14728,7 @@ pub mod api { #[doc = "See [`Pallet::attest`]."] pub fn attest( &self, - statement: alias_types::attest::Statement, + statement: types::attest::Statement, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Claims", @@ -14037,9 +14745,9 @@ pub mod api { #[doc = "See [`Pallet::move_claim`]."] pub fn move_claim( &self, - old: alias_types::move_claim::Old, - new: alias_types::move_claim::New, - maybe_preclaim: alias_types::move_claim::MaybePreclaim, + old: types::move_claim::Old, + new: types::move_claim::New, + maybe_preclaim: types::move_claim::MaybePreclaim, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Claims", @@ -14075,10 +14783,16 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Someone claimed some DOTs."] pub struct Claimed { - pub who: ::subxt::utils::AccountId32, - pub ethereum_address: - runtime_types::polkadot_runtime_common::claims::EthereumAddress, - pub amount: ::core::primitive::u128, + pub who: claimed::Who, + pub ethereum_address: claimed::EthereumAddress, + pub amount: claimed::Amount, + } + pub mod claimed { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type EthereumAddress = + runtime_types::polkadot_runtime_common::claims::EthereumAddress; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Claimed { const PALLET: &'static str = "Claims"; @@ -14087,7 +14801,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod claims { use super::runtime_types; @@ -14122,7 +14836,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::claims::Claims, + types::claims::Claims, (), (), ::subxt::storage::address::Yes, @@ -14146,7 +14860,7 @@ pub mod api { >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::claims::Claims, + types::claims::Claims, ::subxt::storage::address::Yes, (), (), @@ -14169,7 +14883,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::total::Total, + types::total::Total, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -14194,7 +14908,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::vesting::Vesting, + types::vesting::Vesting, (), (), ::subxt::storage::address::Yes, @@ -14222,7 +14936,7 @@ pub mod api { >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::vesting::Vesting, + types::vesting::Vesting, ::subxt::storage::address::Yes, (), (), @@ -14246,7 +14960,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::signing::Signing, + types::signing::Signing, (), (), ::subxt::storage::address::Yes, @@ -14270,7 +14984,7 @@ pub mod api { >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::signing::Signing, + types::signing::Signing, ::subxt::storage::address::Yes, (), (), @@ -14293,7 +15007,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::preclaims::Preclaims, + types::preclaims::Preclaims, (), (), ::subxt::storage::address::Yes, @@ -14316,7 +15030,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::preclaims::Preclaims, + types::preclaims::Preclaims, ::subxt::storage::address::Yes, (), (), @@ -14370,36 +15084,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - pub mod batch { - use super::runtime_types; - pub type Calls = ::std::vec::Vec; - } - pub mod as_derivative { - use super::runtime_types; - pub type Index = ::core::primitive::u16; - pub type Call = runtime_types::rococo_runtime::RuntimeCall; - } - pub mod batch_all { - use super::runtime_types; - pub type Calls = ::std::vec::Vec; - } - pub mod dispatch_as { - use super::runtime_types; - pub type AsOrigin = runtime_types::rococo_runtime::OriginCaller; - pub type Call = runtime_types::rococo_runtime::RuntimeCall; - } - pub mod force_batch { - use super::runtime_types; - pub type Calls = ::std::vec::Vec; - } - pub mod with_weight { - use super::runtime_types; - pub type Call = runtime_types::rococo_runtime::RuntimeCall; - pub type Weight = runtime_types::sp_weights::weight_v2::Weight; - } - } pub mod types { use super::runtime_types; #[derive( @@ -14413,7 +15097,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Batch { - pub calls: ::std::vec::Vec, + pub calls: batch::Calls, + } + pub mod batch { + use super::runtime_types; + pub type Calls = ::std::vec::Vec; } impl ::subxt::blocks::StaticExtrinsic for Batch { const PALLET: &'static str = "Utility"; @@ -14430,8 +15118,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AsDerivative { - pub index: ::core::primitive::u16, - pub call: ::std::boxed::Box, + pub index: as_derivative::Index, + pub call: ::std::boxed::Box, + } + pub mod as_derivative { + use super::runtime_types; + pub type Index = ::core::primitive::u16; + pub type Call = runtime_types::rococo_runtime::RuntimeCall; } impl ::subxt::blocks::StaticExtrinsic for AsDerivative { const PALLET: &'static str = "Utility"; @@ -14448,7 +15141,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BatchAll { - pub calls: ::std::vec::Vec, + pub calls: batch_all::Calls, + } + pub mod batch_all { + use super::runtime_types; + pub type Calls = ::std::vec::Vec; } impl ::subxt::blocks::StaticExtrinsic for BatchAll { const PALLET: &'static str = "Utility"; @@ -14465,8 +15162,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct DispatchAs { - pub as_origin: ::std::boxed::Box, - pub call: ::std::boxed::Box, + pub as_origin: ::std::boxed::Box, + pub call: ::std::boxed::Box, + } + pub mod dispatch_as { + use super::runtime_types; + pub type AsOrigin = runtime_types::rococo_runtime::OriginCaller; + pub type Call = runtime_types::rococo_runtime::RuntimeCall; } impl ::subxt::blocks::StaticExtrinsic for DispatchAs { const PALLET: &'static str = "Utility"; @@ -14483,7 +15185,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceBatch { - pub calls: ::std::vec::Vec, + pub calls: force_batch::Calls, + } + pub mod force_batch { + use super::runtime_types; + pub type Calls = ::std::vec::Vec; } impl ::subxt::blocks::StaticExtrinsic for ForceBatch { const PALLET: &'static str = "Utility"; @@ -14500,8 +15206,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct WithWeight { - pub call: ::std::boxed::Box, - pub weight: runtime_types::sp_weights::weight_v2::Weight, + pub call: ::std::boxed::Box, + pub weight: with_weight::Weight, + } + pub mod with_weight { + use super::runtime_types; + pub type Call = runtime_types::rococo_runtime::RuntimeCall; + pub type Weight = runtime_types::sp_weights::weight_v2::Weight; } impl ::subxt::blocks::StaticExtrinsic for WithWeight { const PALLET: &'static str = "Utility"; @@ -14513,7 +15224,7 @@ pub mod api { #[doc = "See [`Pallet::batch`]."] pub fn batch( &self, - calls: alias_types::batch::Calls, + calls: types::batch::Calls, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Utility", @@ -14529,8 +15240,8 @@ pub mod api { #[doc = "See [`Pallet::as_derivative`]."] pub fn as_derivative( &self, - index: alias_types::as_derivative::Index, - call: alias_types::as_derivative::Call, + index: types::as_derivative::Index, + call: types::as_derivative::Call, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Utility", @@ -14550,7 +15261,7 @@ pub mod api { #[doc = "See [`Pallet::batch_all`]."] pub fn batch_all( &self, - calls: alias_types::batch_all::Calls, + calls: types::batch_all::Calls, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Utility", @@ -14567,8 +15278,8 @@ pub mod api { #[doc = "See [`Pallet::dispatch_as`]."] pub fn dispatch_as( &self, - as_origin: alias_types::dispatch_as::AsOrigin, - call: alias_types::dispatch_as::Call, + as_origin: types::dispatch_as::AsOrigin, + call: types::dispatch_as::Call, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Utility", @@ -14588,7 +15299,7 @@ pub mod api { #[doc = "See [`Pallet::force_batch`]."] pub fn force_batch( &self, - calls: alias_types::force_batch::Calls, + calls: types::force_batch::Calls, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Utility", @@ -14605,8 +15316,8 @@ pub mod api { #[doc = "See [`Pallet::with_weight`]."] pub fn with_weight( &self, - call: alias_types::with_weight::Call, - weight: alias_types::with_weight::Weight, + call: types::with_weight::Call, + weight: types::with_weight::Weight, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Utility", @@ -14642,8 +15353,13 @@ pub mod api { #[doc = "Batch of dispatches did not complete fully. Index of first failing dispatch given, as"] #[doc = "well as the error."] pub struct BatchInterrupted { - pub index: ::core::primitive::u32, - pub error: runtime_types::sp_runtime::DispatchError, + pub index: batch_interrupted::Index, + pub error: batch_interrupted::Error, + } + pub mod batch_interrupted { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Error = runtime_types::sp_runtime::DispatchError; } impl ::subxt::events::StaticEvent for BatchInterrupted { const PALLET: &'static str = "Utility"; @@ -14709,7 +15425,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A single item within a Batch of dispatches has completed with error."] pub struct ItemFailed { - pub error: runtime_types::sp_runtime::DispatchError, + pub error: item_failed::Error, + } + pub mod item_failed { + use super::runtime_types; + pub type Error = runtime_types::sp_runtime::DispatchError; } impl ::subxt::events::StaticEvent for ItemFailed { const PALLET: &'static str = "Utility"; @@ -14727,7 +15447,12 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A call was dispatched."] pub struct DispatchedAs { - pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + pub result: dispatched_as::Result, + } + pub mod dispatched_as { + use super::runtime_types; + pub type Result = + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>; } impl ::subxt::events::StaticEvent for DispatchedAs { const PALLET: &'static str = "Utility"; @@ -14767,81 +15492,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - pub mod add_registrar { - use super::runtime_types; - pub type Account = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - } - pub mod set_identity { - use super::runtime_types; - pub type Info = runtime_types::pallet_identity::legacy::IdentityInfo; - } - pub mod set_subs { - use super::runtime_types; - pub type Subs = ::std::vec::Vec<( - ::subxt::utils::AccountId32, - runtime_types::pallet_identity::types::Data, - )>; - } - pub mod clear_identity { - use super::runtime_types; - } - pub mod request_judgement { - use super::runtime_types; - pub type RegIndex = ::core::primitive::u32; - pub type MaxFee = ::core::primitive::u128; - } - pub mod cancel_request { - use super::runtime_types; - pub type RegIndex = ::core::primitive::u32; - } - pub mod set_fee { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - pub type Fee = ::core::primitive::u128; - } - pub mod set_account_id { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - pub type New = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - } - pub mod set_fields { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - pub type Fields = ::core::primitive::u64; - } - pub mod provide_judgement { - use super::runtime_types; - pub type RegIndex = ::core::primitive::u32; - pub type Target = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Judgement = - runtime_types::pallet_identity::types::Judgement<::core::primitive::u128>; - pub type Identity = ::subxt::utils::H256; - } - pub mod kill_identity { - use super::runtime_types; - pub type Target = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - } - pub mod add_sub { - use super::runtime_types; - pub type Sub = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Data = runtime_types::pallet_identity::types::Data; - } - pub mod rename_sub { - use super::runtime_types; - pub type Sub = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Data = runtime_types::pallet_identity::types::Data; - } - pub mod remove_sub { - use super::runtime_types; - pub type Sub = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - } - pub mod quit_sub { - use super::runtime_types; - } - } pub mod types { use super::runtime_types; #[derive( @@ -14855,7 +15505,12 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AddRegistrar { - pub account: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub account: add_registrar::Account, + } + pub mod add_registrar { + use super::runtime_types; + pub type Account = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; } impl ::subxt::blocks::StaticExtrinsic for AddRegistrar { const PALLET: &'static str = "Identity"; @@ -14872,8 +15527,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetIdentity { - pub info: - ::std::boxed::Box, + pub info: ::std::boxed::Box, + } + pub mod set_identity { + use super::runtime_types; + pub type Info = runtime_types::pallet_identity::legacy::IdentityInfo; } impl ::subxt::blocks::StaticExtrinsic for SetIdentity { const PALLET: &'static str = "Identity"; @@ -14890,10 +15548,14 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetSubs { - pub subs: ::std::vec::Vec<( + pub subs: set_subs::Subs, + } + pub mod set_subs { + use super::runtime_types; + pub type Subs = ::std::vec::Vec<( ::subxt::utils::AccountId32, runtime_types::pallet_identity::types::Data, - )>, + )>; } impl ::subxt::blocks::StaticExtrinsic for SetSubs { const PALLET: &'static str = "Identity"; @@ -14926,9 +15588,14 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RequestJudgement { #[codec(compact)] - pub reg_index: ::core::primitive::u32, + pub reg_index: request_judgement::RegIndex, #[codec(compact)] - pub max_fee: ::core::primitive::u128, + pub max_fee: request_judgement::MaxFee, + } + pub mod request_judgement { + use super::runtime_types; + pub type RegIndex = ::core::primitive::u32; + pub type MaxFee = ::core::primitive::u128; } impl ::subxt::blocks::StaticExtrinsic for RequestJudgement { const PALLET: &'static str = "Identity"; @@ -14946,7 +15613,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CancelRequest { - pub reg_index: ::core::primitive::u32, + pub reg_index: cancel_request::RegIndex, + } + pub mod cancel_request { + use super::runtime_types; + pub type RegIndex = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for CancelRequest { const PALLET: &'static str = "Identity"; @@ -14964,9 +15635,14 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetFee { #[codec(compact)] - pub index: ::core::primitive::u32, + pub index: set_fee::Index, #[codec(compact)] - pub fee: ::core::primitive::u128, + pub fee: set_fee::Fee, + } + pub mod set_fee { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Fee = ::core::primitive::u128; } impl ::subxt::blocks::StaticExtrinsic for SetFee { const PALLET: &'static str = "Identity"; @@ -14984,8 +15660,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetAccountId { #[codec(compact)] - pub index: ::core::primitive::u32, - pub new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub index: set_account_id::Index, + pub new: set_account_id::New, + } + pub mod set_account_id { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type New = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; } impl ::subxt::blocks::StaticExtrinsic for SetAccountId { const PALLET: &'static str = "Identity"; @@ -15003,8 +15684,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetFields { #[codec(compact)] - pub index: ::core::primitive::u32, - pub fields: ::core::primitive::u64, + pub index: set_fields::Index, + pub fields: set_fields::Fields, + } + pub mod set_fields { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Fields = ::core::primitive::u64; } impl ::subxt::blocks::StaticExtrinsic for SetFields { const PALLET: &'static str = "Identity"; @@ -15022,11 +15708,18 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ProvideJudgement { #[codec(compact)] - pub reg_index: ::core::primitive::u32, - pub target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub judgement: - runtime_types::pallet_identity::types::Judgement<::core::primitive::u128>, - pub identity: ::subxt::utils::H256, + pub reg_index: provide_judgement::RegIndex, + pub target: provide_judgement::Target, + pub judgement: provide_judgement::Judgement, + pub identity: provide_judgement::Identity, + } + pub mod provide_judgement { + use super::runtime_types; + pub type RegIndex = ::core::primitive::u32; + pub type Target = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Judgement = + runtime_types::pallet_identity::types::Judgement<::core::primitive::u128>; + pub type Identity = ::subxt::utils::H256; } impl ::subxt::blocks::StaticExtrinsic for ProvideJudgement { const PALLET: &'static str = "Identity"; @@ -15043,7 +15736,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct KillIdentity { - pub target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub target: kill_identity::Target, + } + pub mod kill_identity { + use super::runtime_types; + pub type Target = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; } impl ::subxt::blocks::StaticExtrinsic for KillIdentity { const PALLET: &'static str = "Identity"; @@ -15060,8 +15757,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AddSub { - pub sub: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub data: runtime_types::pallet_identity::types::Data, + pub sub: add_sub::Sub, + pub data: add_sub::Data, + } + pub mod add_sub { + use super::runtime_types; + pub type Sub = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Data = runtime_types::pallet_identity::types::Data; } impl ::subxt::blocks::StaticExtrinsic for AddSub { const PALLET: &'static str = "Identity"; @@ -15078,8 +15780,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RenameSub { - pub sub: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub data: runtime_types::pallet_identity::types::Data, + pub sub: rename_sub::Sub, + pub data: rename_sub::Data, + } + pub mod rename_sub { + use super::runtime_types; + pub type Sub = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Data = runtime_types::pallet_identity::types::Data; } impl ::subxt::blocks::StaticExtrinsic for RenameSub { const PALLET: &'static str = "Identity"; @@ -15096,7 +15803,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RemoveSub { - pub sub: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub sub: remove_sub::Sub, + } + pub mod remove_sub { + use super::runtime_types; + pub type Sub = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; } impl ::subxt::blocks::StaticExtrinsic for RemoveSub { const PALLET: &'static str = "Identity"; @@ -15123,7 +15834,7 @@ pub mod api { #[doc = "See [`Pallet::add_registrar`]."] pub fn add_registrar( &self, - account: alias_types::add_registrar::Account, + account: types::add_registrar::Account, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Identity", @@ -15139,7 +15850,7 @@ pub mod api { #[doc = "See [`Pallet::set_identity`]."] pub fn set_identity( &self, - info: alias_types::set_identity::Info, + info: types::set_identity::Info, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Identity", @@ -15158,7 +15869,7 @@ pub mod api { #[doc = "See [`Pallet::set_subs`]."] pub fn set_subs( &self, - subs: alias_types::set_subs::Subs, + subs: types::set_subs::Subs, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Identity", @@ -15189,8 +15900,8 @@ pub mod api { #[doc = "See [`Pallet::request_judgement`]."] pub fn request_judgement( &self, - reg_index: alias_types::request_judgement::RegIndex, - max_fee: alias_types::request_judgement::MaxFee, + reg_index: types::request_judgement::RegIndex, + max_fee: types::request_judgement::MaxFee, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Identity", @@ -15206,7 +15917,7 @@ pub mod api { #[doc = "See [`Pallet::cancel_request`]."] pub fn cancel_request( &self, - reg_index: alias_types::cancel_request::RegIndex, + reg_index: types::cancel_request::RegIndex, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Identity", @@ -15223,8 +15934,8 @@ pub mod api { #[doc = "See [`Pallet::set_fee`]."] pub fn set_fee( &self, - index: alias_types::set_fee::Index, - fee: alias_types::set_fee::Fee, + index: types::set_fee::Index, + fee: types::set_fee::Fee, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Identity", @@ -15241,8 +15952,8 @@ pub mod api { #[doc = "See [`Pallet::set_account_id`]."] pub fn set_account_id( &self, - index: alias_types::set_account_id::Index, - new: alias_types::set_account_id::New, + index: types::set_account_id::Index, + new: types::set_account_id::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Identity", @@ -15259,8 +15970,8 @@ pub mod api { #[doc = "See [`Pallet::set_fields`]."] pub fn set_fields( &self, - index: alias_types::set_fields::Index, - fields: alias_types::set_fields::Fields, + index: types::set_fields::Index, + fields: types::set_fields::Fields, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Identity", @@ -15277,10 +15988,10 @@ pub mod api { #[doc = "See [`Pallet::provide_judgement`]."] pub fn provide_judgement( &self, - reg_index: alias_types::provide_judgement::RegIndex, - target: alias_types::provide_judgement::Target, - judgement: alias_types::provide_judgement::Judgement, - identity: alias_types::provide_judgement::Identity, + reg_index: types::provide_judgement::RegIndex, + target: types::provide_judgement::Target, + judgement: types::provide_judgement::Judgement, + identity: types::provide_judgement::Identity, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Identity", @@ -15302,7 +16013,7 @@ pub mod api { #[doc = "See [`Pallet::kill_identity`]."] pub fn kill_identity( &self, - target: alias_types::kill_identity::Target, + target: types::kill_identity::Target, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Identity", @@ -15319,8 +16030,8 @@ pub mod api { #[doc = "See [`Pallet::add_sub`]."] pub fn add_sub( &self, - sub: alias_types::add_sub::Sub, - data: alias_types::add_sub::Data, + sub: types::add_sub::Sub, + data: types::add_sub::Data, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Identity", @@ -15336,8 +16047,8 @@ pub mod api { #[doc = "See [`Pallet::rename_sub`]."] pub fn rename_sub( &self, - sub: alias_types::rename_sub::Sub, - data: alias_types::rename_sub::Data, + sub: types::rename_sub::Sub, + data: types::rename_sub::Data, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Identity", @@ -15354,7 +16065,7 @@ pub mod api { #[doc = "See [`Pallet::remove_sub`]."] pub fn remove_sub( &self, - sub: alias_types::remove_sub::Sub, + sub: types::remove_sub::Sub, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Identity", @@ -15399,7 +16110,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A name was set or reset (which will remove all judgements)."] pub struct IdentitySet { - pub who: ::subxt::utils::AccountId32, + pub who: identity_set::Who, + } + pub mod identity_set { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; } impl ::subxt::events::StaticEvent for IdentitySet { const PALLET: &'static str = "Identity"; @@ -15417,8 +16132,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A name was cleared, and the given balance returned."] pub struct IdentityCleared { - pub who: ::subxt::utils::AccountId32, - pub deposit: ::core::primitive::u128, + pub who: identity_cleared::Who, + pub deposit: identity_cleared::Deposit, + } + pub mod identity_cleared { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Deposit = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for IdentityCleared { const PALLET: &'static str = "Identity"; @@ -15436,8 +16156,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A name was removed and the given balance slashed."] pub struct IdentityKilled { - pub who: ::subxt::utils::AccountId32, - pub deposit: ::core::primitive::u128, + pub who: identity_killed::Who, + pub deposit: identity_killed::Deposit, + } + pub mod identity_killed { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Deposit = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for IdentityKilled { const PALLET: &'static str = "Identity"; @@ -15455,8 +16180,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A judgement was asked from a registrar."] pub struct JudgementRequested { - pub who: ::subxt::utils::AccountId32, - pub registrar_index: ::core::primitive::u32, + pub who: judgement_requested::Who, + pub registrar_index: judgement_requested::RegistrarIndex, + } + pub mod judgement_requested { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type RegistrarIndex = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for JudgementRequested { const PALLET: &'static str = "Identity"; @@ -15474,8 +16204,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A judgement request was retracted."] pub struct JudgementUnrequested { - pub who: ::subxt::utils::AccountId32, - pub registrar_index: ::core::primitive::u32, + pub who: judgement_unrequested::Who, + pub registrar_index: judgement_unrequested::RegistrarIndex, + } + pub mod judgement_unrequested { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type RegistrarIndex = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for JudgementUnrequested { const PALLET: &'static str = "Identity"; @@ -15493,8 +16228,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A judgement was given by a registrar."] pub struct JudgementGiven { - pub target: ::subxt::utils::AccountId32, - pub registrar_index: ::core::primitive::u32, + pub target: judgement_given::Target, + pub registrar_index: judgement_given::RegistrarIndex, + } + pub mod judgement_given { + use super::runtime_types; + pub type Target = ::subxt::utils::AccountId32; + pub type RegistrarIndex = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for JudgementGiven { const PALLET: &'static str = "Identity"; @@ -15513,7 +16253,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A registrar was added."] pub struct RegistrarAdded { - pub registrar_index: ::core::primitive::u32, + pub registrar_index: registrar_added::RegistrarIndex, + } + pub mod registrar_added { + use super::runtime_types; + pub type RegistrarIndex = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for RegistrarAdded { const PALLET: &'static str = "Identity"; @@ -15531,9 +16275,15 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A sub-identity was added to an identity and the deposit paid."] pub struct SubIdentityAdded { - pub sub: ::subxt::utils::AccountId32, - pub main: ::subxt::utils::AccountId32, - pub deposit: ::core::primitive::u128, + pub sub: sub_identity_added::Sub, + pub main: sub_identity_added::Main, + pub deposit: sub_identity_added::Deposit, + } + pub mod sub_identity_added { + use super::runtime_types; + pub type Sub = ::subxt::utils::AccountId32; + pub type Main = ::subxt::utils::AccountId32; + pub type Deposit = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for SubIdentityAdded { const PALLET: &'static str = "Identity"; @@ -15551,9 +16301,15 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A sub-identity was removed from an identity and the deposit freed."] pub struct SubIdentityRemoved { - pub sub: ::subxt::utils::AccountId32, - pub main: ::subxt::utils::AccountId32, - pub deposit: ::core::primitive::u128, + pub sub: sub_identity_removed::Sub, + pub main: sub_identity_removed::Main, + pub deposit: sub_identity_removed::Deposit, + } + pub mod sub_identity_removed { + use super::runtime_types; + pub type Sub = ::subxt::utils::AccountId32; + pub type Main = ::subxt::utils::AccountId32; + pub type Deposit = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for SubIdentityRemoved { const PALLET: &'static str = "Identity"; @@ -15572,9 +16328,15 @@ pub mod api { #[doc = "A sub-identity was cleared, and the given deposit repatriated from the"] #[doc = "main identity account to the sub-identity account."] pub struct SubIdentityRevoked { - pub sub: ::subxt::utils::AccountId32, - pub main: ::subxt::utils::AccountId32, - pub deposit: ::core::primitive::u128, + pub sub: sub_identity_revoked::Sub, + pub main: sub_identity_revoked::Main, + pub deposit: sub_identity_revoked::Deposit, + } + pub mod sub_identity_revoked { + use super::runtime_types; + pub type Sub = ::subxt::utils::AccountId32; + pub type Main = ::subxt::utils::AccountId32; + pub type Deposit = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for SubIdentityRevoked { const PALLET: &'static str = "Identity"; @@ -15583,7 +16345,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod identity_of { use super::runtime_types; @@ -15631,7 +16393,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::identity_of::IdentityOf, + types::identity_of::IdentityOf, (), (), ::subxt::storage::address::Yes, @@ -15655,7 +16417,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::identity_of::IdentityOf, + types::identity_of::IdentityOf, ::subxt::storage::address::Yes, (), (), @@ -15679,7 +16441,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::super_of::SuperOf, + types::super_of::SuperOf, (), (), ::subxt::storage::address::Yes, @@ -15702,7 +16464,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::super_of::SuperOf, + types::super_of::SuperOf, ::subxt::storage::address::Yes, (), (), @@ -15729,7 +16491,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::subs_of::SubsOf, + types::subs_of::SubsOf, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -15756,7 +16518,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::subs_of::SubsOf, + types::subs_of::SubsOf, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -15783,7 +16545,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::registrars::Registrars, + types::registrars::Registrars, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -15893,98 +16655,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - pub mod bid { - use super::runtime_types; - pub type Value = ::core::primitive::u128; - } - pub mod unbid { - use super::runtime_types; - } - pub mod vouch { - use super::runtime_types; - pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Value = ::core::primitive::u128; - pub type Tip = ::core::primitive::u128; - } - pub mod unvouch { - use super::runtime_types; - } - pub mod vote { - use super::runtime_types; - pub type Candidate = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Approve = ::core::primitive::bool; - } - pub mod defender_vote { - use super::runtime_types; - pub type Approve = ::core::primitive::bool; - } - pub mod payout { - use super::runtime_types; - } - pub mod waive_repay { - use super::runtime_types; - pub type Amount = ::core::primitive::u128; - } - pub mod found_society { - use super::runtime_types; - pub type Founder = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type MaxMembers = ::core::primitive::u32; - pub type MaxIntake = ::core::primitive::u32; - pub type MaxStrikes = ::core::primitive::u32; - pub type CandidateDeposit = ::core::primitive::u128; - pub type Rules = ::std::vec::Vec<::core::primitive::u8>; - } - pub mod dissolve { - use super::runtime_types; - } - pub mod judge_suspended_member { - use super::runtime_types; - pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Forgive = ::core::primitive::bool; - } - pub mod set_parameters { - use super::runtime_types; - pub type MaxMembers = ::core::primitive::u32; - pub type MaxIntake = ::core::primitive::u32; - pub type MaxStrikes = ::core::primitive::u32; - pub type CandidateDeposit = ::core::primitive::u128; - } - pub mod punish_skeptic { - use super::runtime_types; - } - pub mod claim_membership { - use super::runtime_types; - } - pub mod bestow_membership { - use super::runtime_types; - pub type Candidate = ::subxt::utils::AccountId32; - } - pub mod kick_candidate { - use super::runtime_types; - pub type Candidate = ::subxt::utils::AccountId32; - } - pub mod resign_candidacy { - use super::runtime_types; - } - pub mod drop_candidate { - use super::runtime_types; - pub type Candidate = ::subxt::utils::AccountId32; - } - pub mod cleanup_candidacy { - use super::runtime_types; - pub type Candidate = ::subxt::utils::AccountId32; - pub type Max = ::core::primitive::u32; - } - pub mod cleanup_challenge { - use super::runtime_types; - pub type ChallengeRound = ::core::primitive::u32; - pub type Max = ::core::primitive::u32; - } - } pub mod types { use super::runtime_types; #[derive( @@ -15999,7 +16669,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Bid { - pub value: ::core::primitive::u128, + pub value: bid::Value, + } + pub mod bid { + use super::runtime_types; + pub type Value = ::core::primitive::u128; } impl ::subxt::blocks::StaticExtrinsic for Bid { const PALLET: &'static str = "Society"; @@ -16031,9 +16705,15 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Vouch { - pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub value: ::core::primitive::u128, - pub tip: ::core::primitive::u128, + pub who: vouch::Who, + pub value: vouch::Value, + pub tip: vouch::Tip, + } + pub mod vouch { + use super::runtime_types; + pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Value = ::core::primitive::u128; + pub type Tip = ::core::primitive::u128; } impl ::subxt::blocks::StaticExtrinsic for Vouch { const PALLET: &'static str = "Society"; @@ -16065,8 +16745,14 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Vote { - pub candidate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub approve: ::core::primitive::bool, + pub candidate: vote::Candidate, + pub approve: vote::Approve, + } + pub mod vote { + use super::runtime_types; + pub type Candidate = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Approve = ::core::primitive::bool; } impl ::subxt::blocks::StaticExtrinsic for Vote { const PALLET: &'static str = "Society"; @@ -16083,7 +16769,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct DefenderVote { - pub approve: ::core::primitive::bool, + pub approve: defender_vote::Approve, + } + pub mod defender_vote { + use super::runtime_types; + pub type Approve = ::core::primitive::bool; } impl ::subxt::blocks::StaticExtrinsic for DefenderVote { const PALLET: &'static str = "Society"; @@ -16116,7 +16806,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct WaiveRepay { - pub amount: ::core::primitive::u128, + pub amount: waive_repay::Amount, + } + pub mod waive_repay { + use super::runtime_types; + pub type Amount = ::core::primitive::u128; } impl ::subxt::blocks::StaticExtrinsic for WaiveRepay { const PALLET: &'static str = "Society"; @@ -16133,12 +16827,22 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct FoundSociety { - pub founder: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub max_members: ::core::primitive::u32, - pub max_intake: ::core::primitive::u32, - pub max_strikes: ::core::primitive::u32, - pub candidate_deposit: ::core::primitive::u128, - pub rules: ::std::vec::Vec<::core::primitive::u8>, + pub founder: found_society::Founder, + pub max_members: found_society::MaxMembers, + pub max_intake: found_society::MaxIntake, + pub max_strikes: found_society::MaxStrikes, + pub candidate_deposit: found_society::CandidateDeposit, + pub rules: found_society::Rules, + } + pub mod found_society { + use super::runtime_types; + pub type Founder = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type MaxMembers = ::core::primitive::u32; + pub type MaxIntake = ::core::primitive::u32; + pub type MaxStrikes = ::core::primitive::u32; + pub type CandidateDeposit = ::core::primitive::u128; + pub type Rules = ::std::vec::Vec<::core::primitive::u8>; } impl ::subxt::blocks::StaticExtrinsic for FoundSociety { const PALLET: &'static str = "Society"; @@ -16170,8 +16874,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct JudgeSuspendedMember { - pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub forgive: ::core::primitive::bool, + pub who: judge_suspended_member::Who, + pub forgive: judge_suspended_member::Forgive, + } + pub mod judge_suspended_member { + use super::runtime_types; + pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Forgive = ::core::primitive::bool; } impl ::subxt::blocks::StaticExtrinsic for JudgeSuspendedMember { const PALLET: &'static str = "Society"; @@ -16188,10 +16897,17 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetParameters { - pub max_members: ::core::primitive::u32, - pub max_intake: ::core::primitive::u32, - pub max_strikes: ::core::primitive::u32, - pub candidate_deposit: ::core::primitive::u128, + pub max_members: set_parameters::MaxMembers, + pub max_intake: set_parameters::MaxIntake, + pub max_strikes: set_parameters::MaxStrikes, + pub candidate_deposit: set_parameters::CandidateDeposit, + } + pub mod set_parameters { + use super::runtime_types; + pub type MaxMembers = ::core::primitive::u32; + pub type MaxIntake = ::core::primitive::u32; + pub type MaxStrikes = ::core::primitive::u32; + pub type CandidateDeposit = ::core::primitive::u128; } impl ::subxt::blocks::StaticExtrinsic for SetParameters { const PALLET: &'static str = "Society"; @@ -16238,7 +16954,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BestowMembership { - pub candidate: ::subxt::utils::AccountId32, + pub candidate: bestow_membership::Candidate, + } + pub mod bestow_membership { + use super::runtime_types; + pub type Candidate = ::subxt::utils::AccountId32; } impl ::subxt::blocks::StaticExtrinsic for BestowMembership { const PALLET: &'static str = "Society"; @@ -16255,7 +16975,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct KickCandidate { - pub candidate: ::subxt::utils::AccountId32, + pub candidate: kick_candidate::Candidate, + } + pub mod kick_candidate { + use super::runtime_types; + pub type Candidate = ::subxt::utils::AccountId32; } impl ::subxt::blocks::StaticExtrinsic for KickCandidate { const PALLET: &'static str = "Society"; @@ -16287,7 +17011,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct DropCandidate { - pub candidate: ::subxt::utils::AccountId32, + pub candidate: drop_candidate::Candidate, + } + pub mod drop_candidate { + use super::runtime_types; + pub type Candidate = ::subxt::utils::AccountId32; } impl ::subxt::blocks::StaticExtrinsic for DropCandidate { const PALLET: &'static str = "Society"; @@ -16304,8 +17032,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CleanupCandidacy { - pub candidate: ::subxt::utils::AccountId32, - pub max: ::core::primitive::u32, + pub candidate: cleanup_candidacy::Candidate, + pub max: cleanup_candidacy::Max, + } + pub mod cleanup_candidacy { + use super::runtime_types; + pub type Candidate = ::subxt::utils::AccountId32; + pub type Max = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for CleanupCandidacy { const PALLET: &'static str = "Society"; @@ -16322,8 +17055,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CleanupChallenge { - pub challenge_round: ::core::primitive::u32, - pub max: ::core::primitive::u32, + pub challenge_round: cleanup_challenge::ChallengeRound, + pub max: cleanup_challenge::Max, + } + pub mod cleanup_challenge { + use super::runtime_types; + pub type ChallengeRound = ::core::primitive::u32; + pub type Max = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for CleanupChallenge { const PALLET: &'static str = "Society"; @@ -16333,10 +17071,7 @@ pub mod api { pub struct TransactionApi; impl TransactionApi { #[doc = "See [`Pallet::bid`]."] - pub fn bid( - &self, - value: alias_types::bid::Value, - ) -> ::subxt::tx::Payload { + pub fn bid(&self, value: types::bid::Value) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Society", "bid", @@ -16365,9 +17100,9 @@ pub mod api { #[doc = "See [`Pallet::vouch`]."] pub fn vouch( &self, - who: alias_types::vouch::Who, - value: alias_types::vouch::Value, - tip: alias_types::vouch::Tip, + who: types::vouch::Who, + value: types::vouch::Value, + tip: types::vouch::Tip, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Society", @@ -16397,8 +17132,8 @@ pub mod api { #[doc = "See [`Pallet::vote`]."] pub fn vote( &self, - candidate: alias_types::vote::Candidate, - approve: alias_types::vote::Approve, + candidate: types::vote::Candidate, + approve: types::vote::Approve, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Society", @@ -16414,7 +17149,7 @@ pub mod api { #[doc = "See [`Pallet::defender_vote`]."] pub fn defender_vote( &self, - approve: alias_types::defender_vote::Approve, + approve: types::defender_vote::Approve, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Society", @@ -16444,7 +17179,7 @@ pub mod api { #[doc = "See [`Pallet::waive_repay`]."] pub fn waive_repay( &self, - amount: alias_types::waive_repay::Amount, + amount: types::waive_repay::Amount, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Society", @@ -16460,12 +17195,12 @@ pub mod api { #[doc = "See [`Pallet::found_society`]."] pub fn found_society( &self, - founder: alias_types::found_society::Founder, - max_members: alias_types::found_society::MaxMembers, - max_intake: alias_types::found_society::MaxIntake, - max_strikes: alias_types::found_society::MaxStrikes, - candidate_deposit: alias_types::found_society::CandidateDeposit, - rules: alias_types::found_society::Rules, + founder: types::found_society::Founder, + max_members: types::found_society::MaxMembers, + max_intake: types::found_society::MaxIntake, + max_strikes: types::found_society::MaxStrikes, + candidate_deposit: types::found_society::CandidateDeposit, + rules: types::found_society::Rules, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Society", @@ -16503,8 +17238,8 @@ pub mod api { #[doc = "See [`Pallet::judge_suspended_member`]."] pub fn judge_suspended_member( &self, - who: alias_types::judge_suspended_member::Who, - forgive: alias_types::judge_suspended_member::Forgive, + who: types::judge_suspended_member::Who, + forgive: types::judge_suspended_member::Forgive, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Society", @@ -16520,10 +17255,10 @@ pub mod api { #[doc = "See [`Pallet::set_parameters`]."] pub fn set_parameters( &self, - max_members: alias_types::set_parameters::MaxMembers, - max_intake: alias_types::set_parameters::MaxIntake, - max_strikes: alias_types::set_parameters::MaxStrikes, - candidate_deposit: alias_types::set_parameters::CandidateDeposit, + max_members: types::set_parameters::MaxMembers, + max_intake: types::set_parameters::MaxIntake, + max_strikes: types::set_parameters::MaxStrikes, + candidate_deposit: types::set_parameters::CandidateDeposit, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Society", @@ -16572,7 +17307,7 @@ pub mod api { #[doc = "See [`Pallet::bestow_membership`]."] pub fn bestow_membership( &self, - candidate: alias_types::bestow_membership::Candidate, + candidate: types::bestow_membership::Candidate, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Society", @@ -16588,7 +17323,7 @@ pub mod api { #[doc = "See [`Pallet::kick_candidate`]."] pub fn kick_candidate( &self, - candidate: alias_types::kick_candidate::Candidate, + candidate: types::kick_candidate::Candidate, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Society", @@ -16618,7 +17353,7 @@ pub mod api { #[doc = "See [`Pallet::drop_candidate`]."] pub fn drop_candidate( &self, - candidate: alias_types::drop_candidate::Candidate, + candidate: types::drop_candidate::Candidate, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Society", @@ -16634,8 +17369,8 @@ pub mod api { #[doc = "See [`Pallet::cleanup_candidacy`]."] pub fn cleanup_candidacy( &self, - candidate: alias_types::cleanup_candidacy::Candidate, - max: alias_types::cleanup_candidacy::Max, + candidate: types::cleanup_candidacy::Candidate, + max: types::cleanup_candidacy::Max, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Society", @@ -16652,8 +17387,8 @@ pub mod api { #[doc = "See [`Pallet::cleanup_challenge`]."] pub fn cleanup_challenge( &self, - challenge_round: alias_types::cleanup_challenge::ChallengeRound, - max: alias_types::cleanup_challenge::Max, + challenge_round: types::cleanup_challenge::ChallengeRound, + max: types::cleanup_challenge::Max, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Society", @@ -16688,7 +17423,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The society is founded by the given identity."] pub struct Founded { - pub founder: ::subxt::utils::AccountId32, + pub founder: founded::Founder, + } + pub mod founded { + use super::runtime_types; + pub type Founder = ::subxt::utils::AccountId32; } impl ::subxt::events::StaticEvent for Founded { const PALLET: &'static str = "Society"; @@ -16707,8 +17446,13 @@ pub mod api { #[doc = "A membership bid just happened. The given account is the candidate's ID and their offer"] #[doc = "is the second."] pub struct Bid { - pub candidate_id: ::subxt::utils::AccountId32, - pub offer: ::core::primitive::u128, + pub candidate_id: bid::CandidateId, + pub offer: bid::Offer, + } + pub mod bid { + use super::runtime_types; + pub type CandidateId = ::subxt::utils::AccountId32; + pub type Offer = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Bid { const PALLET: &'static str = "Society"; @@ -16727,9 +17471,15 @@ pub mod api { #[doc = "A membership bid just happened by vouching. The given account is the candidate's ID and"] #[doc = "their offer is the second. The vouching party is the third."] pub struct Vouch { - pub candidate_id: ::subxt::utils::AccountId32, - pub offer: ::core::primitive::u128, - pub vouching: ::subxt::utils::AccountId32, + pub candidate_id: vouch::CandidateId, + pub offer: vouch::Offer, + pub vouching: vouch::Vouching, + } + pub mod vouch { + use super::runtime_types; + pub type CandidateId = ::subxt::utils::AccountId32; + pub type Offer = ::core::primitive::u128; + pub type Vouching = ::subxt::utils::AccountId32; } impl ::subxt::events::StaticEvent for Vouch { const PALLET: &'static str = "Society"; @@ -16747,7 +17497,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A candidate was dropped (due to an excess of bids in the system)."] pub struct AutoUnbid { - pub candidate: ::subxt::utils::AccountId32, + pub candidate: auto_unbid::Candidate, + } + pub mod auto_unbid { + use super::runtime_types; + pub type Candidate = ::subxt::utils::AccountId32; } impl ::subxt::events::StaticEvent for AutoUnbid { const PALLET: &'static str = "Society"; @@ -16765,7 +17519,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A candidate was dropped (by their request)."] pub struct Unbid { - pub candidate: ::subxt::utils::AccountId32, + pub candidate: unbid::Candidate, + } + pub mod unbid { + use super::runtime_types; + pub type Candidate = ::subxt::utils::AccountId32; } impl ::subxt::events::StaticEvent for Unbid { const PALLET: &'static str = "Society"; @@ -16783,7 +17541,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A candidate was dropped (by request of who vouched for them)."] pub struct Unvouch { - pub candidate: ::subxt::utils::AccountId32, + pub candidate: unvouch::Candidate, + } + pub mod unvouch { + use super::runtime_types; + pub type Candidate = ::subxt::utils::AccountId32; } impl ::subxt::events::StaticEvent for Unvouch { const PALLET: &'static str = "Society"; @@ -16802,8 +17564,13 @@ pub mod api { #[doc = "A group of candidates have been inducted. The batch's primary is the first value, the"] #[doc = "batch in full is the second."] pub struct Inducted { - pub primary: ::subxt::utils::AccountId32, - pub candidates: ::std::vec::Vec<::subxt::utils::AccountId32>, + pub primary: inducted::Primary, + pub candidates: inducted::Candidates, + } + pub mod inducted { + use super::runtime_types; + pub type Primary = ::subxt::utils::AccountId32; + pub type Candidates = ::std::vec::Vec<::subxt::utils::AccountId32>; } impl ::subxt::events::StaticEvent for Inducted { const PALLET: &'static str = "Society"; @@ -16821,8 +17588,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A suspended member has been judged."] pub struct SuspendedMemberJudgement { - pub who: ::subxt::utils::AccountId32, - pub judged: ::core::primitive::bool, + pub who: suspended_member_judgement::Who, + pub judged: suspended_member_judgement::Judged, + } + pub mod suspended_member_judgement { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Judged = ::core::primitive::bool; } impl ::subxt::events::StaticEvent for SuspendedMemberJudgement { const PALLET: &'static str = "Society"; @@ -16840,7 +17612,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A candidate has been suspended"] pub struct CandidateSuspended { - pub candidate: ::subxt::utils::AccountId32, + pub candidate: candidate_suspended::Candidate, + } + pub mod candidate_suspended { + use super::runtime_types; + pub type Candidate = ::subxt::utils::AccountId32; } impl ::subxt::events::StaticEvent for CandidateSuspended { const PALLET: &'static str = "Society"; @@ -16858,7 +17634,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A member has been suspended"] pub struct MemberSuspended { - pub member: ::subxt::utils::AccountId32, + pub member: member_suspended::Member, + } + pub mod member_suspended { + use super::runtime_types; + pub type Member = ::subxt::utils::AccountId32; } impl ::subxt::events::StaticEvent for MemberSuspended { const PALLET: &'static str = "Society"; @@ -16876,7 +17656,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A member has been challenged"] pub struct Challenged { - pub member: ::subxt::utils::AccountId32, + pub member: challenged::Member, + } + pub mod challenged { + use super::runtime_types; + pub type Member = ::subxt::utils::AccountId32; } impl ::subxt::events::StaticEvent for Challenged { const PALLET: &'static str = "Society"; @@ -16894,9 +17678,15 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A vote has been placed"] pub struct Vote { - pub candidate: ::subxt::utils::AccountId32, - pub voter: ::subxt::utils::AccountId32, - pub vote: ::core::primitive::bool, + pub candidate: vote::Candidate, + pub voter: vote::Voter, + pub vote: vote::Vote, + } + pub mod vote { + use super::runtime_types; + pub type Candidate = ::subxt::utils::AccountId32; + pub type Voter = ::subxt::utils::AccountId32; + pub type Vote = ::core::primitive::bool; } impl ::subxt::events::StaticEvent for Vote { const PALLET: &'static str = "Society"; @@ -16914,8 +17704,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A vote has been placed for a defending member"] pub struct DefenderVote { - pub voter: ::subxt::utils::AccountId32, - pub vote: ::core::primitive::bool, + pub voter: defender_vote::Voter, + pub vote: defender_vote::Vote, + } + pub mod defender_vote { + use super::runtime_types; + pub type Voter = ::subxt::utils::AccountId32; + pub type Vote = ::core::primitive::bool; } impl ::subxt::events::StaticEvent for DefenderVote { const PALLET: &'static str = "Society"; @@ -16933,7 +17728,12 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A new set of \\[params\\] has been set for the group."] pub struct NewParams { - pub params: runtime_types::pallet_society::GroupParams<::core::primitive::u128>, + pub params: new_params::Params, + } + pub mod new_params { + use super::runtime_types; + pub type Params = + runtime_types::pallet_society::GroupParams<::core::primitive::u128>; } impl ::subxt::events::StaticEvent for NewParams { const PALLET: &'static str = "Society"; @@ -16951,7 +17751,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Society is unfounded."] pub struct Unfounded { - pub founder: ::subxt::utils::AccountId32, + pub founder: unfounded::Founder, + } + pub mod unfounded { + use super::runtime_types; + pub type Founder = ::subxt::utils::AccountId32; } impl ::subxt::events::StaticEvent for Unfounded { const PALLET: &'static str = "Society"; @@ -16970,7 +17774,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some funds were deposited into the society account."] pub struct Deposit { - pub value: ::core::primitive::u128, + pub value: deposit::Value, + } + pub mod deposit { + use super::runtime_types; + pub type Value = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Deposit { const PALLET: &'static str = "Society"; @@ -16988,8 +17796,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A \\[member\\] got elevated to \\[rank\\]."] pub struct Elevated { - pub member: ::subxt::utils::AccountId32, - pub rank: ::core::primitive::u32, + pub member: elevated::Member, + pub rank: elevated::Rank, + } + pub mod elevated { + use super::runtime_types; + pub type Member = ::subxt::utils::AccountId32; + pub type Rank = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for Elevated { const PALLET: &'static str = "Society"; @@ -16998,7 +17811,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod parameters { use super::runtime_types; @@ -17113,7 +17926,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::parameters::Parameters, + types::parameters::Parameters, ::subxt::storage::address::Yes, (), (), @@ -17135,7 +17948,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::pot::Pot, + types::pot::Pot, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -17156,7 +17969,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::founder::Founder, + types::founder::Founder, ::subxt::storage::address::Yes, (), (), @@ -17177,7 +17990,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::head::Head, + types::head::Head, ::subxt::storage::address::Yes, (), (), @@ -17199,7 +18012,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::rules::Rules, + types::rules::Rules, ::subxt::storage::address::Yes, (), (), @@ -17221,7 +18034,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::members::Members, + types::members::Members, (), (), ::subxt::storage::address::Yes, @@ -17243,7 +18056,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::members::Members, + types::members::Members, ::subxt::storage::address::Yes, (), (), @@ -17266,7 +18079,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::payouts::Payouts, + types::payouts::Payouts, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -17288,7 +18101,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::payouts::Payouts, + types::payouts::Payouts, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -17311,7 +18124,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::member_count::MemberCount, + types::member_count::MemberCount, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -17334,7 +18147,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::member_by_index::MemberByIndex, + types::member_by_index::MemberByIndex, (), (), ::subxt::storage::address::Yes, @@ -17358,7 +18171,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::member_by_index::MemberByIndex, + types::member_by_index::MemberByIndex, ::subxt::storage::address::Yes, (), (), @@ -17382,7 +18195,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::suspended_members::SuspendedMembers, + types::suspended_members::SuspendedMembers, (), (), ::subxt::storage::address::Yes, @@ -17405,7 +18218,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::suspended_members::SuspendedMembers, + types::suspended_members::SuspendedMembers, ::subxt::storage::address::Yes, (), (), @@ -17429,7 +18242,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::round_count::RoundCount, + types::round_count::RoundCount, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -17451,7 +18264,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::bids::Bids, + types::bids::Bids, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -17471,7 +18284,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::candidates::Candidates, + types::candidates::Candidates, (), (), ::subxt::storage::address::Yes, @@ -17492,7 +18305,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::candidates::Candidates, + types::candidates::Candidates, ::subxt::storage::address::Yes, (), (), @@ -17515,7 +18328,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::skeptic::Skeptic, + types::skeptic::Skeptic, ::subxt::storage::address::Yes, (), (), @@ -17537,7 +18350,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::votes::Votes, + types::votes::Votes, (), (), ::subxt::storage::address::Yes, @@ -17560,7 +18373,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::votes::Votes, + types::votes::Votes, (), (), ::subxt::storage::address::Yes, @@ -17586,7 +18399,7 @@ pub mod api { _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::votes::Votes, + types::votes::Votes, ::subxt::storage::address::Yes, (), (), @@ -17611,7 +18424,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::vote_clear_cursor::VoteClearCursor, + types::vote_clear_cursor::VoteClearCursor, (), (), ::subxt::storage::address::Yes, @@ -17634,7 +18447,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::vote_clear_cursor::VoteClearCursor, + types::vote_clear_cursor::VoteClearCursor, ::subxt::storage::address::Yes, (), (), @@ -17660,7 +18473,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::next_head::NextHead, + types::next_head::NextHead, ::subxt::storage::address::Yes, (), (), @@ -17681,7 +18494,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::challenge_round_count::ChallengeRoundCount, + types::challenge_round_count::ChallengeRoundCount, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -17702,7 +18515,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::defending::Defending, + types::defending::Defending, ::subxt::storage::address::Yes, (), (), @@ -17723,7 +18536,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::defender_votes::DefenderVotes, + types::defender_votes::DefenderVotes, (), (), ::subxt::storage::address::Yes, @@ -17746,7 +18559,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::defender_votes::DefenderVotes, + types::defender_votes::DefenderVotes, (), (), ::subxt::storage::address::Yes, @@ -17772,7 +18585,7 @@ pub mod api { _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::defender_votes::DefenderVotes, + types::defender_votes::DefenderVotes, ::subxt::storage::address::Yes, (), (), @@ -17936,56 +18749,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - pub mod as_recovered { - use super::runtime_types; - pub type Account = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Call = runtime_types::rococo_runtime::RuntimeCall; - } - pub mod set_recovered { - use super::runtime_types; - pub type Lost = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Rescuer = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - } - pub mod create_recovery { - use super::runtime_types; - pub type Friends = ::std::vec::Vec<::subxt::utils::AccountId32>; - pub type Threshold = ::core::primitive::u16; - pub type DelayPeriod = ::core::primitive::u32; - } - pub mod initiate_recovery { - use super::runtime_types; - pub type Account = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - } - pub mod vouch_recovery { - use super::runtime_types; - pub type Lost = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Rescuer = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - } - pub mod claim_recovery { - use super::runtime_types; - pub type Account = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - } - pub mod close_recovery { - use super::runtime_types; - pub type Rescuer = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - } - pub mod remove_recovery { - use super::runtime_types; - } - pub mod cancel_recovered { - use super::runtime_types; - pub type Account = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - } - } pub mod types { use super::runtime_types; #[derive( @@ -17999,8 +18762,14 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AsRecovered { - pub account: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub call: ::std::boxed::Box, + pub account: as_recovered::Account, + pub call: ::std::boxed::Box, + } + pub mod as_recovered { + use super::runtime_types; + pub type Account = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Call = runtime_types::rococo_runtime::RuntimeCall; } impl ::subxt::blocks::StaticExtrinsic for AsRecovered { const PALLET: &'static str = "Recovery"; @@ -18017,8 +18786,14 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetRecovered { - pub lost: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub rescuer: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub lost: set_recovered::Lost, + pub rescuer: set_recovered::Rescuer, + } + pub mod set_recovered { + use super::runtime_types; + pub type Lost = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Rescuer = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; } impl ::subxt::blocks::StaticExtrinsic for SetRecovered { const PALLET: &'static str = "Recovery"; @@ -18035,9 +18810,15 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CreateRecovery { - pub friends: ::std::vec::Vec<::subxt::utils::AccountId32>, - pub threshold: ::core::primitive::u16, - pub delay_period: ::core::primitive::u32, + pub friends: create_recovery::Friends, + pub threshold: create_recovery::Threshold, + pub delay_period: create_recovery::DelayPeriod, + } + pub mod create_recovery { + use super::runtime_types; + pub type Friends = ::std::vec::Vec<::subxt::utils::AccountId32>; + pub type Threshold = ::core::primitive::u16; + pub type DelayPeriod = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for CreateRecovery { const PALLET: &'static str = "Recovery"; @@ -18054,7 +18835,12 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct InitiateRecovery { - pub account: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub account: initiate_recovery::Account, + } + pub mod initiate_recovery { + use super::runtime_types; + pub type Account = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; } impl ::subxt::blocks::StaticExtrinsic for InitiateRecovery { const PALLET: &'static str = "Recovery"; @@ -18071,8 +18857,14 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct VouchRecovery { - pub lost: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub rescuer: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub lost: vouch_recovery::Lost, + pub rescuer: vouch_recovery::Rescuer, + } + pub mod vouch_recovery { + use super::runtime_types; + pub type Lost = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Rescuer = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; } impl ::subxt::blocks::StaticExtrinsic for VouchRecovery { const PALLET: &'static str = "Recovery"; @@ -18089,7 +18881,12 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ClaimRecovery { - pub account: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub account: claim_recovery::Account, + } + pub mod claim_recovery { + use super::runtime_types; + pub type Account = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; } impl ::subxt::blocks::StaticExtrinsic for ClaimRecovery { const PALLET: &'static str = "Recovery"; @@ -18106,7 +18903,12 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CloseRecovery { - pub rescuer: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub rescuer: close_recovery::Rescuer, + } + pub mod close_recovery { + use super::runtime_types; + pub type Rescuer = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; } impl ::subxt::blocks::StaticExtrinsic for CloseRecovery { const PALLET: &'static str = "Recovery"; @@ -18138,7 +18940,12 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CancelRecovered { - pub account: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub account: cancel_recovered::Account, + } + pub mod cancel_recovered { + use super::runtime_types; + pub type Account = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; } impl ::subxt::blocks::StaticExtrinsic for CancelRecovered { const PALLET: &'static str = "Recovery"; @@ -18150,8 +18957,8 @@ pub mod api { #[doc = "See [`Pallet::as_recovered`]."] pub fn as_recovered( &self, - account: alias_types::as_recovered::Account, - call: alias_types::as_recovered::Call, + account: types::as_recovered::Account, + call: types::as_recovered::Call, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Recovery", @@ -18171,8 +18978,8 @@ pub mod api { #[doc = "See [`Pallet::set_recovered`]."] pub fn set_recovered( &self, - lost: alias_types::set_recovered::Lost, - rescuer: alias_types::set_recovered::Rescuer, + lost: types::set_recovered::Lost, + rescuer: types::set_recovered::Rescuer, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Recovery", @@ -18188,9 +18995,9 @@ pub mod api { #[doc = "See [`Pallet::create_recovery`]."] pub fn create_recovery( &self, - friends: alias_types::create_recovery::Friends, - threshold: alias_types::create_recovery::Threshold, - delay_period: alias_types::create_recovery::DelayPeriod, + friends: types::create_recovery::Friends, + threshold: types::create_recovery::Threshold, + delay_period: types::create_recovery::DelayPeriod, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Recovery", @@ -18210,7 +19017,7 @@ pub mod api { #[doc = "See [`Pallet::initiate_recovery`]."] pub fn initiate_recovery( &self, - account: alias_types::initiate_recovery::Account, + account: types::initiate_recovery::Account, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Recovery", @@ -18226,8 +19033,8 @@ pub mod api { #[doc = "See [`Pallet::vouch_recovery`]."] pub fn vouch_recovery( &self, - lost: alias_types::vouch_recovery::Lost, - rescuer: alias_types::vouch_recovery::Rescuer, + lost: types::vouch_recovery::Lost, + rescuer: types::vouch_recovery::Rescuer, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Recovery", @@ -18243,7 +19050,7 @@ pub mod api { #[doc = "See [`Pallet::claim_recovery`]."] pub fn claim_recovery( &self, - account: alias_types::claim_recovery::Account, + account: types::claim_recovery::Account, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Recovery", @@ -18260,7 +19067,7 @@ pub mod api { #[doc = "See [`Pallet::close_recovery`]."] pub fn close_recovery( &self, - rescuer: alias_types::close_recovery::Rescuer, + rescuer: types::close_recovery::Rescuer, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Recovery", @@ -18291,7 +19098,7 @@ pub mod api { #[doc = "See [`Pallet::cancel_recovered`]."] pub fn cancel_recovered( &self, - account: alias_types::cancel_recovered::Account, + account: types::cancel_recovered::Account, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Recovery", @@ -18323,7 +19130,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A recovery process has been set up for an account."] pub struct RecoveryCreated { - pub account: ::subxt::utils::AccountId32, + pub account: recovery_created::Account, + } + pub mod recovery_created { + use super::runtime_types; + pub type Account = ::subxt::utils::AccountId32; } impl ::subxt::events::StaticEvent for RecoveryCreated { const PALLET: &'static str = "Recovery"; @@ -18341,8 +19152,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A recovery process has been initiated for lost account by rescuer account."] pub struct RecoveryInitiated { - pub lost_account: ::subxt::utils::AccountId32, - pub rescuer_account: ::subxt::utils::AccountId32, + pub lost_account: recovery_initiated::LostAccount, + pub rescuer_account: recovery_initiated::RescuerAccount, + } + pub mod recovery_initiated { + use super::runtime_types; + pub type LostAccount = ::subxt::utils::AccountId32; + pub type RescuerAccount = ::subxt::utils::AccountId32; } impl ::subxt::events::StaticEvent for RecoveryInitiated { const PALLET: &'static str = "Recovery"; @@ -18360,9 +19176,15 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A recovery process for lost account by rescuer account has been vouched for by sender."] pub struct RecoveryVouched { - pub lost_account: ::subxt::utils::AccountId32, - pub rescuer_account: ::subxt::utils::AccountId32, - pub sender: ::subxt::utils::AccountId32, + pub lost_account: recovery_vouched::LostAccount, + pub rescuer_account: recovery_vouched::RescuerAccount, + pub sender: recovery_vouched::Sender, + } + pub mod recovery_vouched { + use super::runtime_types; + pub type LostAccount = ::subxt::utils::AccountId32; + pub type RescuerAccount = ::subxt::utils::AccountId32; + pub type Sender = ::subxt::utils::AccountId32; } impl ::subxt::events::StaticEvent for RecoveryVouched { const PALLET: &'static str = "Recovery"; @@ -18380,8 +19202,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A recovery process for lost account by rescuer account has been closed."] pub struct RecoveryClosed { - pub lost_account: ::subxt::utils::AccountId32, - pub rescuer_account: ::subxt::utils::AccountId32, + pub lost_account: recovery_closed::LostAccount, + pub rescuer_account: recovery_closed::RescuerAccount, + } + pub mod recovery_closed { + use super::runtime_types; + pub type LostAccount = ::subxt::utils::AccountId32; + pub type RescuerAccount = ::subxt::utils::AccountId32; } impl ::subxt::events::StaticEvent for RecoveryClosed { const PALLET: &'static str = "Recovery"; @@ -18399,8 +19226,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Lost account has been successfully recovered by rescuer account."] pub struct AccountRecovered { - pub lost_account: ::subxt::utils::AccountId32, - pub rescuer_account: ::subxt::utils::AccountId32, + pub lost_account: account_recovered::LostAccount, + pub rescuer_account: account_recovered::RescuerAccount, + } + pub mod account_recovered { + use super::runtime_types; + pub type LostAccount = ::subxt::utils::AccountId32; + pub type RescuerAccount = ::subxt::utils::AccountId32; } impl ::subxt::events::StaticEvent for AccountRecovered { const PALLET: &'static str = "Recovery"; @@ -18418,7 +19250,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A recovery process has been removed for an account."] pub struct RecoveryRemoved { - pub lost_account: ::subxt::utils::AccountId32, + pub lost_account: recovery_removed::LostAccount, + } + pub mod recovery_removed { + use super::runtime_types; + pub type LostAccount = ::subxt::utils::AccountId32; } impl ::subxt::events::StaticEvent for RecoveryRemoved { const PALLET: &'static str = "Recovery"; @@ -18427,7 +19263,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod recoverable { use super::runtime_types; @@ -18461,7 +19297,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::recoverable::Recoverable, + types::recoverable::Recoverable, (), (), ::subxt::storage::address::Yes, @@ -18483,7 +19319,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::recoverable::Recoverable, + types::recoverable::Recoverable, ::subxt::storage::address::Yes, (), (), @@ -18509,7 +19345,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::active_recoveries::ActiveRecoveries, + types::active_recoveries::ActiveRecoveries, (), (), ::subxt::storage::address::Yes, @@ -18535,7 +19371,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::active_recoveries::ActiveRecoveries, + types::active_recoveries::ActiveRecoveries, (), (), ::subxt::storage::address::Yes, @@ -18564,7 +19400,7 @@ pub mod api { _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::active_recoveries::ActiveRecoveries, + types::active_recoveries::ActiveRecoveries, ::subxt::storage::address::Yes, (), (), @@ -18591,7 +19427,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::proxy::Proxy, + types::proxy::Proxy, (), (), ::subxt::storage::address::Yes, @@ -18615,7 +19451,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::proxy::Proxy, + types::proxy::Proxy, ::subxt::storage::address::Yes, (), (), @@ -18726,43 +19562,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - pub mod vest { - use super::runtime_types; - } - pub mod vest_other { - use super::runtime_types; - pub type Target = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - } - pub mod vested_transfer { - use super::runtime_types; - pub type Target = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Schedule = runtime_types::pallet_vesting::vesting_info::VestingInfo< - ::core::primitive::u128, - ::core::primitive::u32, - >; - } - pub mod force_vested_transfer { - use super::runtime_types; - pub type Source = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Target = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Schedule = runtime_types::pallet_vesting::vesting_info::VestingInfo< - ::core::primitive::u128, - ::core::primitive::u32, - >; - } - pub mod merge_schedules { - use super::runtime_types; - pub type Schedule1Index = ::core::primitive::u32; - pub type Schedule2Index = ::core::primitive::u32; - } - pub mod force_remove_vesting_schedule { - use super::runtime_types; - pub type Target = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type ScheduleIndex = ::core::primitive::u32; - } - } pub mod types { use super::runtime_types; #[derive( @@ -18791,7 +19590,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct VestOther { - pub target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub target: vest_other::Target, + } + pub mod vest_other { + use super::runtime_types; + pub type Target = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; } impl ::subxt::blocks::StaticExtrinsic for VestOther { const PALLET: &'static str = "Vesting"; @@ -18808,11 +19611,16 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct VestedTransfer { - pub target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub schedule: runtime_types::pallet_vesting::vesting_info::VestingInfo< + pub target: vested_transfer::Target, + pub schedule: vested_transfer::Schedule, + } + pub mod vested_transfer { + use super::runtime_types; + pub type Target = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Schedule = runtime_types::pallet_vesting::vesting_info::VestingInfo< ::core::primitive::u128, ::core::primitive::u32, - >, + >; } impl ::subxt::blocks::StaticExtrinsic for VestedTransfer { const PALLET: &'static str = "Vesting"; @@ -18829,12 +19637,18 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceVestedTransfer { - pub source: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub schedule: runtime_types::pallet_vesting::vesting_info::VestingInfo< + pub source: force_vested_transfer::Source, + pub target: force_vested_transfer::Target, + pub schedule: force_vested_transfer::Schedule, + } + pub mod force_vested_transfer { + use super::runtime_types; + pub type Source = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Target = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Schedule = runtime_types::pallet_vesting::vesting_info::VestingInfo< ::core::primitive::u128, ::core::primitive::u32, - >, + >; } impl ::subxt::blocks::StaticExtrinsic for ForceVestedTransfer { const PALLET: &'static str = "Vesting"; @@ -18851,8 +19665,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct MergeSchedules { - pub schedule1_index: ::core::primitive::u32, - pub schedule2_index: ::core::primitive::u32, + pub schedule1_index: merge_schedules::Schedule1Index, + pub schedule2_index: merge_schedules::Schedule2Index, + } + pub mod merge_schedules { + use super::runtime_types; + pub type Schedule1Index = ::core::primitive::u32; + pub type Schedule2Index = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for MergeSchedules { const PALLET: &'static str = "Vesting"; @@ -18869,8 +19688,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceRemoveVestingSchedule { - pub target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub schedule_index: ::core::primitive::u32, + pub target: force_remove_vesting_schedule::Target, + pub schedule_index: force_remove_vesting_schedule::ScheduleIndex, + } + pub mod force_remove_vesting_schedule { + use super::runtime_types; + pub type Target = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type ScheduleIndex = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for ForceRemoveVestingSchedule { const PALLET: &'static str = "Vesting"; @@ -18896,7 +19720,7 @@ pub mod api { #[doc = "See [`Pallet::vest_other`]."] pub fn vest_other( &self, - target: alias_types::vest_other::Target, + target: types::vest_other::Target, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Vesting", @@ -18912,8 +19736,8 @@ pub mod api { #[doc = "See [`Pallet::vested_transfer`]."] pub fn vested_transfer( &self, - target: alias_types::vested_transfer::Target, - schedule: alias_types::vested_transfer::Schedule, + target: types::vested_transfer::Target, + schedule: types::vested_transfer::Schedule, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Vesting", @@ -18929,9 +19753,9 @@ pub mod api { #[doc = "See [`Pallet::force_vested_transfer`]."] pub fn force_vested_transfer( &self, - source: alias_types::force_vested_transfer::Source, - target: alias_types::force_vested_transfer::Target, - schedule: alias_types::force_vested_transfer::Schedule, + source: types::force_vested_transfer::Source, + target: types::force_vested_transfer::Target, + schedule: types::force_vested_transfer::Schedule, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Vesting", @@ -18952,8 +19776,8 @@ pub mod api { #[doc = "See [`Pallet::merge_schedules`]."] pub fn merge_schedules( &self, - schedule1_index: alias_types::merge_schedules::Schedule1Index, - schedule2_index: alias_types::merge_schedules::Schedule2Index, + schedule1_index: types::merge_schedules::Schedule1Index, + schedule2_index: types::merge_schedules::Schedule2Index, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Vesting", @@ -18972,8 +19796,8 @@ pub mod api { #[doc = "See [`Pallet::force_remove_vesting_schedule`]."] pub fn force_remove_vesting_schedule( &self, - target: alias_types::force_remove_vesting_schedule::Target, - schedule_index: alias_types::force_remove_vesting_schedule::ScheduleIndex, + target: types::force_remove_vesting_schedule::Target, + schedule_index: types::force_remove_vesting_schedule::ScheduleIndex, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Vesting", @@ -19008,8 +19832,13 @@ pub mod api { #[doc = "The amount vested has been updated. This could indicate a change in funds available."] #[doc = "The balance given is the amount which is left unvested (and thus locked)."] pub struct VestingUpdated { - pub account: ::subxt::utils::AccountId32, - pub unvested: ::core::primitive::u128, + pub account: vesting_updated::Account, + pub unvested: vesting_updated::Unvested, + } + pub mod vesting_updated { + use super::runtime_types; + pub type Account = ::subxt::utils::AccountId32; + pub type Unvested = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for VestingUpdated { const PALLET: &'static str = "Vesting"; @@ -19027,7 +19856,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An \\[account\\] has become fully vested."] pub struct VestingCompleted { - pub account: ::subxt::utils::AccountId32, + pub account: vesting_completed::Account, + } + pub mod vesting_completed { + use super::runtime_types; + pub type Account = ::subxt::utils::AccountId32; } impl ::subxt::events::StaticEvent for VestingCompleted { const PALLET: &'static str = "Vesting"; @@ -19036,7 +19869,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod vesting { use super::runtime_types; @@ -19059,7 +19892,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::vesting::Vesting, + types::vesting::Vesting, (), (), ::subxt::storage::address::Yes, @@ -19082,7 +19915,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::vesting::Vesting, + types::vesting::Vesting, ::subxt::storage::address::Yes, (), (), @@ -19108,7 +19941,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::storage_version::StorageVersion, + types::storage_version::StorageVersion, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -19172,52 +20005,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - pub mod schedule { - use super::runtime_types; - pub type When = ::core::primitive::u32; - pub type MaybePeriodic = - ::core::option::Option<(::core::primitive::u32, ::core::primitive::u32)>; - pub type Priority = ::core::primitive::u8; - pub type Call = runtime_types::rococo_runtime::RuntimeCall; - } - pub mod cancel { - use super::runtime_types; - pub type When = ::core::primitive::u32; - pub type Index = ::core::primitive::u32; - } - pub mod schedule_named { - use super::runtime_types; - pub type Id = [::core::primitive::u8; 32usize]; - pub type When = ::core::primitive::u32; - pub type MaybePeriodic = - ::core::option::Option<(::core::primitive::u32, ::core::primitive::u32)>; - pub type Priority = ::core::primitive::u8; - pub type Call = runtime_types::rococo_runtime::RuntimeCall; - } - pub mod cancel_named { - use super::runtime_types; - pub type Id = [::core::primitive::u8; 32usize]; - } - pub mod schedule_after { - use super::runtime_types; - pub type After = ::core::primitive::u32; - pub type MaybePeriodic = - ::core::option::Option<(::core::primitive::u32, ::core::primitive::u32)>; - pub type Priority = ::core::primitive::u8; - pub type Call = runtime_types::rococo_runtime::RuntimeCall; - } - pub mod schedule_named_after { - use super::runtime_types; - pub type Id = [::core::primitive::u8; 32usize]; - pub type After = ::core::primitive::u32; - pub type MaybePeriodic = - ::core::option::Option<(::core::primitive::u32, ::core::primitive::u32)>; - pub type Priority = ::core::primitive::u8; - pub type Call = runtime_types::rococo_runtime::RuntimeCall; - } - } pub mod types { use super::runtime_types; #[derive( @@ -19231,11 +20018,18 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] 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, + pub when: schedule::When, + pub maybe_periodic: schedule::MaybePeriodic, + pub priority: schedule::Priority, + pub call: ::std::boxed::Box, + } + pub mod schedule { + use super::runtime_types; + pub type When = ::core::primitive::u32; + pub type MaybePeriodic = + ::core::option::Option<(::core::primitive::u32, ::core::primitive::u32)>; + pub type Priority = ::core::primitive::u8; + pub type Call = runtime_types::rococo_runtime::RuntimeCall; } impl ::subxt::blocks::StaticExtrinsic for Schedule { const PALLET: &'static str = "Scheduler"; @@ -19252,8 +20046,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Cancel { - pub when: ::core::primitive::u32, - pub index: ::core::primitive::u32, + pub when: cancel::When, + pub index: cancel::Index, + } + pub mod cancel { + use super::runtime_types; + pub type When = ::core::primitive::u32; + pub type Index = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for Cancel { const PALLET: &'static str = "Scheduler"; @@ -19270,12 +20069,20 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ScheduleNamed { - pub id: [::core::primitive::u8; 32usize], - 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, + pub id: schedule_named::Id, + pub when: schedule_named::When, + pub maybe_periodic: schedule_named::MaybePeriodic, + pub priority: schedule_named::Priority, + pub call: ::std::boxed::Box, + } + pub mod schedule_named { + use super::runtime_types; + pub type Id = [::core::primitive::u8; 32usize]; + pub type When = ::core::primitive::u32; + pub type MaybePeriodic = + ::core::option::Option<(::core::primitive::u32, ::core::primitive::u32)>; + pub type Priority = ::core::primitive::u8; + pub type Call = runtime_types::rococo_runtime::RuntimeCall; } impl ::subxt::blocks::StaticExtrinsic for ScheduleNamed { const PALLET: &'static str = "Scheduler"; @@ -19292,7 +20099,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CancelNamed { - pub id: [::core::primitive::u8; 32usize], + pub id: cancel_named::Id, + } + pub mod cancel_named { + use super::runtime_types; + pub type Id = [::core::primitive::u8; 32usize]; } impl ::subxt::blocks::StaticExtrinsic for CancelNamed { const PALLET: &'static str = "Scheduler"; @@ -19309,11 +20120,18 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] 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, + pub after: schedule_after::After, + pub maybe_periodic: schedule_after::MaybePeriodic, + pub priority: schedule_after::Priority, + pub call: ::std::boxed::Box, + } + pub mod schedule_after { + use super::runtime_types; + pub type After = ::core::primitive::u32; + pub type MaybePeriodic = + ::core::option::Option<(::core::primitive::u32, ::core::primitive::u32)>; + pub type Priority = ::core::primitive::u8; + pub type Call = runtime_types::rococo_runtime::RuntimeCall; } impl ::subxt::blocks::StaticExtrinsic for ScheduleAfter { const PALLET: &'static str = "Scheduler"; @@ -19330,12 +20148,20 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ScheduleNamedAfter { - pub id: [::core::primitive::u8; 32usize], - 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, + pub id: schedule_named_after::Id, + pub after: schedule_named_after::After, + pub maybe_periodic: schedule_named_after::MaybePeriodic, + pub priority: schedule_named_after::Priority, + pub call: ::std::boxed::Box, + } + pub mod schedule_named_after { + use super::runtime_types; + pub type Id = [::core::primitive::u8; 32usize]; + pub type After = ::core::primitive::u32; + pub type MaybePeriodic = + ::core::option::Option<(::core::primitive::u32, ::core::primitive::u32)>; + pub type Priority = ::core::primitive::u8; + pub type Call = runtime_types::rococo_runtime::RuntimeCall; } impl ::subxt::blocks::StaticExtrinsic for ScheduleNamedAfter { const PALLET: &'static str = "Scheduler"; @@ -19347,10 +20173,10 @@ pub mod api { #[doc = "See [`Pallet::schedule`]."] pub fn schedule( &self, - when: alias_types::schedule::When, - maybe_periodic: alias_types::schedule::MaybePeriodic, - priority: alias_types::schedule::Priority, - call: alias_types::schedule::Call, + when: types::schedule::When, + maybe_periodic: types::schedule::MaybePeriodic, + priority: types::schedule::Priority, + call: types::schedule::Call, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Scheduler", @@ -19371,8 +20197,8 @@ pub mod api { #[doc = "See [`Pallet::cancel`]."] pub fn cancel( &self, - when: alias_types::cancel::When, - index: alias_types::cancel::Index, + when: types::cancel::When, + index: types::cancel::Index, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Scheduler", @@ -19389,11 +20215,11 @@ pub mod api { #[doc = "See [`Pallet::schedule_named`]."] pub fn schedule_named( &self, - id: alias_types::schedule_named::Id, - when: alias_types::schedule_named::When, - maybe_periodic: alias_types::schedule_named::MaybePeriodic, - priority: alias_types::schedule_named::Priority, - call: alias_types::schedule_named::Call, + id: types::schedule_named::Id, + when: types::schedule_named::When, + maybe_periodic: types::schedule_named::MaybePeriodic, + priority: types::schedule_named::Priority, + call: types::schedule_named::Call, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Scheduler", @@ -19415,7 +20241,7 @@ pub mod api { #[doc = "See [`Pallet::cancel_named`]."] pub fn cancel_named( &self, - id: alias_types::cancel_named::Id, + id: types::cancel_named::Id, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Scheduler", @@ -19431,10 +20257,10 @@ pub mod api { #[doc = "See [`Pallet::schedule_after`]."] pub fn schedule_after( &self, - after: alias_types::schedule_after::After, - maybe_periodic: alias_types::schedule_after::MaybePeriodic, - priority: alias_types::schedule_after::Priority, - call: alias_types::schedule_after::Call, + after: types::schedule_after::After, + maybe_periodic: types::schedule_after::MaybePeriodic, + priority: types::schedule_after::Priority, + call: types::schedule_after::Call, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Scheduler", @@ -19455,11 +20281,11 @@ pub mod api { #[doc = "See [`Pallet::schedule_named_after`]."] pub fn schedule_named_after( &self, - id: alias_types::schedule_named_after::Id, - after: alias_types::schedule_named_after::After, - maybe_periodic: alias_types::schedule_named_after::MaybePeriodic, - priority: alias_types::schedule_named_after::Priority, - call: alias_types::schedule_named_after::Call, + id: types::schedule_named_after::Id, + after: types::schedule_named_after::After, + maybe_periodic: types::schedule_named_after::MaybePeriodic, + priority: types::schedule_named_after::Priority, + call: types::schedule_named_after::Call, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Scheduler", @@ -19496,8 +20322,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Scheduled some task."] pub struct Scheduled { - pub when: ::core::primitive::u32, - pub index: ::core::primitive::u32, + pub when: scheduled::When, + pub index: scheduled::Index, + } + pub mod scheduled { + use super::runtime_types; + pub type When = ::core::primitive::u32; + pub type Index = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for Scheduled { const PALLET: &'static str = "Scheduler"; @@ -19515,8 +20346,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Canceled some task."] pub struct Canceled { - pub when: ::core::primitive::u32, - pub index: ::core::primitive::u32, + pub when: canceled::When, + pub index: canceled::Index, + } + pub mod canceled { + use super::runtime_types; + pub type When = ::core::primitive::u32; + pub type Index = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for Canceled { const PALLET: &'static str = "Scheduler"; @@ -19534,9 +20370,16 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Dispatched some task."] pub struct Dispatched { - pub task: (::core::primitive::u32, ::core::primitive::u32), - pub id: ::core::option::Option<[::core::primitive::u8; 32usize]>, - pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + pub task: dispatched::Task, + pub id: dispatched::Id, + pub result: dispatched::Result, + } + pub mod dispatched { + use super::runtime_types; + pub type Task = (::core::primitive::u32, ::core::primitive::u32); + pub type Id = ::core::option::Option<[::core::primitive::u8; 32usize]>; + pub type Result = + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>; } impl ::subxt::events::StaticEvent for Dispatched { const PALLET: &'static str = "Scheduler"; @@ -19554,8 +20397,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The call for the provided hash was not found so the task has been aborted."] pub struct CallUnavailable { - pub task: (::core::primitive::u32, ::core::primitive::u32), - pub id: ::core::option::Option<[::core::primitive::u8; 32usize]>, + pub task: call_unavailable::Task, + pub id: call_unavailable::Id, + } + pub mod call_unavailable { + use super::runtime_types; + pub type Task = (::core::primitive::u32, ::core::primitive::u32); + pub type Id = ::core::option::Option<[::core::primitive::u8; 32usize]>; } impl ::subxt::events::StaticEvent for CallUnavailable { const PALLET: &'static str = "Scheduler"; @@ -19573,8 +20421,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The given task was unable to be renewed since the agenda is full at that block."] pub struct PeriodicFailed { - pub task: (::core::primitive::u32, ::core::primitive::u32), - pub id: ::core::option::Option<[::core::primitive::u8; 32usize]>, + pub task: periodic_failed::Task, + pub id: periodic_failed::Id, + } + pub mod periodic_failed { + use super::runtime_types; + pub type Task = (::core::primitive::u32, ::core::primitive::u32); + pub type Id = ::core::option::Option<[::core::primitive::u8; 32usize]>; } impl ::subxt::events::StaticEvent for PeriodicFailed { const PALLET: &'static str = "Scheduler"; @@ -19592,8 +20445,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The given task can never be executed since it is overweight."] pub struct PermanentlyOverweight { - pub task: (::core::primitive::u32, ::core::primitive::u32), - pub id: ::core::option::Option<[::core::primitive::u8; 32usize]>, + pub task: permanently_overweight::Task, + pub id: permanently_overweight::Id, + } + pub mod permanently_overweight { + use super::runtime_types; + pub type Task = (::core::primitive::u32, ::core::primitive::u32); + pub type Id = ::core::option::Option<[::core::primitive::u8; 32usize]>; } impl ::subxt::events::StaticEvent for PermanentlyOverweight { const PALLET: &'static str = "Scheduler"; @@ -19602,7 +20460,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod incomplete_since { use super::runtime_types; @@ -19636,7 +20494,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::incomplete_since::IncompleteSince, + types::incomplete_since::IncompleteSince, ::subxt::storage::address::Yes, (), (), @@ -19657,7 +20515,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::agenda::Agenda, + types::agenda::Agenda, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -19679,7 +20537,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::agenda::Agenda, + types::agenda::Agenda, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -19705,7 +20563,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::lookup::Lookup, + types::lookup::Lookup, (), (), ::subxt::storage::address::Yes, @@ -19730,7 +20588,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<[::core::primitive::u8; 32usize]>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::lookup::Lookup, + types::lookup::Lookup, ::subxt::storage::address::Yes, (), (), @@ -19803,73 +20661,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - pub mod proxy { - use super::runtime_types; - pub type Real = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type ForceProxyType = - ::core::option::Option; - pub type Call = runtime_types::rococo_runtime::RuntimeCall; - } - pub mod add_proxy { - use super::runtime_types; - pub type Delegate = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type ProxyType = runtime_types::rococo_runtime::ProxyType; - pub type Delay = ::core::primitive::u32; - } - pub mod remove_proxy { - use super::runtime_types; - pub type Delegate = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type ProxyType = runtime_types::rococo_runtime::ProxyType; - pub type Delay = ::core::primitive::u32; - } - pub mod remove_proxies { - use super::runtime_types; - } - pub mod create_pure { - use super::runtime_types; - pub type ProxyType = runtime_types::rococo_runtime::ProxyType; - pub type Delay = ::core::primitive::u32; - pub type Index = ::core::primitive::u16; - } - pub mod kill_pure { - use super::runtime_types; - pub type Spawner = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type ProxyType = runtime_types::rococo_runtime::ProxyType; - pub type Index = ::core::primitive::u16; - pub type Height = ::core::primitive::u32; - pub type ExtIndex = ::core::primitive::u32; - } - pub mod announce { - use super::runtime_types; - pub type Real = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type CallHash = ::subxt::utils::H256; - } - pub mod remove_announcement { - use super::runtime_types; - pub type Real = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type CallHash = ::subxt::utils::H256; - } - pub mod reject_announcement { - use super::runtime_types; - pub type Delegate = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type CallHash = ::subxt::utils::H256; - } - pub mod proxy_announced { - use super::runtime_types; - pub type Delegate = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Real = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type ForceProxyType = - ::core::option::Option; - pub type Call = runtime_types::rococo_runtime::RuntimeCall; - } - } pub mod types { use super::runtime_types; #[derive( @@ -19883,10 +20674,16 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Proxy { - pub real: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub force_proxy_type: - ::core::option::Option, - pub call: ::std::boxed::Box, + pub real: proxy::Real, + pub force_proxy_type: proxy::ForceProxyType, + pub call: ::std::boxed::Box, + } + pub mod proxy { + use super::runtime_types; + pub type Real = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type ForceProxyType = + ::core::option::Option; + pub type Call = runtime_types::rococo_runtime::RuntimeCall; } impl ::subxt::blocks::StaticExtrinsic for Proxy { const PALLET: &'static str = "Proxy"; @@ -19903,9 +20700,16 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AddProxy { - pub delegate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub proxy_type: runtime_types::rococo_runtime::ProxyType, - pub delay: ::core::primitive::u32, + pub delegate: add_proxy::Delegate, + pub proxy_type: add_proxy::ProxyType, + pub delay: add_proxy::Delay, + } + pub mod add_proxy { + use super::runtime_types; + pub type Delegate = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type ProxyType = runtime_types::rococo_runtime::ProxyType; + pub type Delay = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for AddProxy { const PALLET: &'static str = "Proxy"; @@ -19922,9 +20726,16 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RemoveProxy { - pub delegate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub proxy_type: runtime_types::rococo_runtime::ProxyType, - pub delay: ::core::primitive::u32, + pub delegate: remove_proxy::Delegate, + pub proxy_type: remove_proxy::ProxyType, + pub delay: remove_proxy::Delay, + } + pub mod remove_proxy { + use super::runtime_types; + pub type Delegate = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type ProxyType = runtime_types::rococo_runtime::ProxyType; + pub type Delay = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for RemoveProxy { const PALLET: &'static str = "Proxy"; @@ -19956,9 +20767,15 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CreatePure { - pub proxy_type: runtime_types::rococo_runtime::ProxyType, - pub delay: ::core::primitive::u32, - pub index: ::core::primitive::u16, + pub proxy_type: create_pure::ProxyType, + pub delay: create_pure::Delay, + pub index: create_pure::Index, + } + pub mod create_pure { + use super::runtime_types; + pub type ProxyType = runtime_types::rococo_runtime::ProxyType; + pub type Delay = ::core::primitive::u32; + pub type Index = ::core::primitive::u16; } impl ::subxt::blocks::StaticExtrinsic for CreatePure { const PALLET: &'static str = "Proxy"; @@ -19975,13 +20792,22 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct KillPure { - pub spawner: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub proxy_type: runtime_types::rococo_runtime::ProxyType, - pub index: ::core::primitive::u16, + pub spawner: kill_pure::Spawner, + pub proxy_type: kill_pure::ProxyType, + pub index: kill_pure::Index, #[codec(compact)] - pub height: ::core::primitive::u32, + pub height: kill_pure::Height, #[codec(compact)] - pub ext_index: ::core::primitive::u32, + pub ext_index: kill_pure::ExtIndex, + } + pub mod kill_pure { + use super::runtime_types; + pub type Spawner = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type ProxyType = runtime_types::rococo_runtime::ProxyType; + pub type Index = ::core::primitive::u16; + pub type Height = ::core::primitive::u32; + pub type ExtIndex = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for KillPure { const PALLET: &'static str = "Proxy"; @@ -19998,8 +20824,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Announce { - pub real: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub call_hash: ::subxt::utils::H256, + pub real: announce::Real, + pub call_hash: announce::CallHash, + } + pub mod announce { + use super::runtime_types; + pub type Real = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type CallHash = ::subxt::utils::H256; } impl ::subxt::blocks::StaticExtrinsic for Announce { const PALLET: &'static str = "Proxy"; @@ -20016,8 +20847,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RemoveAnnouncement { - pub real: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub call_hash: ::subxt::utils::H256, + pub real: remove_announcement::Real, + pub call_hash: remove_announcement::CallHash, + } + pub mod remove_announcement { + use super::runtime_types; + pub type Real = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type CallHash = ::subxt::utils::H256; } impl ::subxt::blocks::StaticExtrinsic for RemoveAnnouncement { const PALLET: &'static str = "Proxy"; @@ -20034,8 +20870,14 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RejectAnnouncement { - pub delegate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub call_hash: ::subxt::utils::H256, + pub delegate: reject_announcement::Delegate, + pub call_hash: reject_announcement::CallHash, + } + pub mod reject_announcement { + use super::runtime_types; + pub type Delegate = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type CallHash = ::subxt::utils::H256; } impl ::subxt::blocks::StaticExtrinsic for RejectAnnouncement { const PALLET: &'static str = "Proxy"; @@ -20052,11 +20894,19 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ProxyAnnounced { - pub delegate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub real: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub force_proxy_type: - ::core::option::Option, - pub call: ::std::boxed::Box, + pub delegate: proxy_announced::Delegate, + pub real: proxy_announced::Real, + pub force_proxy_type: proxy_announced::ForceProxyType, + pub call: ::std::boxed::Box, + } + pub mod proxy_announced { + use super::runtime_types; + pub type Delegate = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Real = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type ForceProxyType = + ::core::option::Option; + pub type Call = runtime_types::rococo_runtime::RuntimeCall; } impl ::subxt::blocks::StaticExtrinsic for ProxyAnnounced { const PALLET: &'static str = "Proxy"; @@ -20068,9 +20918,9 @@ pub mod api { #[doc = "See [`Pallet::proxy`]."] pub fn proxy( &self, - real: alias_types::proxy::Real, - force_proxy_type: alias_types::proxy::ForceProxyType, - call: alias_types::proxy::Call, + real: types::proxy::Real, + force_proxy_type: types::proxy::ForceProxyType, + call: types::proxy::Call, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Proxy", @@ -20091,9 +20941,9 @@ pub mod api { #[doc = "See [`Pallet::add_proxy`]."] pub fn add_proxy( &self, - delegate: alias_types::add_proxy::Delegate, - proxy_type: alias_types::add_proxy::ProxyType, - delay: alias_types::add_proxy::Delay, + delegate: types::add_proxy::Delegate, + proxy_type: types::add_proxy::ProxyType, + delay: types::add_proxy::Delay, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Proxy", @@ -20114,9 +20964,9 @@ pub mod api { #[doc = "See [`Pallet::remove_proxy`]."] pub fn remove_proxy( &self, - delegate: alias_types::remove_proxy::Delegate, - proxy_type: alias_types::remove_proxy::ProxyType, - delay: alias_types::remove_proxy::Delay, + delegate: types::remove_proxy::Delegate, + proxy_type: types::remove_proxy::ProxyType, + delay: types::remove_proxy::Delay, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Proxy", @@ -20150,9 +21000,9 @@ pub mod api { #[doc = "See [`Pallet::create_pure`]."] pub fn create_pure( &self, - proxy_type: alias_types::create_pure::ProxyType, - delay: alias_types::create_pure::Delay, - index: alias_types::create_pure::Index, + proxy_type: types::create_pure::ProxyType, + delay: types::create_pure::Delay, + index: types::create_pure::Index, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Proxy", @@ -20172,11 +21022,11 @@ pub mod api { #[doc = "See [`Pallet::kill_pure`]."] pub fn kill_pure( &self, - spawner: alias_types::kill_pure::Spawner, - proxy_type: alias_types::kill_pure::ProxyType, - index: alias_types::kill_pure::Index, - height: alias_types::kill_pure::Height, - ext_index: alias_types::kill_pure::ExtIndex, + spawner: types::kill_pure::Spawner, + proxy_type: types::kill_pure::ProxyType, + index: types::kill_pure::Index, + height: types::kill_pure::Height, + ext_index: types::kill_pure::ExtIndex, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Proxy", @@ -20198,8 +21048,8 @@ pub mod api { #[doc = "See [`Pallet::announce`]."] pub fn announce( &self, - real: alias_types::announce::Real, - call_hash: alias_types::announce::CallHash, + real: types::announce::Real, + call_hash: types::announce::CallHash, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Proxy", @@ -20216,8 +21066,8 @@ pub mod api { #[doc = "See [`Pallet::remove_announcement`]."] pub fn remove_announcement( &self, - real: alias_types::remove_announcement::Real, - call_hash: alias_types::remove_announcement::CallHash, + real: types::remove_announcement::Real, + call_hash: types::remove_announcement::CallHash, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Proxy", @@ -20233,8 +21083,8 @@ pub mod api { #[doc = "See [`Pallet::reject_announcement`]."] pub fn reject_announcement( &self, - delegate: alias_types::reject_announcement::Delegate, - call_hash: alias_types::reject_announcement::CallHash, + delegate: types::reject_announcement::Delegate, + call_hash: types::reject_announcement::CallHash, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Proxy", @@ -20253,10 +21103,10 @@ pub mod api { #[doc = "See [`Pallet::proxy_announced`]."] pub fn proxy_announced( &self, - delegate: alias_types::proxy_announced::Delegate, - real: alias_types::proxy_announced::Real, - force_proxy_type: alias_types::proxy_announced::ForceProxyType, - call: alias_types::proxy_announced::Call, + delegate: types::proxy_announced::Delegate, + real: types::proxy_announced::Real, + force_proxy_type: types::proxy_announced::ForceProxyType, + call: types::proxy_announced::Call, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Proxy", @@ -20292,7 +21142,12 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A proxy was executed correctly, with the given."] pub struct ProxyExecuted { - pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + pub result: proxy_executed::Result, + } + pub mod proxy_executed { + use super::runtime_types; + pub type Result = + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>; } impl ::subxt::events::StaticEvent for ProxyExecuted { const PALLET: &'static str = "Proxy"; @@ -20311,10 +21166,17 @@ pub mod api { #[doc = "A pure account has been created by new proxy with given"] #[doc = "disambiguation index and proxy type."] pub struct PureCreated { - pub pure: ::subxt::utils::AccountId32, - pub who: ::subxt::utils::AccountId32, - pub proxy_type: runtime_types::rococo_runtime::ProxyType, - pub disambiguation_index: ::core::primitive::u16, + pub pure: pure_created::Pure, + pub who: pure_created::Who, + pub proxy_type: pure_created::ProxyType, + pub disambiguation_index: pure_created::DisambiguationIndex, + } + pub mod pure_created { + use super::runtime_types; + pub type Pure = ::subxt::utils::AccountId32; + pub type Who = ::subxt::utils::AccountId32; + pub type ProxyType = runtime_types::rococo_runtime::ProxyType; + pub type DisambiguationIndex = ::core::primitive::u16; } impl ::subxt::events::StaticEvent for PureCreated { const PALLET: &'static str = "Proxy"; @@ -20332,9 +21194,15 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An announcement was placed to make a call in the future."] pub struct Announced { - pub real: ::subxt::utils::AccountId32, - pub proxy: ::subxt::utils::AccountId32, - pub call_hash: ::subxt::utils::H256, + pub real: announced::Real, + pub proxy: announced::Proxy, + pub call_hash: announced::CallHash, + } + pub mod announced { + use super::runtime_types; + pub type Real = ::subxt::utils::AccountId32; + pub type Proxy = ::subxt::utils::AccountId32; + pub type CallHash = ::subxt::utils::H256; } impl ::subxt::events::StaticEvent for Announced { const PALLET: &'static str = "Proxy"; @@ -20352,10 +21220,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A proxy was added."] pub struct ProxyAdded { - pub delegator: ::subxt::utils::AccountId32, - pub delegatee: ::subxt::utils::AccountId32, - pub proxy_type: runtime_types::rococo_runtime::ProxyType, - pub delay: ::core::primitive::u32, + pub delegator: proxy_added::Delegator, + pub delegatee: proxy_added::Delegatee, + pub proxy_type: proxy_added::ProxyType, + pub delay: proxy_added::Delay, + } + pub mod proxy_added { + use super::runtime_types; + pub type Delegator = ::subxt::utils::AccountId32; + pub type Delegatee = ::subxt::utils::AccountId32; + pub type ProxyType = runtime_types::rococo_runtime::ProxyType; + pub type Delay = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for ProxyAdded { const PALLET: &'static str = "Proxy"; @@ -20373,10 +21248,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A proxy was removed."] pub struct ProxyRemoved { - pub delegator: ::subxt::utils::AccountId32, - pub delegatee: ::subxt::utils::AccountId32, - pub proxy_type: runtime_types::rococo_runtime::ProxyType, - pub delay: ::core::primitive::u32, + pub delegator: proxy_removed::Delegator, + pub delegatee: proxy_removed::Delegatee, + pub proxy_type: proxy_removed::ProxyType, + pub delay: proxy_removed::Delay, + } + pub mod proxy_removed { + use super::runtime_types; + pub type Delegator = ::subxt::utils::AccountId32; + pub type Delegatee = ::subxt::utils::AccountId32; + pub type ProxyType = runtime_types::rococo_runtime::ProxyType; + pub type Delay = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for ProxyRemoved { const PALLET: &'static str = "Proxy"; @@ -20385,7 +21267,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod proxies { use super::runtime_types; @@ -20422,7 +21304,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::proxies::Proxies, + types::proxies::Proxies, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -20445,7 +21327,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::proxies::Proxies, + types::proxies::Proxies, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -20468,7 +21350,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::announcements::Announcements, + types::announcements::Announcements, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -20491,7 +21373,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::announcements::Announcements, + types::announcements::Announcements, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -20625,42 +21507,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - pub mod as_multi_threshold_1 { - use super::runtime_types; - pub type OtherSignatories = ::std::vec::Vec<::subxt::utils::AccountId32>; - pub type Call = runtime_types::rococo_runtime::RuntimeCall; - } - pub mod as_multi { - use super::runtime_types; - pub type Threshold = ::core::primitive::u16; - pub type OtherSignatories = ::std::vec::Vec<::subxt::utils::AccountId32>; - pub type MaybeTimepoint = ::core::option::Option< - runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, - >; - pub type Call = runtime_types::rococo_runtime::RuntimeCall; - pub type MaxWeight = runtime_types::sp_weights::weight_v2::Weight; - } - pub mod approve_as_multi { - use super::runtime_types; - pub type Threshold = ::core::primitive::u16; - pub type OtherSignatories = ::std::vec::Vec<::subxt::utils::AccountId32>; - pub type MaybeTimepoint = ::core::option::Option< - runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, - >; - pub type CallHash = [::core::primitive::u8; 32usize]; - pub type MaxWeight = runtime_types::sp_weights::weight_v2::Weight; - } - pub mod cancel_as_multi { - use super::runtime_types; - pub type Threshold = ::core::primitive::u16; - pub type OtherSignatories = ::std::vec::Vec<::subxt::utils::AccountId32>; - pub type Timepoint = - runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>; - pub type CallHash = [::core::primitive::u8; 32usize]; - } - } pub mod types { use super::runtime_types; #[derive( @@ -20674,8 +21520,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AsMultiThreshold1 { - pub other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, - pub call: ::std::boxed::Box, + pub other_signatories: as_multi_threshold_1::OtherSignatories, + pub call: ::std::boxed::Box, + } + pub mod as_multi_threshold_1 { + use super::runtime_types; + pub type OtherSignatories = ::std::vec::Vec<::subxt::utils::AccountId32>; + pub type Call = runtime_types::rococo_runtime::RuntimeCall; } impl ::subxt::blocks::StaticExtrinsic for AsMultiThreshold1 { const PALLET: &'static str = "Multisig"; @@ -20692,13 +21543,21 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AsMulti { - pub threshold: ::core::primitive::u16, - pub other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, - pub maybe_timepoint: ::core::option::Option< + pub threshold: as_multi::Threshold, + pub other_signatories: as_multi::OtherSignatories, + pub maybe_timepoint: as_multi::MaybeTimepoint, + pub call: ::std::boxed::Box, + pub max_weight: as_multi::MaxWeight, + } + pub mod as_multi { + use super::runtime_types; + pub type Threshold = ::core::primitive::u16; + pub type OtherSignatories = ::std::vec::Vec<::subxt::utils::AccountId32>; + pub type MaybeTimepoint = ::core::option::Option< runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, - >, - pub call: ::std::boxed::Box, - pub max_weight: runtime_types::sp_weights::weight_v2::Weight, + >; + pub type Call = runtime_types::rococo_runtime::RuntimeCall; + pub type MaxWeight = runtime_types::sp_weights::weight_v2::Weight; } impl ::subxt::blocks::StaticExtrinsic for AsMulti { const PALLET: &'static str = "Multisig"; @@ -20715,13 +21574,21 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ApproveAsMulti { - pub threshold: ::core::primitive::u16, - pub other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, - pub maybe_timepoint: ::core::option::Option< + pub threshold: approve_as_multi::Threshold, + pub other_signatories: approve_as_multi::OtherSignatories, + pub maybe_timepoint: approve_as_multi::MaybeTimepoint, + pub call_hash: approve_as_multi::CallHash, + pub max_weight: approve_as_multi::MaxWeight, + } + pub mod approve_as_multi { + use super::runtime_types; + pub type Threshold = ::core::primitive::u16; + pub type OtherSignatories = ::std::vec::Vec<::subxt::utils::AccountId32>; + pub type MaybeTimepoint = ::core::option::Option< runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, - >, - pub call_hash: [::core::primitive::u8; 32usize], - pub max_weight: runtime_types::sp_weights::weight_v2::Weight, + >; + pub type CallHash = [::core::primitive::u8; 32usize]; + pub type MaxWeight = runtime_types::sp_weights::weight_v2::Weight; } impl ::subxt::blocks::StaticExtrinsic for ApproveAsMulti { const PALLET: &'static str = "Multisig"; @@ -20738,11 +21605,18 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CancelAsMulti { - pub threshold: ::core::primitive::u16, - pub other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, - pub timepoint: - runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, - pub call_hash: [::core::primitive::u8; 32usize], + pub threshold: cancel_as_multi::Threshold, + pub other_signatories: cancel_as_multi::OtherSignatories, + pub timepoint: cancel_as_multi::Timepoint, + pub call_hash: cancel_as_multi::CallHash, + } + pub mod cancel_as_multi { + use super::runtime_types; + pub type Threshold = ::core::primitive::u16; + pub type OtherSignatories = ::std::vec::Vec<::subxt::utils::AccountId32>; + pub type Timepoint = + runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>; + pub type CallHash = [::core::primitive::u8; 32usize]; } impl ::subxt::blocks::StaticExtrinsic for CancelAsMulti { const PALLET: &'static str = "Multisig"; @@ -20754,8 +21628,8 @@ pub mod api { #[doc = "See [`Pallet::as_multi_threshold_1`]."] pub fn as_multi_threshold_1( &self, - other_signatories: alias_types::as_multi_threshold_1::OtherSignatories, - call: alias_types::as_multi_threshold_1::Call, + other_signatories: types::as_multi_threshold_1::OtherSignatories, + call: types::as_multi_threshold_1::Call, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Multisig", @@ -20775,11 +21649,11 @@ pub mod api { #[doc = "See [`Pallet::as_multi`]."] pub fn as_multi( &self, - threshold: alias_types::as_multi::Threshold, - other_signatories: alias_types::as_multi::OtherSignatories, - maybe_timepoint: alias_types::as_multi::MaybeTimepoint, - call: alias_types::as_multi::Call, - max_weight: alias_types::as_multi::MaxWeight, + threshold: types::as_multi::Threshold, + other_signatories: types::as_multi::OtherSignatories, + maybe_timepoint: types::as_multi::MaybeTimepoint, + call: types::as_multi::Call, + max_weight: types::as_multi::MaxWeight, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Multisig", @@ -20802,11 +21676,11 @@ pub mod api { #[doc = "See [`Pallet::approve_as_multi`]."] pub fn approve_as_multi( &self, - threshold: alias_types::approve_as_multi::Threshold, - other_signatories: alias_types::approve_as_multi::OtherSignatories, - maybe_timepoint: alias_types::approve_as_multi::MaybeTimepoint, - call_hash: alias_types::approve_as_multi::CallHash, - max_weight: alias_types::approve_as_multi::MaxWeight, + threshold: types::approve_as_multi::Threshold, + other_signatories: types::approve_as_multi::OtherSignatories, + maybe_timepoint: types::approve_as_multi::MaybeTimepoint, + call_hash: types::approve_as_multi::CallHash, + max_weight: types::approve_as_multi::MaxWeight, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Multisig", @@ -20828,10 +21702,10 @@ pub mod api { #[doc = "See [`Pallet::cancel_as_multi`]."] pub fn cancel_as_multi( &self, - threshold: alias_types::cancel_as_multi::Threshold, - other_signatories: alias_types::cancel_as_multi::OtherSignatories, - timepoint: alias_types::cancel_as_multi::Timepoint, - call_hash: alias_types::cancel_as_multi::CallHash, + threshold: types::cancel_as_multi::Threshold, + other_signatories: types::cancel_as_multi::OtherSignatories, + timepoint: types::cancel_as_multi::Timepoint, + call_hash: types::cancel_as_multi::CallHash, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Multisig", @@ -20867,9 +21741,15 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A new multisig operation has begun."] pub struct NewMultisig { - pub approving: ::subxt::utils::AccountId32, - pub multisig: ::subxt::utils::AccountId32, - pub call_hash: [::core::primitive::u8; 32usize], + pub approving: new_multisig::Approving, + pub multisig: new_multisig::Multisig, + pub call_hash: new_multisig::CallHash, + } + pub mod new_multisig { + use super::runtime_types; + pub type Approving = ::subxt::utils::AccountId32; + pub type Multisig = ::subxt::utils::AccountId32; + pub type CallHash = [::core::primitive::u8; 32usize]; } impl ::subxt::events::StaticEvent for NewMultisig { const PALLET: &'static str = "Multisig"; @@ -20887,10 +21767,18 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A multisig operation has been approved by someone."] pub struct MultisigApproval { - pub approving: ::subxt::utils::AccountId32, - pub timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, - pub multisig: ::subxt::utils::AccountId32, - pub call_hash: [::core::primitive::u8; 32usize], + pub approving: multisig_approval::Approving, + pub timepoint: multisig_approval::Timepoint, + pub multisig: multisig_approval::Multisig, + pub call_hash: multisig_approval::CallHash, + } + pub mod multisig_approval { + use super::runtime_types; + pub type Approving = ::subxt::utils::AccountId32; + pub type Timepoint = + runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>; + pub type Multisig = ::subxt::utils::AccountId32; + pub type CallHash = [::core::primitive::u8; 32usize]; } impl ::subxt::events::StaticEvent for MultisigApproval { const PALLET: &'static str = "Multisig"; @@ -20908,11 +21796,21 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A multisig operation has been executed."] pub struct MultisigExecuted { - pub approving: ::subxt::utils::AccountId32, - pub timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, - pub multisig: ::subxt::utils::AccountId32, - pub call_hash: [::core::primitive::u8; 32usize], - pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + pub approving: multisig_executed::Approving, + pub timepoint: multisig_executed::Timepoint, + pub multisig: multisig_executed::Multisig, + pub call_hash: multisig_executed::CallHash, + pub result: multisig_executed::Result, + } + pub mod multisig_executed { + use super::runtime_types; + pub type Approving = ::subxt::utils::AccountId32; + pub type Timepoint = + runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>; + pub type Multisig = ::subxt::utils::AccountId32; + pub type CallHash = [::core::primitive::u8; 32usize]; + pub type Result = + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>; } impl ::subxt::events::StaticEvent for MultisigExecuted { const PALLET: &'static str = "Multisig"; @@ -20930,10 +21828,18 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A multisig operation has been cancelled."] pub struct MultisigCancelled { - pub cancelling: ::subxt::utils::AccountId32, - pub timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, - pub multisig: ::subxt::utils::AccountId32, - pub call_hash: [::core::primitive::u8; 32usize], + pub cancelling: multisig_cancelled::Cancelling, + pub timepoint: multisig_cancelled::Timepoint, + pub multisig: multisig_cancelled::Multisig, + pub call_hash: multisig_cancelled::CallHash, + } + pub mod multisig_cancelled { + use super::runtime_types; + pub type Cancelling = ::subxt::utils::AccountId32; + pub type Timepoint = + runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>; + pub type Multisig = ::subxt::utils::AccountId32; + pub type CallHash = [::core::primitive::u8; 32usize]; } impl ::subxt::events::StaticEvent for MultisigCancelled { const PALLET: &'static str = "Multisig"; @@ -20942,7 +21848,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod multisigs { use super::runtime_types; @@ -20960,7 +21866,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::multisigs::Multisigs, + types::multisigs::Multisigs, (), (), ::subxt::storage::address::Yes, @@ -20982,7 +21888,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::multisigs::Multisigs, + types::multisigs::Multisigs, (), (), ::subxt::storage::address::Yes, @@ -21007,7 +21913,7 @@ pub mod api { _1: impl ::std::borrow::Borrow<[::core::primitive::u8; 32usize]>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::multisigs::Multisigs, + types::multisigs::Multisigs, ::subxt::storage::address::Yes, (), (), @@ -21094,29 +22000,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - pub mod note_preimage { - use super::runtime_types; - pub type Bytes = ::std::vec::Vec<::core::primitive::u8>; - } - pub mod unnote_preimage { - use super::runtime_types; - pub type Hash = ::subxt::utils::H256; - } - pub mod request_preimage { - use super::runtime_types; - pub type Hash = ::subxt::utils::H256; - } - pub mod unrequest_preimage { - use super::runtime_types; - pub type Hash = ::subxt::utils::H256; - } - pub mod ensure_updated { - use super::runtime_types; - pub type Hashes = ::std::vec::Vec<::subxt::utils::H256>; - } - } pub mod types { use super::runtime_types; #[derive( @@ -21130,7 +22013,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct NotePreimage { - pub bytes: ::std::vec::Vec<::core::primitive::u8>, + pub bytes: note_preimage::Bytes, + } + pub mod note_preimage { + use super::runtime_types; + pub type Bytes = ::std::vec::Vec<::core::primitive::u8>; } impl ::subxt::blocks::StaticExtrinsic for NotePreimage { const PALLET: &'static str = "Preimage"; @@ -21147,7 +22034,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UnnotePreimage { - pub hash: ::subxt::utils::H256, + pub hash: unnote_preimage::Hash, + } + pub mod unnote_preimage { + use super::runtime_types; + pub type Hash = ::subxt::utils::H256; } impl ::subxt::blocks::StaticExtrinsic for UnnotePreimage { const PALLET: &'static str = "Preimage"; @@ -21164,7 +22055,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RequestPreimage { - pub hash: ::subxt::utils::H256, + pub hash: request_preimage::Hash, + } + pub mod request_preimage { + use super::runtime_types; + pub type Hash = ::subxt::utils::H256; } impl ::subxt::blocks::StaticExtrinsic for RequestPreimage { const PALLET: &'static str = "Preimage"; @@ -21181,7 +22076,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UnrequestPreimage { - pub hash: ::subxt::utils::H256, + pub hash: unrequest_preimage::Hash, + } + pub mod unrequest_preimage { + use super::runtime_types; + pub type Hash = ::subxt::utils::H256; } impl ::subxt::blocks::StaticExtrinsic for UnrequestPreimage { const PALLET: &'static str = "Preimage"; @@ -21198,7 +22097,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct EnsureUpdated { - pub hashes: ::std::vec::Vec<::subxt::utils::H256>, + pub hashes: ensure_updated::Hashes, + } + pub mod ensure_updated { + use super::runtime_types; + pub type Hashes = ::std::vec::Vec<::subxt::utils::H256>; } impl ::subxt::blocks::StaticExtrinsic for EnsureUpdated { const PALLET: &'static str = "Preimage"; @@ -21210,7 +22113,7 @@ pub mod api { #[doc = "See [`Pallet::note_preimage`]."] pub fn note_preimage( &self, - bytes: alias_types::note_preimage::Bytes, + bytes: types::note_preimage::Bytes, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Preimage", @@ -21226,7 +22129,7 @@ pub mod api { #[doc = "See [`Pallet::unnote_preimage`]."] pub fn unnote_preimage( &self, - hash: alias_types::unnote_preimage::Hash, + hash: types::unnote_preimage::Hash, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Preimage", @@ -21243,7 +22146,7 @@ pub mod api { #[doc = "See [`Pallet::request_preimage`]."] pub fn request_preimage( &self, - hash: alias_types::request_preimage::Hash, + hash: types::request_preimage::Hash, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Preimage", @@ -21259,7 +22162,7 @@ pub mod api { #[doc = "See [`Pallet::unrequest_preimage`]."] pub fn unrequest_preimage( &self, - hash: alias_types::unrequest_preimage::Hash, + hash: types::unrequest_preimage::Hash, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Preimage", @@ -21276,7 +22179,7 @@ pub mod api { #[doc = "See [`Pallet::ensure_updated`]."] pub fn ensure_updated( &self, - hashes: alias_types::ensure_updated::Hashes, + hashes: types::ensure_updated::Hashes, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Preimage", @@ -21308,7 +22211,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A preimage has been noted."] pub struct Noted { - pub hash: ::subxt::utils::H256, + pub hash: noted::Hash, + } + pub mod noted { + use super::runtime_types; + pub type Hash = ::subxt::utils::H256; } impl ::subxt::events::StaticEvent for Noted { const PALLET: &'static str = "Preimage"; @@ -21326,7 +22233,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A preimage has been requested."] pub struct Requested { - pub hash: ::subxt::utils::H256, + pub hash: requested::Hash, + } + pub mod requested { + use super::runtime_types; + pub type Hash = ::subxt::utils::H256; } impl ::subxt::events::StaticEvent for Requested { const PALLET: &'static str = "Preimage"; @@ -21344,7 +22255,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A preimage has ben cleared."] pub struct Cleared { - pub hash: ::subxt::utils::H256, + pub hash: cleared::Hash, + } + pub mod cleared { + use super::runtime_types; + pub type Hash = ::subxt::utils::H256; } impl ::subxt::events::StaticEvent for Cleared { const PALLET: &'static str = "Preimage"; @@ -21353,7 +22268,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod status_for { use super::runtime_types; @@ -21384,7 +22299,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::status_for::StatusFor, + types::status_for::StatusFor, (), (), ::subxt::storage::address::Yes, @@ -21407,7 +22322,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::status_for::StatusFor, + types::status_for::StatusFor, ::subxt::storage::address::Yes, (), (), @@ -21431,7 +22346,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::request_status_for::RequestStatusFor, + types::request_status_for::RequestStatusFor, (), (), ::subxt::storage::address::Yes, @@ -21453,7 +22368,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::request_status_for::RequestStatusFor, + types::request_status_for::RequestStatusFor, ::subxt::storage::address::Yes, (), (), @@ -21475,7 +22390,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::preimage_for::PreimageFor, + types::preimage_for::PreimageFor, (), (), ::subxt::storage::address::Yes, @@ -21497,7 +22412,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::preimage_for::PreimageFor, + types::preimage_for::PreimageFor, (), (), ::subxt::storage::address::Yes, @@ -21522,7 +22437,7 @@ pub mod api { _1: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::preimage_for::PreimageFor, + types::preimage_for::PreimageFor, ::subxt::storage::address::Yes, (), (), @@ -21556,26 +22471,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - pub mod create { - use super::runtime_types; - pub type AssetKind = - runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset; - pub type Rate = runtime_types::sp_arithmetic::fixed_point::FixedU128; - } - pub mod update { - use super::runtime_types; - pub type AssetKind = - runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset; - pub type Rate = runtime_types::sp_arithmetic::fixed_point::FixedU128; - } - pub mod remove { - use super::runtime_types; - pub type AssetKind = - runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset; - } - } pub mod types { use super::runtime_types; #[derive( @@ -21589,10 +22484,14 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Create { - pub asset_kind: ::std::boxed::Box< - runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset, - >, - pub rate: runtime_types::sp_arithmetic::fixed_point::FixedU128, + pub asset_kind: ::std::boxed::Box, + pub rate: create::Rate, + } + pub mod create { + use super::runtime_types; + pub type AssetKind = + runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset; + pub type Rate = runtime_types::sp_arithmetic::fixed_point::FixedU128; } impl ::subxt::blocks::StaticExtrinsic for Create { const PALLET: &'static str = "AssetRate"; @@ -21609,10 +22508,14 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Update { - pub asset_kind: ::std::boxed::Box< - runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset, - >, - pub rate: runtime_types::sp_arithmetic::fixed_point::FixedU128, + pub asset_kind: ::std::boxed::Box, + pub rate: update::Rate, + } + pub mod update { + use super::runtime_types; + pub type AssetKind = + runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset; + pub type Rate = runtime_types::sp_arithmetic::fixed_point::FixedU128; } impl ::subxt::blocks::StaticExtrinsic for Update { const PALLET: &'static str = "AssetRate"; @@ -21629,9 +22532,12 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Remove { - pub asset_kind: ::std::boxed::Box< - runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset, - >, + pub asset_kind: ::std::boxed::Box, + } + pub mod remove { + use super::runtime_types; + pub type AssetKind = + runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset; } impl ::subxt::blocks::StaticExtrinsic for Remove { const PALLET: &'static str = "AssetRate"; @@ -21643,8 +22549,8 @@ pub mod api { #[doc = "See [`Pallet::create`]."] pub fn create( &self, - asset_kind: alias_types::create::AssetKind, - rate: alias_types::create::Rate, + asset_kind: types::create::AssetKind, + rate: types::create::Rate, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "AssetRate", @@ -21664,8 +22570,8 @@ pub mod api { #[doc = "See [`Pallet::update`]."] pub fn update( &self, - asset_kind: alias_types::update::AssetKind, - rate: alias_types::update::Rate, + asset_kind: types::update::AssetKind, + rate: types::update::Rate, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "AssetRate", @@ -21685,7 +22591,7 @@ pub mod api { #[doc = "See [`Pallet::remove`]."] pub fn remove( &self, - asset_kind: alias_types::remove::AssetKind, + asset_kind: types::remove::AssetKind, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "AssetRate", @@ -21718,9 +22624,14 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AssetRateCreated { - pub asset_kind: - runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset, - pub rate: runtime_types::sp_arithmetic::fixed_point::FixedU128, + pub asset_kind: asset_rate_created::AssetKind, + pub rate: asset_rate_created::Rate, + } + pub mod asset_rate_created { + use super::runtime_types; + pub type AssetKind = + runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset; + pub type Rate = runtime_types::sp_arithmetic::fixed_point::FixedU128; } impl ::subxt::events::StaticEvent for AssetRateCreated { const PALLET: &'static str = "AssetRate"; @@ -21737,8 +22648,12 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AssetRateRemoved { - pub asset_kind: - runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset, + pub asset_kind: asset_rate_removed::AssetKind, + } + pub mod asset_rate_removed { + use super::runtime_types; + pub type AssetKind = + runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset; } impl ::subxt::events::StaticEvent for AssetRateRemoved { const PALLET: &'static str = "AssetRate"; @@ -21755,10 +22670,16 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AssetRateUpdated { - pub asset_kind: - runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset, - pub old: runtime_types::sp_arithmetic::fixed_point::FixedU128, - pub new: runtime_types::sp_arithmetic::fixed_point::FixedU128, + pub asset_kind: asset_rate_updated::AssetKind, + pub old: asset_rate_updated::Old, + pub new: asset_rate_updated::New, + } + pub mod asset_rate_updated { + use super::runtime_types; + pub type AssetKind = + runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset; + pub type Old = runtime_types::sp_arithmetic::fixed_point::FixedU128; + pub type New = runtime_types::sp_arithmetic::fixed_point::FixedU128; } impl ::subxt::events::StaticEvent for AssetRateUpdated { const PALLET: &'static str = "AssetRate"; @@ -21767,7 +22688,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod conversion_rate_to_native { use super::runtime_types; @@ -21784,7 +22705,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::conversion_rate_to_native::ConversionRateToNative, + types::conversion_rate_to_native::ConversionRateToNative, (), (), ::subxt::storage::address::Yes, @@ -21810,7 +22731,7 @@ pub mod api { >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::conversion_rate_to_native::ConversionRateToNative, + types::conversion_rate_to_native::ConversionRateToNative, ::subxt::storage::address::Yes, (), (), @@ -21842,52 +22763,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - pub mod propose_bounty { - use super::runtime_types; - pub type Value = ::core::primitive::u128; - pub type Description = ::std::vec::Vec<::core::primitive::u8>; - } - pub mod approve_bounty { - use super::runtime_types; - pub type BountyId = ::core::primitive::u32; - } - pub mod propose_curator { - use super::runtime_types; - pub type BountyId = ::core::primitive::u32; - pub type Curator = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Fee = ::core::primitive::u128; - } - pub mod unassign_curator { - use super::runtime_types; - pub type BountyId = ::core::primitive::u32; - } - pub mod accept_curator { - use super::runtime_types; - pub type BountyId = ::core::primitive::u32; - } - pub mod award_bounty { - use super::runtime_types; - pub type BountyId = ::core::primitive::u32; - pub type Beneficiary = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - } - pub mod claim_bounty { - use super::runtime_types; - pub type BountyId = ::core::primitive::u32; - } - pub mod close_bounty { - use super::runtime_types; - pub type BountyId = ::core::primitive::u32; - } - pub mod extend_bounty_expiry { - use super::runtime_types; - pub type BountyId = ::core::primitive::u32; - pub type Remark = ::std::vec::Vec<::core::primitive::u8>; - } - } pub mod types { use super::runtime_types; #[derive( @@ -21902,8 +22777,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ProposeBounty { #[codec(compact)] - pub value: ::core::primitive::u128, - pub description: ::std::vec::Vec<::core::primitive::u8>, + pub value: propose_bounty::Value, + pub description: propose_bounty::Description, + } + pub mod propose_bounty { + use super::runtime_types; + pub type Value = ::core::primitive::u128; + pub type Description = ::std::vec::Vec<::core::primitive::u8>; } impl ::subxt::blocks::StaticExtrinsic for ProposeBounty { const PALLET: &'static str = "Bounties"; @@ -21921,7 +22801,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ApproveBounty { #[codec(compact)] - pub bounty_id: ::core::primitive::u32, + pub bounty_id: approve_bounty::BountyId, + } + pub mod approve_bounty { + use super::runtime_types; + pub type BountyId = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for ApproveBounty { const PALLET: &'static str = "Bounties"; @@ -21939,10 +22823,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ProposeCurator { #[codec(compact)] - pub bounty_id: ::core::primitive::u32, - pub curator: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub bounty_id: propose_curator::BountyId, + pub curator: propose_curator::Curator, #[codec(compact)] - pub fee: ::core::primitive::u128, + pub fee: propose_curator::Fee, + } + pub mod propose_curator { + use super::runtime_types; + pub type BountyId = ::core::primitive::u32; + pub type Curator = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Fee = ::core::primitive::u128; } impl ::subxt::blocks::StaticExtrinsic for ProposeCurator { const PALLET: &'static str = "Bounties"; @@ -21960,7 +22851,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UnassignCurator { #[codec(compact)] - pub bounty_id: ::core::primitive::u32, + pub bounty_id: unassign_curator::BountyId, + } + pub mod unassign_curator { + use super::runtime_types; + pub type BountyId = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for UnassignCurator { const PALLET: &'static str = "Bounties"; @@ -21978,7 +22873,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AcceptCurator { #[codec(compact)] - pub bounty_id: ::core::primitive::u32, + pub bounty_id: accept_curator::BountyId, + } + pub mod accept_curator { + use super::runtime_types; + pub type BountyId = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for AcceptCurator { const PALLET: &'static str = "Bounties"; @@ -21996,8 +22895,14 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AwardBounty { #[codec(compact)] - pub bounty_id: ::core::primitive::u32, - pub beneficiary: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub bounty_id: award_bounty::BountyId, + pub beneficiary: award_bounty::Beneficiary, + } + pub mod award_bounty { + use super::runtime_types; + pub type BountyId = ::core::primitive::u32; + pub type Beneficiary = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; } impl ::subxt::blocks::StaticExtrinsic for AwardBounty { const PALLET: &'static str = "Bounties"; @@ -22015,7 +22920,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ClaimBounty { #[codec(compact)] - pub bounty_id: ::core::primitive::u32, + pub bounty_id: claim_bounty::BountyId, + } + pub mod claim_bounty { + use super::runtime_types; + pub type BountyId = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for ClaimBounty { const PALLET: &'static str = "Bounties"; @@ -22033,7 +22942,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CloseBounty { #[codec(compact)] - pub bounty_id: ::core::primitive::u32, + pub bounty_id: close_bounty::BountyId, + } + pub mod close_bounty { + use super::runtime_types; + pub type BountyId = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for CloseBounty { const PALLET: &'static str = "Bounties"; @@ -22051,8 +22964,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ExtendBountyExpiry { #[codec(compact)] - pub bounty_id: ::core::primitive::u32, - pub remark: ::std::vec::Vec<::core::primitive::u8>, + pub bounty_id: extend_bounty_expiry::BountyId, + pub remark: extend_bounty_expiry::Remark, + } + pub mod extend_bounty_expiry { + use super::runtime_types; + pub type BountyId = ::core::primitive::u32; + pub type Remark = ::std::vec::Vec<::core::primitive::u8>; } impl ::subxt::blocks::StaticExtrinsic for ExtendBountyExpiry { const PALLET: &'static str = "Bounties"; @@ -22064,8 +22982,8 @@ pub mod api { #[doc = "See [`Pallet::propose_bounty`]."] pub fn propose_bounty( &self, - value: alias_types::propose_bounty::Value, - description: alias_types::propose_bounty::Description, + value: types::propose_bounty::Value, + description: types::propose_bounty::Description, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Bounties", @@ -22081,7 +22999,7 @@ pub mod api { #[doc = "See [`Pallet::approve_bounty`]."] pub fn approve_bounty( &self, - bounty_id: alias_types::approve_bounty::BountyId, + bounty_id: types::approve_bounty::BountyId, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Bounties", @@ -22098,9 +23016,9 @@ pub mod api { #[doc = "See [`Pallet::propose_curator`]."] pub fn propose_curator( &self, - bounty_id: alias_types::propose_curator::BountyId, - curator: alias_types::propose_curator::Curator, - fee: alias_types::propose_curator::Fee, + bounty_id: types::propose_curator::BountyId, + curator: types::propose_curator::Curator, + fee: types::propose_curator::Fee, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Bounties", @@ -22120,7 +23038,7 @@ pub mod api { #[doc = "See [`Pallet::unassign_curator`]."] pub fn unassign_curator( &self, - bounty_id: alias_types::unassign_curator::BountyId, + bounty_id: types::unassign_curator::BountyId, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Bounties", @@ -22137,7 +23055,7 @@ pub mod api { #[doc = "See [`Pallet::accept_curator`]."] pub fn accept_curator( &self, - bounty_id: alias_types::accept_curator::BountyId, + bounty_id: types::accept_curator::BountyId, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Bounties", @@ -22153,8 +23071,8 @@ pub mod api { #[doc = "See [`Pallet::award_bounty`]."] pub fn award_bounty( &self, - bounty_id: alias_types::award_bounty::BountyId, - beneficiary: alias_types::award_bounty::Beneficiary, + bounty_id: types::award_bounty::BountyId, + beneficiary: types::award_bounty::Beneficiary, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Bounties", @@ -22173,7 +23091,7 @@ pub mod api { #[doc = "See [`Pallet::claim_bounty`]."] pub fn claim_bounty( &self, - bounty_id: alias_types::claim_bounty::BountyId, + bounty_id: types::claim_bounty::BountyId, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Bounties", @@ -22190,7 +23108,7 @@ pub mod api { #[doc = "See [`Pallet::close_bounty`]."] pub fn close_bounty( &self, - bounty_id: alias_types::close_bounty::BountyId, + bounty_id: types::close_bounty::BountyId, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Bounties", @@ -22207,8 +23125,8 @@ pub mod api { #[doc = "See [`Pallet::extend_bounty_expiry`]."] pub fn extend_bounty_expiry( &self, - bounty_id: alias_types::extend_bounty_expiry::BountyId, - remark: alias_types::extend_bounty_expiry::Remark, + bounty_id: types::extend_bounty_expiry::BountyId, + remark: types::extend_bounty_expiry::Remark, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Bounties", @@ -22241,7 +23159,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "New bounty proposal."] pub struct BountyProposed { - pub index: ::core::primitive::u32, + pub index: bounty_proposed::Index, + } + pub mod bounty_proposed { + use super::runtime_types; + pub type Index = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for BountyProposed { const PALLET: &'static str = "Bounties"; @@ -22259,8 +23181,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A bounty proposal was rejected; funds were slashed."] pub struct BountyRejected { - pub index: ::core::primitive::u32, - pub bond: ::core::primitive::u128, + pub index: bounty_rejected::Index, + pub bond: bounty_rejected::Bond, + } + pub mod bounty_rejected { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Bond = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for BountyRejected { const PALLET: &'static str = "Bounties"; @@ -22279,7 +23206,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A bounty proposal is funded and became active."] pub struct BountyBecameActive { - pub index: ::core::primitive::u32, + pub index: bounty_became_active::Index, + } + pub mod bounty_became_active { + use super::runtime_types; + pub type Index = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for BountyBecameActive { const PALLET: &'static str = "Bounties"; @@ -22297,8 +23228,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A bounty is awarded to a beneficiary."] pub struct BountyAwarded { - pub index: ::core::primitive::u32, - pub beneficiary: ::subxt::utils::AccountId32, + pub index: bounty_awarded::Index, + pub beneficiary: bounty_awarded::Beneficiary, + } + pub mod bounty_awarded { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Beneficiary = ::subxt::utils::AccountId32; } impl ::subxt::events::StaticEvent for BountyAwarded { const PALLET: &'static str = "Bounties"; @@ -22316,9 +23252,15 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A bounty is claimed by beneficiary."] pub struct BountyClaimed { - pub index: ::core::primitive::u32, - pub payout: ::core::primitive::u128, - pub beneficiary: ::subxt::utils::AccountId32, + pub index: bounty_claimed::Index, + pub payout: bounty_claimed::Payout, + pub beneficiary: bounty_claimed::Beneficiary, + } + pub mod bounty_claimed { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Payout = ::core::primitive::u128; + pub type Beneficiary = ::subxt::utils::AccountId32; } impl ::subxt::events::StaticEvent for BountyClaimed { const PALLET: &'static str = "Bounties"; @@ -22337,7 +23279,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A bounty is cancelled."] pub struct BountyCanceled { - pub index: ::core::primitive::u32, + pub index: bounty_canceled::Index, + } + pub mod bounty_canceled { + use super::runtime_types; + pub type Index = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for BountyCanceled { const PALLET: &'static str = "Bounties"; @@ -22356,7 +23302,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A bounty expiry is extended."] pub struct BountyExtended { - pub index: ::core::primitive::u32, + pub index: bounty_extended::Index, + } + pub mod bounty_extended { + use super::runtime_types; + pub type Index = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for BountyExtended { const PALLET: &'static str = "Bounties"; @@ -22375,7 +23325,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A bounty is approved."] pub struct BountyApproved { - pub index: ::core::primitive::u32, + pub index: bounty_approved::Index, + } + pub mod bounty_approved { + use super::runtime_types; + pub type Index = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for BountyApproved { const PALLET: &'static str = "Bounties"; @@ -22393,8 +23347,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A bounty curator is proposed."] pub struct CuratorProposed { - pub bounty_id: ::core::primitive::u32, - pub curator: ::subxt::utils::AccountId32, + pub bounty_id: curator_proposed::BountyId, + pub curator: curator_proposed::Curator, + } + pub mod curator_proposed { + use super::runtime_types; + pub type BountyId = ::core::primitive::u32; + pub type Curator = ::subxt::utils::AccountId32; } impl ::subxt::events::StaticEvent for CuratorProposed { const PALLET: &'static str = "Bounties"; @@ -22413,7 +23372,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A bounty curator is unassigned."] pub struct CuratorUnassigned { - pub bounty_id: ::core::primitive::u32, + pub bounty_id: curator_unassigned::BountyId, + } + pub mod curator_unassigned { + use super::runtime_types; + pub type BountyId = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for CuratorUnassigned { const PALLET: &'static str = "Bounties"; @@ -22431,8 +23394,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A bounty curator is accepted."] pub struct CuratorAccepted { - pub bounty_id: ::core::primitive::u32, - pub curator: ::subxt::utils::AccountId32, + pub bounty_id: curator_accepted::BountyId, + pub curator: curator_accepted::Curator, + } + pub mod curator_accepted { + use super::runtime_types; + pub type BountyId = ::core::primitive::u32; + pub type Curator = ::subxt::utils::AccountId32; } impl ::subxt::events::StaticEvent for CuratorAccepted { const PALLET: &'static str = "Bounties"; @@ -22441,7 +23409,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod bounty_count { use super::runtime_types; @@ -22477,7 +23445,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::bounty_count::BountyCount, + types::bounty_count::BountyCount, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -22499,7 +23467,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::bounties::Bounties, + types::bounties::Bounties, (), (), ::subxt::storage::address::Yes, @@ -22522,7 +23490,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::bounties::Bounties, + types::bounties::Bounties, ::subxt::storage::address::Yes, (), (), @@ -22546,7 +23514,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::bounty_descriptions::BountyDescriptions, + types::bounty_descriptions::BountyDescriptions, (), (), ::subxt::storage::address::Yes, @@ -22568,7 +23536,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::bounty_descriptions::BountyDescriptions, + types::bounty_descriptions::BountyDescriptions, ::subxt::storage::address::Yes, (), (), @@ -22591,7 +23559,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::bounty_approvals::BountyApprovals, + types::bounty_approvals::BountyApprovals, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -22766,50 +23734,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - pub mod add_child_bounty { - use super::runtime_types; - pub type ParentBountyId = ::core::primitive::u32; - pub type Value = ::core::primitive::u128; - pub type Description = ::std::vec::Vec<::core::primitive::u8>; - } - pub mod propose_curator { - use super::runtime_types; - pub type ParentBountyId = ::core::primitive::u32; - pub type ChildBountyId = ::core::primitive::u32; - pub type Curator = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Fee = ::core::primitive::u128; - } - pub mod accept_curator { - use super::runtime_types; - pub type ParentBountyId = ::core::primitive::u32; - pub type ChildBountyId = ::core::primitive::u32; - } - pub mod unassign_curator { - use super::runtime_types; - pub type ParentBountyId = ::core::primitive::u32; - pub type ChildBountyId = ::core::primitive::u32; - } - pub mod award_child_bounty { - use super::runtime_types; - pub type ParentBountyId = ::core::primitive::u32; - pub type ChildBountyId = ::core::primitive::u32; - pub type Beneficiary = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - } - pub mod claim_child_bounty { - use super::runtime_types; - pub type ParentBountyId = ::core::primitive::u32; - pub type ChildBountyId = ::core::primitive::u32; - } - pub mod close_child_bounty { - use super::runtime_types; - pub type ParentBountyId = ::core::primitive::u32; - pub type ChildBountyId = ::core::primitive::u32; - } - } pub mod types { use super::runtime_types; #[derive( @@ -22824,10 +23748,16 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AddChildBounty { #[codec(compact)] - pub parent_bounty_id: ::core::primitive::u32, + pub parent_bounty_id: add_child_bounty::ParentBountyId, #[codec(compact)] - pub value: ::core::primitive::u128, - pub description: ::std::vec::Vec<::core::primitive::u8>, + pub value: add_child_bounty::Value, + pub description: add_child_bounty::Description, + } + pub mod add_child_bounty { + use super::runtime_types; + pub type ParentBountyId = ::core::primitive::u32; + pub type Value = ::core::primitive::u128; + pub type Description = ::std::vec::Vec<::core::primitive::u8>; } impl ::subxt::blocks::StaticExtrinsic for AddChildBounty { const PALLET: &'static str = "ChildBounties"; @@ -22845,12 +23775,20 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ProposeCurator { #[codec(compact)] - pub parent_bounty_id: ::core::primitive::u32, + pub parent_bounty_id: propose_curator::ParentBountyId, #[codec(compact)] - pub child_bounty_id: ::core::primitive::u32, - pub curator: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub child_bounty_id: propose_curator::ChildBountyId, + pub curator: propose_curator::Curator, #[codec(compact)] - pub fee: ::core::primitive::u128, + pub fee: propose_curator::Fee, + } + pub mod propose_curator { + use super::runtime_types; + pub type ParentBountyId = ::core::primitive::u32; + pub type ChildBountyId = ::core::primitive::u32; + pub type Curator = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Fee = ::core::primitive::u128; } impl ::subxt::blocks::StaticExtrinsic for ProposeCurator { const PALLET: &'static str = "ChildBounties"; @@ -22868,9 +23806,14 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AcceptCurator { #[codec(compact)] - pub parent_bounty_id: ::core::primitive::u32, + pub parent_bounty_id: accept_curator::ParentBountyId, #[codec(compact)] - pub child_bounty_id: ::core::primitive::u32, + pub child_bounty_id: accept_curator::ChildBountyId, + } + pub mod accept_curator { + use super::runtime_types; + pub type ParentBountyId = ::core::primitive::u32; + pub type ChildBountyId = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for AcceptCurator { const PALLET: &'static str = "ChildBounties"; @@ -22888,9 +23831,14 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UnassignCurator { #[codec(compact)] - pub parent_bounty_id: ::core::primitive::u32, + pub parent_bounty_id: unassign_curator::ParentBountyId, #[codec(compact)] - pub child_bounty_id: ::core::primitive::u32, + pub child_bounty_id: unassign_curator::ChildBountyId, + } + pub mod unassign_curator { + use super::runtime_types; + pub type ParentBountyId = ::core::primitive::u32; + pub type ChildBountyId = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for UnassignCurator { const PALLET: &'static str = "ChildBounties"; @@ -22908,10 +23856,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AwardChildBounty { #[codec(compact)] - pub parent_bounty_id: ::core::primitive::u32, + pub parent_bounty_id: award_child_bounty::ParentBountyId, #[codec(compact)] - pub child_bounty_id: ::core::primitive::u32, - pub beneficiary: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub child_bounty_id: award_child_bounty::ChildBountyId, + pub beneficiary: award_child_bounty::Beneficiary, + } + pub mod award_child_bounty { + use super::runtime_types; + pub type ParentBountyId = ::core::primitive::u32; + pub type ChildBountyId = ::core::primitive::u32; + pub type Beneficiary = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; } impl ::subxt::blocks::StaticExtrinsic for AwardChildBounty { const PALLET: &'static str = "ChildBounties"; @@ -22929,9 +23884,14 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ClaimChildBounty { #[codec(compact)] - pub parent_bounty_id: ::core::primitive::u32, + pub parent_bounty_id: claim_child_bounty::ParentBountyId, #[codec(compact)] - pub child_bounty_id: ::core::primitive::u32, + pub child_bounty_id: claim_child_bounty::ChildBountyId, + } + pub mod claim_child_bounty { + use super::runtime_types; + pub type ParentBountyId = ::core::primitive::u32; + pub type ChildBountyId = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for ClaimChildBounty { const PALLET: &'static str = "ChildBounties"; @@ -22949,9 +23909,14 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CloseChildBounty { #[codec(compact)] - pub parent_bounty_id: ::core::primitive::u32, + pub parent_bounty_id: close_child_bounty::ParentBountyId, #[codec(compact)] - pub child_bounty_id: ::core::primitive::u32, + pub child_bounty_id: close_child_bounty::ChildBountyId, + } + pub mod close_child_bounty { + use super::runtime_types; + pub type ParentBountyId = ::core::primitive::u32; + pub type ChildBountyId = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for CloseChildBounty { const PALLET: &'static str = "ChildBounties"; @@ -22963,9 +23928,9 @@ pub mod api { #[doc = "See [`Pallet::add_child_bounty`]."] pub fn add_child_bounty( &self, - parent_bounty_id: alias_types::add_child_bounty::ParentBountyId, - value: alias_types::add_child_bounty::Value, - description: alias_types::add_child_bounty::Description, + parent_bounty_id: types::add_child_bounty::ParentBountyId, + value: types::add_child_bounty::Value, + description: types::add_child_bounty::Description, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ChildBounties", @@ -22986,10 +23951,10 @@ pub mod api { #[doc = "See [`Pallet::propose_curator`]."] pub fn propose_curator( &self, - parent_bounty_id: alias_types::propose_curator::ParentBountyId, - child_bounty_id: alias_types::propose_curator::ChildBountyId, - curator: alias_types::propose_curator::Curator, - fee: alias_types::propose_curator::Fee, + parent_bounty_id: types::propose_curator::ParentBountyId, + child_bounty_id: types::propose_curator::ChildBountyId, + curator: types::propose_curator::Curator, + fee: types::propose_curator::Fee, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ChildBounties", @@ -23010,8 +23975,8 @@ pub mod api { #[doc = "See [`Pallet::accept_curator`]."] pub fn accept_curator( &self, - parent_bounty_id: alias_types::accept_curator::ParentBountyId, - child_bounty_id: alias_types::accept_curator::ChildBountyId, + parent_bounty_id: types::accept_curator::ParentBountyId, + child_bounty_id: types::accept_curator::ChildBountyId, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ChildBounties", @@ -23031,8 +23996,8 @@ pub mod api { #[doc = "See [`Pallet::unassign_curator`]."] pub fn unassign_curator( &self, - parent_bounty_id: alias_types::unassign_curator::ParentBountyId, - child_bounty_id: alias_types::unassign_curator::ChildBountyId, + parent_bounty_id: types::unassign_curator::ParentBountyId, + child_bounty_id: types::unassign_curator::ChildBountyId, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ChildBounties", @@ -23052,9 +24017,9 @@ pub mod api { #[doc = "See [`Pallet::award_child_bounty`]."] pub fn award_child_bounty( &self, - parent_bounty_id: alias_types::award_child_bounty::ParentBountyId, - child_bounty_id: alias_types::award_child_bounty::ChildBountyId, - beneficiary: alias_types::award_child_bounty::Beneficiary, + parent_bounty_id: types::award_child_bounty::ParentBountyId, + child_bounty_id: types::award_child_bounty::ChildBountyId, + beneficiary: types::award_child_bounty::Beneficiary, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ChildBounties", @@ -23074,8 +24039,8 @@ pub mod api { #[doc = "See [`Pallet::claim_child_bounty`]."] pub fn claim_child_bounty( &self, - parent_bounty_id: alias_types::claim_child_bounty::ParentBountyId, - child_bounty_id: alias_types::claim_child_bounty::ChildBountyId, + parent_bounty_id: types::claim_child_bounty::ParentBountyId, + child_bounty_id: types::claim_child_bounty::ChildBountyId, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ChildBounties", @@ -23094,8 +24059,8 @@ pub mod api { #[doc = "See [`Pallet::close_child_bounty`]."] pub fn close_child_bounty( &self, - parent_bounty_id: alias_types::close_child_bounty::ParentBountyId, - child_bounty_id: alias_types::close_child_bounty::ChildBountyId, + parent_bounty_id: types::close_child_bounty::ParentBountyId, + child_bounty_id: types::close_child_bounty::ChildBountyId, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ChildBounties", @@ -23129,8 +24094,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A child-bounty is added."] pub struct Added { - pub index: ::core::primitive::u32, - pub child_index: ::core::primitive::u32, + pub index: added::Index, + pub child_index: added::ChildIndex, + } + pub mod added { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type ChildIndex = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for Added { const PALLET: &'static str = "ChildBounties"; @@ -23148,9 +24118,15 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A child-bounty is awarded to a beneficiary."] pub struct Awarded { - pub index: ::core::primitive::u32, - pub child_index: ::core::primitive::u32, - pub beneficiary: ::subxt::utils::AccountId32, + pub index: awarded::Index, + pub child_index: awarded::ChildIndex, + pub beneficiary: awarded::Beneficiary, + } + pub mod awarded { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type ChildIndex = ::core::primitive::u32; + pub type Beneficiary = ::subxt::utils::AccountId32; } impl ::subxt::events::StaticEvent for Awarded { const PALLET: &'static str = "ChildBounties"; @@ -23168,10 +24144,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A child-bounty is claimed by beneficiary."] pub struct Claimed { - pub index: ::core::primitive::u32, - pub child_index: ::core::primitive::u32, - pub payout: ::core::primitive::u128, - pub beneficiary: ::subxt::utils::AccountId32, + pub index: claimed::Index, + pub child_index: claimed::ChildIndex, + pub payout: claimed::Payout, + pub beneficiary: claimed::Beneficiary, + } + pub mod claimed { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type ChildIndex = ::core::primitive::u32; + pub type Payout = ::core::primitive::u128; + pub type Beneficiary = ::subxt::utils::AccountId32; } impl ::subxt::events::StaticEvent for Claimed { const PALLET: &'static str = "ChildBounties"; @@ -23189,8 +24172,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A child-bounty is cancelled."] pub struct Canceled { - pub index: ::core::primitive::u32, - pub child_index: ::core::primitive::u32, + pub index: canceled::Index, + pub child_index: canceled::ChildIndex, + } + pub mod canceled { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type ChildIndex = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for Canceled { const PALLET: &'static str = "ChildBounties"; @@ -23199,7 +24187,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod child_bounty_count { use super::runtime_types; @@ -23236,7 +24224,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::child_bounty_count::ChildBountyCount, + types::child_bounty_count::ChildBountyCount, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -23258,7 +24246,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::parent_child_bounties::ParentChildBounties, + types::parent_child_bounties::ParentChildBounties, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -23281,7 +24269,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::parent_child_bounties::ParentChildBounties, + types::parent_child_bounties::ParentChildBounties, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -23304,7 +24292,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::child_bounties::ChildBounties, + types::child_bounties::ChildBounties, (), (), ::subxt::storage::address::Yes, @@ -23327,7 +24315,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::child_bounties::ChildBounties, + types::child_bounties::ChildBounties, (), (), ::subxt::storage::address::Yes, @@ -23353,7 +24341,7 @@ pub mod api { _1: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::child_bounties::ChildBounties, + types::child_bounties::ChildBounties, ::subxt::storage::address::Yes, (), (), @@ -23378,7 +24366,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::child_bounty_descriptions::ChildBountyDescriptions, + types::child_bounty_descriptions::ChildBountyDescriptions, (), (), ::subxt::storage::address::Yes, @@ -23400,7 +24388,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::child_bounty_descriptions::ChildBountyDescriptions, + types::child_bounty_descriptions::ChildBountyDescriptions, ::subxt::storage::address::Yes, (), (), @@ -23423,7 +24411,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::children_curator_fees::ChildrenCuratorFees, + types::children_curator_fees::ChildrenCuratorFees, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -23445,7 +24433,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::children_curator_fees::ChildrenCuratorFees, + types::children_curator_fees::ChildrenCuratorFees, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -23512,41 +24500,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - pub mod place_bid { - use super::runtime_types; - pub type Amount = ::core::primitive::u128; - pub type Duration = ::core::primitive::u32; - } - pub mod retract_bid { - use super::runtime_types; - pub type Amount = ::core::primitive::u128; - pub type Duration = ::core::primitive::u32; - } - pub mod fund_deficit { - use super::runtime_types; - } - pub mod thaw_private { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - pub type MaybeProportion = ::core::option::Option< - runtime_types::sp_arithmetic::per_things::Perquintill, - >; - } - pub mod thaw_communal { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - } - pub mod communify { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - } - pub mod privatize { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - } - } pub mod types { use super::runtime_types; #[derive( @@ -23561,8 +24514,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PlaceBid { #[codec(compact)] - pub amount: ::core::primitive::u128, - pub duration: ::core::primitive::u32, + pub amount: place_bid::Amount, + pub duration: place_bid::Duration, + } + pub mod place_bid { + use super::runtime_types; + pub type Amount = ::core::primitive::u128; + pub type Duration = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for PlaceBid { const PALLET: &'static str = "Nis"; @@ -23580,8 +24538,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RetractBid { #[codec(compact)] - pub amount: ::core::primitive::u128, - pub duration: ::core::primitive::u32, + pub amount: retract_bid::Amount, + pub duration: retract_bid::Duration, + } + pub mod retract_bid { + use super::runtime_types; + pub type Amount = ::core::primitive::u128; + pub type Duration = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for RetractBid { const PALLET: &'static str = "Nis"; @@ -23614,10 +24577,15 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ThawPrivate { #[codec(compact)] - pub index: ::core::primitive::u32, - pub maybe_proportion: ::core::option::Option< + pub index: thaw_private::Index, + pub maybe_proportion: thaw_private::MaybeProportion, + } + pub mod thaw_private { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type MaybeProportion = ::core::option::Option< runtime_types::sp_arithmetic::per_things::Perquintill, - >, + >; } impl ::subxt::blocks::StaticExtrinsic for ThawPrivate { const PALLET: &'static str = "Nis"; @@ -23635,7 +24603,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ThawCommunal { #[codec(compact)] - pub index: ::core::primitive::u32, + pub index: thaw_communal::Index, + } + pub mod thaw_communal { + use super::runtime_types; + pub type Index = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for ThawCommunal { const PALLET: &'static str = "Nis"; @@ -23653,7 +24625,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Communify { #[codec(compact)] - pub index: ::core::primitive::u32, + pub index: communify::Index, + } + pub mod communify { + use super::runtime_types; + pub type Index = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for Communify { const PALLET: &'static str = "Nis"; @@ -23671,7 +24647,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Privatize { #[codec(compact)] - pub index: ::core::primitive::u32, + pub index: privatize::Index, + } + pub mod privatize { + use super::runtime_types; + pub type Index = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for Privatize { const PALLET: &'static str = "Nis"; @@ -23683,8 +24663,8 @@ pub mod api { #[doc = "See [`Pallet::place_bid`]."] pub fn place_bid( &self, - amount: alias_types::place_bid::Amount, - duration: alias_types::place_bid::Duration, + amount: types::place_bid::Amount, + duration: types::place_bid::Duration, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Nis", @@ -23701,8 +24681,8 @@ pub mod api { #[doc = "See [`Pallet::retract_bid`]."] pub fn retract_bid( &self, - amount: alias_types::retract_bid::Amount, - duration: alias_types::retract_bid::Duration, + amount: types::retract_bid::Amount, + duration: types::retract_bid::Duration, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Nis", @@ -23732,8 +24712,8 @@ pub mod api { #[doc = "See [`Pallet::thaw_private`]."] pub fn thaw_private( &self, - index: alias_types::thaw_private::Index, - maybe_proportion: alias_types::thaw_private::MaybeProportion, + index: types::thaw_private::Index, + maybe_proportion: types::thaw_private::MaybeProportion, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Nis", @@ -23752,7 +24732,7 @@ pub mod api { #[doc = "See [`Pallet::thaw_communal`]."] pub fn thaw_communal( &self, - index: alias_types::thaw_communal::Index, + index: types::thaw_communal::Index, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Nis", @@ -23769,7 +24749,7 @@ pub mod api { #[doc = "See [`Pallet::communify`]."] pub fn communify( &self, - index: alias_types::communify::Index, + index: types::communify::Index, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Nis", @@ -23786,7 +24766,7 @@ pub mod api { #[doc = "See [`Pallet::privatize`]."] pub fn privatize( &self, - index: alias_types::privatize::Index, + index: types::privatize::Index, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Nis", @@ -23818,9 +24798,15 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A bid was successfully placed."] pub struct BidPlaced { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - pub duration: ::core::primitive::u32, + pub who: bid_placed::Who, + pub amount: bid_placed::Amount, + pub duration: bid_placed::Duration, + } + pub mod bid_placed { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; + pub type Duration = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for BidPlaced { const PALLET: &'static str = "Nis"; @@ -23838,9 +24824,15 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A bid was successfully removed (before being accepted)."] pub struct BidRetracted { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - pub duration: ::core::primitive::u32, + pub who: bid_retracted::Who, + pub amount: bid_retracted::Amount, + pub duration: bid_retracted::Duration, + } + pub mod bid_retracted { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; + pub type Duration = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for BidRetracted { const PALLET: &'static str = "Nis"; @@ -23858,9 +24850,15 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A bid was dropped from a queue because of another, more substantial, bid was present."] pub struct BidDropped { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - pub duration: ::core::primitive::u32, + pub who: bid_dropped::Who, + pub amount: bid_dropped::Amount, + pub duration: bid_dropped::Duration, + } + pub mod bid_dropped { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; + pub type Duration = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for BidDropped { const PALLET: &'static str = "Nis"; @@ -23878,11 +24876,19 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A bid was accepted. The balance may not be released until expiry."] pub struct Issued { - pub index: ::core::primitive::u32, - pub expiry: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - pub proportion: runtime_types::sp_arithmetic::per_things::Perquintill, - pub amount: ::core::primitive::u128, + pub index: issued::Index, + pub expiry: issued::Expiry, + pub who: issued::Who, + pub proportion: issued::Proportion, + pub amount: issued::Amount, + } + pub mod issued { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Expiry = ::core::primitive::u32; + pub type Who = ::subxt::utils::AccountId32; + pub type Proportion = runtime_types::sp_arithmetic::per_things::Perquintill; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Issued { const PALLET: &'static str = "Nis"; @@ -23900,11 +24906,19 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An receipt has been (at least partially) thawed."] pub struct Thawed { - pub index: ::core::primitive::u32, - pub who: ::subxt::utils::AccountId32, - pub proportion: runtime_types::sp_arithmetic::per_things::Perquintill, - pub amount: ::core::primitive::u128, - pub dropped: ::core::primitive::bool, + pub index: thawed::Index, + pub who: thawed::Who, + pub proportion: thawed::Proportion, + pub amount: thawed::Amount, + pub dropped: thawed::Dropped, + } + pub mod thawed { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Who = ::subxt::utils::AccountId32; + pub type Proportion = runtime_types::sp_arithmetic::per_things::Perquintill; + pub type Amount = ::core::primitive::u128; + pub type Dropped = ::core::primitive::bool; } impl ::subxt::events::StaticEvent for Thawed { const PALLET: &'static str = "Nis"; @@ -23923,7 +24937,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An automatic funding of the deficit was made."] pub struct Funded { - pub deficit: ::core::primitive::u128, + pub deficit: funded::Deficit, + } + pub mod funded { + use super::runtime_types; + pub type Deficit = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Funded { const PALLET: &'static str = "Nis"; @@ -23941,9 +24959,15 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A receipt was transfered."] pub struct Transferred { - pub from: ::subxt::utils::AccountId32, - pub to: ::subxt::utils::AccountId32, - pub index: ::core::primitive::u32, + pub from: transferred::From, + pub to: transferred::To, + pub index: transferred::Index, + } + pub mod transferred { + use super::runtime_types; + pub type From = ::subxt::utils::AccountId32; + pub type To = ::subxt::utils::AccountId32; + pub type Index = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for Transferred { const PALLET: &'static str = "Nis"; @@ -23952,7 +24976,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod queue_totals { use super::runtime_types; @@ -23998,7 +25022,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::queue_totals::QueueTotals, + types::queue_totals::QueueTotals, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -24019,7 +25043,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::queues::Queues, + types::queues::Queues, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -24042,7 +25066,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::queues::Queues, + types::queues::Queues, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -24066,7 +25090,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::summary::Summary, + types::summary::Summary, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -24088,7 +25112,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::receipts::Receipts, + types::receipts::Receipts, (), (), ::subxt::storage::address::Yes, @@ -24110,7 +25134,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::receipts::Receipts, + types::receipts::Receipts, ::subxt::storage::address::Yes, (), (), @@ -24310,44 +25334,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - pub mod transfer_allow_death { - use super::runtime_types; - pub type Dest = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Value = ::core::primitive::u128; - } - pub mod force_transfer { - use super::runtime_types; - pub type Source = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Dest = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Value = ::core::primitive::u128; - } - pub mod transfer_keep_alive { - use super::runtime_types; - pub type Dest = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Value = ::core::primitive::u128; - } - pub mod transfer_all { - use super::runtime_types; - pub type Dest = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type KeepAlive = ::core::primitive::bool; - } - pub mod force_unreserve { - use super::runtime_types; - pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Amount = ::core::primitive::u128; - } - pub mod upgrade_accounts { - use super::runtime_types; - pub type Who = ::std::vec::Vec<::subxt::utils::AccountId32>; - } - pub mod force_set_balance { - use super::runtime_types; - pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type NewFree = ::core::primitive::u128; - } - } pub mod types { use super::runtime_types; #[derive( @@ -24361,9 +25347,14 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct TransferAllowDeath { - pub dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub dest: transfer_allow_death::Dest, #[codec(compact)] - pub value: ::core::primitive::u128, + pub value: transfer_allow_death::Value, + } + pub mod transfer_allow_death { + use super::runtime_types; + pub type Dest = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Value = ::core::primitive::u128; } impl ::subxt::blocks::StaticExtrinsic for TransferAllowDeath { const PALLET: &'static str = "NisCounterpartBalances"; @@ -24380,10 +25371,16 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceTransfer { - pub source: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub source: force_transfer::Source, + pub dest: force_transfer::Dest, #[codec(compact)] - pub value: ::core::primitive::u128, + pub value: force_transfer::Value, + } + pub mod force_transfer { + use super::runtime_types; + pub type Source = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Dest = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Value = ::core::primitive::u128; } impl ::subxt::blocks::StaticExtrinsic for ForceTransfer { const PALLET: &'static str = "NisCounterpartBalances"; @@ -24400,9 +25397,14 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct TransferKeepAlive { - pub dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub dest: transfer_keep_alive::Dest, #[codec(compact)] - pub value: ::core::primitive::u128, + pub value: transfer_keep_alive::Value, + } + pub mod transfer_keep_alive { + use super::runtime_types; + pub type Dest = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Value = ::core::primitive::u128; } impl ::subxt::blocks::StaticExtrinsic for TransferKeepAlive { const PALLET: &'static str = "NisCounterpartBalances"; @@ -24419,8 +25421,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct TransferAll { - pub dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub keep_alive: ::core::primitive::bool, + pub dest: transfer_all::Dest, + pub keep_alive: transfer_all::KeepAlive, + } + pub mod transfer_all { + use super::runtime_types; + pub type Dest = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type KeepAlive = ::core::primitive::bool; } impl ::subxt::blocks::StaticExtrinsic for TransferAll { const PALLET: &'static str = "NisCounterpartBalances"; @@ -24437,8 +25444,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceUnreserve { - pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub amount: ::core::primitive::u128, + pub who: force_unreserve::Who, + pub amount: force_unreserve::Amount, + } + pub mod force_unreserve { + use super::runtime_types; + pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Amount = ::core::primitive::u128; } impl ::subxt::blocks::StaticExtrinsic for ForceUnreserve { const PALLET: &'static str = "NisCounterpartBalances"; @@ -24455,7 +25467,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UpgradeAccounts { - pub who: ::std::vec::Vec<::subxt::utils::AccountId32>, + pub who: upgrade_accounts::Who, + } + pub mod upgrade_accounts { + use super::runtime_types; + pub type Who = ::std::vec::Vec<::subxt::utils::AccountId32>; } impl ::subxt::blocks::StaticExtrinsic for UpgradeAccounts { const PALLET: &'static str = "NisCounterpartBalances"; @@ -24472,9 +25488,14 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceSetBalance { - pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub who: force_set_balance::Who, #[codec(compact)] - pub new_free: ::core::primitive::u128, + pub new_free: force_set_balance::NewFree, + } + pub mod force_set_balance { + use super::runtime_types; + pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type NewFree = ::core::primitive::u128; } impl ::subxt::blocks::StaticExtrinsic for ForceSetBalance { const PALLET: &'static str = "NisCounterpartBalances"; @@ -24486,8 +25507,8 @@ pub mod api { #[doc = "See [`Pallet::transfer_allow_death`]."] pub fn transfer_allow_death( &self, - dest: alias_types::transfer_allow_death::Dest, - value: alias_types::transfer_allow_death::Value, + dest: types::transfer_allow_death::Dest, + value: types::transfer_allow_death::Value, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NisCounterpartBalances", @@ -24504,9 +25525,9 @@ pub mod api { #[doc = "See [`Pallet::force_transfer`]."] pub fn force_transfer( &self, - source: alias_types::force_transfer::Source, - dest: alias_types::force_transfer::Dest, - value: alias_types::force_transfer::Value, + source: types::force_transfer::Source, + dest: types::force_transfer::Dest, + value: types::force_transfer::Value, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NisCounterpartBalances", @@ -24526,8 +25547,8 @@ pub mod api { #[doc = "See [`Pallet::transfer_keep_alive`]."] pub fn transfer_keep_alive( &self, - dest: alias_types::transfer_keep_alive::Dest, - value: alias_types::transfer_keep_alive::Value, + dest: types::transfer_keep_alive::Dest, + value: types::transfer_keep_alive::Value, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NisCounterpartBalances", @@ -24543,8 +25564,8 @@ pub mod api { #[doc = "See [`Pallet::transfer_all`]."] pub fn transfer_all( &self, - dest: alias_types::transfer_all::Dest, - keep_alive: alias_types::transfer_all::KeepAlive, + dest: types::transfer_all::Dest, + keep_alive: types::transfer_all::KeepAlive, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NisCounterpartBalances", @@ -24560,8 +25581,8 @@ pub mod api { #[doc = "See [`Pallet::force_unreserve`]."] pub fn force_unreserve( &self, - who: alias_types::force_unreserve::Who, - amount: alias_types::force_unreserve::Amount, + who: types::force_unreserve::Who, + amount: types::force_unreserve::Amount, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NisCounterpartBalances", @@ -24578,7 +25599,7 @@ pub mod api { #[doc = "See [`Pallet::upgrade_accounts`]."] pub fn upgrade_accounts( &self, - who: alias_types::upgrade_accounts::Who, + who: types::upgrade_accounts::Who, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NisCounterpartBalances", @@ -24594,8 +25615,8 @@ pub mod api { #[doc = "See [`Pallet::force_set_balance`]."] pub fn force_set_balance( &self, - who: alias_types::force_set_balance::Who, - new_free: alias_types::force_set_balance::NewFree, + who: types::force_set_balance::Who, + new_free: types::force_set_balance::NewFree, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NisCounterpartBalances", @@ -24626,8 +25647,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An account was created with some free balance."] pub struct Endowed { - pub account: ::subxt::utils::AccountId32, - pub free_balance: ::core::primitive::u128, + pub account: endowed::Account, + pub free_balance: endowed::FreeBalance, + } + pub mod endowed { + use super::runtime_types; + pub type Account = ::subxt::utils::AccountId32; + pub type FreeBalance = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Endowed { const PALLET: &'static str = "NisCounterpartBalances"; @@ -24646,8 +25672,13 @@ pub mod api { #[doc = "An account was removed whose balance was non-zero but below ExistentialDeposit,"] #[doc = "resulting in an outright loss."] pub struct DustLost { - pub account: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, + pub account: dust_lost::Account, + pub amount: dust_lost::Amount, + } + pub mod dust_lost { + use super::runtime_types; + pub type Account = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for DustLost { const PALLET: &'static str = "NisCounterpartBalances"; @@ -24665,9 +25696,15 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Transfer succeeded."] pub struct Transfer { - pub from: ::subxt::utils::AccountId32, - pub to: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, + pub from: transfer::From, + pub to: transfer::To, + pub amount: transfer::Amount, + } + pub mod transfer { + use super::runtime_types; + pub type From = ::subxt::utils::AccountId32; + pub type To = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Transfer { const PALLET: &'static str = "NisCounterpartBalances"; @@ -24685,8 +25722,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A balance was set by root."] pub struct BalanceSet { - pub who: ::subxt::utils::AccountId32, - pub free: ::core::primitive::u128, + pub who: balance_set::Who, + pub free: balance_set::Free, + } + pub mod balance_set { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Free = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for BalanceSet { const PALLET: &'static str = "NisCounterpartBalances"; @@ -24704,8 +25746,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some balance was reserved (moved from free to reserved)."] pub struct Reserved { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, + pub who: reserved::Who, + pub amount: reserved::Amount, + } + pub mod reserved { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Reserved { const PALLET: &'static str = "NisCounterpartBalances"; @@ -24723,8 +25770,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some balance was unreserved (moved from reserved to free)."] pub struct Unreserved { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, + pub who: unreserved::Who, + pub amount: unreserved::Amount, + } + pub mod unreserved { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Unreserved { const PALLET: &'static str = "NisCounterpartBalances"; @@ -24743,11 +25795,18 @@ pub mod api { #[doc = "Some balance was moved from the reserve of the first account to the second account."] #[doc = "Final argument indicates the destination balance type."] pub struct ReserveRepatriated { - pub from: ::subxt::utils::AccountId32, - pub to: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - pub destination_status: - runtime_types::frame_support::traits::tokens::misc::BalanceStatus, + pub from: reserve_repatriated::From, + pub to: reserve_repatriated::To, + pub amount: reserve_repatriated::Amount, + pub destination_status: reserve_repatriated::DestinationStatus, + } + pub mod reserve_repatriated { + use super::runtime_types; + pub type From = ::subxt::utils::AccountId32; + pub type To = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; + pub type DestinationStatus = + runtime_types::frame_support::traits::tokens::misc::BalanceStatus; } impl ::subxt::events::StaticEvent for ReserveRepatriated { const PALLET: &'static str = "NisCounterpartBalances"; @@ -24765,8 +25824,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some amount was deposited (e.g. for transaction fees)."] pub struct Deposit { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, + pub who: deposit::Who, + pub amount: deposit::Amount, + } + pub mod deposit { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Deposit { const PALLET: &'static str = "NisCounterpartBalances"; @@ -24784,8 +25848,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some amount was withdrawn from the account (e.g. for transaction fees)."] pub struct Withdraw { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, + pub who: withdraw::Who, + pub amount: withdraw::Amount, + } + pub mod withdraw { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Withdraw { const PALLET: &'static str = "NisCounterpartBalances"; @@ -24803,8 +25872,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some amount was removed from the account (e.g. for misbehavior)."] pub struct Slashed { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, + pub who: slashed::Who, + pub amount: slashed::Amount, + } + pub mod slashed { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Slashed { const PALLET: &'static str = "NisCounterpartBalances"; @@ -24822,8 +25896,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some amount was minted into an account."] pub struct Minted { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, + pub who: minted::Who, + pub amount: minted::Amount, + } + pub mod minted { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Minted { const PALLET: &'static str = "NisCounterpartBalances"; @@ -24841,8 +25920,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some amount was burned from an account."] pub struct Burned { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, + pub who: burned::Who, + pub amount: burned::Amount, + } + pub mod burned { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Burned { const PALLET: &'static str = "NisCounterpartBalances"; @@ -24860,8 +25944,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some amount was suspended from an account (it can be restored later)."] pub struct Suspended { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, + pub who: suspended::Who, + pub amount: suspended::Amount, + } + pub mod suspended { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Suspended { const PALLET: &'static str = "NisCounterpartBalances"; @@ -24879,8 +25968,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some amount was restored into an account."] pub struct Restored { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, + pub who: restored::Who, + pub amount: restored::Amount, + } + pub mod restored { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Restored { const PALLET: &'static str = "NisCounterpartBalances"; @@ -24898,7 +25992,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An account was upgraded."] pub struct Upgraded { - pub who: ::subxt::utils::AccountId32, + pub who: upgraded::Who, + } + pub mod upgraded { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; } impl ::subxt::events::StaticEvent for Upgraded { const PALLET: &'static str = "NisCounterpartBalances"; @@ -24917,7 +26015,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Total issuance was increased by `amount`, creating a credit to be balanced."] pub struct Issued { - pub amount: ::core::primitive::u128, + pub amount: issued::Amount, + } + pub mod issued { + use super::runtime_types; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Issued { const PALLET: &'static str = "NisCounterpartBalances"; @@ -24936,7 +26038,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Total issuance was decreased by `amount`, creating a debt to be balanced."] pub struct Rescinded { - pub amount: ::core::primitive::u128, + pub amount: rescinded::Amount, + } + pub mod rescinded { + use super::runtime_types; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Rescinded { const PALLET: &'static str = "NisCounterpartBalances"; @@ -24954,8 +26060,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some balance was locked."] pub struct Locked { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, + pub who: locked::Who, + pub amount: locked::Amount, + } + pub mod locked { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Locked { const PALLET: &'static str = "NisCounterpartBalances"; @@ -24973,8 +26084,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some balance was unlocked."] pub struct Unlocked { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, + pub who: unlocked::Who, + pub amount: unlocked::Amount, + } + pub mod unlocked { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Unlocked { const PALLET: &'static str = "NisCounterpartBalances"; @@ -24992,8 +26108,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some balance was frozen."] pub struct Frozen { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, + pub who: frozen::Who, + pub amount: frozen::Amount, + } + pub mod frozen { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Frozen { const PALLET: &'static str = "NisCounterpartBalances"; @@ -25011,8 +26132,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some balance was thawed."] pub struct Thawed { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, + pub who: thawed::Who, + pub amount: thawed::Amount, + } + pub mod thawed { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Thawed { const PALLET: &'static str = "NisCounterpartBalances"; @@ -25021,7 +26147,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod total_issuance { use super::runtime_types; @@ -25080,7 +26206,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::total_issuance::TotalIssuance, + types::total_issuance::TotalIssuance, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -25102,7 +26228,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::inactive_issuance::InactiveIssuance, + types::inactive_issuance::InactiveIssuance, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -25146,7 +26272,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::account::Account, + types::account::Account, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -25191,7 +26317,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::account::Account, + types::account::Account, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -25215,7 +26341,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::locks::Locks, + types::locks::Locks, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -25238,7 +26364,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::locks::Locks, + types::locks::Locks, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -25261,7 +26387,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::reserves::Reserves, + types::reserves::Reserves, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -25283,7 +26409,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::reserves::Reserves, + types::reserves::Reserves, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -25306,7 +26432,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::holds::Holds, + types::holds::Holds, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -25329,7 +26455,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::holds::Holds, + types::holds::Holds, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -25353,7 +26479,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::freezes::Freezes, + types::freezes::Freezes, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -25375,7 +26501,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::freezes::Freezes, + types::freezes::Freezes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -25491,191 +26617,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - pub mod set_validation_upgrade_cooldown { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - pub mod set_validation_upgrade_delay { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - pub mod set_code_retention_period { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - pub mod set_max_code_size { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - pub mod set_max_pov_size { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - pub mod set_max_head_data_size { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - pub mod set_on_demand_cores { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - pub mod set_on_demand_retries { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - pub mod set_group_rotation_frequency { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - pub mod set_paras_availability_period { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - pub mod set_scheduling_lookahead { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - pub mod set_max_validators_per_core { - use super::runtime_types; - pub type New = ::core::option::Option<::core::primitive::u32>; - } - pub mod set_max_validators { - use super::runtime_types; - pub type New = ::core::option::Option<::core::primitive::u32>; - } - pub mod set_dispute_period { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - pub mod set_dispute_post_conclusion_acceptance_period { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - pub mod set_no_show_slots { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - pub mod set_n_delay_tranches { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - pub mod set_zeroth_delay_tranche_width { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - pub mod set_needed_approvals { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - pub mod set_relay_vrf_modulo_samples { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - pub mod set_max_upward_queue_count { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - pub mod set_max_upward_queue_size { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - pub mod set_max_downward_message_size { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - pub mod set_max_upward_message_size { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - pub mod set_max_upward_message_num_per_candidate { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - pub mod set_hrmp_open_request_ttl { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - pub mod set_hrmp_sender_deposit { - use super::runtime_types; - pub type New = ::core::primitive::u128; - } - pub mod set_hrmp_recipient_deposit { - use super::runtime_types; - pub type New = ::core::primitive::u128; - } - pub mod set_hrmp_channel_max_capacity { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - pub mod set_hrmp_channel_max_total_size { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - pub mod set_hrmp_max_parachain_inbound_channels { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - pub mod set_hrmp_channel_max_message_size { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - pub mod set_hrmp_max_parachain_outbound_channels { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - pub mod set_hrmp_max_message_num_per_candidate { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - pub mod set_pvf_voting_ttl { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - pub mod set_minimum_validation_upgrade_delay { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - pub mod set_bypass_consistency_check { - use super::runtime_types; - pub type New = ::core::primitive::bool; - } - pub mod set_async_backing_params { - use super::runtime_types; - pub type New = - runtime_types::polkadot_primitives::v6::async_backing::AsyncBackingParams; - } - pub mod set_executor_params { - use super::runtime_types; - pub type New = - runtime_types::polkadot_primitives::v6::executor_params::ExecutorParams; - } - pub mod set_on_demand_base_fee { - use super::runtime_types; - pub type New = ::core::primitive::u128; - } - pub mod set_on_demand_fee_variability { - use super::runtime_types; - pub type New = runtime_types::sp_arithmetic::per_things::Perbill; - } - pub mod set_on_demand_queue_max_size { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - pub mod set_on_demand_target_queue_utilization { - use super::runtime_types; - pub type New = runtime_types::sp_arithmetic::per_things::Perbill; - } - pub mod set_on_demand_ttl { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - pub mod set_minimum_backing_votes { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - } pub mod types { use super::runtime_types; #[derive( @@ -25690,7 +26631,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetValidationUpgradeCooldown { - pub new: ::core::primitive::u32, + pub new: set_validation_upgrade_cooldown::New, + } + pub mod set_validation_upgrade_cooldown { + use super::runtime_types; + pub type New = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for SetValidationUpgradeCooldown { const PALLET: &'static str = "Configuration"; @@ -25708,7 +26653,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetValidationUpgradeDelay { - pub new: ::core::primitive::u32, + pub new: set_validation_upgrade_delay::New, + } + pub mod set_validation_upgrade_delay { + use super::runtime_types; + pub type New = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for SetValidationUpgradeDelay { const PALLET: &'static str = "Configuration"; @@ -25726,7 +26675,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetCodeRetentionPeriod { - pub new: ::core::primitive::u32, + pub new: set_code_retention_period::New, + } + pub mod set_code_retention_period { + use super::runtime_types; + pub type New = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for SetCodeRetentionPeriod { const PALLET: &'static str = "Configuration"; @@ -25744,7 +26697,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetMaxCodeSize { - pub new: ::core::primitive::u32, + pub new: set_max_code_size::New, + } + pub mod set_max_code_size { + use super::runtime_types; + pub type New = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for SetMaxCodeSize { const PALLET: &'static str = "Configuration"; @@ -25762,7 +26719,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetMaxPovSize { - pub new: ::core::primitive::u32, + pub new: set_max_pov_size::New, + } + pub mod set_max_pov_size { + use super::runtime_types; + pub type New = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for SetMaxPovSize { const PALLET: &'static str = "Configuration"; @@ -25780,7 +26741,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetMaxHeadDataSize { - pub new: ::core::primitive::u32, + pub new: set_max_head_data_size::New, + } + pub mod set_max_head_data_size { + use super::runtime_types; + pub type New = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for SetMaxHeadDataSize { const PALLET: &'static str = "Configuration"; @@ -25798,7 +26763,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetOnDemandCores { - pub new: ::core::primitive::u32, + pub new: set_on_demand_cores::New, + } + pub mod set_on_demand_cores { + use super::runtime_types; + pub type New = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for SetOnDemandCores { const PALLET: &'static str = "Configuration"; @@ -25816,7 +26785,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetOnDemandRetries { - pub new: ::core::primitive::u32, + pub new: set_on_demand_retries::New, + } + pub mod set_on_demand_retries { + use super::runtime_types; + pub type New = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for SetOnDemandRetries { const PALLET: &'static str = "Configuration"; @@ -25834,7 +26807,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetGroupRotationFrequency { - pub new: ::core::primitive::u32, + pub new: set_group_rotation_frequency::New, + } + pub mod set_group_rotation_frequency { + use super::runtime_types; + pub type New = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for SetGroupRotationFrequency { const PALLET: &'static str = "Configuration"; @@ -25852,7 +26829,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetParasAvailabilityPeriod { - pub new: ::core::primitive::u32, + pub new: set_paras_availability_period::New, + } + pub mod set_paras_availability_period { + use super::runtime_types; + pub type New = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for SetParasAvailabilityPeriod { const PALLET: &'static str = "Configuration"; @@ -25870,7 +26851,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetSchedulingLookahead { - pub new: ::core::primitive::u32, + pub new: set_scheduling_lookahead::New, + } + pub mod set_scheduling_lookahead { + use super::runtime_types; + pub type New = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for SetSchedulingLookahead { const PALLET: &'static str = "Configuration"; @@ -25887,7 +26872,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetMaxValidatorsPerCore { - pub new: ::core::option::Option<::core::primitive::u32>, + pub new: set_max_validators_per_core::New, + } + pub mod set_max_validators_per_core { + use super::runtime_types; + pub type New = ::core::option::Option<::core::primitive::u32>; } impl ::subxt::blocks::StaticExtrinsic for SetMaxValidatorsPerCore { const PALLET: &'static str = "Configuration"; @@ -25904,7 +26893,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetMaxValidators { - pub new: ::core::option::Option<::core::primitive::u32>, + pub new: set_max_validators::New, + } + pub mod set_max_validators { + use super::runtime_types; + pub type New = ::core::option::Option<::core::primitive::u32>; } impl ::subxt::blocks::StaticExtrinsic for SetMaxValidators { const PALLET: &'static str = "Configuration"; @@ -25922,7 +26915,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetDisputePeriod { - pub new: ::core::primitive::u32, + pub new: set_dispute_period::New, + } + pub mod set_dispute_period { + use super::runtime_types; + pub type New = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for SetDisputePeriod { const PALLET: &'static str = "Configuration"; @@ -25940,7 +26937,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetDisputePostConclusionAcceptancePeriod { - pub new: ::core::primitive::u32, + pub new: set_dispute_post_conclusion_acceptance_period::New, + } + pub mod set_dispute_post_conclusion_acceptance_period { + use super::runtime_types; + pub type New = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for SetDisputePostConclusionAcceptancePeriod { const PALLET: &'static str = "Configuration"; @@ -25958,7 +26959,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetNoShowSlots { - pub new: ::core::primitive::u32, + pub new: set_no_show_slots::New, + } + pub mod set_no_show_slots { + use super::runtime_types; + pub type New = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for SetNoShowSlots { const PALLET: &'static str = "Configuration"; @@ -25976,7 +26981,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetNDelayTranches { - pub new: ::core::primitive::u32, + pub new: set_n_delay_tranches::New, + } + pub mod set_n_delay_tranches { + use super::runtime_types; + pub type New = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for SetNDelayTranches { const PALLET: &'static str = "Configuration"; @@ -25994,7 +27003,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetZerothDelayTrancheWidth { - pub new: ::core::primitive::u32, + pub new: set_zeroth_delay_tranche_width::New, + } + pub mod set_zeroth_delay_tranche_width { + use super::runtime_types; + pub type New = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for SetZerothDelayTrancheWidth { const PALLET: &'static str = "Configuration"; @@ -26012,7 +27025,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetNeededApprovals { - pub new: ::core::primitive::u32, + pub new: set_needed_approvals::New, + } + pub mod set_needed_approvals { + use super::runtime_types; + pub type New = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for SetNeededApprovals { const PALLET: &'static str = "Configuration"; @@ -26030,7 +27047,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetRelayVrfModuloSamples { - pub new: ::core::primitive::u32, + pub new: set_relay_vrf_modulo_samples::New, + } + pub mod set_relay_vrf_modulo_samples { + use super::runtime_types; + pub type New = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for SetRelayVrfModuloSamples { const PALLET: &'static str = "Configuration"; @@ -26048,7 +27069,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetMaxUpwardQueueCount { - pub new: ::core::primitive::u32, + pub new: set_max_upward_queue_count::New, + } + pub mod set_max_upward_queue_count { + use super::runtime_types; + pub type New = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for SetMaxUpwardQueueCount { const PALLET: &'static str = "Configuration"; @@ -26066,7 +27091,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetMaxUpwardQueueSize { - pub new: ::core::primitive::u32, + pub new: set_max_upward_queue_size::New, + } + pub mod set_max_upward_queue_size { + use super::runtime_types; + pub type New = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for SetMaxUpwardQueueSize { const PALLET: &'static str = "Configuration"; @@ -26084,7 +27113,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetMaxDownwardMessageSize { - pub new: ::core::primitive::u32, + pub new: set_max_downward_message_size::New, + } + pub mod set_max_downward_message_size { + use super::runtime_types; + pub type New = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for SetMaxDownwardMessageSize { const PALLET: &'static str = "Configuration"; @@ -26102,7 +27135,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetMaxUpwardMessageSize { - pub new: ::core::primitive::u32, + pub new: set_max_upward_message_size::New, + } + pub mod set_max_upward_message_size { + use super::runtime_types; + pub type New = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for SetMaxUpwardMessageSize { const PALLET: &'static str = "Configuration"; @@ -26120,7 +27157,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetMaxUpwardMessageNumPerCandidate { - pub new: ::core::primitive::u32, + pub new: set_max_upward_message_num_per_candidate::New, + } + pub mod set_max_upward_message_num_per_candidate { + use super::runtime_types; + pub type New = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for SetMaxUpwardMessageNumPerCandidate { const PALLET: &'static str = "Configuration"; @@ -26138,7 +27179,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetHrmpOpenRequestTtl { - pub new: ::core::primitive::u32, + pub new: set_hrmp_open_request_ttl::New, + } + pub mod set_hrmp_open_request_ttl { + use super::runtime_types; + pub type New = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for SetHrmpOpenRequestTtl { const PALLET: &'static str = "Configuration"; @@ -26156,7 +27201,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetHrmpSenderDeposit { - pub new: ::core::primitive::u128, + pub new: set_hrmp_sender_deposit::New, + } + pub mod set_hrmp_sender_deposit { + use super::runtime_types; + pub type New = ::core::primitive::u128; } impl ::subxt::blocks::StaticExtrinsic for SetHrmpSenderDeposit { const PALLET: &'static str = "Configuration"; @@ -26174,7 +27223,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetHrmpRecipientDeposit { - pub new: ::core::primitive::u128, + pub new: set_hrmp_recipient_deposit::New, + } + pub mod set_hrmp_recipient_deposit { + use super::runtime_types; + pub type New = ::core::primitive::u128; } impl ::subxt::blocks::StaticExtrinsic for SetHrmpRecipientDeposit { const PALLET: &'static str = "Configuration"; @@ -26192,7 +27245,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetHrmpChannelMaxCapacity { - pub new: ::core::primitive::u32, + pub new: set_hrmp_channel_max_capacity::New, + } + pub mod set_hrmp_channel_max_capacity { + use super::runtime_types; + pub type New = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for SetHrmpChannelMaxCapacity { const PALLET: &'static str = "Configuration"; @@ -26210,7 +27267,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetHrmpChannelMaxTotalSize { - pub new: ::core::primitive::u32, + pub new: set_hrmp_channel_max_total_size::New, + } + pub mod set_hrmp_channel_max_total_size { + use super::runtime_types; + pub type New = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for SetHrmpChannelMaxTotalSize { const PALLET: &'static str = "Configuration"; @@ -26228,7 +27289,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetHrmpMaxParachainInboundChannels { - pub new: ::core::primitive::u32, + pub new: set_hrmp_max_parachain_inbound_channels::New, + } + pub mod set_hrmp_max_parachain_inbound_channels { + use super::runtime_types; + pub type New = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for SetHrmpMaxParachainInboundChannels { const PALLET: &'static str = "Configuration"; @@ -26246,7 +27311,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetHrmpChannelMaxMessageSize { - pub new: ::core::primitive::u32, + pub new: set_hrmp_channel_max_message_size::New, + } + pub mod set_hrmp_channel_max_message_size { + use super::runtime_types; + pub type New = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for SetHrmpChannelMaxMessageSize { const PALLET: &'static str = "Configuration"; @@ -26264,7 +27333,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetHrmpMaxParachainOutboundChannels { - pub new: ::core::primitive::u32, + pub new: set_hrmp_max_parachain_outbound_channels::New, + } + pub mod set_hrmp_max_parachain_outbound_channels { + use super::runtime_types; + pub type New = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for SetHrmpMaxParachainOutboundChannels { const PALLET: &'static str = "Configuration"; @@ -26282,7 +27355,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetHrmpMaxMessageNumPerCandidate { - pub new: ::core::primitive::u32, + pub new: set_hrmp_max_message_num_per_candidate::New, + } + pub mod set_hrmp_max_message_num_per_candidate { + use super::runtime_types; + pub type New = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for SetHrmpMaxMessageNumPerCandidate { const PALLET: &'static str = "Configuration"; @@ -26300,7 +27377,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetPvfVotingTtl { - pub new: ::core::primitive::u32, + pub new: set_pvf_voting_ttl::New, + } + pub mod set_pvf_voting_ttl { + use super::runtime_types; + pub type New = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for SetPvfVotingTtl { const PALLET: &'static str = "Configuration"; @@ -26318,7 +27399,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetMinimumValidationUpgradeDelay { - pub new: ::core::primitive::u32, + pub new: set_minimum_validation_upgrade_delay::New, + } + pub mod set_minimum_validation_upgrade_delay { + use super::runtime_types; + pub type New = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for SetMinimumValidationUpgradeDelay { const PALLET: &'static str = "Configuration"; @@ -26335,7 +27420,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetBypassConsistencyCheck { - pub new: ::core::primitive::bool, + pub new: set_bypass_consistency_check::New, + } + pub mod set_bypass_consistency_check { + use super::runtime_types; + pub type New = ::core::primitive::bool; } impl ::subxt::blocks::StaticExtrinsic for SetBypassConsistencyCheck { const PALLET: &'static str = "Configuration"; @@ -26352,8 +27441,12 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetAsyncBackingParams { - pub new: - runtime_types::polkadot_primitives::v6::async_backing::AsyncBackingParams, + pub new: set_async_backing_params::New, + } + pub mod set_async_backing_params { + use super::runtime_types; + pub type New = + runtime_types::polkadot_primitives::v6::async_backing::AsyncBackingParams; } impl ::subxt::blocks::StaticExtrinsic for SetAsyncBackingParams { const PALLET: &'static str = "Configuration"; @@ -26370,8 +27463,12 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetExecutorParams { - pub new: - runtime_types::polkadot_primitives::v6::executor_params::ExecutorParams, + pub new: set_executor_params::New, + } + pub mod set_executor_params { + use super::runtime_types; + pub type New = + runtime_types::polkadot_primitives::v6::executor_params::ExecutorParams; } impl ::subxt::blocks::StaticExtrinsic for SetExecutorParams { const PALLET: &'static str = "Configuration"; @@ -26389,7 +27486,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetOnDemandBaseFee { - pub new: ::core::primitive::u128, + pub new: set_on_demand_base_fee::New, + } + pub mod set_on_demand_base_fee { + use super::runtime_types; + pub type New = ::core::primitive::u128; } impl ::subxt::blocks::StaticExtrinsic for SetOnDemandBaseFee { const PALLET: &'static str = "Configuration"; @@ -26406,7 +27507,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetOnDemandFeeVariability { - pub new: runtime_types::sp_arithmetic::per_things::Perbill, + pub new: set_on_demand_fee_variability::New, + } + pub mod set_on_demand_fee_variability { + use super::runtime_types; + pub type New = runtime_types::sp_arithmetic::per_things::Perbill; } impl ::subxt::blocks::StaticExtrinsic for SetOnDemandFeeVariability { const PALLET: &'static str = "Configuration"; @@ -26424,7 +27529,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetOnDemandQueueMaxSize { - pub new: ::core::primitive::u32, + pub new: set_on_demand_queue_max_size::New, + } + pub mod set_on_demand_queue_max_size { + use super::runtime_types; + pub type New = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for SetOnDemandQueueMaxSize { const PALLET: &'static str = "Configuration"; @@ -26441,7 +27550,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetOnDemandTargetQueueUtilization { - pub new: runtime_types::sp_arithmetic::per_things::Perbill, + pub new: set_on_demand_target_queue_utilization::New, + } + pub mod set_on_demand_target_queue_utilization { + use super::runtime_types; + pub type New = runtime_types::sp_arithmetic::per_things::Perbill; } impl ::subxt::blocks::StaticExtrinsic for SetOnDemandTargetQueueUtilization { const PALLET: &'static str = "Configuration"; @@ -26459,7 +27572,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetOnDemandTtl { - pub new: ::core::primitive::u32, + pub new: set_on_demand_ttl::New, + } + pub mod set_on_demand_ttl { + use super::runtime_types; + pub type New = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for SetOnDemandTtl { const PALLET: &'static str = "Configuration"; @@ -26477,7 +27594,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetMinimumBackingVotes { - pub new: ::core::primitive::u32, + pub new: set_minimum_backing_votes::New, + } + pub mod set_minimum_backing_votes { + use super::runtime_types; + pub type New = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for SetMinimumBackingVotes { const PALLET: &'static str = "Configuration"; @@ -26489,7 +27610,7 @@ pub mod api { #[doc = "See [`Pallet::set_validation_upgrade_cooldown`]."] pub fn set_validation_upgrade_cooldown( &self, - new: alias_types::set_validation_upgrade_cooldown::New, + new: types::set_validation_upgrade_cooldown::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -26506,7 +27627,7 @@ pub mod api { #[doc = "See [`Pallet::set_validation_upgrade_delay`]."] pub fn set_validation_upgrade_delay( &self, - new: alias_types::set_validation_upgrade_delay::New, + new: types::set_validation_upgrade_delay::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -26522,7 +27643,7 @@ pub mod api { #[doc = "See [`Pallet::set_code_retention_period`]."] pub fn set_code_retention_period( &self, - new: alias_types::set_code_retention_period::New, + new: types::set_code_retention_period::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -26539,7 +27660,7 @@ pub mod api { #[doc = "See [`Pallet::set_max_code_size`]."] pub fn set_max_code_size( &self, - new: alias_types::set_max_code_size::New, + new: types::set_max_code_size::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -26556,7 +27677,7 @@ pub mod api { #[doc = "See [`Pallet::set_max_pov_size`]."] pub fn set_max_pov_size( &self, - new: alias_types::set_max_pov_size::New, + new: types::set_max_pov_size::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -26572,7 +27693,7 @@ pub mod api { #[doc = "See [`Pallet::set_max_head_data_size`]."] pub fn set_max_head_data_size( &self, - new: alias_types::set_max_head_data_size::New, + new: types::set_max_head_data_size::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -26589,7 +27710,7 @@ pub mod api { #[doc = "See [`Pallet::set_on_demand_cores`]."] pub fn set_on_demand_cores( &self, - new: alias_types::set_on_demand_cores::New, + new: types::set_on_demand_cores::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -26606,7 +27727,7 @@ pub mod api { #[doc = "See [`Pallet::set_on_demand_retries`]."] pub fn set_on_demand_retries( &self, - new: alias_types::set_on_demand_retries::New, + new: types::set_on_demand_retries::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -26623,7 +27744,7 @@ pub mod api { #[doc = "See [`Pallet::set_group_rotation_frequency`]."] pub fn set_group_rotation_frequency( &self, - new: alias_types::set_group_rotation_frequency::New, + new: types::set_group_rotation_frequency::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -26639,7 +27760,7 @@ pub mod api { #[doc = "See [`Pallet::set_paras_availability_period`]."] pub fn set_paras_availability_period( &self, - new: alias_types::set_paras_availability_period::New, + new: types::set_paras_availability_period::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -26655,7 +27776,7 @@ pub mod api { #[doc = "See [`Pallet::set_scheduling_lookahead`]."] pub fn set_scheduling_lookahead( &self, - new: alias_types::set_scheduling_lookahead::New, + new: types::set_scheduling_lookahead::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -26672,7 +27793,7 @@ pub mod api { #[doc = "See [`Pallet::set_max_validators_per_core`]."] pub fn set_max_validators_per_core( &self, - new: alias_types::set_max_validators_per_core::New, + new: types::set_max_validators_per_core::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -26689,7 +27810,7 @@ pub mod api { #[doc = "See [`Pallet::set_max_validators`]."] pub fn set_max_validators( &self, - new: alias_types::set_max_validators::New, + new: types::set_max_validators::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -26706,7 +27827,7 @@ pub mod api { #[doc = "See [`Pallet::set_dispute_period`]."] pub fn set_dispute_period( &self, - new: alias_types::set_dispute_period::New, + new: types::set_dispute_period::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -26723,7 +27844,7 @@ pub mod api { #[doc = "See [`Pallet::set_dispute_post_conclusion_acceptance_period`]."] pub fn set_dispute_post_conclusion_acceptance_period( &self, - new: alias_types::set_dispute_post_conclusion_acceptance_period::New, + new: types::set_dispute_post_conclusion_acceptance_period::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( @@ -26741,7 +27862,7 @@ pub mod api { #[doc = "See [`Pallet::set_no_show_slots`]."] pub fn set_no_show_slots( &self, - new: alias_types::set_no_show_slots::New, + new: types::set_no_show_slots::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -26757,7 +27878,7 @@ pub mod api { #[doc = "See [`Pallet::set_n_delay_tranches`]."] pub fn set_n_delay_tranches( &self, - new: alias_types::set_n_delay_tranches::New, + new: types::set_n_delay_tranches::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -26774,7 +27895,7 @@ pub mod api { #[doc = "See [`Pallet::set_zeroth_delay_tranche_width`]."] pub fn set_zeroth_delay_tranche_width( &self, - new: alias_types::set_zeroth_delay_tranche_width::New, + new: types::set_zeroth_delay_tranche_width::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -26790,7 +27911,7 @@ pub mod api { #[doc = "See [`Pallet::set_needed_approvals`]."] pub fn set_needed_approvals( &self, - new: alias_types::set_needed_approvals::New, + new: types::set_needed_approvals::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -26806,7 +27927,7 @@ pub mod api { #[doc = "See [`Pallet::set_relay_vrf_modulo_samples`]."] pub fn set_relay_vrf_modulo_samples( &self, - new: alias_types::set_relay_vrf_modulo_samples::New, + new: types::set_relay_vrf_modulo_samples::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -26823,7 +27944,7 @@ pub mod api { #[doc = "See [`Pallet::set_max_upward_queue_count`]."] pub fn set_max_upward_queue_count( &self, - new: alias_types::set_max_upward_queue_count::New, + new: types::set_max_upward_queue_count::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -26840,7 +27961,7 @@ pub mod api { #[doc = "See [`Pallet::set_max_upward_queue_size`]."] pub fn set_max_upward_queue_size( &self, - new: alias_types::set_max_upward_queue_size::New, + new: types::set_max_upward_queue_size::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -26857,7 +27978,7 @@ pub mod api { #[doc = "See [`Pallet::set_max_downward_message_size`]."] pub fn set_max_downward_message_size( &self, - new: alias_types::set_max_downward_message_size::New, + new: types::set_max_downward_message_size::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -26873,7 +27994,7 @@ pub mod api { #[doc = "See [`Pallet::set_max_upward_message_size`]."] pub fn set_max_upward_message_size( &self, - new: alias_types::set_max_upward_message_size::New, + new: types::set_max_upward_message_size::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -26890,7 +28011,7 @@ pub mod api { #[doc = "See [`Pallet::set_max_upward_message_num_per_candidate`]."] pub fn set_max_upward_message_num_per_candidate( &self, - new: alias_types::set_max_upward_message_num_per_candidate::New, + new: types::set_max_upward_message_num_per_candidate::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( @@ -26907,7 +28028,7 @@ pub mod api { #[doc = "See [`Pallet::set_hrmp_open_request_ttl`]."] pub fn set_hrmp_open_request_ttl( &self, - new: alias_types::set_hrmp_open_request_ttl::New, + new: types::set_hrmp_open_request_ttl::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -26923,7 +28044,7 @@ pub mod api { #[doc = "See [`Pallet::set_hrmp_sender_deposit`]."] pub fn set_hrmp_sender_deposit( &self, - new: alias_types::set_hrmp_sender_deposit::New, + new: types::set_hrmp_sender_deposit::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -26939,7 +28060,7 @@ pub mod api { #[doc = "See [`Pallet::set_hrmp_recipient_deposit`]."] pub fn set_hrmp_recipient_deposit( &self, - new: alias_types::set_hrmp_recipient_deposit::New, + new: types::set_hrmp_recipient_deposit::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -26956,7 +28077,7 @@ pub mod api { #[doc = "See [`Pallet::set_hrmp_channel_max_capacity`]."] pub fn set_hrmp_channel_max_capacity( &self, - new: alias_types::set_hrmp_channel_max_capacity::New, + new: types::set_hrmp_channel_max_capacity::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -26973,7 +28094,7 @@ pub mod api { #[doc = "See [`Pallet::set_hrmp_channel_max_total_size`]."] pub fn set_hrmp_channel_max_total_size( &self, - new: alias_types::set_hrmp_channel_max_total_size::New, + new: types::set_hrmp_channel_max_total_size::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -26989,7 +28110,7 @@ pub mod api { #[doc = "See [`Pallet::set_hrmp_max_parachain_inbound_channels`]."] pub fn set_hrmp_max_parachain_inbound_channels( &self, - new: alias_types::set_hrmp_max_parachain_inbound_channels::New, + new: types::set_hrmp_max_parachain_inbound_channels::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( @@ -27006,7 +28127,7 @@ pub mod api { #[doc = "See [`Pallet::set_hrmp_channel_max_message_size`]."] pub fn set_hrmp_channel_max_message_size( &self, - new: alias_types::set_hrmp_channel_max_message_size::New, + new: types::set_hrmp_channel_max_message_size::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -27023,7 +28144,7 @@ pub mod api { #[doc = "See [`Pallet::set_hrmp_max_parachain_outbound_channels`]."] pub fn set_hrmp_max_parachain_outbound_channels( &self, - new: alias_types::set_hrmp_max_parachain_outbound_channels::New, + new: types::set_hrmp_max_parachain_outbound_channels::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( @@ -27040,7 +28161,7 @@ pub mod api { #[doc = "See [`Pallet::set_hrmp_max_message_num_per_candidate`]."] pub fn set_hrmp_max_message_num_per_candidate( &self, - new: alias_types::set_hrmp_max_message_num_per_candidate::New, + new: types::set_hrmp_max_message_num_per_candidate::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -27056,7 +28177,7 @@ pub mod api { #[doc = "See [`Pallet::set_pvf_voting_ttl`]."] pub fn set_pvf_voting_ttl( &self, - new: alias_types::set_pvf_voting_ttl::New, + new: types::set_pvf_voting_ttl::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -27073,7 +28194,7 @@ pub mod api { #[doc = "See [`Pallet::set_minimum_validation_upgrade_delay`]."] pub fn set_minimum_validation_upgrade_delay( &self, - new: alias_types::set_minimum_validation_upgrade_delay::New, + new: types::set_minimum_validation_upgrade_delay::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -27090,7 +28211,7 @@ pub mod api { #[doc = "See [`Pallet::set_bypass_consistency_check`]."] pub fn set_bypass_consistency_check( &self, - new: alias_types::set_bypass_consistency_check::New, + new: types::set_bypass_consistency_check::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -27107,7 +28228,7 @@ pub mod api { #[doc = "See [`Pallet::set_async_backing_params`]."] pub fn set_async_backing_params( &self, - new: alias_types::set_async_backing_params::New, + new: types::set_async_backing_params::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -27124,7 +28245,7 @@ pub mod api { #[doc = "See [`Pallet::set_executor_params`]."] pub fn set_executor_params( &self, - new: alias_types::set_executor_params::New, + new: types::set_executor_params::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -27140,7 +28261,7 @@ pub mod api { #[doc = "See [`Pallet::set_on_demand_base_fee`]."] pub fn set_on_demand_base_fee( &self, - new: alias_types::set_on_demand_base_fee::New, + new: types::set_on_demand_base_fee::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -27156,7 +28277,7 @@ pub mod api { #[doc = "See [`Pallet::set_on_demand_fee_variability`]."] pub fn set_on_demand_fee_variability( &self, - new: alias_types::set_on_demand_fee_variability::New, + new: types::set_on_demand_fee_variability::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -27173,7 +28294,7 @@ pub mod api { #[doc = "See [`Pallet::set_on_demand_queue_max_size`]."] pub fn set_on_demand_queue_max_size( &self, - new: alias_types::set_on_demand_queue_max_size::New, + new: types::set_on_demand_queue_max_size::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -27189,7 +28310,7 @@ pub mod api { #[doc = "See [`Pallet::set_on_demand_target_queue_utilization`]."] pub fn set_on_demand_target_queue_utilization( &self, - new: alias_types::set_on_demand_target_queue_utilization::New, + new: types::set_on_demand_target_queue_utilization::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( @@ -27207,7 +28328,7 @@ pub mod api { #[doc = "See [`Pallet::set_on_demand_ttl`]."] pub fn set_on_demand_ttl( &self, - new: alias_types::set_on_demand_ttl::New, + new: types::set_on_demand_ttl::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -27224,7 +28345,7 @@ pub mod api { #[doc = "See [`Pallet::set_minimum_backing_votes`]."] pub fn set_minimum_backing_votes( &self, - new: alias_types::set_minimum_backing_votes::New, + new: types::set_minimum_backing_votes::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -27241,7 +28362,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod active_config { use super::runtime_types; @@ -27263,7 +28384,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::active_config::ActiveConfig, + types::active_config::ActiveConfig, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -27291,7 +28412,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::pending_configs::PendingConfigs, + types::pending_configs::PendingConfigs, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -27314,7 +28435,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::bypass_consistency_check::BypassConsistencyCheck, + types::bypass_consistency_check::BypassConsistencyCheck, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -27343,9 +28464,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - } pub mod types { use super::runtime_types; } @@ -27354,7 +28472,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod current_session_index { use super::runtime_types; @@ -27383,7 +28501,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::current_session_index::CurrentSessionIndex, + types::current_session_index::CurrentSessionIndex, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -27406,7 +28524,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::active_validator_indices::ActiveValidatorIndices, + types::active_validator_indices::ActiveValidatorIndices, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -27428,7 +28546,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::active_validator_keys::ActiveValidatorKeys, + types::active_validator_keys::ActiveValidatorKeys, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -27450,7 +28568,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::allowed_relay_parents::AllowedRelayParents, + types::allowed_relay_parents::AllowedRelayParents, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -27481,9 +28599,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - } pub mod types { use super::runtime_types; } @@ -27568,8 +28683,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some upward messages have been received and will be processed."] pub struct UpwardMessagesReceived { - pub from: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub count: ::core::primitive::u32, + pub from: upward_messages_received::From, + pub count: upward_messages_received::Count, + } + pub mod upward_messages_received { + use super::runtime_types; + pub type From = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Count = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for UpwardMessagesReceived { const PALLET: &'static str = "ParaInclusion"; @@ -27578,7 +28698,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod availability_bitfields { use super::runtime_types; @@ -27603,7 +28723,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::availability_bitfields::AvailabilityBitfields, + types::availability_bitfields::AvailabilityBitfields, (), (), ::subxt::storage::address::Yes, @@ -27627,7 +28747,7 @@ pub mod api { >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::availability_bitfields::AvailabilityBitfields, + types::availability_bitfields::AvailabilityBitfields, ::subxt::storage::address::Yes, (), (), @@ -27650,7 +28770,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::pending_availability::PendingAvailability, + types::pending_availability::PendingAvailability, (), (), ::subxt::storage::address::Yes, @@ -27674,7 +28794,7 @@ pub mod api { >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::pending_availability::PendingAvailability, + types::pending_availability::PendingAvailability, ::subxt::storage::address::Yes, (), (), @@ -27697,7 +28817,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::pending_availability_commitments::PendingAvailabilityCommitments, + types::pending_availability_commitments::PendingAvailabilityCommitments, (), (), ::subxt::storage::address::Yes, @@ -27721,7 +28841,7 @@ pub mod api { >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::pending_availability_commitments::PendingAvailabilityCommitments, + types::pending_availability_commitments::PendingAvailabilityCommitments, ::subxt::storage::address::Yes, (), (), @@ -27753,15 +28873,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - pub mod enter { - use super::runtime_types; - pub type Data = runtime_types::polkadot_primitives::v6::InherentData< - runtime_types::sp_runtime::generic::header::Header<::core::primitive::u32>, - >; - } - } pub mod types { use super::runtime_types; #[derive( @@ -27775,9 +28886,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Enter { - pub data: runtime_types::polkadot_primitives::v6::InherentData< + pub data: enter::Data, + } + pub mod enter { + use super::runtime_types; + pub type Data = runtime_types::polkadot_primitives::v6::InherentData< runtime_types::sp_runtime::generic::header::Header<::core::primitive::u32>, - >, + >; } impl ::subxt::blocks::StaticExtrinsic for Enter { const PALLET: &'static str = "ParaInherent"; @@ -27789,7 +28904,7 @@ pub mod api { #[doc = "See [`Pallet::enter`]."] pub fn enter( &self, - data: alias_types::enter::Data, + data: types::enter::Data, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ParaInherent", @@ -27806,7 +28921,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod included { use super::runtime_types; @@ -27832,7 +28947,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::included::Included, + types::included::Included, ::subxt::storage::address::Yes, (), (), @@ -27853,7 +28968,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::on_chain_votes::OnChainVotes, + types::on_chain_votes::OnChainVotes, ::subxt::storage::address::Yes, (), (), @@ -27878,7 +28993,7 @@ pub mod api { use super::runtime_types; pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod validator_groups { use super::runtime_types; @@ -27916,7 +29031,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::validator_groups::ValidatorGroups, + types::validator_groups::ValidatorGroups, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -27944,7 +29059,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::availability_cores::AvailabilityCores, + types::availability_cores::AvailabilityCores, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -27971,7 +29086,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::session_start_block::SessionStartBlock, + types::session_start_block::SessionStartBlock, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -27996,7 +29111,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::claim_queue::ClaimQueue, + types::claim_queue::ClaimQueue, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -28026,58 +29141,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - pub mod force_set_current_code { - use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type NewCode = - runtime_types::polkadot_parachain_primitives::primitives::ValidationCode; - } - pub mod force_set_current_head { - use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type NewHead = - runtime_types::polkadot_parachain_primitives::primitives::HeadData; - } - pub mod force_schedule_code_upgrade { - use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type NewCode = - runtime_types::polkadot_parachain_primitives::primitives::ValidationCode; - pub type RelayParentNumber = ::core::primitive::u32; - } - pub mod force_note_new_head { - use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type NewHead = - runtime_types::polkadot_parachain_primitives::primitives::HeadData; - } - pub mod force_queue_action { - use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - pub mod add_trusted_validation_code { - use super::runtime_types; - pub type ValidationCode = - runtime_types::polkadot_parachain_primitives::primitives::ValidationCode; - } - pub mod poke_unused_validation_code { - use super::runtime_types; - pub type ValidationCodeHash = runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash ; - } - pub mod include_pvf_check_statement { - use super::runtime_types; - pub type Stmt = runtime_types::polkadot_primitives::v6::PvfCheckStatement; - pub type Signature = - runtime_types::polkadot_primitives::v6::validator_app::Signature; - } - pub mod force_set_most_recent_context { - use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Context = ::core::primitive::u32; - } - } pub mod types { use super::runtime_types; #[derive( @@ -28091,9 +29154,14 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceSetCurrentCode { - pub para: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub new_code: - runtime_types::polkadot_parachain_primitives::primitives::ValidationCode, + pub para: force_set_current_code::Para, + pub new_code: force_set_current_code::NewCode, + } + pub mod force_set_current_code { + use super::runtime_types; + pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type NewCode = + runtime_types::polkadot_parachain_primitives::primitives::ValidationCode; } impl ::subxt::blocks::StaticExtrinsic for ForceSetCurrentCode { const PALLET: &'static str = "Paras"; @@ -28110,9 +29178,14 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceSetCurrentHead { - pub para: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub new_head: - runtime_types::polkadot_parachain_primitives::primitives::HeadData, + pub para: force_set_current_head::Para, + pub new_head: force_set_current_head::NewHead, + } + pub mod force_set_current_head { + use super::runtime_types; + pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type NewHead = + runtime_types::polkadot_parachain_primitives::primitives::HeadData; } impl ::subxt::blocks::StaticExtrinsic for ForceSetCurrentHead { const PALLET: &'static str = "Paras"; @@ -28129,10 +29202,16 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceScheduleCodeUpgrade { - pub para: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub new_code: - runtime_types::polkadot_parachain_primitives::primitives::ValidationCode, - pub relay_parent_number: ::core::primitive::u32, + pub para: force_schedule_code_upgrade::Para, + pub new_code: force_schedule_code_upgrade::NewCode, + pub relay_parent_number: force_schedule_code_upgrade::RelayParentNumber, + } + pub mod force_schedule_code_upgrade { + use super::runtime_types; + pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type NewCode = + runtime_types::polkadot_parachain_primitives::primitives::ValidationCode; + pub type RelayParentNumber = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for ForceScheduleCodeUpgrade { const PALLET: &'static str = "Paras"; @@ -28149,9 +29228,14 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceNoteNewHead { - pub para: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub new_head: - runtime_types::polkadot_parachain_primitives::primitives::HeadData, + pub para: force_note_new_head::Para, + pub new_head: force_note_new_head::NewHead, + } + pub mod force_note_new_head { + use super::runtime_types; + pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type NewHead = + runtime_types::polkadot_parachain_primitives::primitives::HeadData; } impl ::subxt::blocks::StaticExtrinsic for ForceNoteNewHead { const PALLET: &'static str = "Paras"; @@ -28168,7 +29252,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceQueueAction { - pub para: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub para: force_queue_action::Para, + } + pub mod force_queue_action { + use super::runtime_types; + pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::blocks::StaticExtrinsic for ForceQueueAction { const PALLET: &'static str = "Paras"; @@ -28185,8 +29273,12 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AddTrustedValidationCode { - pub validation_code: - runtime_types::polkadot_parachain_primitives::primitives::ValidationCode, + pub validation_code: add_trusted_validation_code::ValidationCode, + } + pub mod add_trusted_validation_code { + use super::runtime_types; + pub type ValidationCode = + runtime_types::polkadot_parachain_primitives::primitives::ValidationCode; } impl ::subxt::blocks::StaticExtrinsic for AddTrustedValidationCode { const PALLET: &'static str = "Paras"; @@ -28202,7 +29294,13 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct PokeUnusedValidationCode { pub validation_code_hash : runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash , } + pub struct PokeUnusedValidationCode { + pub validation_code_hash: poke_unused_validation_code::ValidationCodeHash, + } + pub mod poke_unused_validation_code { + use super::runtime_types; + pub type ValidationCodeHash = runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash ; + } impl ::subxt::blocks::StaticExtrinsic for PokeUnusedValidationCode { const PALLET: &'static str = "Paras"; const CALL: &'static str = "poke_unused_validation_code"; @@ -28218,8 +29316,14 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct IncludePvfCheckStatement { - pub stmt: runtime_types::polkadot_primitives::v6::PvfCheckStatement, - pub signature: runtime_types::polkadot_primitives::v6::validator_app::Signature, + pub stmt: include_pvf_check_statement::Stmt, + pub signature: include_pvf_check_statement::Signature, + } + pub mod include_pvf_check_statement { + use super::runtime_types; + pub type Stmt = runtime_types::polkadot_primitives::v6::PvfCheckStatement; + pub type Signature = + runtime_types::polkadot_primitives::v6::validator_app::Signature; } impl ::subxt::blocks::StaticExtrinsic for IncludePvfCheckStatement { const PALLET: &'static str = "Paras"; @@ -28236,8 +29340,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceSetMostRecentContext { - pub para: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub context: ::core::primitive::u32, + pub para: force_set_most_recent_context::Para, + pub context: force_set_most_recent_context::Context, + } + pub mod force_set_most_recent_context { + use super::runtime_types; + pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Context = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for ForceSetMostRecentContext { const PALLET: &'static str = "Paras"; @@ -28249,8 +29358,8 @@ pub mod api { #[doc = "See [`Pallet::force_set_current_code`]."] pub fn force_set_current_code( &self, - para: alias_types::force_set_current_code::Para, - new_code: alias_types::force_set_current_code::NewCode, + para: types::force_set_current_code::Para, + new_code: types::force_set_current_code::NewCode, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Paras", @@ -28267,8 +29376,8 @@ pub mod api { #[doc = "See [`Pallet::force_set_current_head`]."] pub fn force_set_current_head( &self, - para: alias_types::force_set_current_head::Para, - new_head: alias_types::force_set_current_head::NewHead, + para: types::force_set_current_head::Para, + new_head: types::force_set_current_head::NewHead, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Paras", @@ -28285,9 +29394,9 @@ pub mod api { #[doc = "See [`Pallet::force_schedule_code_upgrade`]."] pub fn force_schedule_code_upgrade( &self, - para: alias_types::force_schedule_code_upgrade::Para, - new_code: alias_types::force_schedule_code_upgrade::NewCode, - relay_parent_number : alias_types :: force_schedule_code_upgrade :: RelayParentNumber, + para: types::force_schedule_code_upgrade::Para, + new_code: types::force_schedule_code_upgrade::NewCode, + relay_parent_number: types::force_schedule_code_upgrade::RelayParentNumber, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Paras", @@ -28308,8 +29417,8 @@ pub mod api { #[doc = "See [`Pallet::force_note_new_head`]."] pub fn force_note_new_head( &self, - para: alias_types::force_note_new_head::Para, - new_head: alias_types::force_note_new_head::NewHead, + para: types::force_note_new_head::Para, + new_head: types::force_note_new_head::NewHead, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Paras", @@ -28325,7 +29434,7 @@ pub mod api { #[doc = "See [`Pallet::force_queue_action`]."] pub fn force_queue_action( &self, - para: alias_types::force_queue_action::Para, + para: types::force_queue_action::Para, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Paras", @@ -28342,7 +29451,7 @@ pub mod api { #[doc = "See [`Pallet::add_trusted_validation_code`]."] pub fn add_trusted_validation_code( &self, - validation_code: alias_types::add_trusted_validation_code::ValidationCode, + validation_code: types::add_trusted_validation_code::ValidationCode, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Paras", @@ -28359,7 +29468,7 @@ pub mod api { #[doc = "See [`Pallet::poke_unused_validation_code`]."] pub fn poke_unused_validation_code( &self, - validation_code_hash : alias_types :: poke_unused_validation_code :: ValidationCodeHash, + validation_code_hash: types::poke_unused_validation_code::ValidationCodeHash, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Paras", @@ -28377,8 +29486,8 @@ pub mod api { #[doc = "See [`Pallet::include_pvf_check_statement`]."] pub fn include_pvf_check_statement( &self, - stmt: alias_types::include_pvf_check_statement::Stmt, - signature: alias_types::include_pvf_check_statement::Signature, + stmt: types::include_pvf_check_statement::Stmt, + signature: types::include_pvf_check_statement::Signature, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Paras", @@ -28395,8 +29504,8 @@ pub mod api { #[doc = "See [`Pallet::force_set_most_recent_context`]."] pub fn force_set_most_recent_context( &self, - para: alias_types::force_set_most_recent_context::Para, - context: alias_types::force_set_most_recent_context::Context, + para: types::force_set_most_recent_context::Para, + context: types::force_set_most_recent_context::Context, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Paras", @@ -28569,7 +29678,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod pvf_active_vote_map { use super::runtime_types; @@ -28687,7 +29796,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::pvf_active_vote_map::PvfActiveVoteMap, + types::pvf_active_vote_map::PvfActiveVoteMap, (), (), ::subxt::storage::address::Yes, @@ -28712,7 +29821,7 @@ pub mod api { _0 : impl :: std :: borrow :: Borrow < runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::pvf_active_vote_map::PvfActiveVoteMap, + types::pvf_active_vote_map::PvfActiveVoteMap, ::subxt::storage::address::Yes, (), (), @@ -28735,7 +29844,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::pvf_active_vote_list::PvfActiveVoteList, + types::pvf_active_vote_list::PvfActiveVoteList, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -28759,7 +29868,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::parachains::Parachains, + types::parachains::Parachains, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -28781,7 +29890,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::para_lifecycles::ParaLifecycles, + types::para_lifecycles::ParaLifecycles, (), (), ::subxt::storage::address::Yes, @@ -28806,7 +29915,7 @@ pub mod api { >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::para_lifecycles::ParaLifecycles, + types::para_lifecycles::ParaLifecycles, ::subxt::storage::address::Yes, (), (), @@ -28830,7 +29939,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::heads::Heads, + types::heads::Heads, (), (), ::subxt::storage::address::Yes, @@ -28854,7 +29963,7 @@ pub mod api { >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::heads::Heads, + types::heads::Heads, ::subxt::storage::address::Yes, (), (), @@ -28877,7 +29986,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::most_recent_context::MostRecentContext, + types::most_recent_context::MostRecentContext, (), (), ::subxt::storage::address::Yes, @@ -28901,7 +30010,7 @@ pub mod api { >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::most_recent_context::MostRecentContext, + types::most_recent_context::MostRecentContext, ::subxt::storage::address::Yes, (), (), @@ -28926,7 +30035,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::current_code_hash::CurrentCodeHash, + types::current_code_hash::CurrentCodeHash, (), (), ::subxt::storage::address::Yes, @@ -28953,7 +30062,7 @@ pub mod api { >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::current_code_hash::CurrentCodeHash, + types::current_code_hash::CurrentCodeHash, ::subxt::storage::address::Yes, (), (), @@ -28980,7 +30089,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::past_code_hash::PastCodeHash, + types::past_code_hash::PastCodeHash, (), (), ::subxt::storage::address::Yes, @@ -29007,7 +30116,7 @@ pub mod api { >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::past_code_hash::PastCodeHash, + types::past_code_hash::PastCodeHash, (), (), ::subxt::storage::address::Yes, @@ -29037,7 +30146,7 @@ pub mod api { _1: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::past_code_hash::PastCodeHash, + types::past_code_hash::PastCodeHash, ::subxt::storage::address::Yes, (), (), @@ -29063,7 +30172,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::past_code_meta::PastCodeMeta, + types::past_code_meta::PastCodeMeta, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -29089,7 +30198,7 @@ pub mod api { >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::past_code_meta::PastCodeMeta, + types::past_code_meta::PastCodeMeta, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -29117,7 +30226,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::past_code_pruning::PastCodePruning, + types::past_code_pruning::PastCodePruning, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -29140,7 +30249,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::future_code_upgrades::FutureCodeUpgrades, + types::future_code_upgrades::FutureCodeUpgrades, (), (), ::subxt::storage::address::Yes, @@ -29166,7 +30275,7 @@ pub mod api { >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::future_code_upgrades::FutureCodeUpgrades, + types::future_code_upgrades::FutureCodeUpgrades, ::subxt::storage::address::Yes, (), (), @@ -29191,7 +30300,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::future_code_hash::FutureCodeHash, + types::future_code_hash::FutureCodeHash, (), (), ::subxt::storage::address::Yes, @@ -29217,7 +30326,7 @@ pub mod api { >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::future_code_hash::FutureCodeHash, + types::future_code_hash::FutureCodeHash, ::subxt::storage::address::Yes, (), (), @@ -29249,7 +30358,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::upgrade_go_ahead_signal::UpgradeGoAheadSignal, + types::upgrade_go_ahead_signal::UpgradeGoAheadSignal, (), (), ::subxt::storage::address::Yes, @@ -29283,7 +30392,7 @@ pub mod api { >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::upgrade_go_ahead_signal::UpgradeGoAheadSignal, + types::upgrade_go_ahead_signal::UpgradeGoAheadSignal, ::subxt::storage::address::Yes, (), (), @@ -29315,7 +30424,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::upgrade_restriction_signal::UpgradeRestrictionSignal, + types::upgrade_restriction_signal::UpgradeRestrictionSignal, (), (), ::subxt::storage::address::Yes, @@ -29348,7 +30457,7 @@ pub mod api { >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::upgrade_restriction_signal::UpgradeRestrictionSignal, + types::upgrade_restriction_signal::UpgradeRestrictionSignal, ::subxt::storage::address::Yes, (), (), @@ -29374,7 +30483,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::upgrade_cooldowns::UpgradeCooldowns, + types::upgrade_cooldowns::UpgradeCooldowns, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -29399,7 +30508,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::upcoming_upgrades::UpcomingUpgrades, + types::upcoming_upgrades::UpcomingUpgrades, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -29420,7 +30529,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::actions_queue::ActionsQueue, + types::actions_queue::ActionsQueue, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -29442,7 +30551,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::actions_queue::ActionsQueue, + types::actions_queue::ActionsQueue, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -29468,7 +30577,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::upcoming_paras_genesis::UpcomingParasGenesis, + types::upcoming_paras_genesis::UpcomingParasGenesis, (), (), ::subxt::storage::address::Yes, @@ -29496,7 +30605,7 @@ pub mod api { >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::upcoming_paras_genesis::UpcomingParasGenesis, + types::upcoming_paras_genesis::UpcomingParasGenesis, ::subxt::storage::address::Yes, (), (), @@ -29520,7 +30629,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::code_by_hash_refs::CodeByHashRefs, + types::code_by_hash_refs::CodeByHashRefs, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -29543,7 +30652,7 @@ pub mod api { _0 : impl :: std :: borrow :: Borrow < runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::code_by_hash_refs::CodeByHashRefs, + types::code_by_hash_refs::CodeByHashRefs, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -29570,7 +30679,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::code_by_hash::CodeByHash, + types::code_by_hash::CodeByHash, (), (), ::subxt::storage::address::Yes, @@ -29595,7 +30704,7 @@ pub mod api { _0 : impl :: std :: borrow :: Borrow < runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::code_by_hash::CodeByHash, + types::code_by_hash::CodeByHash, ::subxt::storage::address::Yes, (), (), @@ -29645,13 +30754,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - pub mod force_approve { - use super::runtime_types; - pub type UpTo = ::core::primitive::u32; - } - } pub mod types { use super::runtime_types; #[derive( @@ -29666,7 +30768,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceApprove { - pub up_to: ::core::primitive::u32, + pub up_to: force_approve::UpTo, + } + pub mod force_approve { + use super::runtime_types; + pub type UpTo = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for ForceApprove { const PALLET: &'static str = "Initializer"; @@ -29678,7 +30784,7 @@ pub mod api { #[doc = "See [`Pallet::force_approve`]."] pub fn force_approve( &self, - up_to: alias_types::force_approve::UpTo, + up_to: types::force_approve::UpTo, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Initializer", @@ -29696,7 +30802,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod has_initialized { use super::runtime_types; @@ -29721,7 +30827,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::has_initialized::HasInitialized, + types::has_initialized::HasInitialized, ::subxt::storage::address::Yes, (), (), @@ -29748,7 +30854,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::buffered_session_changes::BufferedSessionChanges, + types::buffered_session_changes::BufferedSessionChanges, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -29772,7 +30878,7 @@ pub mod api { use super::runtime_types; pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod downward_message_queues { use super::runtime_types; @@ -29799,7 +30905,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::downward_message_queues::DownwardMessageQueues, + types::downward_message_queues::DownwardMessageQueues, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -29824,7 +30930,7 @@ pub mod api { >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::downward_message_queues::DownwardMessageQueues, + types::downward_message_queues::DownwardMessageQueues, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -29854,7 +30960,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::downward_message_queue_heads::DownwardMessageQueueHeads, + types::downward_message_queue_heads::DownwardMessageQueueHeads, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -29884,7 +30990,7 @@ pub mod api { >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::downward_message_queue_heads::DownwardMessageQueueHeads, + types::downward_message_queue_heads::DownwardMessageQueueHeads, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -29907,7 +31013,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::delivery_fee_factor::DeliveryFeeFactor, + types::delivery_fee_factor::DeliveryFeeFactor, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -29931,7 +31037,7 @@ pub mod api { >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::delivery_fee_factor::DeliveryFeeFactor, + types::delivery_fee_factor::DeliveryFeeFactor, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -29963,65 +31069,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - pub mod hrmp_init_open_channel { - use super::runtime_types; - pub type Recipient = - runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type ProposedMaxCapacity = ::core::primitive::u32; - pub type ProposedMaxMessageSize = ::core::primitive::u32; - } - pub mod hrmp_accept_open_channel { - use super::runtime_types; - pub type Sender = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - pub mod hrmp_close_channel { - use super::runtime_types; - pub type ChannelId = - runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId; - } - pub mod force_clean_hrmp { - use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type NumInbound = ::core::primitive::u32; - pub type NumOutbound = ::core::primitive::u32; - } - pub mod force_process_hrmp_open { - use super::runtime_types; - pub type Channels = ::core::primitive::u32; - } - pub mod force_process_hrmp_close { - use super::runtime_types; - pub type Channels = ::core::primitive::u32; - } - pub mod hrmp_cancel_open_request { - use super::runtime_types; - pub type ChannelId = - runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId; - pub type OpenRequests = ::core::primitive::u32; - } - pub mod force_open_hrmp_channel { - use super::runtime_types; - pub type Sender = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Recipient = - runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type MaxCapacity = ::core::primitive::u32; - pub type MaxMessageSize = ::core::primitive::u32; - } - pub mod establish_system_channel { - use super::runtime_types; - pub type Sender = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Recipient = - runtime_types::polkadot_parachain_primitives::primitives::Id; - } - pub mod poke_channel_deposits { - use super::runtime_types; - pub type Sender = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Recipient = - runtime_types::polkadot_parachain_primitives::primitives::Id; - } - } pub mod types { use super::runtime_types; #[derive( @@ -30035,9 +31082,16 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct HrmpInitOpenChannel { - pub recipient: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub proposed_max_capacity: ::core::primitive::u32, - pub proposed_max_message_size: ::core::primitive::u32, + pub recipient: hrmp_init_open_channel::Recipient, + pub proposed_max_capacity: hrmp_init_open_channel::ProposedMaxCapacity, + pub proposed_max_message_size: hrmp_init_open_channel::ProposedMaxMessageSize, + } + pub mod hrmp_init_open_channel { + use super::runtime_types; + pub type Recipient = + runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type ProposedMaxCapacity = ::core::primitive::u32; + pub type ProposedMaxMessageSize = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for HrmpInitOpenChannel { const PALLET: &'static str = "Hrmp"; @@ -30054,7 +31108,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct HrmpAcceptOpenChannel { - pub sender: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub sender: hrmp_accept_open_channel::Sender, + } + pub mod hrmp_accept_open_channel { + use super::runtime_types; + pub type Sender = runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::blocks::StaticExtrinsic for HrmpAcceptOpenChannel { const PALLET: &'static str = "Hrmp"; @@ -30071,8 +31129,12 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct HrmpCloseChannel { - pub channel_id: - runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId, + pub channel_id: hrmp_close_channel::ChannelId, + } + pub mod hrmp_close_channel { + use super::runtime_types; + pub type ChannelId = + runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId; } impl ::subxt::blocks::StaticExtrinsic for HrmpCloseChannel { const PALLET: &'static str = "Hrmp"; @@ -30089,9 +31151,15 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceCleanHrmp { - pub para: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub num_inbound: ::core::primitive::u32, - pub num_outbound: ::core::primitive::u32, + pub para: force_clean_hrmp::Para, + pub num_inbound: force_clean_hrmp::NumInbound, + pub num_outbound: force_clean_hrmp::NumOutbound, + } + pub mod force_clean_hrmp { + use super::runtime_types; + pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type NumInbound = ::core::primitive::u32; + pub type NumOutbound = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for ForceCleanHrmp { const PALLET: &'static str = "Hrmp"; @@ -30109,7 +31177,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceProcessHrmpOpen { - pub channels: ::core::primitive::u32, + pub channels: force_process_hrmp_open::Channels, + } + pub mod force_process_hrmp_open { + use super::runtime_types; + pub type Channels = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for ForceProcessHrmpOpen { const PALLET: &'static str = "Hrmp"; @@ -30127,7 +31199,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceProcessHrmpClose { - pub channels: ::core::primitive::u32, + pub channels: force_process_hrmp_close::Channels, + } + pub mod force_process_hrmp_close { + use super::runtime_types; + pub type Channels = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for ForceProcessHrmpClose { const PALLET: &'static str = "Hrmp"; @@ -30144,9 +31220,14 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct HrmpCancelOpenRequest { - pub channel_id: - runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId, - pub open_requests: ::core::primitive::u32, + pub channel_id: hrmp_cancel_open_request::ChannelId, + pub open_requests: hrmp_cancel_open_request::OpenRequests, + } + pub mod hrmp_cancel_open_request { + use super::runtime_types; + pub type ChannelId = + runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId; + pub type OpenRequests = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for HrmpCancelOpenRequest { const PALLET: &'static str = "Hrmp"; @@ -30163,10 +31244,18 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceOpenHrmpChannel { - pub sender: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub recipient: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub max_capacity: ::core::primitive::u32, - pub max_message_size: ::core::primitive::u32, + pub sender: force_open_hrmp_channel::Sender, + pub recipient: force_open_hrmp_channel::Recipient, + pub max_capacity: force_open_hrmp_channel::MaxCapacity, + pub max_message_size: force_open_hrmp_channel::MaxMessageSize, + } + pub mod force_open_hrmp_channel { + use super::runtime_types; + pub type Sender = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Recipient = + runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type MaxCapacity = ::core::primitive::u32; + pub type MaxMessageSize = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for ForceOpenHrmpChannel { const PALLET: &'static str = "Hrmp"; @@ -30183,8 +31272,14 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct EstablishSystemChannel { - pub sender: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub recipient: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub sender: establish_system_channel::Sender, + pub recipient: establish_system_channel::Recipient, + } + pub mod establish_system_channel { + use super::runtime_types; + pub type Sender = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Recipient = + runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::blocks::StaticExtrinsic for EstablishSystemChannel { const PALLET: &'static str = "Hrmp"; @@ -30201,8 +31296,14 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PokeChannelDeposits { - pub sender: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub recipient: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub sender: poke_channel_deposits::Sender, + pub recipient: poke_channel_deposits::Recipient, + } + pub mod poke_channel_deposits { + use super::runtime_types; + pub type Sender = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Recipient = + runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::blocks::StaticExtrinsic for PokeChannelDeposits { const PALLET: &'static str = "Hrmp"; @@ -30214,9 +31315,9 @@ pub mod api { #[doc = "See [`Pallet::hrmp_init_open_channel`]."] pub fn hrmp_init_open_channel( &self, - recipient: alias_types::hrmp_init_open_channel::Recipient, - proposed_max_capacity: alias_types::hrmp_init_open_channel::ProposedMaxCapacity, - proposed_max_message_size : alias_types :: hrmp_init_open_channel :: ProposedMaxMessageSize, + recipient: types::hrmp_init_open_channel::Recipient, + proposed_max_capacity: types::hrmp_init_open_channel::ProposedMaxCapacity, + proposed_max_message_size : types :: hrmp_init_open_channel :: ProposedMaxMessageSize, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Hrmp", @@ -30237,7 +31338,7 @@ pub mod api { #[doc = "See [`Pallet::hrmp_accept_open_channel`]."] pub fn hrmp_accept_open_channel( &self, - sender: alias_types::hrmp_accept_open_channel::Sender, + sender: types::hrmp_accept_open_channel::Sender, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Hrmp", @@ -30253,7 +31354,7 @@ pub mod api { #[doc = "See [`Pallet::hrmp_close_channel`]."] pub fn hrmp_close_channel( &self, - channel_id: alias_types::hrmp_close_channel::ChannelId, + channel_id: types::hrmp_close_channel::ChannelId, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Hrmp", @@ -30270,9 +31371,9 @@ pub mod api { #[doc = "See [`Pallet::force_clean_hrmp`]."] pub fn force_clean_hrmp( &self, - para: alias_types::force_clean_hrmp::Para, - num_inbound: alias_types::force_clean_hrmp::NumInbound, - num_outbound: alias_types::force_clean_hrmp::NumOutbound, + para: types::force_clean_hrmp::Para, + num_inbound: types::force_clean_hrmp::NumInbound, + num_outbound: types::force_clean_hrmp::NumOutbound, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Hrmp", @@ -30292,7 +31393,7 @@ pub mod api { #[doc = "See [`Pallet::force_process_hrmp_open`]."] pub fn force_process_hrmp_open( &self, - channels: alias_types::force_process_hrmp_open::Channels, + channels: types::force_process_hrmp_open::Channels, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Hrmp", @@ -30309,7 +31410,7 @@ pub mod api { #[doc = "See [`Pallet::force_process_hrmp_close`]."] pub fn force_process_hrmp_close( &self, - channels: alias_types::force_process_hrmp_close::Channels, + channels: types::force_process_hrmp_close::Channels, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Hrmp", @@ -30326,8 +31427,8 @@ pub mod api { #[doc = "See [`Pallet::hrmp_cancel_open_request`]."] pub fn hrmp_cancel_open_request( &self, - channel_id: alias_types::hrmp_cancel_open_request::ChannelId, - open_requests: alias_types::hrmp_cancel_open_request::OpenRequests, + channel_id: types::hrmp_cancel_open_request::ChannelId, + open_requests: types::hrmp_cancel_open_request::OpenRequests, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Hrmp", @@ -30346,10 +31447,10 @@ pub mod api { #[doc = "See [`Pallet::force_open_hrmp_channel`]."] pub fn force_open_hrmp_channel( &self, - sender: alias_types::force_open_hrmp_channel::Sender, - recipient: alias_types::force_open_hrmp_channel::Recipient, - max_capacity: alias_types::force_open_hrmp_channel::MaxCapacity, - max_message_size: alias_types::force_open_hrmp_channel::MaxMessageSize, + sender: types::force_open_hrmp_channel::Sender, + recipient: types::force_open_hrmp_channel::Recipient, + max_capacity: types::force_open_hrmp_channel::MaxCapacity, + max_message_size: types::force_open_hrmp_channel::MaxMessageSize, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Hrmp", @@ -30370,8 +31471,8 @@ pub mod api { #[doc = "See [`Pallet::establish_system_channel`]."] pub fn establish_system_channel( &self, - sender: alias_types::establish_system_channel::Sender, - recipient: alias_types::establish_system_channel::Recipient, + sender: types::establish_system_channel::Sender, + recipient: types::establish_system_channel::Recipient, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Hrmp", @@ -30387,8 +31488,8 @@ pub mod api { #[doc = "See [`Pallet::poke_channel_deposits`]."] pub fn poke_channel_deposits( &self, - sender: alias_types::poke_channel_deposits::Sender, - recipient: alias_types::poke_channel_deposits::Recipient, + sender: types::poke_channel_deposits::Sender, + recipient: types::poke_channel_deposits::Recipient, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Hrmp", @@ -30419,10 +31520,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Open HRMP channel requested."] pub struct OpenChannelRequested { - pub sender: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub recipient: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub proposed_max_capacity: ::core::primitive::u32, - pub proposed_max_message_size: ::core::primitive::u32, + pub sender: open_channel_requested::Sender, + pub recipient: open_channel_requested::Recipient, + pub proposed_max_capacity: open_channel_requested::ProposedMaxCapacity, + pub proposed_max_message_size: open_channel_requested::ProposedMaxMessageSize, + } + pub mod open_channel_requested { + use super::runtime_types; + pub type Sender = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Recipient = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type ProposedMaxCapacity = ::core::primitive::u32; + pub type ProposedMaxMessageSize = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for OpenChannelRequested { const PALLET: &'static str = "Hrmp"; @@ -30440,9 +31548,14 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An HRMP channel request sent by the receiver was canceled by either party."] pub struct OpenChannelCanceled { - pub by_parachain: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub channel_id: - runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId, + pub by_parachain: open_channel_canceled::ByParachain, + pub channel_id: open_channel_canceled::ChannelId, + } + pub mod open_channel_canceled { + use super::runtime_types; + pub type ByParachain = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type ChannelId = + runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId; } impl ::subxt::events::StaticEvent for OpenChannelCanceled { const PALLET: &'static str = "Hrmp"; @@ -30460,8 +31573,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Open HRMP channel accepted."] pub struct OpenChannelAccepted { - pub sender: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub recipient: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub sender: open_channel_accepted::Sender, + pub recipient: open_channel_accepted::Recipient, + } + pub mod open_channel_accepted { + use super::runtime_types; + pub type Sender = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Recipient = runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::events::StaticEvent for OpenChannelAccepted { const PALLET: &'static str = "Hrmp"; @@ -30479,9 +31597,14 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "HRMP channel closed."] pub struct ChannelClosed { - pub by_parachain: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub channel_id: - runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId, + pub by_parachain: channel_closed::ByParachain, + pub channel_id: channel_closed::ChannelId, + } + pub mod channel_closed { + use super::runtime_types; + pub type ByParachain = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type ChannelId = + runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId; } impl ::subxt::events::StaticEvent for ChannelClosed { const PALLET: &'static str = "Hrmp"; @@ -30499,10 +31622,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An HRMP channel was opened via Root origin."] pub struct HrmpChannelForceOpened { - pub sender: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub recipient: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub proposed_max_capacity: ::core::primitive::u32, - pub proposed_max_message_size: ::core::primitive::u32, + pub sender: hrmp_channel_force_opened::Sender, + pub recipient: hrmp_channel_force_opened::Recipient, + pub proposed_max_capacity: hrmp_channel_force_opened::ProposedMaxCapacity, + pub proposed_max_message_size: hrmp_channel_force_opened::ProposedMaxMessageSize, + } + pub mod hrmp_channel_force_opened { + use super::runtime_types; + pub type Sender = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Recipient = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type ProposedMaxCapacity = ::core::primitive::u32; + pub type ProposedMaxMessageSize = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for HrmpChannelForceOpened { const PALLET: &'static str = "Hrmp"; @@ -30520,10 +31650,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An HRMP channel was opened between two system chains."] pub struct HrmpSystemChannelOpened { - pub sender: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub recipient: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub proposed_max_capacity: ::core::primitive::u32, - pub proposed_max_message_size: ::core::primitive::u32, + pub sender: hrmp_system_channel_opened::Sender, + pub recipient: hrmp_system_channel_opened::Recipient, + pub proposed_max_capacity: hrmp_system_channel_opened::ProposedMaxCapacity, + pub proposed_max_message_size: hrmp_system_channel_opened::ProposedMaxMessageSize, + } + pub mod hrmp_system_channel_opened { + use super::runtime_types; + pub type Sender = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Recipient = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type ProposedMaxCapacity = ::core::primitive::u32; + pub type ProposedMaxMessageSize = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for HrmpSystemChannelOpened { const PALLET: &'static str = "Hrmp"; @@ -30541,8 +31678,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An HRMP channel's deposits were updated."] pub struct OpenChannelDepositsUpdated { - pub sender: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub recipient: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub sender: open_channel_deposits_updated::Sender, + pub recipient: open_channel_deposits_updated::Recipient, + } + pub mod open_channel_deposits_updated { + use super::runtime_types; + pub type Sender = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Recipient = runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::events::StaticEvent for OpenChannelDepositsUpdated { const PALLET: &'static str = "Hrmp"; @@ -30551,7 +31693,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod hrmp_open_channel_requests { use super::runtime_types; @@ -30633,7 +31775,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::hrmp_open_channel_requests::HrmpOpenChannelRequests, + types::hrmp_open_channel_requests::HrmpOpenChannelRequests, (), (), ::subxt::storage::address::Yes, @@ -30663,7 +31805,7 @@ pub mod api { >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::hrmp_open_channel_requests::HrmpOpenChannelRequests, + types::hrmp_open_channel_requests::HrmpOpenChannelRequests, ::subxt::storage::address::Yes, (), (), @@ -30686,7 +31828,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::hrmp_open_channel_requests_list::HrmpOpenChannelRequestsList, + types::hrmp_open_channel_requests_list::HrmpOpenChannelRequestsList, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -30710,7 +31852,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::hrmp_open_channel_request_count::HrmpOpenChannelRequestCount, + types::hrmp_open_channel_request_count::HrmpOpenChannelRequestCount, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -30737,7 +31879,7 @@ pub mod api { >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::hrmp_open_channel_request_count::HrmpOpenChannelRequestCount, + types::hrmp_open_channel_request_count::HrmpOpenChannelRequestCount, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -30758,7 +31900,16 @@ pub mod api { } #[doc = " This mapping tracks how many open channel requests were accepted by a given recipient para."] #[doc = " Invariant: `HrmpOpenChannelRequests` should contain the same number of items `(_, X)` with"] - #[doc = " `confirmed` set to true, as the number of `HrmpAcceptedChannelRequestCount` for `X`."] pub fn hrmp_accepted_channel_request_count_iter (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , alias_types :: hrmp_accepted_channel_request_count :: HrmpAcceptedChannelRequestCount , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ + #[doc = " `confirmed` set to true, as the number of `HrmpAcceptedChannelRequestCount` for `X`."] + pub fn hrmp_accepted_channel_request_count_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::hrmp_accepted_channel_request_count::HrmpAcceptedChannelRequestCount, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { ::subxt::storage::address::Address::new_static( "Hrmp", "HrmpAcceptedChannelRequestCount", @@ -30773,7 +31924,19 @@ pub mod api { } #[doc = " This mapping tracks how many open channel requests were accepted by a given recipient para."] #[doc = " Invariant: `HrmpOpenChannelRequests` should contain the same number of items `(_, X)` with"] - #[doc = " `confirmed` set to true, as the number of `HrmpAcceptedChannelRequestCount` for `X`."] pub fn hrmp_accepted_channel_request_count (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: polkadot_parachain_primitives :: primitives :: Id > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , alias_types :: hrmp_accepted_channel_request_count :: HrmpAcceptedChannelRequestCount , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ + #[doc = " `confirmed` set to true, as the number of `HrmpAcceptedChannelRequestCount` for `X`."] + pub fn hrmp_accepted_channel_request_count( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::polkadot_parachain_primitives::primitives::Id, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::hrmp_accepted_channel_request_count::HrmpAcceptedChannelRequestCount, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { ::subxt::storage::address::Address::new_static( "Hrmp", "HrmpAcceptedChannelRequestCount", @@ -30799,7 +31962,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::hrmp_close_channel_requests::HrmpCloseChannelRequests, + types::hrmp_close_channel_requests::HrmpCloseChannelRequests, (), (), ::subxt::storage::address::Yes, @@ -30830,7 +31993,7 @@ pub mod api { >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::hrmp_close_channel_requests::HrmpCloseChannelRequests, + types::hrmp_close_channel_requests::HrmpCloseChannelRequests, ::subxt::storage::address::Yes, (), (), @@ -30853,7 +32016,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::hrmp_close_channel_requests_list::HrmpCloseChannelRequestsList, + types::hrmp_close_channel_requests_list::HrmpCloseChannelRequestsList, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -30877,7 +32040,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::hrmp_watermarks::HrmpWatermarks, + types::hrmp_watermarks::HrmpWatermarks, (), (), ::subxt::storage::address::Yes, @@ -30904,7 +32067,7 @@ pub mod api { >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::hrmp_watermarks::HrmpWatermarks, + types::hrmp_watermarks::HrmpWatermarks, ::subxt::storage::address::Yes, (), (), @@ -30929,7 +32092,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::hrmp_channels::HrmpChannels, + types::hrmp_channels::HrmpChannels, (), (), ::subxt::storage::address::Yes, @@ -30956,7 +32119,7 @@ pub mod api { >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::hrmp_channels::HrmpChannels, + types::hrmp_channels::HrmpChannels, ::subxt::storage::address::Yes, (), (), @@ -30992,7 +32155,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::hrmp_ingress_channels_index::HrmpIngressChannelsIndex, + types::hrmp_ingress_channels_index::HrmpIngressChannelsIndex, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -31029,7 +32192,7 @@ pub mod api { >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::hrmp_ingress_channels_index::HrmpIngressChannelsIndex, + types::hrmp_ingress_channels_index::HrmpIngressChannelsIndex, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -31052,7 +32215,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::hrmp_egress_channels_index::HrmpEgressChannelsIndex, + types::hrmp_egress_channels_index::HrmpEgressChannelsIndex, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -31075,7 +32238,7 @@ pub mod api { >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::hrmp_egress_channels_index::HrmpEgressChannelsIndex, + types::hrmp_egress_channels_index::HrmpEgressChannelsIndex, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -31099,7 +32262,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::hrmp_channel_contents::HrmpChannelContents, + types::hrmp_channel_contents::HrmpChannelContents, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -31125,7 +32288,7 @@ pub mod api { >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::hrmp_channel_contents::HrmpChannelContents, + types::hrmp_channel_contents::HrmpChannelContents, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -31154,7 +32317,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::hrmp_channel_digests::HrmpChannelDigests, + types::hrmp_channel_digests::HrmpChannelDigests, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -31183,7 +32346,7 @@ pub mod api { >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::hrmp_channel_digests::HrmpChannelDigests, + types::hrmp_channel_digests::HrmpChannelDigests, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -31209,7 +32372,7 @@ pub mod api { use super::runtime_types; pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod assignment_keys_unsafe { use super::runtime_types; @@ -31244,7 +32407,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::assignment_keys_unsafe::AssignmentKeysUnsafe, + types::assignment_keys_unsafe::AssignmentKeysUnsafe, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -31265,7 +32428,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::earliest_stored_session::EarliestStoredSession, + types::earliest_stored_session::EarliestStoredSession, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -31288,7 +32451,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::sessions::Sessions, + types::sessions::Sessions, (), (), ::subxt::storage::address::Yes, @@ -31313,7 +32476,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::sessions::Sessions, + types::sessions::Sessions, ::subxt::storage::address::Yes, (), (), @@ -31337,7 +32500,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::account_keys::AccountKeys, + types::account_keys::AccountKeys, (), (), ::subxt::storage::address::Yes, @@ -31360,7 +32523,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::account_keys::AccountKeys, + types::account_keys::AccountKeys, ::subxt::storage::address::Yes, (), (), @@ -31384,7 +32547,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::session_executor_params::SessionExecutorParams, + types::session_executor_params::SessionExecutorParams, (), (), ::subxt::storage::address::Yes, @@ -31407,7 +32570,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::session_executor_params::SessionExecutorParams, + types::session_executor_params::SessionExecutorParams, ::subxt::storage::address::Yes, (), (), @@ -31440,12 +32603,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - pub mod force_unfreeze { - use super::runtime_types; - } - } pub mod types { use super::runtime_types; #[derive( @@ -31547,7 +32704,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod last_pruned_session { use super::runtime_types; @@ -31581,7 +32738,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::last_pruned_session::LastPrunedSession, + types::last_pruned_session::LastPrunedSession, ::subxt::storage::address::Yes, (), (), @@ -31603,7 +32760,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::disputes::Disputes, + types::disputes::Disputes, (), (), ::subxt::storage::address::Yes, @@ -31626,7 +32783,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::disputes::Disputes, + types::disputes::Disputes, (), (), ::subxt::storage::address::Yes, @@ -31654,7 +32811,7 @@ pub mod api { >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::disputes::Disputes, + types::disputes::Disputes, ::subxt::storage::address::Yes, (), (), @@ -31680,7 +32837,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::backers_on_disputes::BackersOnDisputes, + types::backers_on_disputes::BackersOnDisputes, (), (), ::subxt::storage::address::Yes, @@ -31704,7 +32861,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::backers_on_disputes::BackersOnDisputes, + types::backers_on_disputes::BackersOnDisputes, (), (), ::subxt::storage::address::Yes, @@ -31733,7 +32890,7 @@ pub mod api { >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::backers_on_disputes::BackersOnDisputes, + types::backers_on_disputes::BackersOnDisputes, ::subxt::storage::address::Yes, (), (), @@ -31759,7 +32916,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::included::Included, + types::included::Included, (), (), ::subxt::storage::address::Yes, @@ -31783,7 +32940,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::included::Included, + types::included::Included, (), (), ::subxt::storage::address::Yes, @@ -31812,7 +32969,7 @@ pub mod api { >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::included::Included, + types::included::Included, ::subxt::storage::address::Yes, (), (), @@ -31840,7 +32997,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::frozen::Frozen, + types::frozen::Frozen, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -31872,15 +33029,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - pub mod report_dispute_lost_unsigned { - use super::runtime_types; - pub type DisputeProof = - runtime_types::polkadot_primitives::v6::slashing::DisputeProof; - pub type KeyOwnerProof = runtime_types::sp_session::MembershipProof; - } - } pub mod types { use super::runtime_types; #[derive( @@ -31894,10 +33042,15 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ReportDisputeLostUnsigned { - pub dispute_proof: ::std::boxed::Box< - runtime_types::polkadot_primitives::v6::slashing::DisputeProof, - >, - pub key_owner_proof: runtime_types::sp_session::MembershipProof, + pub dispute_proof: + ::std::boxed::Box, + pub key_owner_proof: report_dispute_lost_unsigned::KeyOwnerProof, + } + pub mod report_dispute_lost_unsigned { + use super::runtime_types; + pub type DisputeProof = + runtime_types::polkadot_primitives::v6::slashing::DisputeProof; + pub type KeyOwnerProof = runtime_types::sp_session::MembershipProof; } impl ::subxt::blocks::StaticExtrinsic for ReportDisputeLostUnsigned { const PALLET: &'static str = "ParasSlashing"; @@ -31909,8 +33062,8 @@ pub mod api { #[doc = "See [`Pallet::report_dispute_lost_unsigned`]."] pub fn report_dispute_lost_unsigned( &self, - dispute_proof: alias_types::report_dispute_lost_unsigned::DisputeProof, - key_owner_proof: alias_types::report_dispute_lost_unsigned::KeyOwnerProof, + dispute_proof: types::report_dispute_lost_unsigned::DisputeProof, + key_owner_proof: types::report_dispute_lost_unsigned::KeyOwnerProof, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ParasSlashing", @@ -31931,7 +33084,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod unapplied_slashes { use super::runtime_types; @@ -31950,7 +33103,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::unapplied_slashes::UnappliedSlashes, + types::unapplied_slashes::UnappliedSlashes, (), (), ::subxt::storage::address::Yes, @@ -31973,7 +33126,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::unapplied_slashes::UnappliedSlashes, + types::unapplied_slashes::UnappliedSlashes, (), (), ::subxt::storage::address::Yes, @@ -32001,7 +33154,7 @@ pub mod api { >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::unapplied_slashes::UnappliedSlashes, + types::unapplied_slashes::UnappliedSlashes, ::subxt::storage::address::Yes, (), (), @@ -32026,7 +33179,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::validator_set_counts::ValidatorSetCounts, + types::validator_set_counts::ValidatorSetCounts, (), (), ::subxt::storage::address::Yes, @@ -32048,7 +33201,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::validator_set_counts::ValidatorSetCounts, + types::validator_set_counts::ValidatorSetCounts, ::subxt::storage::address::Yes, (), (), @@ -32080,21 +33233,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - pub mod reap_page { - use super::runtime_types; - pub type MessageOrigin = runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin ; - pub type PageIndex = ::core::primitive::u32; - } - pub mod execute_overweight { - use super::runtime_types; - pub type MessageOrigin = runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin ; - pub type Page = ::core::primitive::u32; - pub type Index = ::core::primitive::u32; - pub type WeightLimit = runtime_types::sp_weights::weight_v2::Weight; - } - } pub mod types { use super::runtime_types; #[derive( @@ -32107,7 +33245,15 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ReapPage { pub message_origin : runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin , pub page_index : :: core :: primitive :: u32 , } + pub struct ReapPage { + pub message_origin: reap_page::MessageOrigin, + pub page_index: reap_page::PageIndex, + } + pub mod reap_page { + use super::runtime_types; + pub type MessageOrigin = runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin ; + pub type PageIndex = ::core::primitive::u32; + } impl ::subxt::blocks::StaticExtrinsic for ReapPage { const PALLET: &'static str = "MessageQueue"; const CALL: &'static str = "reap_page"; @@ -32122,7 +33268,19 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ExecuteOverweight { pub message_origin : runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin , pub page : :: core :: primitive :: u32 , pub index : :: core :: primitive :: u32 , pub weight_limit : runtime_types :: sp_weights :: weight_v2 :: Weight , } + pub struct ExecuteOverweight { + pub message_origin: execute_overweight::MessageOrigin, + pub page: execute_overweight::Page, + pub index: execute_overweight::Index, + pub weight_limit: execute_overweight::WeightLimit, + } + pub mod execute_overweight { + use super::runtime_types; + pub type MessageOrigin = runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin ; + pub type Page = ::core::primitive::u32; + pub type Index = ::core::primitive::u32; + pub type WeightLimit = runtime_types::sp_weights::weight_v2::Weight; + } impl ::subxt::blocks::StaticExtrinsic for ExecuteOverweight { const PALLET: &'static str = "MessageQueue"; const CALL: &'static str = "execute_overweight"; @@ -32133,8 +33291,8 @@ pub mod api { #[doc = "See [`Pallet::reap_page`]."] pub fn reap_page( &self, - message_origin: alias_types::reap_page::MessageOrigin, - page_index: alias_types::reap_page::PageIndex, + message_origin: types::reap_page::MessageOrigin, + page_index: types::reap_page::PageIndex, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "MessageQueue", @@ -32153,10 +33311,10 @@ pub mod api { #[doc = "See [`Pallet::execute_overweight`]."] pub fn execute_overweight( &self, - message_origin: alias_types::execute_overweight::MessageOrigin, - page: alias_types::execute_overweight::Page, - index: alias_types::execute_overweight::Index, - weight_limit: alias_types::execute_overweight::WeightLimit, + message_origin: types::execute_overweight::MessageOrigin, + page: types::execute_overweight::Page, + index: types::execute_overweight::Index, + weight_limit: types::execute_overweight::WeightLimit, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "MessageQueue", @@ -32193,10 +33351,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Message discarded due to an error in the `MessageProcessor` (usually a format error)."] pub struct ProcessingFailed { - pub id: [::core::primitive::u8; 32usize], - pub origin: - runtime_types::polkadot_runtime_parachains::inclusion::AggregateMessageOrigin, - pub error: runtime_types::frame_support::traits::messages::ProcessMessageError, + pub id: processing_failed::Id, + pub origin: processing_failed::Origin, + pub error: processing_failed::Error, + } + pub mod processing_failed { + use super::runtime_types; + pub type Id = [::core::primitive::u8; 32usize]; + pub type Origin = + runtime_types::polkadot_runtime_parachains::inclusion::AggregateMessageOrigin; + pub type Error = + runtime_types::frame_support::traits::messages::ProcessMessageError; } impl ::subxt::events::StaticEvent for ProcessingFailed { const PALLET: &'static str = "MessageQueue"; @@ -32214,11 +33379,18 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Message is processed."] pub struct Processed { - pub id: [::core::primitive::u8; 32usize], - pub origin: - runtime_types::polkadot_runtime_parachains::inclusion::AggregateMessageOrigin, - pub weight_used: runtime_types::sp_weights::weight_v2::Weight, - pub success: ::core::primitive::bool, + pub id: processed::Id, + pub origin: processed::Origin, + pub weight_used: processed::WeightUsed, + pub success: processed::Success, + } + pub mod processed { + use super::runtime_types; + pub type Id = [::core::primitive::u8; 32usize]; + pub type Origin = + runtime_types::polkadot_runtime_parachains::inclusion::AggregateMessageOrigin; + pub type WeightUsed = runtime_types::sp_weights::weight_v2::Weight; + pub type Success = ::core::primitive::bool; } impl ::subxt::events::StaticEvent for Processed { const PALLET: &'static str = "MessageQueue"; @@ -32236,11 +33408,18 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Message placed in overweight queue."] pub struct OverweightEnqueued { - pub id: [::core::primitive::u8; 32usize], - pub origin: - runtime_types::polkadot_runtime_parachains::inclusion::AggregateMessageOrigin, - pub page_index: ::core::primitive::u32, - pub message_index: ::core::primitive::u32, + pub id: overweight_enqueued::Id, + pub origin: overweight_enqueued::Origin, + pub page_index: overweight_enqueued::PageIndex, + pub message_index: overweight_enqueued::MessageIndex, + } + pub mod overweight_enqueued { + use super::runtime_types; + pub type Id = [::core::primitive::u8; 32usize]; + pub type Origin = + runtime_types::polkadot_runtime_parachains::inclusion::AggregateMessageOrigin; + pub type PageIndex = ::core::primitive::u32; + pub type MessageIndex = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for OverweightEnqueued { const PALLET: &'static str = "MessageQueue"; @@ -32258,9 +33437,14 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "This page was reaped."] pub struct PageReaped { - pub origin: - runtime_types::polkadot_runtime_parachains::inclusion::AggregateMessageOrigin, - pub index: ::core::primitive::u32, + pub origin: page_reaped::Origin, + pub index: page_reaped::Index, + } + pub mod page_reaped { + use super::runtime_types; + pub type Origin = + runtime_types::polkadot_runtime_parachains::inclusion::AggregateMessageOrigin; + pub type Index = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for PageReaped { const PALLET: &'static str = "MessageQueue"; @@ -32269,7 +33453,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod book_state_for { use super::runtime_types; @@ -32292,7 +33476,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::book_state_for::BookStateFor, + types::book_state_for::BookStateFor, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -32315,7 +33499,7 @@ pub mod api { _0 : impl :: std :: borrow :: Borrow < runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::book_state_for::BookStateFor, + types::book_state_for::BookStateFor, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -32339,7 +33523,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::service_head::ServiceHead, + types::service_head::ServiceHead, ::subxt::storage::address::Yes, (), (), @@ -32361,7 +33545,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::pages::Pages, + types::pages::Pages, (), (), ::subxt::storage::address::Yes, @@ -32384,7 +33568,7 @@ pub mod api { _0 : impl :: std :: borrow :: Borrow < runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::pages::Pages, + types::pages::Pages, (), (), ::subxt::storage::address::Yes, @@ -32410,7 +33594,7 @@ pub mod api { _1: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::pages::Pages, + types::pages::Pages, ::subxt::storage::address::Yes, (), (), @@ -32496,7 +33680,7 @@ pub mod api { use super::runtime_types; pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; } pub struct StorageApi; @@ -32516,19 +33700,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - pub mod place_order_allow_death { - use super::runtime_types; - pub type MaxAmount = ::core::primitive::u128; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - pub mod place_order_keep_alive { - use super::runtime_types; - pub type MaxAmount = ::core::primitive::u128; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - } pub mod types { use super::runtime_types; #[derive( @@ -32542,8 +33713,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PlaceOrderAllowDeath { - pub max_amount: ::core::primitive::u128, - pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub max_amount: place_order_allow_death::MaxAmount, + pub para_id: place_order_allow_death::ParaId, + } + pub mod place_order_allow_death { + use super::runtime_types; + pub type MaxAmount = ::core::primitive::u128; + pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::blocks::StaticExtrinsic for PlaceOrderAllowDeath { const PALLET: &'static str = "OnDemandAssignmentProvider"; @@ -32560,8 +33736,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PlaceOrderKeepAlive { - pub max_amount: ::core::primitive::u128, - pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub max_amount: place_order_keep_alive::MaxAmount, + pub para_id: place_order_keep_alive::ParaId, + } + pub mod place_order_keep_alive { + use super::runtime_types; + pub type MaxAmount = ::core::primitive::u128; + pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::blocks::StaticExtrinsic for PlaceOrderKeepAlive { const PALLET: &'static str = "OnDemandAssignmentProvider"; @@ -32573,8 +33754,8 @@ pub mod api { #[doc = "See [`Pallet::place_order_allow_death`]."] pub fn place_order_allow_death( &self, - max_amount: alias_types::place_order_allow_death::MaxAmount, - para_id: alias_types::place_order_allow_death::ParaId, + max_amount: types::place_order_allow_death::MaxAmount, + para_id: types::place_order_allow_death::ParaId, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "OnDemandAssignmentProvider", @@ -32594,8 +33775,8 @@ pub mod api { #[doc = "See [`Pallet::place_order_keep_alive`]."] pub fn place_order_keep_alive( &self, - max_amount: alias_types::place_order_keep_alive::MaxAmount, - para_id: alias_types::place_order_keep_alive::ParaId, + max_amount: types::place_order_keep_alive::MaxAmount, + para_id: types::place_order_keep_alive::ParaId, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "OnDemandAssignmentProvider", @@ -32630,8 +33811,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An order was placed at some spot price amount."] pub struct OnDemandOrderPlaced { - pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub spot_price: ::core::primitive::u128, + pub para_id: on_demand_order_placed::ParaId, + pub spot_price: on_demand_order_placed::SpotPrice, + } + pub mod on_demand_order_placed { + use super::runtime_types; + pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type SpotPrice = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for OnDemandOrderPlaced { const PALLET: &'static str = "OnDemandAssignmentProvider"; @@ -32649,7 +33835,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The value of the spot traffic multiplier changed."] pub struct SpotTrafficSet { - pub traffic: runtime_types::sp_arithmetic::fixed_point::FixedU128, + pub traffic: spot_traffic_set::Traffic, + } + pub mod spot_traffic_set { + use super::runtime_types; + pub type Traffic = runtime_types::sp_arithmetic::fixed_point::FixedU128; } impl ::subxt::events::StaticEvent for SpotTrafficSet { const PALLET: &'static str = "OnDemandAssignmentProvider"; @@ -32658,7 +33848,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod spot_traffic { use super::runtime_types; @@ -32683,7 +33873,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::spot_traffic::SpotTraffic, + types::spot_traffic::SpotTraffic, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -32705,7 +33895,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::on_demand_queue::OnDemandQueue, + types::on_demand_queue::OnDemandQueue, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -32729,7 +33919,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::para_id_affinity::ParaIdAffinity, + types::para_id_affinity::ParaIdAffinity, (), (), ::subxt::storage::address::Yes, @@ -32755,7 +33945,7 @@ pub mod api { >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::para_id_affinity::ParaIdAffinity, + types::para_id_affinity::ParaIdAffinity, ::subxt::storage::address::Yes, (), (), @@ -32813,59 +34003,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - pub mod register { - use super::runtime_types; - pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type GenesisHead = - runtime_types::polkadot_parachain_primitives::primitives::HeadData; - pub type ValidationCode = - runtime_types::polkadot_parachain_primitives::primitives::ValidationCode; - } - pub mod force_register { - use super::runtime_types; - pub type Who = ::subxt::utils::AccountId32; - pub type Deposit = ::core::primitive::u128; - pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type GenesisHead = - runtime_types::polkadot_parachain_primitives::primitives::HeadData; - pub type ValidationCode = - runtime_types::polkadot_parachain_primitives::primitives::ValidationCode; - } - pub mod deregister { - use super::runtime_types; - pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - pub mod swap { - use super::runtime_types; - pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Other = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - pub mod remove_lock { - use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - pub mod reserve { - use super::runtime_types; - } - pub mod add_lock { - use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - pub mod schedule_code_upgrade { - use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type NewCode = - runtime_types::polkadot_parachain_primitives::primitives::ValidationCode; - } - pub mod set_current_head { - use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type NewHead = - runtime_types::polkadot_parachain_primitives::primitives::HeadData; - } - } pub mod types { use super::runtime_types; #[derive( @@ -32879,11 +34016,17 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Register { - pub id: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub genesis_head: - runtime_types::polkadot_parachain_primitives::primitives::HeadData, - pub validation_code: - runtime_types::polkadot_parachain_primitives::primitives::ValidationCode, + pub id: register::Id, + pub genesis_head: register::GenesisHead, + pub validation_code: register::ValidationCode, + } + pub mod register { + use super::runtime_types; + pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type GenesisHead = + runtime_types::polkadot_parachain_primitives::primitives::HeadData; + pub type ValidationCode = + runtime_types::polkadot_parachain_primitives::primitives::ValidationCode; } impl ::subxt::blocks::StaticExtrinsic for Register { const PALLET: &'static str = "Registrar"; @@ -32900,13 +34043,21 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceRegister { - pub who: ::subxt::utils::AccountId32, - pub deposit: ::core::primitive::u128, - pub id: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub genesis_head: - runtime_types::polkadot_parachain_primitives::primitives::HeadData, - pub validation_code: - runtime_types::polkadot_parachain_primitives::primitives::ValidationCode, + pub who: force_register::Who, + pub deposit: force_register::Deposit, + pub id: force_register::Id, + pub genesis_head: force_register::GenesisHead, + pub validation_code: force_register::ValidationCode, + } + pub mod force_register { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Deposit = ::core::primitive::u128; + pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type GenesisHead = + runtime_types::polkadot_parachain_primitives::primitives::HeadData; + pub type ValidationCode = + runtime_types::polkadot_parachain_primitives::primitives::ValidationCode; } impl ::subxt::blocks::StaticExtrinsic for ForceRegister { const PALLET: &'static str = "Registrar"; @@ -32923,7 +34074,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Deregister { - pub id: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub id: deregister::Id, + } + pub mod deregister { + use super::runtime_types; + pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::blocks::StaticExtrinsic for Deregister { const PALLET: &'static str = "Registrar"; @@ -32940,8 +34095,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Swap { - pub id: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub other: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub id: swap::Id, + pub other: swap::Other, + } + pub mod swap { + use super::runtime_types; + pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Other = runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::blocks::StaticExtrinsic for Swap { const PALLET: &'static str = "Registrar"; @@ -32958,7 +34118,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RemoveLock { - pub para: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub para: remove_lock::Para, + } + pub mod remove_lock { + use super::runtime_types; + pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::blocks::StaticExtrinsic for RemoveLock { const PALLET: &'static str = "Registrar"; @@ -32990,7 +34154,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AddLock { - pub para: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub para: add_lock::Para, + } + pub mod add_lock { + use super::runtime_types; + pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::blocks::StaticExtrinsic for AddLock { const PALLET: &'static str = "Registrar"; @@ -33007,9 +34175,14 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ScheduleCodeUpgrade { - pub para: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub new_code: - runtime_types::polkadot_parachain_primitives::primitives::ValidationCode, + pub para: schedule_code_upgrade::Para, + pub new_code: schedule_code_upgrade::NewCode, + } + pub mod schedule_code_upgrade { + use super::runtime_types; + pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type NewCode = + runtime_types::polkadot_parachain_primitives::primitives::ValidationCode; } impl ::subxt::blocks::StaticExtrinsic for ScheduleCodeUpgrade { const PALLET: &'static str = "Registrar"; @@ -33026,9 +34199,14 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetCurrentHead { - pub para: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub new_head: - runtime_types::polkadot_parachain_primitives::primitives::HeadData, + pub para: set_current_head::Para, + pub new_head: set_current_head::NewHead, + } + pub mod set_current_head { + use super::runtime_types; + pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type NewHead = + runtime_types::polkadot_parachain_primitives::primitives::HeadData; } impl ::subxt::blocks::StaticExtrinsic for SetCurrentHead { const PALLET: &'static str = "Registrar"; @@ -33040,9 +34218,9 @@ pub mod api { #[doc = "See [`Pallet::register`]."] pub fn register( &self, - id: alias_types::register::Id, - genesis_head: alias_types::register::GenesisHead, - validation_code: alias_types::register::ValidationCode, + id: types::register::Id, + genesis_head: types::register::GenesisHead, + validation_code: types::register::ValidationCode, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Registrar", @@ -33062,11 +34240,11 @@ pub mod api { #[doc = "See [`Pallet::force_register`]."] pub fn force_register( &self, - who: alias_types::force_register::Who, - deposit: alias_types::force_register::Deposit, - id: alias_types::force_register::Id, - genesis_head: alias_types::force_register::GenesisHead, - validation_code: alias_types::force_register::ValidationCode, + who: types::force_register::Who, + deposit: types::force_register::Deposit, + id: types::force_register::Id, + genesis_head: types::force_register::GenesisHead, + validation_code: types::force_register::ValidationCode, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Registrar", @@ -33089,7 +34267,7 @@ pub mod api { #[doc = "See [`Pallet::deregister`]."] pub fn deregister( &self, - id: alias_types::deregister::Id, + id: types::deregister::Id, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Registrar", @@ -33105,8 +34283,8 @@ pub mod api { #[doc = "See [`Pallet::swap`]."] pub fn swap( &self, - id: alias_types::swap::Id, - other: alias_types::swap::Other, + id: types::swap::Id, + other: types::swap::Other, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Registrar", @@ -33123,7 +34301,7 @@ pub mod api { #[doc = "See [`Pallet::remove_lock`]."] pub fn remove_lock( &self, - para: alias_types::remove_lock::Para, + para: types::remove_lock::Para, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Registrar", @@ -33152,7 +34330,7 @@ pub mod api { #[doc = "See [`Pallet::add_lock`]."] pub fn add_lock( &self, - para: alias_types::add_lock::Para, + para: types::add_lock::Para, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Registrar", @@ -33168,8 +34346,8 @@ pub mod api { #[doc = "See [`Pallet::schedule_code_upgrade`]."] pub fn schedule_code_upgrade( &self, - para: alias_types::schedule_code_upgrade::Para, - new_code: alias_types::schedule_code_upgrade::NewCode, + para: types::schedule_code_upgrade::Para, + new_code: types::schedule_code_upgrade::NewCode, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Registrar", @@ -33186,8 +34364,8 @@ pub mod api { #[doc = "See [`Pallet::set_current_head`]."] pub fn set_current_head( &self, - para: alias_types::set_current_head::Para, - new_head: alias_types::set_current_head::NewHead, + para: types::set_current_head::Para, + new_head: types::set_current_head::NewHead, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Registrar", @@ -33218,8 +34396,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Registered { - pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub manager: ::subxt::utils::AccountId32, + pub para_id: registered::ParaId, + pub manager: registered::Manager, + } + pub mod registered { + use super::runtime_types; + pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Manager = ::subxt::utils::AccountId32; } impl ::subxt::events::StaticEvent for Registered { const PALLET: &'static str = "Registrar"; @@ -33236,7 +34419,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Deregistered { - pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub para_id: deregistered::ParaId, + } + pub mod deregistered { + use super::runtime_types; + pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::events::StaticEvent for Deregistered { const PALLET: &'static str = "Registrar"; @@ -33253,8 +34440,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Reserved { - pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub who: ::subxt::utils::AccountId32, + pub para_id: reserved::ParaId, + pub who: reserved::Who, + } + pub mod reserved { + use super::runtime_types; + pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Who = ::subxt::utils::AccountId32; } impl ::subxt::events::StaticEvent for Reserved { const PALLET: &'static str = "Registrar"; @@ -33271,8 +34463,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Swapped { - pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub other_id: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub para_id: swapped::ParaId, + pub other_id: swapped::OtherId, + } + pub mod swapped { + use super::runtime_types; + pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type OtherId = runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::events::StaticEvent for Swapped { const PALLET: &'static str = "Registrar"; @@ -33281,7 +34478,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod pending_swap { use super::runtime_types; @@ -33309,7 +34506,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::pending_swap::PendingSwap, + types::pending_swap::PendingSwap, (), (), ::subxt::storage::address::Yes, @@ -33334,7 +34531,7 @@ pub mod api { >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::pending_swap::PendingSwap, + types::pending_swap::PendingSwap, ::subxt::storage::address::Yes, (), (), @@ -33361,7 +34558,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::paras::Paras, + types::paras::Paras, (), (), ::subxt::storage::address::Yes, @@ -33388,7 +34585,7 @@ pub mod api { >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::paras::Paras, + types::paras::Paras, ::subxt::storage::address::Yes, (), (), @@ -33411,7 +34608,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::next_free_para_id::NextFreeParaId, + types::next_free_para_id::NextFreeParaId, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -33475,25 +34672,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - pub mod force_lease { - use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Leaser = ::subxt::utils::AccountId32; - pub type Amount = ::core::primitive::u128; - pub type PeriodBegin = ::core::primitive::u32; - pub type PeriodCount = ::core::primitive::u32; - } - pub mod clear_all_leases { - use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - pub mod trigger_onboard { - use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - } pub mod types { use super::runtime_types; #[derive( @@ -33507,11 +34685,19 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceLease { - pub para: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub leaser: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, - pub period_begin: ::core::primitive::u32, - pub period_count: ::core::primitive::u32, + pub para: force_lease::Para, + pub leaser: force_lease::Leaser, + pub amount: force_lease::Amount, + pub period_begin: force_lease::PeriodBegin, + pub period_count: force_lease::PeriodCount, + } + pub mod force_lease { + use super::runtime_types; + pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Leaser = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; + pub type PeriodBegin = ::core::primitive::u32; + pub type PeriodCount = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for ForceLease { const PALLET: &'static str = "Slots"; @@ -33528,7 +34714,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ClearAllLeases { - pub para: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub para: clear_all_leases::Para, + } + pub mod clear_all_leases { + use super::runtime_types; + pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::blocks::StaticExtrinsic for ClearAllLeases { const PALLET: &'static str = "Slots"; @@ -33545,7 +34735,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct TriggerOnboard { - pub para: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub para: trigger_onboard::Para, + } + pub mod trigger_onboard { + use super::runtime_types; + pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::blocks::StaticExtrinsic for TriggerOnboard { const PALLET: &'static str = "Slots"; @@ -33557,11 +34751,11 @@ pub mod api { #[doc = "See [`Pallet::force_lease`]."] pub fn force_lease( &self, - para: alias_types::force_lease::Para, - leaser: alias_types::force_lease::Leaser, - amount: alias_types::force_lease::Amount, - period_begin: alias_types::force_lease::PeriodBegin, - period_count: alias_types::force_lease::PeriodCount, + para: types::force_lease::Para, + leaser: types::force_lease::Leaser, + amount: types::force_lease::Amount, + period_begin: types::force_lease::PeriodBegin, + period_count: types::force_lease::PeriodCount, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Slots", @@ -33584,7 +34778,7 @@ pub mod api { #[doc = "See [`Pallet::clear_all_leases`]."] pub fn clear_all_leases( &self, - para: alias_types::clear_all_leases::Para, + para: types::clear_all_leases::Para, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Slots", @@ -33600,7 +34794,7 @@ pub mod api { #[doc = "See [`Pallet::trigger_onboard`]."] pub fn trigger_onboard( &self, - para: alias_types::trigger_onboard::Para, + para: types::trigger_onboard::Para, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Slots", @@ -33632,7 +34826,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A new `[lease_period]` is beginning."] pub struct NewLeasePeriod { - pub lease_period: ::core::primitive::u32, + pub lease_period: new_lease_period::LeasePeriod, + } + pub mod new_lease_period { + use super::runtime_types; + pub type LeasePeriod = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for NewLeasePeriod { const PALLET: &'static str = "Slots"; @@ -33652,12 +34850,21 @@ pub mod api { #[doc = "First balance is any extra amount reserved on top of the para's existing deposit."] #[doc = "Second balance is the total amount reserved."] pub struct Leased { - pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub leaser: ::subxt::utils::AccountId32, - pub period_begin: ::core::primitive::u32, - pub period_count: ::core::primitive::u32, - pub extra_reserved: ::core::primitive::u128, - pub total_amount: ::core::primitive::u128, + pub para_id: leased::ParaId, + pub leaser: leased::Leaser, + pub period_begin: leased::PeriodBegin, + pub period_count: leased::PeriodCount, + pub extra_reserved: leased::ExtraReserved, + pub total_amount: leased::TotalAmount, + } + pub mod leased { + use super::runtime_types; + pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Leaser = ::subxt::utils::AccountId32; + pub type PeriodBegin = ::core::primitive::u32; + pub type PeriodCount = ::core::primitive::u32; + pub type ExtraReserved = ::core::primitive::u128; + pub type TotalAmount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Leased { const PALLET: &'static str = "Slots"; @@ -33666,7 +34873,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod leases { use super::runtime_types; @@ -33700,7 +34907,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::leases::Leases, + types::leases::Leases, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -33740,7 +34947,7 @@ pub mod api { >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::leases::Leases, + types::leases::Leases, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -33805,25 +35012,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - pub mod new_auction { - use super::runtime_types; - pub type Duration = ::core::primitive::u32; - pub type LeasePeriodIndex = ::core::primitive::u32; - } - pub mod bid { - use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type AuctionIndex = ::core::primitive::u32; - pub type FirstSlot = ::core::primitive::u32; - pub type LastSlot = ::core::primitive::u32; - pub type Amount = ::core::primitive::u128; - } - pub mod cancel_auction { - use super::runtime_types; - } - } pub mod types { use super::runtime_types; #[derive( @@ -33838,9 +35026,14 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct NewAuction { #[codec(compact)] - pub duration: ::core::primitive::u32, + pub duration: new_auction::Duration, #[codec(compact)] - pub lease_period_index: ::core::primitive::u32, + pub lease_period_index: new_auction::LeasePeriodIndex, + } + pub mod new_auction { + use super::runtime_types; + pub type Duration = ::core::primitive::u32; + pub type LeasePeriodIndex = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for NewAuction { const PALLET: &'static str = "Auctions"; @@ -33858,15 +35051,23 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Bid { #[codec(compact)] - pub para: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub para: bid::Para, #[codec(compact)] - pub auction_index: ::core::primitive::u32, + pub auction_index: bid::AuctionIndex, #[codec(compact)] - pub first_slot: ::core::primitive::u32, + pub first_slot: bid::FirstSlot, #[codec(compact)] - pub last_slot: ::core::primitive::u32, + pub last_slot: bid::LastSlot, #[codec(compact)] - pub amount: ::core::primitive::u128, + pub amount: bid::Amount, + } + pub mod bid { + use super::runtime_types; + pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type AuctionIndex = ::core::primitive::u32; + pub type FirstSlot = ::core::primitive::u32; + pub type LastSlot = ::core::primitive::u32; + pub type Amount = ::core::primitive::u128; } impl ::subxt::blocks::StaticExtrinsic for Bid { const PALLET: &'static str = "Auctions"; @@ -33893,8 +35094,8 @@ pub mod api { #[doc = "See [`Pallet::new_auction`]."] pub fn new_auction( &self, - duration: alias_types::new_auction::Duration, - lease_period_index: alias_types::new_auction::LeasePeriodIndex, + duration: types::new_auction::Duration, + lease_period_index: types::new_auction::LeasePeriodIndex, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Auctions", @@ -33914,11 +35115,11 @@ pub mod api { #[doc = "See [`Pallet::bid`]."] pub fn bid( &self, - para: alias_types::bid::Para, - auction_index: alias_types::bid::AuctionIndex, - first_slot: alias_types::bid::FirstSlot, - last_slot: alias_types::bid::LastSlot, - amount: alias_types::bid::Amount, + para: types::bid::Para, + auction_index: types::bid::AuctionIndex, + first_slot: types::bid::FirstSlot, + last_slot: types::bid::LastSlot, + amount: types::bid::Amount, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Auctions", @@ -33969,9 +35170,15 @@ pub mod api { #[doc = "An auction started. Provides its index and the block number where it will begin to"] #[doc = "close and the first lease period of the quadruplet that is auctioned."] pub struct AuctionStarted { - pub auction_index: ::core::primitive::u32, - pub lease_period: ::core::primitive::u32, - pub ending: ::core::primitive::u32, + pub auction_index: auction_started::AuctionIndex, + pub lease_period: auction_started::LeasePeriod, + pub ending: auction_started::Ending, + } + pub mod auction_started { + use super::runtime_types; + pub type AuctionIndex = ::core::primitive::u32; + pub type LeasePeriod = ::core::primitive::u32; + pub type Ending = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for AuctionStarted { const PALLET: &'static str = "Auctions"; @@ -33990,7 +35197,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An auction ended. All funds become unreserved."] pub struct AuctionClosed { - pub auction_index: ::core::primitive::u32, + pub auction_index: auction_closed::AuctionIndex, + } + pub mod auction_closed { + use super::runtime_types; + pub type AuctionIndex = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for AuctionClosed { const PALLET: &'static str = "Auctions"; @@ -34009,9 +35220,15 @@ pub mod api { #[doc = "Funds were reserved for a winning bid. First balance is the extra amount reserved."] #[doc = "Second is the total."] pub struct Reserved { - pub bidder: ::subxt::utils::AccountId32, - pub extra_reserved: ::core::primitive::u128, - pub total_amount: ::core::primitive::u128, + pub bidder: reserved::Bidder, + pub extra_reserved: reserved::ExtraReserved, + pub total_amount: reserved::TotalAmount, + } + pub mod reserved { + use super::runtime_types; + pub type Bidder = ::subxt::utils::AccountId32; + pub type ExtraReserved = ::core::primitive::u128; + pub type TotalAmount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Reserved { const PALLET: &'static str = "Auctions"; @@ -34029,8 +35246,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Funds were unreserved since bidder is no longer active. `[bidder, amount]`"] pub struct Unreserved { - pub bidder: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, + pub bidder: unreserved::Bidder, + pub amount: unreserved::Amount, + } + pub mod unreserved { + use super::runtime_types; + pub type Bidder = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Unreserved { const PALLET: &'static str = "Auctions"; @@ -34049,9 +35271,15 @@ pub mod api { #[doc = "Someone attempted to lease the same slot twice for a parachain. The amount is held in"] #[doc = "reserve but no parachain slot has been leased."] pub struct ReserveConfiscated { - pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub leaser: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, + pub para_id: reserve_confiscated::ParaId, + pub leaser: reserve_confiscated::Leaser, + pub amount: reserve_confiscated::Amount, + } + pub mod reserve_confiscated { + use super::runtime_types; + pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Leaser = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for ReserveConfiscated { const PALLET: &'static str = "Auctions"; @@ -34069,11 +35297,19 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A new bid has been accepted as the current winner."] pub struct BidAccepted { - pub bidder: ::subxt::utils::AccountId32, - pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub amount: ::core::primitive::u128, - pub first_slot: ::core::primitive::u32, - pub last_slot: ::core::primitive::u32, + pub bidder: bid_accepted::Bidder, + pub para_id: bid_accepted::ParaId, + pub amount: bid_accepted::Amount, + pub first_slot: bid_accepted::FirstSlot, + pub last_slot: bid_accepted::LastSlot, + } + pub mod bid_accepted { + use super::runtime_types; + pub type Bidder = ::subxt::utils::AccountId32; + pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Amount = ::core::primitive::u128; + pub type FirstSlot = ::core::primitive::u32; + pub type LastSlot = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for BidAccepted { const PALLET: &'static str = "Auctions"; @@ -34092,8 +35328,13 @@ pub mod api { #[doc = "The winning offset was chosen for an auction. This will map into the `Winning` storage"] #[doc = "map."] pub struct WinningOffset { - pub auction_index: ::core::primitive::u32, - pub block_number: ::core::primitive::u32, + pub auction_index: winning_offset::AuctionIndex, + pub block_number: winning_offset::BlockNumber, + } + pub mod winning_offset { + use super::runtime_types; + pub type AuctionIndex = ::core::primitive::u32; + pub type BlockNumber = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for WinningOffset { const PALLET: &'static str = "Auctions"; @@ -34102,7 +35343,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod auction_counter { use super::runtime_types; @@ -34132,7 +35373,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::auction_counter::AuctionCounter, + types::auction_counter::AuctionCounter, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -34157,7 +35398,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::auction_info::AuctionInfo, + types::auction_info::AuctionInfo, ::subxt::storage::address::Yes, (), (), @@ -34179,7 +35420,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::reserved_amounts::ReservedAmounts, + types::reserved_amounts::ReservedAmounts, (), (), ::subxt::storage::address::Yes, @@ -34203,7 +35444,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::reserved_amounts::ReservedAmounts, + types::reserved_amounts::ReservedAmounts, (), (), ::subxt::storage::address::Yes, @@ -34232,7 +35473,7 @@ pub mod api { >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::reserved_amounts::ReservedAmounts, + types::reserved_amounts::ReservedAmounts, ::subxt::storage::address::Yes, (), (), @@ -34259,7 +35500,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::winning::Winning, + types::winning::Winning, (), (), ::subxt::storage::address::Yes, @@ -34283,7 +35524,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::winning::Winning, + types::winning::Winning, ::subxt::storage::address::Yes, (), (), @@ -34377,64 +35618,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - pub mod create { - use super::runtime_types; - pub type Index = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Cap = ::core::primitive::u128; - pub type FirstPeriod = ::core::primitive::u32; - pub type LastPeriod = ::core::primitive::u32; - pub type End = ::core::primitive::u32; - pub type Verifier = - ::core::option::Option; - } - pub mod contribute { - use super::runtime_types; - pub type Index = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Value = ::core::primitive::u128; - pub type Signature = - ::core::option::Option; - } - pub mod withdraw { - use super::runtime_types; - pub type Who = ::subxt::utils::AccountId32; - pub type Index = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - pub mod refund { - use super::runtime_types; - pub type Index = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - pub mod dissolve { - use super::runtime_types; - pub type Index = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - pub mod edit { - use super::runtime_types; - pub type Index = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Cap = ::core::primitive::u128; - pub type FirstPeriod = ::core::primitive::u32; - pub type LastPeriod = ::core::primitive::u32; - pub type End = ::core::primitive::u32; - pub type Verifier = - ::core::option::Option; - } - pub mod add_memo { - use super::runtime_types; - pub type Index = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Memo = ::std::vec::Vec<::core::primitive::u8>; - } - pub mod poke { - use super::runtime_types; - pub type Index = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - pub mod contribute_all { - use super::runtime_types; - pub type Index = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Signature = - ::core::option::Option; - } - } pub mod types { use super::runtime_types; #[derive( @@ -34449,16 +35632,26 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Create { #[codec(compact)] - pub index: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub index: create::Index, #[codec(compact)] - pub cap: ::core::primitive::u128, + pub cap: create::Cap, #[codec(compact)] - pub first_period: ::core::primitive::u32, + pub first_period: create::FirstPeriod, #[codec(compact)] - pub last_period: ::core::primitive::u32, + pub last_period: create::LastPeriod, #[codec(compact)] - pub end: ::core::primitive::u32, - pub verifier: ::core::option::Option, + pub end: create::End, + pub verifier: create::Verifier, + } + pub mod create { + use super::runtime_types; + pub type Index = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Cap = ::core::primitive::u128; + pub type FirstPeriod = ::core::primitive::u32; + pub type LastPeriod = ::core::primitive::u32; + pub type End = ::core::primitive::u32; + pub type Verifier = + ::core::option::Option; } impl ::subxt::blocks::StaticExtrinsic for Create { const PALLET: &'static str = "Crowdloan"; @@ -34476,11 +35669,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Contribute { #[codec(compact)] - pub index: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub index: contribute::Index, #[codec(compact)] - pub value: ::core::primitive::u128, - pub signature: - ::core::option::Option, + pub value: contribute::Value, + pub signature: contribute::Signature, + } + pub mod contribute { + use super::runtime_types; + pub type Index = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Value = ::core::primitive::u128; + pub type Signature = + ::core::option::Option; } impl ::subxt::blocks::StaticExtrinsic for Contribute { const PALLET: &'static str = "Crowdloan"; @@ -34497,9 +35696,14 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Withdraw { - pub who: ::subxt::utils::AccountId32, + pub who: withdraw::Who, #[codec(compact)] - pub index: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub index: withdraw::Index, + } + pub mod withdraw { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Index = runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::blocks::StaticExtrinsic for Withdraw { const PALLET: &'static str = "Crowdloan"; @@ -34517,7 +35721,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Refund { #[codec(compact)] - pub index: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub index: refund::Index, + } + pub mod refund { + use super::runtime_types; + pub type Index = runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::blocks::StaticExtrinsic for Refund { const PALLET: &'static str = "Crowdloan"; @@ -34535,7 +35743,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Dissolve { #[codec(compact)] - pub index: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub index: dissolve::Index, + } + pub mod dissolve { + use super::runtime_types; + pub type Index = runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::blocks::StaticExtrinsic for Dissolve { const PALLET: &'static str = "Crowdloan"; @@ -34553,16 +35765,26 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Edit { #[codec(compact)] - pub index: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub index: edit::Index, #[codec(compact)] - pub cap: ::core::primitive::u128, + pub cap: edit::Cap, #[codec(compact)] - pub first_period: ::core::primitive::u32, + pub first_period: edit::FirstPeriod, #[codec(compact)] - pub last_period: ::core::primitive::u32, + pub last_period: edit::LastPeriod, #[codec(compact)] - pub end: ::core::primitive::u32, - pub verifier: ::core::option::Option, + pub end: edit::End, + pub verifier: edit::Verifier, + } + pub mod edit { + use super::runtime_types; + pub type Index = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Cap = ::core::primitive::u128; + pub type FirstPeriod = ::core::primitive::u32; + pub type LastPeriod = ::core::primitive::u32; + pub type End = ::core::primitive::u32; + pub type Verifier = + ::core::option::Option; } impl ::subxt::blocks::StaticExtrinsic for Edit { const PALLET: &'static str = "Crowdloan"; @@ -34579,8 +35801,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AddMemo { - pub index: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub memo: ::std::vec::Vec<::core::primitive::u8>, + pub index: add_memo::Index, + pub memo: add_memo::Memo, + } + pub mod add_memo { + use super::runtime_types; + pub type Index = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Memo = ::std::vec::Vec<::core::primitive::u8>; } impl ::subxt::blocks::StaticExtrinsic for AddMemo { const PALLET: &'static str = "Crowdloan"; @@ -34597,7 +35824,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Poke { - pub index: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub index: poke::Index, + } + pub mod poke { + use super::runtime_types; + pub type Index = runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::blocks::StaticExtrinsic for Poke { const PALLET: &'static str = "Crowdloan"; @@ -34615,9 +35846,14 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ContributeAll { #[codec(compact)] - pub index: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub signature: - ::core::option::Option, + pub index: contribute_all::Index, + pub signature: contribute_all::Signature, + } + pub mod contribute_all { + use super::runtime_types; + pub type Index = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Signature = + ::core::option::Option; } impl ::subxt::blocks::StaticExtrinsic for ContributeAll { const PALLET: &'static str = "Crowdloan"; @@ -34629,12 +35865,12 @@ pub mod api { #[doc = "See [`Pallet::create`]."] pub fn create( &self, - index: alias_types::create::Index, - cap: alias_types::create::Cap, - first_period: alias_types::create::FirstPeriod, - last_period: alias_types::create::LastPeriod, - end: alias_types::create::End, - verifier: alias_types::create::Verifier, + index: types::create::Index, + cap: types::create::Cap, + first_period: types::create::FirstPeriod, + last_period: types::create::LastPeriod, + end: types::create::End, + verifier: types::create::Verifier, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Crowdloan", @@ -34657,9 +35893,9 @@ pub mod api { #[doc = "See [`Pallet::contribute`]."] pub fn contribute( &self, - index: alias_types::contribute::Index, - value: alias_types::contribute::Value, - signature: alias_types::contribute::Signature, + index: types::contribute::Index, + value: types::contribute::Value, + signature: types::contribute::Signature, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Crowdloan", @@ -34680,8 +35916,8 @@ pub mod api { #[doc = "See [`Pallet::withdraw`]."] pub fn withdraw( &self, - who: alias_types::withdraw::Who, - index: alias_types::withdraw::Index, + who: types::withdraw::Who, + index: types::withdraw::Index, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Crowdloan", @@ -34697,7 +35933,7 @@ pub mod api { #[doc = "See [`Pallet::refund`]."] pub fn refund( &self, - index: alias_types::refund::Index, + index: types::refund::Index, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Crowdloan", @@ -34714,7 +35950,7 @@ pub mod api { #[doc = "See [`Pallet::dissolve`]."] pub fn dissolve( &self, - index: alias_types::dissolve::Index, + index: types::dissolve::Index, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Crowdloan", @@ -34731,12 +35967,12 @@ pub mod api { #[doc = "See [`Pallet::edit`]."] pub fn edit( &self, - index: alias_types::edit::Index, - cap: alias_types::edit::Cap, - first_period: alias_types::edit::FirstPeriod, - last_period: alias_types::edit::LastPeriod, - end: alias_types::edit::End, - verifier: alias_types::edit::Verifier, + index: types::edit::Index, + cap: types::edit::Cap, + first_period: types::edit::FirstPeriod, + last_period: types::edit::LastPeriod, + end: types::edit::End, + verifier: types::edit::Verifier, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Crowdloan", @@ -34760,8 +35996,8 @@ pub mod api { #[doc = "See [`Pallet::add_memo`]."] pub fn add_memo( &self, - index: alias_types::add_memo::Index, - memo: alias_types::add_memo::Memo, + index: types::add_memo::Index, + memo: types::add_memo::Memo, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Crowdloan", @@ -34776,10 +36012,7 @@ pub mod api { ) } #[doc = "See [`Pallet::poke`]."] - pub fn poke( - &self, - index: alias_types::poke::Index, - ) -> ::subxt::tx::Payload { + pub fn poke(&self, index: types::poke::Index) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Crowdloan", "poke", @@ -34795,8 +36028,8 @@ pub mod api { #[doc = "See [`Pallet::contribute_all`]."] pub fn contribute_all( &self, - index: alias_types::contribute_all::Index, - signature: alias_types::contribute_all::Signature, + index: types::contribute_all::Index, + signature: types::contribute_all::Signature, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Crowdloan", @@ -34827,7 +36060,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Create a new crowdloaning campaign."] pub struct Created { - pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub para_id: created::ParaId, + } + pub mod created { + use super::runtime_types; + pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::events::StaticEvent for Created { const PALLET: &'static str = "Crowdloan"; @@ -34845,9 +36082,15 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contributed to a crowd sale."] pub struct Contributed { - pub who: ::subxt::utils::AccountId32, - pub fund_index: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub amount: ::core::primitive::u128, + pub who: contributed::Who, + pub fund_index: contributed::FundIndex, + pub amount: contributed::Amount, + } + pub mod contributed { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type FundIndex = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Contributed { const PALLET: &'static str = "Crowdloan"; @@ -34865,9 +36108,15 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Withdrew full balance of a contributor."] pub struct Withdrew { - pub who: ::subxt::utils::AccountId32, - pub fund_index: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub amount: ::core::primitive::u128, + pub who: withdrew::Who, + pub fund_index: withdrew::FundIndex, + pub amount: withdrew::Amount, + } + pub mod withdrew { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type FundIndex = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Withdrew { const PALLET: &'static str = "Crowdloan"; @@ -34886,7 +36135,11 @@ pub mod api { #[doc = "The loans in a fund have been partially dissolved, i.e. there are some left"] #[doc = "over child keys that still need to be killed."] pub struct PartiallyRefunded { - pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub para_id: partially_refunded::ParaId, + } + pub mod partially_refunded { + use super::runtime_types; + pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::events::StaticEvent for PartiallyRefunded { const PALLET: &'static str = "Crowdloan"; @@ -34904,7 +36157,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "All loans in a fund have been refunded."] pub struct AllRefunded { - pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub para_id: all_refunded::ParaId, + } + pub mod all_refunded { + use super::runtime_types; + pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::events::StaticEvent for AllRefunded { const PALLET: &'static str = "Crowdloan"; @@ -34922,7 +36179,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Fund is dissolved."] pub struct Dissolved { - pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub para_id: dissolved::ParaId, + } + pub mod dissolved { + use super::runtime_types; + pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::events::StaticEvent for Dissolved { const PALLET: &'static str = "Crowdloan"; @@ -34940,8 +36201,14 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The result of trying to submit a new bid to the Slots pallet."] pub struct HandleBidResult { - pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + pub para_id: handle_bid_result::ParaId, + pub result: handle_bid_result::Result, + } + pub mod handle_bid_result { + use super::runtime_types; + pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Result = + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>; } impl ::subxt::events::StaticEvent for HandleBidResult { const PALLET: &'static str = "Crowdloan"; @@ -34959,7 +36226,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The configuration to a crowdloan has been edited."] pub struct Edited { - pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub para_id: edited::ParaId, + } + pub mod edited { + use super::runtime_types; + pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::events::StaticEvent for Edited { const PALLET: &'static str = "Crowdloan"; @@ -34977,9 +36248,15 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A memo has been updated."] pub struct MemoUpdated { - pub who: ::subxt::utils::AccountId32, - pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub memo: ::std::vec::Vec<::core::primitive::u8>, + pub who: memo_updated::Who, + pub para_id: memo_updated::ParaId, + pub memo: memo_updated::Memo, + } + pub mod memo_updated { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Memo = ::std::vec::Vec<::core::primitive::u8>; } impl ::subxt::events::StaticEvent for MemoUpdated { const PALLET: &'static str = "Crowdloan"; @@ -34997,7 +36274,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A parachain has been moved to `NewRaise`"] pub struct AddedToNewRaise { - pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub para_id: added_to_new_raise::ParaId, + } + pub mod added_to_new_raise { + use super::runtime_types; + pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::events::StaticEvent for AddedToNewRaise { const PALLET: &'static str = "Crowdloan"; @@ -35006,7 +36287,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod funds { use super::runtime_types; @@ -35039,7 +36320,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::funds::Funds, + types::funds::Funds, (), (), ::subxt::storage::address::Yes, @@ -35064,7 +36345,7 @@ pub mod api { >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::funds::Funds, + types::funds::Funds, ::subxt::storage::address::Yes, (), (), @@ -35089,7 +36370,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::new_raise::NewRaise, + types::new_raise::NewRaise, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -35111,7 +36392,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::endings_count::EndingsCount, + types::endings_count::EndingsCount, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -35132,7 +36413,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::next_fund_index::NextFundIndex, + types::next_fund_index::NextFundIndex, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -35215,71 +36496,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - pub mod send { - use super::runtime_types; - pub type Dest = runtime_types::xcm::VersionedMultiLocation; - pub type Message = runtime_types::xcm::VersionedXcm; - } - pub mod teleport_assets { - use super::runtime_types; - pub type Dest = runtime_types::xcm::VersionedMultiLocation; - pub type Beneficiary = runtime_types::xcm::VersionedMultiLocation; - pub type Assets = runtime_types::xcm::VersionedMultiAssets; - pub type FeeAssetItem = ::core::primitive::u32; - } - pub mod reserve_transfer_assets { - use super::runtime_types; - pub type Dest = runtime_types::xcm::VersionedMultiLocation; - pub type Beneficiary = runtime_types::xcm::VersionedMultiLocation; - pub type Assets = runtime_types::xcm::VersionedMultiAssets; - pub type FeeAssetItem = ::core::primitive::u32; - } - pub mod execute { - use super::runtime_types; - pub type Message = runtime_types::xcm::VersionedXcm2; - pub type MaxWeight = runtime_types::sp_weights::weight_v2::Weight; - } - pub mod force_xcm_version { - use super::runtime_types; - pub type Location = - runtime_types::staging_xcm::v3::multilocation::MultiLocation; - pub type Version = ::core::primitive::u32; - } - pub mod force_default_xcm_version { - use super::runtime_types; - pub type MaybeXcmVersion = ::core::option::Option<::core::primitive::u32>; - } - pub mod force_subscribe_version_notify { - use super::runtime_types; - pub type Location = runtime_types::xcm::VersionedMultiLocation; - } - pub mod force_unsubscribe_version_notify { - use super::runtime_types; - pub type Location = runtime_types::xcm::VersionedMultiLocation; - } - pub mod limited_reserve_transfer_assets { - use super::runtime_types; - pub type Dest = runtime_types::xcm::VersionedMultiLocation; - pub type Beneficiary = runtime_types::xcm::VersionedMultiLocation; - pub type Assets = runtime_types::xcm::VersionedMultiAssets; - pub type FeeAssetItem = ::core::primitive::u32; - pub type WeightLimit = runtime_types::xcm::v3::WeightLimit; - } - pub mod limited_teleport_assets { - use super::runtime_types; - pub type Dest = runtime_types::xcm::VersionedMultiLocation; - pub type Beneficiary = runtime_types::xcm::VersionedMultiLocation; - pub type Assets = runtime_types::xcm::VersionedMultiAssets; - pub type FeeAssetItem = ::core::primitive::u32; - pub type WeightLimit = runtime_types::xcm::v3::WeightLimit; - } - pub mod force_suspension { - use super::runtime_types; - pub type Suspended = ::core::primitive::bool; - } - } pub mod types { use super::runtime_types; #[derive( @@ -35293,8 +36509,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Send { - pub dest: ::std::boxed::Box, - pub message: ::std::boxed::Box, + pub dest: ::std::boxed::Box, + pub message: ::std::boxed::Box, + } + pub mod send { + use super::runtime_types; + pub type Dest = runtime_types::xcm::VersionedMultiLocation; + pub type Message = runtime_types::xcm::VersionedXcm; } impl ::subxt::blocks::StaticExtrinsic for Send { const PALLET: &'static str = "XcmPallet"; @@ -35311,10 +36532,17 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] 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 dest: ::std::boxed::Box, + pub beneficiary: ::std::boxed::Box, + pub assets: ::std::boxed::Box, + pub fee_asset_item: teleport_assets::FeeAssetItem, + } + pub mod teleport_assets { + use super::runtime_types; + pub type Dest = runtime_types::xcm::VersionedMultiLocation; + pub type Beneficiary = runtime_types::xcm::VersionedMultiLocation; + pub type Assets = runtime_types::xcm::VersionedMultiAssets; + pub type FeeAssetItem = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for TeleportAssets { const PALLET: &'static str = "XcmPallet"; @@ -35331,10 +36559,17 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] 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 dest: ::std::boxed::Box, + pub beneficiary: ::std::boxed::Box, + pub assets: ::std::boxed::Box, + pub fee_asset_item: reserve_transfer_assets::FeeAssetItem, + } + pub mod reserve_transfer_assets { + use super::runtime_types; + pub type Dest = runtime_types::xcm::VersionedMultiLocation; + pub type Beneficiary = runtime_types::xcm::VersionedMultiLocation; + pub type Assets = runtime_types::xcm::VersionedMultiAssets; + pub type FeeAssetItem = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for ReserveTransferAssets { const PALLET: &'static str = "XcmPallet"; @@ -35351,8 +36586,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Execute { - pub message: ::std::boxed::Box, - pub max_weight: runtime_types::sp_weights::weight_v2::Weight, + pub message: ::std::boxed::Box, + pub max_weight: execute::MaxWeight, + } + pub mod execute { + use super::runtime_types; + pub type Message = runtime_types::xcm::VersionedXcm2; + pub type MaxWeight = runtime_types::sp_weights::weight_v2::Weight; } impl ::subxt::blocks::StaticExtrinsic for Execute { const PALLET: &'static str = "XcmPallet"; @@ -35369,10 +36609,14 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceXcmVersion { - pub location: ::std::boxed::Box< - runtime_types::staging_xcm::v3::multilocation::MultiLocation, - >, - pub version: ::core::primitive::u32, + pub location: ::std::boxed::Box, + pub version: force_xcm_version::Version, + } + pub mod force_xcm_version { + use super::runtime_types; + pub type Location = + runtime_types::staging_xcm::v3::multilocation::MultiLocation; + pub type Version = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for ForceXcmVersion { const PALLET: &'static str = "XcmPallet"; @@ -35389,7 +36633,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceDefaultXcmVersion { - pub maybe_xcm_version: ::core::option::Option<::core::primitive::u32>, + pub maybe_xcm_version: force_default_xcm_version::MaybeXcmVersion, + } + pub mod force_default_xcm_version { + use super::runtime_types; + pub type MaybeXcmVersion = ::core::option::Option<::core::primitive::u32>; } impl ::subxt::blocks::StaticExtrinsic for ForceDefaultXcmVersion { const PALLET: &'static str = "XcmPallet"; @@ -35406,7 +36654,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceSubscribeVersionNotify { - pub location: ::std::boxed::Box, + pub location: ::std::boxed::Box, + } + pub mod force_subscribe_version_notify { + use super::runtime_types; + pub type Location = runtime_types::xcm::VersionedMultiLocation; } impl ::subxt::blocks::StaticExtrinsic for ForceSubscribeVersionNotify { const PALLET: &'static str = "XcmPallet"; @@ -35423,7 +36675,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceUnsubscribeVersionNotify { - pub location: ::std::boxed::Box, + pub location: ::std::boxed::Box, + } + pub mod force_unsubscribe_version_notify { + use super::runtime_types; + pub type Location = runtime_types::xcm::VersionedMultiLocation; } impl ::subxt::blocks::StaticExtrinsic for ForceUnsubscribeVersionNotify { const PALLET: &'static str = "XcmPallet"; @@ -35440,11 +36696,20 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] 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::v3::WeightLimit, + pub dest: ::std::boxed::Box, + pub beneficiary: + ::std::boxed::Box, + pub assets: ::std::boxed::Box, + pub fee_asset_item: limited_reserve_transfer_assets::FeeAssetItem, + pub weight_limit: limited_reserve_transfer_assets::WeightLimit, + } + pub mod limited_reserve_transfer_assets { + use super::runtime_types; + pub type Dest = runtime_types::xcm::VersionedMultiLocation; + pub type Beneficiary = runtime_types::xcm::VersionedMultiLocation; + pub type Assets = runtime_types::xcm::VersionedMultiAssets; + pub type FeeAssetItem = ::core::primitive::u32; + pub type WeightLimit = runtime_types::xcm::v3::WeightLimit; } impl ::subxt::blocks::StaticExtrinsic for LimitedReserveTransferAssets { const PALLET: &'static str = "XcmPallet"; @@ -35461,11 +36726,19 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] 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::v3::WeightLimit, + pub dest: ::std::boxed::Box, + pub beneficiary: ::std::boxed::Box, + pub assets: ::std::boxed::Box, + pub fee_asset_item: limited_teleport_assets::FeeAssetItem, + pub weight_limit: limited_teleport_assets::WeightLimit, + } + pub mod limited_teleport_assets { + use super::runtime_types; + pub type Dest = runtime_types::xcm::VersionedMultiLocation; + pub type Beneficiary = runtime_types::xcm::VersionedMultiLocation; + pub type Assets = runtime_types::xcm::VersionedMultiAssets; + pub type FeeAssetItem = ::core::primitive::u32; + pub type WeightLimit = runtime_types::xcm::v3::WeightLimit; } impl ::subxt::blocks::StaticExtrinsic for LimitedTeleportAssets { const PALLET: &'static str = "XcmPallet"; @@ -35482,7 +36755,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceSuspension { - pub suspended: ::core::primitive::bool, + pub suspended: force_suspension::Suspended, + } + pub mod force_suspension { + use super::runtime_types; + pub type Suspended = ::core::primitive::bool; } impl ::subxt::blocks::StaticExtrinsic for ForceSuspension { const PALLET: &'static str = "XcmPallet"; @@ -35494,8 +36771,8 @@ pub mod api { #[doc = "See [`Pallet::send`]."] pub fn send( &self, - dest: alias_types::send::Dest, - message: alias_types::send::Message, + dest: types::send::Dest, + message: types::send::Message, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "XcmPallet", @@ -35514,10 +36791,10 @@ pub mod api { #[doc = "See [`Pallet::teleport_assets`]."] pub fn teleport_assets( &self, - dest: alias_types::teleport_assets::Dest, - beneficiary: alias_types::teleport_assets::Beneficiary, - assets: alias_types::teleport_assets::Assets, - fee_asset_item: alias_types::teleport_assets::FeeAssetItem, + dest: types::teleport_assets::Dest, + beneficiary: types::teleport_assets::Beneficiary, + assets: types::teleport_assets::Assets, + fee_asset_item: types::teleport_assets::FeeAssetItem, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "XcmPallet", @@ -35538,10 +36815,10 @@ pub mod api { #[doc = "See [`Pallet::reserve_transfer_assets`]."] pub fn reserve_transfer_assets( &self, - dest: alias_types::reserve_transfer_assets::Dest, - beneficiary: alias_types::reserve_transfer_assets::Beneficiary, - assets: alias_types::reserve_transfer_assets::Assets, - fee_asset_item: alias_types::reserve_transfer_assets::FeeAssetItem, + dest: types::reserve_transfer_assets::Dest, + beneficiary: types::reserve_transfer_assets::Beneficiary, + assets: types::reserve_transfer_assets::Assets, + fee_asset_item: types::reserve_transfer_assets::FeeAssetItem, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "XcmPallet", @@ -35562,8 +36839,8 @@ pub mod api { #[doc = "See [`Pallet::execute`]."] pub fn execute( &self, - message: alias_types::execute::Message, - max_weight: alias_types::execute::MaxWeight, + message: types::execute::Message, + max_weight: types::execute::MaxWeight, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "XcmPallet", @@ -35582,8 +36859,8 @@ pub mod api { #[doc = "See [`Pallet::force_xcm_version`]."] pub fn force_xcm_version( &self, - location: alias_types::force_xcm_version::Location, - version: alias_types::force_xcm_version::Version, + location: types::force_xcm_version::Location, + version: types::force_xcm_version::Version, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "XcmPallet", @@ -35602,7 +36879,7 @@ pub mod api { #[doc = "See [`Pallet::force_default_xcm_version`]."] pub fn force_default_xcm_version( &self, - maybe_xcm_version: alias_types::force_default_xcm_version::MaybeXcmVersion, + maybe_xcm_version: types::force_default_xcm_version::MaybeXcmVersion, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "XcmPallet", @@ -35619,7 +36896,7 @@ pub mod api { #[doc = "See [`Pallet::force_subscribe_version_notify`]."] pub fn force_subscribe_version_notify( &self, - location: alias_types::force_subscribe_version_notify::Location, + location: types::force_subscribe_version_notify::Location, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "XcmPallet", @@ -35637,7 +36914,7 @@ pub mod api { #[doc = "See [`Pallet::force_unsubscribe_version_notify`]."] pub fn force_unsubscribe_version_notify( &self, - location: alias_types::force_unsubscribe_version_notify::Location, + location: types::force_unsubscribe_version_notify::Location, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "XcmPallet", @@ -35656,11 +36933,11 @@ pub mod api { #[doc = "See [`Pallet::limited_reserve_transfer_assets`]."] pub fn limited_reserve_transfer_assets( &self, - dest: alias_types::limited_reserve_transfer_assets::Dest, - beneficiary: alias_types::limited_reserve_transfer_assets::Beneficiary, - assets: alias_types::limited_reserve_transfer_assets::Assets, - fee_asset_item: alias_types::limited_reserve_transfer_assets::FeeAssetItem, - weight_limit: alias_types::limited_reserve_transfer_assets::WeightLimit, + dest: types::limited_reserve_transfer_assets::Dest, + beneficiary: types::limited_reserve_transfer_assets::Beneficiary, + assets: types::limited_reserve_transfer_assets::Assets, + fee_asset_item: types::limited_reserve_transfer_assets::FeeAssetItem, + weight_limit: types::limited_reserve_transfer_assets::WeightLimit, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "XcmPallet", @@ -35683,11 +36960,11 @@ pub mod api { #[doc = "See [`Pallet::limited_teleport_assets`]."] pub fn limited_teleport_assets( &self, - dest: alias_types::limited_teleport_assets::Dest, - beneficiary: alias_types::limited_teleport_assets::Beneficiary, - assets: alias_types::limited_teleport_assets::Assets, - fee_asset_item: alias_types::limited_teleport_assets::FeeAssetItem, - weight_limit: alias_types::limited_teleport_assets::WeightLimit, + dest: types::limited_teleport_assets::Dest, + beneficiary: types::limited_teleport_assets::Beneficiary, + assets: types::limited_teleport_assets::Assets, + fee_asset_item: types::limited_teleport_assets::FeeAssetItem, + weight_limit: types::limited_teleport_assets::WeightLimit, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "XcmPallet", @@ -35710,7 +36987,7 @@ pub mod api { #[doc = "See [`Pallet::force_suspension`]."] pub fn force_suspension( &self, - suspended: alias_types::force_suspension::Suspended, + suspended: types::force_suspension::Suspended, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "XcmPallet", @@ -35741,7 +37018,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Execution of an XCM message was attempted."] pub struct Attempted { - pub outcome: runtime_types::xcm::v3::traits::Outcome, + pub outcome: attempted::Outcome, + } + pub mod attempted { + use super::runtime_types; + pub type Outcome = runtime_types::xcm::v3::traits::Outcome; } impl ::subxt::events::StaticEvent for Attempted { const PALLET: &'static str = "XcmPallet"; @@ -35759,10 +37040,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A XCM message was sent."] pub struct Sent { - pub origin: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - pub destination: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - pub message: runtime_types::xcm::v3::Xcm, - pub message_id: [::core::primitive::u8; 32usize], + pub origin: sent::Origin, + pub destination: sent::Destination, + pub message: sent::Message, + pub message_id: sent::MessageId, + } + pub mod sent { + use super::runtime_types; + pub type Origin = runtime_types::staging_xcm::v3::multilocation::MultiLocation; + pub type Destination = runtime_types::staging_xcm::v3::multilocation::MultiLocation; + pub type Message = runtime_types::xcm::v3::Xcm; + pub type MessageId = [::core::primitive::u8; 32usize]; } impl ::subxt::events::StaticEvent for Sent { const PALLET: &'static str = "XcmPallet"; @@ -35782,8 +37070,13 @@ pub mod api { #[doc = "matching query was never registered, it may be because it is a duplicate response, or"] #[doc = "because the query timed out."] pub struct UnexpectedResponse { - pub origin: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - pub query_id: ::core::primitive::u64, + pub origin: unexpected_response::Origin, + pub query_id: unexpected_response::QueryId, + } + pub mod unexpected_response { + use super::runtime_types; + pub type Origin = runtime_types::staging_xcm::v3::multilocation::MultiLocation; + pub type QueryId = ::core::primitive::u64; } impl ::subxt::events::StaticEvent for UnexpectedResponse { const PALLET: &'static str = "XcmPallet"; @@ -35802,8 +37095,13 @@ pub mod api { #[doc = "Query response has been received and is ready for taking with `take_response`. There is"] #[doc = "no registered notification call."] pub struct ResponseReady { - pub query_id: ::core::primitive::u64, - pub response: runtime_types::xcm::v3::Response, + pub query_id: response_ready::QueryId, + pub response: response_ready::Response, + } + pub mod response_ready { + use super::runtime_types; + pub type QueryId = ::core::primitive::u64; + pub type Response = runtime_types::xcm::v3::Response; } impl ::subxt::events::StaticEvent for ResponseReady { const PALLET: &'static str = "XcmPallet"; @@ -35822,9 +37120,15 @@ pub mod api { #[doc = "Query response has been received and query is removed. The registered notification has"] #[doc = "been dispatched and executed successfully."] pub struct Notified { - pub query_id: ::core::primitive::u64, - pub pallet_index: ::core::primitive::u8, - pub call_index: ::core::primitive::u8, + pub query_id: notified::QueryId, + pub pallet_index: notified::PalletIndex, + pub call_index: notified::CallIndex, + } + pub mod notified { + use super::runtime_types; + pub type QueryId = ::core::primitive::u64; + pub type PalletIndex = ::core::primitive::u8; + pub type CallIndex = ::core::primitive::u8; } impl ::subxt::events::StaticEvent for Notified { const PALLET: &'static str = "XcmPallet"; @@ -35844,11 +37148,19 @@ pub mod api { #[doc = "could not be dispatched because the dispatch weight is greater than the maximum weight"] #[doc = "originally budgeted by this runtime for the query result."] pub struct NotifyOverweight { - pub query_id: ::core::primitive::u64, - pub pallet_index: ::core::primitive::u8, - pub call_index: ::core::primitive::u8, - pub actual_weight: runtime_types::sp_weights::weight_v2::Weight, - pub max_budgeted_weight: runtime_types::sp_weights::weight_v2::Weight, + pub query_id: notify_overweight::QueryId, + pub pallet_index: notify_overweight::PalletIndex, + pub call_index: notify_overweight::CallIndex, + pub actual_weight: notify_overweight::ActualWeight, + pub max_budgeted_weight: notify_overweight::MaxBudgetedWeight, + } + pub mod notify_overweight { + use super::runtime_types; + pub type QueryId = ::core::primitive::u64; + pub type PalletIndex = ::core::primitive::u8; + pub type CallIndex = ::core::primitive::u8; + pub type ActualWeight = runtime_types::sp_weights::weight_v2::Weight; + pub type MaxBudgetedWeight = runtime_types::sp_weights::weight_v2::Weight; } impl ::subxt::events::StaticEvent for NotifyOverweight { const PALLET: &'static str = "XcmPallet"; @@ -35867,9 +37179,15 @@ pub mod api { #[doc = "Query response has been received and query is removed. There was a general error with"] #[doc = "dispatching the notification call."] pub struct NotifyDispatchError { - pub query_id: ::core::primitive::u64, - pub pallet_index: ::core::primitive::u8, - pub call_index: ::core::primitive::u8, + pub query_id: notify_dispatch_error::QueryId, + pub pallet_index: notify_dispatch_error::PalletIndex, + pub call_index: notify_dispatch_error::CallIndex, + } + pub mod notify_dispatch_error { + use super::runtime_types; + pub type QueryId = ::core::primitive::u64; + pub type PalletIndex = ::core::primitive::u8; + pub type CallIndex = ::core::primitive::u8; } impl ::subxt::events::StaticEvent for NotifyDispatchError { const PALLET: &'static str = "XcmPallet"; @@ -35889,9 +37207,15 @@ pub mod api { #[doc = "decoded into a `Call`; this might be due to dispatch function having a signature which"] #[doc = "is not `(origin, QueryId, Response)`."] pub struct NotifyDecodeFailed { - pub query_id: ::core::primitive::u64, - pub pallet_index: ::core::primitive::u8, - pub call_index: ::core::primitive::u8, + pub query_id: notify_decode_failed::QueryId, + pub pallet_index: notify_decode_failed::PalletIndex, + pub call_index: notify_decode_failed::CallIndex, + } + pub mod notify_decode_failed { + use super::runtime_types; + pub type QueryId = ::core::primitive::u64; + pub type PalletIndex = ::core::primitive::u8; + pub type CallIndex = ::core::primitive::u8; } impl ::subxt::events::StaticEvent for NotifyDecodeFailed { const PALLET: &'static str = "XcmPallet"; @@ -35911,11 +37235,17 @@ pub mod api { #[doc = "not match that expected. The query remains registered for a later, valid, response to"] #[doc = "be received and acted upon."] pub struct InvalidResponder { - pub origin: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - pub query_id: ::core::primitive::u64, - pub expected_location: ::core::option::Option< + pub origin: invalid_responder::Origin, + pub query_id: invalid_responder::QueryId, + pub expected_location: invalid_responder::ExpectedLocation, + } + pub mod invalid_responder { + use super::runtime_types; + pub type Origin = runtime_types::staging_xcm::v3::multilocation::MultiLocation; + pub type QueryId = ::core::primitive::u64; + pub type ExpectedLocation = ::core::option::Option< runtime_types::staging_xcm::v3::multilocation::MultiLocation, - >, + >; } impl ::subxt::events::StaticEvent for InvalidResponder { const PALLET: &'static str = "XcmPallet"; @@ -35939,8 +37269,13 @@ pub mod api { #[doc = "valid response will be dropped. Manual governance intervention is probably going to be"] #[doc = "needed."] pub struct InvalidResponderVersion { - pub origin: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - pub query_id: ::core::primitive::u64, + pub origin: invalid_responder_version::Origin, + pub query_id: invalid_responder_version::QueryId, + } + pub mod invalid_responder_version { + use super::runtime_types; + pub type Origin = runtime_types::staging_xcm::v3::multilocation::MultiLocation; + pub type QueryId = ::core::primitive::u64; } impl ::subxt::events::StaticEvent for InvalidResponderVersion { const PALLET: &'static str = "XcmPallet"; @@ -35959,7 +37294,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Received query response has been read and removed."] pub struct ResponseTaken { - pub query_id: ::core::primitive::u64, + pub query_id: response_taken::QueryId, + } + pub mod response_taken { + use super::runtime_types; + pub type QueryId = ::core::primitive::u64; } impl ::subxt::events::StaticEvent for ResponseTaken { const PALLET: &'static str = "XcmPallet"; @@ -35977,9 +37316,15 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some assets have been placed in an asset trap."] pub struct AssetsTrapped { - pub hash: ::subxt::utils::H256, - pub origin: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - pub assets: runtime_types::xcm::VersionedMultiAssets, + pub hash: assets_trapped::Hash, + pub origin: assets_trapped::Origin, + pub assets: assets_trapped::Assets, + } + pub mod assets_trapped { + use super::runtime_types; + pub type Hash = ::subxt::utils::H256; + pub type Origin = runtime_types::staging_xcm::v3::multilocation::MultiLocation; + pub type Assets = runtime_types::xcm::VersionedMultiAssets; } impl ::subxt::events::StaticEvent for AssetsTrapped { const PALLET: &'static str = "XcmPallet"; @@ -35999,10 +37344,17 @@ pub mod api { #[doc = ""] #[doc = "The cost of sending it (borne by the chain) is included."] pub struct VersionChangeNotified { - pub destination: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - pub result: ::core::primitive::u32, - pub cost: runtime_types::xcm::v3::multiasset::MultiAssets, - pub message_id: [::core::primitive::u8; 32usize], + pub destination: version_change_notified::Destination, + pub result: version_change_notified::Result, + pub cost: version_change_notified::Cost, + pub message_id: version_change_notified::MessageId, + } + pub mod version_change_notified { + use super::runtime_types; + pub type Destination = runtime_types::staging_xcm::v3::multilocation::MultiLocation; + pub type Result = ::core::primitive::u32; + pub type Cost = runtime_types::xcm::v3::multiasset::MultiAssets; + pub type MessageId = [::core::primitive::u8; 32usize]; } impl ::subxt::events::StaticEvent for VersionChangeNotified { const PALLET: &'static str = "XcmPallet"; @@ -36021,8 +37373,13 @@ pub mod api { #[doc = "The supported version of a location has been changed. This might be through an"] #[doc = "automatic notification or a manual intervention."] pub struct SupportedVersionChanged { - pub location: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - pub version: ::core::primitive::u32, + pub location: supported_version_changed::Location, + pub version: supported_version_changed::Version, + } + pub mod supported_version_changed { + use super::runtime_types; + pub type Location = runtime_types::staging_xcm::v3::multilocation::MultiLocation; + pub type Version = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for SupportedVersionChanged { const PALLET: &'static str = "XcmPallet"; @@ -36041,9 +37398,15 @@ pub mod api { #[doc = "A given location which had a version change subscription was dropped owing to an error"] #[doc = "sending the notification to it."] pub struct NotifyTargetSendFail { - pub location: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - pub query_id: ::core::primitive::u64, - pub error: runtime_types::xcm::v3::traits::Error, + pub location: notify_target_send_fail::Location, + pub query_id: notify_target_send_fail::QueryId, + pub error: notify_target_send_fail::Error, + } + pub mod notify_target_send_fail { + use super::runtime_types; + pub type Location = runtime_types::staging_xcm::v3::multilocation::MultiLocation; + pub type QueryId = ::core::primitive::u64; + pub type Error = runtime_types::xcm::v3::traits::Error; } impl ::subxt::events::StaticEvent for NotifyTargetSendFail { const PALLET: &'static str = "XcmPallet"; @@ -36062,8 +37425,13 @@ pub mod api { #[doc = "A given location which had a version change subscription was dropped owing to an error"] #[doc = "migrating the location to our new XCM format."] pub struct NotifyTargetMigrationFail { - pub location: runtime_types::xcm::VersionedMultiLocation, - pub query_id: ::core::primitive::u64, + pub location: notify_target_migration_fail::Location, + pub query_id: notify_target_migration_fail::QueryId, + } + pub mod notify_target_migration_fail { + use super::runtime_types; + pub type Location = runtime_types::xcm::VersionedMultiLocation; + pub type QueryId = ::core::primitive::u64; } impl ::subxt::events::StaticEvent for NotifyTargetMigrationFail { const PALLET: &'static str = "XcmPallet"; @@ -36087,8 +37455,13 @@ pub mod api { #[doc = "valid response will be dropped. Manual governance intervention is probably going to be"] #[doc = "needed."] pub struct InvalidQuerierVersion { - pub origin: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - pub query_id: ::core::primitive::u64, + pub origin: invalid_querier_version::Origin, + pub query_id: invalid_querier_version::QueryId, + } + pub mod invalid_querier_version { + use super::runtime_types; + pub type Origin = runtime_types::staging_xcm::v3::multilocation::MultiLocation; + pub type QueryId = ::core::primitive::u64; } impl ::subxt::events::StaticEvent for InvalidQuerierVersion { const PALLET: &'static str = "XcmPallet"; @@ -36108,12 +37481,20 @@ pub mod api { #[doc = "not match the expected. The query remains registered for a later, valid, response to"] #[doc = "be received and acted upon."] pub struct InvalidQuerier { - pub origin: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - pub query_id: ::core::primitive::u64, - pub expected_querier: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - pub maybe_actual_querier: ::core::option::Option< + pub origin: invalid_querier::Origin, + pub query_id: invalid_querier::QueryId, + pub expected_querier: invalid_querier::ExpectedQuerier, + pub maybe_actual_querier: invalid_querier::MaybeActualQuerier, + } + pub mod invalid_querier { + use super::runtime_types; + pub type Origin = runtime_types::staging_xcm::v3::multilocation::MultiLocation; + pub type QueryId = ::core::primitive::u64; + pub type ExpectedQuerier = + runtime_types::staging_xcm::v3::multilocation::MultiLocation; + pub type MaybeActualQuerier = ::core::option::Option< runtime_types::staging_xcm::v3::multilocation::MultiLocation, - >, + >; } impl ::subxt::events::StaticEvent for InvalidQuerier { const PALLET: &'static str = "XcmPallet"; @@ -36132,9 +37513,15 @@ pub mod api { #[doc = "A remote has requested XCM version change notification from us and we have honored it."] #[doc = "A version information message is sent to them and its cost is included."] pub struct VersionNotifyStarted { - pub destination: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - pub cost: runtime_types::xcm::v3::multiasset::MultiAssets, - pub message_id: [::core::primitive::u8; 32usize], + pub destination: version_notify_started::Destination, + pub cost: version_notify_started::Cost, + pub message_id: version_notify_started::MessageId, + } + pub mod version_notify_started { + use super::runtime_types; + pub type Destination = runtime_types::staging_xcm::v3::multilocation::MultiLocation; + pub type Cost = runtime_types::xcm::v3::multiasset::MultiAssets; + pub type MessageId = [::core::primitive::u8; 32usize]; } impl ::subxt::events::StaticEvent for VersionNotifyStarted { const PALLET: &'static str = "XcmPallet"; @@ -36152,9 +37539,15 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "We have requested that a remote chain send us XCM version change notifications."] pub struct VersionNotifyRequested { - pub destination: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - pub cost: runtime_types::xcm::v3::multiasset::MultiAssets, - pub message_id: [::core::primitive::u8; 32usize], + pub destination: version_notify_requested::Destination, + pub cost: version_notify_requested::Cost, + pub message_id: version_notify_requested::MessageId, + } + pub mod version_notify_requested { + use super::runtime_types; + pub type Destination = runtime_types::staging_xcm::v3::multilocation::MultiLocation; + pub type Cost = runtime_types::xcm::v3::multiasset::MultiAssets; + pub type MessageId = [::core::primitive::u8; 32usize]; } impl ::subxt::events::StaticEvent for VersionNotifyRequested { const PALLET: &'static str = "XcmPallet"; @@ -36173,9 +37566,15 @@ pub mod api { #[doc = "We have requested that a remote chain stops sending us XCM version change"] #[doc = "notifications."] pub struct VersionNotifyUnrequested { - pub destination: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - pub cost: runtime_types::xcm::v3::multiasset::MultiAssets, - pub message_id: [::core::primitive::u8; 32usize], + pub destination: version_notify_unrequested::Destination, + pub cost: version_notify_unrequested::Cost, + pub message_id: version_notify_unrequested::MessageId, + } + pub mod version_notify_unrequested { + use super::runtime_types; + pub type Destination = runtime_types::staging_xcm::v3::multilocation::MultiLocation; + pub type Cost = runtime_types::xcm::v3::multiasset::MultiAssets; + pub type MessageId = [::core::primitive::u8; 32usize]; } impl ::subxt::events::StaticEvent for VersionNotifyUnrequested { const PALLET: &'static str = "XcmPallet"; @@ -36193,8 +37592,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Fees were paid from a location for an operation (often for using `SendXcm`)."] pub struct FeesPaid { - pub paying: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - pub fees: runtime_types::xcm::v3::multiasset::MultiAssets, + pub paying: fees_paid::Paying, + pub fees: fees_paid::Fees, + } + pub mod fees_paid { + use super::runtime_types; + pub type Paying = runtime_types::staging_xcm::v3::multilocation::MultiLocation; + pub type Fees = runtime_types::xcm::v3::multiasset::MultiAssets; } impl ::subxt::events::StaticEvent for FeesPaid { const PALLET: &'static str = "XcmPallet"; @@ -36212,9 +37616,15 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some assets have been claimed from an asset trap"] pub struct AssetsClaimed { - pub hash: ::subxt::utils::H256, - pub origin: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - pub assets: runtime_types::xcm::VersionedMultiAssets, + pub hash: assets_claimed::Hash, + pub origin: assets_claimed::Origin, + pub assets: assets_claimed::Assets, + } + pub mod assets_claimed { + use super::runtime_types; + pub type Hash = ::subxt::utils::H256; + pub type Origin = runtime_types::staging_xcm::v3::multilocation::MultiLocation; + pub type Assets = runtime_types::xcm::VersionedMultiAssets; } impl ::subxt::events::StaticEvent for AssetsClaimed { const PALLET: &'static str = "XcmPallet"; @@ -36223,7 +37633,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod query_counter { use super::runtime_types; @@ -36296,7 +37706,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::query_counter::QueryCounter, + types::query_counter::QueryCounter, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -36318,7 +37728,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::queries::Queries, + types::queries::Queries, (), (), ::subxt::storage::address::Yes, @@ -36340,7 +37750,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u64>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::queries::Queries, + types::queries::Queries, ::subxt::storage::address::Yes, (), (), @@ -36366,7 +37776,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::asset_traps::AssetTraps, + types::asset_traps::AssetTraps, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -36391,7 +37801,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::asset_traps::AssetTraps, + types::asset_traps::AssetTraps, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -36415,7 +37825,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::safe_xcm_version::SafeXcmVersion, + types::safe_xcm_version::SafeXcmVersion, ::subxt::storage::address::Yes, (), (), @@ -36437,7 +37847,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::supported_version::SupportedVersion, + types::supported_version::SupportedVersion, (), (), ::subxt::storage::address::Yes, @@ -36459,7 +37869,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::supported_version::SupportedVersion, + types::supported_version::SupportedVersion, (), (), ::subxt::storage::address::Yes, @@ -36484,7 +37894,7 @@ pub mod api { _1: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::supported_version::SupportedVersion, + types::supported_version::SupportedVersion, ::subxt::storage::address::Yes, (), (), @@ -36508,7 +37918,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::version_notifiers::VersionNotifiers, + types::version_notifiers::VersionNotifiers, (), (), ::subxt::storage::address::Yes, @@ -36530,7 +37940,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::version_notifiers::VersionNotifiers, + types::version_notifiers::VersionNotifiers, (), (), ::subxt::storage::address::Yes, @@ -36555,7 +37965,7 @@ pub mod api { _1: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::version_notifiers::VersionNotifiers, + types::version_notifiers::VersionNotifiers, ::subxt::storage::address::Yes, (), (), @@ -36580,7 +37990,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::version_notify_targets::VersionNotifyTargets, + types::version_notify_targets::VersionNotifyTargets, (), (), ::subxt::storage::address::Yes, @@ -36604,7 +38014,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::version_notify_targets::VersionNotifyTargets, + types::version_notify_targets::VersionNotifyTargets, (), (), ::subxt::storage::address::Yes, @@ -36631,7 +38041,7 @@ pub mod api { _1: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::version_notify_targets::VersionNotifyTargets, + types::version_notify_targets::VersionNotifyTargets, ::subxt::storage::address::Yes, (), (), @@ -36658,7 +38068,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::version_discovery_queue::VersionDiscoveryQueue, + types::version_discovery_queue::VersionDiscoveryQueue, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -36679,7 +38089,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::current_migration::CurrentMigration, + types::current_migration::CurrentMigration, ::subxt::storage::address::Yes, (), (), @@ -36700,7 +38110,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::remote_locked_fungibles::RemoteLockedFungibles, + types::remote_locked_fungibles::RemoteLockedFungibles, (), (), ::subxt::storage::address::Yes, @@ -36722,7 +38132,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::remote_locked_fungibles::RemoteLockedFungibles, + types::remote_locked_fungibles::RemoteLockedFungibles, (), (), ::subxt::storage::address::Yes, @@ -36747,7 +38157,7 @@ pub mod api { _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::remote_locked_fungibles::RemoteLockedFungibles, + types::remote_locked_fungibles::RemoteLockedFungibles, (), (), ::subxt::storage::address::Yes, @@ -36774,7 +38184,7 @@ pub mod api { _2: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::remote_locked_fungibles::RemoteLockedFungibles, + types::remote_locked_fungibles::RemoteLockedFungibles, ::subxt::storage::address::Yes, (), (), @@ -36799,7 +38209,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::locked_fungibles::LockedFungibles, + types::locked_fungibles::LockedFungibles, (), (), ::subxt::storage::address::Yes, @@ -36822,7 +38232,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::locked_fungibles::LockedFungibles, + types::locked_fungibles::LockedFungibles, ::subxt::storage::address::Yes, (), (), @@ -36846,7 +38256,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::xcm_execution_suspended::XcmExecutionSuspended, + types::xcm_execution_suspended::XcmExecutionSuspended, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -36876,40 +38286,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - pub mod sudo_schedule_para_initialize { - use super::runtime_types; - pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Genesis = - runtime_types::polkadot_runtime_parachains::paras::ParaGenesisArgs; - } - pub mod sudo_schedule_para_cleanup { - use super::runtime_types; - pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - pub mod sudo_schedule_parathread_upgrade { - use super::runtime_types; - pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - pub mod sudo_schedule_parachain_downgrade { - use super::runtime_types; - pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - pub mod sudo_queue_downward_xcm { - use super::runtime_types; - pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Xcm = runtime_types::xcm::VersionedXcm; - } - pub mod sudo_establish_hrmp_channel { - use super::runtime_types; - pub type Sender = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Recipient = - runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type MaxCapacity = ::core::primitive::u32; - pub type MaxMessageSize = ::core::primitive::u32; - } - } pub mod types { use super::runtime_types; #[derive( @@ -36923,8 +38299,14 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SudoScheduleParaInitialize { - pub id: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub genesis: runtime_types::polkadot_runtime_parachains::paras::ParaGenesisArgs, + pub id: sudo_schedule_para_initialize::Id, + pub genesis: sudo_schedule_para_initialize::Genesis, + } + pub mod sudo_schedule_para_initialize { + use super::runtime_types; + pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Genesis = + runtime_types::polkadot_runtime_parachains::paras::ParaGenesisArgs; } impl ::subxt::blocks::StaticExtrinsic for SudoScheduleParaInitialize { const PALLET: &'static str = "ParasSudoWrapper"; @@ -36941,7 +38323,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SudoScheduleParaCleanup { - pub id: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub id: sudo_schedule_para_cleanup::Id, + } + pub mod sudo_schedule_para_cleanup { + use super::runtime_types; + pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::blocks::StaticExtrinsic for SudoScheduleParaCleanup { const PALLET: &'static str = "ParasSudoWrapper"; @@ -36958,7 +38344,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SudoScheduleParathreadUpgrade { - pub id: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub id: sudo_schedule_parathread_upgrade::Id, + } + pub mod sudo_schedule_parathread_upgrade { + use super::runtime_types; + pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::blocks::StaticExtrinsic for SudoScheduleParathreadUpgrade { const PALLET: &'static str = "ParasSudoWrapper"; @@ -36975,7 +38365,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SudoScheduleParachainDowngrade { - pub id: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub id: sudo_schedule_parachain_downgrade::Id, + } + pub mod sudo_schedule_parachain_downgrade { + use super::runtime_types; + pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::blocks::StaticExtrinsic for SudoScheduleParachainDowngrade { const PALLET: &'static str = "ParasSudoWrapper"; @@ -36992,8 +38386,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SudoQueueDownwardXcm { - pub id: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub xcm: ::std::boxed::Box, + pub id: sudo_queue_downward_xcm::Id, + pub xcm: ::std::boxed::Box, + } + pub mod sudo_queue_downward_xcm { + use super::runtime_types; + pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Xcm = runtime_types::xcm::VersionedXcm; } impl ::subxt::blocks::StaticExtrinsic for SudoQueueDownwardXcm { const PALLET: &'static str = "ParasSudoWrapper"; @@ -37010,10 +38409,18 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SudoEstablishHrmpChannel { - pub sender: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub recipient: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub max_capacity: ::core::primitive::u32, - pub max_message_size: ::core::primitive::u32, + pub sender: sudo_establish_hrmp_channel::Sender, + pub recipient: sudo_establish_hrmp_channel::Recipient, + pub max_capacity: sudo_establish_hrmp_channel::MaxCapacity, + pub max_message_size: sudo_establish_hrmp_channel::MaxMessageSize, + } + pub mod sudo_establish_hrmp_channel { + use super::runtime_types; + pub type Sender = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Recipient = + runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type MaxCapacity = ::core::primitive::u32; + pub type MaxMessageSize = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for SudoEstablishHrmpChannel { const PALLET: &'static str = "ParasSudoWrapper"; @@ -37025,8 +38432,8 @@ pub mod api { #[doc = "See [`Pallet::sudo_schedule_para_initialize`]."] pub fn sudo_schedule_para_initialize( &self, - id: alias_types::sudo_schedule_para_initialize::Id, - genesis: alias_types::sudo_schedule_para_initialize::Genesis, + id: types::sudo_schedule_para_initialize::Id, + genesis: types::sudo_schedule_para_initialize::Genesis, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ParasSudoWrapper", @@ -37042,7 +38449,7 @@ pub mod api { #[doc = "See [`Pallet::sudo_schedule_para_cleanup`]."] pub fn sudo_schedule_para_cleanup( &self, - id: alias_types::sudo_schedule_para_cleanup::Id, + id: types::sudo_schedule_para_cleanup::Id, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ParasSudoWrapper", @@ -37058,7 +38465,7 @@ pub mod api { #[doc = "See [`Pallet::sudo_schedule_parathread_upgrade`]."] pub fn sudo_schedule_parathread_upgrade( &self, - id: alias_types::sudo_schedule_parathread_upgrade::Id, + id: types::sudo_schedule_parathread_upgrade::Id, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ParasSudoWrapper", @@ -37075,7 +38482,7 @@ pub mod api { #[doc = "See [`Pallet::sudo_schedule_parachain_downgrade`]."] pub fn sudo_schedule_parachain_downgrade( &self, - id: alias_types::sudo_schedule_parachain_downgrade::Id, + id: types::sudo_schedule_parachain_downgrade::Id, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ParasSudoWrapper", @@ -37092,8 +38499,8 @@ pub mod api { #[doc = "See [`Pallet::sudo_queue_downward_xcm`]."] pub fn sudo_queue_downward_xcm( &self, - id: alias_types::sudo_queue_downward_xcm::Id, - xcm: alias_types::sudo_queue_downward_xcm::Xcm, + id: types::sudo_queue_downward_xcm::Id, + xcm: types::sudo_queue_downward_xcm::Xcm, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ParasSudoWrapper", @@ -37113,10 +38520,10 @@ pub mod api { #[doc = "See [`Pallet::sudo_establish_hrmp_channel`]."] pub fn sudo_establish_hrmp_channel( &self, - sender: alias_types::sudo_establish_hrmp_channel::Sender, - recipient: alias_types::sudo_establish_hrmp_channel::Recipient, - max_capacity: alias_types::sudo_establish_hrmp_channel::MaxCapacity, - max_message_size: alias_types::sudo_establish_hrmp_channel::MaxMessageSize, + sender: types::sudo_establish_hrmp_channel::Sender, + recipient: types::sudo_establish_hrmp_channel::Recipient, + max_capacity: types::sudo_establish_hrmp_channel::MaxCapacity, + max_message_size: types::sudo_establish_hrmp_channel::MaxMessageSize, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ParasSudoWrapper", @@ -37148,30 +38555,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - pub mod assign_perm_parachain_slot { - use super::runtime_types; - pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - pub mod assign_temp_parachain_slot { - use super::runtime_types; - pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type LeasePeriodStart = runtime_types :: polkadot_runtime_common :: assigned_slots :: SlotLeasePeriodStart ; - } - pub mod unassign_parachain_slot { - use super::runtime_types; - pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - pub mod set_max_permanent_slots { - use super::runtime_types; - pub type Slots = ::core::primitive::u32; - } - pub mod set_max_temporary_slots { - use super::runtime_types; - pub type Slots = ::core::primitive::u32; - } - } pub mod types { use super::runtime_types; #[derive( @@ -37185,7 +38568,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AssignPermParachainSlot { - pub id: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub id: assign_perm_parachain_slot::Id, + } + pub mod assign_perm_parachain_slot { + use super::runtime_types; + pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::blocks::StaticExtrinsic for AssignPermParachainSlot { const PALLET: &'static str = "AssignedSlots"; @@ -37201,7 +38588,15 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct AssignTempParachainSlot { pub id : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , pub lease_period_start : runtime_types :: polkadot_runtime_common :: assigned_slots :: SlotLeasePeriodStart , } + pub struct AssignTempParachainSlot { + pub id: assign_temp_parachain_slot::Id, + pub lease_period_start: assign_temp_parachain_slot::LeasePeriodStart, + } + pub mod assign_temp_parachain_slot { + use super::runtime_types; + pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type LeasePeriodStart = runtime_types :: polkadot_runtime_common :: assigned_slots :: SlotLeasePeriodStart ; + } impl ::subxt::blocks::StaticExtrinsic for AssignTempParachainSlot { const PALLET: &'static str = "AssignedSlots"; const CALL: &'static str = "assign_temp_parachain_slot"; @@ -37217,7 +38612,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UnassignParachainSlot { - pub id: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub id: unassign_parachain_slot::Id, + } + pub mod unassign_parachain_slot { + use super::runtime_types; + pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::blocks::StaticExtrinsic for UnassignParachainSlot { const PALLET: &'static str = "AssignedSlots"; @@ -37235,7 +38634,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetMaxPermanentSlots { - pub slots: ::core::primitive::u32, + pub slots: set_max_permanent_slots::Slots, + } + pub mod set_max_permanent_slots { + use super::runtime_types; + pub type Slots = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for SetMaxPermanentSlots { const PALLET: &'static str = "AssignedSlots"; @@ -37253,7 +38656,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetMaxTemporarySlots { - pub slots: ::core::primitive::u32, + pub slots: set_max_temporary_slots::Slots, + } + pub mod set_max_temporary_slots { + use super::runtime_types; + pub type Slots = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for SetMaxTemporarySlots { const PALLET: &'static str = "AssignedSlots"; @@ -37265,7 +38672,7 @@ pub mod api { #[doc = "See [`Pallet::assign_perm_parachain_slot`]."] pub fn assign_perm_parachain_slot( &self, - id: alias_types::assign_perm_parachain_slot::Id, + id: types::assign_perm_parachain_slot::Id, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "AssignedSlots", @@ -37281,8 +38688,8 @@ pub mod api { #[doc = "See [`Pallet::assign_temp_parachain_slot`]."] pub fn assign_temp_parachain_slot( &self, - id: alias_types::assign_temp_parachain_slot::Id, - lease_period_start: alias_types::assign_temp_parachain_slot::LeasePeriodStart, + id: types::assign_temp_parachain_slot::Id, + lease_period_start: types::assign_temp_parachain_slot::LeasePeriodStart, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "AssignedSlots", @@ -37302,7 +38709,7 @@ pub mod api { #[doc = "See [`Pallet::unassign_parachain_slot`]."] pub fn unassign_parachain_slot( &self, - id: alias_types::unassign_parachain_slot::Id, + id: types::unassign_parachain_slot::Id, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "AssignedSlots", @@ -37319,7 +38726,7 @@ pub mod api { #[doc = "See [`Pallet::set_max_permanent_slots`]."] pub fn set_max_permanent_slots( &self, - slots: alias_types::set_max_permanent_slots::Slots, + slots: types::set_max_permanent_slots::Slots, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "AssignedSlots", @@ -37335,7 +38742,7 @@ pub mod api { #[doc = "See [`Pallet::set_max_temporary_slots`]."] pub fn set_max_temporary_slots( &self, - slots: alias_types::set_max_temporary_slots::Slots, + slots: types::set_max_temporary_slots::Slots, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "AssignedSlots", @@ -37404,7 +38811,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The maximum number of permanent slots has been changed"] pub struct MaxPermanentSlotsChanged { - pub slots: ::core::primitive::u32, + pub slots: max_permanent_slots_changed::Slots, + } + pub mod max_permanent_slots_changed { + use super::runtime_types; + pub type Slots = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for MaxPermanentSlotsChanged { const PALLET: &'static str = "AssignedSlots"; @@ -37423,7 +38834,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The maximum number of temporary slots has been changed"] pub struct MaxTemporarySlotsChanged { - pub slots: ::core::primitive::u32, + pub slots: max_temporary_slots_changed::Slots, + } + pub mod max_temporary_slots_changed { + use super::runtime_types; + pub type Slots = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for MaxTemporarySlotsChanged { const PALLET: &'static str = "AssignedSlots"; @@ -37432,7 +38847,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod permanent_slots { use super::runtime_types; @@ -37470,7 +38885,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::permanent_slots::PermanentSlots, + types::permanent_slots::PermanentSlots, (), (), ::subxt::storage::address::Yes, @@ -37495,7 +38910,7 @@ pub mod api { >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::permanent_slots::PermanentSlots, + types::permanent_slots::PermanentSlots, ::subxt::storage::address::Yes, (), (), @@ -37519,7 +38934,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::permanent_slot_count::PermanentSlotCount, + types::permanent_slot_count::PermanentSlotCount, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -37540,7 +38955,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::temporary_slots::TemporarySlots, + types::temporary_slots::TemporarySlots, (), (), ::subxt::storage::address::Yes, @@ -37565,7 +38980,7 @@ pub mod api { >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::temporary_slots::TemporarySlots, + types::temporary_slots::TemporarySlots, ::subxt::storage::address::Yes, (), (), @@ -37589,7 +39004,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::temporary_slot_count::TemporarySlotCount, + types::temporary_slot_count::TemporarySlotCount, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -37610,7 +39025,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::active_temporary_slot_count::ActiveTemporarySlotCount, + types::active_temporary_slot_count::ActiveTemporarySlotCount, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -37632,7 +39047,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::max_temporary_slots::MaxTemporarySlots, + types::max_temporary_slots::MaxTemporarySlots, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -37654,7 +39069,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::max_permanent_slots::MaxPermanentSlots, + types::max_permanent_slots::MaxPermanentSlots, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -37734,17 +39149,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - pub mod register_validators { - use super::runtime_types; - pub type Validators = ::std::vec::Vec<::subxt::utils::AccountId32>; - } - pub mod deregister_validators { - use super::runtime_types; - pub type Validators = ::std::vec::Vec<::subxt::utils::AccountId32>; - } - } pub mod types { use super::runtime_types; #[derive( @@ -37758,7 +39162,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RegisterValidators { - pub validators: ::std::vec::Vec<::subxt::utils::AccountId32>, + pub validators: register_validators::Validators, + } + pub mod register_validators { + use super::runtime_types; + pub type Validators = ::std::vec::Vec<::subxt::utils::AccountId32>; } impl ::subxt::blocks::StaticExtrinsic for RegisterValidators { const PALLET: &'static str = "ValidatorManager"; @@ -37775,7 +39183,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct DeregisterValidators { - pub validators: ::std::vec::Vec<::subxt::utils::AccountId32>, + pub validators: deregister_validators::Validators, + } + pub mod deregister_validators { + use super::runtime_types; + pub type Validators = ::std::vec::Vec<::subxt::utils::AccountId32>; } impl ::subxt::blocks::StaticExtrinsic for DeregisterValidators { const PALLET: &'static str = "ValidatorManager"; @@ -37787,7 +39199,7 @@ pub mod api { #[doc = "See [`Pallet::register_validators`]."] pub fn register_validators( &self, - validators: alias_types::register_validators::Validators, + validators: types::register_validators::Validators, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ValidatorManager", @@ -37804,7 +39216,7 @@ pub mod api { #[doc = "See [`Pallet::deregister_validators`]."] pub fn deregister_validators( &self, - validators: alias_types::deregister_validators::Validators, + validators: types::deregister_validators::Validators, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ValidatorManager", @@ -37859,7 +39271,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod validators_to_retire { use super::runtime_types; @@ -37877,7 +39289,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::validators_to_retire::ValidatorsToRetire, + types::validators_to_retire::ValidatorsToRetire, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -37898,7 +39310,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::validators_to_add::ValidatorsToAdd, + types::validators_to_add::ValidatorsToAdd, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -37929,46 +39341,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - pub mod control_auto_migration { - use super::runtime_types; - pub type MaybeConfig = ::core::option::Option< - runtime_types::pallet_state_trie_migration::pallet::MigrationLimits, - >; - } - pub mod continue_migrate { - use super::runtime_types; - pub type Limits = - runtime_types::pallet_state_trie_migration::pallet::MigrationLimits; - pub type RealSizeUpper = ::core::primitive::u32; - pub type WitnessTask = - runtime_types::pallet_state_trie_migration::pallet::MigrationTask; - } - pub mod migrate_custom_top { - use super::runtime_types; - pub type Keys = ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>; - pub type WitnessSize = ::core::primitive::u32; - } - pub mod migrate_custom_child { - use super::runtime_types; - pub type Root = ::std::vec::Vec<::core::primitive::u8>; - pub type ChildKeys = ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>; - pub type TotalSize = ::core::primitive::u32; - } - pub mod set_signed_max_limits { - use super::runtime_types; - pub type Limits = - runtime_types::pallet_state_trie_migration::pallet::MigrationLimits; - } - pub mod force_set_progress { - use super::runtime_types; - pub type ProgressTop = - runtime_types::pallet_state_trie_migration::pallet::Progress; - pub type ProgressChild = - runtime_types::pallet_state_trie_migration::pallet::Progress; - } - } pub mod types { use super::runtime_types; #[derive( @@ -37982,9 +39354,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ControlAutoMigration { - pub maybe_config: ::core::option::Option< + pub maybe_config: control_auto_migration::MaybeConfig, + } + pub mod control_auto_migration { + use super::runtime_types; + pub type MaybeConfig = ::core::option::Option< runtime_types::pallet_state_trie_migration::pallet::MigrationLimits, - >, + >; } impl ::subxt::blocks::StaticExtrinsic for ControlAutoMigration { const PALLET: &'static str = "StateTrieMigration"; @@ -38001,10 +39377,17 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ContinueMigrate { - pub limits: runtime_types::pallet_state_trie_migration::pallet::MigrationLimits, - pub real_size_upper: ::core::primitive::u32, - pub witness_task: - runtime_types::pallet_state_trie_migration::pallet::MigrationTask, + pub limits: continue_migrate::Limits, + pub real_size_upper: continue_migrate::RealSizeUpper, + pub witness_task: continue_migrate::WitnessTask, + } + pub mod continue_migrate { + use super::runtime_types; + pub type Limits = + runtime_types::pallet_state_trie_migration::pallet::MigrationLimits; + pub type RealSizeUpper = ::core::primitive::u32; + pub type WitnessTask = + runtime_types::pallet_state_trie_migration::pallet::MigrationTask; } impl ::subxt::blocks::StaticExtrinsic for ContinueMigrate { const PALLET: &'static str = "StateTrieMigration"; @@ -38021,8 +39404,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct MigrateCustomTop { - pub keys: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, - pub witness_size: ::core::primitive::u32, + pub keys: migrate_custom_top::Keys, + pub witness_size: migrate_custom_top::WitnessSize, + } + pub mod migrate_custom_top { + use super::runtime_types; + pub type Keys = ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>; + pub type WitnessSize = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for MigrateCustomTop { const PALLET: &'static str = "StateTrieMigration"; @@ -38039,9 +39427,15 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct MigrateCustomChild { - pub root: ::std::vec::Vec<::core::primitive::u8>, - pub child_keys: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, - pub total_size: ::core::primitive::u32, + pub root: migrate_custom_child::Root, + pub child_keys: migrate_custom_child::ChildKeys, + pub total_size: migrate_custom_child::TotalSize, + } + pub mod migrate_custom_child { + use super::runtime_types; + pub type Root = ::std::vec::Vec<::core::primitive::u8>; + pub type ChildKeys = ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>; + pub type TotalSize = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for MigrateCustomChild { const PALLET: &'static str = "StateTrieMigration"; @@ -38058,7 +39452,12 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetSignedMaxLimits { - pub limits: runtime_types::pallet_state_trie_migration::pallet::MigrationLimits, + pub limits: set_signed_max_limits::Limits, + } + pub mod set_signed_max_limits { + use super::runtime_types; + pub type Limits = + runtime_types::pallet_state_trie_migration::pallet::MigrationLimits; } impl ::subxt::blocks::StaticExtrinsic for SetSignedMaxLimits { const PALLET: &'static str = "StateTrieMigration"; @@ -38075,9 +39474,15 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceSetProgress { - pub progress_top: runtime_types::pallet_state_trie_migration::pallet::Progress, - pub progress_child: - runtime_types::pallet_state_trie_migration::pallet::Progress, + pub progress_top: force_set_progress::ProgressTop, + pub progress_child: force_set_progress::ProgressChild, + } + pub mod force_set_progress { + use super::runtime_types; + pub type ProgressTop = + runtime_types::pallet_state_trie_migration::pallet::Progress; + pub type ProgressChild = + runtime_types::pallet_state_trie_migration::pallet::Progress; } impl ::subxt::blocks::StaticExtrinsic for ForceSetProgress { const PALLET: &'static str = "StateTrieMigration"; @@ -38089,7 +39494,7 @@ pub mod api { #[doc = "See [`Pallet::control_auto_migration`]."] pub fn control_auto_migration( &self, - maybe_config: alias_types::control_auto_migration::MaybeConfig, + maybe_config: types::control_auto_migration::MaybeConfig, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "StateTrieMigration", @@ -38105,9 +39510,9 @@ pub mod api { #[doc = "See [`Pallet::continue_migrate`]."] pub fn continue_migrate( &self, - limits: alias_types::continue_migrate::Limits, - real_size_upper: alias_types::continue_migrate::RealSizeUpper, - witness_task: alias_types::continue_migrate::WitnessTask, + limits: types::continue_migrate::Limits, + real_size_upper: types::continue_migrate::RealSizeUpper, + witness_task: types::continue_migrate::WitnessTask, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "StateTrieMigration", @@ -38128,8 +39533,8 @@ pub mod api { #[doc = "See [`Pallet::migrate_custom_top`]."] pub fn migrate_custom_top( &self, - keys: alias_types::migrate_custom_top::Keys, - witness_size: alias_types::migrate_custom_top::WitnessSize, + keys: types::migrate_custom_top::Keys, + witness_size: types::migrate_custom_top::WitnessSize, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "StateTrieMigration", @@ -38145,9 +39550,9 @@ pub mod api { #[doc = "See [`Pallet::migrate_custom_child`]."] pub fn migrate_custom_child( &self, - root: alias_types::migrate_custom_child::Root, - child_keys: alias_types::migrate_custom_child::ChildKeys, - total_size: alias_types::migrate_custom_child::TotalSize, + root: types::migrate_custom_child::Root, + child_keys: types::migrate_custom_child::ChildKeys, + total_size: types::migrate_custom_child::TotalSize, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "StateTrieMigration", @@ -38167,7 +39572,7 @@ pub mod api { #[doc = "See [`Pallet::set_signed_max_limits`]."] pub fn set_signed_max_limits( &self, - limits: alias_types::set_signed_max_limits::Limits, + limits: types::set_signed_max_limits::Limits, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "StateTrieMigration", @@ -38183,8 +39588,8 @@ pub mod api { #[doc = "See [`Pallet::force_set_progress`]."] pub fn force_set_progress( &self, - progress_top: alias_types::force_set_progress::ProgressTop, - progress_child: alias_types::force_set_progress::ProgressChild, + progress_top: types::force_set_progress::ProgressTop, + progress_child: types::force_set_progress::ProgressChild, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "StateTrieMigration", @@ -38220,9 +39625,16 @@ pub mod api { #[doc = "Given number of `(top, child)` keys were migrated respectively, with the given"] #[doc = "`compute`."] pub struct Migrated { - pub top: ::core::primitive::u32, - pub child: ::core::primitive::u32, - pub compute: runtime_types::pallet_state_trie_migration::pallet::MigrationCompute, + pub top: migrated::Top, + pub child: migrated::Child, + pub compute: migrated::Compute, + } + pub mod migrated { + use super::runtime_types; + pub type Top = ::core::primitive::u32; + pub type Child = ::core::primitive::u32; + pub type Compute = + runtime_types::pallet_state_trie_migration::pallet::MigrationCompute; } impl ::subxt::events::StaticEvent for Migrated { const PALLET: &'static str = "StateTrieMigration"; @@ -38240,8 +39652,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some account got slashed by the given amount."] pub struct Slashed { - pub who: ::subxt::utils::AccountId32, - pub amount: ::core::primitive::u128, + pub who: slashed::Who, + pub amount: slashed::Amount, + } + pub mod slashed { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Slashed { const PALLET: &'static str = "StateTrieMigration"; @@ -38275,7 +39692,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Migration got halted due to an error or miss-configuration."] pub struct Halted { - pub error: runtime_types::pallet_state_trie_migration::pallet::Error, + pub error: halted::Error, + } + pub mod halted { + use super::runtime_types; + pub type Error = runtime_types::pallet_state_trie_migration::pallet::Error; } impl ::subxt::events::StaticEvent for Halted { const PALLET: &'static str = "StateTrieMigration"; @@ -38284,7 +39705,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod migration_process { use super::runtime_types; @@ -38313,7 +39734,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::migration_process::MigrationProcess, + types::migration_process::MigrationProcess, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -38336,7 +39757,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::auto_limits::AutoLimits, + types::auto_limits::AutoLimits, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -38359,7 +39780,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::signed_migration_max_limits::SignedMigrationMaxLimits, + types::signed_migration_max_limits::SignedMigrationMaxLimits, ::subxt::storage::address::Yes, (), (), @@ -38427,16 +39848,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - pub mod fill_block { - use super::runtime_types; - pub type Ratio = runtime_types::sp_arithmetic::per_things::Perbill; - } - pub mod trigger_defensive { - use super::runtime_types; - } - } pub mod types { use super::runtime_types; #[derive( @@ -38450,7 +39861,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct FillBlock { - pub ratio: runtime_types::sp_arithmetic::per_things::Perbill, + pub ratio: fill_block::Ratio, + } + pub mod fill_block { + use super::runtime_types; + pub type Ratio = runtime_types::sp_arithmetic::per_things::Perbill; } impl ::subxt::blocks::StaticExtrinsic for FillBlock { const PALLET: &'static str = "RootTesting"; @@ -38477,7 +39892,7 @@ pub mod api { #[doc = "See `Pallet::fill_block`."] pub fn fill_block( &self, - ratio: alias_types::fill_block::Ratio, + ratio: types::fill_block::Ratio, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "RootTesting", @@ -38529,7 +39944,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; } pub struct StorageApi; @@ -38547,27 +39962,6 @@ pub mod api { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod alias_types { - use super::runtime_types; - pub mod sudo { - use super::runtime_types; - pub type Call = runtime_types::rococo_runtime::RuntimeCall; - } - pub mod sudo_unchecked_weight { - use super::runtime_types; - pub type Call = runtime_types::rococo_runtime::RuntimeCall; - pub type Weight = runtime_types::sp_weights::weight_v2::Weight; - } - pub mod set_key { - use super::runtime_types; - pub type New = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - } - pub mod sudo_as { - use super::runtime_types; - pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Call = runtime_types::rococo_runtime::RuntimeCall; - } - } pub mod types { use super::runtime_types; #[derive( @@ -38581,7 +39975,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Sudo { - pub call: ::std::boxed::Box, + pub call: ::std::boxed::Box, + } + pub mod sudo { + use super::runtime_types; + pub type Call = runtime_types::rococo_runtime::RuntimeCall; } impl ::subxt::blocks::StaticExtrinsic for Sudo { const PALLET: &'static str = "Sudo"; @@ -38598,8 +39996,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SudoUncheckedWeight { - pub call: ::std::boxed::Box, - pub weight: runtime_types::sp_weights::weight_v2::Weight, + pub call: ::std::boxed::Box, + pub weight: sudo_unchecked_weight::Weight, + } + pub mod sudo_unchecked_weight { + use super::runtime_types; + pub type Call = runtime_types::rococo_runtime::RuntimeCall; + pub type Weight = runtime_types::sp_weights::weight_v2::Weight; } impl ::subxt::blocks::StaticExtrinsic for SudoUncheckedWeight { const PALLET: &'static str = "Sudo"; @@ -38616,7 +40019,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetKey { - pub new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub new: set_key::New, + } + pub mod set_key { + use super::runtime_types; + pub type New = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; } impl ::subxt::blocks::StaticExtrinsic for SetKey { const PALLET: &'static str = "Sudo"; @@ -38633,8 +40040,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SudoAs { - pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub call: ::std::boxed::Box, + pub who: sudo_as::Who, + pub call: ::std::boxed::Box, + } + pub mod sudo_as { + use super::runtime_types; + pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Call = runtime_types::rococo_runtime::RuntimeCall; } impl ::subxt::blocks::StaticExtrinsic for SudoAs { const PALLET: &'static str = "Sudo"; @@ -38644,10 +40056,7 @@ pub mod api { pub struct TransactionApi; impl TransactionApi { #[doc = "See [`Pallet::sudo`]."] - pub fn sudo( - &self, - call: alias_types::sudo::Call, - ) -> ::subxt::tx::Payload { + pub fn sudo(&self, call: types::sudo::Call) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Sudo", "sudo", @@ -38665,8 +40074,8 @@ pub mod api { #[doc = "See [`Pallet::sudo_unchecked_weight`]."] pub fn sudo_unchecked_weight( &self, - call: alias_types::sudo_unchecked_weight::Call, - weight: alias_types::sudo_unchecked_weight::Weight, + call: types::sudo_unchecked_weight::Call, + weight: types::sudo_unchecked_weight::Weight, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Sudo", @@ -38686,7 +40095,7 @@ pub mod api { #[doc = "See [`Pallet::set_key`]."] pub fn set_key( &self, - new: alias_types::set_key::New, + new: types::set_key::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Sudo", @@ -38702,8 +40111,8 @@ pub mod api { #[doc = "See [`Pallet::sudo_as`]."] pub fn sudo_as( &self, - who: alias_types::sudo_as::Who, - call: alias_types::sudo_as::Call, + who: types::sudo_as::Who, + call: types::sudo_as::Call, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Sudo", @@ -38737,8 +40146,12 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A sudo call just took place."] pub struct Sudid { - pub sudo_result: - ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + pub sudo_result: sudid::SudoResult, + } + pub mod sudid { + use super::runtime_types; + pub type SudoResult = + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>; } impl ::subxt::events::StaticEvent for Sudid { const PALLET: &'static str = "Sudo"; @@ -38756,7 +40169,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The sudo key has been updated."] pub struct KeyChanged { - pub old_sudoer: ::core::option::Option<::subxt::utils::AccountId32>, + pub old_sudoer: key_changed::OldSudoer, + } + pub mod key_changed { + use super::runtime_types; + pub type OldSudoer = ::core::option::Option<::subxt::utils::AccountId32>; } impl ::subxt::events::StaticEvent for KeyChanged { const PALLET: &'static str = "Sudo"; @@ -38774,8 +40191,12 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A [sudo_as](Pallet::sudo_as) call just took place."] pub struct SudoAsDone { - pub sudo_result: - ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + pub sudo_result: sudo_as_done::SudoResult, + } + pub mod sudo_as_done { + use super::runtime_types; + pub type SudoResult = + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>; } impl ::subxt::events::StaticEvent for SudoAsDone { const PALLET: &'static str = "Sudo"; @@ -38784,7 +40205,7 @@ pub mod api { } pub mod storage { use super::runtime_types; - pub mod alias_types { + pub mod types { use super::runtime_types; pub mod key { use super::runtime_types; @@ -38798,7 +40219,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - alias_types::key::Key, + types::key::Key, ::subxt::storage::address::Yes, (), (), From a777163254e0ca37fa2f73f190923c9a234bb3f1 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Thu, 9 Nov 2023 15:30:54 +0200 Subject: [PATCH 11/28] Update cargo.lock file Signed-off-by: Alexandru Vasile --- Cargo.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 6db96200d3..e381b0e206 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -373,9 +373,9 @@ checksum = "9ba43ea6f343b788c8764558649e08df62f86c6ef251fdaeb1ffd010a9ae50a2" [[package]] name = "basic-toml" -version = "0.1.4" +version = "0.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7bfc506e7a2370ec239e1d072507b2a80c833083699d3c6fa176fbb4de8448c6" +checksum = "2f2139706359229bfa8f19142ac1155b4b80beafb7a60471ac5dd109d4a19778" dependencies = [ "serde", ] From 977b4fb7d703918541fa834f7a0dc90ec516abe4 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Thu, 9 Nov 2023 15:39:01 +0200 Subject: [PATCH 12/28] codegen: Generate composite structs with alias unnamed fields Signed-off-by: Alexandru Vasile --- codegen/src/types/composite_def.rs | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/codegen/src/types/composite_def.rs b/codegen/src/types/composite_def.rs index fe6ed03798..449cd6d684 100644 --- a/codegen/src/types/composite_def.rs +++ b/codegen/src/types/composite_def.rs @@ -171,8 +171,8 @@ impl quote::ToTokens for CompositeDef { ) .then(|| quote!(;)); - let has_fields = - matches!(&self.fields, CompositeDefFields::Named(fields) if !fields.is_empty()); + let has_fields = matches!(&self.fields, CompositeDefFields::Named(fields) if !fields.is_empty()) + || matches!(&self.fields, CompositeDefFields::Unnamed(fields) if !fields.is_empty()); let alias_module = if *generate_alias && has_fields { let aliases = self @@ -364,9 +364,21 @@ impl CompositeDefFields { ) } Self::Unnamed(ref fields) => { - let fields = fields.iter().map(|ty| { + let fields = fields.iter().enumerate().map(|(idx, ty)| { let compact_attr = ty.compact_attr(); - quote! { #compact_attr #visibility #ty } + + if generate_alias { + let alias_name = format_ident!("Field{}", idx); + + let mut path = quote!( #alias_module_name::#alias_name); + if ty.is_boxed() { + path = quote!( ::std::boxed::Box<#path> ); + } + + quote! { #compact_attr #visibility #path } + } else { + quote! { #compact_attr #visibility #ty } + } }); let marker = phantom_data.map(|phantom_data| { quote!( From e353f16c9dbfb0d38837ba707421c584eae17e08 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Thu, 9 Nov 2023 15:48:52 +0200 Subject: [PATCH 13/28] testing: Update polkadot.rs file Signed-off-by: Alexandru Vasile --- .../src/full_client/codegen/polkadot.rs | 190 +++++++++++++----- 1 file changed, 139 insertions(+), 51 deletions(-) diff --git a/testing/integration-tests/src/full_client/codegen/polkadot.rs b/testing/integration-tests/src/full_client/codegen/polkadot.rs index 4ea00a5866..21b0c77f10 100644 --- a/testing/integration-tests/src/full_client/codegen/polkadot.rs +++ b/testing/integration-tests/src/full_client/codegen/polkadot.rs @@ -10940,10 +10940,12 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An account has delegated their vote to another account. \\[who, target\\]"] - pub struct Delegated( - pub ::subxt::utils::AccountId32, - pub ::subxt::utils::AccountId32, - ); + pub struct Delegated(pub delegated::Field0, pub delegated::Field1); + pub mod delegated { + use super::runtime_types; + pub type Field0 = ::subxt::utils::AccountId32; + pub type Field1 = ::subxt::utils::AccountId32; + } impl ::subxt::events::StaticEvent for Delegated { const PALLET: &'static str = "ConvictionVoting"; const EVENT: &'static str = "Delegated"; @@ -10959,7 +10961,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An \\[account\\] has cancelled a previous delegation operation."] - pub struct Undelegated(pub ::subxt::utils::AccountId32); + pub struct Undelegated(pub undelegated::Field0); + pub mod undelegated { + use super::runtime_types; + pub type Field0 = ::subxt::utils::AccountId32; + } impl ::subxt::events::StaticEvent for Undelegated { const PALLET: &'static str = "ConvictionVoting"; const EVENT: &'static str = "Undelegated"; @@ -28621,11 +28627,20 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A candidate was backed. `[candidate, head_data]`"] pub struct CandidateBacked( - pub runtime_types::polkadot_primitives::v6::CandidateReceipt<::subxt::utils::H256>, - pub runtime_types::polkadot_parachain_primitives::primitives::HeadData, - pub runtime_types::polkadot_primitives::v6::CoreIndex, - pub runtime_types::polkadot_primitives::v6::GroupIndex, + pub candidate_backed::Field0, + pub candidate_backed::Field1, + pub candidate_backed::Field2, + pub candidate_backed::Field3, ); + pub mod candidate_backed { + use super::runtime_types; + pub type Field0 = + runtime_types::polkadot_primitives::v6::CandidateReceipt<::subxt::utils::H256>; + pub type Field1 = + runtime_types::polkadot_parachain_primitives::primitives::HeadData; + pub type Field2 = runtime_types::polkadot_primitives::v6::CoreIndex; + pub type Field3 = runtime_types::polkadot_primitives::v6::GroupIndex; + } impl ::subxt::events::StaticEvent for CandidateBacked { const PALLET: &'static str = "ParaInclusion"; const EVENT: &'static str = "CandidateBacked"; @@ -28642,11 +28657,20 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A candidate was included. `[candidate, head_data]`"] pub struct CandidateIncluded( - pub runtime_types::polkadot_primitives::v6::CandidateReceipt<::subxt::utils::H256>, - pub runtime_types::polkadot_parachain_primitives::primitives::HeadData, - pub runtime_types::polkadot_primitives::v6::CoreIndex, - pub runtime_types::polkadot_primitives::v6::GroupIndex, + pub candidate_included::Field0, + pub candidate_included::Field1, + pub candidate_included::Field2, + pub candidate_included::Field3, ); + pub mod candidate_included { + use super::runtime_types; + pub type Field0 = + runtime_types::polkadot_primitives::v6::CandidateReceipt<::subxt::utils::H256>; + pub type Field1 = + runtime_types::polkadot_parachain_primitives::primitives::HeadData; + pub type Field2 = runtime_types::polkadot_primitives::v6::CoreIndex; + pub type Field3 = runtime_types::polkadot_primitives::v6::GroupIndex; + } impl ::subxt::events::StaticEvent for CandidateIncluded { const PALLET: &'static str = "ParaInclusion"; const EVENT: &'static str = "CandidateIncluded"; @@ -28663,10 +28687,18 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A candidate timed out. `[candidate, head_data]`"] pub struct CandidateTimedOut( - pub runtime_types::polkadot_primitives::v6::CandidateReceipt<::subxt::utils::H256>, - pub runtime_types::polkadot_parachain_primitives::primitives::HeadData, - pub runtime_types::polkadot_primitives::v6::CoreIndex, + pub candidate_timed_out::Field0, + pub candidate_timed_out::Field1, + pub candidate_timed_out::Field2, ); + pub mod candidate_timed_out { + use super::runtime_types; + pub type Field0 = + runtime_types::polkadot_primitives::v6::CandidateReceipt<::subxt::utils::H256>; + pub type Field1 = + runtime_types::polkadot_parachain_primitives::primitives::HeadData; + pub type Field2 = runtime_types::polkadot_primitives::v6::CoreIndex; + } impl ::subxt::events::StaticEvent for CandidateTimedOut { const PALLET: &'static str = "ParaInclusion"; const EVENT: &'static str = "CandidateTimedOut"; @@ -29535,9 +29567,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Current code has been updated for a Para. `para_id`"] - pub struct CurrentCodeUpdated( - pub runtime_types::polkadot_parachain_primitives::primitives::Id, - ); + pub struct CurrentCodeUpdated(pub current_code_updated::Field0); + pub mod current_code_updated { + use super::runtime_types; + pub type Field0 = runtime_types::polkadot_parachain_primitives::primitives::Id; + } impl ::subxt::events::StaticEvent for CurrentCodeUpdated { const PALLET: &'static str = "Paras"; const EVENT: &'static str = "CurrentCodeUpdated"; @@ -29553,9 +29587,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Current head has been updated for a Para. `para_id`"] - pub struct CurrentHeadUpdated( - pub runtime_types::polkadot_parachain_primitives::primitives::Id, - ); + pub struct CurrentHeadUpdated(pub current_head_updated::Field0); + pub mod current_head_updated { + use super::runtime_types; + pub type Field0 = runtime_types::polkadot_parachain_primitives::primitives::Id; + } impl ::subxt::events::StaticEvent for CurrentHeadUpdated { const PALLET: &'static str = "Paras"; const EVENT: &'static str = "CurrentHeadUpdated"; @@ -29571,9 +29607,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A code upgrade has been scheduled for a Para. `para_id`"] - pub struct CodeUpgradeScheduled( - pub runtime_types::polkadot_parachain_primitives::primitives::Id, - ); + pub struct CodeUpgradeScheduled(pub code_upgrade_scheduled::Field0); + pub mod code_upgrade_scheduled { + use super::runtime_types; + pub type Field0 = runtime_types::polkadot_parachain_primitives::primitives::Id; + } impl ::subxt::events::StaticEvent for CodeUpgradeScheduled { const PALLET: &'static str = "Paras"; const EVENT: &'static str = "CodeUpgradeScheduled"; @@ -29589,9 +29627,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A new head has been noted for a Para. `para_id`"] - pub struct NewHeadNoted( - pub runtime_types::polkadot_parachain_primitives::primitives::Id, - ); + pub struct NewHeadNoted(pub new_head_noted::Field0); + pub mod new_head_noted { + use super::runtime_types; + pub type Field0 = runtime_types::polkadot_parachain_primitives::primitives::Id; + } impl ::subxt::events::StaticEvent for NewHeadNoted { const PALLET: &'static str = "Paras"; const EVENT: &'static str = "NewHeadNoted"; @@ -29607,10 +29647,12 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A para has been queued to execute pending actions. `para_id`"] - pub struct ActionQueued( - pub runtime_types::polkadot_parachain_primitives::primitives::Id, - pub ::core::primitive::u32, - ); + pub struct ActionQueued(pub action_queued::Field0, pub action_queued::Field1); + pub mod action_queued { + use super::runtime_types; + pub type Field0 = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Field1 = ::core::primitive::u32; + } impl ::subxt::events::StaticEvent for ActionQueued { const PALLET: &'static str = "Paras"; const EVENT: &'static str = "ActionQueued"; @@ -29628,9 +29670,15 @@ pub mod api { #[doc = "The given para either initiated or subscribed to a PVF check for the given validation"] #[doc = "code. `code_hash` `para_id`"] pub struct PvfCheckStarted( - pub runtime_types::polkadot_parachain_primitives::primitives::ValidationCodeHash, - pub runtime_types::polkadot_parachain_primitives::primitives::Id, + pub pvf_check_started::Field0, + pub pvf_check_started::Field1, ); + pub mod pvf_check_started { + use super::runtime_types; + pub type Field0 = + runtime_types::polkadot_parachain_primitives::primitives::ValidationCodeHash; + pub type Field1 = runtime_types::polkadot_parachain_primitives::primitives::Id; + } impl ::subxt::events::StaticEvent for PvfCheckStarted { const PALLET: &'static str = "Paras"; const EVENT: &'static str = "PvfCheckStarted"; @@ -29648,9 +29696,15 @@ pub mod api { #[doc = "The given validation code was accepted by the PVF pre-checking vote."] #[doc = "`code_hash` `para_id`"] pub struct PvfCheckAccepted( - pub runtime_types::polkadot_parachain_primitives::primitives::ValidationCodeHash, - pub runtime_types::polkadot_parachain_primitives::primitives::Id, + pub pvf_check_accepted::Field0, + pub pvf_check_accepted::Field1, ); + pub mod pvf_check_accepted { + use super::runtime_types; + pub type Field0 = + runtime_types::polkadot_parachain_primitives::primitives::ValidationCodeHash; + pub type Field1 = runtime_types::polkadot_parachain_primitives::primitives::Id; + } impl ::subxt::events::StaticEvent for PvfCheckAccepted { const PALLET: &'static str = "Paras"; const EVENT: &'static str = "PvfCheckAccepted"; @@ -29668,9 +29722,15 @@ pub mod api { #[doc = "The given validation code was rejected by the PVF pre-checking vote."] #[doc = "`code_hash` `para_id`"] pub struct PvfCheckRejected( - pub runtime_types::polkadot_parachain_primitives::primitives::ValidationCodeHash, - pub runtime_types::polkadot_parachain_primitives::primitives::Id, + pub pvf_check_rejected::Field0, + pub pvf_check_rejected::Field1, ); + pub mod pvf_check_rejected { + use super::runtime_types; + pub type Field0 = + runtime_types::polkadot_parachain_primitives::primitives::ValidationCodeHash; + pub type Field1 = runtime_types::polkadot_parachain_primitives::primitives::Id; + } impl ::subxt::events::StaticEvent for PvfCheckRejected { const PALLET: &'static str = "Paras"; const EVENT: &'static str = "PvfCheckRejected"; @@ -32654,9 +32714,15 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A dispute has been initiated. \\[candidate hash, dispute location\\]"] pub struct DisputeInitiated( - pub runtime_types::polkadot_core_primitives::CandidateHash, - pub runtime_types::polkadot_runtime_parachains::disputes::DisputeLocation, + pub dispute_initiated::Field0, + pub dispute_initiated::Field1, ); + pub mod dispute_initiated { + use super::runtime_types; + pub type Field0 = runtime_types::polkadot_core_primitives::CandidateHash; + pub type Field1 = + runtime_types::polkadot_runtime_parachains::disputes::DisputeLocation; + } impl ::subxt::events::StaticEvent for DisputeInitiated { const PALLET: &'static str = "ParasDisputes"; const EVENT: &'static str = "DisputeInitiated"; @@ -32674,9 +32740,15 @@ pub mod api { #[doc = "A dispute has concluded for or against a candidate."] #[doc = "`\\[para id, candidate hash, dispute result\\]`"] pub struct DisputeConcluded( - pub runtime_types::polkadot_core_primitives::CandidateHash, - pub runtime_types::polkadot_runtime_parachains::disputes::DisputeResult, + pub dispute_concluded::Field0, + pub dispute_concluded::Field1, ); + pub mod dispute_concluded { + use super::runtime_types; + pub type Field0 = runtime_types::polkadot_core_primitives::CandidateHash; + pub type Field1 = + runtime_types::polkadot_runtime_parachains::disputes::DisputeResult; + } impl ::subxt::events::StaticEvent for DisputeConcluded { const PALLET: &'static str = "ParasDisputes"; const EVENT: &'static str = "DisputeConcluded"; @@ -32696,7 +32768,11 @@ pub mod api { #[doc = "Block authors should no longer build on top of this head and should"] #[doc = "instead revert the block at the given height. This should be the"] #[doc = "number of the child of the last known valid block in the chain."] - pub struct Revert(pub ::core::primitive::u32); + pub struct Revert(pub revert::Field0); + pub mod revert { + use super::runtime_types; + pub type Field0 = ::core::primitive::u32; + } impl ::subxt::events::StaticEvent for Revert { const PALLET: &'static str = "ParasDisputes"; const EVENT: &'static str = "Revert"; @@ -38773,9 +38849,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A parachain was assigned a permanent parachain slot"] - pub struct PermanentSlotAssigned( - pub runtime_types::polkadot_parachain_primitives::primitives::Id, - ); + pub struct PermanentSlotAssigned(pub permanent_slot_assigned::Field0); + pub mod permanent_slot_assigned { + use super::runtime_types; + pub type Field0 = runtime_types::polkadot_parachain_primitives::primitives::Id; + } impl ::subxt::events::StaticEvent for PermanentSlotAssigned { const PALLET: &'static str = "AssignedSlots"; const EVENT: &'static str = "PermanentSlotAssigned"; @@ -38791,9 +38869,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A parachain was assigned a temporary parachain slot"] - pub struct TemporarySlotAssigned( - pub runtime_types::polkadot_parachain_primitives::primitives::Id, - ); + pub struct TemporarySlotAssigned(pub temporary_slot_assigned::Field0); + pub mod temporary_slot_assigned { + use super::runtime_types; + pub type Field0 = runtime_types::polkadot_parachain_primitives::primitives::Id; + } impl ::subxt::events::StaticEvent for TemporarySlotAssigned { const PALLET: &'static str = "AssignedSlots"; const EVENT: &'static str = "TemporarySlotAssigned"; @@ -39247,7 +39327,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "New validators were added to the set."] - pub struct ValidatorsRegistered(pub ::std::vec::Vec<::subxt::utils::AccountId32>); + pub struct ValidatorsRegistered(pub validators_registered::Field0); + pub mod validators_registered { + use super::runtime_types; + pub type Field0 = ::std::vec::Vec<::subxt::utils::AccountId32>; + } impl ::subxt::events::StaticEvent for ValidatorsRegistered { const PALLET: &'static str = "ValidatorManager"; const EVENT: &'static str = "ValidatorsRegistered"; @@ -39263,7 +39347,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Validators were removed from the set."] - pub struct ValidatorsDeregistered(pub ::std::vec::Vec<::subxt::utils::AccountId32>); + pub struct ValidatorsDeregistered(pub validators_deregistered::Field0); + pub mod validators_deregistered { + use super::runtime_types; + pub type Field0 = ::std::vec::Vec<::subxt::utils::AccountId32>; + } impl ::subxt::events::StaticEvent for ValidatorsDeregistered { const PALLET: &'static str = "ValidatorManager"; const EVENT: &'static str = "ValidatorsDeregistered"; From 0798ad98c04ed1b522929817449d47e80e52ca53 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Thu, 9 Nov 2023 16:27:29 +0200 Subject: [PATCH 14/28] codegen: Alias storage unnamed parameters Signed-off-by: Alexandru Vasile --- codegen/src/api/storage.rs | 52 +++++++++++++++++++++++--------------- 1 file changed, 31 insertions(+), 21 deletions(-) diff --git a/codegen/src/api/storage.rs b/codegen/src/api/storage.rs index 6289708a87..6429669a7d 100644 --- a/codegen/src/api/storage.rs +++ b/codegen/src/api/storage.rs @@ -79,7 +79,28 @@ fn generate_storage_entry_fns( should_gen_docs: bool, types_mod_ident: &syn::Ident, ) -> Result<(TokenStream2, TokenStream2), CodegenError> { - let keys: Vec<(Ident, TypePath)> = match storage_entry.entry_type() { + let snake_case_name = storage_entry.name().to_snake_case(); + let storage_entry_ty = storage_entry.entry_type().value_ty(); + let storage_entry_value_ty = type_gen.resolve_type_path(storage_entry_ty); + + let alias_name = format_ident!("{}", storage_entry.name().to_upper_camel_case()); + let alias_module_name = format_ident!("{snake_case_name}"); + let alias_storage_path = quote!( types::#alias_module_name::#alias_name ); + + let storage_entry_map = |idx, id| { + let ident: Ident = format_ident!("_{}", idx); + let ty_path = type_gen.resolve_type_path(id); + + let alias_name = format_ident!("Param{}", idx); + let alias_type = primitive_type_alias(&ty_path); + + let alias_type = quote!( pub type #alias_name = #alias_type; ); + let path_to_alias = quote!( types::#alias_module_name::#alias_name ); + + (ident, alias_type, path_to_alias) + }; + + let keys: Vec<(Ident, TokenStream, TokenStream)> = match storage_entry.entry_type() { StorageEntryType::Plain(_) => vec![], StorageEntryType::Map { key_ty, .. } => { match &type_gen.resolve_type(*key_ty).type_def { @@ -88,17 +109,11 @@ fn generate_storage_entry_fns( .fields .iter() .enumerate() - .map(|(i, f)| { - let ident: Ident = format_ident!("_{}", syn::Index::from(i)); - let ty_path = type_gen.resolve_type_path(f.id); - (ident, ty_path) - }) + .map(|(idx, f)| storage_entry_map(idx, f.id)) .collect::>(), // A map with a single key; return the single key. _ => { - let ident = format_ident!("_0"); - let ty_path = type_gen.resolve_type_path(*key_ty); - vec![(ident, ty_path)] + vec![storage_entry_map(0, *key_ty)] } } } @@ -112,14 +127,6 @@ fn generate_storage_entry_fns( )); }; - let snake_case_name = storage_entry.name().to_snake_case(); - let storage_entry_ty = storage_entry.entry_type().value_ty(); - let storage_entry_value_ty = type_gen.resolve_type_path(storage_entry_ty); - - let alias_name = format_ident!("{}", storage_entry.name().to_upper_camel_case()); - let alias_module_name = format_ident!("{snake_case_name}"); - let alias_storage_path = quote!( types::#alias_module_name::#alias_name ); - let docs = storage_entry.docs(); let docs = should_gen_docs .then_some(quote! { #( #[doc = #docs ] )* }) @@ -145,10 +152,9 @@ fn generate_storage_entry_fns( }; let is_fetchable_type = is_fetchable.then_some(quote!(#crate_path::storage::address::Yes)).unwrap_or(quote!(())); let is_iterable_type = is_iterable.then_some(quote!(#crate_path::storage::address::Yes)).unwrap_or(quote!(())); - let key_impls = keys_slice.iter().map(|(field_name, _)| quote!( #crate_path::storage::address::make_static_storage_map_key(#field_name.borrow()) )); - let key_args = keys_slice.iter().map(|(field_name, field_type)| { - let field_ty = primitive_type_alias(field_type); - quote!( #field_name: impl ::std::borrow::Borrow<#field_ty> ) + let key_impls = keys_slice.iter().map(|(field_name, _, _)| quote!( #crate_path::storage::address::make_static_storage_map_key(#field_name.borrow()) )); + let key_args = keys_slice.iter().map(|(field_name, _, path_to_alias )| { + quote!( #field_name: impl ::std::borrow::Borrow<#path_to_alias> ) }); quote!( @@ -173,6 +179,8 @@ fn generate_storage_entry_fns( ) }); + let alias_types = keys.iter().map(|(_, alias_type, _)| alias_type); + // Generate type alias for the return type only, since // the keys of the storage entry are not explicitly named. let alias_module = quote! { @@ -180,6 +188,8 @@ fn generate_storage_entry_fns( use super::#types_mod_ident; pub type #alias_name = #storage_entry_value_ty; + + #( #alias_types )* } }; From b9398dd7119308edf6d5dca919a42c0ac89673cc Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Thu, 9 Nov 2023 16:28:05 +0200 Subject: [PATCH 15/28] Update polkadot.rs Signed-off-by: Alexandru Vasile --- .../src/full_client/codegen/polkadot.rs | 639 ++++++++++-------- 1 file changed, 361 insertions(+), 278 deletions(-) diff --git a/testing/integration-tests/src/full_client/codegen/polkadot.rs b/testing/integration-tests/src/full_client/codegen/polkadot.rs index 21b0c77f10..1d1e4a32ea 100644 --- a/testing/integration-tests/src/full_client/codegen/polkadot.rs +++ b/testing/integration-tests/src/full_client/codegen/polkadot.rs @@ -4162,6 +4162,7 @@ pub mod api { ::core::primitive::u32, runtime_types::pallet_balances::types::AccountData<::core::primitive::u128>, >; + pub type Param0 = ::subxt::utils::AccountId32; } pub mod extrinsic_count { use super::runtime_types; @@ -4180,10 +4181,12 @@ pub mod api { pub mod block_hash { use super::runtime_types; pub type BlockHash = ::subxt::utils::H256; + pub type Param0 = ::core::primitive::u32; } pub mod extrinsic_data { use super::runtime_types; pub type ExtrinsicData = ::std::vec::Vec<::core::primitive::u8>; + pub type Param0 = ::core::primitive::u32; } pub mod number { use super::runtime_types; @@ -4214,6 +4217,7 @@ pub mod api { use super::runtime_types; pub type EventTopics = ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::u32)>; + pub type Param0 = ::subxt::utils::H256; } pub mod last_runtime_upgrade { use super::runtime_types; @@ -4259,7 +4263,7 @@ pub mod api { #[doc = " The full account information for a particular account ID."] pub fn account( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::account::Account, @@ -4370,7 +4374,7 @@ pub mod api { #[doc = " Map of block numbers to block hashes."] pub fn block_hash( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::block_hash::BlockHash, @@ -4416,7 +4420,7 @@ pub mod api { #[doc = " Extrinsics data for the current block (maps an extrinsic's index to its data)."] pub fn extrinsic_data( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::extrinsic_data::ExtrinsicData, @@ -4591,7 +4595,7 @@ pub mod api { #[doc = " no notification will be triggered thus the event might be lost."] pub fn event_topics( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::event_topics::EventTopics, @@ -5013,6 +5017,7 @@ pub mod api { runtime_types::bounded_collections::bounded_vec::BoundedVec< [::core::primitive::u8; 32usize], >; + pub type Param0 = ::core::primitive::u32; } pub mod initialized { use super::runtime_types; @@ -5291,7 +5296,7 @@ pub mod api { #[doc = " TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay."] pub fn under_construction( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::under_construction::UnderConstruction, @@ -6004,6 +6009,7 @@ pub mod api { ::core::primitive::u128, ::core::primitive::bool, ); + pub type Param0 = ::core::primitive::u32; } } pub struct StorageApi; @@ -6033,7 +6039,7 @@ pub mod api { #[doc = " The lookup from index to account."] pub fn accounts( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::accounts::Accounts, @@ -6914,6 +6920,7 @@ pub mod api { use super::runtime_types; pub type Account = runtime_types::pallet_balances::types::AccountData<::core::primitive::u128>; + pub type Param0 = ::subxt::utils::AccountId32; } pub mod locks { use super::runtime_types; @@ -6923,6 +6930,7 @@ pub mod api { ::core::primitive::u128, >, >; + pub type Param0 = ::subxt::utils::AccountId32; } pub mod reserves { use super::runtime_types; @@ -6932,6 +6940,7 @@ pub mod api { ::core::primitive::u128, >, >; + pub type Param0 = ::subxt::utils::AccountId32; } pub mod holds { use super::runtime_types; @@ -6941,6 +6950,7 @@ pub mod api { ::core::primitive::u128, >, >; + pub type Param0 = ::subxt::utils::AccountId32; } pub mod freezes { use super::runtime_types; @@ -6950,6 +6960,7 @@ pub mod api { ::core::primitive::u128, >, >; + pub type Param0 = ::subxt::utils::AccountId32; } } pub struct StorageApi; @@ -7067,7 +7078,7 @@ pub mod api { #[doc = " NOTE: This is only used in the case that this pallet is used to store balances."] pub fn account( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::account::Account, @@ -7114,7 +7125,7 @@ pub mod api { #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] pub fn locks( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::locks::Locks, @@ -7159,7 +7170,7 @@ pub mod api { #[doc = " Named reserves on some account balances."] pub fn reserves( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::reserves::Reserves, @@ -7205,7 +7216,7 @@ pub mod api { #[doc = " Holds on account balances."] pub fn holds( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::holds::Holds, @@ -7251,7 +7262,7 @@ pub mod api { #[doc = " Freeze locks on account balances."] pub fn freezes( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::freezes::Freezes, @@ -7575,10 +7586,13 @@ pub mod api { ::subxt::utils::AccountId32, (::subxt::utils::AccountId32, ()), >; + pub type Param0 = ::subxt::utils::H256; } pub mod concurrent_reports_index { use super::runtime_types; pub type ConcurrentReportsIndex = ::std::vec::Vec<::subxt::utils::H256>; + pub type Param0 = [::core::primitive::u8; 16usize]; + pub type Param1 = [::core::primitive::u8]; } } pub struct StorageApi; @@ -7608,7 +7622,7 @@ pub mod api { #[doc = " The primary structure that holds all offence records keyed by report identifiers."] pub fn reports( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::reports::Reports, @@ -7655,7 +7669,7 @@ pub mod api { #[doc = " A vector of reports of the same kind that happened at the same time slot."] pub fn concurrent_reports_index_iter1( &self, - _0: impl ::std::borrow::Borrow<[::core::primitive::u8; 16usize]>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::concurrent_reports_index::ConcurrentReportsIndex, @@ -7680,8 +7694,8 @@ pub mod api { #[doc = " A vector of reports of the same kind that happened at the same time slot."] pub fn concurrent_reports_index( &self, - _0: impl ::std::borrow::Borrow<[::core::primitive::u8; 16usize]>, - _1: impl ::std::borrow::Borrow<[::core::primitive::u8]>, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::concurrent_reports_index::ConcurrentReportsIndex, @@ -7892,6 +7906,7 @@ pub mod api { pub mod set_id_session { use super::runtime_types; pub type SetIdSession = ::core::primitive::u32; + pub type Param0 = ::core::primitive::u64; } pub mod genesis_block { use super::runtime_types; @@ -8006,7 +8021,7 @@ pub mod api { #[doc = " TWOX-NOTE: `ValidatorSetId` is not under user control."] pub fn set_id_session( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u64>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::set_id_session::SetIdSession, @@ -8127,6 +8142,7 @@ pub mod api { pub mod nodes { use super::runtime_types; pub type Nodes = ::subxt::utils::H256; + pub type Param0 = ::core::primitive::u64; } } pub struct StorageApi; @@ -8203,7 +8219,7 @@ pub mod api { #[doc = " are pruned and only stored in the Offchain DB."] pub fn nodes( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u64>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::nodes::Nodes, @@ -8445,10 +8461,13 @@ pub mod api { pub mod next_keys { use super::runtime_types; pub type NextKeys = runtime_types::rococo_runtime::SessionKeys; + pub type Param0 = ::subxt::utils::AccountId32; } pub mod key_owner { use super::runtime_types; pub type KeyOwner = ::subxt::utils::AccountId32; + pub type Param0 = runtime_types::sp_core::crypto::KeyTypeId; + pub type Param1 = [::core::primitive::u8]; } } pub struct StorageApi; @@ -8591,7 +8610,7 @@ pub mod api { #[doc = " The next session keys for a validator."] pub fn next_keys( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::next_keys::NextKeys, @@ -8637,7 +8656,7 @@ pub mod api { #[doc = " The owner of a key. The key is the `KeyTypeId` + the encoded key."] pub fn key_owner_iter1( &self, - _0: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::key_owner::KeyOwner, @@ -8662,8 +8681,8 @@ pub mod api { #[doc = " The owner of a key. The key is the `KeyTypeId` + the encoded key."] pub fn key_owner( &self, - _0: impl ::std::borrow::Borrow, - _1: impl ::std::borrow::Borrow<[::core::primitive::u8]>, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::key_owner::KeyOwner, @@ -8937,6 +8956,7 @@ pub mod api { pub mod set_id_session { use super::runtime_types; pub type SetIdSession = ::core::primitive::u32; + pub type Param0 = ::core::primitive::u64; } } pub struct StorageApi; @@ -9091,7 +9111,7 @@ pub mod api { #[doc = " TWOX-NOTE: `SetId` is not under user control."] pub fn set_id_session( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u64>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::set_id_session::SetIdSession, @@ -9318,10 +9338,14 @@ pub mod api { pub mod received_heartbeats { use super::runtime_types; pub type ReceivedHeartbeats = ::core::primitive::bool; + pub type Param0 = ::core::primitive::u32; + pub type Param1 = ::core::primitive::u32; } pub mod authored_blocks { use super::runtime_types; pub type AuthoredBlocks = ::core::primitive::u32; + pub type Param0 = ::core::primitive::u32; + pub type Param1 = ::subxt::utils::AccountId32; } } pub struct StorageApi; @@ -9403,7 +9427,7 @@ pub mod api { #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`."] pub fn received_heartbeats_iter1( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::received_heartbeats::ReceivedHeartbeats, @@ -9427,8 +9451,8 @@ pub mod api { #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`."] pub fn received_heartbeats( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::received_heartbeats::ReceivedHeartbeats, @@ -9477,7 +9501,7 @@ pub mod api { #[doc = " number of blocks authored by the given authority."] pub fn authored_blocks_iter1( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::authored_blocks::AuthoredBlocks, @@ -9503,8 +9527,8 @@ pub mod api { #[doc = " number of blocks authored by the given authority."] pub fn authored_blocks( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::authored_blocks::AuthoredBlocks, @@ -10308,6 +10332,7 @@ pub mod api { ::subxt::utils::AccountId32, ::core::primitive::u128, >; + pub type Param0 = ::core::primitive::u32; } pub mod deactivated { use super::runtime_types; @@ -10333,6 +10358,7 @@ pub mod api { ::core::primitive::u32, ::core::primitive::u64, >; + pub type Param0 = ::core::primitive::u32; } } pub struct StorageApi; @@ -10383,7 +10409,7 @@ pub mod api { #[doc = " Proposals that have been made."] pub fn proposals( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::proposals::Proposals, @@ -10495,7 +10521,7 @@ pub mod api { #[doc = " Spends that have been approved and being processed."] pub fn spends( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::spends::Spends, @@ -10983,6 +11009,8 @@ pub mod api { ::core::primitive::u32, ::core::primitive::u32, >; + pub type Param0 = ::subxt::utils::AccountId32; + pub type Param1 = ::core::primitive::u16; } pub mod class_locks_for { use super::runtime_types; @@ -10991,6 +11019,7 @@ pub mod api { ::core::primitive::u16, ::core::primitive::u128, )>; + pub type Param0 = ::subxt::utils::AccountId32; } } pub struct StorageApi; @@ -11021,7 +11050,7 @@ pub mod api { #[doc = " number of votes that we have recorded."] pub fn voting_for_iter1( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::voting_for::VotingFor, @@ -11046,8 +11075,8 @@ pub mod api { #[doc = " number of votes that we have recorded."] pub fn voting_for( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - _1: impl ::std::borrow::Borrow<::core::primitive::u16>, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::voting_for::VotingFor, @@ -11097,7 +11126,7 @@ pub mod api { #[doc = " this list."] pub fn class_locks_for( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::class_locks_for::ClassLocksFor, @@ -11975,6 +12004,7 @@ pub mod api { ::subxt::utils::AccountId32, (::core::primitive::u32, ::core::primitive::u32), >; + pub type Param0 = ::core::primitive::u32; } pub mod track_queue { use super::runtime_types; @@ -11983,14 +12013,17 @@ pub mod api { ::core::primitive::u32, ::core::primitive::u128, )>; + pub type Param0 = ::core::primitive::u16; } pub mod deciding_count { use super::runtime_types; pub type DecidingCount = ::core::primitive::u32; + pub type Param0 = ::core::primitive::u16; } pub mod metadata_of { use super::runtime_types; pub type MetadataOf = ::subxt::utils::H256; + pub type Param0 = ::core::primitive::u32; } } pub struct StorageApi; @@ -12041,7 +12074,7 @@ pub mod api { #[doc = " Information concerning any given referendum."] pub fn referendum_info_for( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::referendum_info_for::ReferendumInfoFor, @@ -12092,7 +12125,7 @@ pub mod api { #[doc = " This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`."] pub fn track_queue( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u16>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::track_queue::TrackQueue, @@ -12138,7 +12171,7 @@ pub mod api { #[doc = " The number of referenda being decided currently."] pub fn deciding_count( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u16>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::deciding_count::DecidingCount, @@ -12195,7 +12228,7 @@ pub mod api { #[doc = " large preimages."] pub fn metadata_of( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::metadata_of::MetadataOf, @@ -12673,22 +12706,30 @@ pub mod api { pub mod member_count { use super::runtime_types; pub type MemberCount = ::core::primitive::u32; + pub type Param0 = ::core::primitive::u16; } pub mod members { use super::runtime_types; pub type Members = runtime_types::pallet_ranked_collective::MemberRecord; + pub type Param0 = ::subxt::utils::AccountId32; } pub mod id_to_index { use super::runtime_types; pub type IdToIndex = ::core::primitive::u32; + pub type Param0 = ::core::primitive::u16; + pub type Param1 = ::subxt::utils::AccountId32; } pub mod index_to_id { use super::runtime_types; pub type IndexToId = ::subxt::utils::AccountId32; + pub type Param0 = ::core::primitive::u16; + pub type Param1 = ::core::primitive::u32; } pub mod voting { use super::runtime_types; pub type Voting = runtime_types::pallet_ranked_collective::VoteRecord; + pub type Param0 = ::core::primitive::u32; + pub type Param1 = ::subxt::utils::AccountId32; } pub mod voting_cleanup { use super::runtime_types; @@ -12696,6 +12737,7 @@ pub mod api { runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >; + pub type Param0 = ::core::primitive::u32; } } pub struct StorageApi; @@ -12726,7 +12768,7 @@ pub mod api { #[doc = " of the vec."] pub fn member_count( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u16>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::member_count::MemberCount, @@ -12772,7 +12814,7 @@ pub mod api { #[doc = " The current members of the collective."] pub fn members( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::members::Members, @@ -12818,7 +12860,7 @@ pub mod api { #[doc = " The index of each ranks's member into the group of members who have at least that rank."] pub fn id_to_index_iter1( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u16>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::id_to_index::IdToIndex, @@ -12842,8 +12884,8 @@ pub mod api { #[doc = " The index of each ranks's member into the group of members who have at least that rank."] pub fn id_to_index( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u16>, - _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::id_to_index::IdToIndex, @@ -12892,7 +12934,7 @@ pub mod api { #[doc = " return `Some`, however a member's index is not guaranteed to remain unchanged over time."] pub fn index_to_id_iter1( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u16>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::index_to_id::IndexToId, @@ -12918,8 +12960,8 @@ pub mod api { #[doc = " return `Some`, however a member's index is not guaranteed to remain unchanged over time."] pub fn index_to_id( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u16>, - _1: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::index_to_id::IndexToId, @@ -12967,7 +13009,7 @@ pub mod api { #[doc = " Votes on a given proposal, if it is ongoing."] pub fn voting_iter1( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::voting::Voting, @@ -12992,8 +13034,8 @@ pub mod api { #[doc = " Votes on a given proposal, if it is ongoing."] pub fn voting( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::voting::Voting, @@ -13038,7 +13080,7 @@ pub mod api { } pub fn voting_cleanup( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::voting_cleanup::VotingCleanup, @@ -13868,6 +13910,7 @@ pub mod api { ::subxt::utils::AccountId32, (::core::primitive::u32, ::core::primitive::u32), >; + pub type Param0 = ::core::primitive::u32; } pub mod track_queue { use super::runtime_types; @@ -13876,14 +13919,17 @@ pub mod api { ::core::primitive::u32, ::core::primitive::u32, )>; + pub type Param0 = ::core::primitive::u16; } pub mod deciding_count { use super::runtime_types; pub type DecidingCount = ::core::primitive::u32; + pub type Param0 = ::core::primitive::u16; } pub mod metadata_of { use super::runtime_types; pub type MetadataOf = ::subxt::utils::H256; + pub type Param0 = ::core::primitive::u32; } } pub struct StorageApi; @@ -13934,7 +13980,7 @@ pub mod api { #[doc = " Information concerning any given referendum."] pub fn referendum_info_for( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::referendum_info_for::ReferendumInfoFor, @@ -13986,7 +14032,7 @@ pub mod api { #[doc = " This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`."] pub fn track_queue( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u16>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::track_queue::TrackQueue, @@ -14033,7 +14079,7 @@ pub mod api { #[doc = " The number of referenda being decided currently."] pub fn deciding_count( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u16>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::deciding_count::DecidingCount, @@ -14090,7 +14136,7 @@ pub mod api { #[doc = " large preimages."] pub fn metadata_of( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::metadata_of::MetadataOf, @@ -14469,6 +14515,7 @@ pub mod api { pub mod whitelisted_call { use super::runtime_types; pub type WhitelistedCall = (); + pub type Param0 = ::subxt::utils::H256; } } pub struct StorageApi; @@ -14495,7 +14542,7 @@ pub mod api { } pub fn whitelisted_call( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::whitelisted_call::WhitelistedCall, @@ -14812,6 +14859,8 @@ pub mod api { pub mod claims { use super::runtime_types; pub type Claims = ::core::primitive::u128; + pub type Param0 = + runtime_types::polkadot_runtime_common::claims::EthereumAddress; } pub mod total { use super::runtime_types; @@ -14824,16 +14873,21 @@ pub mod api { ::core::primitive::u128, ::core::primitive::u32, ); + pub type Param0 = + runtime_types::polkadot_runtime_common::claims::EthereumAddress; } pub mod signing { use super::runtime_types; pub type Signing = runtime_types::polkadot_runtime_common::claims::StatementKind; + pub type Param0 = + runtime_types::polkadot_runtime_common::claims::EthereumAddress; } pub mod preclaims { use super::runtime_types; pub type Preclaims = runtime_types::polkadot_runtime_common::claims::EthereumAddress; + pub type Param0 = ::subxt::utils::AccountId32; } } pub struct StorageApi; @@ -14861,9 +14915,7 @@ pub mod api { } pub fn claims( &self, - _0: impl ::std::borrow::Borrow< - runtime_types::polkadot_runtime_common::claims::EthereumAddress, - >, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::claims::Claims, @@ -14937,9 +14989,7 @@ pub mod api { #[doc = " The block number is when the vesting should start."] pub fn vesting( &self, - _0: impl ::std::borrow::Borrow< - runtime_types::polkadot_runtime_common::claims::EthereumAddress, - >, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::vesting::Vesting, @@ -14985,9 +15035,7 @@ pub mod api { #[doc = " The statement kind that must be signed, if any."] pub fn signing( &self, - _0: impl ::std::borrow::Borrow< - runtime_types::polkadot_runtime_common::claims::EthereumAddress, - >, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::signing::Signing, @@ -15033,7 +15081,7 @@ pub mod api { #[doc = " Pre-claimed Ethereum accounts, by the Account ID that they are claimed to."] pub fn preclaims( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::preclaims::Preclaims, @@ -16359,6 +16407,7 @@ pub mod api { ::core::primitive::u128, runtime_types::pallet_identity::legacy::IdentityInfo, >; + pub type Param0 = ::subxt::utils::AccountId32; } pub mod super_of { use super::runtime_types; @@ -16366,6 +16415,7 @@ pub mod api { ::subxt::utils::AccountId32, runtime_types::pallet_identity::types::Data, ); + pub type Param0 = ::subxt::utils::AccountId32; } pub mod subs_of { use super::runtime_types; @@ -16375,6 +16425,7 @@ pub mod api { ::subxt::utils::AccountId32, >, ); + pub type Param0 = ::subxt::utils::AccountId32; } pub mod registrars { use super::runtime_types; @@ -16420,7 +16471,7 @@ pub mod api { #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] pub fn identity_of( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::identity_of::IdentityOf, @@ -16467,7 +16518,7 @@ pub mod api { #[doc = " context. If the account is not some other account's sub-identity, then just `None`."] pub fn super_of( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::super_of::SuperOf, @@ -16521,7 +16572,7 @@ pub mod api { #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] pub fn subs_of( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::subs_of::SubsOf, @@ -17843,6 +17894,7 @@ pub mod api { pub mod members { use super::runtime_types; pub type Members = runtime_types::pallet_society::MemberRecord; + pub type Param0 = ::subxt::utils::AccountId32; } pub mod payouts { use super::runtime_types; @@ -17853,6 +17905,7 @@ pub mod api { ::core::primitive::u128, )>, >; + pub type Param0 = ::subxt::utils::AccountId32; } pub mod member_count { use super::runtime_types; @@ -17861,10 +17914,12 @@ pub mod api { pub mod member_by_index { use super::runtime_types; pub type MemberByIndex = ::subxt::utils::AccountId32; + pub type Param0 = ::core::primitive::u32; } pub mod suspended_members { use super::runtime_types; pub type SuspendedMembers = runtime_types::pallet_society::MemberRecord; + pub type Param0 = ::subxt::utils::AccountId32; } pub mod round_count { use super::runtime_types; @@ -17885,6 +17940,7 @@ pub mod api { ::subxt::utils::AccountId32, ::core::primitive::u128, >; + pub type Param0 = ::subxt::utils::AccountId32; } pub mod skeptic { use super::runtime_types; @@ -17893,6 +17949,8 @@ pub mod api { pub mod votes { use super::runtime_types; pub type Votes = runtime_types::pallet_society::Vote; + pub type Param0 = ::subxt::utils::AccountId32; + pub type Param1 = ::subxt::utils::AccountId32; } pub mod vote_clear_cursor { use super::runtime_types; @@ -17900,6 +17958,7 @@ pub mod api { runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >; + pub type Param0 = ::subxt::utils::AccountId32; } pub mod next_head { use super::runtime_types; @@ -17923,6 +17982,8 @@ pub mod api { pub mod defender_votes { use super::runtime_types; pub type DefenderVotes = runtime_types::pallet_society::Vote; + pub type Param0 = ::core::primitive::u32; + pub type Param1 = ::subxt::utils::AccountId32; } } pub struct StorageApi; @@ -18059,7 +18120,7 @@ pub mod api { #[doc = " The current members and their rank. Doesn't include `SuspendedMembers`."] pub fn members( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::members::Members, @@ -18104,7 +18165,7 @@ pub mod api { #[doc = " Information regarding rank-0 payouts, past and future."] pub fn payouts( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::payouts::Payouts, @@ -18174,7 +18235,7 @@ pub mod api { #[doc = " `0..MemberCount` (does not include `MemberCount`)."] pub fn member_by_index( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::member_by_index::MemberByIndex, @@ -18221,7 +18282,7 @@ pub mod api { #[doc = " The set of suspended members, with their old membership record."] pub fn suspended_members( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::suspended_members::SuspendedMembers, @@ -18308,7 +18369,7 @@ pub mod api { } pub fn candidates( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::candidates::Candidates, @@ -18376,7 +18437,7 @@ pub mod api { #[doc = " Double map from Candidate -> Voter -> (Maybe) Vote."] pub fn votes_iter1( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::votes::Votes, @@ -18401,8 +18462,8 @@ pub mod api { #[doc = " Double map from Candidate -> Voter -> (Maybe) Vote."] pub fn votes( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::votes::Votes, @@ -18450,7 +18511,7 @@ pub mod api { #[doc = " Clear-cursor for Vote, map from Candidate -> (Maybe) Cursor."] pub fn vote_clear_cursor( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::vote_clear_cursor::VoteClearCursor, @@ -18562,7 +18623,7 @@ pub mod api { #[doc = " Votes for the defender, keyed by challenge round."] pub fn defender_votes_iter1( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::defender_votes::DefenderVotes, @@ -18587,8 +18648,8 @@ pub mod api { #[doc = " Votes for the defender, keyed by challenge round."] pub fn defender_votes( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::defender_votes::DefenderVotes, @@ -19280,6 +19341,7 @@ pub mod api { ::subxt::utils::AccountId32, >, >; + pub type Param0 = ::subxt::utils::AccountId32; } pub mod active_recoveries { use super::runtime_types; @@ -19290,10 +19352,13 @@ pub mod api { ::subxt::utils::AccountId32, >, >; + pub type Param0 = ::subxt::utils::AccountId32; + pub type Param1 = ::subxt::utils::AccountId32; } pub mod proxy { use super::runtime_types; pub type Proxy = ::subxt::utils::AccountId32; + pub type Param0 = ::subxt::utils::AccountId32; } } pub struct StorageApi; @@ -19322,7 +19387,7 @@ pub mod api { #[doc = " The set of recoverable accounts and their recovery configuration."] pub fn recoverable( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::recoverable::Recoverable, @@ -19374,7 +19439,7 @@ pub mod api { #[doc = " is the user trying to recover the account."] pub fn active_recoveries_iter1( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::active_recoveries::ActiveRecoveries, @@ -19402,8 +19467,8 @@ pub mod api { #[doc = " is the user trying to recover the account."] pub fn active_recoveries( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::active_recoveries::ActiveRecoveries, @@ -19454,7 +19519,7 @@ pub mod api { #[doc = " Map from the user who can access it to the recovered account."] pub fn proxy( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::proxy::Proxy, @@ -19885,6 +19950,7 @@ pub mod api { ::core::primitive::u32, >, >; + pub type Param0 = ::subxt::utils::AccountId32; } pub mod storage_version { use super::runtime_types; @@ -19918,7 +19984,7 @@ pub mod api { #[doc = " Information regarding the vesting of a given account."] pub fn vesting( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::vesting::Vesting, @@ -20488,10 +20554,12 @@ pub mod api { >, >, >; + pub type Param0 = ::core::primitive::u32; } pub mod lookup { use super::runtime_types; pub type Lookup = (::core::primitive::u32, ::core::primitive::u32); + pub type Param0 = [::core::primitive::u8; 32usize]; } } pub struct StorageApi; @@ -20540,7 +20608,7 @@ pub mod api { #[doc = " Items to be executed, indexed by the block number that they should be executed on."] pub fn agenda( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::agenda::Agenda, @@ -20591,7 +20659,7 @@ pub mod api { #[doc = " identities."] pub fn lookup( &self, - _0: impl ::std::borrow::Borrow<[::core::primitive::u8; 32usize]>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::lookup::Lookup, @@ -21287,6 +21355,7 @@ pub mod api { >, ::core::primitive::u128, ); + pub type Param0 = ::subxt::utils::AccountId32; } pub mod announcements { use super::runtime_types; @@ -21300,6 +21369,7 @@ pub mod api { >, ::core::primitive::u128, ); + pub type Param0 = ::subxt::utils::AccountId32; } } pub struct StorageApi; @@ -21330,7 +21400,7 @@ pub mod api { #[doc = " which are being delegated to, together with the amount held on deposit."] pub fn proxies( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::proxies::Proxies, @@ -21376,7 +21446,7 @@ pub mod api { #[doc = " The announcements made by the proxy (key)."] pub fn announcements( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::announcements::Announcements, @@ -21863,6 +21933,8 @@ pub mod api { ::core::primitive::u128, ::subxt::utils::AccountId32, >; + pub type Param0 = ::subxt::utils::AccountId32; + pub type Param1 = [::core::primitive::u8; 32usize]; } } pub struct StorageApi; @@ -21891,7 +21963,7 @@ pub mod api { #[doc = " The set of open multisig operations."] pub fn multisigs_iter1( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::multisigs::Multisigs, @@ -21915,8 +21987,8 @@ pub mod api { #[doc = " The set of open multisig operations."] pub fn multisigs( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - _1: impl ::std::borrow::Borrow<[::core::primitive::u8; 32usize]>, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::multisigs::Multisigs, @@ -22282,6 +22354,7 @@ pub mod api { ::subxt::utils::AccountId32, ::core::primitive::u128, >; + pub type Param0 = ::subxt::utils::H256; } pub mod request_status_for { use super::runtime_types; @@ -22289,6 +22362,7 @@ pub mod api { ::subxt::utils::AccountId32, runtime_types::frame_support::traits::tokens::fungible::HoldConsideration, >; + pub type Param0 = ::subxt::utils::H256; } pub mod preimage_for { use super::runtime_types; @@ -22296,6 +22370,8 @@ pub mod api { runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >; + pub type Param0 = ::subxt::utils::H256; + pub type Param1 = ::core::primitive::u32; } } pub struct StorageApi; @@ -22325,7 +22401,7 @@ pub mod api { #[doc = " The request status of a given hash."] pub fn status_for( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::status_for::StatusFor, @@ -22371,7 +22447,7 @@ pub mod api { #[doc = " The request status of a given hash."] pub fn request_status_for( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::request_status_for::RequestStatusFor, @@ -22415,7 +22491,7 @@ pub mod api { } pub fn preimage_for_iter1( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::preimage_for::PreimageFor, @@ -22439,8 +22515,8 @@ pub mod api { } pub fn preimage_for( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, - _1: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::preimage_for::PreimageFor, @@ -22700,6 +22776,8 @@ pub mod api { use super::runtime_types; pub type ConversionRateToNative = runtime_types::sp_arithmetic::fixed_point::FixedU128; + pub type Param0 = + runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset; } } pub struct StorageApi; @@ -22732,9 +22810,7 @@ pub mod api { #[doc = " E.g. `native_amount = asset_amount * ConversionRateToNative::::get(asset_kind)`"] pub fn conversion_rate_to_native( &self, - _0: impl ::std::borrow::Borrow< - runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset, - >, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::conversion_rate_to_native::ConversionRateToNative, @@ -23428,6 +23504,7 @@ pub mod api { ::core::primitive::u128, ::core::primitive::u32, >; + pub type Param0 = ::core::primitive::u32; } pub mod bounty_descriptions { use super::runtime_types; @@ -23435,6 +23512,7 @@ pub mod api { runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >; + pub type Param0 = ::core::primitive::u32; } pub mod bounty_approvals { use super::runtime_types; @@ -23493,7 +23571,7 @@ pub mod api { #[doc = " Bounties that have been made."] pub fn bounties( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::bounties::Bounties, @@ -23539,7 +23617,7 @@ pub mod api { #[doc = " The description of each bounty."] pub fn bounty_descriptions( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::bounty_descriptions::BountyDescriptions, @@ -24202,6 +24280,7 @@ pub mod api { pub mod parent_child_bounties { use super::runtime_types; pub type ParentChildBounties = ::core::primitive::u32; + pub type Param0 = ::core::primitive::u32; } pub mod child_bounties { use super::runtime_types; @@ -24210,6 +24289,8 @@ pub mod api { ::core::primitive::u128, ::core::primitive::u32, >; + pub type Param0 = ::core::primitive::u32; + pub type Param1 = ::core::primitive::u32; } pub mod child_bounty_descriptions { use super::runtime_types; @@ -24217,10 +24298,12 @@ pub mod api { runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >; + pub type Param0 = ::core::primitive::u32; } pub mod children_curator_fees { use super::runtime_types; pub type ChildrenCuratorFees = ::core::primitive::u128; + pub type Param0 = ::core::primitive::u32; } } pub struct StorageApi; @@ -24272,7 +24355,7 @@ pub mod api { #[doc = " Map of parent bounty index to number of child bounties."] pub fn parent_child_bounties( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::parent_child_bounties::ParentChildBounties, @@ -24318,7 +24401,7 @@ pub mod api { #[doc = " Child bounties that have been added."] pub fn child_bounties_iter1( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::child_bounties::ChildBounties, @@ -24343,8 +24426,8 @@ pub mod api { #[doc = " Child bounties that have been added."] pub fn child_bounties( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::child_bounties::ChildBounties, @@ -24391,7 +24474,7 @@ pub mod api { #[doc = " The description of each child-bounty."] pub fn child_bounty_descriptions( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::child_bounty_descriptions::ChildBountyDescriptions, @@ -24436,7 +24519,7 @@ pub mod api { #[doc = " The cumulative child-bounty curator fee for each parent bounty."] pub fn children_curator_fees( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::children_curator_fees::ChildrenCuratorFees, @@ -25000,6 +25083,7 @@ pub mod api { ::subxt::utils::AccountId32, >, >; + pub type Param0 = ::core::primitive::u32; } pub mod summary { use super::runtime_types; @@ -25015,6 +25099,7 @@ pub mod api { ::core::primitive::u32, ::core::primitive::u128, >; + pub type Param0 = ::core::primitive::u32; } } pub struct StorageApi; @@ -25069,7 +25154,7 @@ pub mod api { #[doc = " The queues of bids. Indexed by duration (in `Period`s)."] pub fn queues( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::queues::Queues, @@ -25137,7 +25222,7 @@ pub mod api { #[doc = " The currently outstanding receipts, indexed according to the order of creation."] pub fn receipts( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::receipts::Receipts, @@ -26167,6 +26252,7 @@ pub mod api { use super::runtime_types; pub type Account = runtime_types::pallet_balances::types::AccountData<::core::primitive::u128>; + pub type Param0 = ::subxt::utils::AccountId32; } pub mod locks { use super::runtime_types; @@ -26176,6 +26262,7 @@ pub mod api { ::core::primitive::u128, >, >; + pub type Param0 = ::subxt::utils::AccountId32; } pub mod reserves { use super::runtime_types; @@ -26185,6 +26272,7 @@ pub mod api { ::core::primitive::u128, >, >; + pub type Param0 = ::subxt::utils::AccountId32; } pub mod holds { use super::runtime_types; @@ -26194,6 +26282,7 @@ pub mod api { ::core::primitive::u128, >, >; + pub type Param0 = ::subxt::utils::AccountId32; } pub mod freezes { use super::runtime_types; @@ -26203,6 +26292,7 @@ pub mod api { ::core::primitive::u128, >, >; + pub type Param0 = ::subxt::utils::AccountId32; } } pub struct StorageApi; @@ -26320,7 +26410,7 @@ pub mod api { #[doc = " NOTE: This is only used in the case that this pallet is used to store balances."] pub fn account( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::account::Account, @@ -26367,7 +26457,7 @@ pub mod api { #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] pub fn locks( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::locks::Locks, @@ -26412,7 +26502,7 @@ pub mod api { #[doc = " Named reserves on some account balances."] pub fn reserves( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::reserves::Reserves, @@ -26458,7 +26548,7 @@ pub mod api { #[doc = " Holds on account balances."] pub fn holds( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::holds::Holds, @@ -26504,7 +26594,7 @@ pub mod api { #[doc = " Freeze locks on account balances."] pub fn freezes( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::freezes::Freezes, @@ -28735,10 +28825,12 @@ pub mod api { pub mod availability_bitfields { use super::runtime_types; pub type AvailabilityBitfields = runtime_types :: polkadot_runtime_parachains :: inclusion :: AvailabilityBitfieldRecord < :: core :: primitive :: u32 > ; + pub type Param0 = runtime_types::polkadot_primitives::v6::ValidatorIndex; } pub mod pending_availability { use super::runtime_types; pub type PendingAvailability = runtime_types :: polkadot_runtime_parachains :: inclusion :: CandidatePendingAvailability < :: subxt :: utils :: H256 , :: core :: primitive :: u32 > ; + pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; } pub mod pending_availability_commitments { use super::runtime_types; @@ -28746,6 +28838,7 @@ pub mod api { runtime_types::polkadot_primitives::v6::CandidateCommitments< ::core::primitive::u32, >; + pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; } } pub struct StorageApi; @@ -28774,9 +28867,7 @@ pub mod api { #[doc = " The latest bitfield for each validator, referred to by their index in the validator set."] pub fn availability_bitfields( &self, - _0: impl ::std::borrow::Borrow< - runtime_types::polkadot_primitives::v6::ValidatorIndex, - >, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::availability_bitfields::AvailabilityBitfields, @@ -28821,9 +28912,7 @@ pub mod api { #[doc = " Candidates pending availability by `ParaId`."] pub fn pending_availability( &self, - _0: impl ::std::borrow::Borrow< - runtime_types::polkadot_parachain_primitives::primitives::Id, - >, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::pending_availability::PendingAvailability, @@ -28868,9 +28957,7 @@ pub mod api { #[doc = " The commitments of candidates pending availability, by `ParaId`."] pub fn pending_availability_commitments( &self, - _0: impl ::std::borrow::Borrow< - runtime_types::polkadot_parachain_primitives::primitives::Id, - >, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::pending_availability_commitments::PendingAvailabilityCommitments, @@ -29746,6 +29833,7 @@ pub mod api { runtime_types::polkadot_runtime_parachains::paras::PvfCheckActiveVoteState< ::core::primitive::u32, >; + pub type Param0 = runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash ; } pub mod pvf_active_vote_list { use super::runtime_types; @@ -29761,23 +29849,29 @@ pub mod api { use super::runtime_types; pub type ParaLifecycles = runtime_types::polkadot_runtime_parachains::paras::ParaLifecycle; + pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; } pub mod heads { use super::runtime_types; pub type Heads = runtime_types::polkadot_parachain_primitives::primitives::HeadData; + pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; } pub mod most_recent_context { use super::runtime_types; pub type MostRecentContext = ::core::primitive::u32; + pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; } pub mod current_code_hash { use super::runtime_types; pub type CurrentCodeHash = runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash ; + pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; } pub mod past_code_hash { use super::runtime_types; pub type PastCodeHash = runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash ; + pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Param1 = ::core::primitive::u32; } pub mod past_code_meta { use super::runtime_types; @@ -29785,6 +29879,7 @@ pub mod api { runtime_types::polkadot_runtime_parachains::paras::ParaPastCodeMeta< ::core::primitive::u32, >; + pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; } pub mod past_code_pruning { use super::runtime_types; @@ -29796,20 +29891,24 @@ pub mod api { pub mod future_code_upgrades { use super::runtime_types; pub type FutureCodeUpgrades = ::core::primitive::u32; + pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; } pub mod future_code_hash { use super::runtime_types; pub type FutureCodeHash = runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash ; + pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; } pub mod upgrade_go_ahead_signal { use super::runtime_types; pub type UpgradeGoAheadSignal = runtime_types::polkadot_primitives::v6::UpgradeGoAhead; + pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; } pub mod upgrade_restriction_signal { use super::runtime_types; pub type UpgradeRestrictionSignal = runtime_types::polkadot_primitives::v6::UpgradeRestriction; + pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; } pub mod upgrade_cooldowns { use super::runtime_types; @@ -29830,20 +29929,24 @@ pub mod api { pub type ActionsQueue = ::std::vec::Vec< runtime_types::polkadot_parachain_primitives::primitives::Id, >; + pub type Param0 = ::core::primitive::u32; } pub mod upcoming_paras_genesis { use super::runtime_types; pub type UpcomingParasGenesis = runtime_types::polkadot_runtime_parachains::paras::ParaGenesisArgs; + pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; } pub mod code_by_hash_refs { use super::runtime_types; pub type CodeByHashRefs = ::core::primitive::u32; + pub type Param0 = runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash ; } pub mod code_by_hash { use super::runtime_types; pub type CodeByHash = runtime_types::polkadot_parachain_primitives::primitives::ValidationCode; + pub type Param0 = runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash ; } } pub struct StorageApi; @@ -29878,7 +29981,7 @@ pub mod api { #[doc = " - There are no PVF pre-checking votes that exists in list but not in the set and vice versa."] pub fn pvf_active_vote_map( &self, - _0 : impl :: std :: borrow :: Borrow < runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash >, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::pvf_active_vote_map::PvfActiveVoteMap, @@ -29970,9 +30073,7 @@ pub mod api { #[doc = " The current lifecycle of a all known Para IDs."] pub fn para_lifecycles( &self, - _0: impl ::std::borrow::Borrow< - runtime_types::polkadot_parachain_primitives::primitives::Id, - >, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::para_lifecycles::ParaLifecycles, @@ -30018,9 +30119,7 @@ pub mod api { #[doc = " The head-data of every registered para."] pub fn heads( &self, - _0: impl ::std::borrow::Borrow< - runtime_types::polkadot_parachain_primitives::primitives::Id, - >, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::heads::Heads, @@ -30065,9 +30164,7 @@ pub mod api { #[doc = " The context (relay-chain block number) of the most recent parachain head."] pub fn most_recent_context( &self, - _0: impl ::std::borrow::Borrow< - runtime_types::polkadot_parachain_primitives::primitives::Id, - >, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::most_recent_context::MostRecentContext, @@ -30117,9 +30214,7 @@ pub mod api { #[doc = " Corresponding code can be retrieved with [`CodeByHash`]."] pub fn current_code_hash( &self, - _0: impl ::std::borrow::Borrow< - runtime_types::polkadot_parachain_primitives::primitives::Id, - >, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::current_code_hash::CurrentCodeHash, @@ -30171,9 +30266,7 @@ pub mod api { #[doc = " Corresponding code can be retrieved with [`CodeByHash`]."] pub fn past_code_hash_iter1( &self, - _0: impl ::std::borrow::Borrow< - runtime_types::polkadot_parachain_primitives::primitives::Id, - >, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::past_code_hash::PastCodeHash, @@ -30200,10 +30293,8 @@ pub mod api { #[doc = " Corresponding code can be retrieved with [`CodeByHash`]."] pub fn past_code_hash( &self, - _0: impl ::std::borrow::Borrow< - runtime_types::polkadot_parachain_primitives::primitives::Id, - >, - _1: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::past_code_hash::PastCodeHash, @@ -30253,9 +30344,7 @@ pub mod api { #[doc = " to keep it available for approval checkers."] pub fn past_code_meta( &self, - _0: impl ::std::borrow::Borrow< - runtime_types::polkadot_parachain_primitives::primitives::Id, - >, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::past_code_meta::PastCodeMeta, @@ -30330,9 +30419,7 @@ pub mod api { #[doc = " in the context of a relay chain block with a number >= `expected_at`."] pub fn future_code_upgrades( &self, - _0: impl ::std::borrow::Borrow< - runtime_types::polkadot_parachain_primitives::primitives::Id, - >, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::future_code_upgrades::FutureCodeUpgrades, @@ -30381,9 +30468,7 @@ pub mod api { #[doc = " Corresponding code can be retrieved with [`CodeByHash`]."] pub fn future_code_hash( &self, - _0: impl ::std::borrow::Borrow< - runtime_types::polkadot_parachain_primitives::primitives::Id, - >, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::future_code_hash::FutureCodeHash, @@ -30447,9 +30532,7 @@ pub mod api { #[doc = " the format will require migration of parachains."] pub fn upgrade_go_ahead_signal( &self, - _0: impl ::std::borrow::Borrow< - runtime_types::polkadot_parachain_primitives::primitives::Id, - >, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::upgrade_go_ahead_signal::UpgradeGoAheadSignal, @@ -30512,9 +30595,7 @@ pub mod api { #[doc = " the format will require migration of parachains."] pub fn upgrade_restriction_signal( &self, - _0: impl ::std::borrow::Borrow< - runtime_types::polkadot_parachain_primitives::primitives::Id, - >, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::upgrade_restriction_signal::UpgradeRestrictionSignal, @@ -30608,7 +30689,7 @@ pub mod api { #[doc = " The actions to perform during the start of a specific session index."] pub fn actions_queue( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::actions_queue::ActionsQueue, @@ -30660,9 +30741,7 @@ pub mod api { #[doc = " to empty. Instead, the code will be saved into the storage right away via `CodeByHash`."] pub fn upcoming_paras_genesis( &self, - _0: impl ::std::borrow::Borrow< - runtime_types::polkadot_parachain_primitives::primitives::Id, - >, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::upcoming_paras_genesis::UpcomingParasGenesis, @@ -30709,7 +30788,7 @@ pub mod api { #[doc = " The number of reference on the validation code in [`CodeByHash`] storage."] pub fn code_by_hash_refs( &self, - _0 : impl :: std :: borrow :: Borrow < runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash >, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::code_by_hash_refs::CodeByHashRefs, @@ -30761,7 +30840,7 @@ pub mod api { #[doc = " [`PastCodeHash`]."] pub fn code_by_hash( &self, - _0 : impl :: std :: borrow :: Borrow < runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash >, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::code_by_hash::CodeByHash, @@ -30947,15 +31026,18 @@ pub mod api { ::core::primitive::u32, >, >; + pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; } pub mod downward_message_queue_heads { use super::runtime_types; pub type DownwardMessageQueueHeads = ::subxt::utils::H256; + pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; } pub mod delivery_fee_factor { use super::runtime_types; pub type DeliveryFeeFactor = runtime_types::sp_arithmetic::fixed_point::FixedU128; + pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; } } pub struct StorageApi; @@ -30985,9 +31067,7 @@ pub mod api { #[doc = " The downward messages addressed for a certain para."] pub fn downward_message_queues( &self, - _0: impl ::std::borrow::Borrow< - runtime_types::polkadot_parachain_primitives::primitives::Id, - >, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::downward_message_queues::DownwardMessageQueues, @@ -31045,9 +31125,7 @@ pub mod api { #[doc = " - `H(M)`: is the hash of the message being appended."] pub fn downward_message_queue_heads( &self, - _0: impl ::std::borrow::Borrow< - runtime_types::polkadot_parachain_primitives::primitives::Id, - >, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::downward_message_queue_heads::DownwardMessageQueueHeads, @@ -31092,9 +31170,7 @@ pub mod api { #[doc = " The factor to multiply the base delivery fee by."] pub fn delivery_fee_factor( &self, - _0: impl ::std::borrow::Borrow< - runtime_types::polkadot_parachain_primitives::primitives::Id, - >, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::delivery_fee_factor::DeliveryFeeFactor, @@ -31759,6 +31835,8 @@ pub mod api { use super::runtime_types; pub type HrmpOpenChannelRequests = runtime_types::polkadot_runtime_parachains::hrmp::HrmpOpenChannelRequest; + pub type Param0 = + runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId; } pub mod hrmp_open_channel_requests_list { use super::runtime_types; @@ -31769,14 +31847,18 @@ pub mod api { pub mod hrmp_open_channel_request_count { use super::runtime_types; pub type HrmpOpenChannelRequestCount = ::core::primitive::u32; + pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; } pub mod hrmp_accepted_channel_request_count { use super::runtime_types; pub type HrmpAcceptedChannelRequestCount = ::core::primitive::u32; + pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; } pub mod hrmp_close_channel_requests { use super::runtime_types; pub type HrmpCloseChannelRequests = (); + pub type Param0 = + runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId; } pub mod hrmp_close_channel_requests_list { use super::runtime_types; @@ -31787,23 +31869,28 @@ pub mod api { pub mod hrmp_watermarks { use super::runtime_types; pub type HrmpWatermarks = ::core::primitive::u32; + pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; } pub mod hrmp_channels { use super::runtime_types; pub type HrmpChannels = runtime_types::polkadot_runtime_parachains::hrmp::HrmpChannel; + pub type Param0 = + runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId; } pub mod hrmp_ingress_channels_index { use super::runtime_types; pub type HrmpIngressChannelsIndex = ::std::vec::Vec< runtime_types::polkadot_parachain_primitives::primitives::Id, >; + pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; } pub mod hrmp_egress_channels_index { use super::runtime_types; pub type HrmpEgressChannelsIndex = ::std::vec::Vec< runtime_types::polkadot_parachain_primitives::primitives::Id, >; + pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; } pub mod hrmp_channel_contents { use super::runtime_types; @@ -31812,6 +31899,8 @@ pub mod api { ::core::primitive::u32, >, >; + pub type Param0 = + runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId; } pub mod hrmp_channel_digests { use super::runtime_types; @@ -31821,6 +31910,7 @@ pub mod api { runtime_types::polkadot_parachain_primitives::primitives::Id, >, )>; + pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; } } pub struct StorageApi; @@ -31860,9 +31950,7 @@ pub mod api { #[doc = " - There are no channels that exists in list but not in the set and vice versa."] pub fn hrmp_open_channel_requests( &self, - _0: impl ::std::borrow::Borrow< - runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId, - >, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::hrmp_open_channel_requests::HrmpOpenChannelRequests, @@ -31934,9 +32022,7 @@ pub mod api { #[doc = " `(X, _)` as the number of `HrmpOpenChannelRequestCount` for `X`."] pub fn hrmp_open_channel_request_count( &self, - _0: impl ::std::borrow::Borrow< - runtime_types::polkadot_parachain_primitives::primitives::Id, - >, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::hrmp_open_channel_request_count::HrmpOpenChannelRequestCount, @@ -31987,9 +32073,7 @@ pub mod api { #[doc = " `confirmed` set to true, as the number of `HrmpAcceptedChannelRequestCount` for `X`."] pub fn hrmp_accepted_channel_request_count( &self, - _0: impl ::std::borrow::Borrow< - runtime_types::polkadot_parachain_primitives::primitives::Id, - >, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::hrmp_accepted_channel_request_count::HrmpAcceptedChannelRequestCount, @@ -32048,9 +32132,7 @@ pub mod api { #[doc = " - There are no channels that exists in list but not in the set and vice versa."] pub fn hrmp_close_channel_requests( &self, - _0: impl ::std::borrow::Borrow< - runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId, - >, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::hrmp_close_channel_requests::HrmpCloseChannelRequests, @@ -32122,9 +32204,7 @@ pub mod api { #[doc = " session."] pub fn hrmp_watermarks( &self, - _0: impl ::std::borrow::Borrow< - runtime_types::polkadot_parachain_primitives::primitives::Id, - >, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::hrmp_watermarks::HrmpWatermarks, @@ -32174,9 +32254,7 @@ pub mod api { #[doc = " - each participant in the channel should satisfy `Paras::is_valid_para(P)` within a session."] pub fn hrmp_channels( &self, - _0: impl ::std::borrow::Borrow< - runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId, - >, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::hrmp_channels::HrmpChannels, @@ -32247,9 +32325,7 @@ pub mod api { #[doc = " - the vectors are sorted."] pub fn hrmp_ingress_channels_index( &self, - _0: impl ::std::borrow::Borrow< - runtime_types::polkadot_parachain_primitives::primitives::Id, - >, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::hrmp_ingress_channels_index::HrmpIngressChannelsIndex, @@ -32293,9 +32369,7 @@ pub mod api { } pub fn hrmp_egress_channels_index( &self, - _0: impl ::std::borrow::Borrow< - runtime_types::polkadot_parachain_primitives::primitives::Id, - >, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::hrmp_egress_channels_index::HrmpEgressChannelsIndex, @@ -32343,9 +32417,7 @@ pub mod api { #[doc = " Invariant: cannot be non-empty if the corresponding channel in `HrmpChannels` is `None`."] pub fn hrmp_channel_contents( &self, - _0: impl ::std::borrow::Borrow< - runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId, - >, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::hrmp_channel_contents::HrmpChannelContents, @@ -32401,9 +32473,7 @@ pub mod api { #[doc = " same block number."] pub fn hrmp_channel_digests( &self, - _0: impl ::std::borrow::Borrow< - runtime_types::polkadot_parachain_primitives::primitives::Id, - >, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::hrmp_channel_digests::HrmpChannelDigests, @@ -32447,15 +32517,18 @@ pub mod api { pub mod sessions { use super::runtime_types; pub type Sessions = runtime_types::polkadot_primitives::v6::SessionInfo; + pub type Param0 = ::core::primitive::u32; } pub mod account_keys { use super::runtime_types; pub type AccountKeys = ::std::vec::Vec<::subxt::utils::AccountId32>; + pub type Param0 = ::core::primitive::u32; } pub mod session_executor_params { use super::runtime_types; pub type SessionExecutorParams = runtime_types::polkadot_primitives::v6::executor_params::ExecutorParams; + pub type Param0 = ::core::primitive::u32; } } pub struct StorageApi; @@ -32533,7 +32606,7 @@ pub mod api { #[doc = " Does not have any entries before the session index in the first session change notification."] pub fn sessions( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::sessions::Sessions, @@ -32580,7 +32653,7 @@ pub mod api { #[doc = " The validator account keys of the validators actively participating in parachain consensus."] pub fn account_keys( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::account_keys::AccountKeys, @@ -32627,7 +32700,7 @@ pub mod api { #[doc = " Executor parameter set for a given session index"] pub fn session_executor_params( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::session_executor_params::SessionExecutorParams, @@ -32791,15 +32864,21 @@ pub mod api { pub type Disputes = runtime_types::polkadot_primitives::v6::DisputeState< ::core::primitive::u32, >; + pub type Param0 = ::core::primitive::u32; + pub type Param1 = runtime_types::polkadot_core_primitives::CandidateHash; } pub mod backers_on_disputes { use super::runtime_types; pub type BackersOnDisputes = ::std::vec::Vec; + pub type Param0 = ::core::primitive::u32; + pub type Param1 = runtime_types::polkadot_core_primitives::CandidateHash; } pub mod included { use super::runtime_types; pub type Included = ::core::primitive::u32; + pub type Param0 = ::core::primitive::u32; + pub type Param1 = runtime_types::polkadot_core_primitives::CandidateHash; } pub mod frozen { use super::runtime_types; @@ -32856,7 +32935,7 @@ pub mod api { #[doc = " All ongoing or concluded disputes for the last several sessions."] pub fn disputes_iter1( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::disputes::Disputes, @@ -32881,10 +32960,8 @@ pub mod api { #[doc = " All ongoing or concluded disputes for the last several sessions."] pub fn disputes( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow< - runtime_types::polkadot_core_primitives::CandidateHash, - >, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::disputes::Disputes, @@ -32934,7 +33011,7 @@ pub mod api { #[doc = " This storage is used for slashing."] pub fn backers_on_disputes_iter1( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::backers_on_disputes::BackersOnDisputes, @@ -32960,10 +33037,8 @@ pub mod api { #[doc = " This storage is used for slashing."] pub fn backers_on_disputes( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow< - runtime_types::polkadot_core_primitives::CandidateHash, - >, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::backers_on_disputes::BackersOnDisputes, @@ -33013,7 +33088,7 @@ pub mod api { #[doc = " should be reverted back to if the candidate is disputed and determined to be invalid."] pub fn included_iter1( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::included::Included, @@ -33039,10 +33114,8 @@ pub mod api { #[doc = " should be reverted back to if the candidate is disputed and determined to be invalid."] pub fn included( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow< - runtime_types::polkadot_core_primitives::CandidateHash, - >, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::included::Included, @@ -33166,10 +33239,13 @@ pub mod api { use super::runtime_types; pub type UnappliedSlashes = runtime_types::polkadot_primitives::v6::slashing::PendingSlashes; + pub type Param0 = ::core::primitive::u32; + pub type Param1 = runtime_types::polkadot_core_primitives::CandidateHash; } pub mod validator_set_counts { use super::runtime_types; pub type ValidatorSetCounts = ::core::primitive::u32; + pub type Param0 = ::core::primitive::u32; } } pub struct StorageApi; @@ -33199,7 +33275,7 @@ pub mod api { #[doc = " Validators pending dispute slashes."] pub fn unapplied_slashes_iter1( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::unapplied_slashes::UnappliedSlashes, @@ -33224,10 +33300,8 @@ pub mod api { #[doc = " Validators pending dispute slashes."] pub fn unapplied_slashes( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow< - runtime_types::polkadot_core_primitives::CandidateHash, - >, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::unapplied_slashes::UnappliedSlashes, @@ -33274,7 +33348,7 @@ pub mod api { #[doc = " `ValidatorSetCount` per session."] pub fn validator_set_counts( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::validator_set_counts::ValidatorSetCounts, @@ -33534,6 +33608,7 @@ pub mod api { pub mod book_state_for { use super::runtime_types; pub type BookStateFor = runtime_types :: pallet_message_queue :: BookState < runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin > ; + pub type Param0 = runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin ; } pub mod service_head { use super::runtime_types; @@ -33543,6 +33618,8 @@ pub mod api { use super::runtime_types; pub type Pages = runtime_types::pallet_message_queue::Page<::core::primitive::u32>; + pub type Param0 = runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin ; + pub type Param1 = ::core::primitive::u32; } } pub struct StorageApi; @@ -33572,7 +33649,7 @@ pub mod api { #[doc = " The index of the first and last (non-empty) pages."] pub fn book_state_for( &self, - _0 : impl :: std :: borrow :: Borrow < runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin >, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::book_state_for::BookStateFor, @@ -33641,7 +33718,7 @@ pub mod api { #[doc = " The map of page indices to pages."] pub fn pages_iter1( &self, - _0 : impl :: std :: borrow :: Borrow < runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin >, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::pages::Pages, @@ -33666,8 +33743,8 @@ pub mod api { #[doc = " The map of page indices to pages."] pub fn pages( &self, - _0 : impl :: std :: borrow :: Borrow < runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin >, - _1: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::pages::Pages, @@ -33939,6 +34016,7 @@ pub mod api { pub mod para_id_affinity { use super::runtime_types; pub type ParaIdAffinity = runtime_types :: polkadot_runtime_parachains :: assigner_on_demand :: CoreAffinityCount ; + pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; } } pub struct StorageApi; @@ -34016,9 +34094,7 @@ pub mod api { #[doc = " `ParaId` on two or more `CoreIndex`es."] pub fn para_id_affinity( &self, - _0: impl ::std::borrow::Borrow< - runtime_types::polkadot_parachain_primitives::primitives::Id, - >, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::para_id_affinity::ParaIdAffinity, @@ -34560,6 +34636,7 @@ pub mod api { use super::runtime_types; pub type PendingSwap = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; } pub mod paras { use super::runtime_types; @@ -34568,6 +34645,7 @@ pub mod api { ::subxt::utils::AccountId32, ::core::primitive::u128, >; + pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; } pub mod next_free_para_id { use super::runtime_types; @@ -34602,9 +34680,7 @@ pub mod api { #[doc = " Pending swap operations."] pub fn pending_swap( &self, - _0: impl ::std::borrow::Borrow< - runtime_types::polkadot_parachain_primitives::primitives::Id, - >, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::pending_swap::PendingSwap, @@ -34656,9 +34732,7 @@ pub mod api { #[doc = " only do so if it isn't yet registered. (After that, it's up to governance to do so.)"] pub fn paras( &self, - _0: impl ::std::borrow::Borrow< - runtime_types::polkadot_parachain_primitives::primitives::Id, - >, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::paras::Paras, @@ -34959,6 +35033,7 @@ pub mod api { ::core::primitive::u128, )>, >; + pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; } } pub struct StorageApi; @@ -35018,9 +35093,7 @@ pub mod api { #[doc = " It is illegal for a `None` value to trail in the list."] pub fn leases( &self, - _0: impl ::std::borrow::Borrow< - runtime_types::polkadot_parachain_primitives::primitives::Id, - >, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::leases::Leases, @@ -35432,6 +35505,8 @@ pub mod api { pub mod reserved_amounts { use super::runtime_types; pub type ReservedAmounts = ::core::primitive::u128; + pub type Param0 = ::subxt::utils::AccountId32; + pub type Param1 = runtime_types::polkadot_parachain_primitives::primitives::Id; } pub mod winning { use super::runtime_types; @@ -35440,6 +35515,7 @@ pub mod api { runtime_types::polkadot_parachain_primitives::primitives::Id, ::core::primitive::u128, )>; 36usize]; + pub type Param0 = ::core::primitive::u32; } } pub struct StorageApi; @@ -35517,7 +35593,7 @@ pub mod api { #[doc = " (sub-)ranges."] pub fn reserved_amounts_iter1( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::reserved_amounts::ReservedAmounts, @@ -35543,10 +35619,8 @@ pub mod api { #[doc = " (sub-)ranges."] pub fn reserved_amounts( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - _1: impl ::std::borrow::Borrow< - runtime_types::polkadot_parachain_primitives::primitives::Id, - >, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::reserved_amounts::ReservedAmounts, @@ -35597,7 +35671,7 @@ pub mod api { #[doc = " first sample of the ending period is 0; the last is `Sample Size - 1`."] pub fn winning( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::winning::Winning, @@ -36373,6 +36447,7 @@ pub mod api { ::core::primitive::u32, ::core::primitive::u32, >; + pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; } pub mod new_raise { use super::runtime_types; @@ -36416,9 +36491,7 @@ pub mod api { #[doc = " Info on all of the funds."] pub fn funds( &self, - _0: impl ::std::borrow::Borrow< - runtime_types::polkadot_parachain_primitives::primitives::Id, - >, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::funds::Funds, @@ -37719,10 +37792,12 @@ pub mod api { use super::runtime_types; pub type Queries = runtime_types::pallet_xcm::pallet::QueryStatus<::core::primitive::u32>; + pub type Param0 = ::core::primitive::u64; } pub mod asset_traps { use super::runtime_types; pub type AssetTraps = ::core::primitive::u32; + pub type Param0 = ::subxt::utils::H256; } pub mod safe_xcm_version { use super::runtime_types; @@ -37731,10 +37806,14 @@ pub mod api { pub mod supported_version { use super::runtime_types; pub type SupportedVersion = ::core::primitive::u32; + pub type Param0 = ::core::primitive::u32; + pub type Param1 = runtime_types::xcm::VersionedMultiLocation; } pub mod version_notifiers { use super::runtime_types; pub type VersionNotifiers = ::core::primitive::u64; + pub type Param0 = ::core::primitive::u32; + pub type Param1 = runtime_types::xcm::VersionedMultiLocation; } pub mod version_notify_targets { use super::runtime_types; @@ -37743,6 +37822,8 @@ pub mod api { runtime_types::sp_weights::weight_v2::Weight, ::core::primitive::u32, ); + pub type Param0 = ::core::primitive::u32; + pub type Param1 = runtime_types::xcm::VersionedMultiLocation; } pub mod version_discovery_queue { use super::runtime_types; @@ -37761,6 +37842,9 @@ pub mod api { use super::runtime_types; pub type RemoteLockedFungibles = runtime_types::pallet_xcm::pallet::RemoteLockedFungibleRecord<()>; + pub type Param0 = ::core::primitive::u32; + pub type Param1 = ::subxt::utils::AccountId32; + pub type Param2 = runtime_types::xcm::VersionedAssetId; } pub mod locked_fungibles { use super::runtime_types; @@ -37769,6 +37853,7 @@ pub mod api { ::core::primitive::u128, runtime_types::xcm::VersionedMultiLocation, )>; + pub type Param0 = ::subxt::utils::AccountId32; } pub mod xcm_execution_suspended { use super::runtime_types; @@ -37823,7 +37908,7 @@ pub mod api { #[doc = " The ongoing queries."] pub fn queries( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u64>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::queries::Queries, @@ -37874,7 +37959,7 @@ pub mod api { #[doc = " times this pair has been trapped (usually just 1 if it exists at all)."] pub fn asset_traps( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::asset_traps::AssetTraps, @@ -37942,7 +38027,7 @@ pub mod api { #[doc = " The Latest versions that we know various locations support."] pub fn supported_version_iter1( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::supported_version::SupportedVersion, @@ -37966,8 +38051,8 @@ pub mod api { #[doc = " The Latest versions that we know various locations support."] pub fn supported_version( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::supported_version::SupportedVersion, @@ -38013,7 +38098,7 @@ pub mod api { #[doc = " All locations that we have requested version notifications from."] pub fn version_notifiers_iter1( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::version_notifiers::VersionNotifiers, @@ -38037,8 +38122,8 @@ pub mod api { #[doc = " All locations that we have requested version notifications from."] pub fn version_notifiers( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::version_notifiers::VersionNotifiers, @@ -38087,7 +38172,7 @@ pub mod api { #[doc = " of our versions we informed them of."] pub fn version_notify_targets_iter1( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::version_notify_targets::VersionNotifyTargets, @@ -38113,8 +38198,8 @@ pub mod api { #[doc = " of our versions we informed them of."] pub fn version_notify_targets( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::version_notify_targets::VersionNotifyTargets, @@ -38205,7 +38290,7 @@ pub mod api { #[doc = " Fungible assets which we know are locked on a remote chain."] pub fn remote_locked_fungibles_iter1( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::remote_locked_fungibles::RemoteLockedFungibles, @@ -38229,8 +38314,8 @@ pub mod api { #[doc = " Fungible assets which we know are locked on a remote chain."] pub fn remote_locked_fungibles_iter2( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::remote_locked_fungibles::RemoteLockedFungibles, @@ -38255,9 +38340,9 @@ pub mod api { #[doc = " Fungible assets which we know are locked on a remote chain."] pub fn remote_locked_fungibles( &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - _2: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + _2: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::remote_locked_fungibles::RemoteLockedFungibles, @@ -38305,7 +38390,7 @@ pub mod api { #[doc = " Fungible assets which we know are locked on this chain."] pub fn locked_fungibles( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::locked_fungibles::LockedFungibles, @@ -38932,6 +39017,7 @@ pub mod api { pub mod permanent_slots { use super::runtime_types; pub type PermanentSlots = (::core::primitive::u32, ::core::primitive::u32); + pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; } pub mod permanent_slot_count { use super::runtime_types; @@ -38940,6 +39026,7 @@ pub mod api { pub mod temporary_slots { use super::runtime_types; pub type TemporarySlots = runtime_types :: polkadot_runtime_common :: assigned_slots :: ParachainTemporarySlot < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > ; + pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; } pub mod temporary_slot_count { use super::runtime_types; @@ -38985,9 +39072,7 @@ pub mod api { #[doc = " Assigned permanent slots, with their start lease period, and duration."] pub fn permanent_slots( &self, - _0: impl ::std::borrow::Borrow< - runtime_types::polkadot_parachain_primitives::primitives::Id, - >, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::permanent_slots::PermanentSlots, @@ -39055,9 +39140,7 @@ pub mod api { #[doc = " Assigned temporary slots."] pub fn temporary_slots( &self, - _0: impl ::std::borrow::Borrow< - runtime_types::polkadot_parachain_primitives::primitives::Id, - >, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, types::temporary_slots::TemporarySlots, From 8c51c2ad2c8d9c2b0957a15998ccf9a1131120c9 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Thu, 9 Nov 2023 17:35:56 +0200 Subject: [PATCH 16/28] examples: Change polkadot to rococo runtime Signed-off-by: Alexandru Vasile --- subxt/examples/storage_iterating_partial.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subxt/examples/storage_iterating_partial.rs b/subxt/examples/storage_iterating_partial.rs index daf763e2ec..ce6d2e2264 100644 --- a/subxt/examples/storage_iterating_partial.rs +++ b/subxt/examples/storage_iterating_partial.rs @@ -1,6 +1,6 @@ use polkadot::multisig::events::NewMultisig; use polkadot::runtime_types::{ - frame_system::pallet::Call, polkadot_runtime::RuntimeCall, sp_weights::weight_v2::Weight, + frame_system::pallet::Call, rococo_runtime::RuntimeCall, sp_weights::weight_v2::Weight, }; use subxt::utils::AccountId32; use subxt::{OnlineClient, PolkadotConfig}; From 3ccb99fabfcd66ebbd5f711f011945f8062abc5f Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Thu, 9 Nov 2023 17:57:17 +0200 Subject: [PATCH 17/28] codegen: Fix compiling tests in the codegen crate Signed-off-by: Alexandru Vasile --- codegen/Cargo.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/codegen/Cargo.toml b/codegen/Cargo.toml index 57c985282b..7049816240 100644 --- a/codegen/Cargo.toml +++ b/codegen/Cargo.toml @@ -37,4 +37,5 @@ getrandom = { workspace = true, optional = true } [dev-dependencies] bitvec = { workspace = true } scale-info = { workspace = true, features = ["bit-vec"] } -pretty_assertions = { workspace = true } \ No newline at end of file +pretty_assertions = { workspace = true } +frame-metadata = { workspace = true } From 354704efaff6f1484ed8dfb417f3f54d94b7071d Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Thu, 9 Nov 2023 18:07:00 +0200 Subject: [PATCH 18/28] codegen: Extend storage test with alias module Signed-off-by: Alexandru Vasile --- codegen/src/api/storage.rs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/codegen/src/api/storage.rs b/codegen/src/api/storage.rs index 6429669a7d..9330c8e029 100644 --- a/codegen/src/api/storage.rs +++ b/codegen/src/api/storage.rs @@ -217,6 +217,7 @@ fn primitive_type_alias(type_path: &TypePath) -> TokenStream { mod tests { use crate::RuntimeGenerator; use frame_metadata::v15; + use heck::ToUpperCamelCase as _; use quote::{format_ident, quote}; use scale_info::{meta_type, MetaType}; use std::borrow::Cow; @@ -326,10 +327,22 @@ mod tests { let expected_storage_constructor = quote!( fn #name_ident( &self, - _0: impl ::std::borrow::Borrow<#expected_type>, + _0: impl ::std::borrow::Borrow, ) ); assert!(generated_str.contains(&expected_storage_constructor.to_string())); + + let alias_name = format_ident!("{}", name.to_upper_camel_case()); + let expected_alias_module = quote!( + pub mod #name_ident { + use super::runtime_types; + + pub type #alias_name = ::core::primitive::bool; + pub type Param0 = #expected_type; + } + ); + + assert!(generated_str.contains(&expected_alias_module.to_string())); } } } From 87612835f9a718044aff3af8f2995513081f187f Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Thu, 9 Nov 2023 18:10:29 +0200 Subject: [PATCH 19/28] cli/tests: Adjust exepcted commands to the latest metadata Signed-off-by: Alexandru Vasile --- cli/src/commands/explore/mod.rs | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/cli/src/commands/explore/mod.rs b/cli/src/commands/explore/mod.rs index 7a5984cb0d..8798dc709e 100644 --- a/cli/src/commands/explore/mod.rs +++ b/cli/src/commands/explore/mod.rs @@ -180,7 +180,7 @@ pub mod tests { async fn test_commands() { // show pallets: let output = simulate_run("").await; - assert_eq!(output.unwrap(), "Usage:\n subxt explore \n explore a specific pallet\n\nAvailable values are:\n Balances\n Multisig\n ParaInherent\n Staking\n System\n Timestamp\n"); + assert_eq!(output.unwrap(), "Usage:\n subxt explore \n explore a specific pallet\n\nAvailable values are:\n Balances\n Multisig\n ParaInherent\n System\n Timestamp\n"); // if incorrect pallet, error: let output = simulate_run("abc123").await; assert!(output.is_err()); @@ -198,19 +198,20 @@ pub mod tests { let output = simulate_run("Balances abc123").await; assert!(output.is_err()); // check that we can explore a certain call: - let output = simulate_run("Balances calls transfer").await; - assert!(output.unwrap().starts_with("Usage:\n subxt explore Balances calls transfer \n construct the call by providing a valid argument\n\nThe call expect expects a with this shape:\n {\n dest: enum MultiAddress")); + let output = simulate_run("Balances calls transfer_allow_death").await; + assert!(output.unwrap().starts_with("Usage:\n subxt explore Balances calls transfer_allow_death \n construct the call by providing a valid argument\n\nThe call expect expects a with this shape:\n {\n dest: enum MultiAddress")); // check that unsigned extrinsic can be constructed: - let output = - simulate_run("Balances calls transfer {\"dest\":v\"Raw\"((255,255, 255)),\"value\":0}") - .await; + let output = simulate_run( + "Balances calls transfer_allow_death {\"dest\":v\"Raw\"((255,255, 255)),\"value\":0}", + ) + .await; assert_eq!( output.unwrap(), - "Encoded call data:\n 0x24040507020cffffff00\n" + "Encoded call data:\n 0x24040400020cffffff00\n" ); // check that we can explore a certain constant: let output = simulate_run("Balances constants ExistentialDeposit").await; - assert_eq!(output.unwrap(), "Description:\n The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!\n\nThe constant has the following shape:\n u128\n\nThe value of the constant is:\n 10000000000\n"); + assert_eq!(output.unwrap(), "Description:\n The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!\n\nThe constant has the following shape:\n u128\n\nThe value of the constant is:\n 33333333\n"); // check that we can explore a certain storage entry: let output = simulate_run("System storage Account").await; assert!(output.unwrap().starts_with("Usage:\n subxt explore System storage Account \n\nDescription:\n The full account information for a particular account ID.")); From 6ec86d9fe5fdd6a67b935f468a0913df7d98dd97 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Fri, 17 Nov 2023 11:49:44 +0200 Subject: [PATCH 20/28] codegen: Remove missleading comment and docs Signed-off-by: Alexandru Vasile --- codegen/src/api/calls.rs | 33 ++++++++++++-------------- codegen/src/api/runtime_apis.rs | 42 --------------------------------- 2 files changed, 15 insertions(+), 60 deletions(-) diff --git a/codegen/src/api/calls.rs b/codegen/src/api/calls.rs index b2d441d28c..c50cc6f168 100644 --- a/codegen/src/api/calls.rs +++ b/codegen/src/api/calls.rs @@ -46,24 +46,21 @@ pub fn generate_calls( let fn_name = format_ident!("{}", variant_name.to_snake_case()); let result: Vec<_> = match struct_def.fields { - CompositeDefFields::Named(ref named_fields) => { - named_fields - .iter() - .map(|(name, field)| { - let call_arg = if field.is_boxed() { - quote! { #name: ::std::boxed::Box::new(#name) } - } else { - quote! { #name } - }; - // One downside of the type alias system is that we generate one alias per argument. - // Multiple arguments could potentially have the same type (ie fn call(u32, u32, u32)). - let alias_name = - format_ident!("{}", name.to_string().to_upper_camel_case()); - - (quote!( #name: types::#fn_name::#alias_name ), call_arg) - }) - .collect() - } + CompositeDefFields::Named(ref named_fields) => named_fields + .iter() + .map(|(name, field)| { + let call_arg = if field.is_boxed() { + quote! { #name: ::std::boxed::Box::new(#name) } + } else { + quote! { #name } + }; + + let alias_name = + format_ident!("{}", name.to_string().to_upper_camel_case()); + + (quote!( #name: types::#fn_name::#alias_name ), call_arg) + }) + .collect(), CompositeDefFields::NoFields => Default::default(), CompositeDefFields::Unnamed(_) => { return Err(CodegenError::InvalidCallVariant(call_ty)) diff --git a/codegen/src/api/runtime_apis.rs b/codegen/src/api/runtime_apis.rs index c3faf3a856..fe945f8d3d 100644 --- a/codegen/src/api/runtime_apis.rs +++ b/codegen/src/api/runtime_apis.rs @@ -11,48 +11,6 @@ use proc_macro2::TokenStream as TokenStream2; use quote::{format_ident, quote}; /// Generates runtime functions for the given API metadata. -/// -/// # Note -/// -/// The modules are structured as follows: -/// -/// ```ignore -/// // Extracted from the runtime API metadata. -/// pub mod metadata { -/// -/// // Structure that exposes the `Metadata` runtime APIs. -/// struct Metadata; -/// impl Metadata { -/// -/// // Function that calls into the `Metadata_metadata_at_version` runtime API. -/// pub fn metadata_at_version( -/// version: types::metadata_at_version::Version, -/// ) -> ::subxt::runtime_api::Payload< -/// types::MetadataAtVersion, -/// types::metadata_at_version::Output, -/// > { -/// // .. -/// } -/// } -/// -/// // Contains the types of the metadata. -/// pub mod types { -/// -/// // This is the input of the runtime call. -/// pub struct MetadataAtVersion { -/// // Use the alias generated type. -/// pub version: metadata_at_version::Version, -/// } -/// -/// // Type alias module for the `Metadata_metadata_at_version` runtime call. -/// pub mod metadata_at_version { -/// pub type Version = ::core::primitive::u32; -/// -/// // This is the output of the runtime call. -/// pub type Output = ::core::option::Option; -/// } -/// } -/// ``` fn generate_runtime_api( api: RuntimeApiMetadata, type_gen: &TypeGenerator, From 17bdaebfd15cfcb51f5c3e24de003d1ec730fef1 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Fri, 17 Nov 2023 13:34:38 +0200 Subject: [PATCH 21/28] codegen: Ensure unique names for generated runtime API types Signed-off-by: Alexandru Vasile --- codegen/src/api/runtime_apis.rs | 42 ++++++++++++++++++++++++++------- 1 file changed, 33 insertions(+), 9 deletions(-) diff --git a/codegen/src/api/runtime_apis.rs b/codegen/src/api/runtime_apis.rs index fe945f8d3d..e0790cafdc 100644 --- a/codegen/src/api/runtime_apis.rs +++ b/codegen/src/api/runtime_apis.rs @@ -2,6 +2,8 @@ // This file is dual-licensed as Apache-2.0 or GPL-3.0. // see LICENSE for license details. +use std::collections::HashSet; + use crate::{types::TypeGenerator, CodegenError}; use heck::ToSnakeCase as _; use heck::ToUpperCamelCase as _; @@ -36,14 +38,32 @@ fn generate_runtime_api( .then_some(quote! { #( #[doc = #docs ] )* }) .unwrap_or_default(); + let mut unique_names = HashSet::new(); + let mut unique_aliases = HashSet::new(); + let inputs: Vec<_> = method.inputs().enumerate().map(|(idx, input)| { // These are method names, which can just be '_', but struct field names can't // just be an underscore, so fix any such names we find to work in structs. - let (alias_name, name) = if input.name == "_" { - (format_ident!("Param{}", idx), format_ident!("_{}", idx)) - } else { - (format_ident!("{}", input.name.to_upper_camel_case()), format_ident!("{}", &input.name)) - }; + + let mut name = input.name.trim_start_matches("_").to_string(); + if name.is_empty() { + name = format!("_{}", idx); + } + while !unique_names.insert(name.clone()) { + // Name is already used, append the index until it is unique. + name = format!("{}_param{}", name, idx); + } + + let mut alias = name.to_upper_camel_case(); + // Note: name is not empty. + if alias.as_bytes()[0].is_ascii_digit() { + alias = format!("Param{}", alias); + } + while !unique_aliases.insert(alias.clone()) { + alias = format!("{}Param{}", alias, idx); + } + + let (alias_name, name) = (format_ident!("{alias}"), format_ident!("{name}")); // Generate alias for runtime type. let ty = type_gen.resolve_type_path(input.ty); @@ -69,7 +89,11 @@ fn generate_runtime_api( use super::#types_mod_ident; #( #type_aliases )* - pub type Output = #output; + + // Guard the `Output` name against collisions by placing it in a dedicated module. + pub mod output { + pub type Output = #output; + } } ); @@ -79,12 +103,12 @@ fn generate_runtime_api( let derives = type_gen.default_derives(); let struct_name = format_ident!("{}", method.name().to_upper_camel_case()); let struct_input = quote!( + #aliased_module + #derives pub struct #struct_name { #( pub #struct_params, )* } - - #aliased_module ); let Some(call_hash) = api.method_hash(method.name()) else { @@ -96,7 +120,7 @@ fn generate_runtime_api( let method = quote!( #docs - pub fn #method_name(&self, #( #fn_params, )* ) -> #crate_path::runtime_api::Payload { + pub fn #method_name(&self, #( #fn_params, )* ) -> #crate_path::runtime_api::Payload { #crate_path::runtime_api::Payload::new_static( #trait_name_str, #method_name_str, From b8425b9d887a853b67b938e037dcfe1b1b9bfe88 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Fri, 17 Nov 2023 14:36:21 +0200 Subject: [PATCH 22/28] codegen/tests: Test expected runtime type generation Signed-off-by: Alexandru Vasile --- codegen/src/api/runtime_apis.rs | 103 ++++++++++++++++++++++++++++++++ 1 file changed, 103 insertions(+) diff --git a/codegen/src/api/runtime_apis.rs b/codegen/src/api/runtime_apis.rs index e0790cafdc..2fbe18d23c 100644 --- a/codegen/src/api/runtime_apis.rs +++ b/codegen/src/api/runtime_apis.rs @@ -203,3 +203,106 @@ pub fn generate_runtime_apis( } }) } + +#[cfg(test)] +mod tests { + use crate::RuntimeGenerator; + use frame_metadata::v15::{ + self, RuntimeApiMetadata, RuntimeApiMethodMetadata, RuntimeApiMethodParamMetadata, + }; + use quote::quote; + use scale_info::meta_type; + use subxt_metadata::Metadata; + + fn metadata_with_runtime_apis(runtime_apis: Vec) -> Metadata { + let extrinsic_metadata = v15::ExtrinsicMetadata { + version: 0, + signed_extensions: vec![], + address_ty: meta_type::<()>(), + call_ty: meta_type::<()>(), + signature_ty: meta_type::<()>(), + extra_ty: meta_type::<()>(), + }; + + let metadata: Metadata = v15::RuntimeMetadataV15::new( + vec![], + extrinsic_metadata, + meta_type::<()>(), + runtime_apis, + v15::OuterEnums { + call_enum_ty: meta_type::<()>(), + event_enum_ty: meta_type::<()>(), + error_enum_ty: meta_type::<()>(), + }, + v15::CustomMetadata { + map: Default::default(), + }, + ) + .try_into() + .expect("can build valid metadata"); + metadata + } + + fn generate_code(runtime_apis: Vec) -> String { + let metadata = metadata_with_runtime_apis(runtime_apis); + let item_mod = syn::parse_quote!( + pub mod api {} + ); + let generator = RuntimeGenerator::new(metadata); + let generated = generator + .generate_runtime( + item_mod, + Default::default(), + Default::default(), + syn::parse_str("::subxt_path").unwrap(), + false, + ) + .expect("should be able to generate runtime"); + generated.to_string() + } + + #[test] + fn unique_param_names() { + let runtime_apis = vec![RuntimeApiMetadata { + name: "Test", + methods: vec![RuntimeApiMethodMetadata { + name: "test", + inputs: vec![ + RuntimeApiMethodParamMetadata { + name: "foo", + ty: meta_type::(), + }, + RuntimeApiMethodParamMetadata { + name: "bar", + ty: meta_type::(), + }, + ], + output: meta_type::(), + docs: vec![], + }], + + docs: vec![], + }]; + + let code = generate_code(runtime_apis); + + let structure = quote! { + pub struct Test { + pub foo: test::Foo, + pub bar: test::Bar, + } + }; + let expected_alias = quote!( + pub mod test { + use super::runtime_types; + pub type Foo = ::core::primitive::bool; + pub type Bar = ::core::primitive::bool; + pub mod output { + pub type Output = ::core::primitive::bool; + } + } + ); + assert!(code.contains(&structure.to_string())); + assert!(code.contains(&expected_alias.to_string())); + } +} From 1588869147cc95b29c20362545a41f8742ebdaf2 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Fri, 17 Nov 2023 14:39:51 +0200 Subject: [PATCH 23/28] codegen/tests: Check duplicate params in runtime APIs Signed-off-by: Alexandru Vasile --- codegen/src/api/runtime_apis.rs | 52 +++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/codegen/src/api/runtime_apis.rs b/codegen/src/api/runtime_apis.rs index 2fbe18d23c..14ff1f13ca 100644 --- a/codegen/src/api/runtime_apis.rs +++ b/codegen/src/api/runtime_apis.rs @@ -305,4 +305,56 @@ mod tests { assert!(code.contains(&structure.to_string())); assert!(code.contains(&expected_alias.to_string())); } + + #[test] + fn duplicate_param_names() { + let runtime_apis = vec![RuntimeApiMetadata { + name: "Test", + methods: vec![RuntimeApiMethodMetadata { + name: "test", + inputs: vec![ + RuntimeApiMethodParamMetadata { + name: "_a", + ty: meta_type::(), + }, + RuntimeApiMethodParamMetadata { + name: "a", + ty: meta_type::(), + }, + RuntimeApiMethodParamMetadata { + name: "__a", + ty: meta_type::(), + }, + ], + output: meta_type::(), + docs: vec![], + }], + + docs: vec![], + }]; + + let code = generate_code(runtime_apis); + + let structure = quote! { + pub struct Test { + pub a: test::A, + pub a_param1: test::AParam1, + pub a_param2: test::AParam2, + } + }; + let expected_alias = quote!( + pub mod test { + use super::runtime_types; + pub type A = ::core::primitive::bool; + pub type AParam1 = ::core::primitive::bool; + pub type AParam2 = ::core::primitive::bool; + pub mod output { + pub type Output = ::core::primitive::bool; + } + } + ); + + assert!(code.contains(&structure.to_string())); + assert!(code.contains(&expected_alias.to_string())); + } } From ab105eb63814a22767b9cebc8d667cbc3d8b2173 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Fri, 17 Nov 2023 14:46:24 +0200 Subject: [PATCH 24/28] codegen/tests: Test colliding names of type aliases and parameters Signed-off-by: Alexandru Vasile --- codegen/src/api/runtime_apis.rs | 68 +++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/codegen/src/api/runtime_apis.rs b/codegen/src/api/runtime_apis.rs index 14ff1f13ca..5f9afd8414 100644 --- a/codegen/src/api/runtime_apis.rs +++ b/codegen/src/api/runtime_apis.rs @@ -92,6 +92,7 @@ fn generate_runtime_api( // Guard the `Output` name against collisions by placing it in a dedicated module. pub mod output { + use super::#types_mod_ident; pub type Output = #output; } } @@ -298,6 +299,7 @@ mod tests { pub type Foo = ::core::primitive::bool; pub type Bar = ::core::primitive::bool; pub mod output { + use super::runtime_types; pub type Output = ::core::primitive::bool; } } @@ -349,6 +351,72 @@ mod tests { pub type AParam1 = ::core::primitive::bool; pub type AParam2 = ::core::primitive::bool; pub mod output { + use super::runtime_types; + pub type Output = ::core::primitive::bool; + } + } + ); + + assert!(code.contains(&structure.to_string())); + assert!(code.contains(&expected_alias.to_string())); + } + + #[test] + fn duplicate_param_and_alias_names() { + let runtime_apis = vec![RuntimeApiMetadata { + name: "Test", + methods: vec![RuntimeApiMethodMetadata { + name: "test", + inputs: vec![ + RuntimeApiMethodParamMetadata { + name: "_", + ty: meta_type::(), + }, + RuntimeApiMethodParamMetadata { + name: "_a", + ty: meta_type::(), + }, + RuntimeApiMethodParamMetadata { + name: "_param_0", + ty: meta_type::(), + }, + RuntimeApiMethodParamMetadata { + name: "__", + ty: meta_type::(), + }, + RuntimeApiMethodParamMetadata { + name: "___param_0_param_2", + ty: meta_type::(), + }, + ], + output: meta_type::(), + docs: vec![], + }], + + docs: vec![], + }]; + + let code = generate_code(runtime_apis); + + let structure = quote! { + pub struct Test { + pub _0: test::Param0, + pub a: test::A, + pub param_0: test::Param0Param2, + pub _3: test::Param3, + pub param_0_param_2: test::Param0Param2Param4, + } + }; + let expected_alias = quote!( + pub mod test { + use super::runtime_types; + pub type Param0 = ::core::primitive::bool; + pub type A = ::core::primitive::bool; + pub type Param0Param2 = ::core::primitive::bool; + pub type Param3 = ::core::primitive::bool; + pub type Param0Param2Param4 = ::core::primitive::bool; + pub mod output { + use super::runtime_types; pub type Output = ::core::primitive::bool; } } From 4bf9ac529ae2c4d397fa6007f40bd06db776f2e3 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Wed, 22 Nov 2023 13:58:29 +0200 Subject: [PATCH 25/28] Fix clippy Signed-off-by: Alexandru Vasile --- codegen/src/api/runtime_apis.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codegen/src/api/runtime_apis.rs b/codegen/src/api/runtime_apis.rs index 5f9afd8414..66196c0b00 100644 --- a/codegen/src/api/runtime_apis.rs +++ b/codegen/src/api/runtime_apis.rs @@ -45,7 +45,7 @@ fn generate_runtime_api( // These are method names, which can just be '_', but struct field names can't // just be an underscore, so fix any such names we find to work in structs. - let mut name = input.name.trim_start_matches("_").to_string(); + let mut name = input.name.trim_start_matches('_').to_string(); if name.is_empty() { name = format!("_{}", idx); } From 4352c01febb9350a59c34dd7af0e236b85a493e6 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Thu, 7 Dec 2023 16:58:36 +0200 Subject: [PATCH 26/28] codegen: Separate alias module from struct definition Signed-off-by: Alexandru Vasile --- codegen/src/api/calls.rs | 4 +- codegen/src/api/events.rs | 26 +++++++----- codegen/src/api/mod.rs | 65 +++++++++++++++++++++++++++--- codegen/src/types/composite_def.rs | 56 ++++++------------------- codegen/src/types/type_def.rs | 5 +-- 5 files changed, 90 insertions(+), 66 deletions(-) diff --git a/codegen/src/api/calls.rs b/codegen/src/api/calls.rs index c50cc6f168..a095727c31 100644 --- a/codegen/src/api/calls.rs +++ b/codegen/src/api/calls.rs @@ -42,7 +42,7 @@ pub fn generate_calls( let result = struct_defs .iter_mut() - .map(|(variant_name, struct_def)| { + .map(|(variant_name, struct_def, aliases)| { let fn_name = format_ident!("{}", variant_name.to_snake_case()); let result: Vec<_> = match struct_def.fields { @@ -88,6 +88,8 @@ pub fn generate_calls( let call_struct = quote! { #struct_def + #aliases + impl #crate_path::blocks::StaticExtrinsic for #struct_name { const PALLET: &'static str = #pallet_name; const CALL: &'static str = #call_name; diff --git a/codegen/src/api/events.rs b/codegen/src/api/events.rs index 11513f6f41..f2d086870e 100644 --- a/codegen/src/api/events.rs +++ b/codegen/src/api/events.rs @@ -60,20 +60,24 @@ pub fn generate_events( should_gen_docs, )?; - let event_structs = struct_defs.iter().map(|(variant_name, struct_def)| { - let pallet_name = pallet.name(); - let event_struct = &struct_def.name; - let event_name = variant_name; + let event_structs = struct_defs + .iter() + .map(|(variant_name, struct_def, aliases)| { + let pallet_name = pallet.name(); + let event_struct = &struct_def.name; + let event_name = variant_name; - quote! { - #struct_def + quote! { + #struct_def - impl #crate_path::events::StaticEvent for #event_struct { - const PALLET: &'static str = #pallet_name; - const EVENT: &'static str = #event_name; + #aliases + + impl #crate_path::events::StaticEvent for #event_struct { + const PALLET: &'static str = #pallet_name; + const EVENT: &'static str = #event_name; + } } - } - }); + }); let event_type = type_gen.resolve_type_path(event_ty); let event_ty = type_gen.resolve_type(event_ty); let docs = &event_ty.docs; diff --git a/codegen/src/api/mod.rs b/codegen/src/api/mod.rs index 8cc946ddbc..f87ffee2ad 100644 --- a/codegen/src/api/mod.rs +++ b/codegen/src/api/mod.rs @@ -364,7 +364,7 @@ pub fn generate_structs_from_variants( error_message_type_name: &str, crate_path: &syn::Path, should_gen_docs: bool, -) -> Result, CodegenError> +) -> Result, CodegenError> where F: Fn(&str) -> std::borrow::Cow, { @@ -387,22 +387,75 @@ where type_gen, )?; + let alias_module_name = format_ident!("{}", var.name.to_snake_case()); + let docs = should_gen_docs.then_some(&*var.docs).unwrap_or_default(); let struct_def = CompositeDef::struct_def( &ty, - types_mod_ident, struct_name.as_ref(), - &var.name, Default::default(), - fields, + fields.clone(), Some(parse_quote!(pub)), type_gen, docs, crate_path, - true, + Some(alias_module_name.clone()), )?; - Ok((var.name.to_string(), struct_def)) + let type_aliases = TypeAliases::new(fields, types_mod_ident.clone(), alias_module_name); + + Ok((var.name.to_string(), struct_def, type_aliases)) }) .collect() } + +/// Generate the type aliases from a set of enum / struct definitions. +/// +/// The type aliases are used to make the generated code more readable. +#[derive(Debug)] +pub struct TypeAliases { + fields: CompositeDefFields, + types_mod_ident: syn::Ident, + mod_name: syn::Ident, +} + +impl TypeAliases { + pub fn new( + fields: CompositeDefFields, + types_mod_ident: syn::Ident, + mod_name: syn::Ident, + ) -> Self { + TypeAliases { + fields, + types_mod_ident, + mod_name, + } + } +} + +impl quote::ToTokens for TypeAliases { + fn to_tokens(&self, tokens: &mut proc_macro2::TokenStream) { + let has_fields = matches!(&self.fields, CompositeDefFields::Named(fields) if !fields.is_empty()) + || matches!(&self.fields, CompositeDefFields::Unnamed(fields) if !fields.is_empty()); + if !has_fields { + return; + } + + let visibility: syn::Visibility = parse_quote!(pub); + + let aliases = self + .fields + .to_type_aliases_tokens(Some(visibility).as_ref()); + + let mod_name = &self.mod_name; + let types_mod_ident = &self.types_mod_ident; + + tokens.extend(quote! { + pub mod #mod_name { + use super::#types_mod_ident; + + #aliases + } + }) + } +} diff --git a/codegen/src/types/composite_def.rs b/codegen/src/types/composite_def.rs index 449cd6d684..efda6515e5 100644 --- a/codegen/src/types/composite_def.rs +++ b/codegen/src/types/composite_def.rs @@ -5,7 +5,7 @@ use crate::error::CodegenError; use super::{Derives, Field, TypeDefParameters, TypeGenerator, TypeParameter, TypePath}; -use heck::{ToSnakeCase as _, ToUpperCamelCase as _}; +use heck::ToUpperCamelCase as _; use proc_macro2::TokenStream; use quote::{format_ident, quote}; use scale_info::{form::PortableForm, Type, TypeDef, TypeDefPrimitive}; @@ -72,16 +72,14 @@ impl CompositeDef { #[allow(clippy::too_many_arguments)] pub fn struct_def( ty: &Type, - types_mod_ident: &syn::Ident, ident: &str, - variant_name: &str, type_params: TypeDefParameters, fields_def: CompositeDefFields, field_visibility: Option, type_gen: &TypeGenerator, docs: &[String], crate_path: &syn::Path, - generate_alias: bool, + alias_module_name: Option, ) -> Result { let mut derives = type_gen.type_derives(ty)?; let fields: Vec<_> = fields_def.field_types().collect(); @@ -112,7 +110,6 @@ impl CompositeDef { } let name = format_ident!("{}", ident); - let variant_name = format_ident!("{}", variant_name.to_snake_case()); let docs_token = Some(quote! { #( #[doc = #docs ] )* }); Ok(Self { @@ -121,9 +118,7 @@ impl CompositeDef { derives, type_params, field_visibility, - types_mod_ident: types_mod_ident.clone(), - variant_name, - generate_alias, + alias_module_name, }, fields: fields_def, docs: docs_token, @@ -153,17 +148,14 @@ impl quote::ToTokens for CompositeDef { derives, type_params, field_visibility, - types_mod_ident, - variant_name, - generate_alias, + alias_module_name, } => { let phantom_data = type_params.unused_params_phantom_data(); - let fields = self.fields.to_struct_field_tokens( - variant_name, + let fields: TokenStream = self.fields.to_struct_field_tokens( phantom_data, field_visibility.as_ref(), - *generate_alias, + alias_module_name.as_ref(), ); let trailing_semicolon = matches!( self.fields, @@ -171,31 +163,10 @@ impl quote::ToTokens for CompositeDef { ) .then(|| quote!(;)); - let has_fields = matches!(&self.fields, CompositeDefFields::Named(fields) if !fields.is_empty()) - || matches!(&self.fields, CompositeDefFields::Unnamed(fields) if !fields.is_empty()); - - let alias_module = if *generate_alias && has_fields { - let aliases = self - .fields - .to_type_aliases_tokens(field_visibility.as_ref()); - - quote! { - pub mod #variant_name { - use super::#types_mod_ident; - - #aliases - } - } - } else { - quote!() - }; - quote! { #derives #docs pub struct #name #type_params #fields #trailing_semicolon - - #alias_module } } CompositeDefKind::EnumVariant => { @@ -220,9 +191,7 @@ pub enum CompositeDefKind { derives: Derives, type_params: TypeDefParameters, field_visibility: Option, - types_mod_ident: syn::Ident, - variant_name: syn::Ident, - generate_alias: bool, + alias_module_name: Option, }, /// Comprises a variant of a Rust `enum`. EnumVariant, @@ -230,7 +199,7 @@ pub enum CompositeDefKind { /// Encapsulates the composite fields, keeping the invariant that all fields are either named or /// unnamed. -#[derive(Debug)] +#[derive(Debug, Clone)] pub enum CompositeDefFields { NoFields, Named(Vec<(syn::Ident, CompositeDefFieldType)>), @@ -319,10 +288,9 @@ impl CompositeDefFields { /// Generate the code for fields which will compose a `struct`. pub fn to_struct_field_tokens( &self, - alias_module_name: &syn::Ident, phantom_data: Option, visibility: Option<&syn::Visibility>, - generate_alias: bool, + alias_module_name: Option<&syn::Ident>, ) -> TokenStream { match self { Self::NoFields => { @@ -336,7 +304,7 @@ impl CompositeDefFields { let fields = fields.iter().map(|(name, ty)| { let compact_attr = ty.compact_attr(); - if generate_alias { + if let Some(alias_module_name) = alias_module_name { let alias_name = format_ident!("{}", name.to_string().to_upper_camel_case()); @@ -367,7 +335,7 @@ impl CompositeDefFields { let fields = fields.iter().enumerate().map(|(idx, ty)| { let compact_attr = ty.compact_attr(); - if generate_alias { + if let Some(alias_module_name) = alias_module_name { let alias_name = format_ident!("Field{}", idx); let mut path = quote!( #alias_module_name::#alias_name); @@ -419,7 +387,7 @@ impl CompositeDefFields { } /// Represents a field of a composite type to be generated. -#[derive(Debug)] +#[derive(Debug, Clone)] pub struct CompositeDefFieldType { pub type_id: u32, pub type_path: TypePath, diff --git a/codegen/src/types/type_def.rs b/codegen/src/types/type_def.rs index ed800e08ba..87f4f77259 100644 --- a/codegen/src/types/type_def.rs +++ b/codegen/src/types/type_def.rs @@ -35,7 +35,6 @@ impl TypeDefGen { type_gen: &TypeGenerator, ) -> Result { let derives = type_gen.type_derives(ty)?; - let types_mod_ident = type_gen.types_mod_ident(); let crate_path = type_gen.crate_path(); let should_gen_docs = type_gen.should_gen_docs(); @@ -71,8 +70,6 @@ impl TypeDefGen { let docs = should_gen_docs.then_some(&*ty.docs).unwrap_or_default(); let composite_def = CompositeDef::struct_def( ty, - types_mod_ident, - &type_name, &type_name, type_params.clone(), fields, @@ -80,7 +77,7 @@ impl TypeDefGen { type_gen, docs, crate_path, - false, + None, )?; TypeDefGenKind::Struct(composite_def) } From d65be150b107e989e618180aaf7179218b51d7c8 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Thu, 7 Dec 2023 17:15:35 +0200 Subject: [PATCH 27/28] Update polkadot.rs Signed-off-by: Alexandru Vasile --- .../src/full_client/codegen/polkadot.rs | 2689 +++++++++-------- 1 file changed, 1435 insertions(+), 1254 deletions(-) diff --git a/testing/integration-tests/src/full_client/codegen/polkadot.rs b/testing/integration-tests/src/full_client/codegen/polkadot.rs index 1d1e4a32ea..28017a804a 100644 --- a/testing/integration-tests/src/full_client/codegen/polkadot.rs +++ b/testing/integration-tests/src/full_client/codegen/polkadot.rs @@ -21,7 +21,6 @@ pub mod api { "MmrLeaf", "Session", "Grandpa", - "ImOnline", "AuthorityDiscovery", "Treasury", "ConvictionVoting", @@ -66,6 +65,7 @@ pub mod api { "Auctions", "Crowdloan", "XcmPallet", + "IdentityMigrator", "ParasSudoWrapper", "AssignedSlots", "ValidatorManager", @@ -181,7 +181,7 @@ pub mod api { #[doc = " Returns the version of the runtime."] pub fn version( &self, - ) -> ::subxt::runtime_api::Payload + ) -> ::subxt::runtime_api::Payload { ::subxt::runtime_api::Payload::new_static( "Core", @@ -199,8 +199,10 @@ pub mod api { pub fn execute_block( &self, block: types::execute_block::Block, - ) -> ::subxt::runtime_api::Payload - { + ) -> ::subxt::runtime_api::Payload< + types::ExecuteBlock, + types::execute_block::output::Output, + > { ::subxt::runtime_api::Payload::new_static( "Core", "execute_block", @@ -218,7 +220,7 @@ pub mod api { header: types::initialize_block::Header, ) -> ::subxt::runtime_api::Payload< types::InitializeBlock, - types::initialize_block::Output, + types::initialize_block::output::Output, > { ::subxt::runtime_api::Payload::new_static( "Core", @@ -234,6 +236,13 @@ pub mod api { } pub mod types { use super::runtime_types; + pub mod version { + use super::runtime_types; + pub mod output { + use super::runtime_types; + pub type Output = runtime_types::sp_version::RuntimeVersion; + } + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -245,9 +254,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Version {} - pub mod version { + pub mod execute_block { use super::runtime_types; - pub type Output = runtime_types::sp_version::RuntimeVersion; + pub type Block = runtime_types :: sp_runtime :: generic :: block :: Block < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > , :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > > ; + pub mod output { + use super::runtime_types; + pub type Output = (); + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -262,10 +275,14 @@ pub mod api { pub struct ExecuteBlock { pub block: execute_block::Block, } - pub mod execute_block { + pub mod initialize_block { use super::runtime_types; - pub type Block = runtime_types :: sp_runtime :: generic :: block :: Block < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > , :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > > ; - pub type Output = (); + pub type Header = + runtime_types::sp_runtime::generic::header::Header<::core::primitive::u32>; + pub mod output { + use super::runtime_types; + pub type Output = (); + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -280,12 +297,6 @@ pub mod api { pub struct InitializeBlock { pub header: initialize_block::Header, } - pub mod initialize_block { - use super::runtime_types; - pub type Header = - runtime_types::sp_runtime::generic::header::Header<::core::primitive::u32>; - pub type Output = (); - } } } pub mod metadata { @@ -297,7 +308,7 @@ pub mod api { #[doc = " Returns the metadata of a runtime."] pub fn metadata( &self, - ) -> ::subxt::runtime_api::Payload + ) -> ::subxt::runtime_api::Payload { ::subxt::runtime_api::Payload::new_static( "Metadata", @@ -319,7 +330,7 @@ pub mod api { version: types::metadata_at_version::Version, ) -> ::subxt::runtime_api::Payload< types::MetadataAtVersion, - types::metadata_at_version::Output, + types::metadata_at_version::output::Output, > { ::subxt::runtime_api::Payload::new_static( "Metadata", @@ -340,7 +351,7 @@ pub mod api { &self, ) -> ::subxt::runtime_api::Payload< types::MetadataVersions, - types::metadata_versions::Output, + types::metadata_versions::output::Output, > { ::subxt::runtime_api::Payload::new_static( "Metadata", @@ -357,6 +368,13 @@ pub mod api { } pub mod types { use super::runtime_types; + pub mod metadata { + use super::runtime_types; + pub mod output { + use super::runtime_types; + pub type Output = runtime_types::sp_core::OpaqueMetadata; + } + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -368,9 +386,14 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Metadata {} - pub mod metadata { + pub mod metadata_at_version { use super::runtime_types; - pub type Output = runtime_types::sp_core::OpaqueMetadata; + pub type Version = ::core::primitive::u32; + pub mod output { + use super::runtime_types; + pub type Output = + ::core::option::Option; + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -385,11 +408,12 @@ pub mod api { pub struct MetadataAtVersion { pub version: metadata_at_version::Version, } - pub mod metadata_at_version { + pub mod metadata_versions { use super::runtime_types; - pub type Version = ::core::primitive::u32; - pub type Output = - ::core::option::Option; + pub mod output { + use super::runtime_types; + pub type Output = ::std::vec::Vec<::core::primitive::u32>; + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -402,10 +426,6 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct MetadataVersions {} - pub mod metadata_versions { - use super::runtime_types; - pub type Output = ::std::vec::Vec<::core::primitive::u32>; - } } } pub mod block_builder { @@ -423,7 +443,7 @@ pub mod api { extrinsic: types::apply_extrinsic::Extrinsic, ) -> ::subxt::runtime_api::Payload< types::ApplyExtrinsic, - types::apply_extrinsic::Output, + types::apply_extrinsic::output::Output, > { ::subxt::runtime_api::Payload::new_static( "BlockBuilder", @@ -441,7 +461,7 @@ pub mod api { &self, ) -> ::subxt::runtime_api::Payload< types::FinalizeBlock, - types::finalize_block::Output, + types::finalize_block::output::Output, > { ::subxt::runtime_api::Payload::new_static( "BlockBuilder", @@ -460,7 +480,7 @@ pub mod api { inherent: types::inherent_extrinsics::Inherent, ) -> ::subxt::runtime_api::Payload< types::InherentExtrinsics, - types::inherent_extrinsics::Output, + types::inherent_extrinsics::output::Output, > { ::subxt::runtime_api::Payload::new_static( "BlockBuilder", @@ -481,7 +501,7 @@ pub mod api { data: types::check_inherents::Data, ) -> ::subxt::runtime_api::Payload< types::CheckInherents, - types::check_inherents::Output, + types::check_inherents::output::Output, > { ::subxt::runtime_api::Payload::new_static( "BlockBuilder", @@ -498,6 +518,14 @@ pub mod api { } pub mod types { use super::runtime_types; + pub mod apply_extrinsic { + use super::runtime_types; + pub type Extrinsic = :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > ; + pub mod output { + use super::runtime_types; + pub type Output = :: core :: result :: Result < :: core :: result :: Result < () , runtime_types :: sp_runtime :: DispatchError > , runtime_types :: sp_runtime :: transaction_validity :: TransactionValidityError > ; + } + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -511,13 +539,14 @@ pub mod api { pub struct ApplyExtrinsic { pub extrinsic: apply_extrinsic::Extrinsic, } - pub mod apply_extrinsic { + pub mod finalize_block { use super::runtime_types; - pub type Extrinsic = :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > ; - pub type Output = ::core::result::Result< - ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, - runtime_types::sp_runtime::transaction_validity::TransactionValidityError, - >; + pub mod output { + use super::runtime_types; + pub type Output = runtime_types::sp_runtime::generic::header::Header< + ::core::primitive::u32, + >; + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -530,10 +559,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct FinalizeBlock {} - pub mod finalize_block { + pub mod inherent_extrinsics { use super::runtime_types; - pub type Output = - runtime_types::sp_runtime::generic::header::Header<::core::primitive::u32>; + pub type Inherent = runtime_types::sp_inherents::InherentData; + pub mod output { + use super::runtime_types; + pub type Output = :: std :: vec :: Vec < :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > > ; + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -548,10 +580,14 @@ pub mod api { pub struct InherentExtrinsics { pub inherent: inherent_extrinsics::Inherent, } - pub mod inherent_extrinsics { + pub mod check_inherents { use super::runtime_types; - pub type Inherent = runtime_types::sp_inherents::InherentData; - pub type Output = :: std :: vec :: Vec < :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > > ; + pub type Block = runtime_types :: sp_runtime :: generic :: block :: Block < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > , :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > > ; + pub type Data = runtime_types::sp_inherents::InherentData; + pub mod output { + use super::runtime_types; + pub type Output = runtime_types::sp_inherents::CheckInherentsResult; + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -567,12 +603,6 @@ pub mod api { pub block: check_inherents::Block, pub data: check_inherents::Data, } - pub mod check_inherents { - use super::runtime_types; - pub type Block = runtime_types :: sp_runtime :: generic :: block :: Block < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > , :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > > ; - pub type Data = runtime_types::sp_inherents::InherentData; - pub type Output = runtime_types::sp_inherents::CheckInherentsResult; - } } } pub mod tagged_transaction_queue { @@ -597,7 +627,7 @@ pub mod api { block_hash: types::validate_transaction::BlockHash, ) -> ::subxt::runtime_api::Payload< types::ValidateTransaction, - types::validate_transaction::Output, + types::validate_transaction::output::Output, > { ::subxt::runtime_api::Payload::new_static( "TaggedTransactionQueue", @@ -617,6 +647,17 @@ pub mod api { } pub mod types { use super::runtime_types; + pub mod validate_transaction { + use super::runtime_types; + pub type Source = + runtime_types::sp_runtime::transaction_validity::TransactionSource; + pub type Tx = :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > ; + pub type BlockHash = ::subxt::utils::H256; + pub mod output { + use super::runtime_types; + pub type Output = :: core :: result :: Result < runtime_types :: sp_runtime :: transaction_validity :: ValidTransaction , runtime_types :: sp_runtime :: transaction_validity :: TransactionValidityError > ; + } + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -632,17 +673,6 @@ pub mod api { pub tx: validate_transaction::Tx, pub block_hash: validate_transaction::BlockHash, } - pub mod validate_transaction { - use super::runtime_types; - pub type Source = - runtime_types::sp_runtime::transaction_validity::TransactionSource; - pub type Tx = :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > ; - pub type BlockHash = ::subxt::utils::H256; - pub type Output = ::core::result::Result< - runtime_types::sp_runtime::transaction_validity::ValidTransaction, - runtime_types::sp_runtime::transaction_validity::TransactionValidityError, - >; - } } } pub mod offchain_worker_api { @@ -657,7 +687,7 @@ pub mod api { header: types::offchain_worker::Header, ) -> ::subxt::runtime_api::Payload< types::OffchainWorker, - types::offchain_worker::Output, + types::offchain_worker::output::Output, > { ::subxt::runtime_api::Payload::new_static( "OffchainWorkerApi", @@ -673,6 +703,15 @@ pub mod api { } pub mod types { use super::runtime_types; + pub mod offchain_worker { + use super::runtime_types; + pub type Header = + runtime_types::sp_runtime::generic::header::Header<::core::primitive::u32>; + pub mod output { + use super::runtime_types; + pub type Output = (); + } + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -686,12 +725,6 @@ pub mod api { pub struct OffchainWorker { pub header: offchain_worker::Header, } - pub mod offchain_worker { - use super::runtime_types; - pub type Header = - runtime_types::sp_runtime::generic::header::Header<::core::primitive::u32>; - pub type Output = (); - } } } pub mod parachain_host { @@ -703,8 +736,10 @@ pub mod api { #[doc = " Get the current validators."] pub fn validators( &self, - ) -> ::subxt::runtime_api::Payload - { + ) -> ::subxt::runtime_api::Payload< + types::Validators, + types::validators::output::Output, + > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", "validators", @@ -724,7 +759,7 @@ pub mod api { &self, ) -> ::subxt::runtime_api::Payload< types::ValidatorGroups, - types::validator_groups::Output, + types::validator_groups::output::Output, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", @@ -744,7 +779,7 @@ pub mod api { &self, ) -> ::subxt::runtime_api::Payload< types::AvailabilityCores, - types::availability_cores::Output, + types::availability_cores::output::Output, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", @@ -768,7 +803,7 @@ pub mod api { assumption: types::persisted_validation_data::Assumption, ) -> ::subxt::runtime_api::Payload< types::PersistedValidationData, - types::persisted_validation_data::Output, + types::persisted_validation_data::output::Output, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", @@ -793,7 +828,7 @@ pub mod api { expected_persisted_validation_data_hash : types :: assumed_validation_data :: ExpectedPersistedValidationDataHash, ) -> ::subxt::runtime_api::Payload< types::AssumedValidationData, - types::assumed_validation_data::Output, + types::assumed_validation_data::output::Output, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", @@ -816,7 +851,7 @@ pub mod api { outputs: types::check_validation_outputs::Outputs, ) -> ::subxt::runtime_api::Payload< types::CheckValidationOutputs, - types::check_validation_outputs::Output, + types::check_validation_outputs::output::Output, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", @@ -837,7 +872,7 @@ pub mod api { &self, ) -> ::subxt::runtime_api::Payload< types::SessionIndexForChild, - types::session_index_for_child::Output, + types::session_index_for_child::output::Output, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", @@ -860,7 +895,7 @@ pub mod api { assumption: types::validation_code::Assumption, ) -> ::subxt::runtime_api::Payload< types::ValidationCode, - types::validation_code::Output, + types::validation_code::output::Output, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", @@ -884,7 +919,7 @@ pub mod api { para_id: types::candidate_pending_availability::ParaId, ) -> ::subxt::runtime_api::Payload< types::CandidatePendingAvailability, - types::candidate_pending_availability::Output, + types::candidate_pending_availability::output::Output, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", @@ -903,7 +938,7 @@ pub mod api { &self, ) -> ::subxt::runtime_api::Payload< types::CandidateEvents, - types::candidate_events::Output, + types::candidate_events::output::Output, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", @@ -921,8 +956,10 @@ pub mod api { pub fn dmq_contents( &self, recipient: types::dmq_contents::Recipient, - ) -> ::subxt::runtime_api::Payload - { + ) -> ::subxt::runtime_api::Payload< + types::DmqContents, + types::dmq_contents::output::Output, + > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", "dmq_contents", @@ -941,7 +978,7 @@ pub mod api { recipient: types::inbound_hrmp_channels_contents::Recipient, ) -> ::subxt::runtime_api::Payload< types::InboundHrmpChannelsContents, - types::inbound_hrmp_channels_contents::Output, + types::inbound_hrmp_channels_contents::output::Output, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", @@ -960,7 +997,7 @@ pub mod api { hash: types::validation_code_by_hash::Hash, ) -> ::subxt::runtime_api::Payload< types::ValidationCodeByHash, - types::validation_code_by_hash::Output, + types::validation_code_by_hash::output::Output, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", @@ -977,8 +1014,10 @@ pub mod api { #[doc = " Scrape dispute relevant from on-chain, backing votes and resolved disputes."] pub fn on_chain_votes( &self, - ) -> ::subxt::runtime_api::Payload - { + ) -> ::subxt::runtime_api::Payload< + types::OnChainVotes, + types::on_chain_votes::output::Output, + > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", "on_chain_votes", @@ -996,8 +1035,10 @@ pub mod api { pub fn session_info( &self, index: types::session_info::Index, - ) -> ::subxt::runtime_api::Payload - { + ) -> ::subxt::runtime_api::Payload< + types::SessionInfo, + types::session_info::output::Output, + > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", "session_info", @@ -1019,7 +1060,7 @@ pub mod api { signature: types::submit_pvf_check_statement::Signature, ) -> ::subxt::runtime_api::Payload< types::SubmitPvfCheckStatement, - types::submit_pvf_check_statement::Output, + types::submit_pvf_check_statement::output::Output, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", @@ -1040,7 +1081,7 @@ pub mod api { &self, ) -> ::subxt::runtime_api::Payload< types::PvfsRequirePrecheck, - types::pvfs_require_precheck::Output, + types::pvfs_require_precheck::output::Output, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", @@ -1062,7 +1103,7 @@ pub mod api { assumption: types::validation_code_hash::Assumption, ) -> ::subxt::runtime_api::Payload< types::ValidationCodeHash, - types::validation_code_hash::Output, + types::validation_code_hash::output::Output, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", @@ -1082,7 +1123,7 @@ pub mod api { #[doc = " Returns all onchain disputes."] pub fn disputes( &self, - ) -> ::subxt::runtime_api::Payload + ) -> ::subxt::runtime_api::Payload { ::subxt::runtime_api::Payload::new_static( "ParachainHost", @@ -1101,16 +1142,16 @@ pub mod api { session_index: types::session_executor_params::SessionIndex, ) -> ::subxt::runtime_api::Payload< types::SessionExecutorParams, - types::session_executor_params::Output, + types::session_executor_params::output::Output, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", "session_executor_params", types::SessionExecutorParams { session_index }, [ - 207u8, 66u8, 10u8, 104u8, 146u8, 219u8, 75u8, 157u8, 93u8, 224u8, - 215u8, 13u8, 255u8, 62u8, 134u8, 168u8, 185u8, 101u8, 39u8, 78u8, 98u8, - 44u8, 129u8, 38u8, 48u8, 244u8, 103u8, 205u8, 66u8, 121u8, 18u8, 247u8, + 94u8, 35u8, 29u8, 188u8, 247u8, 116u8, 165u8, 43u8, 248u8, 76u8, 21u8, + 237u8, 26u8, 25u8, 105u8, 27u8, 24u8, 245u8, 97u8, 25u8, 47u8, 118u8, + 98u8, 231u8, 27u8, 76u8, 172u8, 207u8, 90u8, 103u8, 52u8, 168u8, ], ) } @@ -1120,7 +1161,7 @@ pub mod api { &self, ) -> ::subxt::runtime_api::Payload< types::UnappliedSlashes, - types::unapplied_slashes::Output, + types::unapplied_slashes::output::Output, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", @@ -1140,7 +1181,7 @@ pub mod api { validator_id: types::key_ownership_proof::ValidatorId, ) -> ::subxt::runtime_api::Payload< types::KeyOwnershipProof, - types::key_ownership_proof::Output, + types::key_ownership_proof::output::Output, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", @@ -1162,7 +1203,7 @@ pub mod api { key_ownership_proof: types::submit_report_dispute_lost::KeyOwnershipProof, ) -> ::subxt::runtime_api::Payload< types::SubmitReportDisputeLost, - types::submit_report_dispute_lost::Output, + types::submit_report_dispute_lost::output::Output, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", @@ -1184,7 +1225,7 @@ pub mod api { &self, ) -> ::subxt::runtime_api::Payload< types::MinimumBackingVotes, - types::minimum_backing_votes::Output, + types::minimum_backing_votes::output::Output, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", @@ -1204,7 +1245,7 @@ pub mod api { _0: types::para_backing_state::Param0, ) -> ::subxt::runtime_api::Payload< types::ParaBackingState, - types::para_backing_state::Output, + types::para_backing_state::output::Output, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", @@ -1222,7 +1263,7 @@ pub mod api { &self, ) -> ::subxt::runtime_api::Payload< types::AsyncBackingParams, - types::async_backing_params::Output, + types::async_backing_params::output::Output, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", @@ -1241,7 +1282,7 @@ pub mod api { &self, ) -> ::subxt::runtime_api::Payload< types::DisabledValidators, - types::disabled_validators::Output, + types::disabled_validators::output::Output, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", @@ -1255,9 +1296,37 @@ pub mod api { ], ) } + #[doc = " Get node features."] + #[doc = " This is a staging method! Do not use on production runtimes!"] + pub fn node_features( + &self, + ) -> ::subxt::runtime_api::Payload< + types::NodeFeatures, + types::node_features::output::Output, + > { + ::subxt::runtime_api::Payload::new_static( + "ParachainHost", + "node_features", + types::NodeFeatures {}, + [ + 94u8, 110u8, 38u8, 62u8, 66u8, 234u8, 216u8, 228u8, 36u8, 17u8, 33u8, + 56u8, 184u8, 122u8, 34u8, 254u8, 46u8, 62u8, 107u8, 227u8, 3u8, 126u8, + 220u8, 142u8, 92u8, 226u8, 123u8, 236u8, 34u8, 234u8, 82u8, 80u8, + ], + ) + } } pub mod types { use super::runtime_types; + pub mod validators { + use super::runtime_types; + pub mod output { + use super::runtime_types; + pub type Output = ::std::vec::Vec< + runtime_types::polkadot_primitives::v6::validator_app::Public, + >; + } + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -1269,11 +1338,21 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Validators {} - pub mod validators { + pub mod validator_groups { use super::runtime_types; - pub type Output = ::std::vec::Vec< - runtime_types::polkadot_primitives::v6::validator_app::Public, - >; + pub mod output { + use super::runtime_types; + pub type Output = ( + ::std::vec::Vec< + ::std::vec::Vec< + runtime_types::polkadot_primitives::v6::ValidatorIndex, + >, + >, + runtime_types::polkadot_primitives::v6::GroupRotationInfo< + ::core::primitive::u32, + >, + ); + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1286,16 +1365,17 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ValidatorGroups {} - pub mod validator_groups { + pub mod availability_cores { use super::runtime_types; - pub type Output = ( - ::std::vec::Vec< - ::std::vec::Vec, - >, - runtime_types::polkadot_primitives::v6::GroupRotationInfo< - ::core::primitive::u32, - >, - ); + pub mod output { + use super::runtime_types; + pub type Output = ::std::vec::Vec< + runtime_types::polkadot_primitives::v6::CoreState< + ::subxt::utils::H256, + ::core::primitive::u32, + >, + >; + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1308,14 +1388,20 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AvailabilityCores {} - pub mod availability_cores { + pub mod persisted_validation_data { use super::runtime_types; - pub type Output = ::std::vec::Vec< - runtime_types::polkadot_primitives::v6::CoreState< - ::subxt::utils::H256, - ::core::primitive::u32, - >, - >; + pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Assumption = + runtime_types::polkadot_primitives::v6::OccupiedCoreAssumption; + pub mod output { + use super::runtime_types; + pub type Output = ::core::option::Option< + runtime_types::polkadot_primitives::v6::PersistedValidationData< + ::subxt::utils::H256, + ::core::primitive::u32, + >, + >; + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1331,17 +1417,14 @@ pub mod api { pub para_id: persisted_validation_data::ParaId, pub assumption: persisted_validation_data::Assumption, } - pub mod persisted_validation_data { + pub mod assumed_validation_data { use super::runtime_types; pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Assumption = - runtime_types::polkadot_primitives::v6::OccupiedCoreAssumption; - pub type Output = ::core::option::Option< - runtime_types::polkadot_primitives::v6::PersistedValidationData< - ::subxt::utils::H256, - ::core::primitive::u32, - >, - >; + pub type ExpectedPersistedValidationDataHash = ::subxt::utils::H256; + pub mod output { + use super::runtime_types; + pub type Output = :: core :: option :: Option < (runtime_types :: polkadot_primitives :: v6 :: PersistedValidationData < :: subxt :: utils :: H256 , :: core :: primitive :: u32 > , runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash ,) > ; + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1358,11 +1441,16 @@ pub mod api { pub expected_persisted_validation_data_hash: assumed_validation_data::ExpectedPersistedValidationDataHash, } - pub mod assumed_validation_data { + pub mod check_validation_outputs { use super::runtime_types; pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type ExpectedPersistedValidationDataHash = ::subxt::utils::H256; - pub type Output = :: core :: option :: Option < (runtime_types :: polkadot_primitives :: v6 :: PersistedValidationData < :: subxt :: utils :: H256 , :: core :: primitive :: u32 > , runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash ,) > ; + pub type Outputs = runtime_types::polkadot_primitives::v6::CandidateCommitments< + ::core::primitive::u32, + >; + pub mod output { + use super::runtime_types; + pub type Output = ::core::primitive::bool; + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1378,13 +1466,12 @@ pub mod api { pub para_id: check_validation_outputs::ParaId, pub outputs: check_validation_outputs::Outputs, } - pub mod check_validation_outputs { + pub mod session_index_for_child { use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Outputs = runtime_types::polkadot_primitives::v6::CandidateCommitments< - ::core::primitive::u32, - >; - pub type Output = ::core::primitive::bool; + pub mod output { + use super::runtime_types; + pub type Output = ::core::primitive::u32; + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1397,9 +1484,15 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SessionIndexForChild {} - pub mod session_index_for_child { + pub mod validation_code { use super::runtime_types; - pub type Output = ::core::primitive::u32; + pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Assumption = + runtime_types::polkadot_primitives::v6::OccupiedCoreAssumption; + pub mod output { + use super::runtime_types; + pub type Output = :: core :: option :: Option < runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCode > ; + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1415,14 +1508,17 @@ pub mod api { pub para_id: validation_code::ParaId, pub assumption: validation_code::Assumption, } - pub mod validation_code { + pub mod candidate_pending_availability { use super::runtime_types; pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Assumption = - runtime_types::polkadot_primitives::v6::OccupiedCoreAssumption; - pub type Output = ::core::option::Option< - runtime_types::polkadot_parachain_primitives::primitives::ValidationCode, - >; + pub mod output { + use super::runtime_types; + pub type Output = ::core::option::Option< + runtime_types::polkadot_primitives::v6::CommittedCandidateReceipt< + ::subxt::utils::H256, + >, + >; + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1437,14 +1533,16 @@ pub mod api { pub struct CandidatePendingAvailability { pub para_id: candidate_pending_availability::ParaId, } - pub mod candidate_pending_availability { + pub mod candidate_events { use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Output = ::core::option::Option< - runtime_types::polkadot_primitives::v6::CommittedCandidateReceipt< - ::subxt::utils::H256, - >, - >; + pub mod output { + use super::runtime_types; + pub type Output = ::std::vec::Vec< + runtime_types::polkadot_primitives::v6::CandidateEvent< + ::subxt::utils::H256, + >, + >; + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1457,13 +1555,18 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CandidateEvents {} - pub mod candidate_events { + pub mod dmq_contents { use super::runtime_types; - pub type Output = ::std::vec::Vec< - runtime_types::polkadot_primitives::v6::CandidateEvent< - ::subxt::utils::H256, - >, - >; + pub type Recipient = + runtime_types::polkadot_parachain_primitives::primitives::Id; + pub mod output { + use super::runtime_types; + pub type Output = ::std::vec::Vec< + runtime_types::polkadot_core_primitives::InboundDownwardMessage< + ::core::primitive::u32, + >, + >; + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1478,15 +1581,21 @@ pub mod api { pub struct DmqContents { pub recipient: dmq_contents::Recipient, } - pub mod dmq_contents { + pub mod inbound_hrmp_channels_contents { use super::runtime_types; pub type Recipient = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Output = ::std::vec::Vec< - runtime_types::polkadot_core_primitives::InboundDownwardMessage< - ::core::primitive::u32, - >, - >; + pub mod output { + use super::runtime_types; + pub type Output = ::subxt::utils::KeyedVec< + runtime_types::polkadot_parachain_primitives::primitives::Id, + ::std::vec::Vec< + runtime_types::polkadot_core_primitives::InboundHrmpMessage< + ::core::primitive::u32, + >, + >, + >; + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1501,18 +1610,13 @@ pub mod api { pub struct InboundHrmpChannelsContents { pub recipient: inbound_hrmp_channels_contents::Recipient, } - pub mod inbound_hrmp_channels_contents { + pub mod validation_code_by_hash { use super::runtime_types; - pub type Recipient = - runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Output = ::subxt::utils::KeyedVec< - runtime_types::polkadot_parachain_primitives::primitives::Id, - ::std::vec::Vec< - runtime_types::polkadot_core_primitives::InboundHrmpMessage< - ::core::primitive::u32, - >, - >, - >; + pub type Hash = runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash ; + pub mod output { + use super::runtime_types; + pub type Output = :: core :: option :: Option < runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCode > ; + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1527,12 +1631,16 @@ pub mod api { pub struct ValidationCodeByHash { pub hash: validation_code_by_hash::Hash, } - pub mod validation_code_by_hash { + pub mod on_chain_votes { use super::runtime_types; - pub type Hash = runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash ; - pub type Output = ::core::option::Option< - runtime_types::polkadot_parachain_primitives::primitives::ValidationCode, - >; + pub mod output { + use super::runtime_types; + pub type Output = ::core::option::Option< + runtime_types::polkadot_primitives::v6::ScrapedOnChainVotes< + ::subxt::utils::H256, + >, + >; + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1545,13 +1653,15 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct OnChainVotes {} - pub mod on_chain_votes { + pub mod session_info { use super::runtime_types; - pub type Output = ::core::option::Option< - runtime_types::polkadot_primitives::v6::ScrapedOnChainVotes< - ::subxt::utils::H256, - >, - >; + pub type Index = ::core::primitive::u32; + pub mod output { + use super::runtime_types; + pub type Output = ::core::option::Option< + runtime_types::polkadot_primitives::v6::SessionInfo, + >; + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1566,11 +1676,15 @@ pub mod api { pub struct SessionInfo { pub index: session_info::Index, } - pub mod session_info { + pub mod submit_pvf_check_statement { use super::runtime_types; - pub type Index = ::core::primitive::u32; - pub type Output = - ::core::option::Option; + pub type Stmt = runtime_types::polkadot_primitives::v6::PvfCheckStatement; + pub type Signature = + runtime_types::polkadot_primitives::v6::validator_app::Signature; + pub mod output { + use super::runtime_types; + pub type Output = (); + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1586,12 +1700,12 @@ pub mod api { pub stmt: submit_pvf_check_statement::Stmt, pub signature: submit_pvf_check_statement::Signature, } - pub mod submit_pvf_check_statement { + pub mod pvfs_require_precheck { use super::runtime_types; - pub type Stmt = runtime_types::polkadot_primitives::v6::PvfCheckStatement; - pub type Signature = - runtime_types::polkadot_primitives::v6::validator_app::Signature; - pub type Output = (); + pub mod output { + use super::runtime_types; + pub type Output = :: std :: vec :: Vec < runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash > ; + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1604,9 +1718,15 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PvfsRequirePrecheck {} - pub mod pvfs_require_precheck { + pub mod validation_code_hash { use super::runtime_types; - pub type Output = :: std :: vec :: Vec < runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash > ; + pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Assumption = + runtime_types::polkadot_primitives::v6::OccupiedCoreAssumption; + pub mod output { + use super::runtime_types; + pub type Output = :: core :: option :: Option < runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash > ; + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1622,12 +1742,18 @@ pub mod api { pub para_id: validation_code_hash::ParaId, pub assumption: validation_code_hash::Assumption, } - pub mod validation_code_hash { + pub mod disputes { use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Assumption = - runtime_types::polkadot_primitives::v6::OccupiedCoreAssumption; - pub type Output = :: core :: option :: Option < runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash > ; + pub mod output { + use super::runtime_types; + pub type Output = ::std::vec::Vec<( + ::core::primitive::u32, + runtime_types::polkadot_core_primitives::CandidateHash, + runtime_types::polkadot_primitives::v6::DisputeState< + ::core::primitive::u32, + >, + )>; + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1640,15 +1766,15 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Disputes {} - pub mod disputes { + pub mod session_executor_params { use super::runtime_types; - pub type Output = ::std::vec::Vec<( - ::core::primitive::u32, - runtime_types::polkadot_core_primitives::CandidateHash, - runtime_types::polkadot_primitives::v6::DisputeState< - ::core::primitive::u32, - >, - )>; + pub type SessionIndex = ::core::primitive::u32; + pub mod output { + use super::runtime_types; + pub type Output = ::core::option::Option< + runtime_types::polkadot_primitives::v6::executor_params::ExecutorParams, + >; + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1663,12 +1789,16 @@ pub mod api { pub struct SessionExecutorParams { pub session_index: session_executor_params::SessionIndex, } - pub mod session_executor_params { + pub mod unapplied_slashes { use super::runtime_types; - pub type SessionIndex = ::core::primitive::u32; - pub type Output = ::core::option::Option< - runtime_types::polkadot_primitives::v6::executor_params::ExecutorParams, - >; + pub mod output { + use super::runtime_types; + pub type Output = ::std::vec::Vec<( + ::core::primitive::u32, + runtime_types::polkadot_core_primitives::CandidateHash, + runtime_types::polkadot_primitives::v6::slashing::PendingSlashes, + )>; + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1681,13 +1811,14 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UnappliedSlashes {} - pub mod unapplied_slashes { + pub mod key_ownership_proof { use super::runtime_types; - pub type Output = ::std::vec::Vec<( - ::core::primitive::u32, - runtime_types::polkadot_core_primitives::CandidateHash, - runtime_types::polkadot_primitives::v6::slashing::PendingSlashes, - )>; + pub type ValidatorId = + runtime_types::polkadot_primitives::v6::validator_app::Public; + pub mod output { + use super::runtime_types; + pub type Output = :: core :: option :: Option < runtime_types :: polkadot_primitives :: v6 :: slashing :: OpaqueKeyOwnershipProof > ; + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1702,13 +1833,16 @@ pub mod api { pub struct KeyOwnershipProof { pub validator_id: key_ownership_proof::ValidatorId, } - pub mod key_ownership_proof { + pub mod submit_report_dispute_lost { use super::runtime_types; - pub type ValidatorId = - runtime_types::polkadot_primitives::v6::validator_app::Public; - pub type Output = ::core::option::Option< - runtime_types::polkadot_primitives::v6::slashing::OpaqueKeyOwnershipProof, - >; + pub type DisputeProof = + runtime_types::polkadot_primitives::v6::slashing::DisputeProof; + pub type KeyOwnershipProof = + runtime_types::polkadot_primitives::v6::slashing::OpaqueKeyOwnershipProof; + pub mod output { + use super::runtime_types; + pub type Output = ::core::option::Option<()>; + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1724,13 +1858,12 @@ pub mod api { pub dispute_proof: submit_report_dispute_lost::DisputeProof, pub key_ownership_proof: submit_report_dispute_lost::KeyOwnershipProof, } - pub mod submit_report_dispute_lost { + pub mod minimum_backing_votes { use super::runtime_types; - pub type DisputeProof = - runtime_types::polkadot_primitives::v6::slashing::DisputeProof; - pub type KeyOwnershipProof = - runtime_types::polkadot_primitives::v6::slashing::OpaqueKeyOwnershipProof; - pub type Output = ::core::option::Option<()>; + pub mod output { + use super::runtime_types; + pub type Output = ::core::primitive::u32; + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1743,9 +1876,18 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct MinimumBackingVotes {} - pub mod minimum_backing_votes { + pub mod para_backing_state { use super::runtime_types; - pub type Output = ::core::primitive::u32; + pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub mod output { + use super::runtime_types; + pub type Output = ::core::option::Option< + runtime_types::polkadot_primitives::v6::async_backing::BackingState< + ::subxt::utils::H256, + ::core::primitive::u32, + >, + >; + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1760,15 +1902,12 @@ pub mod api { pub struct ParaBackingState { pub _0: para_backing_state::Param0, } - pub mod para_backing_state { + pub mod async_backing_params { use super::runtime_types; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Output = ::core::option::Option< - runtime_types::polkadot_primitives::v6::async_backing::BackingState< - ::subxt::utils::H256, - ::core::primitive::u32, - >, - >; + pub mod output { + use super::runtime_types; + pub type Output = runtime_types :: polkadot_primitives :: v6 :: async_backing :: AsyncBackingParams ; + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1781,10 +1920,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AsyncBackingParams {} - pub mod async_backing_params { + pub mod disabled_validators { use super::runtime_types; - pub type Output = - runtime_types::polkadot_primitives::v6::async_backing::AsyncBackingParams; + pub mod output { + use super::runtime_types; + pub type Output = + ::std::vec::Vec; + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1797,11 +1939,27 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct DisabledValidators {} - pub mod disabled_validators { + pub mod node_features { use super::runtime_types; - pub type Output = - ::std::vec::Vec; + pub mod output { + use super::runtime_types; + pub type Output = ::subxt::utils::bits::DecodedBits< + ::core::primitive::u8, + ::subxt::utils::bits::Lsb0, + >; + } } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct NodeFeatures {} } } pub mod beefy_api { @@ -1813,8 +1971,10 @@ pub mod api { #[doc = " Return the block number where BEEFY consensus is enabled/started"] pub fn beefy_genesis( &self, - ) -> ::subxt::runtime_api::Payload - { + ) -> ::subxt::runtime_api::Payload< + types::BeefyGenesis, + types::beefy_genesis::output::Output, + > { ::subxt::runtime_api::Payload::new_static( "BeefyApi", "beefy_genesis", @@ -1830,8 +1990,10 @@ pub mod api { #[doc = " Return the current active BEEFY validator set"] pub fn validator_set( &self, - ) -> ::subxt::runtime_api::Payload - { + ) -> ::subxt::runtime_api::Payload< + types::ValidatorSet, + types::validator_set::output::Output, + > { ::subxt::runtime_api::Payload::new_static( "BeefyApi", "validator_set", @@ -1857,7 +2019,7 @@ pub mod api { key_owner_proof : types :: submit_report_equivocation_unsigned_extrinsic :: KeyOwnerProof, ) -> ::subxt::runtime_api::Payload< types::SubmitReportEquivocationUnsignedExtrinsic, - types::submit_report_equivocation_unsigned_extrinsic::Output, + types::submit_report_equivocation_unsigned_extrinsic::output::Output, > { ::subxt::runtime_api::Payload::new_static( "BeefyApi", @@ -1891,7 +2053,7 @@ pub mod api { authority_id: types::generate_key_ownership_proof::AuthorityId, ) -> ::subxt::runtime_api::Payload< types::GenerateKeyOwnershipProof, - types::generate_key_ownership_proof::Output, + types::generate_key_ownership_proof::output::Output, > { ::subxt::runtime_api::Payload::new_static( "BeefyApi", @@ -1910,6 +2072,13 @@ pub mod api { } pub mod types { use super::runtime_types; + pub mod beefy_genesis { + use super::runtime_types; + pub mod output { + use super::runtime_types; + pub type Output = ::core::option::Option<::core::primitive::u32>; + } + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -1921,9 +2090,16 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BeefyGenesis {} - pub mod beefy_genesis { + pub mod validator_set { use super::runtime_types; - pub type Output = ::core::option::Option<::core::primitive::u32>; + pub mod output { + use super::runtime_types; + pub type Output = ::core::option::Option< + runtime_types::sp_consensus_beefy::ValidatorSet< + runtime_types::sp_consensus_beefy::ecdsa_crypto::Public, + >, + >; + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1936,13 +2112,20 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ValidatorSet {} - pub mod validator_set { + pub mod submit_report_equivocation_unsigned_extrinsic { use super::runtime_types; - pub type Output = ::core::option::Option< - runtime_types::sp_consensus_beefy::ValidatorSet< + pub type EquivocationProof = + runtime_types::sp_consensus_beefy::EquivocationProof< + ::core::primitive::u32, runtime_types::sp_consensus_beefy::ecdsa_crypto::Public, - >, - >; + runtime_types::sp_consensus_beefy::ecdsa_crypto::Signature, + >; + pub type KeyOwnerProof = + runtime_types::sp_consensus_beefy::OpaqueKeyOwnershipProof; + pub mod output { + use super::runtime_types; + pub type Output = ::core::option::Option<()>; + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1960,17 +2143,16 @@ pub mod api { pub key_owner_proof: submit_report_equivocation_unsigned_extrinsic::KeyOwnerProof, } - pub mod submit_report_equivocation_unsigned_extrinsic { + pub mod generate_key_ownership_proof { use super::runtime_types; - pub type EquivocationProof = - runtime_types::sp_consensus_beefy::EquivocationProof< - ::core::primitive::u32, - runtime_types::sp_consensus_beefy::ecdsa_crypto::Public, - runtime_types::sp_consensus_beefy::ecdsa_crypto::Signature, + pub type SetId = ::core::primitive::u64; + pub type AuthorityId = runtime_types::sp_consensus_beefy::ecdsa_crypto::Public; + pub mod output { + use super::runtime_types; + pub type Output = ::core::option::Option< + runtime_types::sp_consensus_beefy::OpaqueKeyOwnershipProof, >; - pub type KeyOwnerProof = - runtime_types::sp_consensus_beefy::OpaqueKeyOwnershipProof; - pub type Output = ::core::option::Option<()>; + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1986,14 +2168,6 @@ pub mod api { pub set_id: generate_key_ownership_proof::SetId, pub authority_id: generate_key_ownership_proof::AuthorityId, } - pub mod generate_key_ownership_proof { - use super::runtime_types; - pub type SetId = ::core::primitive::u64; - pub type AuthorityId = runtime_types::sp_consensus_beefy::ecdsa_crypto::Public; - pub type Output = ::core::option::Option< - runtime_types::sp_consensus_beefy::OpaqueKeyOwnershipProof, - >; - } } } pub mod mmr_api { @@ -2005,7 +2179,7 @@ pub mod api { #[doc = " Return the on-chain MMR root hash."] pub fn mmr_root( &self, - ) -> ::subxt::runtime_api::Payload + ) -> ::subxt::runtime_api::Payload { ::subxt::runtime_api::Payload::new_static( "MmrApi", @@ -2021,8 +2195,10 @@ pub mod api { #[doc = " Return the number of MMR blocks in the chain."] pub fn mmr_leaf_count( &self, - ) -> ::subxt::runtime_api::Payload - { + ) -> ::subxt::runtime_api::Payload< + types::MmrLeafCount, + types::mmr_leaf_count::output::Output, + > { ::subxt::runtime_api::Payload::new_static( "MmrApi", "mmr_leaf_count", @@ -2043,7 +2219,7 @@ pub mod api { best_known_block_number: types::generate_proof::BestKnownBlockNumber, ) -> ::subxt::runtime_api::Payload< types::GenerateProof, - types::generate_proof::Output, + types::generate_proof::output::Output, > { ::subxt::runtime_api::Payload::new_static( "MmrApi", @@ -2069,8 +2245,10 @@ pub mod api { &self, leaves: types::verify_proof::Leaves, proof: types::verify_proof::Proof, - ) -> ::subxt::runtime_api::Payload - { + ) -> ::subxt::runtime_api::Payload< + types::VerifyProof, + types::verify_proof::output::Output, + > { ::subxt::runtime_api::Payload::new_static( "MmrApi", "verify_proof", @@ -2097,7 +2275,7 @@ pub mod api { proof: types::verify_proof_stateless::Proof, ) -> ::subxt::runtime_api::Payload< types::VerifyProofStateless, - types::verify_proof_stateless::Output, + types::verify_proof_stateless::output::Output, > { ::subxt::runtime_api::Payload::new_static( "MmrApi", @@ -2117,6 +2295,16 @@ pub mod api { } pub mod types { use super::runtime_types; + pub mod mmr_root { + use super::runtime_types; + pub mod output { + use super::runtime_types; + pub type Output = ::core::result::Result< + ::subxt::utils::H256, + runtime_types::sp_mmr_primitives::Error, + >; + } + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -2128,12 +2316,15 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct MmrRoot {} - pub mod mmr_root { + pub mod mmr_leaf_count { use super::runtime_types; - pub type Output = ::core::result::Result< - ::subxt::utils::H256, - runtime_types::sp_mmr_primitives::Error, - >; + pub mod output { + use super::runtime_types; + pub type Output = ::core::result::Result< + ::core::primitive::u64, + runtime_types::sp_mmr_primitives::Error, + >; + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -2146,12 +2337,22 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct MmrLeafCount {} - pub mod mmr_leaf_count { + pub mod generate_proof { use super::runtime_types; - pub type Output = ::core::result::Result< - ::core::primitive::u64, - runtime_types::sp_mmr_primitives::Error, - >; + pub type BlockNumbers = ::std::vec::Vec<::core::primitive::u32>; + pub type BestKnownBlockNumber = ::core::option::Option<::core::primitive::u32>; + pub mod output { + use super::runtime_types; + pub type Output = ::core::result::Result< + ( + ::std::vec::Vec< + runtime_types::sp_mmr_primitives::EncodableOpaqueLeaf, + >, + runtime_types::sp_mmr_primitives::Proof<::subxt::utils::H256>, + ), + runtime_types::sp_mmr_primitives::Error, + >; + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -2167,17 +2368,16 @@ pub mod api { pub block_numbers: generate_proof::BlockNumbers, pub best_known_block_number: generate_proof::BestKnownBlockNumber, } - pub mod generate_proof { + pub mod verify_proof { use super::runtime_types; - pub type BlockNumbers = ::std::vec::Vec<::core::primitive::u32>; - pub type BestKnownBlockNumber = ::core::option::Option<::core::primitive::u32>; - pub type Output = ::core::result::Result< - ( - ::std::vec::Vec, - runtime_types::sp_mmr_primitives::Proof<::subxt::utils::H256>, - ), - runtime_types::sp_mmr_primitives::Error, - >; + pub type Leaves = + ::std::vec::Vec; + pub type Proof = runtime_types::sp_mmr_primitives::Proof<::subxt::utils::H256>; + pub mod output { + use super::runtime_types; + pub type Output = + ::core::result::Result<(), runtime_types::sp_mmr_primitives::Error>; + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -2193,13 +2393,17 @@ pub mod api { pub leaves: verify_proof::Leaves, pub proof: verify_proof::Proof, } - pub mod verify_proof { + pub mod verify_proof_stateless { use super::runtime_types; + pub type Root = ::subxt::utils::H256; pub type Leaves = ::std::vec::Vec; pub type Proof = runtime_types::sp_mmr_primitives::Proof<::subxt::utils::H256>; - pub type Output = - ::core::result::Result<(), runtime_types::sp_mmr_primitives::Error>; + pub mod output { + use super::runtime_types; + pub type Output = + ::core::result::Result<(), runtime_types::sp_mmr_primitives::Error>; + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -2216,15 +2420,6 @@ pub mod api { pub leaves: verify_proof_stateless::Leaves, pub proof: verify_proof_stateless::Proof, } - pub mod verify_proof_stateless { - use super::runtime_types; - pub type Root = ::subxt::utils::H256; - pub type Leaves = - ::std::vec::Vec; - pub type Proof = runtime_types::sp_mmr_primitives::Proof<::subxt::utils::H256>; - pub type Output = - ::core::result::Result<(), runtime_types::sp_mmr_primitives::Error>; - } } } pub mod grandpa_api { @@ -2251,7 +2446,7 @@ pub mod api { &self, ) -> ::subxt::runtime_api::Payload< types::GrandpaAuthorities, - types::grandpa_authorities::Output, + types::grandpa_authorities::output::Output, > { ::subxt::runtime_api::Payload::new_static( "GrandpaApi", @@ -2279,7 +2474,7 @@ pub mod api { key_owner_proof : types :: submit_report_equivocation_unsigned_extrinsic :: KeyOwnerProof, ) -> ::subxt::runtime_api::Payload< types::SubmitReportEquivocationUnsignedExtrinsic, - types::submit_report_equivocation_unsigned_extrinsic::Output, + types::submit_report_equivocation_unsigned_extrinsic::output::Output, > { ::subxt::runtime_api::Payload::new_static( "GrandpaApi", @@ -2313,7 +2508,7 @@ pub mod api { authority_id: types::generate_key_ownership_proof::AuthorityId, ) -> ::subxt::runtime_api::Payload< types::GenerateKeyOwnershipProof, - types::generate_key_ownership_proof::Output, + types::generate_key_ownership_proof::output::Output, > { ::subxt::runtime_api::Payload::new_static( "GrandpaApi", @@ -2333,8 +2528,10 @@ pub mod api { #[doc = " Get current GRANDPA authority set id."] pub fn current_set_id( &self, - ) -> ::subxt::runtime_api::Payload - { + ) -> ::subxt::runtime_api::Payload< + types::CurrentSetId, + types::current_set_id::output::Output, + > { ::subxt::runtime_api::Payload::new_static( "GrandpaApi", "current_set_id", @@ -2350,6 +2547,16 @@ pub mod api { } pub mod types { use super::runtime_types; + pub mod grandpa_authorities { + use super::runtime_types; + pub mod output { + use super::runtime_types; + pub type Output = ::std::vec::Vec<( + runtime_types::sp_consensus_grandpa::app::Public, + ::core::primitive::u64, + )>; + } + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -2361,12 +2568,19 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct GrandpaAuthorities {} - pub mod grandpa_authorities { + pub mod submit_report_equivocation_unsigned_extrinsic { use super::runtime_types; - pub type Output = ::std::vec::Vec<( - runtime_types::sp_consensus_grandpa::app::Public, - ::core::primitive::u64, - )>; + pub type EquivocationProof = + runtime_types::sp_consensus_grandpa::EquivocationProof< + ::subxt::utils::H256, + ::core::primitive::u32, + >; + pub type KeyOwnerProof = + runtime_types::sp_consensus_grandpa::OpaqueKeyOwnershipProof; + pub mod output { + use super::runtime_types; + pub type Output = ::core::option::Option<()>; + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -2384,16 +2598,16 @@ pub mod api { pub key_owner_proof: submit_report_equivocation_unsigned_extrinsic::KeyOwnerProof, } - pub mod submit_report_equivocation_unsigned_extrinsic { + pub mod generate_key_ownership_proof { use super::runtime_types; - pub type EquivocationProof = - runtime_types::sp_consensus_grandpa::EquivocationProof< - ::subxt::utils::H256, - ::core::primitive::u32, + pub type SetId = ::core::primitive::u64; + pub type AuthorityId = runtime_types::sp_consensus_grandpa::app::Public; + pub mod output { + use super::runtime_types; + pub type Output = ::core::option::Option< + runtime_types::sp_consensus_grandpa::OpaqueKeyOwnershipProof, >; - pub type KeyOwnerProof = - runtime_types::sp_consensus_grandpa::OpaqueKeyOwnershipProof; - pub type Output = ::core::option::Option<()>; + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -2409,13 +2623,12 @@ pub mod api { pub set_id: generate_key_ownership_proof::SetId, pub authority_id: generate_key_ownership_proof::AuthorityId, } - pub mod generate_key_ownership_proof { + pub mod current_set_id { use super::runtime_types; - pub type SetId = ::core::primitive::u64; - pub type AuthorityId = runtime_types::sp_consensus_grandpa::app::Public; - pub type Output = ::core::option::Option< - runtime_types::sp_consensus_grandpa::OpaqueKeyOwnershipProof, - >; + pub mod output { + use super::runtime_types; + pub type Output = ::core::primitive::u64; + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -2428,10 +2641,6 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CurrentSetId {} - pub mod current_set_id { - use super::runtime_types; - pub type Output = ::core::primitive::u64; - } } } pub mod babe_api { @@ -2443,8 +2652,10 @@ pub mod api { #[doc = " Return the configuration for BABE."] pub fn configuration( &self, - ) -> ::subxt::runtime_api::Payload - { + ) -> ::subxt::runtime_api::Payload< + types::Configuration, + types::configuration::output::Output, + > { ::subxt::runtime_api::Payload::new_static( "BabeApi", "configuration", @@ -2461,7 +2672,7 @@ pub mod api { &self, ) -> ::subxt::runtime_api::Payload< types::CurrentEpochStart, - types::current_epoch_start::Output, + types::current_epoch_start::output::Output, > { ::subxt::runtime_api::Payload::new_static( "BabeApi", @@ -2478,8 +2689,10 @@ pub mod api { #[doc = " Returns information regarding the current epoch."] pub fn current_epoch( &self, - ) -> ::subxt::runtime_api::Payload - { + ) -> ::subxt::runtime_api::Payload< + types::CurrentEpoch, + types::current_epoch::output::Output, + > { ::subxt::runtime_api::Payload::new_static( "BabeApi", "current_epoch", @@ -2495,8 +2708,10 @@ pub mod api { #[doc = " previously announced)."] pub fn next_epoch( &self, - ) -> ::subxt::runtime_api::Payload - { + ) -> ::subxt::runtime_api::Payload< + types::NextEpoch, + types::next_epoch::output::Output, + > { ::subxt::runtime_api::Payload::new_static( "BabeApi", "next_epoch", @@ -2526,7 +2741,7 @@ pub mod api { authority_id: types::generate_key_ownership_proof::AuthorityId, ) -> ::subxt::runtime_api::Payload< types::GenerateKeyOwnershipProof, - types::generate_key_ownership_proof::Output, + types::generate_key_ownership_proof::output::Output, > { ::subxt::runtime_api::Payload::new_static( "BabeApi", @@ -2554,7 +2769,7 @@ pub mod api { key_owner_proof : types :: submit_report_equivocation_unsigned_extrinsic :: KeyOwnerProof, ) -> ::subxt::runtime_api::Payload< types::SubmitReportEquivocationUnsignedExtrinsic, - types::submit_report_equivocation_unsigned_extrinsic::Output, + types::submit_report_equivocation_unsigned_extrinsic::output::Output, > { ::subxt::runtime_api::Payload::new_static( "BabeApi", @@ -2573,6 +2788,13 @@ pub mod api { } pub mod types { use super::runtime_types; + pub mod configuration { + use super::runtime_types; + pub mod output { + use super::runtime_types; + pub type Output = runtime_types::sp_consensus_babe::BabeConfiguration; + } + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -2584,9 +2806,12 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Configuration {} - pub mod configuration { + pub mod current_epoch_start { use super::runtime_types; - pub type Output = runtime_types::sp_consensus_babe::BabeConfiguration; + pub mod output { + use super::runtime_types; + pub type Output = runtime_types::sp_consensus_slots::Slot; + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -2599,9 +2824,12 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CurrentEpochStart {} - pub mod current_epoch_start { + pub mod current_epoch { use super::runtime_types; - pub type Output = runtime_types::sp_consensus_slots::Slot; + pub mod output { + use super::runtime_types; + pub type Output = runtime_types::sp_consensus_babe::Epoch; + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -2614,9 +2842,12 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CurrentEpoch {} - pub mod current_epoch { + pub mod next_epoch { use super::runtime_types; - pub type Output = runtime_types::sp_consensus_babe::Epoch; + pub mod output { + use super::runtime_types; + pub type Output = runtime_types::sp_consensus_babe::Epoch; + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -2629,9 +2860,16 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct NextEpoch {} - pub mod next_epoch { + pub mod generate_key_ownership_proof { use super::runtime_types; - pub type Output = runtime_types::sp_consensus_babe::Epoch; + pub type Slot = runtime_types::sp_consensus_slots::Slot; + pub type AuthorityId = runtime_types::sp_consensus_babe::app::Public; + pub mod output { + use super::runtime_types; + pub type Output = ::core::option::Option< + runtime_types::sp_consensus_babe::OpaqueKeyOwnershipProof, + >; + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -2647,13 +2885,21 @@ pub mod api { pub slot: generate_key_ownership_proof::Slot, pub authority_id: generate_key_ownership_proof::AuthorityId, } - pub mod generate_key_ownership_proof { + pub mod submit_report_equivocation_unsigned_extrinsic { use super::runtime_types; - pub type Slot = runtime_types::sp_consensus_slots::Slot; - pub type AuthorityId = runtime_types::sp_consensus_babe::app::Public; - pub type Output = ::core::option::Option< - runtime_types::sp_consensus_babe::OpaqueKeyOwnershipProof, - >; + pub type EquivocationProof = + runtime_types::sp_consensus_slots::EquivocationProof< + runtime_types::sp_runtime::generic::header::Header< + ::core::primitive::u32, + >, + runtime_types::sp_consensus_babe::app::Public, + >; + pub type KeyOwnerProof = + runtime_types::sp_consensus_babe::OpaqueKeyOwnershipProof; + pub mod output { + use super::runtime_types; + pub type Output = ::core::option::Option<()>; + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -2671,19 +2917,6 @@ pub mod api { pub key_owner_proof: submit_report_equivocation_unsigned_extrinsic::KeyOwnerProof, } - pub mod submit_report_equivocation_unsigned_extrinsic { - use super::runtime_types; - pub type EquivocationProof = - runtime_types::sp_consensus_slots::EquivocationProof< - runtime_types::sp_runtime::generic::header::Header< - ::core::primitive::u32, - >, - runtime_types::sp_consensus_babe::app::Public, - >; - pub type KeyOwnerProof = - runtime_types::sp_consensus_babe::OpaqueKeyOwnershipProof; - pub type Output = ::core::option::Option<()>; - } } } pub mod authority_discovery_api { @@ -2698,8 +2931,10 @@ pub mod api { #[doc = " Retrieve authority identifiers of the current and next authority set."] pub fn authorities( &self, - ) -> ::subxt::runtime_api::Payload - { + ) -> ::subxt::runtime_api::Payload< + types::Authorities, + types::authorities::output::Output, + > { ::subxt::runtime_api::Payload::new_static( "AuthorityDiscoveryApi", "authorities", @@ -2714,6 +2949,14 @@ pub mod api { } pub mod types { use super::runtime_types; + pub mod authorities { + use super::runtime_types; + pub mod output { + use super::runtime_types; + pub type Output = + ::std::vec::Vec; + } + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -2725,11 +2968,6 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Authorities {} - pub mod authorities { - use super::runtime_types; - pub type Output = - ::std::vec::Vec; - } } } pub mod session_keys { @@ -2750,7 +2988,7 @@ pub mod api { seed: types::generate_session_keys::Seed, ) -> ::subxt::runtime_api::Payload< types::GenerateSessionKeys, - types::generate_session_keys::Output, + types::generate_session_keys::output::Output, > { ::subxt::runtime_api::Payload::new_static( "SessionKeys", @@ -2771,7 +3009,7 @@ pub mod api { encoded: types::decode_session_keys::Encoded, ) -> ::subxt::runtime_api::Payload< types::DecodeSessionKeys, - types::decode_session_keys::Output, + types::decode_session_keys::output::Output, > { ::subxt::runtime_api::Payload::new_static( "SessionKeys", @@ -2788,6 +3026,14 @@ pub mod api { } pub mod types { use super::runtime_types; + pub mod generate_session_keys { + use super::runtime_types; + pub type Seed = ::core::option::Option<::std::vec::Vec<::core::primitive::u8>>; + pub mod output { + use super::runtime_types; + pub type Output = ::std::vec::Vec<::core::primitive::u8>; + } + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -2801,10 +3047,18 @@ pub mod api { pub struct GenerateSessionKeys { pub seed: generate_session_keys::Seed, } - pub mod generate_session_keys { + pub mod decode_session_keys { use super::runtime_types; - pub type Seed = ::core::option::Option<::std::vec::Vec<::core::primitive::u8>>; - pub type Output = ::std::vec::Vec<::core::primitive::u8>; + pub type Encoded = ::std::vec::Vec<::core::primitive::u8>; + pub mod output { + use super::runtime_types; + pub type Output = ::core::option::Option< + ::std::vec::Vec<( + ::std::vec::Vec<::core::primitive::u8>, + runtime_types::sp_core::crypto::KeyTypeId, + )>, + >; + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -2819,16 +3073,6 @@ pub mod api { pub struct DecodeSessionKeys { pub encoded: decode_session_keys::Encoded, } - pub mod decode_session_keys { - use super::runtime_types; - pub type Encoded = ::std::vec::Vec<::core::primitive::u8>; - pub type Output = ::core::option::Option< - ::std::vec::Vec<( - ::std::vec::Vec<::core::primitive::u8>, - runtime_types::sp_core::crypto::KeyTypeId, - )>, - >; - } } } pub mod account_nonce_api { @@ -2841,8 +3085,10 @@ pub mod api { pub fn account_nonce( &self, account: types::account_nonce::Account, - ) -> ::subxt::runtime_api::Payload - { + ) -> ::subxt::runtime_api::Payload< + types::AccountNonce, + types::account_nonce::output::Output, + > { ::subxt::runtime_api::Payload::new_static( "AccountNonceApi", "account_nonce", @@ -2858,6 +3104,14 @@ pub mod api { } pub mod types { use super::runtime_types; + pub mod account_nonce { + use super::runtime_types; + pub type Account = ::subxt::utils::AccountId32; + pub mod output { + use super::runtime_types; + pub type Output = ::core::primitive::u32; + } + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -2871,11 +3125,6 @@ pub mod api { pub struct AccountNonce { pub account: account_nonce::Account, } - pub mod account_nonce { - use super::runtime_types; - pub type Account = ::subxt::utils::AccountId32; - pub type Output = ::core::primitive::u32; - } } } pub mod transaction_payment_api { @@ -2887,8 +3136,10 @@ pub mod api { &self, uxt: types::query_info::Uxt, len: types::query_info::Len, - ) -> ::subxt::runtime_api::Payload - { + ) -> ::subxt::runtime_api::Payload< + types::QueryInfo, + types::query_info::output::Output, + > { ::subxt::runtime_api::Payload::new_static( "TransactionPaymentApi", "query_info", @@ -2906,7 +3157,7 @@ pub mod api { len: types::query_fee_details::Len, ) -> ::subxt::runtime_api::Payload< types::QueryFeeDetails, - types::query_fee_details::Output, + types::query_fee_details::output::Output, > { ::subxt::runtime_api::Payload::new_static( "TransactionPaymentApi", @@ -2925,7 +3176,7 @@ pub mod api { weight: types::query_weight_to_fee::Weight, ) -> ::subxt::runtime_api::Payload< types::QueryWeightToFee, - types::query_weight_to_fee::Output, + types::query_weight_to_fee::output::Output, > { ::subxt::runtime_api::Payload::new_static( "TransactionPaymentApi", @@ -2944,7 +3195,7 @@ pub mod api { length: types::query_length_to_fee::Length, ) -> ::subxt::runtime_api::Payload< types::QueryLengthToFee, - types::query_length_to_fee::Output, + types::query_length_to_fee::output::Output, > { ::subxt::runtime_api::Payload::new_static( "TransactionPaymentApi", @@ -2960,6 +3211,19 @@ pub mod api { } pub mod types { use super::runtime_types; + pub mod query_info { + use super::runtime_types; + pub type Uxt = :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > ; + pub type Len = ::core::primitive::u32; + pub mod output { + use super::runtime_types; + pub type Output = + runtime_types::pallet_transaction_payment::types::RuntimeDispatchInfo< + ::core::primitive::u128, + runtime_types::sp_weights::weight_v2::Weight, + >; + } + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -2974,15 +3238,17 @@ pub mod api { pub uxt: query_info::Uxt, pub len: query_info::Len, } - pub mod query_info { + pub mod query_fee_details { use super::runtime_types; pub type Uxt = :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > ; pub type Len = ::core::primitive::u32; - pub type Output = - runtime_types::pallet_transaction_payment::types::RuntimeDispatchInfo< - ::core::primitive::u128, - runtime_types::sp_weights::weight_v2::Weight, - >; + pub mod output { + use super::runtime_types; + pub type Output = + runtime_types::pallet_transaction_payment::types::FeeDetails< + ::core::primitive::u128, + >; + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -2998,13 +3264,13 @@ pub mod api { pub uxt: query_fee_details::Uxt, pub len: query_fee_details::Len, } - pub mod query_fee_details { + pub mod query_weight_to_fee { use super::runtime_types; - pub type Uxt = :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > ; - pub type Len = ::core::primitive::u32; - pub type Output = runtime_types::pallet_transaction_payment::types::FeeDetails< - ::core::primitive::u128, - >; + pub type Weight = runtime_types::sp_weights::weight_v2::Weight; + pub mod output { + use super::runtime_types; + pub type Output = ::core::primitive::u128; + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -3019,10 +3285,13 @@ pub mod api { pub struct QueryWeightToFee { pub weight: query_weight_to_fee::Weight, } - pub mod query_weight_to_fee { + pub mod query_length_to_fee { use super::runtime_types; - pub type Weight = runtime_types::sp_weights::weight_v2::Weight; - pub type Output = ::core::primitive::u128; + pub type Length = ::core::primitive::u32; + pub mod output { + use super::runtime_types; + pub type Output = ::core::primitive::u128; + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -3037,11 +3306,6 @@ pub mod api { pub struct QueryLengthToFee { pub length: query_length_to_fee::Length, } - pub mod query_length_to_fee { - use super::runtime_types; - pub type Length = ::core::primitive::u32; - pub type Output = ::core::primitive::u128; - } } } pub mod beefy_mmr_api { @@ -3055,7 +3319,7 @@ pub mod api { &self, ) -> ::subxt::runtime_api::Payload< types::AuthoritySetProof, - types::authority_set_proof::Output, + types::authority_set_proof::output::Output, > { ::subxt::runtime_api::Payload::new_static( "BeefyMmrApi", @@ -3074,7 +3338,7 @@ pub mod api { &self, ) -> ::subxt::runtime_api::Payload< types::NextAuthoritySetProof, - types::next_authority_set_proof::Output, + types::next_authority_set_proof::output::Output, > { ::subxt::runtime_api::Payload::new_static( "BeefyMmrApi", @@ -3090,6 +3354,15 @@ pub mod api { } pub mod types { use super::runtime_types; + pub mod authority_set_proof { + use super::runtime_types; + pub mod output { + use super::runtime_types; + pub type Output = runtime_types::sp_consensus_beefy::mmr::BeefyAuthoritySet< + ::subxt::utils::H256, + >; + } + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -3101,11 +3374,14 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AuthoritySetProof {} - pub mod authority_set_proof { + pub mod next_authority_set_proof { use super::runtime_types; - pub type Output = runtime_types::sp_consensus_beefy::mmr::BeefyAuthoritySet< - ::subxt::utils::H256, - >; + pub mod output { + use super::runtime_types; + pub type Output = runtime_types::sp_consensus_beefy::mmr::BeefyAuthoritySet< + ::subxt::utils::H256, + >; + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -3118,12 +3394,6 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct NextAuthoritySetProof {} - pub mod next_authority_set_proof { - use super::runtime_types; - pub type Output = runtime_types::sp_consensus_beefy::mmr::BeefyAuthoritySet< - ::subxt::utils::H256, - >; - } } } pub mod genesis_builder { @@ -3140,7 +3410,7 @@ pub mod api { &self, ) -> ::subxt::runtime_api::Payload< types::CreateDefaultConfig, - types::create_default_config::Output, + types::create_default_config::output::Output, > { ::subxt::runtime_api::Payload::new_static( "GenesisBuilder", @@ -3163,8 +3433,10 @@ pub mod api { pub fn build_config( &self, json: types::build_config::Json, - ) -> ::subxt::runtime_api::Payload - { + ) -> ::subxt::runtime_api::Payload< + types::BuildConfig, + types::build_config::output::Output, + > { ::subxt::runtime_api::Payload::new_static( "GenesisBuilder", "build_config", @@ -3180,6 +3452,13 @@ pub mod api { } pub mod types { use super::runtime_types; + pub mod create_default_config { + use super::runtime_types; + pub mod output { + use super::runtime_types; + pub type Output = ::std::vec::Vec<::core::primitive::u8>; + } + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -3191,9 +3470,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CreateDefaultConfig {} - pub mod create_default_config { + pub mod build_config { use super::runtime_types; - pub type Output = ::std::vec::Vec<::core::primitive::u8>; + pub type Json = ::std::vec::Vec<::core::primitive::u8>; + pub mod output { + use super::runtime_types; + pub type Output = ::core::result::Result<(), ::std::string::String>; + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -3208,11 +3491,6 @@ pub mod api { pub struct BuildConfig { pub json: build_config::Json, } - pub mod build_config { - use super::runtime_types; - pub type Json = ::std::vec::Vec<::core::primitive::u8>; - pub type Output = ::core::result::Result<(), ::std::string::String>; - } } } } @@ -3247,9 +3525,6 @@ pub mod api { 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 treasury(&self) -> treasury::constants::ConstantsApi { treasury::constants::ConstantsApi } @@ -3374,9 +3649,6 @@ pub mod api { pub fn grandpa(&self) -> grandpa::storage::StorageApi { grandpa::storage::StorageApi } - pub fn im_online(&self) -> im_online::storage::StorageApi { - im_online::storage::StorageApi - } pub fn treasury(&self) -> treasury::storage::StorageApi { treasury::storage::StorageApi } @@ -3541,9 +3813,6 @@ pub mod api { pub fn grandpa(&self) -> grandpa::calls::TransactionApi { grandpa::calls::TransactionApi } - pub fn im_online(&self) -> im_online::calls::TransactionApi { - im_online::calls::TransactionApi - } pub fn treasury(&self) -> treasury::calls::TransactionApi { treasury::calls::TransactionApi } @@ -3657,6 +3926,9 @@ pub mod api { pub fn xcm_pallet(&self) -> xcm_pallet::calls::TransactionApi { xcm_pallet::calls::TransactionApi } + pub fn identity_migrator(&self) -> identity_migrator::calls::TransactionApi { + identity_migrator::calls::TransactionApi + } pub fn paras_sudo_wrapper(&self) -> paras_sudo_wrapper::calls::TransactionApi { paras_sudo_wrapper::calls::TransactionApi } @@ -3685,9 +3957,9 @@ pub mod api { .hash(); runtime_metadata_hash == [ - 210u8, 40u8, 238u8, 30u8, 170u8, 200u8, 235u8, 8u8, 143u8, 68u8, 193u8, 187u8, - 18u8, 7u8, 95u8, 2u8, 24u8, 155u8, 40u8, 65u8, 249u8, 78u8, 20u8, 5u8, 7u8, 140u8, - 114u8, 215u8, 65u8, 235u8, 62u8, 15u8, + 235u8, 160u8, 5u8, 253u8, 168u8, 64u8, 107u8, 209u8, 67u8, 121u8, 247u8, 72u8, + 187u8, 80u8, 77u8, 25u8, 228u8, 46u8, 36u8, 153u8, 101u8, 69u8, 188u8, 15u8, 241u8, + 123u8, 87u8, 172u8, 143u8, 64u8, 199u8, 125u8, ] } pub mod system { @@ -4525,9 +4797,9 @@ pub mod api { "Events", vec![], [ - 203u8, 185u8, 202u8, 46u8, 60u8, 247u8, 185u8, 43u8, 177u8, 237u8, - 118u8, 62u8, 238u8, 44u8, 3u8, 32u8, 190u8, 212u8, 99u8, 224u8, 24u8, - 233u8, 250u8, 1u8, 75u8, 204u8, 1u8, 179u8, 199u8, 201u8, 61u8, 228u8, + 232u8, 10u8, 118u8, 183u8, 198u8, 124u8, 103u8, 205u8, 8u8, 42u8, 16u8, + 168u8, 10u8, 62u8, 35u8, 14u8, 184u8, 41u8, 145u8, 158u8, 5u8, 154u8, + 128u8, 80u8, 68u8, 171u8, 161u8, 114u8, 47u8, 42u8, 7u8, 235u8, ], ) } @@ -5333,9 +5605,10 @@ pub mod api { "Initialized", vec![], [ - 137u8, 31u8, 4u8, 130u8, 35u8, 232u8, 67u8, 108u8, 17u8, 123u8, 26u8, - 96u8, 238u8, 95u8, 138u8, 208u8, 163u8, 83u8, 218u8, 143u8, 8u8, 119u8, - 138u8, 130u8, 9u8, 194u8, 92u8, 40u8, 7u8, 89u8, 53u8, 237u8, + 169u8, 217u8, 237u8, 78u8, 186u8, 202u8, 206u8, 213u8, 54u8, 85u8, + 206u8, 166u8, 22u8, 138u8, 236u8, 60u8, 211u8, 169u8, 12u8, 183u8, + 23u8, 69u8, 194u8, 236u8, 112u8, 21u8, 62u8, 219u8, 92u8, 131u8, 134u8, + 145u8, ], ) } @@ -8380,9 +8653,10 @@ pub mod api { "set_keys", types::SetKeys { keys, proof }, [ - 50u8, 154u8, 235u8, 252u8, 160u8, 25u8, 233u8, 90u8, 76u8, 227u8, 22u8, - 129u8, 221u8, 129u8, 95u8, 124u8, 117u8, 117u8, 43u8, 17u8, 109u8, - 252u8, 39u8, 115u8, 150u8, 80u8, 38u8, 34u8, 62u8, 237u8, 248u8, 246u8, + 160u8, 137u8, 167u8, 56u8, 165u8, 202u8, 149u8, 39u8, 16u8, 52u8, + 173u8, 215u8, 250u8, 158u8, 78u8, 126u8, 236u8, 153u8, 173u8, 68u8, + 237u8, 8u8, 47u8, 77u8, 119u8, 226u8, 248u8, 220u8, 139u8, 68u8, 145u8, + 207u8, ], ) } @@ -8555,9 +8829,10 @@ pub mod api { "QueuedKeys", vec![], [ - 251u8, 240u8, 64u8, 86u8, 241u8, 74u8, 141u8, 38u8, 46u8, 18u8, 92u8, - 101u8, 227u8, 161u8, 58u8, 222u8, 17u8, 29u8, 248u8, 237u8, 74u8, 69u8, - 18u8, 16u8, 129u8, 187u8, 172u8, 249u8, 162u8, 96u8, 218u8, 186u8, + 123u8, 8u8, 241u8, 219u8, 141u8, 50u8, 254u8, 247u8, 130u8, 71u8, + 105u8, 18u8, 149u8, 204u8, 28u8, 104u8, 184u8, 6u8, 165u8, 31u8, 153u8, + 54u8, 235u8, 78u8, 48u8, 182u8, 83u8, 221u8, 243u8, 110u8, 249u8, + 212u8, ], ) } @@ -8601,9 +8876,10 @@ pub mod api { "NextKeys", vec![], [ - 87u8, 61u8, 243u8, 159u8, 164u8, 196u8, 130u8, 218u8, 136u8, 189u8, - 253u8, 151u8, 230u8, 9u8, 214u8, 58u8, 102u8, 67u8, 61u8, 138u8, 242u8, - 214u8, 80u8, 166u8, 130u8, 47u8, 141u8, 197u8, 11u8, 73u8, 100u8, 16u8, + 13u8, 219u8, 184u8, 220u8, 199u8, 150u8, 34u8, 166u8, 125u8, 46u8, + 26u8, 160u8, 113u8, 243u8, 227u8, 6u8, 121u8, 176u8, 222u8, 250u8, + 108u8, 240u8, 0u8, 15u8, 177u8, 220u8, 206u8, 94u8, 179u8, 41u8, 209u8, + 23u8, ], ) } @@ -8625,9 +8901,10 @@ pub mod api { _0.borrow(), )], [ - 87u8, 61u8, 243u8, 159u8, 164u8, 196u8, 130u8, 218u8, 136u8, 189u8, - 253u8, 151u8, 230u8, 9u8, 214u8, 58u8, 102u8, 67u8, 61u8, 138u8, 242u8, - 214u8, 80u8, 166u8, 130u8, 47u8, 141u8, 197u8, 11u8, 73u8, 100u8, 16u8, + 13u8, 219u8, 184u8, 220u8, 199u8, 150u8, 34u8, 166u8, 125u8, 46u8, + 26u8, 160u8, 113u8, 243u8, 227u8, 6u8, 121u8, 176u8, 222u8, 250u8, + 108u8, 240u8, 0u8, 15u8, 177u8, 220u8, 206u8, 94u8, 179u8, 41u8, 209u8, + 23u8, ], ) } @@ -8958,6 +9235,14 @@ pub mod api { pub type SetIdSession = ::core::primitive::u32; pub type Param0 = ::core::primitive::u64; } + pub mod authorities { + use super::runtime_types; + pub type Authorities = + runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec<( + runtime_types::sp_consensus_grandpa::app::Public, + ::core::primitive::u64, + )>; + } } pub struct StorageApi; impl StorageApi { @@ -9132,6 +9417,28 @@ pub mod api { ], ) } + #[doc = " The current list of authorities."] + pub fn authorities( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::authorities::Authorities, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Grandpa", + "Authorities", + vec![], + [ + 67u8, 196u8, 244u8, 13u8, 246u8, 245u8, 198u8, 98u8, 81u8, 55u8, 182u8, + 187u8, 214u8, 5u8, 181u8, 76u8, 251u8, 213u8, 144u8, 166u8, 36u8, + 153u8, 234u8, 181u8, 252u8, 55u8, 198u8, 175u8, 55u8, 211u8, 105u8, + 85u8, + ], + ) + } } } pub mod constants { @@ -9191,393 +9498,6 @@ pub mod api { } } } - pub mod im_online { - use super::root_mod; - use super::runtime_types; - #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_im_online::pallet::Error; - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::pallet_im_online::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Heartbeat { - pub heartbeat: heartbeat::Heartbeat, - pub signature: heartbeat::Signature, - } - pub mod heartbeat { - use super::runtime_types; - pub type Heartbeat = - runtime_types::pallet_im_online::Heartbeat<::core::primitive::u32>; - pub type Signature = - runtime_types::pallet_im_online::sr25519::app_sr25519::Signature; - } - impl ::subxt::blocks::StaticExtrinsic for Heartbeat { - const PALLET: &'static str = "ImOnline"; - const CALL: &'static str = "heartbeat"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::heartbeat`]."] - pub fn heartbeat( - &self, - heartbeat: types::heartbeat::Heartbeat, - signature: types::heartbeat::Signature, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "ImOnline", - "heartbeat", - types::Heartbeat { - heartbeat, - signature, - }, - [ - 41u8, 78u8, 115u8, 250u8, 94u8, 34u8, 215u8, 28u8, 33u8, 175u8, 203u8, - 205u8, 14u8, 40u8, 197u8, 51u8, 24u8, 198u8, 173u8, 32u8, 119u8, 154u8, - 213u8, 125u8, 219u8, 3u8, 128u8, 52u8, 166u8, 223u8, 241u8, 129u8, - ], - ) - } - } - } - #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_im_online::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A new heartbeat was received from `AuthorityId`."] - pub struct HeartbeatReceived { - pub authority_id: heartbeat_received::AuthorityId, - } - pub mod heartbeat_received { - use super::runtime_types; - pub type AuthorityId = - runtime_types::pallet_im_online::sr25519::app_sr25519::Public; - } - impl ::subxt::events::StaticEvent for HeartbeatReceived { - const PALLET: &'static str = "ImOnline"; - const EVENT: &'static str = "HeartbeatReceived"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "At the end of the session, no offence was committed."] - pub struct AllGood; - impl ::subxt::events::StaticEvent for AllGood { - const PALLET: &'static str = "ImOnline"; - const EVENT: &'static str = "AllGood"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "At the end of the session, at least one validator was found to be offline."] - pub struct SomeOffline { - pub offline: some_offline::Offline, - } - pub mod some_offline { - use super::runtime_types; - pub type Offline = ::std::vec::Vec<(::subxt::utils::AccountId32, ())>; - } - impl ::subxt::events::StaticEvent for SomeOffline { - const PALLET: &'static str = "ImOnline"; - const EVENT: &'static str = "SomeOffline"; - } - } - pub mod storage { - use super::runtime_types; - pub mod types { - use super::runtime_types; - pub mod heartbeat_after { - use super::runtime_types; - pub type HeartbeatAfter = ::core::primitive::u32; - } - pub mod keys { - use super::runtime_types; - pub type Keys = - runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec< - runtime_types::pallet_im_online::sr25519::app_sr25519::Public, - >; - } - pub mod received_heartbeats { - use super::runtime_types; - pub type ReceivedHeartbeats = ::core::primitive::bool; - pub type Param0 = ::core::primitive::u32; - pub type Param1 = ::core::primitive::u32; - } - pub mod authored_blocks { - use super::runtime_types; - pub type AuthoredBlocks = ::core::primitive::u32; - pub type Param0 = ::core::primitive::u32; - pub type Param1 = ::subxt::utils::AccountId32; - } - } - pub struct StorageApi; - impl StorageApi { - #[doc = " The block number after which it's ok to send heartbeats in the current"] - #[doc = " session."] - #[doc = ""] - #[doc = " At the beginning of each session we set this to a value that should fall"] - #[doc = " roughly in the middle of the session duration. The idea is to first wait for"] - #[doc = " the validators to produce a block in the current session, so that the"] - #[doc = " heartbeat later on will not be necessary."] - #[doc = ""] - #[doc = " This value will only be used as a fallback if we fail to get a proper session"] - #[doc = " progress estimate from `NextSessionRotation`, as those estimates should be"] - #[doc = " more accurate then the value we calculate for `HeartbeatAfter`."] - pub fn heartbeat_after( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::heartbeat_after::HeartbeatAfter, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "ImOnline", - "HeartbeatAfter", - vec![], - [ - 36u8, 179u8, 76u8, 254u8, 3u8, 184u8, 154u8, 142u8, 70u8, 104u8, 44u8, - 244u8, 39u8, 97u8, 31u8, 31u8, 93u8, 228u8, 185u8, 224u8, 13u8, 160u8, - 231u8, 210u8, 110u8, 143u8, 116u8, 29u8, 0u8, 215u8, 217u8, 137u8, - ], - ) - } - #[doc = " The current set of keys that may issue a heartbeat."] - pub fn keys( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::keys::Keys, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "ImOnline", - "Keys", - vec![], - [ - 111u8, 104u8, 188u8, 46u8, 152u8, 140u8, 137u8, 244u8, 52u8, 214u8, - 115u8, 156u8, 39u8, 239u8, 15u8, 168u8, 193u8, 125u8, 57u8, 195u8, - 250u8, 156u8, 234u8, 222u8, 222u8, 253u8, 135u8, 232u8, 196u8, 163u8, - 29u8, 218u8, - ], - ) - } - #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`."] - pub fn received_heartbeats_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::received_heartbeats::ReceivedHeartbeats, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "ImOnline", - "ReceivedHeartbeats", - vec![], - [ - 30u8, 155u8, 42u8, 200u8, 223u8, 48u8, 127u8, 31u8, 253u8, 195u8, - 234u8, 108u8, 64u8, 27u8, 247u8, 17u8, 187u8, 199u8, 41u8, 138u8, 55u8, - 163u8, 94u8, 226u8, 10u8, 3u8, 132u8, 129u8, 8u8, 138u8, 137u8, 171u8, - ], - ) - } - #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`."] - pub fn received_heartbeats_iter1( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::received_heartbeats::ReceivedHeartbeats, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "ImOnline", - "ReceivedHeartbeats", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 30u8, 155u8, 42u8, 200u8, 223u8, 48u8, 127u8, 31u8, 253u8, 195u8, - 234u8, 108u8, 64u8, 27u8, 247u8, 17u8, 187u8, 199u8, 41u8, 138u8, 55u8, - 163u8, 94u8, 226u8, 10u8, 3u8, 132u8, 129u8, 8u8, 138u8, 137u8, 171u8, - ], - ) - } - #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`."] - pub fn received_heartbeats( - &self, - _0: impl ::std::borrow::Borrow, - _1: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::received_heartbeats::ReceivedHeartbeats, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "ImOnline", - "ReceivedHeartbeats", - vec![ - ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), - ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), - ], - [ - 30u8, 155u8, 42u8, 200u8, 223u8, 48u8, 127u8, 31u8, 253u8, 195u8, - 234u8, 108u8, 64u8, 27u8, 247u8, 17u8, 187u8, 199u8, 41u8, 138u8, 55u8, - 163u8, 94u8, 226u8, 10u8, 3u8, 132u8, 129u8, 8u8, 138u8, 137u8, 171u8, - ], - ) - } - #[doc = " For each session index, we keep a mapping of `ValidatorId` to the"] - #[doc = " number of blocks authored by the given authority."] - pub fn authored_blocks_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::authored_blocks::AuthoredBlocks, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "ImOnline", - "AuthoredBlocks", - vec![], - [ - 123u8, 76u8, 230u8, 113u8, 65u8, 255u8, 99u8, 79u8, 131u8, 139u8, - 218u8, 20u8, 174u8, 191u8, 224u8, 67u8, 137u8, 48u8, 146u8, 209u8, - 148u8, 69u8, 130u8, 9u8, 173u8, 253u8, 206u8, 196u8, 68u8, 160u8, - 233u8, 126u8, - ], - ) - } - #[doc = " For each session index, we keep a mapping of `ValidatorId` to the"] - #[doc = " number of blocks authored by the given authority."] - pub fn authored_blocks_iter1( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::authored_blocks::AuthoredBlocks, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "ImOnline", - "AuthoredBlocks", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 123u8, 76u8, 230u8, 113u8, 65u8, 255u8, 99u8, 79u8, 131u8, 139u8, - 218u8, 20u8, 174u8, 191u8, 224u8, 67u8, 137u8, 48u8, 146u8, 209u8, - 148u8, 69u8, 130u8, 9u8, 173u8, 253u8, 206u8, 196u8, 68u8, 160u8, - 233u8, 126u8, - ], - ) - } - #[doc = " For each session index, we keep a mapping of `ValidatorId` to the"] - #[doc = " number of blocks authored by the given authority."] - pub fn authored_blocks( - &self, - _0: impl ::std::borrow::Borrow, - _1: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::authored_blocks::AuthoredBlocks, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "ImOnline", - "AuthoredBlocks", - vec![ - ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), - ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), - ], - [ - 123u8, 76u8, 230u8, 113u8, 65u8, 255u8, 99u8, 79u8, 131u8, 139u8, - 218u8, 20u8, 174u8, 191u8, 224u8, 67u8, 137u8, 48u8, 146u8, 209u8, - 148u8, 69u8, 130u8, 9u8, 173u8, 253u8, 206u8, 196u8, 68u8, 160u8, - 233u8, 126u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " A configuration for base priority of unsigned transactions."] - #[doc = ""] - #[doc = " This is exposed so that it can be tuned for particular runtime, when"] - #[doc = " multiple pallets send unsigned transactions."] - pub fn unsigned_priority( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u64> { - ::subxt::constants::Address::new_static( - "ImOnline", - "UnsignedPriority", - [ - 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, - 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, - 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, - 246u8, - ], - ) - } - } - } - } pub mod authority_discovery { use super::root_mod; use super::runtime_types; @@ -9913,10 +9833,10 @@ pub mod api { valid_from, }, [ - 124u8, 75u8, 215u8, 13u8, 48u8, 105u8, 201u8, 35u8, 199u8, 228u8, 38u8, - 229u8, 147u8, 255u8, 237u8, 249u8, 114u8, 154u8, 129u8, 209u8, 177u8, - 17u8, 70u8, 107u8, 74u8, 175u8, 244u8, 132u8, 206u8, 24u8, 224u8, - 156u8, + 190u8, 97u8, 190u8, 133u8, 0u8, 178u8, 196u8, 199u8, 26u8, 226u8, + 124u8, 247u8, 195u8, 125u8, 54u8, 80u8, 249u8, 225u8, 44u8, 99u8, 86u8, + 119u8, 0u8, 64u8, 206u8, 125u8, 171u8, 117u8, 67u8, 160u8, 204u8, + 220u8, ], ) } @@ -10511,10 +10431,10 @@ pub mod api { "Spends", vec![], [ - 231u8, 192u8, 40u8, 149u8, 163u8, 98u8, 111u8, 136u8, 44u8, 162u8, - 87u8, 181u8, 233u8, 204u8, 87u8, 111u8, 210u8, 225u8, 235u8, 73u8, - 217u8, 8u8, 129u8, 51u8, 54u8, 85u8, 33u8, 103u8, 186u8, 128u8, 61u8, - 5u8, + 115u8, 59u8, 91u8, 50u8, 105u8, 230u8, 229u8, 228u8, 174u8, 182u8, + 176u8, 110u8, 231u8, 121u8, 185u8, 199u8, 3u8, 150u8, 42u8, 106u8, + 32u8, 161u8, 71u8, 248u8, 203u8, 84u8, 124u8, 47u8, 162u8, 223u8, + 207u8, 145u8, ], ) } @@ -10536,10 +10456,10 @@ pub mod api { _0.borrow(), )], [ - 231u8, 192u8, 40u8, 149u8, 163u8, 98u8, 111u8, 136u8, 44u8, 162u8, - 87u8, 181u8, 233u8, 204u8, 87u8, 111u8, 210u8, 225u8, 235u8, 73u8, - 217u8, 8u8, 129u8, 51u8, 54u8, 85u8, 33u8, 103u8, 186u8, 128u8, 61u8, - 5u8, + 115u8, 59u8, 91u8, 50u8, 105u8, 230u8, 229u8, 228u8, 174u8, 182u8, + 176u8, 110u8, 231u8, 121u8, 185u8, 199u8, 3u8, 150u8, 42u8, 106u8, + 32u8, 161u8, 71u8, 248u8, 203u8, 84u8, 124u8, 47u8, 162u8, 223u8, + 207u8, 145u8, ], ) } @@ -11430,10 +11350,9 @@ pub mod api { enactment_moment, }, [ - 116u8, 212u8, 158u8, 18u8, 89u8, 136u8, 153u8, 97u8, 43u8, 197u8, - 200u8, 161u8, 145u8, 102u8, 19u8, 25u8, 135u8, 13u8, 199u8, 101u8, - 107u8, 221u8, 244u8, 15u8, 192u8, 176u8, 3u8, 154u8, 248u8, 70u8, - 113u8, 69u8, + 171u8, 209u8, 202u8, 114u8, 160u8, 189u8, 214u8, 3u8, 30u8, 136u8, + 81u8, 98u8, 182u8, 133u8, 206u8, 79u8, 26u8, 53u8, 154u8, 240u8, 6u8, + 240u8, 68u8, 29u8, 219u8, 70u8, 210u8, 1u8, 134u8, 43u8, 173u8, 88u8, ], ) } @@ -12065,9 +11984,10 @@ pub mod api { "ReferendumInfoFor", vec![], [ - 82u8, 199u8, 121u8, 36u8, 81u8, 129u8, 79u8, 226u8, 19u8, 57u8, 26u8, - 76u8, 195u8, 60u8, 78u8, 91u8, 198u8, 250u8, 105u8, 111u8, 235u8, 11u8, - 195u8, 4u8, 39u8, 92u8, 156u8, 53u8, 248u8, 89u8, 26u8, 112u8, + 194u8, 175u8, 254u8, 203u8, 143u8, 103u8, 190u8, 113u8, 52u8, 177u8, + 204u8, 109u8, 158u8, 95u8, 150u8, 247u8, 196u8, 160u8, 105u8, 190u8, + 212u8, 35u8, 246u8, 90u8, 129u8, 126u8, 146u8, 26u8, 137u8, 33u8, 8u8, + 93u8, ], ) } @@ -12089,9 +12009,10 @@ pub mod api { _0.borrow(), )], [ - 82u8, 199u8, 121u8, 36u8, 81u8, 129u8, 79u8, 226u8, 19u8, 57u8, 26u8, - 76u8, 195u8, 60u8, 78u8, 91u8, 198u8, 250u8, 105u8, 111u8, 235u8, 11u8, - 195u8, 4u8, 39u8, 92u8, 156u8, 53u8, 248u8, 89u8, 26u8, 112u8, + 194u8, 175u8, 254u8, 203u8, 143u8, 103u8, 190u8, 113u8, 52u8, 177u8, + 204u8, 109u8, 158u8, 95u8, 150u8, 247u8, 196u8, 160u8, 105u8, 190u8, + 212u8, 35u8, 246u8, 90u8, 129u8, 126u8, 146u8, 26u8, 137u8, 33u8, 8u8, + 93u8, ], ) } @@ -13344,10 +13265,9 @@ pub mod api { enactment_moment, }, [ - 116u8, 212u8, 158u8, 18u8, 89u8, 136u8, 153u8, 97u8, 43u8, 197u8, - 200u8, 161u8, 145u8, 102u8, 19u8, 25u8, 135u8, 13u8, 199u8, 101u8, - 107u8, 221u8, 244u8, 15u8, 192u8, 176u8, 3u8, 154u8, 248u8, 70u8, - 113u8, 69u8, + 171u8, 209u8, 202u8, 114u8, 160u8, 189u8, 214u8, 3u8, 30u8, 136u8, + 81u8, 98u8, 182u8, 133u8, 206u8, 79u8, 26u8, 53u8, 154u8, 240u8, 6u8, + 240u8, 68u8, 29u8, 219u8, 70u8, 210u8, 1u8, 134u8, 43u8, 173u8, 88u8, ], ) } @@ -13971,9 +13891,9 @@ pub mod api { "ReferendumInfoFor", vec![], [ - 154u8, 115u8, 139u8, 27u8, 56u8, 76u8, 212u8, 73u8, 155u8, 177u8, 26u8, - 156u8, 1u8, 163u8, 243u8, 143u8, 10u8, 188u8, 63u8, 63u8, 190u8, 158u8, - 142u8, 61u8, 245u8, 254u8, 11u8, 109u8, 170u8, 98u8, 77u8, 95u8, + 233u8, 248u8, 251u8, 170u8, 112u8, 77u8, 94u8, 232u8, 67u8, 166u8, + 112u8, 21u8, 133u8, 75u8, 163u8, 20u8, 76u8, 197u8, 10u8, 86u8, 213u8, + 0u8, 5u8, 131u8, 53u8, 181u8, 162u8, 206u8, 133u8, 213u8, 27u8, 80u8, ], ) } @@ -13995,9 +13915,9 @@ pub mod api { _0.borrow(), )], [ - 154u8, 115u8, 139u8, 27u8, 56u8, 76u8, 212u8, 73u8, 155u8, 177u8, 26u8, - 156u8, 1u8, 163u8, 243u8, 143u8, 10u8, 188u8, 63u8, 63u8, 190u8, 158u8, - 142u8, 61u8, 245u8, 254u8, 11u8, 109u8, 170u8, 98u8, 77u8, 95u8, + 233u8, 248u8, 251u8, 170u8, 112u8, 77u8, 94u8, 232u8, 67u8, 166u8, + 112u8, 21u8, 133u8, 75u8, 163u8, 20u8, 76u8, 197u8, 10u8, 86u8, 213u8, + 0u8, 5u8, 131u8, 53u8, 181u8, 162u8, 206u8, 133u8, 213u8, 27u8, 80u8, ], ) } @@ -14424,10 +14344,9 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 149u8, 115u8, 81u8, 76u8, 235u8, 167u8, 31u8, 227u8, 153u8, 46u8, - 233u8, 199u8, 94u8, 30u8, 253u8, 19u8, 189u8, 77u8, 151u8, 249u8, 68u8, - 207u8, 139u8, 67u8, 6u8, 193u8, 131u8, 123u8, 101u8, 100u8, 13u8, - 222u8, + 212u8, 193u8, 14u8, 54u8, 51u8, 114u8, 50u8, 216u8, 212u8, 194u8, + 119u8, 107u8, 64u8, 40u8, 193u8, 90u8, 196u8, 64u8, 22u8, 17u8, 196u8, + 184u8, 5u8, 105u8, 30u8, 92u8, 210u8, 106u8, 68u8, 133u8, 95u8, 41u8, ], ) } @@ -15285,9 +15204,10 @@ pub mod api { "batch", types::Batch { calls }, [ - 78u8, 111u8, 192u8, 46u8, 34u8, 172u8, 232u8, 158u8, 67u8, 231u8, - 116u8, 182u8, 17u8, 178u8, 31u8, 98u8, 146u8, 71u8, 226u8, 56u8, 105u8, - 184u8, 75u8, 175u8, 78u8, 225u8, 25u8, 5u8, 226u8, 195u8, 199u8, 41u8, + 141u8, 1u8, 119u8, 192u8, 189u8, 35u8, 196u8, 238u8, 78u8, 195u8, + 239u8, 74u8, 210u8, 239u8, 12u8, 189u8, 63u8, 74u8, 102u8, 164u8, + 191u8, 18u8, 172u8, 242u8, 106u8, 242u8, 194u8, 132u8, 246u8, 210u8, + 146u8, 128u8, ], ) } @@ -15305,10 +15225,9 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 112u8, 49u8, 70u8, 206u8, 54u8, 117u8, 186u8, 83u8, 25u8, 68u8, 8u8, - 255u8, 91u8, 43u8, 254u8, 165u8, 230u8, 24u8, 104u8, 176u8, 236u8, - 166u8, 147u8, 244u8, 103u8, 208u8, 164u8, 26u8, 72u8, 44u8, 143u8, - 209u8, + 69u8, 204u8, 77u8, 100u8, 152u8, 126u8, 231u8, 108u8, 246u8, 127u8, + 54u8, 99u8, 60u8, 70u8, 48u8, 102u8, 117u8, 185u8, 163u8, 22u8, 11u8, + 137u8, 85u8, 214u8, 138u8, 129u8, 47u8, 90u8, 141u8, 43u8, 62u8, 238u8, ], ) } @@ -15322,10 +15241,9 @@ pub mod api { "batch_all", types::BatchAll { calls }, [ - 163u8, 4u8, 232u8, 21u8, 56u8, 119u8, 67u8, 62u8, 223u8, 193u8, 23u8, - 181u8, 202u8, 55u8, 186u8, 155u8, 169u8, 187u8, 213u8, 34u8, 153u8, - 255u8, 210u8, 170u8, 187u8, 212u8, 71u8, 92u8, 173u8, 145u8, 91u8, - 218u8, + 99u8, 223u8, 83u8, 133u8, 180u8, 206u8, 98u8, 134u8, 218u8, 192u8, + 94u8, 80u8, 35u8, 198u8, 25u8, 193u8, 203u8, 185u8, 16u8, 201u8, 151u8, + 113u8, 191u8, 188u8, 30u8, 36u8, 62u8, 170u8, 112u8, 44u8, 19u8, 0u8, ], ) } @@ -15343,10 +15261,9 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 91u8, 220u8, 144u8, 201u8, 69u8, 201u8, 58u8, 205u8, 190u8, 98u8, - 138u8, 115u8, 107u8, 54u8, 190u8, 44u8, 9u8, 46u8, 109u8, 80u8, 102u8, - 167u8, 139u8, 162u8, 61u8, 191u8, 159u8, 217u8, 207u8, 236u8, 20u8, - 213u8, + 225u8, 201u8, 69u8, 67u8, 231u8, 172u8, 12u8, 242u8, 109u8, 75u8, 89u8, + 220u8, 76u8, 132u8, 121u8, 199u8, 67u8, 132u8, 174u8, 143u8, 3u8, + 191u8, 200u8, 87u8, 219u8, 96u8, 67u8, 148u8, 61u8, 22u8, 83u8, 214u8, ], ) } @@ -15360,10 +15277,9 @@ pub mod api { "force_batch", types::ForceBatch { calls }, [ - 255u8, 125u8, 65u8, 157u8, 224u8, 195u8, 44u8, 249u8, 206u8, 224u8, - 11u8, 66u8, 67u8, 139u8, 24u8, 136u8, 57u8, 79u8, 85u8, 26u8, 51u8, - 170u8, 205u8, 52u8, 181u8, 94u8, 125u8, 250u8, 163u8, 126u8, 140u8, - 43u8, + 117u8, 108u8, 209u8, 75u8, 135u8, 228u8, 168u8, 227u8, 134u8, 141u8, + 49u8, 23u8, 59u8, 156u8, 20u8, 202u8, 19u8, 62u8, 204u8, 127u8, 153u8, + 52u8, 159u8, 197u8, 129u8, 4u8, 195u8, 161u8, 231u8, 23u8, 22u8, 14u8, ], ) } @@ -15381,10 +15297,9 @@ pub mod api { weight, }, [ - 187u8, 254u8, 162u8, 240u8, 54u8, 31u8, 44u8, 138u8, 164u8, 40u8, - 207u8, 170u8, 80u8, 220u8, 64u8, 162u8, 39u8, 87u8, 132u8, 169u8, 14u8, - 193u8, 69u8, 251u8, 171u8, 148u8, 107u8, 163u8, 73u8, 193u8, 46u8, - 26u8, + 5u8, 208u8, 14u8, 248u8, 162u8, 54u8, 154u8, 120u8, 79u8, 129u8, 156u8, + 76u8, 97u8, 214u8, 200u8, 1u8, 176u8, 94u8, 189u8, 148u8, 240u8, 107u8, + 142u8, 195u8, 82u8, 127u8, 45u8, 142u8, 93u8, 82u8, 112u8, 174u8, ], ) } @@ -19035,10 +18950,10 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 226u8, 94u8, 208u8, 74u8, 163u8, 132u8, 180u8, 25u8, 34u8, 222u8, - 242u8, 194u8, 224u8, 188u8, 18u8, 229u8, 55u8, 248u8, 19u8, 244u8, - 182u8, 148u8, 138u8, 228u8, 2u8, 55u8, 50u8, 36u8, 32u8, 115u8, 147u8, - 149u8, + 75u8, 108u8, 108u8, 139u8, 143u8, 235u8, 161u8, 87u8, 41u8, 248u8, + 216u8, 128u8, 138u8, 80u8, 36u8, 144u8, 73u8, 31u8, 148u8, 233u8, + 244u8, 221u8, 6u8, 145u8, 147u8, 50u8, 45u8, 181u8, 189u8, 17u8, 235u8, + 131u8, ], ) } @@ -20260,9 +20175,10 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 122u8, 88u8, 251u8, 25u8, 239u8, 91u8, 220u8, 116u8, 155u8, 219u8, - 129u8, 170u8, 81u8, 4u8, 224u8, 195u8, 83u8, 196u8, 48u8, 159u8, 222u8, - 72u8, 2u8, 131u8, 14u8, 204u8, 21u8, 234u8, 2u8, 237u8, 69u8, 28u8, + 180u8, 16u8, 255u8, 35u8, 36u8, 60u8, 175u8, 232u8, 143u8, 121u8, + 248u8, 186u8, 7u8, 164u8, 143u8, 188u8, 61u8, 254u8, 6u8, 163u8, 247u8, + 212u8, 231u8, 34u8, 50u8, 21u8, 145u8, 219u8, 209u8, 153u8, 86u8, + 163u8, ], ) } @@ -20304,9 +20220,10 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 4u8, 172u8, 69u8, 211u8, 77u8, 162u8, 70u8, 8u8, 60u8, 79u8, 223u8, - 222u8, 210u8, 64u8, 116u8, 53u8, 161u8, 251u8, 28u8, 236u8, 12u8, - 212u8, 174u8, 0u8, 10u8, 78u8, 132u8, 232u8, 163u8, 44u8, 9u8, 200u8, + 58u8, 133u8, 35u8, 192u8, 156u8, 22u8, 193u8, 122u8, 202u8, 119u8, + 97u8, 24u8, 177u8, 93u8, 112u8, 10u8, 183u8, 95u8, 46u8, 151u8, 192u8, + 128u8, 220u8, 230u8, 118u8, 99u8, 240u8, 133u8, 83u8, 226u8, 8u8, + 165u8, ], ) } @@ -20344,9 +20261,10 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 218u8, 190u8, 254u8, 33u8, 44u8, 21u8, 3u8, 225u8, 106u8, 85u8, 42u8, - 102u8, 206u8, 52u8, 225u8, 78u8, 220u8, 205u8, 130u8, 191u8, 223u8, - 152u8, 7u8, 46u8, 168u8, 251u8, 167u8, 72u8, 186u8, 102u8, 239u8, 95u8, + 11u8, 188u8, 117u8, 224u8, 181u8, 45u8, 153u8, 145u8, 101u8, 184u8, + 109u8, 247u8, 23u8, 204u8, 181u8, 150u8, 139u8, 138u8, 118u8, 210u8, + 93u8, 9u8, 42u8, 96u8, 195u8, 141u8, 96u8, 107u8, 167u8, 20u8, 58u8, + 183u8, ], ) } @@ -20370,9 +20288,9 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 87u8, 222u8, 30u8, 136u8, 12u8, 96u8, 70u8, 211u8, 190u8, 75u8, 247u8, - 231u8, 71u8, 59u8, 62u8, 126u8, 22u8, 4u8, 237u8, 153u8, 26u8, 180u8, - 88u8, 128u8, 69u8, 55u8, 31u8, 201u8, 227u8, 95u8, 38u8, 67u8, + 3u8, 170u8, 118u8, 254u8, 181u8, 37u8, 250u8, 41u8, 151u8, 124u8, 81u8, + 6u8, 93u8, 220u8, 186u8, 79u8, 39u8, 92u8, 6u8, 234u8, 114u8, 186u8, + 16u8, 211u8, 59u8, 41u8, 221u8, 68u8, 255u8, 86u8, 182u8, 95u8, ], ) } @@ -20599,9 +20517,9 @@ pub mod api { "Agenda", vec![], [ - 247u8, 226u8, 115u8, 70u8, 172u8, 69u8, 26u8, 24u8, 46u8, 202u8, 118u8, - 250u8, 111u8, 236u8, 77u8, 255u8, 26u8, 125u8, 18u8, 8u8, 24u8, 230u8, - 222u8, 140u8, 179u8, 235u8, 19u8, 161u8, 40u8, 78u8, 26u8, 173u8, + 62u8, 186u8, 197u8, 43u8, 38u8, 150u8, 246u8, 25u8, 205u8, 11u8, 111u8, + 230u8, 45u8, 231u8, 186u8, 80u8, 203u8, 153u8, 148u8, 169u8, 55u8, + 22u8, 169u8, 233u8, 22u8, 93u8, 129u8, 43u8, 34u8, 24u8, 0u8, 198u8, ], ) } @@ -20623,9 +20541,9 @@ pub mod api { _0.borrow(), )], [ - 247u8, 226u8, 115u8, 70u8, 172u8, 69u8, 26u8, 24u8, 46u8, 202u8, 118u8, - 250u8, 111u8, 236u8, 77u8, 255u8, 26u8, 125u8, 18u8, 8u8, 24u8, 230u8, - 222u8, 140u8, 179u8, 235u8, 19u8, 161u8, 40u8, 78u8, 26u8, 173u8, + 62u8, 186u8, 197u8, 43u8, 38u8, 150u8, 246u8, 25u8, 205u8, 11u8, 111u8, + 230u8, 45u8, 231u8, 186u8, 80u8, 203u8, 153u8, 148u8, 169u8, 55u8, + 22u8, 169u8, 233u8, 22u8, 93u8, 129u8, 43u8, 34u8, 24u8, 0u8, 198u8, ], ) } @@ -21005,10 +20923,10 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 244u8, 249u8, 206u8, 185u8, 48u8, 156u8, 194u8, 100u8, 198u8, 133u8, - 26u8, 248u8, 122u8, 194u8, 19u8, 42u8, 6u8, 201u8, 112u8, 79u8, 19u8, - 134u8, 145u8, 157u8, 129u8, 237u8, 139u8, 133u8, 227u8, 43u8, 56u8, - 153u8, + 236u8, 220u8, 19u8, 139u8, 42u8, 187u8, 224u8, 41u8, 173u8, 128u8, + 201u8, 54u8, 148u8, 222u8, 90u8, 185u8, 183u8, 198u8, 220u8, 33u8, + 14u8, 93u8, 157u8, 187u8, 36u8, 186u8, 190u8, 41u8, 129u8, 186u8, + 238u8, 244u8, ], ) } @@ -21192,9 +21110,10 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 217u8, 199u8, 199u8, 95u8, 222u8, 27u8, 176u8, 48u8, 0u8, 226u8, 245u8, - 221u8, 226u8, 48u8, 29u8, 233u8, 28u8, 187u8, 52u8, 17u8, 172u8, 42u8, - 88u8, 107u8, 61u8, 104u8, 65u8, 42u8, 35u8, 53u8, 80u8, 48u8, + 16u8, 202u8, 189u8, 106u8, 126u8, 243u8, 220u8, 235u8, 217u8, 178u8, + 231u8, 116u8, 39u8, 159u8, 101u8, 241u8, 77u8, 187u8, 146u8, 32u8, + 247u8, 49u8, 172u8, 87u8, 218u8, 102u8, 60u8, 39u8, 252u8, 186u8, + 144u8, 215u8, ], ) } @@ -21715,10 +21634,9 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 228u8, 69u8, 114u8, 33u8, 253u8, 99u8, 173u8, 184u8, 219u8, 170u8, - 155u8, 9u8, 231u8, 77u8, 180u8, 97u8, 26u8, 0u8, 97u8, 107u8, 112u8, - 223u8, 207u8, 156u8, 86u8, 17u8, 115u8, 211u8, 188u8, 122u8, 51u8, - 55u8, + 207u8, 245u8, 33u8, 132u8, 16u8, 230u8, 82u8, 159u8, 115u8, 197u8, + 30u8, 73u8, 47u8, 104u8, 76u8, 120u8, 20u8, 66u8, 165u8, 228u8, 54u8, + 218u8, 47u8, 52u8, 124u8, 175u8, 221u8, 120u8, 25u8, 51u8, 102u8, 18u8, ], ) } @@ -21742,10 +21660,10 @@ pub mod api { max_weight, }, [ - 110u8, 238u8, 2u8, 11u8, 232u8, 202u8, 100u8, 39u8, 103u8, 211u8, - 204u8, 203u8, 228u8, 31u8, 206u8, 103u8, 97u8, 57u8, 217u8, 24u8, - 229u8, 237u8, 56u8, 84u8, 220u8, 240u8, 169u8, 211u8, 26u8, 98u8, 37u8, - 0u8, + 175u8, 100u8, 107u8, 233u8, 67u8, 246u8, 40u8, 1u8, 217u8, 152u8, + 122u8, 124u8, 255u8, 124u8, 35u8, 141u8, 215u8, 178u8, 70u8, 231u8, + 241u8, 250u8, 146u8, 17u8, 126u8, 247u8, 89u8, 203u8, 207u8, 80u8, + 123u8, 64u8, ], ) } @@ -22642,10 +22560,10 @@ pub mod api { rate, }, [ - 154u8, 152u8, 38u8, 160u8, 110u8, 48u8, 11u8, 80u8, 92u8, 50u8, 177u8, - 170u8, 43u8, 6u8, 192u8, 234u8, 105u8, 114u8, 165u8, 178u8, 173u8, - 134u8, 92u8, 233u8, 123u8, 191u8, 176u8, 154u8, 222u8, 224u8, 32u8, - 183u8, + 144u8, 94u8, 181u8, 24u8, 145u8, 102u8, 209u8, 195u8, 219u8, 86u8, + 91u8, 235u8, 101u8, 93u8, 102u8, 224u8, 38u8, 7u8, 162u8, 42u8, 44u8, + 61u8, 60u8, 247u8, 158u8, 168u8, 123u8, 121u8, 255u8, 138u8, 33u8, + 242u8, ], ) } @@ -22663,10 +22581,9 @@ pub mod api { rate, }, [ - 188u8, 71u8, 197u8, 156u8, 105u8, 63u8, 11u8, 90u8, 124u8, 227u8, - 146u8, 78u8, 93u8, 216u8, 100u8, 41u8, 128u8, 115u8, 66u8, 243u8, - 198u8, 61u8, 115u8, 30u8, 170u8, 218u8, 254u8, 203u8, 37u8, 141u8, - 67u8, 179u8, + 72u8, 159u8, 145u8, 29u8, 92u8, 184u8, 218u8, 23u8, 28u8, 166u8, 129u8, + 23u8, 99u8, 39u8, 49u8, 2u8, 57u8, 156u8, 3u8, 230u8, 123u8, 86u8, + 13u8, 159u8, 39u8, 206u8, 239u8, 90u8, 94u8, 219u8, 248u8, 98u8, ], ) } @@ -22682,10 +22599,10 @@ pub mod api { asset_kind: ::std::boxed::Box::new(asset_kind), }, [ - 229u8, 203u8, 96u8, 158u8, 162u8, 236u8, 80u8, 239u8, 106u8, 193u8, - 85u8, 234u8, 99u8, 87u8, 214u8, 214u8, 157u8, 55u8, 70u8, 91u8, 9u8, - 187u8, 105u8, 99u8, 134u8, 181u8, 56u8, 212u8, 152u8, 136u8, 100u8, - 32u8, + 112u8, 56u8, 198u8, 140u8, 116u8, 100u8, 203u8, 229u8, 203u8, 28u8, + 217u8, 231u8, 55u8, 95u8, 254u8, 18u8, 16u8, 47u8, 2u8, 218u8, 169u8, + 84u8, 17u8, 35u8, 251u8, 229u8, 197u8, 245u8, 72u8, 131u8, 167u8, + 212u8, ], ) } @@ -22799,9 +22716,10 @@ pub mod api { "ConversionRateToNative", vec![], [ - 211u8, 210u8, 178u8, 27u8, 157u8, 1u8, 68u8, 252u8, 84u8, 174u8, 141u8, - 185u8, 177u8, 39u8, 49u8, 35u8, 65u8, 254u8, 204u8, 246u8, 132u8, 59u8, - 190u8, 228u8, 135u8, 237u8, 161u8, 35u8, 21u8, 114u8, 88u8, 174u8, + 228u8, 209u8, 34u8, 96u8, 59u8, 195u8, 128u8, 180u8, 187u8, 213u8, + 108u8, 68u8, 133u8, 63u8, 133u8, 38u8, 18u8, 91u8, 150u8, 139u8, 74u8, + 115u8, 154u8, 13u8, 240u8, 186u8, 84u8, 98u8, 161u8, 255u8, 205u8, + 151u8, ], ) } @@ -22825,9 +22743,10 @@ pub mod api { _0.borrow(), )], [ - 211u8, 210u8, 178u8, 27u8, 157u8, 1u8, 68u8, 252u8, 84u8, 174u8, 141u8, - 185u8, 177u8, 39u8, 49u8, 35u8, 65u8, 254u8, 204u8, 246u8, 132u8, 59u8, - 190u8, 228u8, 135u8, 237u8, 161u8, 35u8, 21u8, 114u8, 88u8, 174u8, + 228u8, 209u8, 34u8, 96u8, 59u8, 195u8, 128u8, 180u8, 187u8, 213u8, + 108u8, 68u8, 133u8, 63u8, 133u8, 38u8, 18u8, 91u8, 150u8, 139u8, 74u8, + 115u8, 154u8, 13u8, 240u8, 186u8, 84u8, 98u8, 161u8, 255u8, 205u8, + 151u8, ], ) } @@ -27700,6 +27619,29 @@ pub mod api { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_minimum_backing_votes"; } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SetNodeFeature { + pub index: set_node_feature::Index, + pub value: set_node_feature::Value, + } + pub mod set_node_feature { + use super::runtime_types; + pub type Index = ::core::primitive::u8; + pub type Value = ::core::primitive::bool; + } + impl ::subxt::blocks::StaticExtrinsic for SetNodeFeature { + const PALLET: &'static str = "Configuration"; + const CALL: &'static str = "set_node_feature"; + } } pub struct TransactionApi; impl TransactionApi { @@ -28348,9 +28290,9 @@ pub mod api { "set_executor_params", types::SetExecutorParams { new }, [ - 219u8, 27u8, 25u8, 162u8, 61u8, 189u8, 61u8, 32u8, 101u8, 139u8, 89u8, - 51u8, 191u8, 223u8, 94u8, 145u8, 109u8, 247u8, 22u8, 64u8, 178u8, 97u8, - 239u8, 0u8, 125u8, 20u8, 62u8, 210u8, 110u8, 79u8, 225u8, 43u8, + 79u8, 167u8, 242u8, 14u8, 22u8, 177u8, 240u8, 134u8, 154u8, 77u8, + 233u8, 188u8, 110u8, 223u8, 25u8, 52u8, 58u8, 241u8, 226u8, 255u8, 2u8, + 26u8, 8u8, 241u8, 125u8, 33u8, 63u8, 204u8, 93u8, 31u8, 229u8, 0u8, ], ) } @@ -28454,6 +28396,23 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::set_node_feature`]."] + pub fn set_node_feature( + &self, + index: types::set_node_feature::Index, + value: types::set_node_feature::Value, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Configuration", + "set_node_feature", + types::SetNodeFeature { index, value }, + [ + 255u8, 19u8, 208u8, 76u8, 122u8, 6u8, 42u8, 182u8, 118u8, 151u8, 245u8, + 80u8, 162u8, 243u8, 45u8, 57u8, 122u8, 148u8, 98u8, 170u8, 157u8, 40u8, + 92u8, 234u8, 12u8, 141u8, 54u8, 80u8, 97u8, 249u8, 115u8, 27u8, + ], + ) + } } } pub mod storage { @@ -28490,10 +28449,10 @@ pub mod api { "ActiveConfig", vec![], [ - 126u8, 223u8, 107u8, 199u8, 21u8, 114u8, 19u8, 172u8, 27u8, 108u8, - 189u8, 165u8, 33u8, 220u8, 57u8, 81u8, 137u8, 242u8, 204u8, 148u8, - 61u8, 161u8, 156u8, 36u8, 20u8, 172u8, 117u8, 30u8, 152u8, 210u8, - 207u8, 161u8, + 145u8, 251u8, 153u8, 14u8, 18u8, 9u8, 82u8, 90u8, 133u8, 202u8, 132u8, + 123u8, 13u8, 121u8, 114u8, 101u8, 52u8, 95u8, 219u8, 230u8, 116u8, + 223u8, 139u8, 142u8, 84u8, 219u8, 240u8, 97u8, 18u8, 184u8, 200u8, + 222u8, ], ) } @@ -28518,10 +28477,9 @@ pub mod api { "PendingConfigs", vec![], [ - 105u8, 89u8, 53u8, 156u8, 60u8, 53u8, 196u8, 187u8, 5u8, 122u8, 186u8, - 196u8, 162u8, 133u8, 254u8, 178u8, 130u8, 143u8, 90u8, 23u8, 234u8, - 105u8, 9u8, 121u8, 142u8, 123u8, 136u8, 166u8, 95u8, 215u8, 176u8, - 46u8, + 130u8, 18u8, 145u8, 42u8, 85u8, 142u8, 125u8, 44u8, 13u8, 63u8, 64u8, + 135u8, 239u8, 11u8, 29u8, 127u8, 46u8, 83u8, 150u8, 215u8, 110u8, + 128u8, 74u8, 54u8, 40u8, 158u8, 132u8, 239u8, 8u8, 172u8, 168u8, 25u8, ], ) } @@ -32690,10 +32648,9 @@ pub mod api { "SessionExecutorParams", vec![], [ - 102u8, 51u8, 28u8, 199u8, 238u8, 229u8, 99u8, 38u8, 116u8, 154u8, - 250u8, 136u8, 240u8, 122u8, 82u8, 13u8, 139u8, 160u8, 149u8, 218u8, - 162u8, 130u8, 109u8, 251u8, 10u8, 109u8, 200u8, 158u8, 32u8, 157u8, - 84u8, 234u8, + 38u8, 80u8, 118u8, 112u8, 189u8, 55u8, 95u8, 184u8, 19u8, 8u8, 114u8, + 6u8, 173u8, 80u8, 254u8, 98u8, 107u8, 202u8, 215u8, 107u8, 149u8, + 157u8, 145u8, 8u8, 249u8, 255u8, 83u8, 199u8, 47u8, 179u8, 208u8, 83u8, ], ) } @@ -32715,10 +32672,9 @@ pub mod api { _0.borrow(), )], [ - 102u8, 51u8, 28u8, 199u8, 238u8, 229u8, 99u8, 38u8, 116u8, 154u8, - 250u8, 136u8, 240u8, 122u8, 82u8, 13u8, 139u8, 160u8, 149u8, 218u8, - 162u8, 130u8, 109u8, 251u8, 10u8, 109u8, 200u8, 158u8, 32u8, 157u8, - 84u8, 234u8, + 38u8, 80u8, 118u8, 112u8, 189u8, 55u8, 95u8, 184u8, 19u8, 8u8, 114u8, + 6u8, 173u8, 80u8, 254u8, 98u8, 107u8, 202u8, 215u8, 107u8, 149u8, + 157u8, 145u8, 8u8, 249u8, 255u8, 83u8, 199u8, 47u8, 179u8, 208u8, 83u8, ], ) } @@ -36914,6 +36870,35 @@ pub mod api { const PALLET: &'static str = "XcmPallet"; const CALL: &'static str = "force_suspension"; } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct TransferAssets { + pub dest: ::std::boxed::Box, + pub beneficiary: ::std::boxed::Box, + pub assets: ::std::boxed::Box, + pub fee_asset_item: transfer_assets::FeeAssetItem, + pub weight_limit: transfer_assets::WeightLimit, + } + pub mod transfer_assets { + use super::runtime_types; + pub type Dest = runtime_types::xcm::VersionedMultiLocation; + pub type Beneficiary = runtime_types::xcm::VersionedMultiLocation; + pub type Assets = runtime_types::xcm::VersionedMultiAssets; + pub type FeeAssetItem = ::core::primitive::u32; + pub type WeightLimit = runtime_types::xcm::v3::WeightLimit; + } + impl ::subxt::blocks::StaticExtrinsic for TransferAssets { + const PALLET: &'static str = "XcmPallet"; + const CALL: &'static str = "transfer_assets"; + } } pub struct TransactionApi; impl TransactionApi { @@ -36931,9 +36916,10 @@ pub mod api { message: ::std::boxed::Box::new(message), }, [ - 147u8, 255u8, 86u8, 82u8, 17u8, 159u8, 225u8, 145u8, 220u8, 89u8, 71u8, - 23u8, 193u8, 249u8, 12u8, 70u8, 19u8, 140u8, 232u8, 97u8, 12u8, 220u8, - 113u8, 65u8, 4u8, 255u8, 138u8, 10u8, 231u8, 122u8, 67u8, 105u8, + 145u8, 12u8, 109u8, 216u8, 135u8, 198u8, 98u8, 133u8, 12u8, 38u8, 17u8, + 105u8, 67u8, 120u8, 170u8, 96u8, 202u8, 234u8, 96u8, 157u8, 40u8, + 213u8, 72u8, 21u8, 189u8, 220u8, 71u8, 194u8, 227u8, 243u8, 171u8, + 229u8, ], ) } @@ -36955,9 +36941,10 @@ pub mod api { fee_asset_item, }, [ - 56u8, 144u8, 237u8, 60u8, 157u8, 5u8, 7u8, 129u8, 41u8, 149u8, 160u8, - 100u8, 233u8, 102u8, 181u8, 140u8, 115u8, 213u8, 29u8, 132u8, 16u8, - 30u8, 23u8, 82u8, 140u8, 134u8, 37u8, 87u8, 3u8, 99u8, 172u8, 42u8, + 253u8, 2u8, 191u8, 130u8, 244u8, 135u8, 195u8, 160u8, 160u8, 196u8, + 62u8, 195u8, 157u8, 228u8, 57u8, 59u8, 131u8, 69u8, 125u8, 44u8, 48u8, + 120u8, 176u8, 53u8, 191u8, 69u8, 151u8, 77u8, 245u8, 97u8, 169u8, + 117u8, ], ) } @@ -36979,9 +36966,9 @@ pub mod api { fee_asset_item, }, [ - 21u8, 167u8, 44u8, 22u8, 210u8, 73u8, 148u8, 7u8, 91u8, 108u8, 148u8, - 205u8, 170u8, 243u8, 142u8, 224u8, 205u8, 119u8, 252u8, 22u8, 203u8, - 32u8, 73u8, 200u8, 178u8, 14u8, 167u8, 147u8, 166u8, 55u8, 14u8, 231u8, + 204u8, 40u8, 10u8, 224u8, 175u8, 80u8, 228u8, 202u8, 250u8, 27u8, 70u8, + 126u8, 166u8, 36u8, 53u8, 125u8, 96u8, 107u8, 121u8, 130u8, 44u8, + 214u8, 174u8, 80u8, 113u8, 45u8, 10u8, 194u8, 179u8, 4u8, 181u8, 70u8, ], ) } @@ -36999,9 +36986,9 @@ pub mod api { max_weight, }, [ - 15u8, 97u8, 86u8, 111u8, 105u8, 116u8, 109u8, 206u8, 70u8, 8u8, 57u8, - 232u8, 133u8, 132u8, 30u8, 219u8, 34u8, 69u8, 0u8, 213u8, 98u8, 241u8, - 186u8, 93u8, 216u8, 39u8, 73u8, 24u8, 193u8, 87u8, 92u8, 31u8, + 207u8, 172u8, 34u8, 97u8, 82u8, 80u8, 131u8, 47u8, 27u8, 79u8, 124u8, + 134u8, 97u8, 106u8, 139u8, 230u8, 77u8, 85u8, 109u8, 40u8, 139u8, 56u8, + 234u8, 181u8, 180u8, 31u8, 157u8, 135u8, 75u8, 218u8, 43u8, 157u8, ], ) } @@ -37019,9 +37006,10 @@ pub mod api { version, }, [ - 110u8, 11u8, 78u8, 255u8, 66u8, 2u8, 55u8, 108u8, 92u8, 151u8, 231u8, - 175u8, 75u8, 156u8, 34u8, 191u8, 0u8, 56u8, 104u8, 197u8, 70u8, 204u8, - 73u8, 234u8, 173u8, 251u8, 88u8, 226u8, 3u8, 136u8, 228u8, 136u8, + 169u8, 8u8, 18u8, 107u8, 12u8, 180u8, 217u8, 141u8, 188u8, 250u8, + 112u8, 51u8, 122u8, 138u8, 204u8, 44u8, 169u8, 166u8, 36u8, 84u8, 0u8, + 95u8, 138u8, 137u8, 119u8, 226u8, 146u8, 85u8, 53u8, 65u8, 188u8, + 169u8, ], ) } @@ -37054,9 +37042,9 @@ pub mod api { location: ::std::boxed::Box::new(location), }, [ - 112u8, 254u8, 138u8, 12u8, 203u8, 176u8, 251u8, 167u8, 223u8, 0u8, - 71u8, 148u8, 19u8, 179u8, 47u8, 96u8, 188u8, 189u8, 14u8, 172u8, 1u8, - 1u8, 192u8, 107u8, 137u8, 158u8, 22u8, 9u8, 138u8, 241u8, 32u8, 47u8, + 79u8, 2u8, 202u8, 173u8, 179u8, 250u8, 48u8, 28u8, 168u8, 183u8, 59u8, + 45u8, 193u8, 132u8, 141u8, 240u8, 65u8, 182u8, 31u8, 85u8, 98u8, 124u8, + 21u8, 169u8, 133u8, 107u8, 221u8, 235u8, 230u8, 56u8, 81u8, 201u8, ], ) } @@ -37072,10 +37060,10 @@ pub mod api { location: ::std::boxed::Box::new(location), }, [ - 205u8, 143u8, 230u8, 143u8, 166u8, 184u8, 53u8, 252u8, 118u8, 184u8, - 209u8, 227u8, 225u8, 184u8, 254u8, 244u8, 101u8, 56u8, 27u8, 128u8, - 40u8, 159u8, 178u8, 62u8, 63u8, 164u8, 59u8, 236u8, 1u8, 168u8, 202u8, - 42u8, + 144u8, 180u8, 158u8, 178u8, 165u8, 54u8, 105u8, 207u8, 194u8, 105u8, + 190u8, 142u8, 253u8, 133u8, 61u8, 83u8, 199u8, 147u8, 199u8, 69u8, + 144u8, 22u8, 174u8, 138u8, 168u8, 131u8, 241u8, 221u8, 151u8, 148u8, + 129u8, 22u8, ], ) } @@ -37099,10 +37087,10 @@ pub mod api { weight_limit, }, [ - 10u8, 139u8, 165u8, 239u8, 92u8, 178u8, 169u8, 62u8, 166u8, 236u8, - 50u8, 12u8, 196u8, 3u8, 233u8, 209u8, 3u8, 159u8, 184u8, 234u8, 171u8, - 46u8, 145u8, 134u8, 241u8, 155u8, 221u8, 173u8, 166u8, 94u8, 147u8, - 88u8, + 126u8, 160u8, 23u8, 48u8, 47u8, 7u8, 124u8, 99u8, 32u8, 91u8, 133u8, + 116u8, 204u8, 133u8, 22u8, 216u8, 188u8, 247u8, 10u8, 41u8, 204u8, + 182u8, 38u8, 200u8, 55u8, 117u8, 86u8, 119u8, 225u8, 133u8, 16u8, + 129u8, ], ) } @@ -37126,10 +37114,9 @@ pub mod api { weight_limit, }, [ - 156u8, 205u8, 105u8, 18u8, 120u8, 130u8, 144u8, 67u8, 152u8, 188u8, - 109u8, 121u8, 4u8, 240u8, 123u8, 112u8, 72u8, 153u8, 2u8, 111u8, 183u8, - 170u8, 199u8, 82u8, 33u8, 117u8, 43u8, 133u8, 208u8, 44u8, 118u8, - 107u8, + 58u8, 84u8, 105u8, 56u8, 164u8, 58u8, 78u8, 24u8, 68u8, 83u8, 172u8, + 145u8, 14u8, 85u8, 1u8, 52u8, 188u8, 81u8, 36u8, 60u8, 31u8, 203u8, + 72u8, 195u8, 198u8, 128u8, 116u8, 197u8, 69u8, 15u8, 235u8, 252u8, ], ) } @@ -37149,6 +37136,32 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::transfer_assets`]."] + pub fn transfer_assets( + &self, + dest: types::transfer_assets::Dest, + beneficiary: types::transfer_assets::Beneficiary, + assets: types::transfer_assets::Assets, + fee_asset_item: types::transfer_assets::FeeAssetItem, + weight_limit: types::transfer_assets::WeightLimit, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "XcmPallet", + "transfer_assets", + types::TransferAssets { + dest: ::std::boxed::Box::new(dest), + beneficiary: ::std::boxed::Box::new(beneficiary), + assets: ::std::boxed::Box::new(assets), + fee_asset_item, + weight_limit, + }, + [ + 73u8, 16u8, 172u8, 19u8, 161u8, 78u8, 81u8, 191u8, 123u8, 205u8, 224u8, + 69u8, 27u8, 180u8, 15u8, 230u8, 10u8, 218u8, 61u8, 81u8, 21u8, 192u8, + 16u8, 158u8, 210u8, 186u8, 5u8, 68u8, 24u8, 204u8, 158u8, 171u8, + ], + ) + } } } #[doc = "The `Event` enum of this pallet"] @@ -37899,9 +37912,9 @@ pub mod api { "Queries", vec![], [ - 119u8, 5u8, 12u8, 91u8, 117u8, 240u8, 52u8, 192u8, 135u8, 139u8, 220u8, - 78u8, 207u8, 199u8, 71u8, 163u8, 100u8, 17u8, 6u8, 65u8, 200u8, 245u8, - 191u8, 82u8, 232u8, 128u8, 126u8, 70u8, 39u8, 63u8, 148u8, 219u8, + 68u8, 247u8, 165u8, 128u8, 238u8, 192u8, 246u8, 53u8, 248u8, 238u8, + 7u8, 235u8, 89u8, 176u8, 223u8, 130u8, 45u8, 135u8, 235u8, 66u8, 24u8, + 64u8, 116u8, 97u8, 2u8, 139u8, 89u8, 79u8, 87u8, 250u8, 229u8, 46u8, ], ) } @@ -37923,9 +37936,9 @@ pub mod api { _0.borrow(), )], [ - 119u8, 5u8, 12u8, 91u8, 117u8, 240u8, 52u8, 192u8, 135u8, 139u8, 220u8, - 78u8, 207u8, 199u8, 71u8, 163u8, 100u8, 17u8, 6u8, 65u8, 200u8, 245u8, - 191u8, 82u8, 232u8, 128u8, 126u8, 70u8, 39u8, 63u8, 148u8, 219u8, + 68u8, 247u8, 165u8, 128u8, 238u8, 192u8, 246u8, 53u8, 248u8, 238u8, + 7u8, 235u8, 89u8, 176u8, 223u8, 130u8, 45u8, 135u8, 235u8, 66u8, 24u8, + 64u8, 116u8, 97u8, 2u8, 139u8, 89u8, 79u8, 87u8, 250u8, 229u8, 46u8, ], ) } @@ -38018,9 +38031,10 @@ pub mod api { "SupportedVersion", vec![], [ - 144u8, 22u8, 91u8, 30u8, 139u8, 164u8, 95u8, 149u8, 97u8, 247u8, 12u8, - 212u8, 96u8, 16u8, 134u8, 236u8, 74u8, 57u8, 244u8, 169u8, 68u8, 63u8, - 111u8, 86u8, 65u8, 229u8, 104u8, 51u8, 44u8, 100u8, 47u8, 191u8, + 76u8, 134u8, 202u8, 57u8, 10u8, 29u8, 58u8, 88u8, 141u8, 0u8, 189u8, + 133u8, 140u8, 204u8, 126u8, 143u8, 71u8, 186u8, 9u8, 233u8, 188u8, + 74u8, 184u8, 158u8, 40u8, 17u8, 223u8, 129u8, 144u8, 189u8, 211u8, + 194u8, ], ) } @@ -38042,9 +38056,10 @@ pub mod api { _0.borrow(), )], [ - 144u8, 22u8, 91u8, 30u8, 139u8, 164u8, 95u8, 149u8, 97u8, 247u8, 12u8, - 212u8, 96u8, 16u8, 134u8, 236u8, 74u8, 57u8, 244u8, 169u8, 68u8, 63u8, - 111u8, 86u8, 65u8, 229u8, 104u8, 51u8, 44u8, 100u8, 47u8, 191u8, + 76u8, 134u8, 202u8, 57u8, 10u8, 29u8, 58u8, 88u8, 141u8, 0u8, 189u8, + 133u8, 140u8, 204u8, 126u8, 143u8, 71u8, 186u8, 9u8, 233u8, 188u8, + 74u8, 184u8, 158u8, 40u8, 17u8, 223u8, 129u8, 144u8, 189u8, 211u8, + 194u8, ], ) } @@ -38068,9 +38083,10 @@ pub mod api { ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), ], [ - 144u8, 22u8, 91u8, 30u8, 139u8, 164u8, 95u8, 149u8, 97u8, 247u8, 12u8, - 212u8, 96u8, 16u8, 134u8, 236u8, 74u8, 57u8, 244u8, 169u8, 68u8, 63u8, - 111u8, 86u8, 65u8, 229u8, 104u8, 51u8, 44u8, 100u8, 47u8, 191u8, + 76u8, 134u8, 202u8, 57u8, 10u8, 29u8, 58u8, 88u8, 141u8, 0u8, 189u8, + 133u8, 140u8, 204u8, 126u8, 143u8, 71u8, 186u8, 9u8, 233u8, 188u8, + 74u8, 184u8, 158u8, 40u8, 17u8, 223u8, 129u8, 144u8, 189u8, 211u8, + 194u8, ], ) } @@ -38089,9 +38105,9 @@ pub mod api { "VersionNotifiers", vec![], [ - 49u8, 190u8, 73u8, 67u8, 91u8, 69u8, 121u8, 206u8, 25u8, 82u8, 29u8, - 170u8, 157u8, 201u8, 168u8, 93u8, 181u8, 55u8, 226u8, 142u8, 136u8, - 46u8, 117u8, 208u8, 130u8, 90u8, 129u8, 39u8, 151u8, 92u8, 118u8, 75u8, + 212u8, 132u8, 8u8, 249u8, 16u8, 112u8, 47u8, 251u8, 73u8, 100u8, 218u8, + 194u8, 197u8, 252u8, 146u8, 31u8, 196u8, 234u8, 187u8, 14u8, 126u8, + 29u8, 7u8, 81u8, 30u8, 11u8, 167u8, 95u8, 46u8, 124u8, 66u8, 184u8, ], ) } @@ -38113,9 +38129,9 @@ pub mod api { _0.borrow(), )], [ - 49u8, 190u8, 73u8, 67u8, 91u8, 69u8, 121u8, 206u8, 25u8, 82u8, 29u8, - 170u8, 157u8, 201u8, 168u8, 93u8, 181u8, 55u8, 226u8, 142u8, 136u8, - 46u8, 117u8, 208u8, 130u8, 90u8, 129u8, 39u8, 151u8, 92u8, 118u8, 75u8, + 212u8, 132u8, 8u8, 249u8, 16u8, 112u8, 47u8, 251u8, 73u8, 100u8, 218u8, + 194u8, 197u8, 252u8, 146u8, 31u8, 196u8, 234u8, 187u8, 14u8, 126u8, + 29u8, 7u8, 81u8, 30u8, 11u8, 167u8, 95u8, 46u8, 124u8, 66u8, 184u8, ], ) } @@ -38139,9 +38155,9 @@ pub mod api { ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), ], [ - 49u8, 190u8, 73u8, 67u8, 91u8, 69u8, 121u8, 206u8, 25u8, 82u8, 29u8, - 170u8, 157u8, 201u8, 168u8, 93u8, 181u8, 55u8, 226u8, 142u8, 136u8, - 46u8, 117u8, 208u8, 130u8, 90u8, 129u8, 39u8, 151u8, 92u8, 118u8, 75u8, + 212u8, 132u8, 8u8, 249u8, 16u8, 112u8, 47u8, 251u8, 73u8, 100u8, 218u8, + 194u8, 197u8, 252u8, 146u8, 31u8, 196u8, 234u8, 187u8, 14u8, 126u8, + 29u8, 7u8, 81u8, 30u8, 11u8, 167u8, 95u8, 46u8, 124u8, 66u8, 184u8, ], ) } @@ -38161,10 +38177,10 @@ pub mod api { "VersionNotifyTargets", vec![], [ - 1u8, 195u8, 40u8, 83u8, 216u8, 175u8, 241u8, 95u8, 42u8, 7u8, 85u8, - 253u8, 223u8, 241u8, 195u8, 41u8, 41u8, 21u8, 17u8, 171u8, 216u8, - 150u8, 39u8, 165u8, 215u8, 194u8, 201u8, 225u8, 179u8, 12u8, 52u8, - 173u8, + 147u8, 115u8, 179u8, 91u8, 230u8, 102u8, 121u8, 203u8, 88u8, 26u8, + 69u8, 115u8, 168u8, 176u8, 234u8, 155u8, 200u8, 220u8, 33u8, 49u8, + 199u8, 97u8, 232u8, 9u8, 5u8, 2u8, 144u8, 58u8, 108u8, 236u8, 127u8, + 130u8, ], ) } @@ -38187,10 +38203,10 @@ pub mod api { _0.borrow(), )], [ - 1u8, 195u8, 40u8, 83u8, 216u8, 175u8, 241u8, 95u8, 42u8, 7u8, 85u8, - 253u8, 223u8, 241u8, 195u8, 41u8, 41u8, 21u8, 17u8, 171u8, 216u8, - 150u8, 39u8, 165u8, 215u8, 194u8, 201u8, 225u8, 179u8, 12u8, 52u8, - 173u8, + 147u8, 115u8, 179u8, 91u8, 230u8, 102u8, 121u8, 203u8, 88u8, 26u8, + 69u8, 115u8, 168u8, 176u8, 234u8, 155u8, 200u8, 220u8, 33u8, 49u8, + 199u8, 97u8, 232u8, 9u8, 5u8, 2u8, 144u8, 58u8, 108u8, 236u8, 127u8, + 130u8, ], ) } @@ -38215,10 +38231,10 @@ pub mod api { ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), ], [ - 1u8, 195u8, 40u8, 83u8, 216u8, 175u8, 241u8, 95u8, 42u8, 7u8, 85u8, - 253u8, 223u8, 241u8, 195u8, 41u8, 41u8, 21u8, 17u8, 171u8, 216u8, - 150u8, 39u8, 165u8, 215u8, 194u8, 201u8, 225u8, 179u8, 12u8, 52u8, - 173u8, + 147u8, 115u8, 179u8, 91u8, 230u8, 102u8, 121u8, 203u8, 88u8, 26u8, + 69u8, 115u8, 168u8, 176u8, 234u8, 155u8, 200u8, 220u8, 33u8, 49u8, + 199u8, 97u8, 232u8, 9u8, 5u8, 2u8, 144u8, 58u8, 108u8, 236u8, 127u8, + 130u8, ], ) } @@ -38239,9 +38255,10 @@ pub mod api { "VersionDiscoveryQueue", vec![], [ - 110u8, 87u8, 102u8, 193u8, 125u8, 129u8, 0u8, 221u8, 218u8, 229u8, - 101u8, 94u8, 74u8, 229u8, 246u8, 180u8, 113u8, 11u8, 15u8, 159u8, 98u8, - 90u8, 30u8, 112u8, 164u8, 236u8, 151u8, 220u8, 19u8, 83u8, 67u8, 248u8, + 139u8, 46u8, 46u8, 247u8, 93u8, 78u8, 193u8, 202u8, 133u8, 178u8, + 213u8, 171u8, 145u8, 167u8, 119u8, 135u8, 255u8, 7u8, 34u8, 90u8, + 208u8, 229u8, 49u8, 119u8, 12u8, 198u8, 46u8, 23u8, 119u8, 192u8, + 255u8, 147u8, ], ) } @@ -38281,9 +38298,9 @@ pub mod api { "RemoteLockedFungibles", vec![], [ - 74u8, 249u8, 83u8, 245u8, 44u8, 230u8, 152u8, 82u8, 4u8, 163u8, 230u8, - 121u8, 87u8, 143u8, 184u8, 12u8, 117u8, 112u8, 131u8, 160u8, 232u8, - 62u8, 175u8, 15u8, 81u8, 198u8, 182u8, 255u8, 37u8, 81u8, 6u8, 57u8, + 179u8, 227u8, 131u8, 21u8, 47u8, 223u8, 117u8, 21u8, 16u8, 43u8, 225u8, + 132u8, 222u8, 97u8, 158u8, 211u8, 8u8, 26u8, 157u8, 136u8, 92u8, 244u8, + 158u8, 239u8, 94u8, 70u8, 8u8, 132u8, 53u8, 61u8, 212u8, 179u8, ], ) } @@ -38305,9 +38322,9 @@ pub mod api { _0.borrow(), )], [ - 74u8, 249u8, 83u8, 245u8, 44u8, 230u8, 152u8, 82u8, 4u8, 163u8, 230u8, - 121u8, 87u8, 143u8, 184u8, 12u8, 117u8, 112u8, 131u8, 160u8, 232u8, - 62u8, 175u8, 15u8, 81u8, 198u8, 182u8, 255u8, 37u8, 81u8, 6u8, 57u8, + 179u8, 227u8, 131u8, 21u8, 47u8, 223u8, 117u8, 21u8, 16u8, 43u8, 225u8, + 132u8, 222u8, 97u8, 158u8, 211u8, 8u8, 26u8, 157u8, 136u8, 92u8, 244u8, + 158u8, 239u8, 94u8, 70u8, 8u8, 132u8, 53u8, 61u8, 212u8, 179u8, ], ) } @@ -38331,9 +38348,9 @@ pub mod api { ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), ], [ - 74u8, 249u8, 83u8, 245u8, 44u8, 230u8, 152u8, 82u8, 4u8, 163u8, 230u8, - 121u8, 87u8, 143u8, 184u8, 12u8, 117u8, 112u8, 131u8, 160u8, 232u8, - 62u8, 175u8, 15u8, 81u8, 198u8, 182u8, 255u8, 37u8, 81u8, 6u8, 57u8, + 179u8, 227u8, 131u8, 21u8, 47u8, 223u8, 117u8, 21u8, 16u8, 43u8, 225u8, + 132u8, 222u8, 97u8, 158u8, 211u8, 8u8, 26u8, 157u8, 136u8, 92u8, 244u8, + 158u8, 239u8, 94u8, 70u8, 8u8, 132u8, 53u8, 61u8, 212u8, 179u8, ], ) } @@ -38359,9 +38376,9 @@ pub mod api { ::subxt::storage::address::make_static_storage_map_key(_2.borrow()), ], [ - 74u8, 249u8, 83u8, 245u8, 44u8, 230u8, 152u8, 82u8, 4u8, 163u8, 230u8, - 121u8, 87u8, 143u8, 184u8, 12u8, 117u8, 112u8, 131u8, 160u8, 232u8, - 62u8, 175u8, 15u8, 81u8, 198u8, 182u8, 255u8, 37u8, 81u8, 6u8, 57u8, + 179u8, 227u8, 131u8, 21u8, 47u8, 223u8, 117u8, 21u8, 16u8, 43u8, 225u8, + 132u8, 222u8, 97u8, 158u8, 211u8, 8u8, 26u8, 157u8, 136u8, 92u8, 244u8, + 158u8, 239u8, 94u8, 70u8, 8u8, 132u8, 53u8, 61u8, 212u8, 179u8, ], ) } @@ -38380,10 +38397,9 @@ pub mod api { "LockedFungibles", vec![], [ - 110u8, 220u8, 127u8, 176u8, 219u8, 23u8, 132u8, 36u8, 224u8, 187u8, - 25u8, 103u8, 126u8, 99u8, 34u8, 105u8, 57u8, 182u8, 162u8, 69u8, 24u8, - 67u8, 221u8, 103u8, 79u8, 139u8, 187u8, 162u8, 113u8, 109u8, 163u8, - 35u8, + 209u8, 60u8, 254u8, 70u8, 62u8, 118u8, 99u8, 28u8, 153u8, 68u8, 40u8, + 239u8, 30u8, 90u8, 201u8, 178u8, 219u8, 37u8, 34u8, 153u8, 115u8, 99u8, + 100u8, 240u8, 36u8, 110u8, 8u8, 2u8, 45u8, 58u8, 131u8, 137u8, ], ) } @@ -38405,10 +38421,9 @@ pub mod api { _0.borrow(), )], [ - 110u8, 220u8, 127u8, 176u8, 219u8, 23u8, 132u8, 36u8, 224u8, 187u8, - 25u8, 103u8, 126u8, 99u8, 34u8, 105u8, 57u8, 182u8, 162u8, 69u8, 24u8, - 67u8, 221u8, 103u8, 79u8, 139u8, 187u8, 162u8, 113u8, 109u8, 163u8, - 35u8, + 209u8, 60u8, 254u8, 70u8, 62u8, 118u8, 99u8, 28u8, 153u8, 68u8, 40u8, + 239u8, 30u8, 90u8, 201u8, 178u8, 219u8, 37u8, 34u8, 153u8, 115u8, 99u8, + 100u8, 240u8, 36u8, 110u8, 8u8, 2u8, 45u8, 58u8, 131u8, 137u8, ], ) } @@ -38436,6 +38451,153 @@ pub mod api { } } } + pub mod identity_migrator { + use super::root_mod; + use super::runtime_types; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::polkadot_runtime_common::identity_migrator::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ReapIdentity { + pub who: reap_identity::Who, + } + pub mod reap_identity { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + } + impl ::subxt::blocks::StaticExtrinsic for ReapIdentity { + const PALLET: &'static str = "IdentityMigrator"; + const CALL: &'static str = "reap_identity"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct PokeDeposit { + pub who: poke_deposit::Who, + } + pub mod poke_deposit { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + } + impl ::subxt::blocks::StaticExtrinsic for PokeDeposit { + const PALLET: &'static str = "IdentityMigrator"; + const CALL: &'static str = "poke_deposit"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::reap_identity`]."] + pub fn reap_identity( + &self, + who: types::reap_identity::Who, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "IdentityMigrator", + "reap_identity", + types::ReapIdentity { who }, + [ + 187u8, 110u8, 202u8, 220u8, 54u8, 240u8, 242u8, 171u8, 5u8, 83u8, + 129u8, 93u8, 213u8, 208u8, 21u8, 236u8, 121u8, 128u8, 127u8, 121u8, + 153u8, 118u8, 232u8, 44u8, 20u8, 124u8, 214u8, 185u8, 249u8, 182u8, + 136u8, 96u8, + ], + ) + } + #[doc = "See [`Pallet::poke_deposit`]."] + pub fn poke_deposit( + &self, + who: types::poke_deposit::Who, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "IdentityMigrator", + "poke_deposit", + types::PokeDeposit { who }, + [ + 42u8, 67u8, 168u8, 124u8, 75u8, 32u8, 143u8, 173u8, 14u8, 28u8, 76u8, + 35u8, 196u8, 255u8, 250u8, 33u8, 128u8, 159u8, 132u8, 124u8, 51u8, + 243u8, 166u8, 55u8, 208u8, 101u8, 188u8, 133u8, 36u8, 18u8, 119u8, + 146u8, + ], + ) + } + } + } + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::polkadot_runtime_common::identity_migrator::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The identity and all sub accounts were reaped for `who`."] + pub struct IdentityReaped { + pub who: identity_reaped::Who, + } + pub mod identity_reaped { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for IdentityReaped { + const PALLET: &'static str = "IdentityMigrator"; + const EVENT: &'static str = "IdentityReaped"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The deposits held for `who` were updated. `identity` is the new deposit held for"] + #[doc = "identity info, and `subs` is the new deposit held for the sub-accounts."] + pub struct DepositUpdated { + pub who: deposit_updated::Who, + pub identity: deposit_updated::Identity, + pub subs: deposit_updated::Subs, + } + pub mod deposit_updated { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Identity = ::core::primitive::u128; + pub type Subs = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for DepositUpdated { + const PALLET: &'static str = "IdentityMigrator"; + const EVENT: &'static str = "DepositUpdated"; + } + } + } pub mod paras_sudo_wrapper { use super::root_mod; use super::runtime_types; @@ -38671,10 +38833,9 @@ pub mod api { xcm: ::std::boxed::Box::new(xcm), }, [ - 144u8, 179u8, 113u8, 39u8, 46u8, 58u8, 218u8, 220u8, 98u8, 232u8, - 121u8, 119u8, 127u8, 99u8, 52u8, 189u8, 232u8, 28u8, 233u8, 54u8, - 122u8, 206u8, 155u8, 7u8, 88u8, 167u8, 203u8, 251u8, 96u8, 156u8, 23u8, - 54u8, + 95u8, 158u8, 88u8, 29u8, 226u8, 30u8, 97u8, 232u8, 60u8, 188u8, 46u8, + 178u8, 57u8, 47u8, 81u8, 155u8, 15u8, 33u8, 102u8, 137u8, 13u8, 131u8, + 110u8, 216u8, 36u8, 169u8, 152u8, 43u8, 88u8, 55u8, 103u8, 175u8, ], ) } @@ -40125,7 +40286,7 @@ pub mod api { pub mod sudo { use super::root_mod; use super::runtime_types; - #[doc = "Error for the Sudo pallet"] + #[doc = "Error for the Sudo pallet."] pub type Error = runtime_types::pallet_sudo::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_sudo::pallet::Call; @@ -40223,6 +40384,21 @@ pub mod api { const PALLET: &'static str = "Sudo"; const CALL: &'static str = "sudo_as"; } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct RemoveKey; + impl ::subxt::blocks::StaticExtrinsic for RemoveKey { + const PALLET: &'static str = "Sudo"; + const CALL: &'static str = "remove_key"; + } } pub struct TransactionApi; impl TransactionApi { @@ -40235,10 +40411,10 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 230u8, 66u8, 61u8, 240u8, 132u8, 75u8, 17u8, 14u8, 12u8, 233u8, 24u8, - 192u8, 91u8, 200u8, 209u8, 133u8, 251u8, 154u8, 221u8, 95u8, 165u8, - 112u8, 49u8, 192u8, 126u8, 134u8, 46u8, 221u8, 150u8, 120u8, 178u8, - 103u8, + 237u8, 221u8, 200u8, 216u8, 181u8, 131u8, 94u8, 3u8, 26u8, 176u8, + 103u8, 60u8, 78u8, 18u8, 27u8, 152u8, 103u8, 185u8, 222u8, 216u8, + 209u8, 71u8, 63u8, 166u8, 105u8, 11u8, 198u8, 251u8, 223u8, 13u8, + 245u8, 112u8, ], ) } @@ -40256,10 +40432,10 @@ pub mod api { weight, }, [ - 39u8, 207u8, 214u8, 172u8, 135u8, 112u8, 167u8, 27u8, 210u8, 182u8, - 160u8, 163u8, 128u8, 207u8, 98u8, 136u8, 35u8, 14u8, 163u8, 243u8, - 224u8, 232u8, 254u8, 35u8, 244u8, 13u8, 212u8, 137u8, 99u8, 158u8, - 249u8, 164u8, + 51u8, 199u8, 168u8, 58u8, 167u8, 69u8, 150u8, 67u8, 175u8, 175u8, + 127u8, 220u8, 122u8, 103u8, 138u8, 159u8, 147u8, 146u8, 162u8, 69u8, + 198u8, 137u8, 249u8, 107u8, 115u8, 25u8, 200u8, 156u8, 138u8, 198u8, + 54u8, 164u8, ], ) } @@ -40293,9 +40469,24 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 97u8, 37u8, 226u8, 52u8, 181u8, 51u8, 13u8, 232u8, 250u8, 246u8, 195u8, - 219u8, 186u8, 236u8, 187u8, 3u8, 246u8, 172u8, 203u8, 35u8, 30u8, - 227u8, 242u8, 134u8, 51u8, 90u8, 105u8, 119u8, 1u8, 65u8, 79u8, 36u8, + 189u8, 204u8, 141u8, 132u8, 190u8, 252u8, 211u8, 252u8, 184u8, 233u8, + 39u8, 131u8, 52u8, 193u8, 68u8, 145u8, 189u8, 76u8, 183u8, 202u8, 85u8, + 116u8, 108u8, 119u8, 176u8, 86u8, 78u8, 52u8, 19u8, 241u8, 216u8, + 178u8, + ], + ) + } + #[doc = "See [`Pallet::remove_key`]."] + pub fn remove_key(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Sudo", + "remove_key", + types::RemoveKey {}, + [ + 133u8, 253u8, 54u8, 175u8, 202u8, 239u8, 5u8, 198u8, 180u8, 138u8, + 25u8, 28u8, 109u8, 40u8, 30u8, 56u8, 126u8, 100u8, 52u8, 205u8, 250u8, + 191u8, 61u8, 195u8, 172u8, 142u8, 184u8, 239u8, 247u8, 10u8, 211u8, + 79u8, ], ) } @@ -40340,11 +40531,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The sudo key has been updated."] pub struct KeyChanged { - pub old_sudoer: key_changed::OldSudoer, + pub old: key_changed::Old, + pub new: key_changed::New, } pub mod key_changed { use super::runtime_types; - pub type OldSudoer = ::core::option::Option<::subxt::utils::AccountId32>; + pub type Old = ::core::option::Option<::subxt::utils::AccountId32>; + pub type New = ::subxt::utils::AccountId32; } impl ::subxt::events::StaticEvent for KeyChanged { const PALLET: &'static str = "Sudo"; @@ -40360,6 +40553,22 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The key was permanently removed."] + pub struct KeyRemoved; + impl ::subxt::events::StaticEvent for KeyRemoved { + const PALLET: &'static str = "Sudo"; + const EVENT: &'static str = "KeyRemoved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A [sudo_as](Pallet::sudo_as) call just took place."] pub struct SudoAsDone { pub sudo_result: sudo_as_done::SudoResult, @@ -43175,121 +43384,6 @@ pub mod api { } } } - pub mod pallet_im_online { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub enum Call { - #[codec(index = 0)] - #[doc = "See [`Pallet::heartbeat`]."] - heartbeat { - heartbeat: - runtime_types::pallet_im_online::Heartbeat<::core::primitive::u32>, - signature: runtime_types::pallet_im_online::sr25519::app_sr25519::Signature, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] - pub enum Error { - #[codec(index = 0)] - #[doc = "Non existent public key."] - InvalidKey, - #[codec(index = 1)] - #[doc = "Duplicated heartbeat."] - DuplicatedHeartbeat, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] - pub enum Event { - #[codec(index = 0)] - #[doc = "A new heartbeat was received from `AuthorityId`."] - HeartbeatReceived { - authority_id: runtime_types::pallet_im_online::sr25519::app_sr25519::Public, - }, - #[codec(index = 1)] - #[doc = "At the end of the session, no offence was committed."] - AllGood, - #[codec(index = 2)] - #[doc = "At the end of the session, at least one validator was found to be offline."] - SomeOffline { - offline: ::std::vec::Vec<(::subxt::utils::AccountId32, ())>, - }, - } - } - pub mod sr25519 { - use super::runtime_types; - pub mod app_sr25519 { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Public(pub runtime_types::sp_core::sr25519::Public); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Signature(pub runtime_types::sp_core::sr25519::Signature); - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Heartbeat<_0> { - pub block_number: _0, - pub session_index: ::core::primitive::u32, - pub authority_index: ::core::primitive::u32, - pub validators_len: ::core::primitive::u32, - } - } pub mod pallet_indices { use super::runtime_types; pub mod pallet { @@ -46359,6 +46453,9 @@ pub mod api { who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, call: ::std::boxed::Box, }, + #[codec(index = 4)] + #[doc = "See [`Pallet::remove_key`]."] + remove_key, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -46370,10 +46467,10 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Error for the Sudo pallet"] + #[doc = "Error for the Sudo pallet."] pub enum Error { #[codec(index = 0)] - #[doc = "Sender must be the Sudo account"] + #[doc = "Sender must be the Sudo account."] RequireSudo, } #[derive( @@ -46397,9 +46494,13 @@ pub mod api { #[codec(index = 1)] #[doc = "The sudo key has been updated."] KeyChanged { - old_sudoer: ::core::option::Option<::subxt::utils::AccountId32>, + old: ::core::option::Option<::subxt::utils::AccountId32>, + new: ::subxt::utils::AccountId32, }, #[codec(index = 2)] + #[doc = "The key was permanently removed."] + KeyRemoved, + #[codec(index = 3)] #[doc = "A [sudo_as](Pallet::sudo_as) call just took place."] SudoAsDone { sudo_result: @@ -47235,6 +47336,15 @@ pub mod api { #[codec(index = 10)] #[doc = "See [`Pallet::force_suspension`]."] force_suspension { suspended: ::core::primitive::bool }, + #[codec(index = 11)] + #[doc = "See [`Pallet::transfer_assets`]."] + transfer_assets { + dest: ::std::boxed::Box, + beneficiary: ::std::boxed::Box, + assets: ::std::boxed::Box, + fee_asset_item: ::core::primitive::u32, + weight_limit: runtime_types::xcm::v3::WeightLimit, + }, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -47291,8 +47401,8 @@ pub mod api { #[doc = "The location is invalid since it already has a subscription from us."] AlreadySubscribed, #[codec(index = 13)] - #[doc = "Invalid asset for the operation."] - InvalidAsset, + #[doc = "Could not check-out the assets for teleportation to the destination chain."] + CannotCheckOutTeleport, #[codec(index = 14)] #[doc = "The owner does not own (all) of the asset that they wish to do the operation on."] LowBalance, @@ -47311,6 +47421,21 @@ pub mod api { #[codec(index = 19)] #[doc = "The unlock operation cannot succeed because there are still consumers of the lock."] InUse, + #[codec(index = 20)] + #[doc = "Invalid non-concrete asset."] + InvalidAssetNotConcrete, + #[codec(index = 21)] + #[doc = "Invalid asset, reserve chain could not be determined for it."] + InvalidAssetUnknownReserve, + #[codec(index = 22)] + #[doc = "Invalid asset, do not support remote asset reserves with different fees reserves."] + InvalidAssetUnsupportedReserve, + #[codec(index = 23)] + #[doc = "Too many assets with different reserve locations have been attempted for transfer."] + TooManyReserves, + #[codec(index = 24)] + #[doc = "Local XCM execution incomplete."] + LocalExecutionIncomplete, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -47877,12 +48002,12 @@ pub mod api { PrecheckingMaxMemory(::core::primitive::u64), #[codec(index = 5)] PvfPrepTimeout( - runtime_types::polkadot_primitives::v6::PvfPrepTimeoutKind, + runtime_types::polkadot_primitives::v6::PvfPrepKind, ::core::primitive::u64, ), #[codec(index = 6)] PvfExecTimeout( - runtime_types::polkadot_primitives::v6::PvfExecTimeoutKind, + runtime_types::polkadot_primitives::v6::PvfExecKind, ::core::primitive::u64, ), #[codec(index = 7)] @@ -48423,7 +48548,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum PvfExecTimeoutKind { + pub enum PvfExecKind { #[codec(index = 0)] Backing, #[codec(index = 1)] @@ -48439,11 +48564,11 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum PvfPrepTimeoutKind { + pub enum PvfPrepKind { #[codec(index = 0)] Precheck, #[codec(index = 1)] - Lenient, + Prepare, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -49314,6 +49439,55 @@ pub mod api { Ending(_0), } } + pub mod identity_migrator { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call { + #[codec(index = 0)] + #[doc = "See [`Pallet::reap_identity`]."] + reap_identity { who: ::subxt::utils::AccountId32 }, + #[codec(index = 1)] + #[doc = "See [`Pallet::poke_deposit`]."] + poke_deposit { who: ::subxt::utils::AccountId32 }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Event` enum of this pallet"] + pub enum Event { + #[codec(index = 0)] + #[doc = "The identity and all sub accounts were reaped for `who`."] + IdentityReaped { who: ::subxt::utils::AccountId32 }, + #[codec(index = 1)] + #[doc = "The deposits held for `who` were updated. `identity` is the new deposit held for"] + #[doc = "identity info, and `subs` is the new deposit held for the sub-accounts."] + DepositUpdated { + who: ::subxt::utils::AccountId32, + identity: ::core::primitive::u128, + subs: ::core::primitive::u128, + }, + } + } + } pub mod impls { use super::runtime_types; #[derive( @@ -49753,7 +49927,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { - # [codec (index = 0)] # [doc = "See [`Pallet::set_validation_upgrade_cooldown`]."] set_validation_upgrade_cooldown { new : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "See [`Pallet::set_validation_upgrade_delay`]."] set_validation_upgrade_delay { new : :: core :: primitive :: u32 , } , # [codec (index = 2)] # [doc = "See [`Pallet::set_code_retention_period`]."] set_code_retention_period { new : :: core :: primitive :: u32 , } , # [codec (index = 3)] # [doc = "See [`Pallet::set_max_code_size`]."] set_max_code_size { new : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "See [`Pallet::set_max_pov_size`]."] set_max_pov_size { new : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "See [`Pallet::set_max_head_data_size`]."] set_max_head_data_size { new : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "See [`Pallet::set_on_demand_cores`]."] set_on_demand_cores { new : :: core :: primitive :: u32 , } , # [codec (index = 7)] # [doc = "See [`Pallet::set_on_demand_retries`]."] set_on_demand_retries { new : :: core :: primitive :: u32 , } , # [codec (index = 8)] # [doc = "See [`Pallet::set_group_rotation_frequency`]."] set_group_rotation_frequency { new : :: core :: primitive :: u32 , } , # [codec (index = 9)] # [doc = "See [`Pallet::set_paras_availability_period`]."] set_paras_availability_period { new : :: core :: primitive :: u32 , } , # [codec (index = 11)] # [doc = "See [`Pallet::set_scheduling_lookahead`]."] set_scheduling_lookahead { new : :: core :: primitive :: u32 , } , # [codec (index = 12)] # [doc = "See [`Pallet::set_max_validators_per_core`]."] set_max_validators_per_core { new : :: core :: option :: Option < :: core :: primitive :: u32 > , } , # [codec (index = 13)] # [doc = "See [`Pallet::set_max_validators`]."] set_max_validators { new : :: core :: option :: Option < :: core :: primitive :: u32 > , } , # [codec (index = 14)] # [doc = "See [`Pallet::set_dispute_period`]."] set_dispute_period { new : :: core :: primitive :: u32 , } , # [codec (index = 15)] # [doc = "See [`Pallet::set_dispute_post_conclusion_acceptance_period`]."] set_dispute_post_conclusion_acceptance_period { new : :: core :: primitive :: u32 , } , # [codec (index = 18)] # [doc = "See [`Pallet::set_no_show_slots`]."] set_no_show_slots { new : :: core :: primitive :: u32 , } , # [codec (index = 19)] # [doc = "See [`Pallet::set_n_delay_tranches`]."] set_n_delay_tranches { new : :: core :: primitive :: u32 , } , # [codec (index = 20)] # [doc = "See [`Pallet::set_zeroth_delay_tranche_width`]."] set_zeroth_delay_tranche_width { new : :: core :: primitive :: u32 , } , # [codec (index = 21)] # [doc = "See [`Pallet::set_needed_approvals`]."] set_needed_approvals { new : :: core :: primitive :: u32 , } , # [codec (index = 22)] # [doc = "See [`Pallet::set_relay_vrf_modulo_samples`]."] set_relay_vrf_modulo_samples { new : :: core :: primitive :: u32 , } , # [codec (index = 23)] # [doc = "See [`Pallet::set_max_upward_queue_count`]."] set_max_upward_queue_count { new : :: core :: primitive :: u32 , } , # [codec (index = 24)] # [doc = "See [`Pallet::set_max_upward_queue_size`]."] set_max_upward_queue_size { new : :: core :: primitive :: u32 , } , # [codec (index = 25)] # [doc = "See [`Pallet::set_max_downward_message_size`]."] set_max_downward_message_size { new : :: core :: primitive :: u32 , } , # [codec (index = 27)] # [doc = "See [`Pallet::set_max_upward_message_size`]."] set_max_upward_message_size { new : :: core :: primitive :: u32 , } , # [codec (index = 28)] # [doc = "See [`Pallet::set_max_upward_message_num_per_candidate`]."] set_max_upward_message_num_per_candidate { new : :: core :: primitive :: u32 , } , # [codec (index = 29)] # [doc = "See [`Pallet::set_hrmp_open_request_ttl`]."] set_hrmp_open_request_ttl { new : :: core :: primitive :: u32 , } , # [codec (index = 30)] # [doc = "See [`Pallet::set_hrmp_sender_deposit`]."] set_hrmp_sender_deposit { new : :: core :: primitive :: u128 , } , # [codec (index = 31)] # [doc = "See [`Pallet::set_hrmp_recipient_deposit`]."] set_hrmp_recipient_deposit { new : :: core :: primitive :: u128 , } , # [codec (index = 32)] # [doc = "See [`Pallet::set_hrmp_channel_max_capacity`]."] set_hrmp_channel_max_capacity { new : :: core :: primitive :: u32 , } , # [codec (index = 33)] # [doc = "See [`Pallet::set_hrmp_channel_max_total_size`]."] set_hrmp_channel_max_total_size { new : :: core :: primitive :: u32 , } , # [codec (index = 34)] # [doc = "See [`Pallet::set_hrmp_max_parachain_inbound_channels`]."] set_hrmp_max_parachain_inbound_channels { new : :: core :: primitive :: u32 , } , # [codec (index = 36)] # [doc = "See [`Pallet::set_hrmp_channel_max_message_size`]."] set_hrmp_channel_max_message_size { new : :: core :: primitive :: u32 , } , # [codec (index = 37)] # [doc = "See [`Pallet::set_hrmp_max_parachain_outbound_channels`]."] set_hrmp_max_parachain_outbound_channels { new : :: core :: primitive :: u32 , } , # [codec (index = 39)] # [doc = "See [`Pallet::set_hrmp_max_message_num_per_candidate`]."] set_hrmp_max_message_num_per_candidate { new : :: core :: primitive :: u32 , } , # [codec (index = 42)] # [doc = "See [`Pallet::set_pvf_voting_ttl`]."] set_pvf_voting_ttl { new : :: core :: primitive :: u32 , } , # [codec (index = 43)] # [doc = "See [`Pallet::set_minimum_validation_upgrade_delay`]."] set_minimum_validation_upgrade_delay { new : :: core :: primitive :: u32 , } , # [codec (index = 44)] # [doc = "See [`Pallet::set_bypass_consistency_check`]."] set_bypass_consistency_check { new : :: core :: primitive :: bool , } , # [codec (index = 45)] # [doc = "See [`Pallet::set_async_backing_params`]."] set_async_backing_params { new : runtime_types :: polkadot_primitives :: v6 :: async_backing :: AsyncBackingParams , } , # [codec (index = 46)] # [doc = "See [`Pallet::set_executor_params`]."] set_executor_params { new : runtime_types :: polkadot_primitives :: v6 :: executor_params :: ExecutorParams , } , # [codec (index = 47)] # [doc = "See [`Pallet::set_on_demand_base_fee`]."] set_on_demand_base_fee { new : :: core :: primitive :: u128 , } , # [codec (index = 48)] # [doc = "See [`Pallet::set_on_demand_fee_variability`]."] set_on_demand_fee_variability { new : runtime_types :: sp_arithmetic :: per_things :: Perbill , } , # [codec (index = 49)] # [doc = "See [`Pallet::set_on_demand_queue_max_size`]."] set_on_demand_queue_max_size { new : :: core :: primitive :: u32 , } , # [codec (index = 50)] # [doc = "See [`Pallet::set_on_demand_target_queue_utilization`]."] set_on_demand_target_queue_utilization { new : runtime_types :: sp_arithmetic :: per_things :: Perbill , } , # [codec (index = 51)] # [doc = "See [`Pallet::set_on_demand_ttl`]."] set_on_demand_ttl { new : :: core :: primitive :: u32 , } , # [codec (index = 52)] # [doc = "See [`Pallet::set_minimum_backing_votes`]."] set_minimum_backing_votes { new : :: core :: primitive :: u32 , } , } + # [codec (index = 0)] # [doc = "See [`Pallet::set_validation_upgrade_cooldown`]."] set_validation_upgrade_cooldown { new : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "See [`Pallet::set_validation_upgrade_delay`]."] set_validation_upgrade_delay { new : :: core :: primitive :: u32 , } , # [codec (index = 2)] # [doc = "See [`Pallet::set_code_retention_period`]."] set_code_retention_period { new : :: core :: primitive :: u32 , } , # [codec (index = 3)] # [doc = "See [`Pallet::set_max_code_size`]."] set_max_code_size { new : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "See [`Pallet::set_max_pov_size`]."] set_max_pov_size { new : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "See [`Pallet::set_max_head_data_size`]."] set_max_head_data_size { new : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "See [`Pallet::set_on_demand_cores`]."] set_on_demand_cores { new : :: core :: primitive :: u32 , } , # [codec (index = 7)] # [doc = "See [`Pallet::set_on_demand_retries`]."] set_on_demand_retries { new : :: core :: primitive :: u32 , } , # [codec (index = 8)] # [doc = "See [`Pallet::set_group_rotation_frequency`]."] set_group_rotation_frequency { new : :: core :: primitive :: u32 , } , # [codec (index = 9)] # [doc = "See [`Pallet::set_paras_availability_period`]."] set_paras_availability_period { new : :: core :: primitive :: u32 , } , # [codec (index = 11)] # [doc = "See [`Pallet::set_scheduling_lookahead`]."] set_scheduling_lookahead { new : :: core :: primitive :: u32 , } , # [codec (index = 12)] # [doc = "See [`Pallet::set_max_validators_per_core`]."] set_max_validators_per_core { new : :: core :: option :: Option < :: core :: primitive :: u32 > , } , # [codec (index = 13)] # [doc = "See [`Pallet::set_max_validators`]."] set_max_validators { new : :: core :: option :: Option < :: core :: primitive :: u32 > , } , # [codec (index = 14)] # [doc = "See [`Pallet::set_dispute_period`]."] set_dispute_period { new : :: core :: primitive :: u32 , } , # [codec (index = 15)] # [doc = "See [`Pallet::set_dispute_post_conclusion_acceptance_period`]."] set_dispute_post_conclusion_acceptance_period { new : :: core :: primitive :: u32 , } , # [codec (index = 18)] # [doc = "See [`Pallet::set_no_show_slots`]."] set_no_show_slots { new : :: core :: primitive :: u32 , } , # [codec (index = 19)] # [doc = "See [`Pallet::set_n_delay_tranches`]."] set_n_delay_tranches { new : :: core :: primitive :: u32 , } , # [codec (index = 20)] # [doc = "See [`Pallet::set_zeroth_delay_tranche_width`]."] set_zeroth_delay_tranche_width { new : :: core :: primitive :: u32 , } , # [codec (index = 21)] # [doc = "See [`Pallet::set_needed_approvals`]."] set_needed_approvals { new : :: core :: primitive :: u32 , } , # [codec (index = 22)] # [doc = "See [`Pallet::set_relay_vrf_modulo_samples`]."] set_relay_vrf_modulo_samples { new : :: core :: primitive :: u32 , } , # [codec (index = 23)] # [doc = "See [`Pallet::set_max_upward_queue_count`]."] set_max_upward_queue_count { new : :: core :: primitive :: u32 , } , # [codec (index = 24)] # [doc = "See [`Pallet::set_max_upward_queue_size`]."] set_max_upward_queue_size { new : :: core :: primitive :: u32 , } , # [codec (index = 25)] # [doc = "See [`Pallet::set_max_downward_message_size`]."] set_max_downward_message_size { new : :: core :: primitive :: u32 , } , # [codec (index = 27)] # [doc = "See [`Pallet::set_max_upward_message_size`]."] set_max_upward_message_size { new : :: core :: primitive :: u32 , } , # [codec (index = 28)] # [doc = "See [`Pallet::set_max_upward_message_num_per_candidate`]."] set_max_upward_message_num_per_candidate { new : :: core :: primitive :: u32 , } , # [codec (index = 29)] # [doc = "See [`Pallet::set_hrmp_open_request_ttl`]."] set_hrmp_open_request_ttl { new : :: core :: primitive :: u32 , } , # [codec (index = 30)] # [doc = "See [`Pallet::set_hrmp_sender_deposit`]."] set_hrmp_sender_deposit { new : :: core :: primitive :: u128 , } , # [codec (index = 31)] # [doc = "See [`Pallet::set_hrmp_recipient_deposit`]."] set_hrmp_recipient_deposit { new : :: core :: primitive :: u128 , } , # [codec (index = 32)] # [doc = "See [`Pallet::set_hrmp_channel_max_capacity`]."] set_hrmp_channel_max_capacity { new : :: core :: primitive :: u32 , } , # [codec (index = 33)] # [doc = "See [`Pallet::set_hrmp_channel_max_total_size`]."] set_hrmp_channel_max_total_size { new : :: core :: primitive :: u32 , } , # [codec (index = 34)] # [doc = "See [`Pallet::set_hrmp_max_parachain_inbound_channels`]."] set_hrmp_max_parachain_inbound_channels { new : :: core :: primitive :: u32 , } , # [codec (index = 36)] # [doc = "See [`Pallet::set_hrmp_channel_max_message_size`]."] set_hrmp_channel_max_message_size { new : :: core :: primitive :: u32 , } , # [codec (index = 37)] # [doc = "See [`Pallet::set_hrmp_max_parachain_outbound_channels`]."] set_hrmp_max_parachain_outbound_channels { new : :: core :: primitive :: u32 , } , # [codec (index = 39)] # [doc = "See [`Pallet::set_hrmp_max_message_num_per_candidate`]."] set_hrmp_max_message_num_per_candidate { new : :: core :: primitive :: u32 , } , # [codec (index = 42)] # [doc = "See [`Pallet::set_pvf_voting_ttl`]."] set_pvf_voting_ttl { new : :: core :: primitive :: u32 , } , # [codec (index = 43)] # [doc = "See [`Pallet::set_minimum_validation_upgrade_delay`]."] set_minimum_validation_upgrade_delay { new : :: core :: primitive :: u32 , } , # [codec (index = 44)] # [doc = "See [`Pallet::set_bypass_consistency_check`]."] set_bypass_consistency_check { new : :: core :: primitive :: bool , } , # [codec (index = 45)] # [doc = "See [`Pallet::set_async_backing_params`]."] set_async_backing_params { new : runtime_types :: polkadot_primitives :: v6 :: async_backing :: AsyncBackingParams , } , # [codec (index = 46)] # [doc = "See [`Pallet::set_executor_params`]."] set_executor_params { new : runtime_types :: polkadot_primitives :: v6 :: executor_params :: ExecutorParams , } , # [codec (index = 47)] # [doc = "See [`Pallet::set_on_demand_base_fee`]."] set_on_demand_base_fee { new : :: core :: primitive :: u128 , } , # [codec (index = 48)] # [doc = "See [`Pallet::set_on_demand_fee_variability`]."] set_on_demand_fee_variability { new : runtime_types :: sp_arithmetic :: per_things :: Perbill , } , # [codec (index = 49)] # [doc = "See [`Pallet::set_on_demand_queue_max_size`]."] set_on_demand_queue_max_size { new : :: core :: primitive :: u32 , } , # [codec (index = 50)] # [doc = "See [`Pallet::set_on_demand_target_queue_utilization`]."] set_on_demand_target_queue_utilization { new : runtime_types :: sp_arithmetic :: per_things :: Perbill , } , # [codec (index = 51)] # [doc = "See [`Pallet::set_on_demand_ttl`]."] set_on_demand_ttl { new : :: core :: primitive :: u32 , } , # [codec (index = 52)] # [doc = "See [`Pallet::set_minimum_backing_votes`]."] set_minimum_backing_votes { new : :: core :: primitive :: u32 , } , # [codec (index = 53)] # [doc = "See [`Pallet::set_node_feature`]."] set_node_feature { index : :: core :: primitive :: u8 , value : :: core :: primitive :: bool , } , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -49829,6 +50003,10 @@ pub mod api { pub pvf_voting_ttl: ::core::primitive::u32, pub minimum_validation_upgrade_delay: _0, pub minimum_backing_votes: ::core::primitive::u32, + pub node_features: ::subxt::utils::bits::DecodedBits< + ::core::primitive::u8, + ::subxt::utils::bits::Lsb0, + >, } } pub mod disputes { @@ -51015,8 +51193,6 @@ pub mod api { 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 = 18)] Treasury(runtime_types::pallet_treasury::pallet::Call), #[codec(index = 20)] @@ -51099,6 +51275,10 @@ pub mod api { Crowdloan(runtime_types::polkadot_runtime_common::crowdloan::pallet::Call), #[codec(index = 99)] XcmPallet(runtime_types::pallet_xcm::pallet::Call), + #[codec(index = 248)] + IdentityMigrator( + runtime_types::polkadot_runtime_common::identity_migrator::pallet::Call, + ), #[codec(index = 250)] ParasSudoWrapper( runtime_types::polkadot_runtime_common::paras_sudo_wrapper::pallet::Call, @@ -51139,8 +51319,6 @@ pub mod api { Session(runtime_types::pallet_session::pallet::Error), #[codec(index = 10)] Grandpa(runtime_types::pallet_grandpa::pallet::Error), - #[codec(index = 11)] - ImOnline(runtime_types::pallet_im_online::pallet::Error), #[codec(index = 18)] Treasury(runtime_types::pallet_treasury::pallet::Error), #[codec(index = 20)] @@ -51257,8 +51435,6 @@ pub mod api { 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 = 18)] Treasury(runtime_types::pallet_treasury::pallet::Event), #[codec(index = 20)] @@ -51325,6 +51501,10 @@ pub mod api { Crowdloan(runtime_types::polkadot_runtime_common::crowdloan::pallet::Event), #[codec(index = 99)] XcmPallet(runtime_types::pallet_xcm::pallet::Event), + #[codec(index = 248)] + IdentityMigrator( + runtime_types::polkadot_runtime_common::identity_migrator::pallet::Event, + ), #[codec(index = 251)] AssignedSlots( runtime_types::polkadot_runtime_common::assigned_slots::pallet::Event, @@ -51367,7 +51547,6 @@ pub mod api { pub struct SessionKeys { pub grandpa: runtime_types::sp_consensus_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::v6::validator_app::Public, pub para_assignment: runtime_types::polkadot_primitives::v6::assignment_app::Public, pub authority_discovery: runtime_types::sp_authority_discovery::app::Public, @@ -51993,7 +52172,7 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct VrfSignature { - pub output: [::core::primitive::u8; 32usize], + pub pre_output: [::core::primitive::u8; 32usize], pub proof: [::core::primitive::u8; 64usize], } } @@ -54174,6 +54353,8 @@ pub mod api { BitcoinCore, #[codec(index = 9)] BitcoinCash, + #[codec(index = 10)] + PolkadotBulletin, } } pub mod junctions { From 4c0c9f3db5e64fff7fe2d77d0cf6b49380779296 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Fri, 8 Dec 2023 13:04:18 +0200 Subject: [PATCH 28/28] codegen: Remove outdated docs from composite def Signed-off-by: Alexandru Vasile --- codegen/src/types/composite_def.rs | 38 ------------------------------ 1 file changed, 38 deletions(-) diff --git a/codegen/src/types/composite_def.rs b/codegen/src/types/composite_def.rs index efda6515e5..a1cfcbf2cb 100644 --- a/codegen/src/types/composite_def.rs +++ b/codegen/src/types/composite_def.rs @@ -31,44 +31,6 @@ impl CompositeDef { /// /// This is useful for generating structures from call and enum metadata variants; /// and from all the runtime types of the metadata. - /// - /// # Note - /// - /// ## Alias Generation - /// - /// This method will generate alias types for each field of the struct when the - /// `generate_alias` parameter is true and the structure has any fields. - /// - /// The runtime types that are placed under `pub mod runtime_types` may contain - /// generics that are not resolved yet. Therefore, this field should be disabled - /// for runtime types. - /// - /// ### Example with alias generation - /// - /// This is extracted from the `system::calls` module. - /// - /// ```ignore - /// pub struct RemarkWithEvent { - /// // Note that this type is aliased. - /// pub remark: remark_with_event::Remark, - /// } - /// - /// pub mod remark_with_event { - /// use super::runtime_types; - /// pub type Remark = ::std::vec::Vec<::core::primitive::u8>; - /// } - /// ``` - /// - /// ### Example without alias generation - /// - /// This is extracted from `runtime_types::pallet_referenda` module. - /// - /// ```ignore - /// pub struct DecidingStatus<_0> { - /// pub since: _0, - /// pub confirming: ::core::option::Option<_0>, - /// } - /// ``` #[allow(clippy::too_many_arguments)] pub fn struct_def( ty: &Type,