From e163e576ff4ec653ebff3ee29f18c88bc5e271bd Mon Sep 17 00:00:00 2001 From: Tadeo hepperle Date: Thu, 9 Nov 2023 18:21:08 +0100 Subject: [PATCH 01/30] integrate scale-typegen, remove types mod --- Cargo.lock | 61 +- codegen/Cargo.toml | 2 + codegen/src/api/calls.rs | 37 +- codegen/src/api/constants.rs | 13 +- codegen/src/api/custom_values.rs | 7 +- codegen/src/api/errors.rs | 8 +- codegen/src/api/events.rs | 23 +- codegen/src/api/mod.rs | 204 ++-- codegen/src/api/runtime_apis.rs | 23 +- codegen/src/api/storage.rs | 28 +- codegen/src/error.rs | 4 + codegen/src/lib.rs | 38 +- codegen/src/types/composite_def.rs | 332 ------- codegen/src/types/derives.rs | 199 ---- codegen/src/types/mod.rs | 336 ------- codegen/src/types/substitutes.rs | 529 ---------- codegen/src/types/tests.rs | 1323 -------------------------- codegen/src/types/type_def.rs | 173 ---- codegen/src/types/type_def_params.rs | 77 -- codegen/src/types/type_path.rs | 304 ------ 20 files changed, 238 insertions(+), 3483 deletions(-) delete mode 100644 codegen/src/types/composite_def.rs delete mode 100644 codegen/src/types/derives.rs delete mode 100644 codegen/src/types/mod.rs delete mode 100644 codegen/src/types/substitutes.rs delete mode 100644 codegen/src/types/tests.rs delete mode 100644 codegen/src/types/type_def.rs delete mode 100644 codegen/src/types/type_def_params.rs delete mode 100644 codegen/src/types/type_path.rs diff --git a/Cargo.lock b/Cargo.lock index 6db96200d3..7bcdc7a11d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -306,7 +306,7 @@ checksum = "a66537f1bb974b254c98ed142ff995236e81b9d0fe4db0575f46612cb15eb0f9" dependencies = [ "proc-macro2", "quote", - "syn 2.0.37", + "syn 2.0.39", ] [[package]] @@ -705,7 +705,7 @@ dependencies = [ "heck", "proc-macro2", "quote", - "syn 2.0.37", + "syn 2.0.39", ] [[package]] @@ -1010,7 +1010,7 @@ checksum = "83fdaf97f4804dcebfa5862639bc9ce4121e82140bec2a987ac5140294865b5b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.37", + "syn 2.0.39", ] [[package]] @@ -1071,7 +1071,7 @@ dependencies = [ "proc-macro2", "quote", "strsim", - "syn 2.0.37", + "syn 2.0.39", ] [[package]] @@ -1093,7 +1093,7 @@ checksum = "836a9bbc7ad63342d6d6e7b815ccab164bc77a2d95d84bc3117a8c0d5c98e2d5" dependencies = [ "darling_core 0.20.3", "quote", - "syn 2.0.37", + "syn 2.0.39", ] [[package]] @@ -1463,7 +1463,7 @@ checksum = "89ca545a94061b6365f2c7355b4b32bd20df3ff95f02da9329b34ccc3bd6ee72" dependencies = [ "proc-macro2", "quote", - "syn 2.0.37", + "syn 2.0.39", ] [[package]] @@ -2002,7 +2002,7 @@ dependencies = [ "subxt-codegen", "subxt-metadata", "subxt-signer", - "syn 2.0.37", + "syn 2.0.39", "test-runtime", "tokio", "tracing", @@ -2651,7 +2651,7 @@ checksum = "4359fd9c9171ec6e8c62926d6faaf553a8dc3f64e1507e76da7911b4f6a04405" dependencies = [ "proc-macro2", "quote", - "syn 2.0.37", + "syn 2.0.39", ] [[package]] @@ -2951,7 +2951,7 @@ checksum = "7f7473c2cfcf90008193dd0e3e16599455cb601a9fce322b5bb55de799664925" dependencies = [ "proc-macro2", "quote", - "syn 2.0.37", + "syn 2.0.39", ] [[package]] @@ -3249,6 +3249,20 @@ dependencies = [ "syn 1.0.109", ] +[[package]] +name = "scale-typegen" +version = "0.1.0" +dependencies = [ + "anyhow", + "parity-scale-codec", + "proc-macro2", + "quote", + "scale-bits", + "scale-info", + "syn 2.0.39", + "thiserror", +] + [[package]] name = "scale-value" version = "0.12.0" @@ -3452,7 +3466,7 @@ checksum = "67c5609f394e5c2bd7fc51efda478004ea80ef42fee983d5c67a65e34f32c0e3" dependencies = [ "proc-macro2", "quote", - "syn 2.0.37", + "syn 2.0.39", ] [[package]] @@ -3825,7 +3839,7 @@ checksum = "c7f531814d2f16995144c74428830ccf7d94ff4a7749632b83ad8199b181140c" dependencies = [ "proc-macro2", "quote", - "syn 2.0.37", + "syn 2.0.39", ] [[package]] @@ -3956,7 +3970,7 @@ dependencies = [ "proc-macro-crate", "proc-macro2", "quote", - "syn 2.0.37", + "syn 2.0.39", ] [[package]] @@ -4221,7 +4235,7 @@ dependencies = [ "subxt", "subxt-codegen", "subxt-metadata", - "syn 2.0.37", + "syn 2.0.39", "tokio", ] @@ -4240,8 +4254,9 @@ dependencies = [ "proc-macro2", "quote", "scale-info", + "scale-typegen", "subxt-metadata", - "syn 2.0.37", + "syn 2.0.39", "thiserror", "tokio", ] @@ -4281,7 +4296,7 @@ dependencies = [ "parity-scale-codec", "proc-macro-error", "subxt-codegen", - "syn 2.0.37", + "syn 2.0.39", ] [[package]] @@ -4334,9 +4349,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.37" +version = "2.0.39" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7303ef2c05cd654186cb250d29049a24840ca25d2747c25c0381c8d9e2f582e8" +checksum = "23e78b90f2fcf45d3e842032ce32e3f2d1545ba6636271dcbf24fa306d87be7a" dependencies = [ "proc-macro2", "quote", @@ -4422,7 +4437,7 @@ checksum = "266b2e40bc00e5a6c09c3584011e08b06f123c00362c92b975ba9843aaaa14b8" dependencies = [ "proc-macro2", "quote", - "syn 2.0.37", + "syn 2.0.39", ] [[package]] @@ -4504,7 +4519,7 @@ checksum = "630bdcf245f78637c13ec01ffae6187cca34625e8c63150d424b59e55af2675e" dependencies = [ "proc-macro2", "quote", - "syn 2.0.37", + "syn 2.0.39", ] [[package]] @@ -4607,7 +4622,7 @@ checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.37", + "syn 2.0.39", ] [[package]] @@ -4927,7 +4942,7 @@ dependencies = [ "once_cell", "proc-macro2", "quote", - "syn 2.0.37", + "syn 2.0.39", "wasm-bindgen-shared", ] @@ -4961,7 +4976,7 @@ checksum = "54681b18a46765f095758388f2d0cf16eb8d4169b639ab575a8f5693af210c7b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.37", + "syn 2.0.39", "wasm-bindgen-backend", "wasm-bindgen-shared", ] @@ -5407,5 +5422,5 @@ checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" dependencies = [ "proc-macro2", "quote", - "syn 2.0.37", + "syn 2.0.39", ] diff --git a/codegen/Cargo.toml b/codegen/Cargo.toml index 57c985282b..66a9afc1ad 100644 --- a/codegen/Cargo.toml +++ b/codegen/Cargo.toml @@ -30,6 +30,8 @@ jsonrpsee = { workspace = true, features = ["async-client", "client-ws-transport hex = { workspace = true } tokio = { workspace = true, features = ["rt-multi-thread"], optional = true } thiserror = { workspace = true } +scale-typegen = { path = "../../scale-typegen" } + # Included if "web" feature is enabled, to enable its js feature. getrandom = { workspace = true, optional = true } diff --git a/codegen/src/api/calls.rs b/codegen/src/api/calls.rs index 74356266e0..40881d7e0c 100644 --- a/codegen/src/api/calls.rs +++ b/codegen/src/api/calls.rs @@ -3,10 +3,10 @@ // see LICENSE for license details. use super::CodegenError; -use crate::types::{CompositeDefFields, TypeGenerator}; use heck::{ToSnakeCase as _, ToUpperCamelCase as _}; use proc_macro2::TokenStream as TokenStream2; use quote::{format_ident, quote}; +use scale_typegen::{typegen::ir::type_ir::CompositeIRKind, TypeGenerator}; use subxt_metadata::PalletMetadata; /// Generate calls from the provided pallet's metadata. Each call returns a `StaticTxPayload` @@ -21,9 +21,7 @@ use subxt_metadata::PalletMetadata; pub fn generate_calls( type_gen: &TypeGenerator, pallet: &PalletMetadata, - types_mod_ident: &syn::Ident, crate_path: &syn::Path, - should_gen_docs: bool, ) -> Result { // Early return if the pallet has no calls. let Some(call_ty) = pallet.call_ty_id() else { @@ -36,17 +34,16 @@ pub fn generate_calls( |name| name.to_upper_camel_case().into(), "Call", crate_path, - should_gen_docs, )?; let (call_structs, call_fns): (Vec<_>, Vec<_>) = 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 + .into_iter() + .map(|(variant_name, composite)| { + let (call_fn_args, call_args): (Vec<_>, Vec<_>) = match &composite.kind { + CompositeIRKind::Named(named_fields) => named_fields .iter() .map(|(name, field)| { let fn_arg_type = &field.type_path; - let call_arg = if field.is_boxed() { + let call_arg = if field.is_boxed { quote! { #name: ::std::boxed::Box::new(#name) } } else { quote! { #name } @@ -54,15 +51,15 @@ pub fn generate_calls( (quote!( #name: #fn_arg_type ), call_arg) }) .unzip(), - CompositeDefFields::NoFields => Default::default(), - CompositeDefFields::Unnamed(_) => { + CompositeIRKind::NoFields => Default::default(), + CompositeIRKind::Unnamed(_) => { return Err(CodegenError::InvalidCallVariant(call_ty)) } }; let pallet_name = pallet.name(); let call_name = &variant_name; - let struct_name = &struct_def.name; + let struct_name = &composite.name; let Some(call_hash) = pallet.call_hash(call_name) else { return Err(CodegenError::MissingCallMetadata( pallet_name.into(), @@ -72,8 +69,10 @@ pub fn generate_calls( 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(); + let docs = &composite.docs; + // this converts the composite into a full struct type. No Type Parameters needed here. + let struct_def = type_gen.upcast_composite(&composite); // The call structure's documentation was stripped above. let call_struct = quote! { #struct_def @@ -105,12 +104,12 @@ pub fn generate_calls( .into_iter() .unzip(); - let call_type = type_gen.resolve_type_path(call_ty); - let call_ty = type_gen.resolve_type(call_ty); - let docs = &call_ty.docs; - let docs = should_gen_docs - .then_some(quote! { #( #[doc = #docs ] )* }) - .unwrap_or_default(); + let type_path_resolver = type_gen.type_path_resolver(); + let call_type = type_path_resolver.resolve_type_path(call_ty)?; + let call_ty = type_path_resolver.resolve_type(call_ty)?; + let docs = type_gen.docs_from_scale_info(&call_ty.docs); + + let types_mod_ident = type_gen.types_mod_ident(); Ok(quote! { #docs diff --git a/codegen/src/api/constants.rs b/codegen/src/api/constants.rs index 31fa7526c4..e2306b8dd8 100644 --- a/codegen/src/api/constants.rs +++ b/codegen/src/api/constants.rs @@ -2,10 +2,10 @@ // This file is dual-licensed as Apache-2.0 or GPL-3.0. // see LICENSE for license details. -use crate::types::TypeGenerator; use heck::ToSnakeCase as _; use proc_macro2::TokenStream as TokenStream2; use quote::{format_ident, quote}; +use scale_typegen::TypeGenerator; use subxt_metadata::PalletMetadata; use super::CodegenError; @@ -36,9 +36,7 @@ use super::CodegenError; pub fn generate_constants( type_gen: &TypeGenerator, pallet: &PalletMetadata, - types_mod_ident: &syn::Ident, crate_path: &syn::Path, - should_gen_docs: bool, ) -> Result { // Early return if the pallet has no constants. if pallet.constants().len() == 0 { @@ -58,9 +56,12 @@ pub fn generate_constants( )); }; - let return_ty = type_gen.resolve_type_path(constant.ty()); + let type_path_resolver = type_gen.type_path_resolver(); + let return_ty = type_path_resolver.resolve_type_path(constant.ty())?; let docs = constant.docs(); - let docs = should_gen_docs + let docs = type_gen + .settings + .should_gen_docs .then_some(quote! { #( #[doc = #docs ] )* }) .unwrap_or_default(); @@ -77,6 +78,8 @@ pub fn generate_constants( }) .collect::, _>>()?; + let types_mod_ident = type_gen.types_mod_ident(); + Ok(quote! { pub mod constants { use super::#types_mod_ident; diff --git a/codegen/src/api/custom_values.rs b/codegen/src/api/custom_values.rs index 1ef1381e19..1552f61fa2 100644 --- a/codegen/src/api/custom_values.rs +++ b/codegen/src/api/custom_values.rs @@ -2,10 +2,9 @@ // 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; use heck::ToSnakeCase as _; +use scale_typegen::TypeGenerator; +use std::collections::HashSet; use subxt_metadata::{CustomValueMetadata, Metadata}; use proc_macro2::TokenStream as TokenStream2; @@ -59,7 +58,9 @@ fn generate_custom_value_fn( .is_some(); let (return_ty, decodable) = if type_is_valid { let return_ty = type_gen + .type_path_resolver() .resolve_type_path(custom_value.type_id()) + .expect("expected to contain type id") .to_token_stream(); let decodable = quote!(#crate_path::custom_values::Yes); (return_ty, decodable) diff --git a/codegen/src/api/errors.rs b/codegen/src/api/errors.rs index 6a7503699e..e536c4e41d 100644 --- a/codegen/src/api/errors.rs +++ b/codegen/src/api/errors.rs @@ -4,10 +4,9 @@ use proc_macro2::TokenStream as TokenStream2; use quote::quote; +use scale_typegen::{typegen::type_path_resolver, TypeGenerator}; use subxt_metadata::PalletMetadata; -use crate::types::TypeGenerator; - use super::CodegenError; /// Generate error type alias from the provided pallet metadata. @@ -20,8 +19,9 @@ pub fn generate_error_type_alias( return Ok(quote!()); }; - let error_type = type_gen.resolve_type_path(error_ty); - let error_ty = type_gen.resolve_type(error_ty); + let type_path_resolver = type_gen.type_path_resolver(); + let error_type = type_path_resolver.resolve_type_path(error_ty)?; + let error_ty = type_path_resolver.resolve_type(error_ty)?; let docs = &error_ty.docs; let docs = should_gen_docs .then_some(quote! { #( #[doc = #docs ] )* }) diff --git a/codegen/src/api/events.rs b/codegen/src/api/events.rs index 383ed52694..8df4070644 100644 --- a/codegen/src/api/events.rs +++ b/codegen/src/api/events.rs @@ -2,9 +2,9 @@ // This file is dual-licensed as Apache-2.0 or GPL-3.0. // see LICENSE for license details. -use crate::types::TypeGenerator; use proc_macro2::TokenStream as TokenStream2; use quote::quote; +use scale_typegen::TypeGenerator; use subxt_metadata::PalletMetadata; use super::CodegenError; @@ -41,9 +41,7 @@ use super::CodegenError; pub fn generate_events( type_gen: &TypeGenerator, pallet: &PalletMetadata, - types_mod_ident: &syn::Ident, crate_path: &syn::Path, - should_gen_docs: bool, ) -> Result { // Early return if the pallet has no events. let Some(event_ty) = pallet.event_ty_id() else { @@ -56,29 +54,34 @@ pub fn generate_events( |name| name.into(), "Event", crate_path, - should_gen_docs, )?; - let event_structs = struct_defs.iter().map(|(variant_name, struct_def)| { + let event_structs = struct_defs.into_iter().map(|(variant_name, composite)| { let pallet_name = pallet.name(); - let event_struct = &struct_def.name; + let event_struct_name = &composite.name; let event_name = variant_name; + let struct_def = type_gen.upcast_composite(&composite); quote! { #struct_def - impl #crate_path::events::StaticEvent for #event_struct { + impl #crate_path::events::StaticEvent for #event_struct_name { 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 type_path_resolver = type_gen.type_path_resolver(); + let event_type = type_path_resolver.resolve_type_path(event_ty)?; + let event_ty = type_path_resolver.resolve_type(event_ty)?; let docs = &event_ty.docs; - let docs = should_gen_docs + let docs = type_gen + .settings + .should_gen_docs .then_some(quote! { #( #[doc = #docs ] )* }) .unwrap_or_default(); + let types_mod_ident = type_gen.types_mod_ident(); Ok(quote! { #docs diff --git a/codegen/src/api/mod.rs b/codegen/src/api/mod.rs index 640e804203..78c83ddfea 100644 --- a/codegen/src/api/mod.rs +++ b/codegen/src/api/mod.rs @@ -12,15 +12,13 @@ mod events; mod runtime_apis; mod storage; +use scale_typegen::typegen::ir::type_ir::{CompositeIR, TypeIR, TypeIRKind}; +use scale_typegen::typegen::type_params::TypeParameters; +use scale_typegen::{Derives, TypeGenerator, TypeGeneratorSettings, TypePathResolver}; use subxt_metadata::Metadata; -use crate::api::custom_values::generate_custom_values; use crate::error::CodegenError; -use crate::types::DerivesRegistry; -use crate::{ - ir, - types::{CompositeDef, CompositeDefFields, TypeGenerator, TypeSubstitutes}, -}; +use crate::{api::custom_values::generate_custom_values, ir}; use heck::ToSnakeCase as _; use proc_macro2::TokenStream as TokenStream2; @@ -60,8 +58,8 @@ impl RuntimeGenerator { pub fn generate_runtime_types( &self, item_mod: syn::ItemMod, - derives: DerivesRegistry, - type_substitutes: TypeSubstitutes, + derives: scale_typegen::DerivesRegistry, + type_substitutes: scale_typegen::TypeSubstitutes, crate_path: syn::Path, should_gen_docs: bool, ) -> Result { @@ -71,35 +69,37 @@ impl RuntimeGenerator { let mod_ident = &item_mod_ir.ident; let rust_items = item_mod_ir.rust_items(); - let type_gen = TypeGenerator::new( - self.metadata.types(), - "runtime_types", - type_substitutes, - derives, - crate_path, - should_gen_docs, - ); - let types_mod = type_gen.generate_types_mod()?; - - Ok(quote! { - #( #item_mod_attrs )* - #[allow(dead_code, unused_imports, non_camel_case_types)] - #[allow(clippy::all)] - #[allow(rustdoc::broken_intra_doc_links)] - pub mod #mod_ident { - // Preserve any Rust items that were previously defined in the adorned module - #( #rust_items ) * - - // Make it easy to access the root items via `root_mod` at different levels - // without reaching out of this module. - #[allow(unused_imports)] - mod root_mod { - pub use super::*; - } - - #types_mod - } - }) + // let type_gen = TypeGenerator::new( + // self.metadata.types(), + // "runtime_types", + // type_substitutes, + // derives, + // crate_path, + // should_gen_docs, + // ); + // let types_mod = type_gen.generate_types_mod()?; + + todo!() + + // Ok(quote! { + // #( #item_mod_attrs )* + // #[allow(dead_code, unused_imports, non_camel_case_types)] + // #[allow(clippy::all)] + // #[allow(rustdoc::broken_intra_doc_links)] + // pub mod #mod_ident { + // // Preserve any Rust items that were previously defined in the adorned module + // #( #rust_items ) * + + // // Make it easy to access the root items via `root_mod` at different levels + // // without reaching out of this module. + // #[allow(unused_imports)] + // mod root_mod { + // pub use super::*; + // } + + // #types_mod + // } + // }) } /// Generate the API for interacting with a Substrate runtime. @@ -114,24 +114,20 @@ impl RuntimeGenerator { pub fn generate_runtime( &self, item_mod: syn::ItemMod, - derives: DerivesRegistry, - type_substitutes: TypeSubstitutes, + derives: scale_typegen::DerivesRegistry, + type_substitutes: scale_typegen::TypeSubstitutes, crate_path: syn::Path, should_gen_docs: bool, ) -> Result { let item_mod_attrs = item_mod.attrs.clone(); let item_mod_ir = ir::ItemMod::try_from(item_mod)?; - let type_gen = TypeGenerator::new( - self.metadata.types(), - "runtime_types", - type_substitutes, - derives, - crate_path.clone(), - should_gen_docs, - ); + let settings = + subxt_type_gen_settings(derives, type_substitutes, &crate_path, should_gen_docs); + + let type_gen = TypeGenerator::new(self.metadata.types(), settings)?; let types_mod = type_gen.generate_types_mod()?; - let types_mod_ident = types_mod.ident(); + let types_mod_ident = type_gen.types_mod_ident(); let pallets_with_mod_names = self .metadata .pallets() @@ -165,37 +161,13 @@ impl RuntimeGenerator { let modules = pallets_with_mod_names .iter() .map(|(pallet, mod_name)| { - let calls = calls::generate_calls( - &type_gen, - pallet, - types_mod_ident, - &crate_path, - should_gen_docs, - )?; + let calls = calls::generate_calls(&type_gen, pallet, &crate_path)?; - let event = events::generate_events( - &type_gen, - pallet, - types_mod_ident, - &crate_path, - should_gen_docs, - )?; + let event = events::generate_events(&type_gen, pallet, &crate_path)?; - let storage_mod = storage::generate_storage( - &type_gen, - pallet, - types_mod_ident, - &crate_path, - should_gen_docs, - )?; + let storage_mod = storage::generate_storage(&type_gen, pallet, &crate_path)?; - let constants_mod = constants::generate_constants( - &type_gen, - pallet, - types_mod_ident, - &crate_path, - should_gen_docs, - )?; + let constants_mod = constants::generate_constants(&type_gen, pallet, &crate_path)?; let errors = errors::generate_error_type_alias(&type_gen, pallet, should_gen_docs)?; @@ -247,9 +219,14 @@ impl RuntimeGenerator { // Fetch the paths of the outer enums. // Substrate exposes those under `kitchensink_runtime`, while Polkadot under `polkadot_runtime`. - let call_path = type_gen.resolve_type_path(self.metadata.outer_enums().call_enum_ty()); - let event_path = type_gen.resolve_type_path(self.metadata.outer_enums().event_enum_ty()); - let error_path = type_gen.resolve_type_path(self.metadata.outer_enums().error_enum_ty()); + + let type_path_resolver = type_gen.type_path_resolver(); + let call_path = + type_path_resolver.resolve_type_path(self.metadata.outer_enums().call_enum_ty())?; + let event_path = + type_path_resolver.resolve_type_path(self.metadata.outer_enums().event_enum_ty())?; + let error_path = + type_path_resolver.resolve_type_path(self.metadata.outer_enums().error_enum_ty())?; let custom_values = generate_custom_values(&self.metadata, &type_gen, &crate_path); @@ -355,6 +332,20 @@ impl RuntimeGenerator { } } +fn subxt_type_gen_settings( + derives: scale_typegen::DerivesRegistry, + type_substitutes: scale_typegen::TypeSubstitutes, + crate_path: &syn::Path, + should_gen_docs: bool, +) -> TypeGeneratorSettings { + let mut settings = TypeGeneratorSettings::default() + .should_gen_docs(should_gen_docs) + .decoded_bits_type_path(parse_quote!(#crate_path::utils::bits::DecodedBits)); + settings.derives = derives; + settings.substitutes = type_substitutes; + settings +} + /// Return a vector of tuples of variant names and corresponding struct definitions. pub fn generate_structs_from_variants( type_gen: &TypeGenerator, @@ -362,12 +353,11 @@ pub fn generate_structs_from_variants( variant_to_struct_name: F, error_message_type_name: &str, crate_path: &syn::Path, - should_gen_docs: bool, -) -> Result, CodegenError> +) -> Result, CodegenError> where F: Fn(&str) -> std::borrow::Cow, { - let ty = type_gen.resolve_type(type_id); + let ty = type_gen.type_path_resolver().resolve_type(type_id)?; let scale_info::TypeDef::Variant(variant) = &ty.type_def else { return Err(CodegenError::InvalidType(error_message_type_name.into())); @@ -377,28 +367,36 @@ where .variants .iter() .map(|var| { - let struct_name = variant_to_struct_name(&var.name); + let mut type_params = TypeParameters::from_scale_info(&[]); + let composite_ir_kind = + type_gen.create_composite_ir_kind(&var.fields, &mut type_params)?; + // let fields = CompositeDefFields::from_scale_info_fields( + // struct_name.as_ref(), + // &var.fields, + // &[], + // type_gen, + // )?; - let fields = CompositeDefFields::from_scale_info_fields( - struct_name.as_ref(), - &var.fields, - &[], - type_gen, - )?; - - let docs = should_gen_docs.then_some(&*var.docs).unwrap_or_default(); - let struct_def = CompositeDef::struct_def( - &ty, - struct_name.as_ref(), - Default::default(), - fields, - Some(parse_quote!(pub)), - type_gen, - docs, - crate_path, - )?; - - Ok((var.name.to_string(), struct_def)) + let struct_name = variant_to_struct_name(&var.name); + let composite_ir = CompositeIR::new( + syn::parse_str(&struct_name).expect("enum variant name is valid ident"), + composite_ir_kind, + type_gen.docs_from_scale_info(&var.docs), + ); + + // let docs = should_gen_docs.then_some(&*var.docs).unwrap_or_default(); + // let struct_def = CompositeDef::struct_def( + // &ty, + // struct_name.as_ref(), + // Default::default(), + // fields, + // Some(parse_quote!(pub)), + // type_gen, + // docs, + // crate_path, + // )?; + + Ok((var.name.to_string(), composite_ir)) }) .collect() } diff --git a/codegen/src/api/runtime_apis.rs b/codegen/src/api/runtime_apis.rs index ea864903ff..13a19dfd36 100644 --- a/codegen/src/api/runtime_apis.rs +++ b/codegen/src/api/runtime_apis.rs @@ -2,28 +2,32 @@ // This file is dual-licensed as Apache-2.0 or GPL-3.0. // see LICENSE for license details. -use crate::{types::TypeGenerator, CodegenError}; use heck::ToSnakeCase as _; use heck::ToUpperCamelCase as _; +use scale_typegen::typegen::type_path_resolver; +use scale_typegen::TypeGenerator; use subxt_metadata::{Metadata, RuntimeApiMetadata}; use proc_macro2::TokenStream as TokenStream2; use quote::{format_ident, quote}; +use crate::CodegenError; + /// Generates runtime functions for the given API metadata. fn generate_runtime_api( api: RuntimeApiMetadata, type_gen: &TypeGenerator, - types_mod_ident: &syn::Ident, crate_path: &syn::Path, - should_gen_docs: bool, ) -> Result<(TokenStream2, TokenStream2), CodegenError> { + let type_path_resolver = type_gen.type_path_resolver(); // Trait name must remain as is (upper case) to identity the runtime call. let trait_name_str = api.name(); // The snake case for the trait name. let trait_name_snake = format_ident!("{}", api.name().to_snake_case()); let docs = api.docs(); - let docs: TokenStream2 = should_gen_docs + let docs: TokenStream2 = type_gen + .settings + .should_gen_docs .then_some(quote! { #( #[doc = #docs ] )* }) .unwrap_or_default(); @@ -32,7 +36,7 @@ fn generate_runtime_api( let method_name_str = method.name(); let docs = method.docs(); - let docs: TokenStream2 = should_gen_docs + let docs: TokenStream2 = type_gen.settings.should_gen_docs .then_some(quote! { #( #[doc = #docs ] )* }) .unwrap_or_default(); @@ -44,7 +48,7 @@ fn generate_runtime_api( } else { format_ident!("{}", &input.name) }; - let ty = type_gen.resolve_type_path(input.ty); + let ty = type_path_resolver.resolve_type_path(input.ty).expect("lookup of type should not fail"); let param = quote!(#name: #ty); (param, name) @@ -66,7 +70,7 @@ fn generate_runtime_api( } ); - let output = type_gen.resolve_type_path(method.output_ty()); + let output = type_path_resolver.resolve_type_path(method.output_ty())?; let Some(call_hash) = api.method_hash(method.name()) else { return Err(CodegenError::MissingRuntimeApiMetadata( @@ -94,6 +98,7 @@ fn generate_runtime_api( let structs = structs_and_methods.iter().map(|(struct_, _)| struct_); let methods = structs_and_methods.iter().map(|(_, method)| method); + let types_mod_ident = type_gen.types_mod_ident(); let runtime_api = quote!( pub mod #trait_name_snake { @@ -135,9 +140,7 @@ pub fn generate_runtime_apis( ) -> Result { let runtime_fns: Vec<_> = metadata .runtime_api_traits() - .map(|api| { - generate_runtime_api(api, type_gen, types_mod_ident, crate_path, should_gen_docs) - }) + .map(|api| generate_runtime_api(api, type_gen, crate_path)) .collect::>()?; let runtime_apis_def = runtime_fns.iter().map(|(apis, _)| apis); diff --git a/codegen/src/api/storage.rs b/codegen/src/api/storage.rs index f012f9ed56..88dfc9859f 100644 --- a/codegen/src/api/storage.rs +++ b/codegen/src/api/storage.rs @@ -2,12 +2,11 @@ // This file is dual-licensed as Apache-2.0 or GPL-3.0. // see LICENSE for license details. -use crate::types::TypeGenerator; -use crate::types::TypePath; use heck::ToSnakeCase as _; use proc_macro2::{Ident, TokenStream as TokenStream2, TokenStream}; use quote::{format_ident, quote}; use scale_info::TypeDef; +use scale_typegen::{typegen::type_path::TypePath, TypeGenerator}; use subxt_metadata::{ PalletMetadata, StorageEntryMetadata, StorageEntryModifier, StorageEntryType, }; @@ -26,9 +25,7 @@ use super::CodegenError; pub fn generate_storage( type_gen: &TypeGenerator, pallet: &PalletMetadata, - types_mod_ident: &syn::Ident, crate_path: &syn::Path, - should_gen_docs: bool, ) -> Result { let Some(storage) = pallet.storage() else { return Ok(quote!()); @@ -37,11 +34,11 @@ pub fn generate_storage( let storage_fns = storage .entries() .iter() - .map(|entry| { - generate_storage_entry_fns(type_gen, pallet, entry, crate_path, should_gen_docs) - }) + .map(|entry| generate_storage_entry_fns(type_gen, pallet, entry, crate_path)) .collect::, CodegenError>>()?; + let types_mod_ident = type_gen.types_mod_ident(); + Ok(quote! { pub mod storage { use super::#types_mod_ident; @@ -60,12 +57,12 @@ fn generate_storage_entry_fns( pallet: &PalletMetadata, storage_entry: &StorageEntryMetadata, crate_path: &syn::Path, - should_gen_docs: bool, ) -> Result { + let type_path_resolver = type_gen.type_path_resolver(); let keys: Vec<(Ident, TypePath)> = match storage_entry.entry_type() { StorageEntryType::Plain(_) => vec![], StorageEntryType::Map { key_ty, .. } => { - match &type_gen.resolve_type(*key_ty).type_def { + match &type_path_resolver.resolve_type(*key_ty)?.type_def { // An N-map; return each of the keys separately. TypeDef::Tuple(tuple) => tuple .fields @@ -73,14 +70,16 @@ fn generate_storage_entry_fns( .enumerate() .map(|(i, f)| { let ident: Ident = format_ident!("_{}", syn::Index::from(i)); - let ty_path = type_gen.resolve_type_path(f.id); + let ty_path = type_path_resolver + .resolve_type_path(f.id) + .expect("resolving type should not fail"); (ident, ty_path) }) .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); + let ty_path = type_path_resolver.resolve_type_path(*key_ty)?; vec![(ident, ty_path)] } } @@ -97,9 +96,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 storage_entry_value_ty = type_path_resolver.resolve_type_path(storage_entry_ty)?; let docs = storage_entry.docs(); - let docs = should_gen_docs + let docs = type_gen + .settings + .should_gen_docs .then_some(quote! { #( #[doc = #docs ] )* }) .unwrap_or_default(); @@ -176,6 +177,7 @@ mod tests { use frame_metadata::v15; use quote::{format_ident, quote}; use scale_info::{meta_type, MetaType}; + use scale_typegen::DerivesRegistry; use std::borrow::Cow; use subxt_metadata::Metadata; diff --git a/codegen/src/error.rs b/codegen/src/error.rs index 5b4dc90fa4..545d8eeefa 100644 --- a/codegen/src/error.rs +++ b/codegen/src/error.rs @@ -5,6 +5,7 @@ //! Errors that can be emitted from codegen. use proc_macro2::{Span, TokenStream as TokenStream2}; +use scale_typegen::TypeGenerationError; /// Error returned when the Codegen cannot generate the runtime API. #[derive(Debug, thiserror::Error)] @@ -56,6 +57,9 @@ pub enum CodegenError { "Extrinsic call type could not be found. Make sure you are providing a valid substrate-based metadata" )] MissingCallType, + /// Cannot generate types. + #[error("Type Generation failed")] + TypeGeneration(#[from] TypeGenerationError), } impl CodegenError { diff --git a/codegen/src/lib.rs b/codegen/src/lib.rs index e319b1aaff..e660aab63b 100644 --- a/codegen/src/lib.rs +++ b/codegen/src/lib.rs @@ -9,10 +9,8 @@ #![deny(unused_crate_dependencies, missing_docs)] mod api; -mod ir; -mod types; - pub mod error; +mod ir; // These should probably be in a separate crate; they are used by the // macro and CLI tool, so they only live here because this is a common @@ -25,15 +23,9 @@ use getrandom as _; use api::RuntimeGenerator; use proc_macro2::TokenStream as TokenStream2; +use scale_typegen::{DerivesRegistry, TypeSubstitutes}; use std::collections::HashMap; -// We expose these only because they are currently needed in subxt-explorer. -// Eventually we'll move the type generation stuff out into a separate crate. -#[doc(hidden)] -pub mod __private { - pub use crate::types::{DerivesRegistry, TypeDefGen, TypeGenerator, TypeSubstitutes}; -} - // Part of the public interface, so expose: pub use error::CodegenError; pub use subxt_metadata::Metadata; @@ -217,10 +209,12 @@ impl CodegenBuilder { pub fn generate(self, metadata: Metadata) -> Result { let crate_path = self.crate_path; - let mut derives_registry = if self.use_default_derives { - types::DerivesRegistry::with_default_derives(&crate_path) + let mut derives_registry: DerivesRegistry = if self.use_default_derives { + // types::DerivesRegistry::with_default_derives(&crate_path) + todo!() } else { - types::DerivesRegistry::new() + // types::DerivesRegistry::new() + todo!() }; derives_registry.extend_for_all(self.extra_global_derives, self.extra_global_attributes); @@ -232,16 +226,20 @@ impl CodegenBuilder { derives_registry.extend_for_type(ty, vec![], attributes); } - let mut type_substitutes = if self.use_default_substitutions { - types::TypeSubstitutes::with_default_substitutes(&crate_path) + let mut type_substitutes: TypeSubstitutes = if self.use_default_substitutions { + // types::TypeSubstitutes::with_default_substitutes(&crate_path) + + todo!() } else { - types::TypeSubstitutes::new() + // types::TypeSubstitutes::new() + todo!() }; - for (from, with) in self.type_substitutes { - let abs_path = with.try_into()?; - type_substitutes.insert(from, abs_path)?; - } + // for (from, with) in self.type_substitutes { + // let abs_path = with.try_into()?; + // type_substitutes.insert(from, abs_path)?; + // } + todo!(); let item_mod = self.item_mod; let generator = RuntimeGenerator::new(metadata); diff --git a/codegen/src/types/composite_def.rs b/codegen/src/types/composite_def.rs deleted file mode 100644 index 37787df083..0000000000 --- a/codegen/src/types/composite_def.rs +++ /dev/null @@ -1,332 +0,0 @@ -// Copyright 2019-2023 Parity Technologies (UK) Ltd. -// This file is dual-licensed as Apache-2.0 or GPL-3.0. -// see LICENSE for license details. - -use crate::error::CodegenError; - -use super::{Derives, Field, TypeDefParameters, TypeGenerator, TypeParameter, TypePath}; -use proc_macro2::TokenStream; -use quote::{format_ident, quote}; -use scale_info::{form::PortableForm, Type, TypeDef, TypeDefPrimitive}; - -/// Representation of a type which consists of a set of fields. Used to generate Rust code for -/// either a standalone `struct` definition, or an `enum` variant. -/// -/// Fields can either be named or unnamed in either case. -#[derive(Debug)] -pub struct CompositeDef { - /// The name of the `struct`, or the name of the `enum` variant. - pub name: syn::Ident, - /// Generate either a standalone `struct` or an `enum` variant. - pub kind: CompositeDefKind, - /// The fields of the type, which are either all named or all unnamed. - pub fields: CompositeDefFields, - /// Documentation of the composite type as presented in metadata. - pub docs: Option, -} - -impl CompositeDef { - /// Construct a definition which will generate code for a standalone `struct`. - #[allow(clippy::too_many_arguments)] - pub fn struct_def( - ty: &Type, - ident: &str, - type_params: TypeDefParameters, - fields_def: CompositeDefFields, - field_visibility: Option, - type_gen: &TypeGenerator, - docs: &[String], - crate_path: &syn::Path, - ) -> Result { - let mut derives = type_gen.type_derives(ty)?; - let fields: Vec<_> = fields_def.field_types().collect(); - - if fields.len() == 1 { - // any single field wrapper struct with a concrete unsigned int type can derive - // CompactAs. - let field = &fields[0]; - if !type_params - .params() - .iter() - .any(|tp| Some(tp.original_name.to_string()) == field.type_name) - { - let ty = type_gen.resolve_type(field.type_id); - if matches!( - ty.type_def, - TypeDef::Primitive( - TypeDefPrimitive::U8 - | TypeDefPrimitive::U16 - | TypeDefPrimitive::U32 - | TypeDefPrimitive::U64 - | TypeDefPrimitive::U128 - ) - ) { - derives.insert_codec_compact_as(crate_path) - } - } - } - - let name = format_ident!("{}", ident); - let docs_token = Some(quote! { #( #[doc = #docs ] )* }); - - Ok(Self { - name, - kind: CompositeDefKind::Struct { - derives, - type_params, - field_visibility, - }, - fields: fields_def, - docs: docs_token, - }) - } - - /// Construct a definition which will generate code for an `enum` variant. - pub fn enum_variant_def(ident: &str, fields: CompositeDefFields, docs: &[String]) -> Self { - let name = format_ident!("{}", ident); - let docs_token = Some(quote! { #( #[doc = #docs ] )* }); - Self { - name, - kind: CompositeDefKind::EnumVariant, - fields, - docs: docs_token, - } - } -} - -impl quote::ToTokens for CompositeDef { - fn to_tokens(&self, tokens: &mut TokenStream) { - let name = &self.name; - let docs = &self.docs; - - let decl = match &self.kind { - CompositeDefKind::Struct { - derives, - type_params, - field_visibility, - } => { - let phantom_data = type_params.unused_params_phantom_data(); - let fields = self - .fields - .to_struct_field_tokens(phantom_data, field_visibility.as_ref()); - let trailing_semicolon = matches!( - self.fields, - CompositeDefFields::NoFields | CompositeDefFields::Unnamed(_) - ) - .then(|| quote!(;)); - - quote! { - #derives - #docs - pub struct #name #type_params #fields #trailing_semicolon - } - } - CompositeDefKind::EnumVariant => { - let fields = self.fields.to_enum_variant_field_tokens(); - - quote! { - #docs - #name #fields - } - } - }; - tokens.extend(decl) - } -} - -/// Which kind of composite type are we generating, either a standalone `struct` or an `enum` -/// variant. -#[derive(Debug)] -pub enum CompositeDefKind { - /// Composite type comprising a Rust `struct`. - Struct { - derives: Derives, - type_params: TypeDefParameters, - field_visibility: Option, - }, - /// Comprises a variant of a Rust `enum`. - EnumVariant, -} - -/// Encapsulates the composite fields, keeping the invariant that all fields are either named or -/// unnamed. -#[derive(Debug)] -pub enum CompositeDefFields { - NoFields, - Named(Vec<(syn::Ident, CompositeDefFieldType)>), - Unnamed(Vec), -} - -impl CompositeDefFields { - /// Construct a new set of composite fields from the supplied [`::scale_info::Field`]s. - pub fn from_scale_info_fields( - name: &str, - fields: &[Field], - parent_type_params: &[TypeParameter], - type_gen: &TypeGenerator, - ) -> Result { - if fields.is_empty() { - return Ok(Self::NoFields); - } - - let mut named_fields = Vec::new(); - let mut unnamed_fields = Vec::new(); - - for field in fields { - let type_path = type_gen.resolve_field_type_path( - field.ty.id, - parent_type_params, - field.type_name.as_deref(), - ); - let field_type = - CompositeDefFieldType::new(field.ty.id, type_path, field.type_name.clone()); - - if let Some(name) = &field.name { - let field_name = format_ident!("{}", name); - named_fields.push((field_name, field_type)) - } else { - unnamed_fields.push(field_type) - } - } - - if !named_fields.is_empty() && !unnamed_fields.is_empty() { - return Err(CodegenError::InvalidFields(name.into())); - } - - let res = if !named_fields.is_empty() { - Self::Named(named_fields) - } else { - Self::Unnamed(unnamed_fields) - }; - Ok(res) - } - - /// Returns the set of composite fields. - pub fn field_types(&self) -> Box + '_> { - match self { - Self::NoFields => Box::new([].iter()), - Self::Named(named_fields) => Box::new(named_fields.iter().map(|(_, f)| f)), - Self::Unnamed(unnamed_fields) => Box::new(unnamed_fields.iter()), - } - } - - /// Generate the code for fields which will compose a `struct`. - pub fn to_struct_field_tokens( - &self, - phantom_data: Option, - visibility: Option<&syn::Visibility>, - ) -> TokenStream { - match self { - Self::NoFields => { - if let Some(phantom_data) = phantom_data { - quote! { ( #phantom_data ) } - } else { - quote! {} - } - } - Self::Named(ref fields) => { - let fields = fields.iter().map(|(name, ty)| { - let compact_attr = ty.compact_attr(); - quote! { #compact_attr #visibility #name: #ty } - }); - let marker = phantom_data.map(|phantom_data| { - quote!( - #[codec(skip)] - #visibility __subxt_unused_type_params: #phantom_data - ) - }); - quote!( - { - #( #fields, )* - #marker - } - ) - } - Self::Unnamed(ref fields) => { - let fields = fields.iter().map(|ty| { - let compact_attr = ty.compact_attr(); - quote! { #compact_attr #visibility #ty } - }); - let marker = phantom_data.map(|phantom_data| { - quote!( - #[codec(skip)] - #visibility #phantom_data - ) - }); - quote! { - ( - #( #fields, )* - #marker - ) - } - } - } - } - - /// Generate the code for fields which will compose an `enum` variant. - pub fn to_enum_variant_field_tokens(&self) -> TokenStream { - match self { - Self::NoFields => quote! {}, - Self::Named(ref fields) => { - let fields = fields.iter().map(|(name, ty)| { - let compact_attr = ty.compact_attr(); - quote! { #compact_attr #name: #ty } - }); - quote!( { #( #fields, )* } ) - } - Self::Unnamed(ref fields) => { - let fields = fields.iter().map(|ty| { - let compact_attr = ty.compact_attr(); - quote! { #compact_attr #ty } - }); - quote! { ( #( #fields, )* ) } - } - } - } -} - -/// Represents a field of a composite type to be generated. -#[derive(Debug)] -pub struct CompositeDefFieldType { - pub type_id: u32, - pub type_path: TypePath, - pub type_name: Option, -} - -impl CompositeDefFieldType { - /// Construct a new [`CompositeDefFieldType`]. - pub fn new(type_id: u32, type_path: TypePath, type_name: Option) -> Self { - CompositeDefFieldType { - type_id, - type_path, - type_name, - } - } - - /// Returns `true` if the field is a [`::std::boxed::Box`]. - pub fn is_boxed(&self) -> bool { - // Use the type name to detect a `Box` field. - // Should be updated once `Box` types are no longer erased: - // https://github.com/paritytech/scale-info/pull/82 - matches!(&self.type_name, Some(ty_name) if ty_name.contains("Box<")) - } - - /// Returns the `#[codec(compact)]` attribute if the type is compact. - fn compact_attr(&self) -> Option { - self.type_path - .is_compact() - .then(|| quote!( #[codec(compact)] )) - } -} - -impl quote::ToTokens for CompositeDefFieldType { - fn to_tokens(&self, tokens: &mut TokenStream) { - let ty_path = &self.type_path; - - if self.is_boxed() { - tokens.extend(quote! { ::std::boxed::Box<#ty_path> }) - } else { - tokens.extend(quote! { #ty_path }) - }; - } -} diff --git a/codegen/src/types/derives.rs b/codegen/src/types/derives.rs deleted file mode 100644 index 429591ed8a..0000000000 --- a/codegen/src/types/derives.rs +++ /dev/null @@ -1,199 +0,0 @@ -// Copyright 2019-2023 Parity Technologies (UK) Ltd. -// This file is dual-licensed as Apache-2.0 or GPL-3.0. -// see LICENSE for license details. - -use syn::{parse_quote, Path}; - -use std::collections::{HashMap, HashSet}; - -/// A struct containing the derives that we'll be applying to types; -/// a combination of some common derives for all types, plus type -/// specific derives. -#[derive(Debug, Clone)] -pub struct DerivesRegistry { - default_derives: Derives, - specific_type_derives: HashMap, -} - -impl Default for DerivesRegistry { - fn default() -> Self { - Self::new() - } -} - -impl DerivesRegistry { - /// Creates a new `DerivesRegistry` with no default derives. - pub fn new() -> Self { - Self { - default_derives: Derives::new(), - specific_type_derives: Default::default(), - } - } - - /// Creates a new `DerivesRegistry` with default derives. - /// - /// The `crate_path` denotes the `subxt` crate access path in the - /// generated code. - pub fn with_default_derives(crate_path: &syn::Path) -> Self { - Self { - default_derives: Derives::with_defaults(crate_path), - specific_type_derives: Default::default(), - } - } - - /// Insert derives to be applied to all generated types. - pub fn extend_for_all( - &mut self, - derives: impl IntoIterator, - attributes: impl IntoIterator, - ) { - self.default_derives.derives.extend(derives); - self.default_derives.attributes.extend(attributes); - } - - /// Insert derives to be applied to a specific generated type. - pub fn extend_for_type( - &mut self, - ty: syn::TypePath, - derives: impl IntoIterator, - attributes: impl IntoIterator, - ) { - let type_derives = self.specific_type_derives.entry(ty).or_default(); - type_derives.derives.extend(derives); - type_derives.attributes.extend(attributes); - } - - /// Returns the derives to be applied to all generated types. - pub fn default_derives(&self) -> &Derives { - &self.default_derives - } - - /// Resolve the derives for a generated type. Includes: - /// - The default derives for all types e.g. `scale::Encode, scale::Decode` - /// - Any user-defined derives for all types via `generated_type_derives` - /// - Any user-defined derives for this specific type - pub fn resolve(&self, ty: &syn::TypePath) -> Derives { - let mut resolved_derives = self.default_derives.clone(); - if let Some(specific) = self.specific_type_derives.get(ty) { - resolved_derives.extend_from(specific.clone()); - } - resolved_derives - } -} - -/// A struct storing the set of derives and derive attributes that we'll apply -/// to generated types. -#[derive(Debug, Clone)] -pub struct Derives { - derives: HashSet, - attributes: HashSet, -} - -impl Default for Derives { - fn default() -> Self { - Self::new() - } -} - -impl FromIterator for Derives { - fn from_iter>(iter: T) -> Self { - let derives = iter.into_iter().collect(); - Self { - derives, - attributes: HashSet::new(), - } - } -} - -impl Derives { - /// Creates an empty instance of `Derives` (with no default derives). - pub fn new() -> Self { - Self { - derives: HashSet::new(), - attributes: HashSet::new(), - } - } - - /// Creates a new instance of `Derives` with the `crate_path` prepended - /// to the set of default derives that reside in `subxt`. - pub fn with_defaults(crate_path: &syn::Path) -> Self { - let mut derives = HashSet::new(); - let mut attributes = HashSet::new(); - - derives.insert(syn::parse_quote!(#crate_path::ext::scale_encode::EncodeAsType)); - let encode_crate_path = quote::quote! { #crate_path::ext::scale_encode }.to_string(); - attributes.insert(syn::parse_quote!(#[encode_as_type(crate_path = #encode_crate_path)])); - - derives.insert(syn::parse_quote!(#crate_path::ext::scale_decode::DecodeAsType)); - let decode_crate_path = quote::quote! { #crate_path::ext::scale_decode }.to_string(); - attributes.insert(syn::parse_quote!(#[decode_as_type(crate_path = #decode_crate_path)])); - - derives.insert(syn::parse_quote!(#crate_path::ext::codec::Encode)); - derives.insert(syn::parse_quote!(#crate_path::ext::codec::Decode)); - attributes.insert(syn::parse_quote!(#[codec(crate = #crate_path::ext::codec)])); - - derives.insert(syn::parse_quote!(Debug)); - - Self { - derives, - attributes, - } - } - - /// Extend this set of `Derives` from another. - pub fn extend_from(&mut self, other: Derives) { - self.derives.extend(other.derives); - self.attributes.extend(other.attributes); - } - - /// Add `#crate_path::ext::codec::CompactAs` to the derives. - pub fn insert_codec_compact_as(&mut self, crate_path: &syn::Path) { - self.insert_derive(parse_quote!(#crate_path::ext::codec::CompactAs)); - } - - /// Extend the set of derives by providing an iterator of paths to derive macros. - pub fn extend(&mut self, derives: impl Iterator) { - for derive in derives { - self.insert_derive(derive) - } - } - - /// Insert a single derive. - pub fn insert_derive(&mut self, derive: syn::Path) { - self.derives.insert(derive); - } - - /// Insert a single attribute to be applied to types. - pub fn insert_attribute(&mut self, attribute: syn::Attribute) { - self.attributes.insert(attribute); - } -} - -impl quote::ToTokens for Derives { - fn to_tokens(&self, tokens: &mut proc_macro2::TokenStream) { - if !self.derives.is_empty() { - let mut sorted = self.derives.iter().cloned().collect::>(); - sorted.sort_by(|a, b| { - quote::quote!(#a) - .to_string() - .cmp("e::quote!(#b).to_string()) - }); - - tokens.extend(quote::quote! { - #[derive(#( #sorted ),*)] - }) - } - if !self.attributes.is_empty() { - let mut sorted = self.attributes.iter().cloned().collect::>(); - sorted.sort_by(|a, b| { - quote::quote!(#a) - .to_string() - .cmp("e::quote!(#b).to_string()) - }); - - tokens.extend(quote::quote! { - #( #sorted )* - }) - } - } -} diff --git a/codegen/src/types/mod.rs b/codegen/src/types/mod.rs deleted file mode 100644 index 4d1738f1e0..0000000000 --- a/codegen/src/types/mod.rs +++ /dev/null @@ -1,336 +0,0 @@ -// Copyright 2019-2023 Parity Technologies (UK) Ltd. -// This file is dual-licensed as Apache-2.0 or GPL-3.0. -// see LICENSE for license details. - -mod composite_def; -mod derives; -mod substitutes; -#[cfg(test)] -mod tests; -mod type_def; -mod type_def_params; -mod type_path; - -use proc_macro2::{Ident, Span, TokenStream}; -use quote::{quote, ToTokens}; -use scale_info::{form::PortableForm, PortableRegistry, Type, TypeDef}; -use std::collections::BTreeMap; - -use crate::error::CodegenError; - -pub use self::{ - composite_def::{CompositeDef, CompositeDefFieldType, CompositeDefFields}, - derives::{Derives, DerivesRegistry}, - substitutes::{AbsolutePath, TypeSubstitutes}, - type_def::TypeDefGen, - type_def_params::TypeDefParameters, - type_path::{TypeParameter, TypePath, TypePathType}, -}; - -pub type Field = scale_info::Field; - -/// Generate a Rust module containing all types defined in the supplied [`PortableRegistry`]. -#[derive(Debug)] -pub struct TypeGenerator<'a> { - /// The name of the module which will contain the generated types. - types_mod_ident: Ident, - /// Registry of type definitions to be transformed into Rust type definitions. - type_registry: &'a PortableRegistry, - /// User defined overrides for generated types. - type_substitutes: TypeSubstitutes, - /// Set of derives with which to annotate generated types. - derives: DerivesRegistry, - /// The `subxt` crate access path in the generated code. - crate_path: syn::Path, - /// True if codegen should generate the documentation for the API. - should_gen_docs: bool, -} - -impl<'a> TypeGenerator<'a> { - /// Construct a new [`TypeGenerator`]. - pub fn new( - type_registry: &'a PortableRegistry, - root_mod: &'static str, - type_substitutes: TypeSubstitutes, - derives: DerivesRegistry, - crate_path: syn::Path, - should_gen_docs: bool, - ) -> Self { - let root_mod_ident = Ident::new(root_mod, Span::call_site()); - Self { - types_mod_ident: root_mod_ident, - type_registry, - type_substitutes, - derives, - crate_path, - should_gen_docs, - } - } - - /// Generate a module containing all types defined in the supplied type registry. - pub fn generate_types_mod(&self) -> Result { - let root_mod_ident = &self.types_mod_ident; - let mut root_mod = Module::new(root_mod_ident.clone(), root_mod_ident.clone()); - - for ty in &self.type_registry.types { - let path = &ty.ty.path; - // Don't generate a type if it was substituted - the target type might - // not be in the type registry + our resolution already performs the substitution. - if self.type_substitutes.contains(path) { - continue; - } - - let namespace = path.namespace(); - - // prelude types e.g. Option/Result have no namespace, so we don't generate them - if namespace.is_empty() { - continue; - } - - // Lazily create submodules for the encountered namespace path, if they don't exist - let innermost_module = namespace - .iter() - .map(|segment| Ident::new(segment, Span::call_site())) - .fold(&mut root_mod, |module, ident| { - module - .children - .entry(ident.clone()) - .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)?, - ); - } - - Ok(root_mod) - } - - /// # Panics - /// - /// If no type with the given id found in the type registry. - pub fn resolve_type(&self, id: u32) -> Type { - self.type_registry - .resolve(id) - .unwrap_or_else(|| panic!("No type with id {id} found")) - .clone() - } - - /// Get the type path for a field of a struct or an enum variant, providing any generic - /// type parameters from the containing type. This is for identifying where a generic type - /// parameter is used in a field type e.g. - /// - /// ```rust - /// struct S { - /// a: T, // `T` is the "parent" type param from the containing type. - /// b: Vec>, // nested use of generic type param `T`. - /// } - /// ``` - /// - /// This allows generating the correct generic field type paths. - /// - /// # Panics - /// - /// If no type with the given id found in the type registry. - pub fn resolve_field_type_path( - &self, - id: u32, - parent_type_params: &[TypeParameter], - original_name: Option<&str>, - ) -> TypePath { - self.resolve_type_path_recurse(id, true, parent_type_params, original_name) - } - - /// Get the type path for the given type identifier. - /// - /// # Panics - /// - /// If no type with the given id found in the type registry. - pub fn resolve_type_path(&self, id: u32) -> TypePath { - self.resolve_type_path_recurse(id, false, &[], None) - } - - /// Visit each node in a possibly nested type definition to produce a type path. - /// - /// e.g `Result>, String>` - /// - /// if `original_name` is `Some(original_name)`, the resolved type needs to have the same `original_name`. - fn resolve_type_path_recurse( - &self, - id: u32, - is_field: bool, - parent_type_params: &[TypeParameter], - original_name: Option<&str>, - ) -> TypePath { - if let Some(parent_type_param) = parent_type_params.iter().find(|tp| { - tp.concrete_type_id == id - && original_name.map_or(true, |original_name| tp.original_name == original_name) - }) { - return TypePath::from_parameter(parent_type_param.clone()); - } - - let mut ty = self.resolve_type(id); - - if ty.path.ident() == Some("Cow".to_string()) { - ty = self.resolve_type( - ty.type_params[0] - .ty - .expect("type parameters to Cow are not expected to be skipped; qed") - .id, - ) - } - - let params: Vec<_> = ty - .type_params - .iter() - .filter_map(|f| { - f.ty.map(|f| self.resolve_type_path_recurse(f.id, false, parent_type_params, None)) - }) - .collect(); - - let ty = match &ty.type_def { - TypeDef::Composite(_) | TypeDef::Variant(_) => { - if let Some(ty) = self - .type_substitutes - .for_path_with_params(&ty.path, ¶ms) - { - ty - } else { - TypePathType::from_type_def_path(&ty.path, self.types_mod_ident.clone(), params) - } - } - TypeDef::Primitive(primitive) => TypePathType::Primitive { - def: primitive.clone(), - }, - TypeDef::Array(arr) => TypePathType::Array { - len: arr.len as usize, - of: Box::new(self.resolve_type_path_recurse( - arr.type_param.id, - false, - parent_type_params, - None, - )), - }, - TypeDef::Sequence(seq) => TypePathType::Vec { - of: Box::new(self.resolve_type_path_recurse( - seq.type_param.id, - false, - parent_type_params, - None, - )), - }, - TypeDef::Tuple(tuple) => TypePathType::Tuple { - elements: tuple - .fields - .iter() - .map(|f| self.resolve_type_path_recurse(f.id, false, parent_type_params, None)) - .collect(), - }, - TypeDef::Compact(compact) => TypePathType::Compact { - inner: Box::new(self.resolve_type_path_recurse( - compact.type_param.id, - false, - parent_type_params, - None, - )), - is_field, - crate_path: self.crate_path.clone(), - }, - TypeDef::BitSequence(bitseq) => TypePathType::BitVec { - bit_order_type: Box::new(self.resolve_type_path_recurse( - bitseq.bit_order_type.id, - false, - parent_type_params, - None, - )), - bit_store_type: Box::new(self.resolve_type_path_recurse( - bitseq.bit_store_type.id, - false, - parent_type_params, - None, - )), - crate_path: self.crate_path.clone(), - }, - }; - - TypePath::from_type(ty) - } - - /// Returns the derives to be applied to all generated types. - pub fn default_derives(&self) -> &Derives { - self.derives.default_derives() - } - - /// Returns the type registry. - pub fn types(&self) -> &PortableRegistry { - self.type_registry - } - - /// Returns the derives to be applied to a generated type. - pub fn type_derives(&self, ty: &Type) -> Result { - let joined_path = ty.path.segments.join("::"); - let ty_path: syn::TypePath = syn::parse_str(&joined_path) - .map_err(|e| CodegenError::InvalidTypePath(joined_path, e))?; - Ok(self.derives.resolve(&ty_path)) - } -} - -/// Represents a Rust `mod`, containing generated types and child `mod`s. -#[derive(Debug)] -pub struct Module { - name: Ident, - root_mod: Ident, - children: BTreeMap, - types: BTreeMap, TypeDefGen>, -} - -impl ToTokens for Module { - fn to_tokens(&self, tokens: &mut TokenStream) { - let name = &self.name; - let root_mod = &self.root_mod; - let modules = self.children.values(); - let types = self.types.values().clone(); - - tokens.extend(quote! { - pub mod #name { - use super::#root_mod; - - #( #modules )* - #( #types )* - } - }) - } -} - -impl Module { - /// Create a new [`Module`], with a reference to the root `mod` for resolving type paths. - pub(crate) fn new(name: Ident, root_mod: Ident) -> Self { - Self { - name, - root_mod, - children: BTreeMap::new(), - types: BTreeMap::new(), - } - } - - /// Returns the module ident. - pub fn ident(&self) -> &Ident { - &self.name - } - - /// Returns this `Module`s child `mod`s. - pub fn children(&self) -> impl Iterator { - self.children.iter() - } - - /// Returns the generated types. - pub fn types(&self) -> impl Iterator, &TypeDefGen)> { - self.types.iter() - } - - /// Returns the root `mod` used for resolving type paths. - pub fn root_mod(&self) -> &Ident { - &self.root_mod - } -} diff --git a/codegen/src/types/substitutes.rs b/codegen/src/types/substitutes.rs deleted file mode 100644 index c2639c3736..0000000000 --- a/codegen/src/types/substitutes.rs +++ /dev/null @@ -1,529 +0,0 @@ -// Copyright 2019-2023 Parity Technologies (UK) Ltd. -// This file is dual-licensed as Apache-2.0 or GPL-3.0. -// see LICENSE for license details. - -use crate::error::TypeSubstitutionError; -use std::{borrow::Borrow, collections::HashMap}; -use syn::{parse_quote, spanned::Spanned as _}; - -use super::{TypePath, TypePathType}; - -/// A map of type substitutes. We match on the paths to generated types in order -/// to figure out when to swap said type with some provided substitute. -#[derive(Debug)] -pub struct TypeSubstitutes { - substitutes: HashMap, -} - -#[derive(Debug)] -struct Substitute { - path: syn::Path, - param_mapping: TypeParamMapping, -} - -#[derive(Debug)] -enum TypeParamMapping { - // Pass any generics from source to target type - PassThrough, - // Replace any ident seen in the path with the input generic type at this index - Specified(Vec<(syn::Ident, usize)>), -} - -macro_rules! path_segments { - ($($ident: ident)::*) => { - PathSegments( - [$(stringify!($ident)),*].into_iter().map(String::from).collect::>() - ) - } -} - -impl Default for TypeSubstitutes { - fn default() -> Self { - Self::new() - } -} - -impl TypeSubstitutes { - /// Creates a new `TypeSubstitutes` with no default derives. - pub fn new() -> Self { - Self { - substitutes: HashMap::new(), - } - } - - /// Creates a new `TypeSubstitutes` with some default substitutions in place. - /// - /// The `crate_path` denotes the `subxt` crate access path in the - /// generated code. - pub fn with_default_substitutes(crate_path: &syn::Path) -> Self { - // Some hardcoded default type substitutes, can be overridden by user - let defaults = [ - ( - path_segments!(bitvec::order::Lsb0), - parse_quote!(#crate_path::utils::bits::Lsb0), - ), - ( - path_segments!(bitvec::order::Msb0), - parse_quote!(#crate_path::utils::bits::Msb0), - ), - ( - path_segments!(sp_core::crypto::AccountId32), - parse_quote!(#crate_path::utils::AccountId32), - ), - ( - path_segments!(sp_runtime::multiaddress::MultiAddress), - parse_quote!(#crate_path::utils::MultiAddress), - ), - ( - path_segments!(primitive_types::H160), - parse_quote!(#crate_path::utils::H160), - ), - ( - path_segments!(primitive_types::H256), - parse_quote!(#crate_path::utils::H256), - ), - ( - path_segments!(primitive_types::H512), - parse_quote!(#crate_path::utils::H512), - ), - ( - path_segments!(frame_support::traits::misc::WrapperKeepOpaque), - parse_quote!(#crate_path::utils::WrapperKeepOpaque), - ), - // BTreeMap and BTreeSet impose an `Ord` constraint on their key types. This - // can cause an issue with generated code that doesn't impl `Ord` by default. - // Decoding them to Vec by default (KeyedVec is just an alias for Vec with - // suitable type params) avoids these issues. - ( - path_segments!(BTreeMap), - parse_quote!(#crate_path::utils::KeyedVec), - ), - (path_segments!(BTreeSet), parse_quote!(::std::vec::Vec)), - // The `UncheckedExtrinsic(pub Vec)` is part of the runtime API calls. - // The inner bytes represent the encoded extrinsic, however when deriving the - // `EncodeAsType` the bytes would be re-encoded. This leads to the bytes - // being altered by adding the length prefix in front of them. - ( - path_segments!(sp_runtime::generic::unchecked_extrinsic::UncheckedExtrinsic), - parse_quote!(#crate_path::utils::UncheckedExtrinsic), - ), - ]; - - let default_substitutes = defaults - .into_iter() - .map(|(k, v)| { - ( - k, - Substitute { - path: v, - param_mapping: TypeParamMapping::PassThrough, - }, - ) - }) - .collect(); - - Self { - substitutes: default_substitutes, - } - } - - /// Insert the given substitution, overwriting any other with the same path. - pub fn insert( - &mut self, - source: syn::Path, - target: AbsolutePath, - ) -> Result<(), TypeSubstitutionError> { - let (key, val) = TypeSubstitutes::parse_path_substitution(source, target.0)?; - self.substitutes.insert(key, val); - Ok(()) - } - - /// Only insert the given substitution if a substitution at that path doesn't - /// already exist. - pub fn insert_if_not_exists( - &mut self, - source: syn::Path, - target: AbsolutePath, - ) -> Result<(), TypeSubstitutionError> { - let (key, val) = TypeSubstitutes::parse_path_substitution(source, target.0)?; - self.substitutes.entry(key).or_insert(val); - Ok(()) - } - - /// Add a bunch of source to target type substitutions. - pub fn extend( - &mut self, - elems: impl IntoIterator, - ) -> Result<(), TypeSubstitutionError> { - for (source, target) in elems.into_iter() { - let (key, val) = TypeSubstitutes::parse_path_substitution(source, target.0)?; - self.substitutes.insert(key, val); - } - Ok(()) - } - - /// Given a source and target path, parse the type params to work out the mapping from - /// source to target, and output the source => substitution mapping that we work out from this. - fn parse_path_substitution( - src_path: syn::Path, - target_path: syn::Path, - ) -> Result<(PathSegments, Substitute), TypeSubstitutionError> { - let param_mapping = Self::parse_path_param_mapping(&src_path, &target_path)?; - - Ok(( - PathSegments::from(&src_path), - Substitute { - // Note; at this point, target_path might have some generics still. These - // might be hardcoded types that we want to keep, so leave them here for now. - path: target_path, - param_mapping, - }, - )) - } - - /// Given a source and target path, parse the type params to work out the mapping from - /// source to target, and return it. - fn parse_path_param_mapping( - src_path: &syn::Path, - target_path: &syn::Path, - ) -> Result { - let Some(syn::PathSegment { - arguments: src_path_args, - .. - }) = src_path.segments.last() - else { - return Err(TypeSubstitutionError::EmptySubstitutePath(src_path.span())); - }; - let Some(syn::PathSegment { - arguments: target_path_args, - .. - }) = target_path.segments.last() - else { - return Err(TypeSubstitutionError::EmptySubstitutePath( - target_path.span(), - )); - }; - - // Get hold of the generic args for the "from" type, erroring if they aren't valid. - let source_args = match src_path_args { - syn::PathArguments::None => { - // No generics defined on the source type: - Vec::new() - } - syn::PathArguments::AngleBracketed(args) => { - // We have generics like defined on the source type (error for any non-ident type): - args.args - .iter() - .map(|arg| match get_valid_from_substitution_type(arg) { - Some(ident) => Ok(ident), - None => Err(TypeSubstitutionError::InvalidFromType(arg.span())), - }) - .collect::, _>>()? - } - syn::PathArguments::Parenthesized(args) => { - // Generics like (A,B) -> defined; not allowed: - return Err(TypeSubstitutionError::ExpectedAngleBracketGenerics( - args.span(), - )); - } - }; - - // Get hold of the generic args for the "to" type, erroring if they aren't valid. - let target_args = match target_path_args { - syn::PathArguments::None => { - // No generics on target. - Vec::new() - } - syn::PathArguments::AngleBracketed(args) => { - // We have generics like defined on the target type. - args.args - .iter() - .map(|arg| match get_valid_to_substitution_type(arg) { - Some(arg) => Ok(arg), - None => Err(TypeSubstitutionError::InvalidToType(arg.span())), - }) - .collect::, _>>()? - } - syn::PathArguments::Parenthesized(args) => { - // Generics like (A,B) -> defined; not allowed: - return Err(TypeSubstitutionError::ExpectedAngleBracketGenerics( - args.span(), - )); - } - }; - - // If no generics defined on source or target, we just apply any concrete generics - // to the substitute type. - if source_args.is_empty() && target_args.is_empty() { - return Ok(TypeParamMapping::PassThrough); - } - - // Make a note of the idents in the source args and their indexes. - let mapping = source_args - .into_iter() - .enumerate() - .map(|(idx, ident)| (ident.clone(), idx)) - .collect(); - - Ok(TypeParamMapping::Specified(mapping)) - } - - /// Given a source type path, return whether a substitute exists for it. - pub fn contains(&self, path: impl Into) -> bool { - self.substitutes.contains_key(&path.into()) - } - - /// Given a source type path and the resolved, supplied type parameters, - /// return a new path and optionally overwritten type parameters. - pub fn for_path_with_params( - &self, - path: impl Into, - params: &[TypePath], - ) -> Option { - // If we find a substitute type, we'll take the substitute path, and - // swap any idents with their new concrete types. - fn replace_params( - mut substitute_path: syn::Path, - params: &[TypePath], - mapping: &TypeParamMapping, - ) -> TypePathType { - match mapping { - // We need to map the input params to the output params somehow: - TypeParamMapping::Specified(mapping) => { - // A map from ident name to replacement path. - let replacement_map: Vec<(&syn::Ident, &TypePath)> = mapping - .iter() - .filter_map(|(ident, idx)| params.get(*idx).map(|param| (ident, param))) - .collect(); - - // Replace params in our substitute path with the incoming ones as needed. - // No need if no replacements given. - if !replacement_map.is_empty() { - replace_path_params_recursively(&mut substitute_path, &replacement_map); - } - - TypePathType::Path { - path: substitute_path, - params: Vec::new(), - } - } - // No mapping; just hand back the substitute path and input params. - TypeParamMapping::PassThrough => TypePathType::Path { - path: substitute_path, - params: params.to_vec(), - }, - } - } - - let path = path.into(); - - self.substitutes - .get(&path) - .map(|sub| replace_params(sub.path.clone(), params, &sub.param_mapping)) - } -} - -/// Identifiers joined by the `::` separator. -/// -/// We use this as a common denominator, since we need a consistent keys for both -/// `syn::TypePath` and `scale_info::ty::path::Path` types. -#[derive(Debug, Hash, PartialEq, Eq)] -pub struct PathSegments(Vec); - -impl From<&syn::Path> for PathSegments { - fn from(path: &syn::Path) -> Self { - PathSegments(path.segments.iter().map(|x| x.ident.to_string()).collect()) - } -} - -impl From<&scale_info::Path> for PathSegments { - fn from(path: &scale_info::Path) -> Self { - PathSegments( - path.segments - .iter() - .map(|x| x.as_ref().to_owned()) - .collect(), - ) - } -} - -/// Dig through a `syn::TypePath` (this is provided by the user in a type substitution definition as the "to" type) and -/// swap out any type params which match the idents given in the "from" type with the corresponding concrete types. -/// -/// eg if we have: -/// -/// ```text -/// from = sp_runtime::MultiAddress, -/// to = ::subxt::utils::Static<::sp_runtime::MultiAddress> -/// ``` -/// -/// And we encounter a `sp_runtime::MultiAddress`, then we will pass the `::sp_runtime::MultiAddress` -/// type param value into this call to turn it into `::sp_runtime::MultiAddress`. -fn replace_path_params_recursively, P: Borrow>( - path: &mut syn::Path, - params: &Vec<(I, P)>, -) { - for segment in &mut path.segments { - let syn::PathArguments::AngleBracketed(args) = &mut segment.arguments else { - continue; - }; - for arg in &mut args.args { - let syn::GenericArgument::Type(ty) = arg else { - continue; - }; - let syn::Type::Path(path) = ty else { - continue; - }; - if let Some(ident) = get_ident_from_type_path(path) { - if let Some((_, replacement)) = params.iter().find(|(i, _)| ident == i.borrow()) { - *ty = replacement.borrow().to_syn_type(); - continue; - } - } - replace_path_params_recursively(&mut path.path, params); - } - } -} - -/// Given a "to" type in a type substitution, return the TypePath inside or None if -/// it's not a valid "to" type. -fn get_valid_to_substitution_type(arg: &syn::GenericArgument) -> Option<&syn::TypePath> { - let syn::GenericArgument::Type(syn::Type::Path(type_path)) = arg else { - // We are looking for a type, not a lifetime or anything else - return None; - }; - Some(type_path) -} - -/// Given a "from" type in a type substitution, return the Ident inside or None if -/// it's not a valid "from" type. -fn get_valid_from_substitution_type(arg: &syn::GenericArgument) -> Option<&syn::Ident> { - let syn::GenericArgument::Type(syn::Type::Path(type_path)) = arg else { - // We are looking for a type, not a lifetime or anything else - return None; - }; - get_ident_from_type_path(type_path) -} - -/// Given a type path, return the single ident representing it if that's all it is. -fn get_ident_from_type_path(type_path: &syn::TypePath) -> Option<&syn::Ident> { - if type_path.qself.is_some() { - // No "" type thing - return None; - } - if type_path.path.leading_colon.is_some() { - // No leading "::" - return None; - } - if type_path.path.segments.len() > 1 { - // The path should just be a single ident, not multiple - return None; - } - let Some(segment) = type_path.path.segments.last() else { - // Get the single ident (should be infallible) - return None; - }; - if !segment.arguments.is_empty() { - // The ident shouldn't have any of it's own generic args like A - return None; - } - Some(&segment.ident) -} - -/// Whether a path is absolute - starts with `::` or `crate`. -fn is_absolute(path: &syn::Path) -> bool { - path.leading_colon.is_some() - || path - .segments - .first() - .map_or(false, |segment| segment.ident == "crate") -} - -pub struct AbsolutePath(pub syn::Path); - -impl TryFrom for AbsolutePath { - type Error = TypeSubstitutionError; - fn try_from(value: syn::Path) -> Result { - if is_absolute(&value) { - Ok(AbsolutePath(value)) - } else { - Err(TypeSubstitutionError::ExpectedAbsolutePath(value.span())) - } - } -} - -#[cfg(test)] -mod test { - use super::*; - - macro_rules! syn_path { - ($path:path) => {{ - let path: syn::Path = syn::parse_quote!($path); - path - }}; - } - - macro_rules! type_path { - ($path:path) => {{ - let path: syn::Path = syn::parse_quote!($path); - TypePath::from_syn_path(path) - }}; - } - - fn ident(name: &'static str) -> syn::Ident { - syn::Ident::new(name, proc_macro2::Span::call_site()) - } - - #[test] - #[rustfmt::skip] - fn replacing_nested_type_params_works() { - // Original path, replacement ident->paths, expected output path - let paths = [ - // Works ok if nothing to replace - ( - syn_path!(::some::path::Foo<::other::Path>), - vec![], - syn_path!(::some::path::Foo<::other::Path>), - ), - // Simple top level replacing - ( - syn_path!(::some::path::Foo), - vec![(ident("A"), type_path!(::new::Value))], - syn_path!(::some::path::Foo<::new::Value>), - ), - // More deeply nested replacing works too - ( - syn_path!(::some::path::Foo<::other::Path>), - vec![(ident("A"), type_path!(::new::Value))], - syn_path!(::some::path::Foo<::other::Path<::new::Value, B>>), - ), - ( - syn_path!(::some::path::Foo<::other::Path>), - vec![ - (ident("A"), type_path!(::new::A)), - (ident("B"), type_path!(::new::B)), - ], - syn_path!(::some::path::Foo<::other::Path<::new::A, ::new::B>>), - ), - ( - syn_path!(::some::path::Foo<::other::Path>>, C>), - vec![ - (ident("A"), type_path!(::new::A)), - (ident("B"), type_path!(::new::B)), - ], - syn_path!(::some::path::Foo<::other::Path<::new::A, ::more::path::to<::something::Argh<::new::B>>>,C>), - ), - // The same ident will be replaced as many times as needed: - ( - syn_path!(::some::path::Foo<::other::Path, A>>), - vec![(ident("A"), type_path!(::new::Value))], - syn_path!(::some::path::Foo<::other::Path<::new::Value, ::foo::Argh<::new::Value, B>, ::new::Value>>), - ), - ]; - - for (mut path, replacements, expected) in paths { - replace_path_params_recursively(&mut path, &replacements); - assert_eq!(path, expected); - } - } -} diff --git a/codegen/src/types/tests.rs b/codegen/src/types/tests.rs deleted file mode 100644 index 7aa91e21e1..0000000000 --- a/codegen/src/types/tests.rs +++ /dev/null @@ -1,1323 +0,0 @@ -// Copyright 2019-2023 Parity Technologies (UK) Ltd. -// This file is dual-licensed as Apache-2.0 or GPL-3.0. -// see LICENSE for license details. - -use super::*; -use pretty_assertions::assert_eq; -use scale_info::{meta_type, scale, Registry, TypeInfo}; -use syn::parse_quote; - -const MOD_PATH: &[&str] = &["subxt_codegen", "types", "tests"]; - -fn get_mod<'a>(module: &'a Module, path_segs: &[&'static str]) -> Option<&'a Module> { - let (mod_name, rest) = path_segs.split_first()?; - let mod_ident = Ident::new(mod_name, Span::call_site()); - let module = module.children.get(&mod_ident)?; - if rest.is_empty() { - Some(module) - } else { - get_mod(module, rest) - } -} - -#[test] -fn generate_struct_with_primitives() { - #[allow(unused)] - #[derive(TypeInfo)] - struct S { - a: bool, - b: u32, - c: char, - } - - let mut registry = Registry::new(); - registry.register_type(&meta_type::()); - let portable_types: PortableRegistry = registry.into(); - - let crate_path = syn::parse_str("::subxt_path").unwrap(); - let type_gen = TypeGenerator::new( - &portable_types, - "root", - TypeSubstitutes::with_default_substitutes(&crate_path), - DerivesRegistry::with_default_derives(&crate_path), - crate_path, - true, - ); - let types = type_gen.generate_types_mod().expect("Valid type mod; qed"); - let tests_mod = get_mod(&types, MOD_PATH).unwrap(); - - assert_eq!( - tests_mod.into_token_stream().to_string(), - quote! { - pub mod tests { - use super::root; - - #[derive(::subxt_path::ext::codec::Decode, ::subxt_path::ext::codec::Encode, ::subxt_path::ext::scale_decode::DecodeAsType, ::subxt_path::ext::scale_encode::EncodeAsType, Debug)] - #[codec(crate = ::subxt_path::ext::codec)] - #[decode_as_type(crate_path = ":: subxt_path :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_path :: ext :: scale_encode")] - pub struct S { - pub a: ::core::primitive::bool, - pub b: ::core::primitive::u32, - pub c: ::core::primitive::char, - } - } - } - .to_string() - ) -} - -#[test] -fn generate_struct_with_a_struct_field() { - #[allow(unused)] - #[derive(TypeInfo)] - struct Parent { - a: bool, - b: Child, - } - - #[allow(unused)] - #[derive(TypeInfo)] - struct Child { - a: i32, - } - - let mut registry = Registry::new(); - registry.register_type(&meta_type::()); - let portable_types: PortableRegistry = registry.into(); - - let crate_path = syn::parse_str("::subxt_path").unwrap(); - let type_gen = TypeGenerator::new( - &portable_types, - "root", - TypeSubstitutes::with_default_substitutes(&crate_path), - DerivesRegistry::with_default_derives(&crate_path), - crate_path, - true, - ); - let types = type_gen.generate_types_mod().expect("Valid type mod; qed"); - let tests_mod = get_mod(&types, MOD_PATH).unwrap(); - - assert_eq!( - tests_mod.into_token_stream().to_string(), - quote! { - pub mod tests { - use super::root; - - #[derive(::subxt_path::ext::codec::Decode, ::subxt_path::ext::codec::Encode, ::subxt_path::ext::scale_decode::DecodeAsType, ::subxt_path::ext::scale_encode::EncodeAsType, Debug)] - #[codec(crate = ::subxt_path::ext::codec)] - #[decode_as_type(crate_path = ":: subxt_path :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_path :: ext :: scale_encode")] - pub struct Child { - pub a: ::core::primitive::i32, - } - - #[derive(::subxt_path::ext::codec::Decode, ::subxt_path::ext::codec::Encode, ::subxt_path::ext::scale_decode::DecodeAsType, ::subxt_path::ext::scale_encode::EncodeAsType, Debug)] - #[codec(crate = ::subxt_path::ext::codec)] - #[decode_as_type(crate_path = ":: subxt_path :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_path :: ext :: scale_encode")] - pub struct Parent { - pub a: ::core::primitive::bool, - pub b: root::subxt_codegen::types::tests::Child, - } - } - } - .to_string() - ) -} - -#[test] -fn generate_tuple_struct() { - #[allow(unused)] - #[derive(TypeInfo)] - struct Parent(bool, Child); - - #[allow(unused)] - #[derive(TypeInfo)] - struct Child(i32); - - let mut registry = Registry::new(); - registry.register_type(&meta_type::()); - let portable_types: PortableRegistry = registry.into(); - - let crate_path = syn::parse_str("::subxt_path").unwrap(); - let type_gen = TypeGenerator::new( - &portable_types, - "root", - TypeSubstitutes::with_default_substitutes(&crate_path), - DerivesRegistry::with_default_derives(&crate_path), - crate_path, - true, - ); - let types = type_gen.generate_types_mod().expect("Valid type mod; qed"); - let tests_mod = get_mod(&types, MOD_PATH).unwrap(); - - assert_eq!( - tests_mod.into_token_stream().to_string(), - quote! { - pub mod tests { - use super::root; - - #[derive(::subxt_path::ext::codec::Decode, ::subxt_path::ext::codec::Encode, ::subxt_path::ext::scale_decode::DecodeAsType, ::subxt_path::ext::scale_encode::EncodeAsType, Debug)] - #[codec(crate = ::subxt_path::ext::codec)] - #[decode_as_type(crate_path = ":: subxt_path :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_path :: ext :: scale_encode")] - pub struct Child(pub ::core::primitive::i32,); - - #[derive(::subxt_path::ext::codec::Decode, ::subxt_path::ext::codec::Encode, ::subxt_path::ext::scale_decode::DecodeAsType, ::subxt_path::ext::scale_encode::EncodeAsType, Debug)] - #[codec(crate = ::subxt_path::ext::codec)] - #[decode_as_type(crate_path = ":: subxt_path :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_path :: ext :: scale_encode")] - pub struct Parent(pub ::core::primitive::bool, pub root::subxt_codegen::types::tests::Child,); - } - } - .to_string() - ) -} - -#[test] -fn derive_compact_as_for_uint_wrapper_structs() { - #[allow(unused)] - #[derive(TypeInfo)] - struct Su8 { - a: u8, - } - #[allow(unused)] - #[derive(TypeInfo)] - struct TSu8(u8); - #[allow(unused)] - #[derive(TypeInfo)] - struct Su16 { - a: u16, - } - #[allow(unused)] - #[derive(TypeInfo)] - struct TSu16(u16); - #[allow(unused)] - #[derive(TypeInfo)] - struct Su32 { - a: u32, - } - #[allow(unused)] - #[derive(TypeInfo)] - struct TSu32(u32); - #[allow(unused)] - #[derive(TypeInfo)] - struct Su64 { - a: u64, - } - #[allow(unused)] - #[derive(TypeInfo)] - struct TSu64(u64); - #[allow(unused)] - #[derive(TypeInfo)] - struct Su128 { - a: u128, - } - #[allow(unused)] - #[derive(TypeInfo)] - struct TSu128(u128); - - let mut registry = Registry::new(); - registry.register_type(&meta_type::()); - registry.register_type(&meta_type::()); - registry.register_type(&meta_type::()); - registry.register_type(&meta_type::()); - registry.register_type(&meta_type::()); - registry.register_type(&meta_type::()); - registry.register_type(&meta_type::()); - registry.register_type(&meta_type::()); - registry.register_type(&meta_type::()); - registry.register_type(&meta_type::()); - let portable_types: PortableRegistry = registry.into(); - - let crate_path = syn::parse_str("::subxt_path").unwrap(); - let type_gen = TypeGenerator::new( - &portable_types, - "root", - TypeSubstitutes::with_default_substitutes(&crate_path), - DerivesRegistry::with_default_derives(&crate_path), - crate_path, - true, - ); - let types = type_gen.generate_types_mod().expect("Valid type mod; qed"); - let tests_mod = get_mod(&types, MOD_PATH).unwrap(); - - assert_eq!( - tests_mod.into_token_stream().to_string(), - quote! { - pub mod tests { - use super::root; - - #[derive(::subxt_path::ext::codec::CompactAs, ::subxt_path::ext::codec::Decode, ::subxt_path::ext::codec::Encode, ::subxt_path::ext::scale_decode::DecodeAsType, ::subxt_path::ext::scale_encode::EncodeAsType, Debug)] - #[codec(crate = ::subxt_path::ext::codec)] - #[decode_as_type(crate_path = ":: subxt_path :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_path :: ext :: scale_encode")] - pub struct Su128 { pub a: ::core::primitive::u128, } - - #[derive(::subxt_path::ext::codec::CompactAs, ::subxt_path::ext::codec::Decode, ::subxt_path::ext::codec::Encode, ::subxt_path::ext::scale_decode::DecodeAsType, ::subxt_path::ext::scale_encode::EncodeAsType, Debug)] - #[codec(crate = ::subxt_path::ext::codec)] - #[decode_as_type(crate_path = ":: subxt_path :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_path :: ext :: scale_encode")] - pub struct Su16 { pub a: ::core::primitive::u16, } - - #[derive(::subxt_path::ext::codec::CompactAs, ::subxt_path::ext::codec::Decode, ::subxt_path::ext::codec::Encode, ::subxt_path::ext::scale_decode::DecodeAsType, ::subxt_path::ext::scale_encode::EncodeAsType, Debug)] - #[codec(crate = ::subxt_path::ext::codec)] - #[decode_as_type(crate_path = ":: subxt_path :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_path :: ext :: scale_encode")] - pub struct Su32 { pub a: ::core::primitive::u32, } - - #[derive(::subxt_path::ext::codec::CompactAs, ::subxt_path::ext::codec::Decode, ::subxt_path::ext::codec::Encode, ::subxt_path::ext::scale_decode::DecodeAsType, ::subxt_path::ext::scale_encode::EncodeAsType, Debug)] - #[codec(crate = ::subxt_path::ext::codec)] - #[decode_as_type(crate_path = ":: subxt_path :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_path :: ext :: scale_encode")] - pub struct Su64 { pub a: ::core::primitive::u64, } - - #[derive(::subxt_path::ext::codec::CompactAs, ::subxt_path::ext::codec::Decode, ::subxt_path::ext::codec::Encode, ::subxt_path::ext::scale_decode::DecodeAsType, ::subxt_path::ext::scale_encode::EncodeAsType, Debug)] - #[codec(crate = ::subxt_path::ext::codec)] - #[decode_as_type(crate_path = ":: subxt_path :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_path :: ext :: scale_encode")] - pub struct Su8 { pub a: ::core::primitive::u8, } - - #[derive(::subxt_path::ext::codec::CompactAs, ::subxt_path::ext::codec::Decode, ::subxt_path::ext::codec::Encode, ::subxt_path::ext::scale_decode::DecodeAsType, ::subxt_path::ext::scale_encode::EncodeAsType, Debug)] - #[codec(crate = ::subxt_path::ext::codec)] - #[decode_as_type(crate_path = ":: subxt_path :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_path :: ext :: scale_encode")] - pub struct TSu128(pub ::core::primitive::u128,); - - #[derive(::subxt_path::ext::codec::CompactAs, ::subxt_path::ext::codec::Decode, ::subxt_path::ext::codec::Encode, ::subxt_path::ext::scale_decode::DecodeAsType, ::subxt_path::ext::scale_encode::EncodeAsType, Debug)] - #[codec(crate = ::subxt_path::ext::codec)] - #[decode_as_type(crate_path = ":: subxt_path :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_path :: ext :: scale_encode")] - pub struct TSu16(pub ::core::primitive::u16,); - - #[derive(::subxt_path::ext::codec::CompactAs, ::subxt_path::ext::codec::Decode, ::subxt_path::ext::codec::Encode, ::subxt_path::ext::scale_decode::DecodeAsType, ::subxt_path::ext::scale_encode::EncodeAsType, Debug)] - #[codec(crate = ::subxt_path::ext::codec)] - #[decode_as_type(crate_path = ":: subxt_path :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_path :: ext :: scale_encode")] - pub struct TSu32(pub ::core::primitive::u32,); - - #[derive(::subxt_path::ext::codec::CompactAs, ::subxt_path::ext::codec::Decode, ::subxt_path::ext::codec::Encode, ::subxt_path::ext::scale_decode::DecodeAsType, ::subxt_path::ext::scale_encode::EncodeAsType, Debug)] - #[codec(crate = ::subxt_path::ext::codec)] - #[decode_as_type(crate_path = ":: subxt_path :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_path :: ext :: scale_encode")] - pub struct TSu64(pub ::core::primitive::u64,); - - #[derive(::subxt_path::ext::codec::CompactAs, ::subxt_path::ext::codec::Decode, ::subxt_path::ext::codec::Encode, ::subxt_path::ext::scale_decode::DecodeAsType, ::subxt_path::ext::scale_encode::EncodeAsType, Debug)] - #[codec(crate = ::subxt_path::ext::codec)] - #[decode_as_type(crate_path = ":: subxt_path :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_path :: ext :: scale_encode")] - pub struct TSu8(pub ::core::primitive::u8,); - } - } - .to_string() - ) -} - -#[test] -fn generate_enum() { - #[allow(unused)] - #[derive(TypeInfo)] - enum E { - A, - B(bool), - C { a: u32 }, - } - - let mut registry = Registry::new(); - registry.register_type(&meta_type::()); - let portable_types: PortableRegistry = registry.into(); - - let crate_path = syn::parse_str("::subxt_path").unwrap(); - let type_gen = TypeGenerator::new( - &portable_types, - "root", - TypeSubstitutes::with_default_substitutes(&crate_path), - DerivesRegistry::with_default_derives(&crate_path), - crate_path, - true, - ); - let types = type_gen.generate_types_mod().expect("Valid type mod; qed"); - let tests_mod = get_mod(&types, MOD_PATH).unwrap(); - - assert_eq!( - tests_mod.into_token_stream().to_string(), - quote! { - pub mod tests { - use super::root; - #[derive(::subxt_path::ext::codec::Decode, ::subxt_path::ext::codec::Encode, ::subxt_path::ext::scale_decode::DecodeAsType, ::subxt_path::ext::scale_encode::EncodeAsType, Debug)] - #[codec(crate = ::subxt_path::ext::codec)] - #[decode_as_type(crate_path = ":: subxt_path :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_path :: ext :: scale_encode")] - pub enum E { - # [codec (index = 0)] - A, - # [codec (index = 1)] - B (::core::primitive::bool,), - # [codec (index = 2)] - C { a: ::core::primitive::u32, }, - } - } - } - .to_string() - ) -} - -#[test] -fn compact_fields() { - #[allow(unused)] - #[derive(TypeInfo)] - struct S { - #[codec(compact)] - a: u32, - } - - #[allow(unused)] - #[derive(TypeInfo)] - struct TupleStruct(#[codec(compact)] u32); - - #[allow(unused)] - #[derive(TypeInfo)] - enum E { - A { - #[codec(compact)] - a: u32, - }, - B(#[codec(compact)] u32), - } - - let mut registry = Registry::new(); - registry.register_type(&meta_type::()); - registry.register_type(&meta_type::()); - registry.register_type(&meta_type::()); - let portable_types: PortableRegistry = registry.into(); - - let crate_path = syn::parse_str("::subxt_path").unwrap(); - let type_gen = TypeGenerator::new( - &portable_types, - "root", - TypeSubstitutes::with_default_substitutes(&crate_path), - DerivesRegistry::with_default_derives(&crate_path), - crate_path, - true, - ); - let types = type_gen.generate_types_mod().expect("Valid type mod; qed"); - let tests_mod = get_mod(&types, MOD_PATH).unwrap(); - - assert_eq!( - tests_mod.into_token_stream().to_string(), - quote! { - pub mod tests { - use super::root; - #[derive(::subxt_path::ext::codec::Decode, ::subxt_path::ext::codec::Encode, ::subxt_path::ext::scale_decode::DecodeAsType, ::subxt_path::ext::scale_encode::EncodeAsType, Debug)] - #[codec(crate = ::subxt_path::ext::codec)] - #[decode_as_type(crate_path = ":: subxt_path :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_path :: ext :: scale_encode")] - pub enum E { - # [codec (index = 0)] - A { - #[codec(compact)] - a: ::core::primitive::u32, - }, - # [codec (index = 1)] - B( #[codec(compact)] ::core::primitive::u32,), - } - - #[derive(::subxt_path::ext::codec::Decode, ::subxt_path::ext::codec::Encode, ::subxt_path::ext::scale_decode::DecodeAsType, ::subxt_path::ext::scale_encode::EncodeAsType, Debug)] - #[codec(crate = ::subxt_path::ext::codec)] - #[decode_as_type(crate_path = ":: subxt_path :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_path :: ext :: scale_encode")] - pub struct S { - #[codec(compact)] pub a: ::core::primitive::u32, - } - - #[derive(::subxt_path::ext::codec::Decode, ::subxt_path::ext::codec::Encode, ::subxt_path::ext::scale_decode::DecodeAsType, ::subxt_path::ext::scale_encode::EncodeAsType, Debug)] - #[codec(crate = ::subxt_path::ext::codec)] - #[decode_as_type(crate_path = ":: subxt_path :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_path :: ext :: scale_encode")] - pub struct TupleStruct(#[codec(compact)] pub ::core::primitive::u32,); - } - } - .to_string() - ) -} - -#[test] -fn compact_generic_parameter() { - use scale::Compact; - - #[allow(unused)] - #[derive(TypeInfo)] - struct S { - a: Option<::Type>, - nested: Option, u8>>, - vector: Vec>, - array: [Compact; 32], - tuple: (Compact, Compact), - } - - let mut registry = Registry::new(); - registry.register_type(&meta_type::()); - let portable_types: PortableRegistry = registry.into(); - - let crate_path = syn::parse_str("::subxt_path").unwrap(); - let type_gen = TypeGenerator::new( - &portable_types, - "root", - TypeSubstitutes::with_default_substitutes(&crate_path), - DerivesRegistry::with_default_derives(&crate_path), - crate_path, - true, - ); - let types = type_gen.generate_types_mod().expect("Valid type mod; qed"); - let tests_mod = get_mod(&types, MOD_PATH).unwrap(); - - assert_eq!( - tests_mod.into_token_stream().to_string(), - quote! { - pub mod tests { - use super::root; - - #[derive(::subxt_path::ext::codec::Decode, ::subxt_path::ext::codec::Encode, ::subxt_path::ext::scale_decode::DecodeAsType, ::subxt_path::ext::scale_encode::EncodeAsType, Debug)] - #[codec(crate = ::subxt_path::ext::codec)] - #[decode_as_type(crate_path = ":: subxt_path :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_path :: ext :: scale_encode")] - pub struct S { - pub a: ::core::option::Option<::subxt_path::ext::codec::Compact<::core::primitive::u128> >, - pub nested: ::core::option::Option<::core::result::Result<::subxt_path::ext::codec::Compact<::core::primitive::u128>, ::core::primitive::u8 > >, - pub vector: ::std::vec::Vec<::subxt_path::ext::codec::Compact<::core::primitive::u16> >, - pub array: [::subxt_path::ext::codec::Compact<::core::primitive::u8>; 32usize], - pub tuple: (::subxt_path::ext::codec::Compact<::core::primitive::u8>, ::subxt_path::ext::codec::Compact<::core::primitive::u16>,), - } - } - } - .to_string() - ) -} - -#[test] -fn generate_array_field() { - #[allow(unused)] - #[derive(TypeInfo)] - struct S { - a: [u8; 32], - } - - let mut registry = Registry::new(); - registry.register_type(&meta_type::()); - let portable_types: PortableRegistry = registry.into(); - - let crate_path = syn::parse_str("::subxt_path").unwrap(); - let type_gen = TypeGenerator::new( - &portable_types, - "root", - TypeSubstitutes::with_default_substitutes(&crate_path), - DerivesRegistry::with_default_derives(&crate_path), - crate_path, - true, - ); - let types = type_gen.generate_types_mod().expect("Valid type mod; qed"); - let tests_mod = get_mod(&types, MOD_PATH).unwrap(); - - assert_eq!( - tests_mod.into_token_stream().to_string(), - quote! { - pub mod tests { - use super::root; - #[derive(::subxt_path::ext::codec::Decode, ::subxt_path::ext::codec::Encode, ::subxt_path::ext::scale_decode::DecodeAsType, ::subxt_path::ext::scale_encode::EncodeAsType, Debug)] - #[codec(crate = ::subxt_path::ext::codec)] - #[decode_as_type(crate_path = ":: subxt_path :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_path :: ext :: scale_encode")] - pub struct S { - pub a: [::core::primitive::u8; 32usize], - } - } - } - .to_string() - ) -} - -#[test] -fn option_fields() { - #[allow(unused)] - #[derive(TypeInfo)] - struct S { - a: Option, - b: Option, - } - - let mut registry = Registry::new(); - registry.register_type(&meta_type::()); - let portable_types: PortableRegistry = registry.into(); - - let crate_path = syn::parse_str("::subxt_path").unwrap(); - let type_gen = TypeGenerator::new( - &portable_types, - "root", - TypeSubstitutes::with_default_substitutes(&crate_path), - DerivesRegistry::with_default_derives(&crate_path), - crate_path, - true, - ); - let types = type_gen.generate_types_mod().expect("Valid type mod; qed"); - let tests_mod = get_mod(&types, MOD_PATH).unwrap(); - - assert_eq!( - tests_mod.into_token_stream().to_string(), - quote! { - pub mod tests { - use super::root; - #[derive(::subxt_path::ext::codec::Decode, ::subxt_path::ext::codec::Encode, ::subxt_path::ext::scale_decode::DecodeAsType, ::subxt_path::ext::scale_encode::EncodeAsType, Debug)] - #[codec(crate = ::subxt_path::ext::codec)] - #[decode_as_type(crate_path = ":: subxt_path :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_path :: ext :: scale_encode")] - pub struct S { - pub a: ::core::option::Option<::core::primitive::bool>, - pub b: ::core::option::Option<::core::primitive::u32>, - } - } - } - .to_string() - ) -} - -#[test] -fn box_fields_struct() { - use std::boxed::Box; - - #[allow(unused)] - #[derive(TypeInfo)] - struct S { - a: std::boxed::Box, - b: Box, - } - - let mut registry = Registry::new(); - registry.register_type(&meta_type::()); - let portable_types: PortableRegistry = registry.into(); - - let crate_path = syn::parse_str("::subxt_path").unwrap(); - let type_gen = TypeGenerator::new( - &portable_types, - "root", - TypeSubstitutes::with_default_substitutes(&crate_path), - DerivesRegistry::with_default_derives(&crate_path), - crate_path, - true, - ); - let types = type_gen.generate_types_mod().expect("Valid type mod; qed"); - let tests_mod = get_mod(&types, MOD_PATH).unwrap(); - - assert_eq!( - tests_mod.into_token_stream().to_string(), - quote! { - pub mod tests { - use super::root; - #[derive(::subxt_path::ext::codec::Decode, ::subxt_path::ext::codec::Encode, ::subxt_path::ext::scale_decode::DecodeAsType, ::subxt_path::ext::scale_encode::EncodeAsType, Debug)] - #[codec(crate = ::subxt_path::ext::codec)] - #[decode_as_type(crate_path = ":: subxt_path :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_path :: ext :: scale_encode")] - pub struct S { - pub a: ::std::boxed::Box<::core::primitive::bool>, - pub b: ::std::boxed::Box<::core::primitive::u32>, - } - } - } - .to_string() - ) -} - -#[test] -fn box_fields_enum() { - use std::boxed::Box; - - #[allow(unused)] - #[derive(TypeInfo)] - enum E { - A(Box), - B { a: Box }, - } - - let mut registry = Registry::new(); - registry.register_type(&meta_type::()); - let portable_types: PortableRegistry = registry.into(); - - let crate_path = syn::parse_str("::subxt_path").unwrap(); - let type_gen = TypeGenerator::new( - &portable_types, - "root", - TypeSubstitutes::with_default_substitutes(&crate_path), - DerivesRegistry::with_default_derives(&crate_path), - crate_path, - true, - ); - let types = type_gen.generate_types_mod().expect("Valid type mod; qed"); - let tests_mod = get_mod(&types, MOD_PATH).unwrap(); - - assert_eq!( - tests_mod.into_token_stream().to_string(), - quote! { - pub mod tests { - use super::root; - #[derive(::subxt_path::ext::codec::Decode, ::subxt_path::ext::codec::Encode, ::subxt_path::ext::scale_decode::DecodeAsType, ::subxt_path::ext::scale_encode::EncodeAsType, Debug)] - #[codec(crate = ::subxt_path::ext::codec)] - #[decode_as_type(crate_path = ":: subxt_path :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_path :: ext :: scale_encode")] - pub enum E { - # [codec (index = 0)] - A(::std::boxed::Box<::core::primitive::bool>,), - # [codec (index = 1)] - B { a: ::std::boxed::Box<::core::primitive::u32>, }, - } - } - } - .to_string() - ) -} - -#[test] -fn range_fields() { - #[allow(unused)] - #[derive(TypeInfo)] - struct S { - a: core::ops::Range, - b: core::ops::RangeInclusive, - } - - let mut registry = Registry::new(); - registry.register_type(&meta_type::()); - let portable_types: PortableRegistry = registry.into(); - - let crate_path = syn::parse_str("::subxt_path").unwrap(); - let type_gen = TypeGenerator::new( - &portable_types, - "root", - TypeSubstitutes::with_default_substitutes(&crate_path), - DerivesRegistry::with_default_derives(&crate_path), - crate_path, - true, - ); - let types = type_gen.generate_types_mod().expect("Valid type mod; qed"); - let tests_mod = get_mod(&types, MOD_PATH).unwrap(); - - assert_eq!( - tests_mod.into_token_stream().to_string(), - quote! { - pub mod tests { - use super::root; - #[derive(::subxt_path::ext::codec::Decode, ::subxt_path::ext::codec::Encode, ::subxt_path::ext::scale_decode::DecodeAsType, ::subxt_path::ext::scale_encode::EncodeAsType, Debug)] - #[codec(crate = ::subxt_path::ext::codec)] - #[decode_as_type(crate_path = ":: subxt_path :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_path :: ext :: scale_encode")] - pub struct S { - pub a: ::core::ops::Range<::core::primitive::u32>, - pub b: ::core::ops::RangeInclusive<::core::primitive::u32>, - } - } - } - .to_string() - ) -} - -#[test] -fn generics() { - #[allow(unused)] - #[derive(TypeInfo)] - struct Foo { - a: T, - } - - #[allow(unused)] - #[derive(TypeInfo)] - struct Bar { - b: Foo, - c: Foo, - } - - let mut registry = Registry::new(); - registry.register_type(&meta_type::()); - let portable_types: PortableRegistry = registry.into(); - - let crate_path = syn::parse_str("::subxt_path").unwrap(); - let type_gen = TypeGenerator::new( - &portable_types, - "root", - TypeSubstitutes::with_default_substitutes(&crate_path), - DerivesRegistry::with_default_derives(&crate_path), - crate_path, - true, - ); - let types = type_gen.generate_types_mod().expect("Valid type mod; qed"); - let tests_mod = get_mod(&types, MOD_PATH).unwrap(); - - assert_eq!( - tests_mod.into_token_stream().to_string(), - quote! { - pub mod tests { - use super::root; - #[derive(::subxt_path::ext::codec::Decode, ::subxt_path::ext::codec::Encode, ::subxt_path::ext::scale_decode::DecodeAsType, ::subxt_path::ext::scale_encode::EncodeAsType, Debug)] - #[codec(crate = ::subxt_path::ext::codec)] - #[decode_as_type(crate_path = ":: subxt_path :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_path :: ext :: scale_encode")] - pub struct Bar { - pub b: root::subxt_codegen::types::tests::Foo<::core::primitive::u32>, - pub c: root::subxt_codegen::types::tests::Foo<::core::primitive::u8>, - } - #[derive(::subxt_path::ext::codec::Decode, ::subxt_path::ext::codec::Encode, ::subxt_path::ext::scale_decode::DecodeAsType, ::subxt_path::ext::scale_encode::EncodeAsType, Debug)] - #[codec(crate = ::subxt_path::ext::codec)] - #[decode_as_type(crate_path = ":: subxt_path :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_path :: ext :: scale_encode")] - pub struct Foo<_0> { - pub a: _0, - } - } - } - .to_string() - ) -} - -#[test] -fn generics_nested() { - #[allow(unused)] - #[derive(TypeInfo)] - struct Foo { - a: T, - b: Option<(T, U)>, - } - - #[allow(unused)] - #[derive(TypeInfo)] - struct Bar { - b: Foo, - } - - let mut registry = Registry::new(); - registry.register_type(&meta_type::>()); - let portable_types: PortableRegistry = registry.into(); - - let crate_path = syn::parse_str("::subxt_path").unwrap(); - let type_gen = TypeGenerator::new( - &portable_types, - "root", - TypeSubstitutes::with_default_substitutes(&crate_path), - DerivesRegistry::with_default_derives(&crate_path), - crate_path, - true, - ); - let types = type_gen.generate_types_mod().expect("Valid type mod; qed"); - let tests_mod = get_mod(&types, MOD_PATH).unwrap(); - - assert_eq!( - tests_mod.into_token_stream().to_string(), - quote! { - pub mod tests { - use super::root; - #[derive(::subxt_path::ext::codec::Decode, ::subxt_path::ext::codec::Encode, ::subxt_path::ext::scale_decode::DecodeAsType, ::subxt_path::ext::scale_encode::EncodeAsType, Debug)] - #[codec(crate = ::subxt_path::ext::codec)] - #[decode_as_type(crate_path = ":: subxt_path :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_path :: ext :: scale_encode")] - pub struct Bar<_0> { - pub b: root::subxt_codegen::types::tests::Foo<_0, ::core::primitive::u32>, - } - - #[derive(::subxt_path::ext::codec::Decode, ::subxt_path::ext::codec::Encode, ::subxt_path::ext::scale_decode::DecodeAsType, ::subxt_path::ext::scale_encode::EncodeAsType, Debug)] - #[codec(crate = ::subxt_path::ext::codec)] - #[decode_as_type(crate_path = ":: subxt_path :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_path :: ext :: scale_encode")] - pub struct Foo<_0, _1> { - pub a: _0, - pub b: ::core::option::Option<(_0, _1,)>, - } - } - } - .to_string() - ) -} - -#[test] -fn generate_bitvec() { - use bitvec::{ - order::{Lsb0, Msb0}, - vec::BitVec, - }; - - #[allow(unused)] - #[derive(TypeInfo)] - struct S { - lsb: BitVec, - msb: BitVec, - } - - let mut registry = Registry::new(); - registry.register_type(&meta_type::()); - let portable_types: PortableRegistry = registry.into(); - - let crate_path = syn::parse_str("::subxt_path").unwrap(); - let type_gen = TypeGenerator::new( - &portable_types, - "root", - TypeSubstitutes::with_default_substitutes(&crate_path), - DerivesRegistry::with_default_derives(&crate_path), - crate_path, - true, - ); - let types = type_gen.generate_types_mod().expect("Valid type mod; qed"); - let tests_mod = get_mod(&types, MOD_PATH).unwrap(); - - assert_eq!( - tests_mod.into_token_stream().to_string(), - quote! { - pub mod tests { - use super::root; - #[derive(::subxt_path::ext::codec::Decode, ::subxt_path::ext::codec::Encode, ::subxt_path::ext::scale_decode::DecodeAsType, ::subxt_path::ext::scale_encode::EncodeAsType, Debug)] - #[codec(crate = ::subxt_path::ext::codec)] - #[decode_as_type(crate_path = ":: subxt_path :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_path :: ext :: scale_encode")] - pub struct S { - pub lsb: ::subxt_path::utils::bits::DecodedBits<::core::primitive::u8, ::subxt_path::utils::bits::Lsb0>, - pub msb: ::subxt_path::utils::bits::DecodedBits<::core::primitive::u16, ::subxt_path::utils::bits::Msb0>, - } - } - } - .to_string() - ) -} - -#[test] -fn generics_with_alias_adds_phantom_data_marker() { - trait Trait { - type Type; - } - - impl Trait for bool { - type Type = u32; - } - - type Foo = ::Type; - type Bar = (::Type, ::Type); - - #[allow(unused)] - #[derive(TypeInfo)] - struct NamedFields { - b: Foo, - } - - #[allow(unused)] - #[derive(TypeInfo)] - struct UnnamedFields(Bar); - - let mut registry = Registry::new(); - registry.register_type(&meta_type::>()); - registry.register_type(&meta_type::>()); - let portable_types: PortableRegistry = registry.into(); - - let crate_path = syn::parse_str("::subxt_path").unwrap(); - let type_gen = TypeGenerator::new( - &portable_types, - "root", - TypeSubstitutes::with_default_substitutes(&crate_path), - DerivesRegistry::with_default_derives(&crate_path), - crate_path, - true, - ); - let types = type_gen.generate_types_mod().expect("Valid type mod; qed"); - let tests_mod = get_mod(&types, MOD_PATH).unwrap(); - - assert_eq!( - tests_mod.into_token_stream().to_string(), - quote! { - pub mod tests { - use super::root; - #[derive(::subxt_path::ext::codec::CompactAs, ::subxt_path::ext::codec::Decode, ::subxt_path::ext::codec::Encode, ::subxt_path::ext::scale_decode::DecodeAsType, ::subxt_path::ext::scale_encode::EncodeAsType, Debug)] - #[codec(crate = ::subxt_path::ext::codec)] - #[decode_as_type(crate_path = ":: subxt_path :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_path :: ext :: scale_encode")] - pub struct NamedFields<_0> { - pub b: ::core::primitive::u32, - #[codec(skip)] - pub __subxt_unused_type_params: ::core::marker::PhantomData<_0> - } - #[derive(::subxt_path::ext::codec::Decode, ::subxt_path::ext::codec::Encode, ::subxt_path::ext::scale_decode::DecodeAsType, ::subxt_path::ext::scale_encode::EncodeAsType, Debug)] - #[codec(crate = ::subxt_path::ext::codec)] - #[decode_as_type(crate_path = ":: subxt_path :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_path :: ext :: scale_encode")] - pub struct UnnamedFields<_0, _1> ( - pub (::core::primitive::u32, ::core::primitive::u32,), - #[codec(skip)] - pub ::core::marker::PhantomData<(_0, _1)> - ); - } - } - .to_string() - ) -} - -#[test] -fn modules() { - mod m { - pub mod a { - #[allow(unused)] - #[derive(scale_info::TypeInfo)] - pub struct Foo; - - pub mod b { - #[allow(unused)] - #[derive(scale_info::TypeInfo)] - pub struct Bar { - a: super::Foo, - } - } - } - - pub mod c { - #[allow(unused)] - #[derive(scale_info::TypeInfo)] - pub struct Foo { - a: super::a::b::Bar, - } - } - } - - let mut registry = Registry::new(); - registry.register_type(&meta_type::()); - let portable_types: PortableRegistry = registry.into(); - - let crate_path = syn::parse_str("::subxt_path").unwrap(); - let type_gen = TypeGenerator::new( - &portable_types, - "root", - TypeSubstitutes::with_default_substitutes(&crate_path), - DerivesRegistry::with_default_derives(&crate_path), - crate_path, - true, - ); - let types = type_gen.generate_types_mod().expect("Valid type mod; qed"); - let tests_mod = get_mod(&types, MOD_PATH).unwrap(); - - assert_eq!( - tests_mod.into_token_stream().to_string(), - quote! { - pub mod tests { - use super::root; - pub mod m { - use super::root; - pub mod a { - use super::root; - - pub mod b { - use super::root; - - #[derive(::subxt_path::ext::codec::Decode, ::subxt_path::ext::codec::Encode, ::subxt_path::ext::scale_decode::DecodeAsType, ::subxt_path::ext::scale_encode::EncodeAsType, Debug)] - #[codec(crate = ::subxt_path::ext::codec)] - #[decode_as_type(crate_path = ":: subxt_path :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_path :: ext :: scale_encode")] - pub struct Bar { - pub a: root::subxt_codegen::types::tests::m::a::Foo, - } - } - - #[derive(::subxt_path::ext::codec::Decode, ::subxt_path::ext::codec::Encode, ::subxt_path::ext::scale_decode::DecodeAsType, ::subxt_path::ext::scale_encode::EncodeAsType, Debug)] - #[codec(crate = ::subxt_path::ext::codec)] - #[decode_as_type(crate_path = ":: subxt_path :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_path :: ext :: scale_encode")] - pub struct Foo; - } - - pub mod c { - use super::root; - - #[derive(::subxt_path::ext::codec::Decode, ::subxt_path::ext::codec::Encode, ::subxt_path::ext::scale_decode::DecodeAsType, ::subxt_path::ext::scale_encode::EncodeAsType, Debug)] - #[codec(crate = ::subxt_path::ext::codec)] - #[decode_as_type(crate_path = ":: subxt_path :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_path :: ext :: scale_encode")] - pub struct Foo { - pub a: root::subxt_codegen::types::tests::m::a::b::Bar, - } - } - } - } - } - .to_string() - ) -} - -#[test] -fn dont_force_struct_names_camel_case() { - #[allow(unused)] - #[derive(TypeInfo)] - struct AB; - - let mut registry = Registry::new(); - registry.register_type(&meta_type::()); - let portable_types: PortableRegistry = registry.into(); - - let crate_path = syn::parse_str("::subxt_path").unwrap(); - let type_gen = TypeGenerator::new( - &portable_types, - "root", - TypeSubstitutes::with_default_substitutes(&crate_path), - DerivesRegistry::with_default_derives(&crate_path), - crate_path, - true, - ); - let types = type_gen.generate_types_mod().expect("Valid type mod; qed"); - let tests_mod = get_mod(&types, MOD_PATH).unwrap(); - - assert_eq!( - tests_mod.into_token_stream().to_string(), - quote! { - pub mod tests { - use super::root; - - #[derive(::subxt_path::ext::codec::Decode, ::subxt_path::ext::codec::Encode, ::subxt_path::ext::scale_decode::DecodeAsType, ::subxt_path::ext::scale_encode::EncodeAsType, Debug)] - #[codec(crate = ::subxt_path::ext::codec)] - #[decode_as_type(crate_path = ":: subxt_path :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_path :: ext :: scale_encode")] - pub struct AB; - } - } - .to_string() - ) -} - -#[test] -fn apply_user_defined_derives_for_all_types() { - #[allow(unused)] - #[derive(TypeInfo)] - struct A(B); - - #[allow(unused)] - #[derive(TypeInfo)] - struct B; - - let mut registry = Registry::new(); - registry.register_type(&meta_type::()); - let portable_types: PortableRegistry = registry.into(); - - let crate_path = syn::parse_str("::subxt_path").unwrap(); - // configure derives - let mut derives = DerivesRegistry::with_default_derives(&crate_path); - derives.extend_for_all( - vec![parse_quote!(Clone), parse_quote!(Eq)], - vec![parse_quote!(#[some_attribute])], - ); - - let type_gen = TypeGenerator::new( - &portable_types, - "root", - TypeSubstitutes::with_default_substitutes(&crate_path), - derives, - crate_path, - true, - ); - let types = type_gen.generate_types_mod().expect("Valid type mod; qed"); - let tests_mod = get_mod(&types, MOD_PATH).unwrap(); - - assert_eq!( - tests_mod.into_token_stream().to_string(), - quote! { - pub mod tests { - use super::root; - - #[derive(::subxt_path::ext::codec::Decode, ::subxt_path::ext::codec::Encode, ::subxt_path::ext::scale_decode::DecodeAsType, ::subxt_path::ext::scale_encode::EncodeAsType, Clone, Debug, Eq)] - #[codec(crate = ::subxt_path::ext::codec)] - #[decode_as_type(crate_path = ":: subxt_path :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_path :: ext :: scale_encode")] - #[some_attribute] - pub struct A(pub root :: subxt_codegen :: types :: tests :: B,); - - #[derive(::subxt_path::ext::codec::Decode, ::subxt_path::ext::codec::Encode, ::subxt_path::ext::scale_decode::DecodeAsType, ::subxt_path::ext::scale_encode::EncodeAsType, Clone, Debug, Eq)] - #[codec(crate = ::subxt_path::ext::codec)] - #[decode_as_type(crate_path = ":: subxt_path :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_path :: ext :: scale_encode")] - #[some_attribute] - pub struct B; - } - } - .to_string() - ) -} - -#[test] -fn apply_user_defined_derives_for_specific_types() { - #[allow(unused)] - #[derive(TypeInfo)] - struct A(B); - - #[allow(unused)] - #[derive(TypeInfo)] - struct B(C); - - #[allow(unused)] - #[derive(TypeInfo)] - struct C; - - let mut registry = Registry::new(); - registry.register_type(&meta_type::()); - let portable_types: PortableRegistry = registry.into(); - - let crate_path = syn::parse_str("::subxt_path").unwrap(); - // configure derives - let mut derives = DerivesRegistry::with_default_derives(&crate_path); - // for all types - derives.extend_for_all(vec![parse_quote!(Eq)], vec![]); - // for specific types - derives.extend_for_type( - parse_quote!(subxt_codegen::types::tests::B), - vec![parse_quote!(Hash)], - vec![parse_quote!(#[some_attribute])], - ); - // duplicates (in this case `Eq`) will be combined (i.e. a set union) - derives.extend_for_type( - parse_quote!(subxt_codegen::types::tests::C), - vec![ - parse_quote!(Eq), - parse_quote!(Ord), - parse_quote!(PartialOrd), - ], - vec![], - ); - - let type_gen = TypeGenerator::new( - &portable_types, - "root", - TypeSubstitutes::with_default_substitutes(&crate_path), - derives, - crate_path, - true, - ); - let types = type_gen.generate_types_mod().expect("Valid type mod; qed"); - let tests_mod = get_mod(&types, MOD_PATH).unwrap(); - - assert_eq!( - tests_mod.into_token_stream().to_string(), - quote! { - pub mod tests { - use super::root; - - #[derive(::subxt_path::ext::codec::Decode, ::subxt_path::ext::codec::Encode, ::subxt_path::ext::scale_decode::DecodeAsType, ::subxt_path::ext::scale_encode::EncodeAsType, Debug, Eq)] - #[codec(crate = ::subxt_path::ext::codec)] - #[decode_as_type(crate_path = ":: subxt_path :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_path :: ext :: scale_encode")] - pub struct A(pub root :: subxt_codegen :: types :: tests :: B,); - - #[derive(::subxt_path::ext::codec::Decode, ::subxt_path::ext::codec::Encode, ::subxt_path::ext::scale_decode::DecodeAsType, ::subxt_path::ext::scale_encode::EncodeAsType, Debug, Eq, Hash)] - #[codec(crate = ::subxt_path::ext::codec)] - #[decode_as_type(crate_path = ":: subxt_path :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_path :: ext :: scale_encode")] - #[some_attribute] - pub struct B(pub root :: subxt_codegen :: types :: tests :: C,); - - #[derive(::subxt_path::ext::codec::Decode, ::subxt_path::ext::codec::Encode, ::subxt_path::ext::scale_decode::DecodeAsType, ::subxt_path::ext::scale_encode::EncodeAsType, Debug, Eq, Ord, PartialOrd)] - #[codec(crate = ::subxt_path::ext::codec)] - #[decode_as_type(crate_path = ":: subxt_path :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_path :: ext :: scale_encode")] - pub struct C; - } - } - .to_string() - ) -} - -#[test] -fn opt_out_from_default_derives() { - #[allow(unused)] - #[derive(TypeInfo)] - struct A(B); - - #[allow(unused)] - #[derive(TypeInfo)] - struct B; - - let mut registry = Registry::new(); - registry.register_type(&meta_type::()); - let portable_types: PortableRegistry = registry.into(); - - let crate_path = syn::parse_str("::subxt_path").unwrap(); - // configure derives - let mut derives = DerivesRegistry::new(); - derives.extend_for_all( - vec![parse_quote!(Clone), parse_quote!(Eq)], - vec![parse_quote!(#[some_attribute])], - ); - derives.extend_for_type( - parse_quote!(subxt_codegen::types::tests::B), - vec![parse_quote!(Hash)], - vec![parse_quote!(#[some_other_attribute])], - ); - - let type_gen = TypeGenerator::new( - &portable_types, - "root", - TypeSubstitutes::with_default_substitutes(&crate_path), - derives, - crate_path, - true, - ); - let types = type_gen.generate_types_mod().expect("Valid type mod; qed"); - let tests_mod = get_mod(&types, MOD_PATH).unwrap(); - - assert_eq!( - tests_mod.into_token_stream().to_string(), - quote! { - pub mod tests { - use super::root; - - #[derive(Clone, Eq)] - #[some_attribute] - pub struct A(pub root :: subxt_codegen :: types :: tests :: B,); - - #[derive(Clone, Eq, Hash)] - #[some_attribute] - #[some_other_attribute] - pub struct B; - } - } - .to_string() - ) -} - -/// By default a BTreeMap would be replaced by a KeyedVec. -/// This test demonstrates that it does not happen if we opt out of default type substitutes. -#[test] -fn opt_out_from_default_substitutes() { - use std::collections::BTreeMap; - - #[allow(unused)] - #[derive(TypeInfo)] - struct S { - map: BTreeMap, - } - - let mut registry = Registry::new(); - registry.register_type(&meta_type::()); - let portable_types: PortableRegistry = registry.into(); - - let crate_path = syn::parse_str("::subxt_path").unwrap(); - let type_gen = TypeGenerator::new( - &portable_types, - "root", - TypeSubstitutes::new(), - DerivesRegistry::with_default_derives(&crate_path), - crate_path, - true, - ); - let types = type_gen.generate_types_mod().expect("Valid type mod; qed"); - let tests_mod = get_mod(&types, MOD_PATH).unwrap(); - - assert_eq!( - tests_mod.into_token_stream().to_string(), - quote! { - pub mod tests { - use super::root; - #[derive(::subxt_path::ext::codec::Decode, ::subxt_path::ext::codec::Encode, ::subxt_path::ext::scale_decode::DecodeAsType, ::subxt_path::ext::scale_encode::EncodeAsType, Debug)] - #[codec(crate = ::subxt_path::ext::codec)] - #[decode_as_type(crate_path = ":: subxt_path :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_path :: ext :: scale_encode")] - pub struct S { - pub map: ::std::collections::BTreeMap<:: core :: primitive :: u8,:: core :: primitive :: u8>, - } - } - }.to_string() - ) -} diff --git a/codegen/src/types/type_def.rs b/codegen/src/types/type_def.rs deleted file mode 100644 index b257c90308..0000000000 --- a/codegen/src/types/type_def.rs +++ /dev/null @@ -1,173 +0,0 @@ -// Copyright 2019-2023 Parity Technologies (UK) Ltd. -// This file is dual-licensed as Apache-2.0 or GPL-3.0. -// see LICENSE for license details. - -use crate::error::CodegenError; - -use super::{ - CompositeDef, CompositeDefFields, Derives, TypeDefParameters, TypeGenerator, TypeParameter, -}; -use proc_macro2::TokenStream; -use quote::{format_ident, quote}; -use scale_info::{form::PortableForm, Type, TypeDef}; -use syn::parse_quote; - -/// Generates a Rust `struct` or `enum` definition based on the supplied [`scale-info::Type`]. -/// -/// Field type paths are resolved via the `TypeGenerator`, which contains the registry of all -/// generated types in the module. -#[derive(Debug)] -pub struct TypeDefGen { - /// The type parameters of the type to be generated - type_params: TypeDefParameters, - /// The derives with which to annotate the generated type. - derives: Derives, - /// The kind of type to be generated. - ty_kind: TypeDefGenKind, - /// Type documentation. - ty_docs: TokenStream, -} - -impl TypeDefGen { - /// Construct a type definition for codegen from the given [`scale_info::Type`]. - 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 type_params = ty - .type_params - .iter() - .enumerate() - .filter_map(|(i, tp)| match &tp.ty { - Some(ty) => { - let tp_name = format_ident!("_{}", i); - Some(TypeParameter { - concrete_type_id: ty.id, - original_name: tp.name.clone(), - name: tp_name, - }) - } - None => None, - }) - .collect::>(); - - let mut type_params = TypeDefParameters::new(type_params); - - let ty_kind = match &ty.type_def { - TypeDef::Composite(composite) => { - let type_name = ty.path.ident().expect("structs should have a name"); - let fields = CompositeDefFields::from_scale_info_fields( - &type_name, - &composite.fields, - type_params.params(), - type_gen, - )?; - type_params.update_unused(fields.field_types()); - let docs = should_gen_docs.then_some(&*ty.docs).unwrap_or_default(); - let composite_def = CompositeDef::struct_def( - ty, - &type_name, - type_params.clone(), - fields, - Some(parse_quote!(pub)), - type_gen, - docs, - crate_path, - )?; - TypeDefGenKind::Struct(composite_def) - } - TypeDef::Variant(variant) => { - let type_name = ty.path.ident().expect("variants should have a name"); - - let variants = variant - .variants - .iter() - .map(|v| { - let fields = CompositeDefFields::from_scale_info_fields( - &v.name, - &v.fields, - type_params.params(), - type_gen, - )?; - type_params.update_unused(fields.field_types()); - let docs = should_gen_docs.then_some(&*v.docs).unwrap_or_default(); - let variant_def = CompositeDef::enum_variant_def(&v.name, fields, docs); - Ok((v.index, variant_def)) - }) - .collect::, CodegenError>>()?; - - TypeDefGenKind::Enum(type_name, variants) - } - _ => TypeDefGenKind::BuiltIn, - }; - - let docs = &ty.docs; - let ty_docs = should_gen_docs - .then_some(quote! { #( #[doc = #docs ] )* }) - .unwrap_or_default(); - - Ok(Self { - type_params, - derives, - ty_kind, - ty_docs, - }) - } - - /// are there unused type params? - pub fn has_unused_type_params(&self) -> bool { - self.type_params.has_unused_type_params() - } -} - -impl quote::ToTokens for TypeDefGen { - fn to_tokens(&self, tokens: &mut TokenStream) { - match &self.ty_kind { - TypeDefGenKind::Struct(composite) => composite.to_tokens(tokens), - TypeDefGenKind::Enum(type_name, variants) => { - let mut variants = variants - .iter() - .map(|(index, def)| { - let index = proc_macro2::Literal::u8_unsuffixed(*index); - quote! { - #[codec(index = #index)] - #def - } - }) - .collect::>(); - - if let Some(phantom) = self.type_params.unused_params_phantom_data() { - variants.push(quote! { - __Ignore(#phantom) - }) - } - - let enum_ident = format_ident!("{}", type_name); - let type_params = &self.type_params; - let derives = &self.derives; - let docs = &self.ty_docs; - let ty_toks = quote! { - #derives - #docs - pub enum #enum_ident #type_params { - #( #variants, )* - } - }; - tokens.extend(ty_toks); - } - TypeDefGenKind::BuiltIn => (), /* all built-in types should already be in scope */ - } - } -} - -#[allow(clippy::large_enum_variant)] -#[derive(Debug)] -pub enum TypeDefGenKind { - Struct(CompositeDef), - Enum(String, Vec<(u8, CompositeDef)>), - BuiltIn, -} diff --git a/codegen/src/types/type_def_params.rs b/codegen/src/types/type_def_params.rs deleted file mode 100644 index 155029fdd4..0000000000 --- a/codegen/src/types/type_def_params.rs +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright 2019-2023 Parity Technologies (UK) Ltd. -// This file is dual-licensed as Apache-2.0 or GPL-3.0. -// see LICENSE for license details. - -use super::TypeParameter; -use crate::types::CompositeDefFieldType; -use quote::quote; -use std::collections::BTreeSet; - -/// Represents the set of generic type parameters for generating a type definition e.g. the `T` in -/// `Foo`. -/// -/// Additionally this allows generating a `PhantomData` type for any type params which are unused -/// in the type definition itself. -#[derive(Clone, Debug, Default)] -pub struct TypeDefParameters { - params: Vec, - unused: BTreeSet, -} - -impl TypeDefParameters { - /// Create a new [`TypeDefParameters`] instance. - pub fn new(params: Vec) -> Self { - let unused = params.iter().cloned().collect(); - Self { params, unused } - } - - /// Update the set of unused type parameters by removing those that are used in the given - /// fields. - pub fn update_unused<'a>(&mut self, fields: impl Iterator) { - let mut used_type_params = BTreeSet::new(); - for field in fields { - field.type_path.parent_type_params(&mut used_type_params) - } - for used_type_param in &used_type_params { - self.unused.remove(used_type_param); - } - } - - /// Construct a [`core::marker::PhantomData`] for the type unused type params. - pub fn unused_params_phantom_data(&self) -> Option { - if self.unused.is_empty() { - return None; - } - let params = if self.unused.len() == 1 { - let param = self - .unused - .iter() - .next() - .expect("Checked for exactly one unused param"); - quote! { #param } - } else { - let params = self.unused.iter(); - quote! { ( #( #params ), * ) } - }; - Some(syn::parse_quote! { ::core::marker::PhantomData<#params> }) - } - - /// Returns the set of type parameters. - pub fn params(&self) -> &[TypeParameter] { - &self.params - } - - /// Returns true if there are any unused type params - pub fn has_unused_type_params(&self) -> bool { - !self.unused.is_empty() - } -} - -impl quote::ToTokens for TypeDefParameters { - fn to_tokens(&self, tokens: &mut proc_macro2::TokenStream) { - if !self.params.is_empty() { - let params = &self.params; - tokens.extend(quote! { < #( #params ),* > }) - } - } -} diff --git a/codegen/src/types/type_path.rs b/codegen/src/types/type_path.rs deleted file mode 100644 index 044ee2df6e..0000000000 --- a/codegen/src/types/type_path.rs +++ /dev/null @@ -1,304 +0,0 @@ -// Copyright 2019-2023 Parity Technologies (UK) Ltd. -// This file is dual-licensed as Apache-2.0 or GPL-3.0. -// see LICENSE for license details. - -use proc_macro2::{Ident, TokenStream}; -use quote::format_ident; -use scale_info::{form::PortableForm, Path, TypeDefPrimitive}; -use std::collections::BTreeSet; -use syn::parse_quote; - -/// An opaque struct representing a type path. The main usage of this is -/// to spit out as tokens in some `quote!{ ... }` macro; the inner structure -/// should be unimportant. -#[derive(Clone, Debug)] -pub struct TypePath(TypePathInner); - -#[derive(Clone, Debug)] -pub enum TypePathInner { - Parameter(TypeParameter), - Type(TypePathType), -} - -impl quote::ToTokens for TypePath { - fn to_tokens(&self, tokens: &mut TokenStream) { - let syn_type = self.to_syn_type(); - syn_type.to_tokens(tokens) - } -} - -impl TypePath { - /// Construct a [`TypePath`] from a [`TypeParameter`] - pub fn from_parameter(param: TypeParameter) -> TypePath { - TypePath(TypePathInner::Parameter(param)) - } - - /// Construct a [`TypePath`] from a [`TypeParameter`] - pub fn from_type(ty: TypePathType) -> TypePath { - TypePath(TypePathInner::Type(ty)) - } - - /// Construct a [`TypePath`] from a [`syn::TypePath`] - pub fn from_syn_path(path: syn::Path) -> TypePath { - // Note; this doesn't parse the parameters or anything, but since nothing external - // can inspect this structure, and the ToTokens impl works either way, it should be ok. - TypePath(TypePathInner::Type(TypePathType::Path { - path, - params: Vec::new(), - })) - } - - pub(crate) fn to_syn_type(&self) -> syn::Type { - match &self.0 { - TypePathInner::Parameter(ty_param) => syn::Type::Path(parse_quote! { #ty_param }), - TypePathInner::Type(ty) => ty.to_syn_type(), - } - } - - pub(crate) fn is_compact(&self) -> bool { - matches!(&self.0, TypePathInner::Type(ty) if ty.is_compact()) - } - - pub(crate) fn is_string(&self) -> bool { - matches!(&self.0, TypePathInner::Type(ty) if ty.is_string()) - } - - /// Returns the type parameters in a path which are inherited from the containing type. - /// - /// # Example - /// - /// ```rust - /// struct S { - /// a: Vec>, // the parent type param here is `T` - /// } - /// ``` - pub fn parent_type_params(&self, acc: &mut BTreeSet) { - match &self.0 { - TypePathInner::Parameter(type_parameter) => { - acc.insert(type_parameter.clone()); - } - TypePathInner::Type(type_path) => type_path.parent_type_params(acc), - } - } - - /// Gets the vector type parameter if the data is represented as `TypeDef::Sequence`. - /// - /// **Note:** Utilized for transforming `std::vec::Vec` into slices `&[T]` for the storage API. - pub fn vec_type_param(&self) -> Option<&TypePath> { - let ty = match &self.0 { - TypePathInner::Type(ty) => ty, - _ => return None, - }; - - match ty { - TypePathType::Vec { of } => Some(of), - _ => None, - } - } -} - -#[derive(Clone, Debug)] -pub enum TypePathType { - Path { - path: syn::Path, - params: Vec, - }, - Vec { - of: Box, - }, - Array { - len: usize, - of: Box, - }, - Tuple { - elements: Vec, - }, - Primitive { - def: TypeDefPrimitive, - }, - Compact { - inner: Box, - is_field: bool, - crate_path: syn::Path, - }, - BitVec { - bit_order_type: Box, - bit_store_type: Box, - crate_path: syn::Path, - }, -} - -impl TypePathType { - pub fn from_type_def_path( - path: &Path, - root_mod_ident: Ident, - params: Vec, - ) -> Self { - let path_segments = &*path.segments; - - let path: syn::Path = match path_segments { - [] => panic!("Type has no ident"), - [ident] => { - // paths to prelude types - match ident.as_str() { - "Option" => parse_quote!(::core::option::Option), - "Result" => parse_quote!(::core::result::Result), - "Cow" => parse_quote!(::std::borrow::Cow), - "BTreeMap" => parse_quote!(::std::collections::BTreeMap), - "BTreeSet" => parse_quote!(::std::collections::BTreeSet), - "Range" => parse_quote!(::core::ops::Range), - "RangeInclusive" => parse_quote!(::core::ops::RangeInclusive), - "NonZeroI8" => parse_quote!(::core::num::NonZeroI8), - "NonZeroU8" => parse_quote!(::core::num::NonZeroU8), - "NonZeroI16" => parse_quote!(::core::num::NonZeroI16), - "NonZeroU16" => parse_quote!(::core::num::NonZeroU16), - "NonZeroI32" => parse_quote!(::core::num::NonZeroI32), - "NonZeroU32" => parse_quote!(::core::num::NonZeroU32), - "NonZeroI64" => parse_quote!(::core::num::NonZeroI64), - "NonZeroU64" => parse_quote!(::core::num::NonZeroU64), - "NonZeroI128" => parse_quote!(::core::num::NonZeroI128), - "NonZeroU128" => parse_quote!(::core::num::NonZeroU128), - "NonZeroIsize" => parse_quote!(::core::num::NonZeroIsize), - "NonZeroUsize" => parse_quote!(::core::num::NonZeroUsize), - ident => panic!("Unknown prelude type '{ident}'"), - } - } - _ => { - // paths to generated types in the root types module - let mut ty_path = path_segments - .iter() - .map(|s| syn::PathSegment::from(format_ident!("{}", s))) - .collect::>(); - ty_path.insert(0, syn::PathSegment::from(root_mod_ident)); - parse_quote!( #ty_path ) - } - }; - Self::Path { path, params } - } - - /// Visits a type path, collecting all the generic type parameters from the containing type. - /// - /// # Example - /// - /// ```rust - /// struct S { - /// a: Vec>, // the parent type param here is `T` - /// } - /// ``` - fn parent_type_params(&self, acc: &mut BTreeSet) { - match self { - TypePathType::Path { params, .. } => { - for p in params { - p.parent_type_params(acc) - } - } - TypePathType::Vec { of } => of.parent_type_params(acc), - TypePathType::Array { of, .. } => of.parent_type_params(acc), - TypePathType::Tuple { elements } => { - for e in elements { - e.parent_type_params(acc) - } - } - TypePathType::Primitive { .. } => (), - TypePathType::Compact { inner, .. } => inner.parent_type_params(acc), - TypePathType::BitVec { - bit_order_type, - bit_store_type, - crate_path: _, - } => { - bit_order_type.parent_type_params(acc); - bit_store_type.parent_type_params(acc); - } - } - } - - pub(crate) fn is_compact(&self) -> bool { - matches!(self, TypePathType::Compact { .. }) - } - - pub(crate) fn is_string(&self) -> bool { - matches!( - self, - TypePathType::Primitive { - def: TypeDefPrimitive::Str - } - ) - } - - fn to_syn_type(&self) -> syn::Type { - match &self { - TypePathType::Path { path, params } => { - let path = if params.is_empty() { - parse_quote! { #path } - } else { - parse_quote! { #path< #( #params ),* > } - }; - syn::Type::Path(path) - } - TypePathType::Vec { of } => { - let type_path = parse_quote! { ::std::vec::Vec<#of> }; - syn::Type::Path(type_path) - } - TypePathType::Array { len, of } => { - let array = parse_quote! { [#of; #len] }; - syn::Type::Array(array) - } - TypePathType::Tuple { elements } => { - let tuple = parse_quote! { (#( # elements, )* ) }; - syn::Type::Tuple(tuple) - } - TypePathType::Primitive { def } => syn::Type::Path(match def { - TypeDefPrimitive::Bool => parse_quote!(::core::primitive::bool), - TypeDefPrimitive::Char => parse_quote!(::core::primitive::char), - TypeDefPrimitive::Str => parse_quote!(::std::string::String), - TypeDefPrimitive::U8 => parse_quote!(::core::primitive::u8), - TypeDefPrimitive::U16 => parse_quote!(::core::primitive::u16), - TypeDefPrimitive::U32 => parse_quote!(::core::primitive::u32), - TypeDefPrimitive::U64 => parse_quote!(::core::primitive::u64), - TypeDefPrimitive::U128 => parse_quote!(::core::primitive::u128), - TypeDefPrimitive::U256 => unimplemented!("not a rust primitive"), - TypeDefPrimitive::I8 => parse_quote!(::core::primitive::i8), - TypeDefPrimitive::I16 => parse_quote!(::core::primitive::i16), - TypeDefPrimitive::I32 => parse_quote!(::core::primitive::i32), - TypeDefPrimitive::I64 => parse_quote!(::core::primitive::i64), - TypeDefPrimitive::I128 => parse_quote!(::core::primitive::i128), - TypeDefPrimitive::I256 => unimplemented!("not a rust primitive"), - }), - TypePathType::Compact { - inner, - is_field, - crate_path, - } => { - let path = if *is_field { - // compact fields can use the inner compact type directly and be annotated with - // the `compact` attribute e.g. `#[codec(compact)] my_compact_field: u128` - parse_quote! ( #inner ) - } else { - parse_quote! ( #crate_path::ext::codec::Compact<#inner> ) - }; - syn::Type::Path(path) - } - TypePathType::BitVec { - bit_order_type, - bit_store_type, - crate_path, - } => { - let type_path = parse_quote! { #crate_path::utils::bits::DecodedBits<#bit_store_type, #bit_order_type> }; - syn::Type::Path(type_path) - } - } - } -} - -#[derive(Clone, Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] -pub struct TypeParameter { - pub(super) concrete_type_id: u32, - pub(super) original_name: String, - pub(super) name: Ident, -} - -impl quote::ToTokens for TypeParameter { - fn to_tokens(&self, tokens: &mut TokenStream) { - self.name.to_tokens(tokens) - } -} From 1760792ebe69f98970bb07b0488f23b42a421f03 Mon Sep 17 00:00:00 2001 From: Tadeo hepperle Date: Fri, 10 Nov 2023 10:55:46 +0100 Subject: [PATCH 02/30] reintroduce default substitutes and derives --- codegen/src/lib.rs | 122 +++++++++++++++++++++++++++++++++++++++------ 1 file changed, 107 insertions(+), 15 deletions(-) diff --git a/codegen/src/lib.rs b/codegen/src/lib.rs index e660aab63b..4927ff85ac 100644 --- a/codegen/src/lib.rs +++ b/codegen/src/lib.rs @@ -23,8 +23,13 @@ use getrandom as _; use api::RuntimeGenerator; use proc_macro2::TokenStream as TokenStream2; -use scale_typegen::{DerivesRegistry, TypeSubstitutes}; +use scale_typegen::{ + path_segments, + typegen::settings::substitutes::{absolute_path, PathSegments, Substitute}, + DerivesRegistry, TypeGenerationError, TypeSubstitutes, +}; use std::collections::HashMap; +use syn::parse_quote; // Part of the public interface, so expose: pub use error::CodegenError; @@ -210,11 +215,9 @@ impl CodegenBuilder { let crate_path = self.crate_path; let mut derives_registry: DerivesRegistry = if self.use_default_derives { - // types::DerivesRegistry::with_default_derives(&crate_path) - todo!() + default_derives(&crate_path) } else { - // types::DerivesRegistry::new() - todo!() + DerivesRegistry::new() }; derives_registry.extend_for_all(self.extra_global_derives, self.extra_global_attributes); @@ -227,19 +230,18 @@ impl CodegenBuilder { } let mut type_substitutes: TypeSubstitutes = if self.use_default_substitutions { - // types::TypeSubstitutes::with_default_substitutes(&crate_path) - - todo!() + default_substitutes(&crate_path) } else { - // types::TypeSubstitutes::new() - todo!() + TypeSubstitutes::new() }; - // for (from, with) in self.type_substitutes { - // let abs_path = with.try_into()?; - // type_substitutes.insert(from, abs_path)?; - // } - todo!(); + for (from, with) in self.type_substitutes { + let abs_path = + absolute_path(with).expect("todo: use better error handling in scale-typegen"); + type_substitutes + .insert(from, abs_path) + .expect("todo: use better error handling in scale-typegen"); + } let item_mod = self.item_mod; let generator = RuntimeGenerator::new(metadata); @@ -264,3 +266,93 @@ impl CodegenBuilder { } } } + +fn default_derives(crate_path: &syn::Path) -> DerivesRegistry { + let encode_crate_path = quote::quote! { #crate_path::ext::scale_encode }.to_string(); + let decode_crate_path = quote::quote! { #crate_path::ext::scale_decode }.to_string(); + + let derives: [syn::Path; 5] = [ + parse_quote!(#crate_path::ext::scale_encode::EncodeAsType), + parse_quote!(#crate_path::ext::scale_decode::DecodeAsType), + parse_quote!(#crate_path::ext::codec::Encode), + parse_quote!(#crate_path::ext::codec::Decode), + parse_quote!(Debug), + ]; + + let attributes: [syn::Attribute; 3] = [ + parse_quote!(#[encode_as_type(crate_path = #encode_crate_path)]), + parse_quote!(#[decode_as_type(crate_path = #decode_crate_path)]), + parse_quote!(#[codec(crate = #crate_path::ext::codec)]), + ]; + + let mut derives_registry = DerivesRegistry::new(); + derives_registry.extend_for_all(derives, attributes); + derives_registry +} + +fn default_substitutes(crate_path: &syn::Path) -> TypeSubstitutes { + let mut type_substitutes = TypeSubstitutes::new(); + + let defaults: [(syn::Path, syn::Path); 11] = [ + ( + parse_quote!(bitvec::order::Lsb0), + parse_quote!(#crate_path::utils::bits::Lsb0), + ), + ( + parse_quote!(bitvec::order::Msb0), + parse_quote!(#crate_path::utils::bits::Msb0), + ), + ( + parse_quote!(sp_core::crypto::AccountId32), + parse_quote!(#crate_path::utils::AccountId32), + ), + ( + parse_quote!(sp_runtime::multiaddress::MultiAddress), + parse_quote!(#crate_path::utils::MultiAddress), + ), + ( + parse_quote!(primitive_types::H160), + parse_quote!(#crate_path::utils::H160), + ), + ( + parse_quote!(primitive_types::H256), + parse_quote!(#crate_path::utils::H256), + ), + ( + parse_quote!(primitive_types::H512), + parse_quote!(#crate_path::utils::H512), + ), + ( + parse_quote!(frame_support::traits::misc::WrapperKeepOpaque), + parse_quote!(#crate_path::utils::WrapperKeepOpaque), + ), + // BTreeMap and BTreeSet impose an `Ord` constraint on their key types. This + // can cause an issue with generated code that doesn't impl `Ord` by default. + // Decoding them to Vec by default (KeyedVec is just an alias for Vec with + // suitable type params) avoids these issues. + ( + parse_quote!(BTreeMap), + parse_quote!(#crate_path::utils::KeyedVec), + ), + (parse_quote!(BTreeSet), parse_quote!(::std::vec::Vec)), + // The `UncheckedExtrinsic(pub Vec)` is part of the runtime API calls. + // The inner bytes represent the encoded extrinsic, however when deriving the + // `EncodeAsType` the bytes would be re-encoded. This leads to the bytes + // being altered by adding the length prefix in front of them. + ( + parse_quote!(sp_runtime::generic::unchecked_extrinsic::UncheckedExtrinsic), + parse_quote!(#crate_path::utils::UncheckedExtrinsic), + ), + ]; + + let defaults = defaults.into_iter().map(|(from, to)| { + ( + from, + absolute_path(to).expect("default substitutes should be all absolute paths"), + ) + }); + type_substitutes + .extend(defaults) + .expect("default substitutes should never error"); + type_substitutes +} From b297fc8924553c5892f0cafa6b90fc8d2dca7505 Mon Sep 17 00:00:00 2001 From: Tadeo hepperle Date: Mon, 13 Nov 2023 15:01:02 +0100 Subject: [PATCH 03/30] support runtime_types only again --- Cargo.lock | 26 +------------------ codegen/Cargo.toml | 18 +++++++++---- codegen/src/api/mod.rs | 57 ++++++++++++++++++------------------------ 3 files changed, 39 insertions(+), 62 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 7bcdc7a11d..018b819dd9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1120,12 +1120,6 @@ dependencies = [ "syn 1.0.109", ] -[[package]] -name = "diff" -version = "0.1.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56254986775e3233ffa9c4d7d3faaf6d36a2c09d30b20687e9f88bc8bafc16c8" - [[package]] name = "digest" version = "0.8.1" @@ -2744,16 +2738,6 @@ version = "0.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" -[[package]] -name = "pretty_assertions" -version = "1.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af7cee1a6c8a5b9208b3cb1061f10c0cb689087b3d8ce85fb9d2dd7a29b6ba66" -dependencies = [ - "diff", - "yansi", -] - [[package]] name = "primitive-types" version = "0.12.2" @@ -3251,7 +3235,7 @@ dependencies = [ [[package]] name = "scale-typegen" -version = "0.1.0" +version = "0.0.1" dependencies = [ "anyhow", "parity-scale-codec", @@ -4243,14 +4227,12 @@ dependencies = [ name = "subxt-codegen" version = "0.32.1" dependencies = [ - "bitvec", "frame-metadata 16.0.0", "getrandom 0.2.10", "heck", "hex", "jsonrpsee", "parity-scale-codec", - "pretty_assertions", "proc-macro2", "quote", "scale-info", @@ -5393,12 +5375,6 @@ dependencies = [ "zeroize", ] -[[package]] -name = "yansi" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09041cd90cf85f7f8b2df60c646f853b7f535ce68f85244eb6731cf89fa498ec" - [[package]] name = "yap" version = "0.11.0" diff --git a/codegen/Cargo.toml b/codegen/Cargo.toml index 66a9afc1ad..030c31dbb4 100644 --- a/codegen/Cargo.toml +++ b/codegen/Cargo.toml @@ -15,10 +15,16 @@ description = "Generate an API for interacting with a substrate node from FRAME [features] default = [] fetch-metadata = ["dep:jsonrpsee", "dep:tokio", "dep:frame-metadata"] -web = ["jsonrpsee?/async-wasm-client", "jsonrpsee?/client-web-transport", "getrandom/js"] +web = [ + "jsonrpsee?/async-wasm-client", + "jsonrpsee?/client-web-transport", + "getrandom/js", +] [dependencies] -codec = { package = "parity-scale-codec", workspace = true, features = ["derive"] } +codec = { package = "parity-scale-codec", workspace = true, features = [ + "derive", +] } frame-metadata = { workspace = true, optional = true } heck = { workspace = true } proc-macro2 = { workspace = true } @@ -26,7 +32,11 @@ quote = { workspace = true } syn = { workspace = true } scale-info = { workspace = true } subxt-metadata = { workspace = true } -jsonrpsee = { workspace = true, features = ["async-client", "client-ws-transport-native-tls", "http-client"], optional = true } +jsonrpsee = { workspace = true, features = [ + "async-client", + "client-ws-transport-native-tls", + "http-client", +], optional = true } hex = { workspace = true } tokio = { workspace = true, features = ["rt-multi-thread"], optional = true } thiserror = { workspace = true } @@ -37,6 +47,4 @@ scale-typegen = { path = "../../scale-typegen" } 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 diff --git a/codegen/src/api/mod.rs b/codegen/src/api/mod.rs index 78c83ddfea..cdf72bee9e 100644 --- a/codegen/src/api/mod.rs +++ b/codegen/src/api/mod.rs @@ -64,42 +64,35 @@ impl RuntimeGenerator { should_gen_docs: bool, ) -> Result { let item_mod_attrs = item_mod.attrs.clone(); - let item_mod_ir = ir::ItemMod::try_from(item_mod)?; + + let settings = + subxt_type_gen_settings(derives, type_substitutes, &crate_path, should_gen_docs); + + let type_gen = TypeGenerator::new(self.metadata.types(), settings)?; + let types_mod = type_gen.generate_types_mod()?; let mod_ident = &item_mod_ir.ident; let rust_items = item_mod_ir.rust_items(); - // let type_gen = TypeGenerator::new( - // self.metadata.types(), - // "runtime_types", - // type_substitutes, - // derives, - // crate_path, - // should_gen_docs, - // ); - // let types_mod = type_gen.generate_types_mod()?; - - todo!() - - // Ok(quote! { - // #( #item_mod_attrs )* - // #[allow(dead_code, unused_imports, non_camel_case_types)] - // #[allow(clippy::all)] - // #[allow(rustdoc::broken_intra_doc_links)] - // pub mod #mod_ident { - // // Preserve any Rust items that were previously defined in the adorned module - // #( #rust_items ) * - - // // Make it easy to access the root items via `root_mod` at different levels - // // without reaching out of this module. - // #[allow(unused_imports)] - // mod root_mod { - // pub use super::*; - // } - - // #types_mod - // } - // }) + Ok(quote! { + #( #item_mod_attrs )* + #[allow(dead_code, unused_imports, non_camel_case_types)] + #[allow(clippy::all)] + #[allow(rustdoc::broken_intra_doc_links)] + pub mod #mod_ident { + // Preserve any Rust items that were previously defined in the adorned module + #( #rust_items ) * + + // Make it easy to access the root items via `root_mod` at different levels + // without reaching out of this module. + #[allow(unused_imports)] + mod root_mod { + pub use super::*; + } + + #types_mod + } + }) } /// Generate the API for interacting with a Substrate runtime. From 7a2678af09dee8642799a27f752390e8528f566f Mon Sep 17 00:00:00 2001 From: Tadeo hepperle Date: Mon, 13 Nov 2023 18:10:37 +0100 Subject: [PATCH 04/30] generating polkadot.rs ok --- Cargo.lock | 1 + cli/src/commands/codegen.rs | 4 + codegen/Cargo.toml | 2 +- codegen/src/api/calls.rs | 2 +- codegen/src/api/errors.rs | 2 +- codegen/src/api/mod.rs | 24 +- codegen/src/api/runtime_apis.rs | 4 +- codegen/src/api/storage.rs | 2 +- codegen/src/lib.rs | 4 +- .../src/full_client/codegen/polkadot.rs | 396 ++++++++++++++++-- 10 files changed, 385 insertions(+), 56 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 018b819dd9..9f8baa1958 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3236,6 +3236,7 @@ dependencies = [ [[package]] name = "scale-typegen" version = "0.0.1" +source = "git+https://github.com/paritytech/scale-typegen?branch=master#1d5f4e7ba3b93fdc390ae32cc1d140266dbbc31c" dependencies = [ "anyhow", "parity-scale-codec", diff --git a/cli/src/commands/codegen.rs b/cli/src/commands/codegen.rs index 2f1a2abef1..f32251929f 100644 --- a/cli/src/commands/codegen.rs +++ b/cli/src/commands/codegen.rs @@ -201,6 +201,10 @@ fn codegen( .map_err(|e| eyre!("Cannot decode the provided metadata: {e}"))?; let code = codegen .generate(metadata) + .map_err(|e| { + dbg!(&e); + e + }) .map_err(|e| eyre!("Cannot generate code: {e}"))?; writeln!(output, "{code}")?; diff --git a/codegen/Cargo.toml b/codegen/Cargo.toml index 030c31dbb4..f83073831f 100644 --- a/codegen/Cargo.toml +++ b/codegen/Cargo.toml @@ -40,7 +40,7 @@ jsonrpsee = { workspace = true, features = [ hex = { workspace = true } tokio = { workspace = true, features = ["rt-multi-thread"], optional = true } thiserror = { workspace = true } -scale-typegen = { path = "../../scale-typegen" } +scale-typegen = { git = "https://github.com/paritytech/scale-typegen", branch = "master" } # Included if "web" feature is enabled, to enable its js feature. diff --git a/codegen/src/api/calls.rs b/codegen/src/api/calls.rs index 40881d7e0c..cd631df577 100644 --- a/codegen/src/api/calls.rs +++ b/codegen/src/api/calls.rs @@ -28,7 +28,7 @@ pub fn generate_calls( return Ok(quote!()); }; - let mut struct_defs = super::generate_structs_from_variants( + let struct_defs = super::generate_structs_from_variants( type_gen, call_ty, |name| name.to_upper_camel_case().into(), diff --git a/codegen/src/api/errors.rs b/codegen/src/api/errors.rs index e536c4e41d..2a2afd0ab8 100644 --- a/codegen/src/api/errors.rs +++ b/codegen/src/api/errors.rs @@ -4,7 +4,7 @@ use proc_macro2::TokenStream as TokenStream2; use quote::quote; -use scale_typegen::{typegen::type_path_resolver, TypeGenerator}; +use scale_typegen::TypeGenerator; use subxt_metadata::PalletMetadata; use super::CodegenError; diff --git a/codegen/src/api/mod.rs b/codegen/src/api/mod.rs index cdf72bee9e..c4d774e052 100644 --- a/codegen/src/api/mod.rs +++ b/codegen/src/api/mod.rs @@ -12,9 +12,9 @@ mod events; mod runtime_apis; mod storage; -use scale_typegen::typegen::ir::type_ir::{CompositeIR, TypeIR, TypeIRKind}; +use scale_typegen::typegen::ir::type_ir::CompositeIR; use scale_typegen::typegen::type_params::TypeParameters; -use scale_typegen::{Derives, TypeGenerator, TypeGeneratorSettings, TypePathResolver}; +use scale_typegen::{TypeGenerator, TypeGeneratorSettings}; use subxt_metadata::Metadata; use crate::error::CodegenError; @@ -327,16 +327,20 @@ impl RuntimeGenerator { fn subxt_type_gen_settings( derives: scale_typegen::DerivesRegistry, - type_substitutes: scale_typegen::TypeSubstitutes, + substitutes: scale_typegen::TypeSubstitutes, crate_path: &syn::Path, should_gen_docs: bool, ) -> TypeGeneratorSettings { - let mut settings = TypeGeneratorSettings::default() - .should_gen_docs(should_gen_docs) - .decoded_bits_type_path(parse_quote!(#crate_path::utils::bits::DecodedBits)); - settings.derives = derives; - settings.substitutes = type_substitutes; - settings + TypeGeneratorSettings { + type_mod_name: "runtime_types".into(), + should_gen_docs, + derives, + substitutes, + decoded_bits_type_path: Some(parse_quote!(#crate_path::utils::bits::DecodedBits)), + compact_as_type_path: Some(parse_quote!(#crate_path::ext::codec::CompactAs)), + compact_type_path: Some(parse_quote!(#crate_path::ext::codec::Compact)), + insert_codec_attributes: true, + } } /// Return a vector of tuples of variant names and corresponding struct definitions. @@ -345,7 +349,7 @@ pub fn generate_structs_from_variants( type_id: u32, variant_to_struct_name: F, error_message_type_name: &str, - crate_path: &syn::Path, + _crate_path: &syn::Path, ) -> Result, CodegenError> where F: Fn(&str) -> std::borrow::Cow, diff --git a/codegen/src/api/runtime_apis.rs b/codegen/src/api/runtime_apis.rs index 13a19dfd36..e26ce6c7c3 100644 --- a/codegen/src/api/runtime_apis.rs +++ b/codegen/src/api/runtime_apis.rs @@ -4,7 +4,7 @@ use heck::ToSnakeCase as _; use heck::ToUpperCamelCase as _; -use scale_typegen::typegen::type_path_resolver; + use scale_typegen::TypeGenerator; use subxt_metadata::{Metadata, RuntimeApiMetadata}; @@ -136,7 +136,7 @@ pub fn generate_runtime_apis( type_gen: &TypeGenerator, types_mod_ident: &syn::Ident, crate_path: &syn::Path, - should_gen_docs: bool, + _should_gen_docs: bool, ) -> Result { let runtime_fns: Vec<_> = metadata .runtime_api_traits() diff --git a/codegen/src/api/storage.rs b/codegen/src/api/storage.rs index 88dfc9859f..4a33eb748e 100644 --- a/codegen/src/api/storage.rs +++ b/codegen/src/api/storage.rs @@ -177,7 +177,7 @@ mod tests { use frame_metadata::v15; use quote::{format_ident, quote}; use scale_info::{meta_type, MetaType}; - use scale_typegen::DerivesRegistry; + use std::borrow::Cow; use subxt_metadata::Metadata; diff --git a/codegen/src/lib.rs b/codegen/src/lib.rs index 4927ff85ac..ad9ba78974 100644 --- a/codegen/src/lib.rs +++ b/codegen/src/lib.rs @@ -24,9 +24,7 @@ use getrandom as _; use api::RuntimeGenerator; use proc_macro2::TokenStream as TokenStream2; use scale_typegen::{ - path_segments, - typegen::settings::substitutes::{absolute_path, PathSegments, Substitute}, - DerivesRegistry, TypeGenerationError, TypeSubstitutes, + typegen::settings::substitutes::absolute_path, DerivesRegistry, TypeSubstitutes, }; use std::collections::HashMap; use syn::parse_quote; diff --git a/testing/integration-tests/src/full_client/codegen/polkadot.rs b/testing/integration-tests/src/full_client/codegen/polkadot.rs index dbbe16bd25..242b4ce84e 100644 --- a/testing/integration-tests/src/full_client/codegen/polkadot.rs +++ b/testing/integration-tests/src/full_client/codegen/polkadot.rs @@ -198,7 +198,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 , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > , :: subxt :: utils :: 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 ,) > >, ) -> ::subxt::runtime_api::Payload { ::subxt::runtime_api::Payload::new_static( "Core", @@ -254,7 +254,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 , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > , :: subxt :: utils :: 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 ,) > > , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -393,7 +393,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 :: 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 ,) >, ) -> ::subxt::runtime_api::Payload< types::ApplyExtrinsic, ::core::result::Result< @@ -433,7 +433,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 :: 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 ,) > > >{ ::subxt::runtime_api::Payload::new_static( "BlockBuilder", "inherent_extrinsics", @@ -449,7 +449,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 , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > , :: subxt :: utils :: 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 ,) > >, data: runtime_types::sp_inherents::InherentData, ) -> ::subxt::runtime_api::Payload< types::CheckInherents, @@ -480,7 +480,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 :: 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 ,) > , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -515,7 +515,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 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 > , :: subxt :: utils :: 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 { @@ -685,7 +685,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 :: 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_hash: ::subxt::utils::H256, ) -> ::subxt::runtime_api::Payload< types::ValidateTransaction, @@ -722,7 +722,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 :: 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 mod offchain_worker_api { @@ -2615,7 +2615,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 :: 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 ,) >, len: ::core::primitive::u32, ) -> ::subxt::runtime_api::Payload< types::QueryInfo, @@ -2637,7 +2637,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 :: 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 ,) >, len: ::core::primitive::u32, ) -> ::subxt::runtime_api::Payload< types::QueryFeeDetails, @@ -2703,7 +2703,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 :: 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 , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -2714,7 +2714,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 :: 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 , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -2888,6 +2888,11 @@ pub mod api { } } } + pub fn custom() -> CustomValuesApi { + CustomValuesApi + } + pub struct CustomValuesApi; + impl CustomValuesApi {} pub struct ConstantsApi; impl ConstantsApi { pub fn system(&self) -> system::constants::ConstantsApi { @@ -3323,9 +3328,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, + 63u8, 112u8, 153u8, 58u8, 108u8, 232u8, 33u8, 100u8, 197u8, 178u8, 237u8, 162u8, + 47u8, 16u8, 185u8, 0u8, 6u8, 96u8, 45u8, 233u8, 217u8, 166u8, 1u8, 188u8, 28u8, + 141u8, 116u8, 206u8, 125u8, 179u8, 115u8, 76u8, ] } pub mod system { @@ -3351,6 +3356,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")] + #[doc = "See [`Pallet::remark`]."] pub struct Remark { pub remark: ::std::vec::Vec<::core::primitive::u8>, } @@ -3369,6 +3375,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")] + #[doc = "See [`Pallet::set_heap_pages`]."] pub struct SetHeapPages { pub pages: ::core::primitive::u64, } @@ -3386,6 +3393,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")] + #[doc = "See [`Pallet::set_code`]."] pub struct SetCode { pub code: ::std::vec::Vec<::core::primitive::u8>, } @@ -3403,6 +3411,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")] + #[doc = "See [`Pallet::set_code_without_checks`]."] pub struct SetCodeWithoutChecks { pub code: ::std::vec::Vec<::core::primitive::u8>, } @@ -3420,6 +3429,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")] + #[doc = "See [`Pallet::set_storage`]."] pub struct SetStorage { pub items: ::std::vec::Vec<( ::std::vec::Vec<::core::primitive::u8>, @@ -3440,6 +3450,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")] + #[doc = "See [`Pallet::kill_storage`]."] pub struct KillStorage { pub keys: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, } @@ -3457,6 +3468,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")] + #[doc = "See [`Pallet::kill_prefix`]."] pub struct KillPrefix { pub prefix: ::std::vec::Vec<::core::primitive::u8>, pub subkeys: ::core::primitive::u32, @@ -3475,6 +3487,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")] + #[doc = "See [`Pallet::remark_with_event`]."] pub struct RemarkWithEvent { pub remark: ::std::vec::Vec<::core::primitive::u8>, } @@ -4343,6 +4356,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")] + #[doc = "See [`Pallet::schedule`]."] pub struct Schedule { pub when: ::core::primitive::u32, pub maybe_periodic: @@ -4364,6 +4378,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")] + #[doc = "See [`Pallet::cancel`]."] pub struct Cancel { pub when: ::core::primitive::u32, pub index: ::core::primitive::u32, @@ -4382,6 +4397,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")] + #[doc = "See [`Pallet::schedule_named`]."] pub struct ScheduleNamed { pub id: [::core::primitive::u8; 32usize], pub when: ::core::primitive::u32, @@ -4404,6 +4420,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")] + #[doc = "See [`Pallet::cancel_named`]."] pub struct CancelNamed { pub id: [::core::primitive::u8; 32usize], } @@ -4421,6 +4438,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")] + #[doc = "See [`Pallet::schedule_after`]."] pub struct ScheduleAfter { pub after: ::core::primitive::u32, pub maybe_periodic: @@ -4442,6 +4460,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")] + #[doc = "See [`Pallet::schedule_named_after`]."] pub struct ScheduleNamedAfter { pub id: [::core::primitive::u8; 32usize], pub after: ::core::primitive::u32, @@ -4938,6 +4957,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")] + #[doc = "See [`Pallet::note_preimage`]."] pub struct NotePreimage { pub bytes: ::std::vec::Vec<::core::primitive::u8>, } @@ -4955,6 +4975,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")] + #[doc = "See [`Pallet::unnote_preimage`]."] pub struct UnnotePreimage { pub hash: ::subxt::utils::H256, } @@ -4972,6 +4993,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")] + #[doc = "See [`Pallet::request_preimage`]."] pub struct RequestPreimage { pub hash: ::subxt::utils::H256, } @@ -4989,6 +5011,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")] + #[doc = "See [`Pallet::unrequest_preimage`]."] pub struct UnrequestPreimage { pub hash: ::subxt::utils::H256, } @@ -5286,6 +5309,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")] + #[doc = "See [`Pallet::report_equivocation`]."] pub struct ReportEquivocation { pub equivocation_proof: ::std::boxed::Box< runtime_types::sp_consensus_slots::EquivocationProof< @@ -5312,6 +5336,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")] + #[doc = "See [`Pallet::report_equivocation_unsigned`]."] pub struct ReportEquivocationUnsigned { pub equivocation_proof: ::std::boxed::Box< runtime_types::sp_consensus_slots::EquivocationProof< @@ -5338,6 +5363,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")] + #[doc = "See [`Pallet::plan_config_change`]."] pub struct PlanConfigChange { pub config: runtime_types::sp_consensus_babe::digests::NextConfigDescriptor, } @@ -5950,6 +5976,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")] + #[doc = "See [`Pallet::set`]."] pub struct Set { #[codec(compact)] pub now: ::core::primitive::u64, @@ -6074,6 +6101,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")] + #[doc = "See [`Pallet::claim`]."] pub struct Claim { pub index: ::core::primitive::u32, } @@ -6091,6 +6119,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")] + #[doc = "See [`Pallet::transfer`]."] pub struct Transfer { pub new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub index: ::core::primitive::u32, @@ -6110,6 +6139,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")] + #[doc = "See [`Pallet::free`]."] pub struct Free { pub index: ::core::primitive::u32, } @@ -6127,6 +6157,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")] + #[doc = "See [`Pallet::force_transfer`]."] pub struct ForceTransfer { pub new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub index: ::core::primitive::u32, @@ -6147,6 +6178,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")] + #[doc = "See [`Pallet::freeze`]."] pub struct Freeze { pub index: ::core::primitive::u32, } @@ -6411,6 +6443,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")] + #[doc = "See [`Pallet::transfer_allow_death`]."] pub struct TransferAllowDeath { pub dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, #[codec(compact)] @@ -6430,6 +6463,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")] + #[doc = "See [`Pallet::set_balance_deprecated`]."] pub struct SetBalanceDeprecated { pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, #[codec(compact)] @@ -6451,6 +6485,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")] + #[doc = "See [`Pallet::force_transfer`]."] pub struct ForceTransfer { pub source: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -6471,6 +6506,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")] + #[doc = "See [`Pallet::transfer_keep_alive`]."] pub struct TransferKeepAlive { pub dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, #[codec(compact)] @@ -6490,6 +6526,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")] + #[doc = "See [`Pallet::transfer_all`]."] pub struct TransferAll { pub dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub keep_alive: ::core::primitive::bool, @@ -6508,6 +6545,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")] + #[doc = "See [`Pallet::force_unreserve`]."] pub struct ForceUnreserve { pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub amount: ::core::primitive::u128, @@ -6526,6 +6564,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")] + #[doc = "See [`Pallet::upgrade_accounts`]."] pub struct UpgradeAccounts { pub who: ::std::vec::Vec<::subxt::utils::AccountId32>, } @@ -6543,6 +6582,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")] + #[doc = "See [`Pallet::transfer`]."] pub struct Transfer { pub dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, #[codec(compact)] @@ -6562,6 +6602,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")] + #[doc = "See [`Pallet::force_set_balance`]."] pub struct ForceSetBalance { pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, #[codec(compact)] @@ -7761,6 +7802,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")] + #[doc = "See [`Pallet::bond`]."] pub struct Bond { #[codec(compact)] pub value: ::core::primitive::u128, @@ -7782,6 +7824,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")] + #[doc = "See [`Pallet::bond_extra`]."] pub struct BondExtra { #[codec(compact)] pub max_additional: ::core::primitive::u128, @@ -7800,6 +7843,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")] + #[doc = "See [`Pallet::unbond`]."] pub struct Unbond { #[codec(compact)] pub value: ::core::primitive::u128, @@ -7819,6 +7863,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")] + #[doc = "See [`Pallet::withdraw_unbonded`]."] pub struct WithdrawUnbonded { pub num_slashing_spans: ::core::primitive::u32, } @@ -7836,6 +7881,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")] + #[doc = "See [`Pallet::validate`]."] pub struct Validate { pub prefs: runtime_types::pallet_staking::ValidatorPrefs, } @@ -7853,6 +7899,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")] + #[doc = "See [`Pallet::nominate`]."] pub struct Nominate { pub targets: ::std::vec::Vec< ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -7872,6 +7919,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")] + #[doc = "See [`Pallet::chill`]."] pub struct Chill; impl ::subxt::blocks::StaticExtrinsic for Chill { const PALLET: &'static str = "Staking"; @@ -7887,6 +7935,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")] + #[doc = "See [`Pallet::set_payee`]."] pub struct SetPayee { pub payee: runtime_types::pallet_staking::RewardDestination< ::subxt::utils::AccountId32, @@ -7906,6 +7955,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")] + #[doc = "See [`Pallet::set_controller`]."] pub struct SetController; impl ::subxt::blocks::StaticExtrinsic for SetController { const PALLET: &'static str = "Staking"; @@ -7921,6 +7971,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")] + #[doc = "See [`Pallet::set_validator_count`]."] pub struct SetValidatorCount { #[codec(compact)] pub new: ::core::primitive::u32, @@ -7939,6 +7990,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")] + #[doc = "See [`Pallet::increase_validator_count`]."] pub struct IncreaseValidatorCount { #[codec(compact)] pub additional: ::core::primitive::u32, @@ -7957,6 +8009,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")] + #[doc = "See [`Pallet::scale_validator_count`]."] pub struct ScaleValidatorCount { pub factor: runtime_types::sp_arithmetic::per_things::Percent, } @@ -7974,6 +8027,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")] + #[doc = "See [`Pallet::force_no_eras`]."] pub struct ForceNoEras; impl ::subxt::blocks::StaticExtrinsic for ForceNoEras { const PALLET: &'static str = "Staking"; @@ -7989,6 +8043,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")] + #[doc = "See [`Pallet::force_new_era`]."] pub struct ForceNewEra; impl ::subxt::blocks::StaticExtrinsic for ForceNewEra { const PALLET: &'static str = "Staking"; @@ -8004,6 +8059,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")] + #[doc = "See [`Pallet::set_invulnerables`]."] pub struct SetInvulnerables { pub invulnerables: ::std::vec::Vec<::subxt::utils::AccountId32>, } @@ -8021,6 +8077,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")] + #[doc = "See [`Pallet::force_unstake`]."] pub struct ForceUnstake { pub stash: ::subxt::utils::AccountId32, pub num_slashing_spans: ::core::primitive::u32, @@ -8039,6 +8096,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")] + #[doc = "See [`Pallet::force_new_era_always`]."] pub struct ForceNewEraAlways; impl ::subxt::blocks::StaticExtrinsic for ForceNewEraAlways { const PALLET: &'static str = "Staking"; @@ -8054,6 +8112,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")] + #[doc = "See [`Pallet::cancel_deferred_slash`]."] pub struct CancelDeferredSlash { pub era: ::core::primitive::u32, pub slash_indices: ::std::vec::Vec<::core::primitive::u32>, @@ -8072,6 +8131,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")] + #[doc = "See [`Pallet::payout_stakers`]."] pub struct PayoutStakers { pub validator_stash: ::subxt::utils::AccountId32, pub era: ::core::primitive::u32, @@ -8090,6 +8150,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")] + #[doc = "See [`Pallet::rebond`]."] pub struct Rebond { #[codec(compact)] pub value: ::core::primitive::u128, @@ -8108,6 +8169,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")] + #[doc = "See [`Pallet::reap_stash`]."] pub struct ReapStash { pub stash: ::subxt::utils::AccountId32, pub num_slashing_spans: ::core::primitive::u32, @@ -8126,6 +8188,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")] + #[doc = "See [`Pallet::kick`]."] pub struct Kick { pub who: ::std::vec::Vec< ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -8145,6 +8208,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")] + #[doc = "See [`Pallet::set_staking_configs`]."] pub struct SetStakingConfigs { pub min_nominator_bond: runtime_types::pallet_staking::pallet::pallet::ConfigOp< ::core::primitive::u128, @@ -8181,6 +8245,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")] + #[doc = "See [`Pallet::chill_other`]."] pub struct ChillOther { pub controller: ::subxt::utils::AccountId32, } @@ -8198,6 +8263,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")] + #[doc = "See [`Pallet::force_apply_min_commission`]."] pub struct ForceApplyMinCommission { pub validator_stash: ::subxt::utils::AccountId32, } @@ -8215,6 +8281,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")] + #[doc = "See [`Pallet::set_min_commission`]."] pub struct SetMinCommission { pub new: runtime_types::sp_arithmetic::per_things::Perbill, } @@ -10889,6 +10956,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")] + #[doc = "See [`Pallet::set_keys`]."] pub struct SetKeys { pub keys: runtime_types::polkadot_runtime::SessionKeys, pub proof: ::std::vec::Vec<::core::primitive::u8>, @@ -10907,6 +10975,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")] + #[doc = "See [`Pallet::purge_keys`]."] pub struct PurgeKeys; impl ::subxt::blocks::StaticExtrinsic for PurgeKeys { const PALLET: &'static str = "Session"; @@ -11240,6 +11309,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")] + #[doc = "See [`Pallet::report_equivocation`]."] pub struct ReportEquivocation { pub equivocation_proof: ::std::boxed::Box< runtime_types::sp_consensus_grandpa::EquivocationProof< @@ -11263,6 +11333,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")] + #[doc = "See [`Pallet::report_equivocation_unsigned`]."] pub struct ReportEquivocationUnsigned { pub equivocation_proof: ::std::boxed::Box< runtime_types::sp_consensus_grandpa::EquivocationProof< @@ -11286,6 +11357,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")] + #[doc = "See [`Pallet::note_stalled`]."] pub struct NoteStalled { pub delay: ::core::primitive::u32, pub best_finalized_block_number: ::core::primitive::u32, @@ -11665,6 +11737,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")] + #[doc = "See [`Pallet::heartbeat`]."] pub struct Heartbeat { pub heartbeat: runtime_types::pallet_im_online::Heartbeat<::core::primitive::u32>, @@ -12023,6 +12096,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")] + #[doc = "See [`Pallet::propose`]."] pub struct Propose { pub proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::polkadot_runtime::RuntimeCall, @@ -12044,6 +12118,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")] + #[doc = "See [`Pallet::second`]."] pub struct Second { #[codec(compact)] pub proposal: ::core::primitive::u32, @@ -12062,6 +12137,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")] + #[doc = "See [`Pallet::vote`]."] pub struct Vote { #[codec(compact)] pub ref_index: ::core::primitive::u32, @@ -12083,6 +12159,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")] + #[doc = "See [`Pallet::emergency_cancel`]."] pub struct EmergencyCancel { pub ref_index: ::core::primitive::u32, } @@ -12100,6 +12177,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")] + #[doc = "See [`Pallet::external_propose`]."] pub struct ExternalPropose { pub proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::polkadot_runtime::RuntimeCall, @@ -12119,6 +12197,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")] + #[doc = "See [`Pallet::external_propose_majority`]."] pub struct ExternalProposeMajority { pub proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::polkadot_runtime::RuntimeCall, @@ -12138,6 +12217,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")] + #[doc = "See [`Pallet::external_propose_default`]."] pub struct ExternalProposeDefault { pub proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::polkadot_runtime::RuntimeCall, @@ -12157,6 +12237,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")] + #[doc = "See [`Pallet::fast_track`]."] pub struct FastTrack { pub proposal_hash: ::subxt::utils::H256, pub voting_period: ::core::primitive::u32, @@ -12176,6 +12257,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")] + #[doc = "See [`Pallet::veto_external`]."] pub struct VetoExternal { pub proposal_hash: ::subxt::utils::H256, } @@ -12193,6 +12275,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")] + #[doc = "See [`Pallet::cancel_referendum`]."] pub struct CancelReferendum { #[codec(compact)] pub ref_index: ::core::primitive::u32, @@ -12211,6 +12294,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")] + #[doc = "See [`Pallet::delegate`]."] pub struct Delegate { pub to: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub conviction: runtime_types::pallet_democracy::conviction::Conviction, @@ -12230,6 +12314,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")] + #[doc = "See [`Pallet::undelegate`]."] pub struct Undelegate; impl ::subxt::blocks::StaticExtrinsic for Undelegate { const PALLET: &'static str = "Democracy"; @@ -12245,6 +12330,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")] + #[doc = "See [`Pallet::clear_public_proposals`]."] pub struct ClearPublicProposals; impl ::subxt::blocks::StaticExtrinsic for ClearPublicProposals { const PALLET: &'static str = "Democracy"; @@ -12260,6 +12346,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")] + #[doc = "See [`Pallet::unlock`]."] pub struct Unlock { pub target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, } @@ -12278,6 +12365,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")] + #[doc = "See [`Pallet::remove_vote`]."] pub struct RemoveVote { pub index: ::core::primitive::u32, } @@ -12295,6 +12383,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")] + #[doc = "See [`Pallet::remove_other_vote`]."] pub struct RemoveOtherVote { pub target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub index: ::core::primitive::u32, @@ -12313,6 +12402,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")] + #[doc = "See [`Pallet::blacklist`]."] pub struct Blacklist { pub proposal_hash: ::subxt::utils::H256, pub maybe_ref_index: ::core::option::Option<::core::primitive::u32>, @@ -12331,6 +12421,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")] + #[doc = "See [`Pallet::cancel_proposal`]."] pub struct CancelProposal { #[codec(compact)] pub prop_index: ::core::primitive::u32, @@ -12349,6 +12440,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")] + #[doc = "See [`Pallet::set_metadata`]."] pub struct SetMetadata { pub owner: runtime_types::pallet_democracy::types::MetadataOwner, pub maybe_hash: ::core::option::Option<::subxt::utils::H256>, @@ -13735,6 +13827,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")] + #[doc = "See [`Pallet::set_members`]."] pub struct SetMembers { pub new_members: ::std::vec::Vec<::subxt::utils::AccountId32>, pub prime: ::core::option::Option<::subxt::utils::AccountId32>, @@ -13754,6 +13847,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")] + #[doc = "See [`Pallet::execute`]."] pub struct Execute { pub proposal: ::std::boxed::Box, #[codec(compact)] @@ -13773,6 +13867,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")] + #[doc = "See [`Pallet::propose`]."] pub struct Propose { #[codec(compact)] pub threshold: ::core::primitive::u32, @@ -13794,6 +13889,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")] + #[doc = "See [`Pallet::vote`]."] pub struct Vote { pub proposal: ::subxt::utils::H256, #[codec(compact)] @@ -13814,6 +13910,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")] + #[doc = "See [`Pallet::disapprove_proposal`]."] pub struct DisapproveProposal { pub proposal_hash: ::subxt::utils::H256, } @@ -13831,6 +13928,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")] + #[doc = "See [`Pallet::close`]."] pub struct Close { pub proposal_hash: ::subxt::utils::H256, #[codec(compact)] @@ -14357,6 +14455,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")] + #[doc = "See [`Pallet::set_members`]."] pub struct SetMembers { pub new_members: ::std::vec::Vec<::subxt::utils::AccountId32>, pub prime: ::core::option::Option<::subxt::utils::AccountId32>, @@ -14376,6 +14475,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")] + #[doc = "See [`Pallet::execute`]."] pub struct Execute { pub proposal: ::std::boxed::Box, #[codec(compact)] @@ -14395,6 +14495,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")] + #[doc = "See [`Pallet::propose`]."] pub struct Propose { #[codec(compact)] pub threshold: ::core::primitive::u32, @@ -14416,6 +14517,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")] + #[doc = "See [`Pallet::vote`]."] pub struct Vote { pub proposal: ::subxt::utils::H256, #[codec(compact)] @@ -14436,6 +14538,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")] + #[doc = "See [`Pallet::disapprove_proposal`]."] pub struct DisapproveProposal { pub proposal_hash: ::subxt::utils::H256, } @@ -14453,6 +14556,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")] + #[doc = "See [`Pallet::close`]."] pub struct Close { pub proposal_hash: ::subxt::utils::H256, #[codec(compact)] @@ -14979,6 +15083,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")] + #[doc = "See [`Pallet::vote`]."] pub struct Vote { pub votes: ::std::vec::Vec<::subxt::utils::AccountId32>, #[codec(compact)] @@ -14998,6 +15103,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")] + #[doc = "See [`Pallet::remove_voter`]."] pub struct RemoveVoter; impl ::subxt::blocks::StaticExtrinsic for RemoveVoter { const PALLET: &'static str = "PhragmenElection"; @@ -15013,6 +15119,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")] + #[doc = "See [`Pallet::submit_candidacy`]."] pub struct SubmitCandidacy { #[codec(compact)] pub candidate_count: ::core::primitive::u32, @@ -15031,6 +15138,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")] + #[doc = "See [`Pallet::renounce_candidacy`]."] pub struct RenounceCandidacy { pub renouncing: runtime_types::pallet_elections_phragmen::Renouncing, } @@ -15048,6 +15156,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")] + #[doc = "See [`Pallet::remove_member`]."] pub struct RemoveMember { pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub slash_bond: ::core::primitive::bool, @@ -15067,6 +15176,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")] + #[doc = "See [`Pallet::clean_defunct_voters`]."] pub struct CleanDefunctVoters { pub num_voters: ::core::primitive::u32, pub num_defunct: ::core::primitive::u32, @@ -15682,6 +15792,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")] + #[doc = "See [`Pallet::add_member`]."] pub struct AddMember { pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, } @@ -15699,6 +15810,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")] + #[doc = "See [`Pallet::remove_member`]."] pub struct RemoveMember { pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, } @@ -15716,6 +15828,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")] + #[doc = "See [`Pallet::swap_member`]."] pub struct SwapMember { pub remove: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub add: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -15734,6 +15847,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")] + #[doc = "See [`Pallet::reset_members`]."] pub struct ResetMembers { pub members: ::std::vec::Vec<::subxt::utils::AccountId32>, } @@ -15751,6 +15865,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")] + #[doc = "See [`Pallet::change_key`]."] pub struct ChangeKey { pub new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, } @@ -15768,6 +15883,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")] + #[doc = "See [`Pallet::set_prime`]."] pub struct SetPrime { pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, } @@ -15785,6 +15901,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")] + #[doc = "See [`Pallet::clear_prime`]."] pub struct ClearPrime; impl ::subxt::blocks::StaticExtrinsic for ClearPrime { const PALLET: &'static str = "TechnicalMembership"; @@ -16085,6 +16202,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")] + #[doc = "See [`Pallet::propose_spend`]."] pub struct ProposeSpend { #[codec(compact)] pub value: ::core::primitive::u128, @@ -16104,6 +16222,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")] + #[doc = "See [`Pallet::reject_proposal`]."] pub struct RejectProposal { #[codec(compact)] pub proposal_id: ::core::primitive::u32, @@ -16122,6 +16241,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")] + #[doc = "See [`Pallet::approve_proposal`]."] pub struct ApproveProposal { #[codec(compact)] pub proposal_id: ::core::primitive::u32, @@ -16140,6 +16260,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")] + #[doc = "See [`Pallet::spend`]."] pub struct Spend { #[codec(compact)] pub amount: ::core::primitive::u128, @@ -16159,6 +16280,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")] + #[doc = "See [`Pallet::remove_approval`]."] pub struct RemoveApproval { #[codec(compact)] pub proposal_id: ::core::primitive::u32, @@ -16695,6 +16817,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")] + #[doc = "See [`Pallet::vote`]."] pub struct Vote { #[codec(compact)] pub poll_index: ::core::primitive::u32, @@ -16716,6 +16839,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")] + #[doc = "See [`Pallet::delegate`]."] pub struct Delegate { pub class: ::core::primitive::u16, pub to: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -16737,6 +16861,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")] + #[doc = "See [`Pallet::undelegate`]."] pub struct Undelegate { pub class: ::core::primitive::u16, } @@ -16754,6 +16879,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")] + #[doc = "See [`Pallet::unlock`]."] pub struct Unlock { pub class: ::core::primitive::u16, pub target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -16772,6 +16898,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")] + #[doc = "See [`Pallet::remove_vote`]."] pub struct RemoveVote { pub class: ::core::option::Option<::core::primitive::u16>, pub index: ::core::primitive::u32, @@ -16790,6 +16917,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")] + #[doc = "See [`Pallet::remove_other_vote`]."] pub struct RemoveOtherVote { pub target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub class: ::core::primitive::u16, @@ -17177,6 +17305,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")] + #[doc = "See [`Pallet::submit`]."] pub struct Submit { pub proposal_origin: ::std::boxed::Box, @@ -17203,6 +17332,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")] + #[doc = "See [`Pallet::place_decision_deposit`]."] pub struct PlaceDecisionDeposit { pub index: ::core::primitive::u32, } @@ -17221,6 +17351,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")] + #[doc = "See [`Pallet::refund_decision_deposit`]."] pub struct RefundDecisionDeposit { pub index: ::core::primitive::u32, } @@ -17239,6 +17370,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")] + #[doc = "See [`Pallet::cancel`]."] pub struct Cancel { pub index: ::core::primitive::u32, } @@ -17257,6 +17389,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")] + #[doc = "See [`Pallet::kill`]."] pub struct Kill { pub index: ::core::primitive::u32, } @@ -17275,6 +17408,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")] + #[doc = "See [`Pallet::nudge_referendum`]."] pub struct NudgeReferendum { pub index: ::core::primitive::u32, } @@ -17293,6 +17427,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")] + #[doc = "See [`Pallet::one_fewer_deciding`]."] pub struct OneFewerDeciding { pub track: ::core::primitive::u16, } @@ -17311,6 +17446,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")] + #[doc = "See [`Pallet::refund_submission_deposit`]."] pub struct RefundSubmissionDeposit { pub index: ::core::primitive::u32, } @@ -17328,6 +17464,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")] + #[doc = "See [`Pallet::set_metadata`]."] pub struct SetMetadata { pub index: ::core::primitive::u32, pub maybe_hash: ::core::option::Option<::subxt::utils::H256>, @@ -18200,6 +18337,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")] + #[doc = "See [`Pallet::whitelist_call`]."] pub struct WhitelistCall { pub call_hash: ::subxt::utils::H256, } @@ -18217,6 +18355,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")] + #[doc = "See [`Pallet::remove_whitelisted_call`]."] pub struct RemoveWhitelistedCall { pub call_hash: ::subxt::utils::H256, } @@ -18234,6 +18373,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")] + #[doc = "See [`Pallet::dispatch_whitelisted_call`]."] pub struct DispatchWhitelistedCall { pub call_hash: ::subxt::utils::H256, pub call_encoded_len: ::core::primitive::u32, @@ -18253,6 +18393,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")] + #[doc = "See [`Pallet::dispatch_whitelisted_call_with_preimage`]."] pub struct DispatchWhitelistedCallWithPreimage { pub call: ::std::boxed::Box, } @@ -18477,6 +18618,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")] + #[doc = "See [`Pallet::claim`]."] pub struct Claim { pub dest: ::subxt::utils::AccountId32, pub ethereum_signature: @@ -18496,6 +18638,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")] + #[doc = "See [`Pallet::mint_claim`]."] pub struct MintClaim { pub who: runtime_types::polkadot_runtime_common::claims::EthereumAddress, pub value: ::core::primitive::u128, @@ -18522,6 +18665,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")] + #[doc = "See [`Pallet::claim_attest`]."] pub struct ClaimAttest { pub dest: ::subxt::utils::AccountId32, pub ethereum_signature: @@ -18542,6 +18686,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")] + #[doc = "See [`Pallet::attest`]."] pub struct Attest { pub statement: ::std::vec::Vec<::core::primitive::u8>, } @@ -18559,6 +18704,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")] + #[doc = "See [`Pallet::move_claim`]."] pub struct MoveClaim { pub old: runtime_types::polkadot_runtime_common::claims::EthereumAddress, pub new: runtime_types::polkadot_runtime_common::claims::EthereumAddress, @@ -18988,6 +19134,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")] + #[doc = "See [`Pallet::vest`]."] pub struct Vest; impl ::subxt::blocks::StaticExtrinsic for Vest { const PALLET: &'static str = "Vesting"; @@ -19003,6 +19150,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")] + #[doc = "See [`Pallet::vest_other`]."] pub struct VestOther { pub target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, } @@ -19020,6 +19168,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")] + #[doc = "See [`Pallet::vested_transfer`]."] pub struct VestedTransfer { pub target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub schedule: runtime_types::pallet_vesting::vesting_info::VestingInfo< @@ -19041,6 +19190,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")] + #[doc = "See [`Pallet::force_vested_transfer`]."] pub struct ForceVestedTransfer { pub source: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -19063,6 +19213,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")] + #[doc = "See [`Pallet::merge_schedules`]."] pub struct MergeSchedules { pub schedule1_index: ::core::primitive::u32, pub schedule2_index: ::core::primitive::u32, @@ -19359,6 +19510,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")] + #[doc = "See [`Pallet::batch`]."] pub struct Batch { pub calls: ::std::vec::Vec, } @@ -19376,6 +19528,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")] + #[doc = "See [`Pallet::as_derivative`]."] pub struct AsDerivative { pub index: ::core::primitive::u16, pub call: ::std::boxed::Box, @@ -19394,6 +19547,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")] + #[doc = "See [`Pallet::batch_all`]."] pub struct BatchAll { pub calls: ::std::vec::Vec, } @@ -19411,6 +19565,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")] + #[doc = "See [`Pallet::dispatch_as`]."] pub struct DispatchAs { pub as_origin: ::std::boxed::Box, pub call: ::std::boxed::Box, @@ -19429,6 +19584,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")] + #[doc = "See [`Pallet::force_batch`]."] pub struct ForceBatch { pub calls: ::std::vec::Vec, } @@ -19446,6 +19602,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")] + #[doc = "See [`Pallet::with_weight`]."] pub struct WithWeight { pub call: ::std::boxed::Box, pub weight: runtime_types::sp_weights::weight_v2::Weight, @@ -19724,6 +19881,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")] + #[doc = "See [`Pallet::add_registrar`]."] pub struct AddRegistrar { pub account: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, } @@ -19741,6 +19899,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")] + #[doc = "See [`Pallet::set_identity`]."] pub struct SetIdentity { pub info: ::std::boxed::Box, @@ -19759,6 +19918,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")] + #[doc = "See [`Pallet::set_subs`]."] pub struct SetSubs { pub subs: ::std::vec::Vec<( ::subxt::utils::AccountId32, @@ -19779,6 +19939,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")] + #[doc = "See [`Pallet::clear_identity`]."] pub struct ClearIdentity; impl ::subxt::blocks::StaticExtrinsic for ClearIdentity { const PALLET: &'static str = "Identity"; @@ -19794,6 +19955,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")] + #[doc = "See [`Pallet::request_judgement`]."] pub struct RequestJudgement { #[codec(compact)] pub reg_index: ::core::primitive::u32, @@ -19815,6 +19977,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")] + #[doc = "See [`Pallet::cancel_request`]."] pub struct CancelRequest { pub reg_index: ::core::primitive::u32, } @@ -19832,6 +19995,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")] + #[doc = "See [`Pallet::set_fee`]."] pub struct SetFee { #[codec(compact)] pub index: ::core::primitive::u32, @@ -19852,6 +20016,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")] + #[doc = "See [`Pallet::set_account_id`]."] pub struct SetAccountId { #[codec(compact)] pub index: ::core::primitive::u32, @@ -19871,6 +20036,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")] + #[doc = "See [`Pallet::set_fields`]."] pub struct SetFields { #[codec(compact)] pub index: ::core::primitive::u32, @@ -19892,6 +20058,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")] + #[doc = "See [`Pallet::provide_judgement`]."] pub struct ProvideJudgement { #[codec(compact)] pub reg_index: ::core::primitive::u32, @@ -19914,6 +20081,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")] + #[doc = "See [`Pallet::kill_identity`]."] pub struct KillIdentity { pub target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, } @@ -19931,6 +20099,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")] + #[doc = "See [`Pallet::add_sub`]."] pub struct AddSub { pub sub: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub data: runtime_types::pallet_identity::types::Data, @@ -19949,6 +20118,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")] + #[doc = "See [`Pallet::rename_sub`]."] pub struct RenameSub { pub sub: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub data: runtime_types::pallet_identity::types::Data, @@ -19967,6 +20137,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")] + #[doc = "See [`Pallet::remove_sub`]."] pub struct RemoveSub { pub sub: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, } @@ -19984,6 +20155,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")] + #[doc = "See [`Pallet::quit_sub`]."] pub struct QuitSub; impl ::subxt::blocks::StaticExtrinsic for QuitSub { const PALLET: &'static str = "Identity"; @@ -20785,6 +20957,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")] + #[doc = "See [`Pallet::proxy`]."] pub struct Proxy { pub real: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub force_proxy_type: @@ -20805,6 +20978,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")] + #[doc = "See [`Pallet::add_proxy`]."] pub struct AddProxy { pub delegate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub proxy_type: runtime_types::polkadot_runtime::ProxyType, @@ -20824,6 +20998,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")] + #[doc = "See [`Pallet::remove_proxy`]."] pub struct RemoveProxy { pub delegate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub proxy_type: runtime_types::polkadot_runtime::ProxyType, @@ -20843,6 +21018,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")] + #[doc = "See [`Pallet::remove_proxies`]."] pub struct RemoveProxies; impl ::subxt::blocks::StaticExtrinsic for RemoveProxies { const PALLET: &'static str = "Proxy"; @@ -20858,6 +21034,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")] + #[doc = "See [`Pallet::create_pure`]."] pub struct CreatePure { pub proxy_type: runtime_types::polkadot_runtime::ProxyType, pub delay: ::core::primitive::u32, @@ -20877,6 +21054,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")] + #[doc = "See [`Pallet::kill_pure`]."] pub struct KillPure { pub spawner: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub proxy_type: runtime_types::polkadot_runtime::ProxyType, @@ -20900,6 +21078,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")] + #[doc = "See [`Pallet::announce`]."] pub struct Announce { pub real: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub call_hash: ::subxt::utils::H256, @@ -20918,6 +21097,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")] + #[doc = "See [`Pallet::remove_announcement`]."] pub struct RemoveAnnouncement { pub real: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub call_hash: ::subxt::utils::H256, @@ -20936,6 +21116,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")] + #[doc = "See [`Pallet::reject_announcement`]."] pub struct RejectAnnouncement { pub delegate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub call_hash: ::subxt::utils::H256, @@ -20954,6 +21135,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")] + #[doc = "See [`Pallet::proxy_announced`]."] pub struct ProxyAnnounced { pub delegate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub real: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -21554,6 +21736,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")] + #[doc = "See [`Pallet::as_multi_threshold_1`]."] pub struct AsMultiThreshold1 { pub other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, pub call: ::std::boxed::Box, @@ -21572,6 +21755,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")] + #[doc = "See [`Pallet::as_multi`]."] pub struct AsMulti { pub threshold: ::core::primitive::u16, pub other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, @@ -21595,6 +21779,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")] + #[doc = "See [`Pallet::approve_as_multi`]."] pub struct ApproveAsMulti { pub threshold: ::core::primitive::u16, pub other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, @@ -21618,6 +21803,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")] + #[doc = "See [`Pallet::cancel_as_multi`]."] pub struct CancelAsMulti { pub threshold: ::core::primitive::u16, pub other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, @@ -21992,6 +22178,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")] + #[doc = "See [`Pallet::propose_bounty`]."] pub struct ProposeBounty { #[codec(compact)] pub value: ::core::primitive::u128, @@ -22011,6 +22198,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")] + #[doc = "See [`Pallet::approve_bounty`]."] pub struct ApproveBounty { #[codec(compact)] pub bounty_id: ::core::primitive::u32, @@ -22029,6 +22217,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")] + #[doc = "See [`Pallet::propose_curator`]."] pub struct ProposeCurator { #[codec(compact)] pub bounty_id: ::core::primitive::u32, @@ -22050,6 +22239,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")] + #[doc = "See [`Pallet::unassign_curator`]."] pub struct UnassignCurator { #[codec(compact)] pub bounty_id: ::core::primitive::u32, @@ -22068,6 +22258,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")] + #[doc = "See [`Pallet::accept_curator`]."] pub struct AcceptCurator { #[codec(compact)] pub bounty_id: ::core::primitive::u32, @@ -22086,6 +22277,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")] + #[doc = "See [`Pallet::award_bounty`]."] pub struct AwardBounty { #[codec(compact)] pub bounty_id: ::core::primitive::u32, @@ -22105,6 +22297,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")] + #[doc = "See [`Pallet::claim_bounty`]."] pub struct ClaimBounty { #[codec(compact)] pub bounty_id: ::core::primitive::u32, @@ -22123,6 +22316,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")] + #[doc = "See [`Pallet::close_bounty`]."] pub struct CloseBounty { #[codec(compact)] pub bounty_id: ::core::primitive::u32, @@ -22141,6 +22335,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")] + #[doc = "See [`Pallet::extend_bounty_expiry`]."] pub struct ExtendBountyExpiry { #[codec(compact)] pub bounty_id: ::core::primitive::u32, @@ -22779,6 +22974,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")] + #[doc = "See [`Pallet::add_child_bounty`]."] pub struct AddChildBounty { #[codec(compact)] pub parent_bounty_id: ::core::primitive::u32, @@ -22800,6 +22996,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")] + #[doc = "See [`Pallet::propose_curator`]."] pub struct ProposeCurator { #[codec(compact)] pub parent_bounty_id: ::core::primitive::u32, @@ -22823,6 +23020,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")] + #[doc = "See [`Pallet::accept_curator`]."] pub struct AcceptCurator { #[codec(compact)] pub parent_bounty_id: ::core::primitive::u32, @@ -22843,6 +23041,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")] + #[doc = "See [`Pallet::unassign_curator`]."] pub struct UnassignCurator { #[codec(compact)] pub parent_bounty_id: ::core::primitive::u32, @@ -22863,6 +23062,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")] + #[doc = "See [`Pallet::award_child_bounty`]."] pub struct AwardChildBounty { #[codec(compact)] pub parent_bounty_id: ::core::primitive::u32, @@ -22884,6 +23084,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")] + #[doc = "See [`Pallet::claim_child_bounty`]."] pub struct ClaimChildBounty { #[codec(compact)] pub parent_bounty_id: ::core::primitive::u32, @@ -22904,6 +23105,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")] + #[doc = "See [`Pallet::close_child_bounty`]."] pub struct CloseChildBounty { #[codec(compact)] pub parent_bounty_id: ::core::primitive::u32, @@ -23467,6 +23669,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")] + #[doc = "See [`Pallet::report_awesome`]."] pub struct ReportAwesome { pub reason: ::std::vec::Vec<::core::primitive::u8>, pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -23485,6 +23688,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")] + #[doc = "See [`Pallet::retract_tip`]."] pub struct RetractTip { pub hash: ::subxt::utils::H256, } @@ -23502,6 +23706,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")] + #[doc = "See [`Pallet::tip_new`]."] pub struct TipNew { pub reason: ::std::vec::Vec<::core::primitive::u8>, pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -23522,6 +23727,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")] + #[doc = "See [`Pallet::tip`]."] pub struct Tip { pub hash: ::subxt::utils::H256, #[codec(compact)] @@ -23541,6 +23747,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")] + #[doc = "See [`Pallet::close_tip`]."] pub struct CloseTip { pub hash: ::subxt::utils::H256, } @@ -23558,6 +23765,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")] + #[doc = "See [`Pallet::slash_tip`]."] pub struct SlashTip { pub hash: ::subxt::utils::H256, } @@ -23996,6 +24204,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")] + #[doc = "See [`Pallet::submit_unsigned`]."] pub struct SubmitUnsigned { pub raw_solution: ::std::boxed::Box< runtime_types::pallet_election_provider_multi_phase::RawSolution< @@ -24019,6 +24228,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")] + #[doc = "See [`Pallet::set_minimum_untrusted_score`]."] pub struct SetMinimumUntrustedScore { pub maybe_next_score: ::core::option::Option, @@ -24037,6 +24247,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")] + #[doc = "See [`Pallet::set_emergency_election_result`]."] pub struct SetEmergencyElectionResult { pub supports: ::std::vec::Vec<( ::subxt::utils::AccountId32, @@ -24057,6 +24268,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")] + #[doc = "See [`Pallet::submit`]."] pub struct Submit { pub raw_solution: ::std::boxed::Box< runtime_types::pallet_election_provider_multi_phase::RawSolution< @@ -24078,6 +24290,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")] + #[doc = "See [`Pallet::governance_fallback`]."] pub struct GovernanceFallback { pub maybe_max_voters: ::core::option::Option<::core::primitive::u32>, pub maybe_max_targets: ::core::option::Option<::core::primitive::u32>, @@ -24967,6 +25180,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")] + #[doc = "See [`Pallet::rebag`]."] pub struct Rebag { pub dislocated: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, } @@ -24984,6 +25198,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")] + #[doc = "See [`Pallet::put_in_front_of`]."] pub struct PutInFrontOf { pub lighter: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, } @@ -25285,6 +25500,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")] + #[doc = "See [`Pallet::join`]."] pub struct Join { #[codec(compact)] pub amount: ::core::primitive::u128, @@ -25304,6 +25520,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")] + #[doc = "See [`Pallet::bond_extra`]."] pub struct BondExtra { pub extra: runtime_types::pallet_nomination_pools::BondExtra<::core::primitive::u128>, @@ -25322,6 +25539,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")] + #[doc = "See [`Pallet::claim_payout`]."] pub struct ClaimPayout; impl ::subxt::blocks::StaticExtrinsic for ClaimPayout { const PALLET: &'static str = "NominationPools"; @@ -25337,6 +25555,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")] + #[doc = "See [`Pallet::unbond`]."] pub struct Unbond { pub member_account: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -25357,6 +25576,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")] + #[doc = "See [`Pallet::pool_withdraw_unbonded`]."] pub struct PoolWithdrawUnbonded { pub pool_id: ::core::primitive::u32, pub num_slashing_spans: ::core::primitive::u32, @@ -25375,6 +25595,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")] + #[doc = "See [`Pallet::withdraw_unbonded`]."] pub struct WithdrawUnbonded { pub member_account: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -25394,6 +25615,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")] + #[doc = "See [`Pallet::create`]."] pub struct Create { #[codec(compact)] pub amount: ::core::primitive::u128, @@ -25415,6 +25637,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")] + #[doc = "See [`Pallet::create_with_pool_id`]."] pub struct CreateWithPoolId { #[codec(compact)] pub amount: ::core::primitive::u128, @@ -25437,6 +25660,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")] + #[doc = "See [`Pallet::nominate`]."] pub struct Nominate { pub pool_id: ::core::primitive::u32, pub validators: ::std::vec::Vec<::subxt::utils::AccountId32>, @@ -25455,6 +25679,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")] + #[doc = "See [`Pallet::set_state`]."] pub struct SetState { pub pool_id: ::core::primitive::u32, pub state: runtime_types::pallet_nomination_pools::PoolState, @@ -25473,6 +25698,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")] + #[doc = "See [`Pallet::set_metadata`]."] pub struct SetMetadata { pub pool_id: ::core::primitive::u32, pub metadata: ::std::vec::Vec<::core::primitive::u8>, @@ -25491,6 +25717,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")] + #[doc = "See [`Pallet::set_configs`]."] pub struct SetConfigs { pub min_join_bond: runtime_types::pallet_nomination_pools::ConfigOp<::core::primitive::u128>, @@ -25520,6 +25747,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")] + #[doc = "See [`Pallet::update_roles`]."] pub struct UpdateRoles { pub pool_id: ::core::primitive::u32, pub new_root: runtime_types::pallet_nomination_pools::ConfigOp< @@ -25547,6 +25775,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")] + #[doc = "See [`Pallet::chill`]."] pub struct Chill { pub pool_id: ::core::primitive::u32, } @@ -25564,6 +25793,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")] + #[doc = "See [`Pallet::bond_extra_other`]."] pub struct BondExtraOther { pub member: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub extra: @@ -25583,6 +25813,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")] + #[doc = "See [`Pallet::set_claim_permission`]."] pub struct SetClaimPermission { pub permission: runtime_types::pallet_nomination_pools::ClaimPermission, } @@ -25600,6 +25831,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")] + #[doc = "See [`Pallet::claim_payout_other`]."] pub struct ClaimPayoutOther { pub other: ::subxt::utils::AccountId32, } @@ -25617,6 +25849,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")] + #[doc = "See [`Pallet::set_commission`]."] pub struct SetCommission { pub pool_id: ::core::primitive::u32, pub new_commission: ::core::option::Option<( @@ -25638,6 +25871,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")] + #[doc = "See [`Pallet::set_commission_max`]."] pub struct SetCommissionMax { pub pool_id: ::core::primitive::u32, pub max_commission: runtime_types::sp_arithmetic::per_things::Perbill, @@ -25656,6 +25890,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")] + #[doc = "See [`Pallet::set_commission_change_rate`]."] pub struct SetCommissionChangeRate { pub pool_id: ::core::primitive::u32, pub change_rate: runtime_types::pallet_nomination_pools::CommissionChangeRate< @@ -25677,6 +25912,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")] + #[doc = "See [`Pallet::claim_commission`]."] pub struct ClaimCommission { pub pool_id: ::core::primitive::u32, } @@ -27158,6 +27394,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")] + #[doc = "See [`Pallet::register_fast_unstake`]."] pub struct RegisterFastUnstake; impl ::subxt::blocks::StaticExtrinsic for RegisterFastUnstake { const PALLET: &'static str = "FastUnstake"; @@ -27173,6 +27410,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")] + #[doc = "See [`Pallet::deregister`]."] pub struct Deregister; impl ::subxt::blocks::StaticExtrinsic for Deregister { const PALLET: &'static str = "FastUnstake"; @@ -27189,6 +27427,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")] + #[doc = "See [`Pallet::control`]."] pub struct Control { pub eras_to_check: ::core::primitive::u32, } @@ -27522,6 +27761,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")] + #[doc = "See [`Pallet::set_validation_upgrade_cooldown`]."] pub struct SetValidationUpgradeCooldown { pub new: ::core::primitive::u32, } @@ -27540,6 +27780,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")] + #[doc = "See [`Pallet::set_validation_upgrade_delay`]."] pub struct SetValidationUpgradeDelay { pub new: ::core::primitive::u32, } @@ -27558,6 +27799,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")] + #[doc = "See [`Pallet::set_code_retention_period`]."] pub struct SetCodeRetentionPeriod { pub new: ::core::primitive::u32, } @@ -27576,6 +27818,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")] + #[doc = "See [`Pallet::set_max_code_size`]."] pub struct SetMaxCodeSize { pub new: ::core::primitive::u32, } @@ -27594,6 +27837,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")] + #[doc = "See [`Pallet::set_max_pov_size`]."] pub struct SetMaxPovSize { pub new: ::core::primitive::u32, } @@ -27612,6 +27856,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")] + #[doc = "See [`Pallet::set_max_head_data_size`]."] pub struct SetMaxHeadDataSize { pub new: ::core::primitive::u32, } @@ -27630,6 +27875,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")] + #[doc = "See [`Pallet::set_parathread_cores`]."] pub struct SetParathreadCores { pub new: ::core::primitive::u32, } @@ -27648,6 +27894,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")] + #[doc = "See [`Pallet::set_parathread_retries`]."] pub struct SetParathreadRetries { pub new: ::core::primitive::u32, } @@ -27666,6 +27913,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")] + #[doc = "See [`Pallet::set_group_rotation_frequency`]."] pub struct SetGroupRotationFrequency { pub new: ::core::primitive::u32, } @@ -27684,6 +27932,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")] + #[doc = "See [`Pallet::set_chain_availability_period`]."] pub struct SetChainAvailabilityPeriod { pub new: ::core::primitive::u32, } @@ -27702,6 +27951,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")] + #[doc = "See [`Pallet::set_thread_availability_period`]."] pub struct SetThreadAvailabilityPeriod { pub new: ::core::primitive::u32, } @@ -27720,6 +27970,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")] + #[doc = "See [`Pallet::set_scheduling_lookahead`]."] pub struct SetSchedulingLookahead { pub new: ::core::primitive::u32, } @@ -27737,6 +27988,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")] + #[doc = "See [`Pallet::set_max_validators_per_core`]."] pub struct SetMaxValidatorsPerCore { pub new: ::core::option::Option<::core::primitive::u32>, } @@ -27754,6 +28006,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")] + #[doc = "See [`Pallet::set_max_validators`]."] pub struct SetMaxValidators { pub new: ::core::option::Option<::core::primitive::u32>, } @@ -27772,6 +28025,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")] + #[doc = "See [`Pallet::set_dispute_period`]."] pub struct SetDisputePeriod { pub new: ::core::primitive::u32, } @@ -27790,6 +28044,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")] + #[doc = "See [`Pallet::set_dispute_post_conclusion_acceptance_period`]."] pub struct SetDisputePostConclusionAcceptancePeriod { pub new: ::core::primitive::u32, } @@ -27808,6 +28063,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")] + #[doc = "See [`Pallet::set_no_show_slots`]."] pub struct SetNoShowSlots { pub new: ::core::primitive::u32, } @@ -27826,6 +28082,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")] + #[doc = "See [`Pallet::set_n_delay_tranches`]."] pub struct SetNDelayTranches { pub new: ::core::primitive::u32, } @@ -27844,6 +28101,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")] + #[doc = "See [`Pallet::set_zeroth_delay_tranche_width`]."] pub struct SetZerothDelayTrancheWidth { pub new: ::core::primitive::u32, } @@ -27862,6 +28120,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")] + #[doc = "See [`Pallet::set_needed_approvals`]."] pub struct SetNeededApprovals { pub new: ::core::primitive::u32, } @@ -27880,6 +28139,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")] + #[doc = "See [`Pallet::set_relay_vrf_modulo_samples`]."] pub struct SetRelayVrfModuloSamples { pub new: ::core::primitive::u32, } @@ -27898,6 +28158,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")] + #[doc = "See [`Pallet::set_max_upward_queue_count`]."] pub struct SetMaxUpwardQueueCount { pub new: ::core::primitive::u32, } @@ -27916,6 +28177,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")] + #[doc = "See [`Pallet::set_max_upward_queue_size`]."] pub struct SetMaxUpwardQueueSize { pub new: ::core::primitive::u32, } @@ -27934,6 +28196,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")] + #[doc = "See [`Pallet::set_max_downward_message_size`]."] pub struct SetMaxDownwardMessageSize { pub new: ::core::primitive::u32, } @@ -27952,6 +28215,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")] + #[doc = "See [`Pallet::set_max_upward_message_size`]."] pub struct SetMaxUpwardMessageSize { pub new: ::core::primitive::u32, } @@ -27970,6 +28234,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")] + #[doc = "See [`Pallet::set_max_upward_message_num_per_candidate`]."] pub struct SetMaxUpwardMessageNumPerCandidate { pub new: ::core::primitive::u32, } @@ -27988,6 +28253,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")] + #[doc = "See [`Pallet::set_hrmp_open_request_ttl`]."] pub struct SetHrmpOpenRequestTtl { pub new: ::core::primitive::u32, } @@ -28006,6 +28272,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")] + #[doc = "See [`Pallet::set_hrmp_sender_deposit`]."] pub struct SetHrmpSenderDeposit { pub new: ::core::primitive::u128, } @@ -28024,6 +28291,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")] + #[doc = "See [`Pallet::set_hrmp_recipient_deposit`]."] pub struct SetHrmpRecipientDeposit { pub new: ::core::primitive::u128, } @@ -28042,6 +28310,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")] + #[doc = "See [`Pallet::set_hrmp_channel_max_capacity`]."] pub struct SetHrmpChannelMaxCapacity { pub new: ::core::primitive::u32, } @@ -28060,6 +28329,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")] + #[doc = "See [`Pallet::set_hrmp_channel_max_total_size`]."] pub struct SetHrmpChannelMaxTotalSize { pub new: ::core::primitive::u32, } @@ -28078,6 +28348,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")] + #[doc = "See [`Pallet::set_hrmp_max_parachain_inbound_channels`]."] pub struct SetHrmpMaxParachainInboundChannels { pub new: ::core::primitive::u32, } @@ -28096,6 +28367,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")] + #[doc = "See [`Pallet::set_hrmp_max_parathread_inbound_channels`]."] pub struct SetHrmpMaxParathreadInboundChannels { pub new: ::core::primitive::u32, } @@ -28114,6 +28386,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")] + #[doc = "See [`Pallet::set_hrmp_channel_max_message_size`]."] pub struct SetHrmpChannelMaxMessageSize { pub new: ::core::primitive::u32, } @@ -28132,6 +28405,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")] + #[doc = "See [`Pallet::set_hrmp_max_parachain_outbound_channels`]."] pub struct SetHrmpMaxParachainOutboundChannels { pub new: ::core::primitive::u32, } @@ -28150,6 +28424,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")] + #[doc = "See [`Pallet::set_hrmp_max_parathread_outbound_channels`]."] pub struct SetHrmpMaxParathreadOutboundChannels { pub new: ::core::primitive::u32, } @@ -28168,6 +28443,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")] + #[doc = "See [`Pallet::set_hrmp_max_message_num_per_candidate`]."] pub struct SetHrmpMaxMessageNumPerCandidate { pub new: ::core::primitive::u32, } @@ -28185,6 +28461,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")] + #[doc = "See [`Pallet::set_pvf_checking_enabled`]."] pub struct SetPvfCheckingEnabled { pub new: ::core::primitive::bool, } @@ -28203,6 +28480,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")] + #[doc = "See [`Pallet::set_pvf_voting_ttl`]."] pub struct SetPvfVotingTtl { pub new: ::core::primitive::u32, } @@ -28221,6 +28499,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")] + #[doc = "See [`Pallet::set_minimum_validation_upgrade_delay`]."] pub struct SetMinimumValidationUpgradeDelay { pub new: ::core::primitive::u32, } @@ -28238,6 +28517,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")] + #[doc = "See [`Pallet::set_bypass_consistency_check`]."] pub struct SetBypassConsistencyCheck { pub new: ::core::primitive::bool, } @@ -28255,6 +28535,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")] + #[doc = "See [`Pallet::set_async_backing_params`]."] pub struct SetAsyncBackingParams { pub new: runtime_types::polkadot_primitives::vstaging::AsyncBackingParams, } @@ -28272,6 +28553,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")] + #[doc = "See [`Pallet::set_executor_params`]."] pub struct SetExecutorParams { pub new: runtime_types::polkadot_primitives::v5::executor_params::ExecutorParams, @@ -29401,6 +29683,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")] + #[doc = "See [`Pallet::enter`]."] pub struct Enter { pub data: runtime_types::polkadot_primitives::v5::InherentData< runtime_types::sp_runtime::generic::header::Header< @@ -29693,6 +29976,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")] + #[doc = "See [`Pallet::force_set_current_code`]."] pub struct ForceSetCurrentCode { pub para: runtime_types::polkadot_parachain::primitives::Id, pub new_code: runtime_types::polkadot_parachain::primitives::ValidationCode, @@ -29711,6 +29995,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")] + #[doc = "See [`Pallet::force_set_current_head`]."] pub struct ForceSetCurrentHead { pub para: runtime_types::polkadot_parachain::primitives::Id, pub new_head: runtime_types::polkadot_parachain::primitives::HeadData, @@ -29729,6 +30014,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")] + #[doc = "See [`Pallet::force_schedule_code_upgrade`]."] pub struct ForceScheduleCodeUpgrade { pub para: runtime_types::polkadot_parachain::primitives::Id, pub new_code: runtime_types::polkadot_parachain::primitives::ValidationCode, @@ -29748,6 +30034,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")] + #[doc = "See [`Pallet::force_note_new_head`]."] pub struct ForceNoteNewHead { pub para: runtime_types::polkadot_parachain::primitives::Id, pub new_head: runtime_types::polkadot_parachain::primitives::HeadData, @@ -29766,6 +30053,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")] + #[doc = "See [`Pallet::force_queue_action`]."] pub struct ForceQueueAction { pub para: runtime_types::polkadot_parachain::primitives::Id, } @@ -29783,6 +30071,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")] + #[doc = "See [`Pallet::add_trusted_validation_code`]."] pub struct AddTrustedValidationCode { pub validation_code: runtime_types::polkadot_parachain::primitives::ValidationCode, @@ -29801,6 +30090,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")] + #[doc = "See [`Pallet::poke_unused_validation_code`]."] pub struct PokeUnusedValidationCode { pub validation_code_hash: runtime_types::polkadot_parachain::primitives::ValidationCodeHash, @@ -29819,6 +30109,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")] + #[doc = "See [`Pallet::include_pvf_check_statement`]."] pub struct IncludePvfCheckStatement { pub stmt: runtime_types::polkadot_primitives::v5::PvfCheckStatement, pub signature: runtime_types::polkadot_primitives::v5::validator_app::Signature, @@ -31064,6 +31355,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")] + #[doc = "See [`Pallet::force_approve`]."] pub struct ForceApprove { pub up_to: ::core::primitive::u32, } @@ -31336,6 +31628,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")] + #[doc = "See [`Pallet::hrmp_init_open_channel`]."] pub struct HrmpInitOpenChannel { pub recipient: runtime_types::polkadot_parachain::primitives::Id, pub proposed_max_capacity: ::core::primitive::u32, @@ -31355,6 +31648,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")] + #[doc = "See [`Pallet::hrmp_accept_open_channel`]."] pub struct HrmpAcceptOpenChannel { pub sender: runtime_types::polkadot_parachain::primitives::Id, } @@ -31372,6 +31666,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")] + #[doc = "See [`Pallet::hrmp_close_channel`]."] pub struct HrmpCloseChannel { pub channel_id: runtime_types::polkadot_parachain::primitives::HrmpChannelId, } @@ -31389,6 +31684,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")] + #[doc = "See [`Pallet::force_clean_hrmp`]."] pub struct ForceCleanHrmp { pub para: runtime_types::polkadot_parachain::primitives::Id, pub inbound: ::core::primitive::u32, @@ -31409,6 +31705,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")] + #[doc = "See [`Pallet::force_process_hrmp_open`]."] pub struct ForceProcessHrmpOpen { pub channels: ::core::primitive::u32, } @@ -31427,6 +31724,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")] + #[doc = "See [`Pallet::force_process_hrmp_close`]."] pub struct ForceProcessHrmpClose { pub channels: ::core::primitive::u32, } @@ -31444,6 +31742,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")] + #[doc = "See [`Pallet::hrmp_cancel_open_request`]."] pub struct HrmpCancelOpenRequest { pub channel_id: runtime_types::polkadot_parachain::primitives::HrmpChannelId, pub open_requests: ::core::primitive::u32, @@ -31462,6 +31761,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")] + #[doc = "See [`Pallet::force_open_hrmp_channel`]."] pub struct ForceOpenHrmpChannel { pub sender: runtime_types::polkadot_parachain::primitives::Id, pub recipient: runtime_types::polkadot_parachain::primitives::Id, @@ -32568,6 +32868,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")] + #[doc = "See [`Pallet::force_unfreeze`]."] pub struct ForceUnfreeze; impl ::subxt::blocks::StaticExtrinsic for ForceUnfreeze { const PALLET: &'static str = "ParasDisputes"; @@ -32968,6 +33269,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")] + #[doc = "See [`Pallet::report_dispute_lost_unsigned`]."] pub struct ReportDisputeLostUnsigned { pub dispute_proof: ::std::boxed::Box< runtime_types::polkadot_primitives::v5::slashing::DisputeProof, @@ -33155,6 +33457,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")] + #[doc = "See [`Pallet::register`]."] pub struct Register { pub id: runtime_types::polkadot_parachain::primitives::Id, pub genesis_head: runtime_types::polkadot_parachain::primitives::HeadData, @@ -33175,6 +33478,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")] + #[doc = "See [`Pallet::force_register`]."] pub struct ForceRegister { pub who: ::subxt::utils::AccountId32, pub deposit: ::core::primitive::u128, @@ -33197,6 +33501,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")] + #[doc = "See [`Pallet::deregister`]."] pub struct Deregister { pub id: runtime_types::polkadot_parachain::primitives::Id, } @@ -33214,6 +33519,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")] + #[doc = "See [`Pallet::swap`]."] pub struct Swap { pub id: runtime_types::polkadot_parachain::primitives::Id, pub other: runtime_types::polkadot_parachain::primitives::Id, @@ -33232,6 +33538,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")] + #[doc = "See [`Pallet::remove_lock`]."] pub struct RemoveLock { pub para: runtime_types::polkadot_parachain::primitives::Id, } @@ -33249,6 +33556,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")] + #[doc = "See [`Pallet::reserve`]."] pub struct Reserve; impl ::subxt::blocks::StaticExtrinsic for Reserve { const PALLET: &'static str = "Registrar"; @@ -33264,6 +33572,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")] + #[doc = "See [`Pallet::add_lock`]."] pub struct AddLock { pub para: runtime_types::polkadot_parachain::primitives::Id, } @@ -33281,6 +33590,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")] + #[doc = "See [`Pallet::schedule_code_upgrade`]."] pub struct ScheduleCodeUpgrade { pub para: runtime_types::polkadot_parachain::primitives::Id, pub new_code: runtime_types::polkadot_parachain::primitives::ValidationCode, @@ -33299,6 +33609,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")] + #[doc = "See [`Pallet::set_current_head`]."] pub struct SetCurrentHead { pub para: runtime_types::polkadot_parachain::primitives::Id, pub new_head: runtime_types::polkadot_parachain::primitives::HeadData, @@ -33741,6 +34052,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")] + #[doc = "See [`Pallet::force_lease`]."] pub struct ForceLease { pub para: runtime_types::polkadot_parachain::primitives::Id, pub leaser: ::subxt::utils::AccountId32, @@ -33762,6 +34074,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")] + #[doc = "See [`Pallet::clear_all_leases`]."] pub struct ClearAllLeases { pub para: runtime_types::polkadot_parachain::primitives::Id, } @@ -33779,6 +34092,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")] + #[doc = "See [`Pallet::trigger_onboard`]."] pub struct TriggerOnboard { pub para: runtime_types::polkadot_parachain::primitives::Id, } @@ -34048,6 +34362,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")] + #[doc = "See [`Pallet::new_auction`]."] pub struct NewAuction { #[codec(compact)] pub duration: ::core::primitive::u32, @@ -34068,6 +34383,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")] + #[doc = "See [`Pallet::bid`]."] pub struct Bid { #[codec(compact)] pub para: runtime_types::polkadot_parachain::primitives::Id, @@ -34094,6 +34410,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")] + #[doc = "See [`Pallet::cancel_auction`]."] pub struct CancelAuction; impl ::subxt::blocks::StaticExtrinsic for CancelAuction { const PALLET: &'static str = "Auctions"; @@ -34583,6 +34900,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")] + #[doc = "See [`Pallet::create`]."] pub struct Create { #[codec(compact)] pub index: runtime_types::polkadot_parachain::primitives::Id, @@ -34610,6 +34928,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")] + #[doc = "See [`Pallet::contribute`]."] pub struct Contribute { #[codec(compact)] pub index: runtime_types::polkadot_parachain::primitives::Id, @@ -34632,6 +34951,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")] + #[doc = "See [`Pallet::withdraw`]."] pub struct Withdraw { pub who: ::subxt::utils::AccountId32, #[codec(compact)] @@ -34651,6 +34971,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")] + #[doc = "See [`Pallet::refund`]."] pub struct Refund { #[codec(compact)] pub index: runtime_types::polkadot_parachain::primitives::Id, @@ -34669,6 +34990,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")] + #[doc = "See [`Pallet::dissolve`]."] pub struct Dissolve { #[codec(compact)] pub index: runtime_types::polkadot_parachain::primitives::Id, @@ -34687,6 +35009,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")] + #[doc = "See [`Pallet::edit`]."] pub struct Edit { #[codec(compact)] pub index: runtime_types::polkadot_parachain::primitives::Id, @@ -34714,6 +35037,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")] + #[doc = "See [`Pallet::add_memo`]."] pub struct AddMemo { pub index: runtime_types::polkadot_parachain::primitives::Id, pub memo: ::std::vec::Vec<::core::primitive::u8>, @@ -34732,6 +35056,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")] + #[doc = "See [`Pallet::poke`]."] pub struct Poke { pub index: runtime_types::polkadot_parachain::primitives::Id, } @@ -34749,6 +35074,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")] + #[doc = "See [`Pallet::contribute_all`]."] pub struct ContributeAll { #[codec(compact)] pub index: runtime_types::polkadot_parachain::primitives::Id, @@ -35344,6 +35670,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")] + #[doc = "See [`Pallet::send`]."] pub struct Send { pub dest: ::std::boxed::Box, pub message: ::std::boxed::Box, @@ -35362,6 +35689,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")] + #[doc = "See [`Pallet::teleport_assets`]."] pub struct TeleportAssets { pub dest: ::std::boxed::Box, pub beneficiary: ::std::boxed::Box, @@ -35382,6 +35710,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")] + #[doc = "See [`Pallet::reserve_transfer_assets`]."] pub struct ReserveTransferAssets { pub dest: ::std::boxed::Box, pub beneficiary: ::std::boxed::Box, @@ -35402,6 +35731,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")] + #[doc = "See [`Pallet::execute`]."] pub struct Execute { pub message: ::std::boxed::Box, pub max_weight: runtime_types::sp_weights::weight_v2::Weight, @@ -35420,6 +35750,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")] + #[doc = "See [`Pallet::force_xcm_version`]."] pub struct ForceXcmVersion { pub location: ::std::boxed::Box, @@ -35439,6 +35770,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")] + #[doc = "See [`Pallet::force_default_xcm_version`]."] pub struct ForceDefaultXcmVersion { pub maybe_xcm_version: ::core::option::Option<::core::primitive::u32>, } @@ -35456,6 +35788,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")] + #[doc = "See [`Pallet::force_subscribe_version_notify`]."] pub struct ForceSubscribeVersionNotify { pub location: ::std::boxed::Box, } @@ -35473,6 +35806,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")] + #[doc = "See [`Pallet::force_unsubscribe_version_notify`]."] pub struct ForceUnsubscribeVersionNotify { pub location: ::std::boxed::Box, } @@ -35490,6 +35824,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")] + #[doc = "See [`Pallet::limited_reserve_transfer_assets`]."] pub struct LimitedReserveTransferAssets { pub dest: ::std::boxed::Box, pub beneficiary: ::std::boxed::Box, @@ -35511,6 +35846,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")] + #[doc = "See [`Pallet::limited_teleport_assets`]."] pub struct LimitedTeleportAssets { pub dest: ::std::boxed::Box, pub beneficiary: ::std::boxed::Box, @@ -35532,6 +35868,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")] + #[doc = "See [`Pallet::force_suspension`]."] pub struct ForceSuspension { pub suspended: ::core::primitive::bool, } @@ -36891,6 +37228,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")] + #[doc = "See [`Pallet::reap_page`]."] 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"; @@ -36906,6 +37244,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")] + #[doc = "See [`Pallet::execute_overweight`]."] 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"; @@ -39448,7 +39787,7 @@ pub mod api { 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>, + pub __ignore: ::core::marker::PhantomData<_2>, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -43482,7 +43821,7 @@ pub mod api { pub maybe_periodic: ::core::option::Option<(_2, _2)>, pub origin: _3, #[codec(skip)] - pub __subxt_unused_type_params: ::core::marker::PhantomData<_4>, + pub __ignore: ::core::marker::PhantomData<_4>, } } pub mod pallet_session { @@ -45626,7 +45965,7 @@ pub mod api { pub signature: runtime_types::polkadot_primitives::v5::validator_app::Signature, #[codec(skip)] - pub __subxt_unused_type_params: ::core::marker::PhantomData<_1>, + pub __ignore: ::core::marker::PhantomData<_1>, } } pub mod slashing { @@ -50504,26 +50843,9 @@ pub mod api { 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 __ignore: ::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; From 297d2c6fb6f7eabb420772f1ee30955bd87263e6 Mon Sep 17 00:00:00 2001 From: Tadeo hepperle Date: Wed, 15 Nov 2023 13:00:26 +0100 Subject: [PATCH 05/30] update scale-typegen to discrete error types --- Cargo.lock | 537 +++++++++++------- codegen/src/error.rs | 57 +- codegen/src/lib.rs | 7 +- .../substitute_path_not_absolute.stderr | 2 +- 4 files changed, 331 insertions(+), 272 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 275f6c228b..22caaf28d3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -38,32 +38,33 @@ checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" [[package]] name = "ahash" -version = "0.7.6" +version = "0.7.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fcb51a0695d8f838b1ee009b3fbf66bda078cd64590202a864a8f3e8c4315c47" +checksum = "5a824f2aa7e75a0c98c5a504fceb80649e9c35265d44525b5f94de4771a395cd" dependencies = [ - "getrandom 0.2.10", + "getrandom 0.2.11", "once_cell", "version_check", ] [[package]] name = "ahash" -version = "0.8.3" +version = "0.8.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2c99f64d1e06488f620f932677e24bc6e2897582980441ae90a671415bd7ec2f" +checksum = "91429305e9f0a25f6205c5b8e0d2db09e0708a7a6df0f42212bb56c32c8ac97a" dependencies = [ "cfg-if", - "getrandom 0.2.10", + "getrandom 0.2.11", "once_cell", "version_check", + "zerocopy", ] [[package]] name = "aho-corasick" -version = "1.1.1" +version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea5d730647d4fadd988536d06fecce94b7b4f2a7efdae548f1cf4b63205518ab" +checksum = "b2969dcb958b36655471fc61f7e416fa76033bdd4bfed0678d8fee1e2d07a1f0" dependencies = [ "memchr", ] @@ -204,21 +205,34 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "81953c529336010edd6d8e358f886d9581267795c61b19475b71314bffa46d35" dependencies = [ "concurrent-queue", - "event-listener", + "event-listener 2.5.3", "futures-core", ] +[[package]] +name = "async-channel" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d37875bd9915b7d67c2f117ea2c30a0989874d0b2cb694fe25403c85763c0c9e" +dependencies = [ + "concurrent-queue", + "event-listener 3.1.0", + "event-listener-strategy", + "futures-core", + "pin-project-lite", +] + [[package]] name = "async-executor" -version = "1.5.4" +version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2c1da3ae8dabd9c00f453a329dfe1fb28da3c0a72e2478cdcd93171740c20499" +checksum = "4b0c4a4f319e45986f347ee47fef8bf5e81c9abc3f6f58dc2391439f30df65f0" dependencies = [ - "async-lock", + "async-lock 2.8.0", "async-task", "concurrent-queue", "fastrand 2.0.1", - "futures-lite", + "futures-lite 1.13.0", "slab", ] @@ -228,10 +242,10 @@ version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "279cf904654eeebfa37ac9bb1598880884924aab82e290aa65c9e77a0e142e06" dependencies = [ - "async-lock", + "async-lock 2.8.0", "autocfg", "blocking", - "futures-lite", + "futures-lite 1.13.0", ] [[package]] @@ -240,27 +254,58 @@ version = "1.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0fc5b45d93ef0529756f812ca52e44c221b35341892d3dcc34132ac02f3dd2af" dependencies = [ - "async-lock", + "async-lock 2.8.0", "autocfg", "cfg-if", "concurrent-queue", - "futures-lite", + "futures-lite 1.13.0", "log", "parking", - "polling", - "rustix 0.37.24", + "polling 2.8.0", + "rustix 0.37.27", "slab", - "socket2 0.4.9", + "socket2 0.4.10", "waker-fn", ] +[[package]] +name = "async-io" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41ed9d5715c2d329bf1b4da8d60455b99b187f27ba726df2883799af9af60997" +dependencies = [ + "async-lock 3.1.0", + "cfg-if", + "concurrent-queue", + "futures-io", + "futures-lite 2.0.1", + "parking", + "polling 3.3.0", + "rustix 0.38.24", + "slab", + "tracing", + "waker-fn", + "windows-sys 0.48.0", +] + [[package]] name = "async-lock" version = "2.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "287272293e9d8c41773cec55e365490fe034813a2f172f502d6ddcf75b2f582b" dependencies = [ - "event-listener", + "event-listener 2.5.3", +] + +[[package]] +name = "async-lock" +version = "3.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "deb2ab2aa8a746e221ab826c73f48bc6ba41be6763f0855cb249eb6d154cf1d7" +dependencies = [ + "event-listener 3.1.0", + "event-listener-strategy", + "pin-project-lite", ] [[package]] @@ -269,34 +314,51 @@ version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0434b1ed18ce1cf5769b8ac540e33f01fa9471058b5e89da9e06f3c882a8c12f" dependencies = [ - "async-io", + "async-io 1.13.0", "blocking", - "futures-lite", + "futures-lite 1.13.0", ] [[package]] name = "async-process" -version = "1.7.0" +version = "1.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a9d28b1d97e08915212e2e45310d47854eafa69600756fc735fb788f75199c9" +checksum = "ea6438ba0a08d81529c69b36700fa2f95837bfe3e776ab39cde9c14d9149da88" dependencies = [ - "async-io", - "async-lock", - "autocfg", + "async-io 1.13.0", + "async-lock 2.8.0", + "async-signal", "blocking", "cfg-if", - "event-listener", - "futures-lite", - "rustix 0.37.24", - "signal-hook", + "event-listener 3.1.0", + "futures-lite 1.13.0", + "rustix 0.38.24", + "windows-sys 0.48.0", +] + +[[package]] +name = "async-signal" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e47d90f65a225c4527103a8d747001fc56e375203592b25ad103e1ca13124c5" +dependencies = [ + "async-io 2.2.0", + "async-lock 2.8.0", + "atomic-waker", + "cfg-if", + "futures-core", + "futures-io", + "rustix 0.38.24", + "signal-hook-registry", + "slab", "windows-sys 0.48.0", ] [[package]] name = "async-task" -version = "4.4.1" +version = "4.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9441c6b2fe128a7c2bf680a44c34d0df31ce09e5b7e401fcca3faa483dbc921" +checksum = "b4eb2cdb97421e01129ccb49169d8279ed21e829929144f4a22a6e54ac549ca1" [[package]] name = "async-trait" @@ -367,15 +429,15 @@ checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8" [[package]] name = "base64" -version = "0.21.4" +version = "0.21.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ba43ea6f343b788c8764558649e08df62f86c6ef251fdaeb1ffd010a9ae50a2" +checksum = "35636a1494ede3b646cc98f74f8e62c773a38a659ebc777a2cf26b9b74171df9" [[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", ] @@ -423,9 +485,9 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "bitflags" -version = "2.4.0" +version = "2.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4682ae6287fcf752ecaabbfcc7b6f9b72aa33933dc23a554d853aea8eea8635" +checksum = "327762f6e5a765692301e5bb513e0d9fef63be86bbc14528052b1cd3e6f03e07" [[package]] name = "bitvec" @@ -510,25 +572,25 @@ dependencies = [ [[package]] name = "blocking" -version = "1.4.0" +version = "1.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94c4ef1f913d78636d78d538eec1f18de81e481f44b1be0a81060090530846e1" +checksum = "6a37913e8dc4ddcc604f0c6d3bf2887c995153af3611de9e23c352b44c1b9118" dependencies = [ - "async-channel", - "async-lock", + "async-channel 2.1.0", + "async-lock 3.1.0", "async-task", "fastrand 2.0.1", "futures-io", - "futures-lite", + "futures-lite 2.0.1", "piper", "tracing", ] [[package]] name = "bounded-collections" -version = "0.1.8" +version = "0.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb5b05133427c07c4776906f673ccf36c21b102c9829c641a5b56bd151d44fd6" +checksum = "ca548b6163b872067dc5eb82fd130c56881435e30367d2073594a3d9744120dd" dependencies = [ "log", "parity-scale-codec", @@ -571,9 +633,9 @@ checksum = "e3b5ca7a04898ad4bcd41c90c5285445ff5b791899bb1b0abdd2a2aa791211d7" [[package]] name = "byteorder" -version = "1.4.3" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610" +checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" [[package]] name = "bytes" @@ -819,9 +881,9 @@ dependencies = [ [[package]] name = "cpufeatures" -version = "0.2.9" +version = "0.2.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a17b76ff3a4162b0b27f354a0c87015ddad39d35f9c0c36607a3bdd175dde1f1" +checksum = "ce420fe07aecd3e67c5f910618fe65e94158f6dcc0adf44e00d69ce2bdfe0fd0" dependencies = [ "libc", ] @@ -1004,9 +1066,9 @@ dependencies = [ [[package]] name = "curve25519-dalek-derive" -version = "0.1.0" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "83fdaf97f4804dcebfa5862639bc9ce4121e82140bec2a987ac5140294865b5b" +checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3" dependencies = [ "proc-macro2", "quote", @@ -1178,9 +1240,9 @@ dependencies = [ [[package]] name = "dyn-clone" -version = "1.0.14" +version = "1.0.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23d2f3407d9a573d666de4b5bdf10569d73ca9478087346697dcbae6244bfbcd" +checksum = "545b22097d44f8a9581187cdf93de7a71e4722bf51200cfaba810865b49a495d" [[package]] name = "ed25519" @@ -1197,7 +1259,7 @@ version = "2.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "115531babc129696a58c64a4fef0a8bf9e9698629fb97e9e40767d235cfbcd53" dependencies = [ - "signature 2.1.0", + "signature 2.2.0", ] [[package]] @@ -1234,7 +1296,7 @@ checksum = "7d9ce6874da5d4415896cd45ffbc4d1cfc0c4f9c079427bd870742c30f2f65a9" dependencies = [ "curve25519-dalek 4.1.1", "ed25519 2.2.3", - "hashbrown 0.14.1", + "hashbrown 0.14.2", "hex", "rand_core 0.6.4", "sha2 0.10.8", @@ -1261,30 +1323,40 @@ checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" [[package]] name = "errno" -version = "0.3.4" +version = "0.3.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "add4f07d43996f76ef320709726a556a9d4f965d9410d8d0271132d2f8293480" +checksum = "7c18ee0ed65a5f1f81cac6b1d213b69c35fa47d4252ad41f1486dbd8226fe36e" dependencies = [ - "errno-dragonfly", "libc", "windows-sys 0.48.0", ] [[package]] -name = "errno-dragonfly" -version = "0.1.2" +name = "event-listener" +version = "2.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aa68f1b12764fab894d2755d2518754e71b4fd80ecfb822714a1206c2aab39bf" +checksum = "0206175f82b8d6bf6652ff7d71a1e27fd2e4efde587fd368662814d6ec1d9ce0" + +[[package]] +name = "event-listener" +version = "3.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d93877bcde0eb80ca09131a08d23f0a5c18a620b01db137dba666d18cd9b30c2" dependencies = [ - "cc", - "libc", + "concurrent-queue", + "parking", + "pin-project-lite", ] [[package]] -name = "event-listener" -version = "2.5.3" +name = "event-listener-strategy" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0206175f82b8d6bf6652ff7d71a1e27fd2e4efde587fd368662814d6ec1d9ce0" +checksum = "d96b852f1345da36d551b9473fa1e2b1eb5c5195585c6c018118bc92a8d91160" +dependencies = [ + "event-listener 3.1.0", + "pin-project-lite", +] [[package]] name = "eyre" @@ -1325,9 +1397,9 @@ checksum = "25cbce373ec4653f1a01a31e8a5e5ec0c622dc27ff9c4e6606eefef5cbbed4a5" [[package]] name = "fiat-crypto" -version = "0.2.1" +version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d0870c84016d4b481be5c9f323c24f65e31e901ae618f0e80f4308fb00de1d2d" +checksum = "53a56f0780318174bad1c127063fd0c5fdfb35398e3cd79ffaab931a6c79df80" [[package]] name = "fixed-hash" @@ -1387,9 +1459,9 @@ checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c" [[package]] name = "futures" -version = "0.3.28" +version = "0.3.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23342abe12aba583913b2e62f22225ff9c950774065e4bfb61a19cd9770fec40" +checksum = "da0290714b38af9b4a7b094b8a37086d1b4e61f2df9122c3cad2577669145335" dependencies = [ "futures-channel", "futures-core", @@ -1418,9 +1490,9 @@ checksum = "eb1d22c66e66d9d72e1758f0bd7d4fd0bee04cad842ee34587d68c07e45d088c" [[package]] name = "futures-executor" -version = "0.3.28" +version = "0.3.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ccecee823288125bd88b4d7f565c9e58e41858e47ab72e8ea2d64e93624386e0" +checksum = "0f4fb8693db0cf099eadcca0efe2a5a22e4550f98ed16aba6c48700da29597bc" dependencies = [ "futures-core", "futures-task", @@ -1449,6 +1521,16 @@ dependencies = [ "waker-fn", ] +[[package]] +name = "futures-lite" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3831c2651acb5177cbd83943f3d9c8912c5ad03c76afcc0e9511ba568ec5ebb" +dependencies = [ + "futures-core", + "pin-project-lite", +] + [[package]] name = "futures-macro" version = "0.3.29" @@ -1542,9 +1624,9 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.2.10" +version = "0.2.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be4136b2a15dd319360be1c07d9933517ccf0be8f16bf62a3bee4f0d618df427" +checksum = "fe9006bed769170c11f845cf00c7c1e9092aeb3f268e007c3e760ac68008070f" dependencies = [ "cfg-if", "js-sys", @@ -1674,7 +1756,7 @@ version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" dependencies = [ - "ahash 0.7.6", + "ahash 0.7.7", ] [[package]] @@ -1683,16 +1765,16 @@ version = "0.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "43a3c133739dddd0d2990f9a4bdf8eb4b21ef50e4851ca85ab661199821d510e" dependencies = [ - "ahash 0.8.3", + "ahash 0.8.6", ] [[package]] name = "hashbrown" -version = "0.14.1" +version = "0.14.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7dfda62a12f55daeae5015f81b0baea145391cb4520f86c248fc615d72640d12" +checksum = "f93e7192158dbcda357bdec5fb5788eebf8bbac027f3f33e719d29135ae84156" dependencies = [ - "ahash 0.8.3", + "ahash 0.8.6", "allocator-api2", "serde", ] @@ -1775,9 +1857,9 @@ dependencies = [ [[package]] name = "http" -version = "0.2.9" +version = "0.2.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd6effc99afb63425aff9b05836f029929e345a6148a14b7ecd5ab67af944482" +checksum = "8947b1a6fad4393052c7ba1f4cd97bed3e953a95c79c92ad9b051a04611d9fbb" dependencies = [ "bytes", "fnv", @@ -1824,7 +1906,7 @@ dependencies = [ "httpdate", "itoa", "pin-project-lite", - "socket2 0.4.9", + "socket2 0.4.10", "tokio", "tower-service", "tracing", @@ -1833,9 +1915,9 @@ dependencies = [ [[package]] name = "hyper-rustls" -version = "0.24.1" +version = "0.24.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d78e1e73ec14cf7375674f74d7dde185c8206fd9dea6fb6295e8a98098aaa97" +checksum = "ec3efd23720e2049821a693cbc7e65ea87c72f1c58ff2f9522ff332b1491e590" dependencies = [ "futures-util", "http", @@ -1849,16 +1931,16 @@ dependencies = [ [[package]] name = "iana-time-zone" -version = "0.1.57" +version = "0.1.58" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2fad5b825842d2b38bd206f3e81d6957625fd7f0a361e345c30e01a0ae2dd613" +checksum = "8326b86b6cff230b97d0d312a6c40a60726df3332e721f72a1b035f451663b20" dependencies = [ "android_system_properties", "core-foundation-sys", "iana-time-zone-haiku", "js-sys", "wasm-bindgen", - "windows", + "windows-core", ] [[package]] @@ -1934,12 +2016,12 @@ dependencies = [ [[package]] name = "indexmap" -version = "2.0.2" +version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8adf3ddd720272c6ea8bf59463c04e0f93d0bbf7c5439b691bca2987e0270897" +checksum = "d530e1a18b1cb4c484e6e34556a0d948706958449fca0cab753d649f2bce3d1f" dependencies = [ "equivalent", - "hashbrown 0.14.1", + "hashbrown 0.14.2", ] [[package]] @@ -2000,7 +2082,7 @@ dependencies = [ "test-runtime", "tokio", "tracing", - "tracing-subscriber 0.3.17", + "tracing-subscriber 0.3.18", "wabt", ] @@ -2089,7 +2171,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "da2327ba8df2fdbd5e897e2b5ed25ce7f299d345b9736b6828814c3dbd1fd47b" dependencies = [ "anyhow", - "async-lock", + "async-lock 2.8.0", "async-trait", "beef", "futures-timer", @@ -2162,9 +2244,9 @@ checksum = "89d92a4743f9a61002fae18374ed11e7973f530cb3a3255fb354818118b2203c" [[package]] name = "libm" -version = "0.2.7" +version = "0.2.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7012b1bbb0719e1097c47611d3898568c546d597c2e74d66f6087edd5233ff4" +checksum = "4ec2a862134d2a7d32d7983ddcdd1c4923530833c9f2ea1a44fc5fa473989058" [[package]] name = "libsecp256k1" @@ -2228,15 +2310,15 @@ checksum = "ef53942eb7bf7ff43a617b3e2c1c4a5ecf5944a7c1bc12d7ee39bbb15e5c1519" [[package]] name = "linux-raw-sys" -version = "0.4.8" +version = "0.4.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3852614a3bd9ca9804678ba6be5e3b8ce76dfc902cae004e3e0c44051b6e88db" +checksum = "969488b55f8ac402214f3f5fd243ebb7206cf82de60d3172994707a4bcc2b829" [[package]] name = "lock_api" -version = "0.4.10" +version = "0.4.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1cc9717a20b1bb222f333e6a92fd32f7d8a18ddc5a3191a11af45dcbf4dcd16" +checksum = "3c168f8615b12bc01f9c17e2eb0cc07dcae1940121185446edc3744920e8ef45" dependencies = [ "autocfg", "scopeguard", @@ -2284,7 +2366,7 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b2cffa4ad52c6f791f4f8b15f0c05f9824b2ced1160e88cc393d64fff9a8ac64" dependencies = [ - "rustix 0.38.17", + "rustix 0.38.24", ] [[package]] @@ -2447,9 +2529,9 @@ dependencies = [ [[package]] name = "num-traits" -version = "0.2.16" +version = "0.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f30b0abd723be7e2ffca1272140fac1a2f084c77ec3e123c192b66af1ee9e6c2" +checksum = "39e3200413f237f41ab11ad6d161bc7239c84dcb631773ccd7de3dfe4b5c267c" dependencies = [ "autocfg", ] @@ -2517,9 +2599,9 @@ checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" [[package]] name = "os_str_bytes" -version = "6.5.1" +version = "6.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d5d9eb14b174ee9aa2ef96dc2b94637a2d4b6e7cb873c7e171f0c20c6cf3eac" +checksum = "e2355d85b9a3786f481747ced0e0ff2ba35213a1f9bd406ed906554d7af805a1" [[package]] name = "overload" @@ -2562,9 +2644,9 @@ dependencies = [ [[package]] name = "parking" -version = "2.1.1" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e52c774a4c39359c1d1c52e43f73dd91a75a614652c825408eec30c95a9b2067" +checksum = "bb813b8af86854136c6922af0598d719255ecb2179515e6e7730d468f05c9cae" [[package]] name = "parking_lot" @@ -2578,9 +2660,9 @@ dependencies = [ [[package]] name = "parking_lot_core" -version = "0.9.8" +version = "0.9.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "93f00c865fe7cabf650081affecd3871070f26767e7b2070a3ffae14c654b447" +checksum = "4c42a9226546d68acdd9c0a280d17ce19bfe27a46bf68784e4066115788d008e" dependencies = [ "cfg-if", "libc", @@ -2673,9 +2755,9 @@ dependencies = [ [[package]] name = "platforms" -version = "3.1.2" +version = "3.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4503fa043bf02cee09a9582e9554b4c6403b2ef55e4612e96561d294419429f8" +checksum = "14e6ab3f592e6fb464fc9712d8d6e6912de6473954635fd76a589d832cffcbb0" [[package]] name = "plotters" @@ -2721,6 +2803,20 @@ dependencies = [ "windows-sys 0.48.0", ] +[[package]] +name = "polling" +version = "3.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e53b6af1f60f36f8c2ac2aad5459d75a5a9b4be1e8cdd40264f315d78193e531" +dependencies = [ + "cfg-if", + "concurrent-queue", + "pin-project-lite", + "rustix 0.38.24", + "tracing", + "windows-sys 0.48.0", +] + [[package]] name = "poly1305" version = "0.8.0" @@ -2877,7 +2973,7 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" dependencies = [ - "getrandom 0.2.10", + "getrandom 0.2.11", ] [[package]] @@ -2911,9 +3007,9 @@ dependencies = [ [[package]] name = "redox_syscall" -version = "0.3.5" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "567664f262709473930a4bf9e51bf2ebf3348f2e748ccc50dea20646858f8f29" +checksum = "4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa" dependencies = [ "bitflags 1.3.2", ] @@ -2984,17 +3080,16 @@ checksum = "c08c74e62047bb2de4ff487b251e4a92e24f48745648451635cec7d591162d9f" [[package]] name = "ring" -version = "0.16.20" +version = "0.17.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3053cf52e236a3ed746dfc745aa9cacf1b791d846bdaf412f60a8d7d6e17c8fc" +checksum = "fb0205304757e5d899b9c2e448b867ffd03ae7f988002e47cd24954391394d0b" dependencies = [ "cc", + "getrandom 0.2.11", "libc", - "once_cell", - "spin 0.5.2", + "spin", "untrusted", - "web-sys", - "winapi", + "windows-sys 0.48.0", ] [[package]] @@ -3026,9 +3121,9 @@ dependencies = [ [[package]] name = "rustix" -version = "0.36.16" +version = "0.36.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6da3636faa25820d8648e0e31c5d519bbb01f72fdf57131f0f5f7da5fed36eab" +checksum = "305efbd14fde4139eb501df5f136994bb520b033fa9fbdce287507dc23b8c7ed" dependencies = [ "bitflags 1.3.2", "errno", @@ -3040,9 +3135,9 @@ dependencies = [ [[package]] name = "rustix" -version = "0.37.24" +version = "0.37.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4279d76516df406a8bd37e7dff53fd37d1a093f997a3c34a5c21658c126db06d" +checksum = "fea8ca367a3a01fe35e6943c400addf443c0f57670e6ec51196f71a4b8762dd2" dependencies = [ "bitflags 1.3.2", "errno", @@ -3054,22 +3149,22 @@ dependencies = [ [[package]] name = "rustix" -version = "0.38.17" +version = "0.38.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f25469e9ae0f3d0047ca8b93fc56843f38e6774f0914a107ff8b41be8be8e0b7" +checksum = "9ad981d6c340a49cdc40a1028d9c6084ec7e9fa33fcb839cab656a267071e234" dependencies = [ - "bitflags 2.4.0", + "bitflags 2.4.1", "errno", "libc", - "linux-raw-sys 0.4.8", + "linux-raw-sys 0.4.11", "windows-sys 0.48.0", ] [[package]] name = "rustls" -version = "0.21.7" +version = "0.21.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd8d6c9f025a446bc4d18ad9632e69aec8f287aa84499ee335599fabd20c3fd8" +checksum = "446e14c5cda4f3f30fe71863c34ec70f5ac79d6087097ad0bb433e1be5edf04c" dependencies = [ "log", "ring", @@ -3091,18 +3186,18 @@ dependencies = [ [[package]] name = "rustls-pemfile" -version = "1.0.3" +version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d3987094b1d07b653b7dfdc3f70ce9a1da9c51ac18c1b06b662e4f9a0e9f4b2" +checksum = "1c74cae0a4cf6ccbbf5f359f08efdf8ee7e1dc532573bf0db71968cb56b1448c" dependencies = [ - "base64 0.21.4", + "base64 0.21.5", ] [[package]] name = "rustls-webpki" -version = "0.101.6" +version = "0.101.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c7d5dece342910d9ba34d259310cae3e0154b873b35408b787b59bce53d34fe" +checksum = "8b6275d1ee7a1cd780b64aca7726599a1dbc893b1e64144529e55c3c2f745765" dependencies = [ "ring", "untrusted", @@ -3236,9 +3331,8 @@ dependencies = [ [[package]] name = "scale-typegen" version = "0.0.1" -source = "git+https://github.com/paritytech/scale-typegen?branch=master#1d5f4e7ba3b93fdc390ae32cc1d140266dbbc31c" +source = "git+https://github.com/paritytech/scale-typegen?branch=master#6b790af4e5c857b34e4610fa441688176b6753d2" dependencies = [ - "anyhow", "parity-scale-codec", "proc-macro2", "quote", @@ -3283,7 +3377,7 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "772575a524feeb803e5b0fcbc6dd9f367e579488197c94c6e4023aad2305774d" dependencies = [ - "ahash 0.8.3", + "ahash 0.8.6", "cfg-if", "hashbrown 0.13.2", ] @@ -3331,9 +3425,9 @@ checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" [[package]] name = "sct" -version = "0.7.0" +version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d53dcdb7c9f8158937a7981b48accfd39a43af418591a5d008c7b22b5e1b7ca4" +checksum = "da046153aa2352493d6cb7da4b6e5c0c057d8a1d0a9aa8560baffdd945acd414" dependencies = [ "ring", "untrusted", @@ -3409,9 +3503,9 @@ dependencies = [ [[package]] name = "semver" -version = "1.0.19" +version = "1.0.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad977052201c6de01a8ef2aa3378c4bd23217a056337d1d6da40468d267a4fb0" +checksum = "836fa6a3e1e547f9a2c4040802ec865b5d85f4014efe00555d7090a3dcaa1090" [[package]] name = "send_wrapper" @@ -3533,16 +3627,6 @@ dependencies = [ "lazy_static", ] -[[package]] -name = "signal-hook" -version = "0.3.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8621587d4798caf8eb44879d42e56b9a93ea5dcd315a6487c357130095b62801" -dependencies = [ - "libc", - "signal-hook-registry", -] - [[package]] name = "signal-hook-registry" version = "1.4.1" @@ -3560,9 +3644,9 @@ checksum = "74233d3b3b2f6d4b006dc19dee745e73e2a6bfb6f93607cd3b02bd5b00797d7c" [[package]] name = "signature" -version = "2.1.0" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e1788eed21689f9cf370582dfc467ef36ed9c707f073528ddafa8d83e3b8500" +checksum = "77549399552de45a898a580c1b41d445bf730df867cc44e6c0233bbc4b8329de" [[package]] name = "siphasher" @@ -3581,9 +3665,9 @@ dependencies = [ [[package]] name = "smallvec" -version = "1.11.1" +version = "1.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "942b4a808e05215192e39f4ab80813e599068285906cc91aa64f923db842bd5a" +checksum = "4dccd0940a2dcdf68d092b8cbab7dc0ad8fa938bf95787e1b916b0e3d0e8e970" [[package]] name = "smol" @@ -3591,15 +3675,15 @@ version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "13f2b548cd8447f8de0fdf1c592929f70f4fc7039a05e47404b0d096ec6987a1" dependencies = [ - "async-channel", + "async-channel 1.9.0", "async-executor", "async-fs", - "async-io", - "async-lock", + "async-io 1.13.0", + "async-lock 2.8.0", "async-net", "async-process", "blocking", - "futures-lite", + "futures-lite 1.13.0", ] [[package]] @@ -3609,9 +3693,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4388a7690d9f76320dedc7f97f213160fbe4fb4a38a8b4cc8bb96e0fd05e0971" dependencies = [ "arrayvec 0.7.4", - "async-lock", + "async-lock 2.8.0", "atomic-take", - "base64 0.21.4", + "base64 0.21.5", "bip39", "blake2-rfc", "bs58 0.5.0", @@ -3620,11 +3704,11 @@ dependencies = [ "derive_more", "ed25519-zebra 4.0.3", "either", - "event-listener", + "event-listener 2.5.3", "fnv", - "futures-lite", + "futures-lite 1.13.0", "futures-util", - "hashbrown 0.14.1", + "hashbrown 0.14.2", "hex", "hmac 0.12.1", "itertools 0.11.0", @@ -3662,18 +3746,18 @@ version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bea3d21923cbdb1362205ff8b2adb5da67e6b81b34c4bba1baaef9b88cbd83b8" dependencies = [ - "async-channel", - "async-lock", - "base64 0.21.4", + "async-channel 1.9.0", + "async-lock 2.8.0", + "base64 0.21.5", "blake2-rfc", "derive_more", "either", - "event-listener", + "event-listener 2.5.3", "fnv", "futures-channel", - "futures-lite", + "futures-lite 1.13.0", "futures-util", - "hashbrown 0.14.1", + "hashbrown 0.14.2", "hex", "itertools 0.11.0", "log", @@ -3694,9 +3778,9 @@ dependencies = [ [[package]] name = "socket2" -version = "0.4.9" +version = "0.4.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "64a4a911eed85daf18834cfaa86a79b7d266ff93ff5ba14005426219480ed662" +checksum = "9f7916fc008ca5542385b89a3d3ce689953c143e9304a9bf8beec1de48994c0d" dependencies = [ "libc", "winapi", @@ -4018,7 +4102,7 @@ version = "22.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "48e4eeb7ef23f79eba8609db79ef9cef242f994f1f87a3c0387b4b5f177fda74" dependencies = [ - "ahash 0.8.3", + "ahash 0.8.6", "hash-db", "hashbrown 0.13.2", "lazy_static", @@ -4066,12 +4150,6 @@ dependencies = [ "sp-std", ] -[[package]] -name = "spin" -version = "0.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" - [[package]] name = "spin" version = "0.9.8" @@ -4080,9 +4158,9 @@ checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" [[package]] name = "ss58-registry" -version = "1.43.0" +version = "1.44.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e6915280e2d0db8911e5032a5c275571af6bdded2916abd691a659be25d3439" +checksum = "35935738370302d5e33963665b77541e4b990a3e919ec904c837a56cfc891de1" dependencies = [ "Inflector", "num-format", @@ -4135,9 +4213,9 @@ dependencies = [ [[package]] name = "substrate-bip39" -version = "0.4.4" +version = "0.4.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49eee6965196b32f882dd2ee85a92b1dbead41b04e53907f269de3b0dc04733c" +checksum = "e620c7098893ba667438b47169c00aacdd9e7c10e042250ce2b60b087ec97328" dependencies = [ "hmac 0.11.0", "pbkdf2 0.8.0", @@ -4175,7 +4253,7 @@ dependencies = [ "either", "frame-metadata 16.0.0", "futures", - "getrandom 0.2.10", + "getrandom 0.2.11", "hex", "impl-serde", "jsonrpsee", @@ -4200,7 +4278,7 @@ dependencies = [ "tokio", "tokio-stream", "tracing", - "tracing-subscriber 0.3.17", + "tracing-subscriber 0.3.18", ] [[package]] @@ -4229,7 +4307,7 @@ name = "subxt-codegen" version = "0.32.1" dependencies = [ "frame-metadata 16.0.0", - "getrandom 0.2.10", + "getrandom 0.2.11", "heck", "hex", "jsonrpsee", @@ -4252,7 +4330,7 @@ dependencies = [ "futures", "futures-timer", "futures-util", - "getrandom 0.2.10", + "getrandom 0.2.11", "instant", "js-sys", "pin-project", @@ -4301,7 +4379,7 @@ name = "subxt-signer" version = "0.32.1" dependencies = [ "bip39", - "getrandom 0.2.10", + "getrandom 0.2.11", "hex", "hmac 0.12.1", "parity-scale-codec", @@ -4349,15 +4427,15 @@ checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" [[package]] name = "target-lexicon" -version = "0.12.11" +version = "0.12.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d0e916b1148c8e263850e1ebcbd046f333e0683c724876bb0da63ea4373dc8a" +checksum = "14c39fd04924ca3a864207c66fc2cd7d22d7c016007f9ce846cbb9326331930a" [[package]] name = "termcolor" -version = "1.3.0" +version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6093bad37da69aab9d123a8091e4be0aa4a03e4d601ec641c327398315f62b64" +checksum = "ff1bc3d3f05aff0403e8ac0d92ced918ec05b666a43f83297ccef5bea8a3d449" dependencies = [ "winapi-util", ] @@ -4543,9 +4621,9 @@ dependencies = [ [[package]] name = "toml_datetime" -version = "0.6.3" +version = "0.6.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7cda73e2f1397b1262d6dfdcef8aafae14d1de7748d66822d3bfeeb6d03e5e4b" +checksum = "3550f4e9685620ac18a50ed434eb3aec30db8ba93b0287467bca5826ea25baf1" [[package]] name = "toml_edit" @@ -4553,7 +4631,7 @@ version = "0.19.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421" dependencies = [ - "indexmap 2.0.2", + "indexmap 2.1.0", "toml_datetime", "winnow", ] @@ -4625,17 +4703,28 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d686ec1c0f384b1277f097b2f279a2ecc11afe8c133c1aabf036a27cb4cd206e" dependencies = [ "tracing", - "tracing-subscriber 0.3.17", + "tracing-subscriber 0.3.18", ] [[package]] name = "tracing-log" -version = "0.1.3" +version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78ddad33d2d10b1ed7eb9d1f518a5674713876e97e5bb9b7345a7984fbb4f922" +checksum = "f751112709b4e791d8ce53e32c4ed2d353565a795ce84da2285393f41557bdf2" +dependencies = [ + "log", + "once_cell", + "tracing-core", +] + +[[package]] +name = "tracing-log" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3" dependencies = [ - "lazy_static", "log", + "once_cell", "tracing-core", ] @@ -4667,22 +4756,22 @@ dependencies = [ "thread_local", "tracing", "tracing-core", - "tracing-log", + "tracing-log 0.1.4", "tracing-serde", ] [[package]] name = "tracing-subscriber" -version = "0.3.17" +version = "0.3.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30a651bc37f915e81f087d86e62a18eec5f79550c7faff886f7090b4ea757c77" +checksum = "ad0f048c97dbd9faa9b7df56362b8ebcaa52adb06b498c050d2f4e32f90a7a8b" dependencies = [ "nu-ansi-term", "sharded-slab", "smallvec", "thread_local", "tracing-core", - "tracing-log", + "tracing-log 0.2.0", ] [[package]] @@ -4811,9 +4900,9 @@ dependencies = [ [[package]] name = "untrusted" -version = "0.7.1" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a156c684c91ea7d62626509bce3cb4e1d9ed5c4d978f7b4352658f96a4c26b4a" +checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" [[package]] name = "url" @@ -4977,7 +5066,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1f341edb80021141d4ae6468cbeefc50798716a347d4085c3811900049ea8945" dependencies = [ "smallvec", - "spin 0.9.8", + "spin", "wasmi_arena", "wasmi_core", "wasmparser-nostd", @@ -5133,7 +5222,7 @@ dependencies = [ "memoffset 0.8.0", "paste", "rand 0.8.5", - "rustix 0.36.16", + "rustix 0.36.17", "wasmtime-asm-macros", "wasmtime-environ", "wasmtime-jit-debug", @@ -5171,7 +5260,7 @@ dependencies = [ "either", "home", "once_cell", - "rustix 0.38.17", + "rustix 0.38.24", ] [[package]] @@ -5206,10 +5295,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" [[package]] -name = "windows" -version = "0.48.0" +name = "windows-core" +version = "0.51.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e686886bc078bc1b0b600cac0147aadb815089b6e4da64016cbd754b6342700f" +checksum = "f1f8cf84f35d2db49a46868f947758c7a1138116f7fac3bc844f43ade1292e64" dependencies = [ "windows-targets 0.48.5", ] @@ -5348,9 +5437,9 @@ checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" [[package]] name = "winnow" -version = "0.5.15" +version = "0.5.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c2e3184b9c4e92ad5167ca73039d0c42476302ab603e2fec4487511f38ccefc" +checksum = "829846f3e3db426d4cee4510841b71a8e58aa2a76b1132579487ae430ccd9c7b" dependencies = [ "memchr", ] @@ -5382,6 +5471,26 @@ version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ff4524214bc4629eba08d78ceb1d6507070cc0bcbbed23af74e19e6e924a24cf" +[[package]] +name = "zerocopy" +version = "0.7.26" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e97e415490559a91254a2979b4829267a57d2fcd741a98eee8b722fb57289aa0" +dependencies = [ + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.7.26" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd7e48ccf166952882ca8bd778a43502c64f33bf94c12ebe2a7f08e5a0f6689f" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.39", +] + [[package]] name = "zeroize" version = "1.6.0" diff --git a/codegen/src/error.rs b/codegen/src/error.rs index 545d8eeefa..65ce06bf1b 100644 --- a/codegen/src/error.rs +++ b/codegen/src/error.rs @@ -5,15 +5,12 @@ //! Errors that can be emitted from codegen. use proc_macro2::{Span, TokenStream as TokenStream2}; -use scale_typegen::TypeGenerationError; +use scale_typegen::TypegenError; /// Error returned when the Codegen cannot generate the runtime API. #[derive(Debug, thiserror::Error)] #[non_exhaustive] pub enum CodegenError { - /// The given metadata type could not be found. - #[error("Could not find type with ID {0} in the type registry; please raise a support issue.")] - TypeNotFound(u32), /// Cannot fetch the metadata bytes. #[error("Failed to fetch metadata, make sure that you're pointing at a node which is providing substrate-based metadata: {0}")] Fetch(#[from] FetchMetadataError), @@ -23,12 +20,6 @@ pub enum CodegenError { /// Out of line modules are not supported. #[error("Out-of-line subxt modules are not supported, make sure you are providing a body to your module: pub mod polkadot {{ ... }}")] InvalidModule(Span), - /// Expected named or unnamed fields. - #[error("Fields should either be all named or all unnamed, make sure you are providing a valid metadata: {0}")] - InvalidFields(String), - /// Substitute types must have a valid path. - #[error("Type substitution error: {0}")] - TypeSubstitutionError(#[from] TypeSubstitutionError), /// Invalid type path. #[error("Invalid type path {0}: {1}")] InvalidTypePath(String, syn::Error), @@ -58,8 +49,8 @@ pub enum CodegenError { )] MissingCallType, /// Cannot generate types. - #[error("Type Generation failed")] - TypeGeneration(#[from] TypeGenerationError), + #[error("Type Generation failed: {0}")] + TypeGeneration(#[from] TypegenError), } impl CodegenError { @@ -69,7 +60,7 @@ impl CodegenError { fn get_location(&self) -> Span { match self { Self::InvalidModule(span) => *span, - Self::TypeSubstitutionError(err) => err.get_location(), + Self::TypeGeneration(TypegenError::InvalidSubstitute(err)) => err.span, Self::InvalidTypePath(_, err) => err.span(), _ => proc_macro2::Span::call_site(), } @@ -106,43 +97,3 @@ pub enum FetchMetadataError { #[error("Other error: {0}")] Other(String), } - -/// Error attempting to do type substitution. -#[derive(Debug, thiserror::Error)] -#[non_exhaustive] -pub enum TypeSubstitutionError { - /// Substitute "to" type must be an absolute path. - #[error("`substitute_type(with = )` must be a path prefixed with 'crate::' or '::'")] - ExpectedAbsolutePath(Span), - /// Substitute types must have a valid path. - #[error("Substitute types must have a valid path.")] - EmptySubstitutePath(Span), - /// From/To substitution types should use angle bracket generics. - #[error("Expected the from/to type generics to have the form 'Foo'.")] - ExpectedAngleBracketGenerics(Span), - /// Source substitute type must be an ident. - #[error("Expected an ident like 'Foo' or 'A' to mark a type to be substituted.")] - InvalidFromType(Span), - /// Target type is invalid. - #[error("Expected an ident like 'Foo' or an absolute concrete path like '::path::to::Bar' for the substitute type.")] - InvalidToType(Span), - /// Target ident doesn't correspond to any source type. - #[error("Cannot find matching param on 'from' type.")] - NoMatchingFromType(Span), -} - -impl TypeSubstitutionError { - /// Fetch the location for this error. - // Todo: Probably worth storing location outside of the variant, - // so that there's a common way to set a location for some error. - fn get_location(&self) -> Span { - match self { - TypeSubstitutionError::ExpectedAbsolutePath(span) => *span, - TypeSubstitutionError::EmptySubstitutePath(span) => *span, - TypeSubstitutionError::ExpectedAngleBracketGenerics(span) => *span, - TypeSubstitutionError::InvalidFromType(span) => *span, - TypeSubstitutionError::InvalidToType(span) => *span, - TypeSubstitutionError::NoMatchingFromType(span) => *span, - } - } -} diff --git a/codegen/src/lib.rs b/codegen/src/lib.rs index ad9ba78974..c2dcf4353d 100644 --- a/codegen/src/lib.rs +++ b/codegen/src/lib.rs @@ -24,7 +24,7 @@ use getrandom as _; use api::RuntimeGenerator; use proc_macro2::TokenStream as TokenStream2; use scale_typegen::{ - typegen::settings::substitutes::absolute_path, DerivesRegistry, TypeSubstitutes, + typegen::settings::substitutes::absolute_path, DerivesRegistry, TypeSubstitutes, TypegenError, }; use std::collections::HashMap; use syn::parse_quote; @@ -234,11 +234,10 @@ impl CodegenBuilder { }; for (from, with) in self.type_substitutes { - let abs_path = - absolute_path(with).expect("todo: use better error handling in scale-typegen"); + let abs_path = absolute_path(with).map_err(TypegenError::from)?; type_substitutes .insert(from, abs_path) - .expect("todo: use better error handling in scale-typegen"); + .map_err(TypegenError::from)?; } let item_mod = self.item_mod; diff --git a/testing/ui-tests/src/incorrect/substitute_path_not_absolute.stderr b/testing/ui-tests/src/incorrect/substitute_path_not_absolute.stderr index 8dc2631f8f..c372d5067f 100644 --- a/testing/ui-tests/src/incorrect/substitute_path_not_absolute.stderr +++ b/testing/ui-tests/src/incorrect/substitute_path_not_absolute.stderr @@ -1,4 +1,4 @@ -error: Type substitution error: `substitute_type(with = )` must be a path prefixed with 'crate::' or '::' +error: Type Generation failed: Type substitution error: `substitute_type(with = )` must be a path prefixed with 'crate::' or '::' --> src/incorrect/substitute_path_not_absolute.rs:5:16 | 5 | with = "sp_runtime::Perbill" From f47fd4e8b0a91e388becc687c14bda7877e25933 Mon Sep 17 00:00:00 2001 From: Tadeo hepperle Date: Tue, 21 Nov 2023 14:47:24 +0100 Subject: [PATCH 06/30] scale-typegen-api-changes --- Cargo.lock | 3 ++- codegen/Cargo.toml | 19 +++++-------------- codegen/src/api/calls.rs | 5 ++--- codegen/src/api/constants.rs | 5 ++--- codegen/src/api/custom_values.rs | 1 - codegen/src/api/errors.rs | 5 ++--- codegen/src/api/events.rs | 7 +++---- codegen/src/api/mod.rs | 18 +++++++----------- codegen/src/api/runtime_apis.rs | 9 ++++----- codegen/src/api/storage.rs | 11 +++++------ 10 files changed, 32 insertions(+), 51 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 22caaf28d3..93d553ff3b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3331,13 +3331,14 @@ dependencies = [ [[package]] name = "scale-typegen" version = "0.0.1" -source = "git+https://github.com/paritytech/scale-typegen?branch=master#6b790af4e5c857b34e4610fa441688176b6753d2" +source = "git+https://github.com/paritytech/scale-typegen?branch=master#4daf2776a8a903e322c0ab60801e6b596746e653" dependencies = [ "parity-scale-codec", "proc-macro2", "quote", "scale-bits", "scale-info", + "smallvec", "syn 2.0.39", "thiserror", ] diff --git a/codegen/Cargo.toml b/codegen/Cargo.toml index f83073831f..afcf95e69e 100644 --- a/codegen/Cargo.toml +++ b/codegen/Cargo.toml @@ -15,16 +15,10 @@ description = "Generate an API for interacting with a substrate node from FRAME [features] default = [] fetch-metadata = ["dep:jsonrpsee", "dep:tokio", "dep:frame-metadata"] -web = [ - "jsonrpsee?/async-wasm-client", - "jsonrpsee?/client-web-transport", - "getrandom/js", -] +web = ["jsonrpsee?/async-wasm-client", "jsonrpsee?/client-web-transport", "getrandom/js"] [dependencies] -codec = { package = "parity-scale-codec", workspace = true, features = [ - "derive", -] } +codec = { package = "parity-scale-codec", workspace = true, features = ["derive"] } frame-metadata = { workspace = true, optional = true } heck = { workspace = true } proc-macro2 = { workspace = true } @@ -32,19 +26,16 @@ quote = { workspace = true } syn = { workspace = true } scale-info = { workspace = true } subxt-metadata = { workspace = true } -jsonrpsee = { workspace = true, features = [ - "async-client", - "client-ws-transport-native-tls", - "http-client", -], optional = true } +jsonrpsee = { workspace = true, features = ["async-client", "client-ws-transport-native-tls", "http-client"], optional = true } hex = { workspace = true } tokio = { workspace = true, features = ["rt-multi-thread"], optional = true } thiserror = { workspace = true } scale-typegen = { git = "https://github.com/paritytech/scale-typegen", branch = "master" } - # Included if "web" feature is enabled, to enable its js feature. 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 diff --git a/codegen/src/api/calls.rs b/codegen/src/api/calls.rs index cd631df577..c7f735af94 100644 --- a/codegen/src/api/calls.rs +++ b/codegen/src/api/calls.rs @@ -104,9 +104,8 @@ pub fn generate_calls( .into_iter() .unzip(); - let type_path_resolver = type_gen.type_path_resolver(); - let call_type = type_path_resolver.resolve_type_path(call_ty)?; - let call_ty = type_path_resolver.resolve_type(call_ty)?; + let call_type = type_gen.resolve_type_path(call_ty)?; + let call_ty = type_gen.resolve_type(call_ty)?; let docs = type_gen.docs_from_scale_info(&call_ty.docs); let types_mod_ident = type_gen.types_mod_ident(); diff --git a/codegen/src/api/constants.rs b/codegen/src/api/constants.rs index e2306b8dd8..f71824d56c 100644 --- a/codegen/src/api/constants.rs +++ b/codegen/src/api/constants.rs @@ -56,11 +56,10 @@ pub fn generate_constants( )); }; - let type_path_resolver = type_gen.type_path_resolver(); - let return_ty = type_path_resolver.resolve_type_path(constant.ty())?; + let return_ty = type_gen.resolve_type_path(constant.ty())?; let docs = constant.docs(); let docs = type_gen - .settings + .settings() .should_gen_docs .then_some(quote! { #( #[doc = #docs ] )* }) .unwrap_or_default(); diff --git a/codegen/src/api/custom_values.rs b/codegen/src/api/custom_values.rs index 1552f61fa2..35e2b554a1 100644 --- a/codegen/src/api/custom_values.rs +++ b/codegen/src/api/custom_values.rs @@ -58,7 +58,6 @@ fn generate_custom_value_fn( .is_some(); let (return_ty, decodable) = if type_is_valid { let return_ty = type_gen - .type_path_resolver() .resolve_type_path(custom_value.type_id()) .expect("expected to contain type id") .to_token_stream(); diff --git a/codegen/src/api/errors.rs b/codegen/src/api/errors.rs index 2a2afd0ab8..e8bba090cb 100644 --- a/codegen/src/api/errors.rs +++ b/codegen/src/api/errors.rs @@ -19,9 +19,8 @@ pub fn generate_error_type_alias( return Ok(quote!()); }; - let type_path_resolver = type_gen.type_path_resolver(); - let error_type = type_path_resolver.resolve_type_path(error_ty)?; - let error_ty = type_path_resolver.resolve_type(error_ty)?; + let error_type = type_gen.resolve_type_path(error_ty)?; + let error_ty = type_gen.resolve_type(error_ty)?; let docs = &error_ty.docs; let docs = should_gen_docs .then_some(quote! { #( #[doc = #docs ] )* }) diff --git a/codegen/src/api/events.rs b/codegen/src/api/events.rs index 8df4070644..d89ca6182c 100644 --- a/codegen/src/api/events.rs +++ b/codegen/src/api/events.rs @@ -72,12 +72,11 @@ pub fn generate_events( } }); - let type_path_resolver = type_gen.type_path_resolver(); - let event_type = type_path_resolver.resolve_type_path(event_ty)?; - let event_ty = type_path_resolver.resolve_type(event_ty)?; + let event_type = type_gen.resolve_type_path(event_ty)?; + let event_ty = type_gen.resolve_type(event_ty)?; let docs = &event_ty.docs; let docs = type_gen - .settings + .settings() .should_gen_docs .then_some(quote! { #( #[doc = #docs ] )* }) .unwrap_or_default(); diff --git a/codegen/src/api/mod.rs b/codegen/src/api/mod.rs index c4d774e052..20294cfe9b 100644 --- a/codegen/src/api/mod.rs +++ b/codegen/src/api/mod.rs @@ -69,7 +69,7 @@ impl RuntimeGenerator { let settings = subxt_type_gen_settings(derives, type_substitutes, &crate_path, should_gen_docs); - let type_gen = TypeGenerator::new(self.metadata.types(), settings)?; + let type_gen = TypeGenerator::new(self.metadata.types(), &settings); let types_mod = type_gen.generate_types_mod()?; let mod_ident = &item_mod_ir.ident; let rust_items = item_mod_ir.rust_items(); @@ -118,7 +118,7 @@ impl RuntimeGenerator { let settings = subxt_type_gen_settings(derives, type_substitutes, &crate_path, should_gen_docs); - let type_gen = TypeGenerator::new(self.metadata.types(), settings)?; + let type_gen = TypeGenerator::new(self.metadata.types(), &settings); let types_mod = type_gen.generate_types_mod()?; let types_mod_ident = type_gen.types_mod_ident(); let pallets_with_mod_names = self @@ -213,13 +213,9 @@ impl RuntimeGenerator { // Fetch the paths of the outer enums. // Substrate exposes those under `kitchensink_runtime`, while Polkadot under `polkadot_runtime`. - let type_path_resolver = type_gen.type_path_resolver(); - let call_path = - type_path_resolver.resolve_type_path(self.metadata.outer_enums().call_enum_ty())?; - let event_path = - type_path_resolver.resolve_type_path(self.metadata.outer_enums().event_enum_ty())?; - let error_path = - type_path_resolver.resolve_type_path(self.metadata.outer_enums().error_enum_ty())?; + let call_path = type_gen.resolve_type_path(self.metadata.outer_enums().call_enum_ty())?; + let event_path = type_gen.resolve_type_path(self.metadata.outer_enums().event_enum_ty())?; + let error_path = type_gen.resolve_type_path(self.metadata.outer_enums().error_enum_ty())?; let custom_values = generate_custom_values(&self.metadata, &type_gen, &crate_path); @@ -332,7 +328,7 @@ fn subxt_type_gen_settings( should_gen_docs: bool, ) -> TypeGeneratorSettings { TypeGeneratorSettings { - type_mod_name: "runtime_types".into(), + types_mod_ident: parse_quote!(runtime_types), should_gen_docs, derives, substitutes, @@ -354,7 +350,7 @@ pub fn generate_structs_from_variants( where F: Fn(&str) -> std::borrow::Cow, { - let ty = type_gen.type_path_resolver().resolve_type(type_id)?; + let ty = type_gen.resolve_type(type_id)?; let scale_info::TypeDef::Variant(variant) = &ty.type_def else { return Err(CodegenError::InvalidType(error_message_type_name.into())); diff --git a/codegen/src/api/runtime_apis.rs b/codegen/src/api/runtime_apis.rs index e26ce6c7c3..9cd5c62a01 100644 --- a/codegen/src/api/runtime_apis.rs +++ b/codegen/src/api/runtime_apis.rs @@ -19,14 +19,13 @@ fn generate_runtime_api( type_gen: &TypeGenerator, crate_path: &syn::Path, ) -> Result<(TokenStream2, TokenStream2), CodegenError> { - let type_path_resolver = type_gen.type_path_resolver(); // Trait name must remain as is (upper case) to identity the runtime call. let trait_name_str = api.name(); // The snake case for the trait name. let trait_name_snake = format_ident!("{}", api.name().to_snake_case()); let docs = api.docs(); let docs: TokenStream2 = type_gen - .settings + .settings() .should_gen_docs .then_some(quote! { #( #[doc = #docs ] )* }) .unwrap_or_default(); @@ -36,7 +35,7 @@ fn generate_runtime_api( let method_name_str = method.name(); let docs = method.docs(); - let docs: TokenStream2 = type_gen.settings.should_gen_docs + let docs: TokenStream2 = type_gen.settings().should_gen_docs .then_some(quote! { #( #[doc = #docs ] )* }) .unwrap_or_default(); @@ -48,7 +47,7 @@ fn generate_runtime_api( } else { format_ident!("{}", &input.name) }; - let ty = type_path_resolver.resolve_type_path(input.ty).expect("lookup of type should not fail"); + let ty = type_gen.resolve_type_path(input.ty).expect("lookup of type should not fail"); let param = quote!(#name: #ty); (param, name) @@ -70,7 +69,7 @@ fn generate_runtime_api( } ); - let output = type_path_resolver.resolve_type_path(method.output_ty())?; + let output = type_gen.resolve_type_path(method.output_ty())?; let Some(call_hash) = api.method_hash(method.name()) else { return Err(CodegenError::MissingRuntimeApiMetadata( diff --git a/codegen/src/api/storage.rs b/codegen/src/api/storage.rs index 4a33eb748e..9a63163f0d 100644 --- a/codegen/src/api/storage.rs +++ b/codegen/src/api/storage.rs @@ -58,11 +58,10 @@ fn generate_storage_entry_fns( storage_entry: &StorageEntryMetadata, crate_path: &syn::Path, ) -> Result { - let type_path_resolver = type_gen.type_path_resolver(); let keys: Vec<(Ident, TypePath)> = match storage_entry.entry_type() { StorageEntryType::Plain(_) => vec![], StorageEntryType::Map { key_ty, .. } => { - match &type_path_resolver.resolve_type(*key_ty)?.type_def { + match &type_gen.resolve_type(*key_ty)?.type_def { // An N-map; return each of the keys separately. TypeDef::Tuple(tuple) => tuple .fields @@ -70,7 +69,7 @@ fn generate_storage_entry_fns( .enumerate() .map(|(i, f)| { let ident: Ident = format_ident!("_{}", syn::Index::from(i)); - let ty_path = type_path_resolver + let ty_path = type_gen .resolve_type_path(f.id) .expect("resolving type should not fail"); (ident, ty_path) @@ -79,7 +78,7 @@ fn generate_storage_entry_fns( // A map with a single key; return the single key. _ => { let ident = format_ident!("_0"); - let ty_path = type_path_resolver.resolve_type_path(*key_ty)?; + let ty_path = type_gen.resolve_type_path(*key_ty)?; vec![(ident, ty_path)] } } @@ -96,10 +95,10 @@ 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_path_resolver.resolve_type_path(storage_entry_ty)?; + let storage_entry_value_ty = type_gen.resolve_type_path(storage_entry_ty)?; let docs = storage_entry.docs(); let docs = type_gen - .settings + .settings() .should_gen_docs .then_some(quote! { #( #[doc = #docs ] )* }) .unwrap_or_default(); From 03591a6e9b0070b68e2021915a303dd0575d9f91 Mon Sep 17 00:00:00 2001 From: Tadeo hepperle Date: Tue, 21 Nov 2023 14:59:18 +0100 Subject: [PATCH 07/30] add note about UncheckedExtrinsic in default substitutes --- Cargo.lock | 24 ++++++++++++++++++++++++ codegen/Cargo.toml | 2 -- codegen/src/lib.rs | 2 ++ 3 files changed, 26 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 93d553ff3b..cdee4862ab 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1182,6 +1182,12 @@ dependencies = [ "syn 1.0.109", ] +[[package]] +name = "diff" +version = "0.1.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56254986775e3233ffa9c4d7d3faaf6d36a2c09d30b20687e9f88bc8bafc16c8" + [[package]] name = "digest" version = "0.8.1" @@ -2834,6 +2840,16 @@ version = "0.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" +[[package]] +name = "pretty_assertions" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af7cee1a6c8a5b9208b3cb1061f10c0cb689087b3d8ce85fb9d2dd7a29b6ba66" +dependencies = [ + "diff", + "yansi", +] + [[package]] name = "primitive-types" version = "0.12.2" @@ -4307,12 +4323,14 @@ dependencies = [ name = "subxt-codegen" version = "0.32.1" dependencies = [ + "bitvec", "frame-metadata 16.0.0", "getrandom 0.2.11", "heck", "hex", "jsonrpsee", "parity-scale-codec", + "pretty_assertions", "proc-macro2", "quote", "scale-info", @@ -5466,6 +5484,12 @@ dependencies = [ "zeroize", ] +[[package]] +name = "yansi" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09041cd90cf85f7f8b2df60c646f853b7f535ce68f85244eb6731cf89fa498ec" + [[package]] name = "yap" version = "0.11.0" diff --git a/codegen/Cargo.toml b/codegen/Cargo.toml index afcf95e69e..2e6acadf9a 100644 --- a/codegen/Cargo.toml +++ b/codegen/Cargo.toml @@ -36,6 +36,4 @@ scale-typegen = { git = "https://github.com/paritytech/scale-typegen", branch = 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 diff --git a/codegen/src/lib.rs b/codegen/src/lib.rs index c2dcf4353d..a0665bcad2 100644 --- a/codegen/src/lib.rs +++ b/codegen/src/lib.rs @@ -336,6 +336,8 @@ fn default_substitutes(crate_path: &syn::Path) -> TypeSubstitutes { // The inner bytes represent the encoded extrinsic, however when deriving the // `EncodeAsType` the bytes would be re-encoded. This leads to the bytes // being altered by adding the length prefix in front of them. + + // Note: Not sure if this is appropriate or not. The most recent polkadot.rs file does not have these. ( parse_quote!(sp_runtime::generic::unchecked_extrinsic::UncheckedExtrinsic), parse_quote!(#crate_path::utils::UncheckedExtrinsic), From 50ed54ee1ea9dbd047c4d76f082e8576b847d3e8 Mon Sep 17 00:00:00 2001 From: Tadeo hepperle Date: Tue, 28 Nov 2023 18:41:57 +0100 Subject: [PATCH 08/30] add resursive attributes and derives --- Cargo.lock | 311 ++++++++++++++++++++---------------- cli/src/commands/codegen.rs | 6 +- codegen/Cargo.toml | 2 +- codegen/src/lib.rs | 40 ++++- macro/src/lib.rs | 8 +- 5 files changed, 221 insertions(+), 146 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e5fc334bf1..c0233755f8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -27,7 +27,7 @@ version = "0.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8a30b2e23b9e17a9f90641c7ab1549cd9b44f296d3ccbf309d2863cfe398a0cb" dependencies = [ - "gimli 0.28.0", + "gimli 0.28.1", ] [[package]] @@ -211,12 +211,12 @@ dependencies = [ [[package]] name = "async-channel" -version = "2.1.0" +version = "2.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d37875bd9915b7d67c2f117ea2c30a0989874d0b2cb694fe25403c85763c0c9e" +checksum = "1ca33f4bc4ed1babef42cad36cc1f51fa88be00420404e5b1e80ab1b18f7678c" dependencies = [ "concurrent-queue", - "event-listener 3.1.0", + "event-listener 4.0.0", "event-listener-strategy", "futures-core", "pin-project-lite", @@ -224,15 +224,15 @@ dependencies = [ [[package]] name = "async-executor" -version = "1.6.0" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b0c4a4f319e45986f347ee47fef8bf5e81c9abc3f6f58dc2391439f30df65f0" +checksum = "17ae5ebefcc48e7452b4987947920dac9450be1110cadf34d1b8c116bdbaf97c" dependencies = [ - "async-lock 2.8.0", + "async-lock 3.1.2", "async-task", "concurrent-queue", "fastrand 2.0.1", - "futures-lite 1.13.0", + "futures-lite 2.0.1", "slab", ] @@ -270,22 +270,21 @@ dependencies = [ [[package]] name = "async-io" -version = "2.2.0" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41ed9d5715c2d329bf1b4da8d60455b99b187f27ba726df2883799af9af60997" +checksum = "d6d3b15875ba253d1110c740755e246537483f152fa334f91abd7fe84c88b3ff" dependencies = [ - "async-lock 3.1.0", + "async-lock 3.1.2", "cfg-if", "concurrent-queue", "futures-io", "futures-lite 2.0.1", "parking", - "polling 3.3.0", - "rustix 0.38.24", + "polling 3.3.1", + "rustix 0.38.25", "slab", "tracing", - "waker-fn", - "windows-sys 0.48.0", + "windows-sys 0.52.0", ] [[package]] @@ -299,11 +298,11 @@ dependencies = [ [[package]] name = "async-lock" -version = "3.1.0" +version = "3.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "deb2ab2aa8a746e221ab826c73f48bc6ba41be6763f0855cb249eb6d154cf1d7" +checksum = "dea8b3453dd7cc96711834b75400d671b73e3656975fa68d9f277163b7f7e316" dependencies = [ - "event-listener 3.1.0", + "event-listener 4.0.0", "event-listener-strategy", "pin-project-lite", ] @@ -332,7 +331,7 @@ dependencies = [ "cfg-if", "event-listener 3.1.0", "futures-lite 1.13.0", - "rustix 0.38.24", + "rustix 0.38.25", "windows-sys 0.48.0", ] @@ -342,13 +341,13 @@ version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9e47d90f65a225c4527103a8d747001fc56e375203592b25ad103e1ca13124c5" dependencies = [ - "async-io 2.2.0", + "async-io 2.2.1", "async-lock 2.8.0", "atomic-waker", "cfg-if", "futures-core", "futures-io", - "rustix 0.38.24", + "rustix 0.38.25", "signal-hook-registry", "slab", "windows-sys 0.48.0", @@ -576,8 +575,8 @@ version = "1.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6a37913e8dc4ddcc604f0c6d3bf2887c995153af3611de9e23c352b44c1b9118" dependencies = [ - "async-channel 2.1.0", - "async-lock 3.1.0", + "async-channel 2.1.1", + "async-lock 3.1.2", "async-task", "fastrand 2.0.1", "futures-io", @@ -738,9 +737,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.4.8" +version = "4.4.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2275f18819641850fa26c89acc84d465c1bf91ce57bc2748b28c420473352f64" +checksum = "41fffed7514f420abec6d183b1d3acfd9099c79c3a10a06ade4f8203f1411272" dependencies = [ "clap_builder", "clap_derive", @@ -748,9 +747,9 @@ dependencies = [ [[package]] name = "clap_builder" -version = "4.4.8" +version = "4.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07cdf1b148b25c1e1f7a42225e30a0d99a615cd4637eae7365548dd4529b95bc" +checksum = "63361bae7eef3771745f02d8d892bec2fee5f6e34af316ba556e7f97a7069ff1" dependencies = [ "anstream", "anstyle", @@ -811,9 +810,9 @@ dependencies = [ [[package]] name = "color-spantrace" -version = "0.2.0" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ba75b3d9449ecdccb27ecbc479fdc0b87fa2dd43d2f8298f9bf0e59aacc8dce" +checksum = "cd6be1b2a7e382e2b98b43b2adcca6bb0e465af0bdd38123873ae61eb17a72c2" dependencies = [ "once_cell", "owo-colors", @@ -1182,12 +1181,6 @@ dependencies = [ "syn 1.0.109", ] -[[package]] -name = "diff" -version = "0.1.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56254986775e3233ffa9c4d7d3faaf6d36a2c09d30b20687e9f88bc8bafc16c8" - [[package]] name = "digest" version = "0.8.1" @@ -1302,7 +1295,7 @@ checksum = "7d9ce6874da5d4415896cd45ffbc4d1cfc0c4f9c079427bd870742c30f2f65a9" dependencies = [ "curve25519-dalek 4.1.1", "ed25519 2.2.3", - "hashbrown 0.14.2", + "hashbrown 0.14.3", "hex", "rand_core 0.6.4", "sha2 0.10.8", @@ -1329,12 +1322,12 @@ checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" [[package]] name = "errno" -version = "0.3.6" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c18ee0ed65a5f1f81cac6b1d213b69c35fa47d4252ad41f1486dbd8226fe36e" +checksum = "a258e46cdc063eb8519c00b9fc845fc47bcfca4130e2f08e88665ceda8474245" dependencies = [ "libc", - "windows-sys 0.48.0", + "windows-sys 0.52.0", ] [[package]] @@ -1354,21 +1347,32 @@ dependencies = [ "pin-project-lite", ] +[[package]] +name = "event-listener" +version = "4.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "770d968249b5d99410d61f5bf89057f3199a077a04d087092f58e7d10692baae" +dependencies = [ + "concurrent-queue", + "parking", + "pin-project-lite", +] + [[package]] name = "event-listener-strategy" -version = "0.3.0" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d96b852f1345da36d551b9473fa1e2b1eb5c5195585c6c018118bc92a8d91160" +checksum = "958e4d70b6d5e81971bebec42271ec641e7ff4e170a6fa605f2b8a8b65cb97d3" dependencies = [ - "event-listener 3.1.0", + "event-listener 4.0.0", "pin-project-lite", ] [[package]] name = "eyre" -version = "0.6.8" +version = "0.6.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c2b6b5a29c02cdc822728b7d7b8ae1bab3e3b05d44522770ddd49722eeac7eb" +checksum = "80f656be11ddf91bd709454d15d5bd896fbaf4cc3314e69349e4d1569f5b46cd" dependencies = [ "indenter", "once_cell", @@ -1403,9 +1407,9 @@ checksum = "25cbce373ec4653f1a01a31e8a5e5ec0c622dc27ff9c4e6606eefef5cbbed4a5" [[package]] name = "fiat-crypto" -version = "0.2.4" +version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53a56f0780318174bad1c127063fd0c5fdfb35398e3cd79ffaab931a6c79df80" +checksum = "27573eac26f4dd11e2b1916c3fe1baa56407c83c71a773a8ba17ec0bca03b6b7" [[package]] name = "fixed-hash" @@ -1427,9 +1431,9 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "form_urlencoded" -version = "1.2.0" +version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a62bc1cf6f830c2ec14a513a9fb124d0a213a629668a4186f329db21fe045652" +checksum = "e13624c2627564efccf4934284bdd98cbaa14e79b0b5a141218e507b3a823456" dependencies = [ "percent-encoding", ] @@ -1533,7 +1537,11 @@ version = "2.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d3831c2651acb5177cbd83943f3d9c8912c5ad03c76afcc0e9511ba568ec5ebb" dependencies = [ + "fastrand 2.0.1", "futures-core", + "futures-io", + "memchr", + "parking", "pin-project-lite", ] @@ -1654,9 +1662,9 @@ dependencies = [ [[package]] name = "gimli" -version = "0.28.0" +version = "0.28.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6fb8d784f27acf97159b40fc4db5ecd8aa23b9ad5ef69cdd136d3bc80665f0c0" +checksum = "4271d37baee1b8c7e4b708028c57d816cf9d2434acb33a549475f78c181f6253" [[package]] name = "glob" @@ -1718,9 +1726,9 @@ dependencies = [ [[package]] name = "h2" -version = "0.3.21" +version = "0.3.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91fc23aa11be92976ef4729127f1a74adf36d8436f7816b185d18df956790833" +checksum = "4d6250322ef6e60f93f9a2162799302cd6f68f79f6e5d85c8c16f14d1d958178" dependencies = [ "bytes", "fnv", @@ -1728,7 +1736,7 @@ dependencies = [ "futures-sink", "futures-util", "http", - "indexmap 1.9.3", + "indexmap 2.1.0", "slab", "tokio", "tokio-util", @@ -1776,9 +1784,9 @@ dependencies = [ [[package]] name = "hashbrown" -version = "0.14.2" +version = "0.14.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f93e7192158dbcda357bdec5fb5788eebf8bbac027f3f33e719d29135ae84156" +checksum = "290f1a1d9242c78d09ce40a5e87e7554ee637af1351968159f4952f028f75604" dependencies = [ "ahash 0.8.6", "allocator-api2", @@ -1966,9 +1974,9 @@ checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" [[package]] name = "idna" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d20d6b07bfbc108882d88ed8e37d39636dcc260e15e30c45e6ba089610b917c" +checksum = "634d9b1461af396cad843f47fdba5597a4f9e6ddd4bfb6ff5d85028c25cb12f6" dependencies = [ "unicode-bidi", "unicode-normalization", @@ -2027,7 +2035,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d530e1a18b1cb4c484e6e34556a0d948706958449fca0cab753d649f2bce3d1f" dependencies = [ "equivalent", - "hashbrown 0.14.2", + "hashbrown 0.14.3", ] [[package]] @@ -2129,9 +2137,9 @@ checksum = "af150ab688ff2122fcef229be89cb50dd66af9e01a4ff320cc137eecc9bacc38" [[package]] name = "js-sys" -version = "0.3.65" +version = "0.3.66" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54c0c35952f67de54bb584e9fd912b3023117cbafc0a77d8f3dee1fb5f572fe8" +checksum = "cee9c64da59eae3b50095c18d3e74f8b73c0b86d2792824ff01bbce68ba229ca" dependencies = [ "wasm-bindgen", ] @@ -2372,7 +2380,7 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b2cffa4ad52c6f791f4f8b15f0c05f9824b2ced1160e88cc393d64fff9a8ac64" dependencies = [ - "rustix 0.38.24", + "rustix 0.38.25", ] [[package]] @@ -2712,9 +2720,9 @@ dependencies = [ [[package]] name = "percent-encoding" -version = "2.3.0" +version = "2.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b2a4787296e9989611394c33f193f676704af1686e70b8f8033ab5ba9a35a94" +checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" [[package]] name = "pin-project" @@ -2811,16 +2819,16 @@ dependencies = [ [[package]] name = "polling" -version = "3.3.0" +version = "3.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e53b6af1f60f36f8c2ac2aad5459d75a5a9b4be1e8cdd40264f315d78193e531" +checksum = "cf63fa624ab313c11656b4cda960bfc46c410187ad493c41f6ba2d8c1e991c9e" dependencies = [ "cfg-if", "concurrent-queue", "pin-project-lite", - "rustix 0.38.24", + "rustix 0.38.25", "tracing", - "windows-sys 0.48.0", + "windows-sys 0.52.0", ] [[package]] @@ -2840,16 +2848,6 @@ version = "0.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" -[[package]] -name = "pretty_assertions" -version = "1.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af7cee1a6c8a5b9208b3cb1061f10c0cb689087b3d8ce85fb9d2dd7a29b6ba66" -dependencies = [ - "diff", - "yansi", -] - [[package]] name = "primitive-types" version = "0.12.2" @@ -2899,9 +2897,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.69" +version = "1.0.70" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "134c189feb4956b20f6f547d2cf727d4c0fe06722b20a0eec87ed445a97f92da" +checksum = "39278fbbf5fb4f646ce651690877f89d1c5811a3d4acb27700c1cb3cdb78fd3b" dependencies = [ "unicode-ident", ] @@ -3165,9 +3163,9 @@ dependencies = [ [[package]] name = "rustix" -version = "0.38.24" +version = "0.38.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ad981d6c340a49cdc40a1028d9c6084ec7e9fa33fcb839cab656a267071e234" +checksum = "dc99bc2d4f1fed22595588a013687477aedf3cdcfb26558c559edb67b4d9b22e" dependencies = [ "bitflags 2.4.1", "errno", @@ -3178,9 +3176,9 @@ dependencies = [ [[package]] name = "rustls" -version = "0.21.8" +version = "0.21.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "446e14c5cda4f3f30fe71863c34ec70f5ac79d6087097ad0bb433e1be5edf04c" +checksum = "629648aced5775d558af50b2b4c7b02983a04b312126d45eeead26e7caa498b9" dependencies = [ "log", "ring", @@ -3347,12 +3345,10 @@ dependencies = [ [[package]] name = "scale-typegen" version = "0.0.1" -source = "git+https://github.com/paritytech/scale-typegen?branch=master#4daf2776a8a903e322c0ab60801e6b596746e653" +source = "git+https://github.com/paritytech/scale-typegen?branch=recursive-derives#f7fff3b133732e8a7c0fbd82385dc5452b3a0813" dependencies = [ - "parity-scale-codec", "proc-macro2", "quote", - "scale-bits", "scale-info", "smallvec", "syn 2.0.39", @@ -3538,9 +3534,9 @@ checksum = "cd0b0ec5f1c1ca621c432a25813d8d60c88abe6d3e08a3eb9cf37d97a0fe3d73" [[package]] name = "serde" -version = "1.0.192" +version = "1.0.193" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bca2a08484b285dcb282d0f67b26cadc0df8b19f8c12502c13d966bf9482f001" +checksum = "25dd9975e68d0cb5aa1120c288333fc98731bd1dd12f561e468ea4728c042b89" dependencies = [ "serde_derive", ] @@ -3556,9 +3552,9 @@ dependencies = [ [[package]] name = "serde_derive" -version = "1.0.192" +version = "1.0.193" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6c7207fbec9faa48073f3e3074cbe553af6ea512d7c21ba46e434e70ea9fbc1" +checksum = "43576ca501357b9b071ac53cdc7da8ef0cbd9493d8df094cd821777ea6e894d3" dependencies = [ "proc-macro2", "quote", @@ -3725,7 +3721,7 @@ dependencies = [ "fnv", "futures-lite 1.13.0", "futures-util", - "hashbrown 0.14.2", + "hashbrown 0.14.3", "hex", "hmac 0.12.1", "itertools 0.11.0", @@ -3774,7 +3770,7 @@ dependencies = [ "futures-channel", "futures-lite 1.13.0", "futures-util", - "hashbrown 0.14.2", + "hashbrown 0.14.3", "hex", "itertools 0.11.0", "log", @@ -4302,7 +4298,7 @@ dependencies = [ name = "subxt-cli" version = "0.32.1" dependencies = [ - "clap 4.4.8", + "clap 4.4.10", "color-eyre", "frame-metadata 16.0.0", "hex", @@ -4323,14 +4319,12 @@ dependencies = [ name = "subxt-codegen" version = "0.32.1" dependencies = [ - "bitvec", "frame-metadata 16.0.0", "getrandom 0.2.11", "heck", "hex", "jsonrpsee", "parity-scale-codec", - "pretty_assertions", "proc-macro2", "quote", "scale-info", @@ -4491,22 +4485,22 @@ dependencies = [ [[package]] name = "thiserror-core" -version = "1.0.38" +version = "1.0.50" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d97345f6437bb2004cd58819d8a9ef8e36cdd7661c2abc4bbde0a7c40d9f497" +checksum = "c001ee18b7e5e3f62cbf58c7fe220119e68d902bb7443179c0c8aef30090e999" dependencies = [ "thiserror-core-impl", ] [[package]] name = "thiserror-core-impl" -version = "1.0.38" +version = "1.0.50" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "10ac1c5050e43014d16b2f94d0d2ce79e65ffdd8b38d8048f9c8f6a8a6da62ac" +checksum = "e4c60d69f36615a077cc7663b9cb8e42275722d23e58a7fa3d2c7f2915d09d04" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.39", ] [[package]] @@ -4747,17 +4741,6 @@ dependencies = [ "tracing-core", ] -[[package]] -name = "tracing-log" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3" -dependencies = [ - "log", - "once_cell", - "tracing-core", -] - [[package]] name = "tracing-serde" version = "0.1.3" @@ -4936,9 +4919,9 @@ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" [[package]] name = "url" -version = "2.4.1" +version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "143b538f18257fac9cad154828a57c6bf5157e1aa604d4816b5995bf6de87ae5" +checksum = "31e6302e3bb753d46e83516cae55ae196fc0c309407cf11ab35cc51a4c2a4633" dependencies = [ "form_urlencoded", "idna", @@ -5025,9 +5008,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.88" +version = "0.2.89" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7daec296f25a1bae309c0cd5c29c4b260e510e6d813c286b19eaadf409d40fce" +checksum = "0ed0d4f68a3015cc185aff4db9506a015f4b96f95303897bfa23f846db54064e" dependencies = [ "cfg-if", "wasm-bindgen-macro", @@ -5035,9 +5018,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.88" +version = "0.2.89" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e397f4664c0e4e428e8313a469aaa58310d302159845980fd23b0f22a847f217" +checksum = "1b56f625e64f3a1084ded111c4d5f477df9f8c92df113852fa5a374dbda78826" dependencies = [ "bumpalo", "log", @@ -5050,9 +5033,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-futures" -version = "0.4.38" +version = "0.4.39" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9afec9963e3d0994cac82455b2b3502b81a7f40f9a0d32181f7528d9f4b43e02" +checksum = "ac36a15a220124ac510204aec1c3e5db8a22ab06fd6706d881dc6149f8ed9a12" dependencies = [ "cfg-if", "js-sys", @@ -5062,9 +5045,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.88" +version = "0.2.89" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5961017b3b08ad5f3fe39f1e79877f8ee7c23c5e5fd5eb80de95abc41f1f16b2" +checksum = "0162dbf37223cd2afce98f3d0785506dcb8d266223983e4b5b525859e6e182b2" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -5072,9 +5055,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.88" +version = "0.2.89" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c5353b8dab669f5e10f5bd76df26a9360c748f054f862ff5f3f8aae0c7fb3907" +checksum = "f0eb82fcb7930ae6219a7ecfd55b217f5f0893484b7a13022ebb2b2bf20b5283" dependencies = [ "proc-macro2", "quote", @@ -5085,9 +5068,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-shared" -version = "0.2.88" +version = "0.2.89" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d046c5d029ba91a1ed14da14dca44b68bf2f124cfbaf741c54151fdb3e0750b" +checksum = "7ab9b36309365056cd639da3134bf87fa8f3d86008abf99e612384a6eecd459f" [[package]] name = "wasmi" @@ -5273,9 +5256,9 @@ dependencies = [ [[package]] name = "web-sys" -version = "0.3.65" +version = "0.3.66" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5db499c5f66323272151db0e666cd34f78617522fb0c1604d31a27c50c206a85" +checksum = "50c24a44ec86bb68fbecd1b3efed7e85ea5621b39b35ef2766b66cd984f8010f" dependencies = [ "js-sys", "wasm-bindgen", @@ -5290,7 +5273,7 @@ dependencies = [ "either", "home", "once_cell", - "rustix 0.38.24", + "rustix 0.38.25", ] [[package]] @@ -5351,6 +5334,15 @@ dependencies = [ "windows-targets 0.48.5", ] +[[package]] +name = "windows-sys" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" +dependencies = [ + "windows-targets 0.52.0", +] + [[package]] name = "windows-targets" version = "0.42.2" @@ -5381,6 +5373,21 @@ dependencies = [ "windows_x86_64_msvc 0.48.5", ] +[[package]] +name = "windows-targets" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a18201040b24831fbb9e4eb208f8892e1f50a37feb53cc7ff887feb8f50e7cd" +dependencies = [ + "windows_aarch64_gnullvm 0.52.0", + "windows_aarch64_msvc 0.52.0", + "windows_i686_gnu 0.52.0", + "windows_i686_msvc 0.52.0", + "windows_x86_64_gnu 0.52.0", + "windows_x86_64_gnullvm 0.52.0", + "windows_x86_64_msvc 0.52.0", +] + [[package]] name = "windows_aarch64_gnullvm" version = "0.42.2" @@ -5393,6 +5400,12 @@ version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb7764e35d4db8a7921e09562a0304bf2f93e0a51bfccee0bd0bb0b666b015ea" + [[package]] name = "windows_aarch64_msvc" version = "0.42.2" @@ -5405,6 +5418,12 @@ version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" +[[package]] +name = "windows_aarch64_msvc" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbaa0368d4f1d2aaefc55b6fcfee13f41544ddf36801e793edbbfd7d7df075ef" + [[package]] name = "windows_i686_gnu" version = "0.42.2" @@ -5417,6 +5436,12 @@ version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" +[[package]] +name = "windows_i686_gnu" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a28637cb1fa3560a16915793afb20081aba2c92ee8af57b4d5f28e4b3e7df313" + [[package]] name = "windows_i686_msvc" version = "0.42.2" @@ -5429,6 +5454,12 @@ version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" +[[package]] +name = "windows_i686_msvc" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ffe5e8e31046ce6230cc7215707b816e339ff4d4d67c65dffa206fd0f7aa7b9a" + [[package]] name = "windows_x86_64_gnu" version = "0.42.2" @@ -5441,6 +5472,12 @@ version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" +[[package]] +name = "windows_x86_64_gnu" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d6fa32db2bc4a2f5abeacf2b69f7992cd09dca97498da74a151a3132c26befd" + [[package]] name = "windows_x86_64_gnullvm" version = "0.42.2" @@ -5453,6 +5490,12 @@ version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a657e1e9d3f514745a572a6846d3c7aa7dbe1658c056ed9c3344c4109a6949e" + [[package]] name = "windows_x86_64_msvc" version = "0.42.2" @@ -5465,6 +5508,12 @@ version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" +[[package]] +name = "windows_x86_64_msvc" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dff9641d1cd4be8d1a070daf9e3773c5f67e78b4d9d42263020c057706765c04" + [[package]] name = "winnow" version = "0.5.19" @@ -5495,12 +5544,6 @@ dependencies = [ "zeroize", ] -[[package]] -name = "yansi" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09041cd90cf85f7f8b2df60c646f853b7f535ce68f85244eb6731cf89fa498ec" - [[package]] name = "yap" version = "0.11.0" diff --git a/cli/src/commands/codegen.rs b/cli/src/commands/codegen.rs index f32251929f..57805e3204 100644 --- a/cli/src/commands/codegen.rs +++ b/cli/src/commands/codegen.rs @@ -168,7 +168,8 @@ fn codegen( .map_err(|e| eyre!("Cannot parse derive for type {ty_str}: {e}"))?; let derive = syn::parse_str(&derive) .map_err(|e| eyre!("Cannot parse derive for type {ty_str}: {e}"))?; - codegen.add_derives_for_type(ty, std::iter::once(derive)); + // Note: recursive derives and attributes not supported in the CLI => recursive: false + codegen.add_derives_for_type(ty, std::iter::once(derive), false); } // Configure attribtues: @@ -185,7 +186,8 @@ fn codegen( .map_err(|e| eyre!("Cannot parse attribute for type {ty_str}: {e}"))?; let attribute: OuterAttribute = syn::parse_str(&attr) .map_err(|e| eyre!("Cannot parse attribute for type {ty_str}: {e}"))?; - codegen.add_attributes_for_type(ty, std::iter::once(attribute.0)); + // Note: recursive derives and attributes not supported in the CLI => recursive: false + codegen.add_attributes_for_type(ty, std::iter::once(attribute.0), false); } // Insert type substitutions: diff --git a/codegen/Cargo.toml b/codegen/Cargo.toml index 2e6acadf9a..8b1b76b5a8 100644 --- a/codegen/Cargo.toml +++ b/codegen/Cargo.toml @@ -30,7 +30,7 @@ jsonrpsee = { workspace = true, features = ["async-client", "client-ws-transport hex = { workspace = true } tokio = { workspace = true, features = ["rt-multi-thread"], optional = true } thiserror = { workspace = true } -scale-typegen = { git = "https://github.com/paritytech/scale-typegen", branch = "master" } +scale-typegen = { git = "https://github.com/paritytech/scale-typegen", branch = "recursive-derives" } # Included if "web" feature is enabled, to enable its js feature. getrandom = { workspace = true, optional = true } diff --git a/codegen/src/lib.rs b/codegen/src/lib.rs index a0665bcad2..b71e1f048f 100644 --- a/codegen/src/lib.rs +++ b/codegen/src/lib.rs @@ -67,6 +67,8 @@ pub struct CodegenBuilder { type_substitutes: HashMap, derives_for_type: HashMap>, attributes_for_type: HashMap>, + derives_for_type_recursive: HashMap>, + attributes_for_type_recursive: HashMap>, } impl Default for CodegenBuilder { @@ -85,6 +87,8 @@ impl Default for CodegenBuilder { type_substitutes: HashMap::new(), derives_for_type: HashMap::new(), attributes_for_type: HashMap::new(), + derives_for_type_recursive: HashMap::new(), + attributes_for_type_recursive: HashMap::new(), } } } @@ -162,8 +166,16 @@ impl CodegenBuilder { &mut self, ty: syn::TypePath, derives: impl IntoIterator, + recursive: bool, ) { - self.derives_for_type.entry(ty).or_default().extend(derives); + if recursive { + self.derives_for_type_recursive + .entry(ty) + .or_default() + .extend(derives); + } else { + self.derives_for_type.entry(ty).or_default().extend(derives); + } } /// Set additional attributes for a specific type at the path given. @@ -176,11 +188,19 @@ impl CodegenBuilder { &mut self, ty: syn::TypePath, attributes: impl IntoIterator, + recursive: bool, ) { - self.attributes_for_type - .entry(ty) - .or_default() - .extend(attributes); + if recursive { + self.attributes_for_type_recursive + .entry(ty) + .or_default() + .extend(attributes); + } else { + self.attributes_for_type + .entry(ty) + .or_default() + .extend(attributes); + } } /// Substitute a type at the given path with some type at the second path. During codegen, @@ -221,10 +241,16 @@ impl CodegenBuilder { derives_registry.extend_for_all(self.extra_global_derives, self.extra_global_attributes); for (ty, derives) in self.derives_for_type { - derives_registry.extend_for_type(ty, derives, vec![]); + derives_registry.extend_for_type(ty, derives, vec![], false); + } + for (ty, derives) in self.derives_for_type_recursive { + derives_registry.extend_for_type(ty, derives, vec![], true); } for (ty, attributes) in self.attributes_for_type { - derives_registry.extend_for_type(ty, vec![], attributes); + derives_registry.extend_for_type(ty, vec![], attributes, false); + } + for (ty, attributes) in self.attributes_for_type_recursive { + derives_registry.extend_for_type(ty, vec![], attributes, true); } let mut type_substitutes: TypeSubstitutes = if self.use_default_substitutions { diff --git a/macro/src/lib.rs b/macro/src/lib.rs index d53c15af4e..d2e97581cc 100644 --- a/macro/src/lib.rs +++ b/macro/src/lib.rs @@ -59,12 +59,16 @@ struct RuntimeMetadataArgs { struct DeriveForType { path: syn::TypePath, derive: Punctuated, + #[darling(default)] + recursive: bool, } #[derive(Debug, FromMeta)] struct AttributesForType { path: syn::TypePath, attributes: Punctuated, + #[darling(default)] + recursive: bool, } #[derive(Debug, FromMeta)] @@ -121,7 +125,7 @@ pub fn subxt(args: TokenStream, input: TokenStream) -> TokenStream { .collect(), ); for d in args.derive_for_type { - codegen.add_derives_for_type(d.path, d.derive.into_iter()); + codegen.add_derives_for_type(d.path, d.derive.into_iter(), d.recursive); } // Configure attributes: @@ -133,7 +137,7 @@ pub fn subxt(args: TokenStream, input: TokenStream) -> TokenStream { .collect(), ); for d in args.attributes_for_type { - codegen.add_attributes_for_type(d.path, d.attributes.into_iter().map(|a| a.0)) + codegen.add_attributes_for_type(d.path, d.attributes.into_iter().map(|a| a.0), d.recursive) } // Insert type substitutions: From dabc88c3aa9ef1204b4d4805716ec3bcb9d60b71 Mon Sep 17 00:00:00 2001 From: Tadeo hepperle Date: Tue, 28 Nov 2023 18:50:27 +0100 Subject: [PATCH 09/30] adjust example where Clone bound recursive --- subxt/examples/setup_config_custom.rs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/subxt/examples/setup_config_custom.rs b/subxt/examples/setup_config_custom.rs index 6768787600..5828bcbfdc 100644 --- a/subxt/examples/setup_config_custom.rs +++ b/subxt/examples/setup_config_custom.rs @@ -5,15 +5,10 @@ use subxt_signer::sr25519::dev; #[subxt::subxt( runtime_metadata_path = "../artifacts/polkadot_metadata_full.scale", - derive_for_type(path = "xcm::v2::multilocation::MultiLocation", derive = "Clone"), - derive_for_type(path = "xcm::v2::multilocation::Junctions", derive = "Clone"), - derive_for_type(path = "xcm::v2::junction::Junction", derive = "Clone"), - derive_for_type(path = "xcm::v2::NetworkId", derive = "Clone"), - derive_for_type(path = "xcm::v2::BodyId", derive = "Clone"), - derive_for_type(path = "xcm::v2::BodyPart", derive = "Clone"), derive_for_type( - path = "bounded_collections::weak_bounded_vec::WeakBoundedVec", - derive = "Clone" + path = "xcm::v2::multilocation::MultiLocation", + derive = "Clone", + recursive ) )] pub mod runtime {} From fd718bf7ce7c1e5991dd87a028e0526124825630 Mon Sep 17 00:00:00 2001 From: Tadeo hepperle Date: Wed, 29 Nov 2023 10:50:13 +0100 Subject: [PATCH 10/30] move scale-typegen dependency to workspace --- Cargo.toml | 11 +++-------- codegen/Cargo.toml | 2 +- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f3c9a0c097..2740ca619a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,19 +11,13 @@ members = [ "macro", "metadata", "signer", - "subxt" + "subxt", ] # We exclude any crates that would depend on non mutually # exclusive feature flags and thus can't compile with the # workspace: -exclude = [ - "testing/wasm-rpc-tests", - "testing/wasm-lightclient-tests", - "signer/wasm-tests", - "examples/wasm-example", - "examples/parachain-example" -] +exclude = ["testing/wasm-rpc-tests", "testing/wasm-lightclient-tests", "signer/wasm-tests", "examples/wasm-example", "examples/parachain-example"] resolver = "2" [workspace.package] @@ -80,6 +74,7 @@ trybuild = "1.0.85" wabt = "0.10.0" wasm-bindgen-test = "0.3.24" which = "4.4.2" +scale-typegen = { git = "https://github.com/paritytech/scale-typegen", branch = "recursive-derives" } # Light client support: smoldot = { version = "0.12.0", default-features = false } diff --git a/codegen/Cargo.toml b/codegen/Cargo.toml index 8b1b76b5a8..2ddde1eed0 100644 --- a/codegen/Cargo.toml +++ b/codegen/Cargo.toml @@ -30,7 +30,7 @@ jsonrpsee = { workspace = true, features = ["async-client", "client-ws-transport hex = { workspace = true } tokio = { workspace = true, features = ["rt-multi-thread"], optional = true } thiserror = { workspace = true } -scale-typegen = { git = "https://github.com/paritytech/scale-typegen", branch = "recursive-derives" } +scale-typegen = { workspace = true } # Included if "web" feature is enabled, to enable its js feature. getrandom = { workspace = true, optional = true } From 985a46c48ad1af2abdf273bdf8a36016633907a2 Mon Sep 17 00:00:00 2001 From: Tadeo hepperle Date: Wed, 29 Nov 2023 11:48:28 +0100 Subject: [PATCH 11/30] expose default typegen settings --- codegen/src/api/mod.rs | 22 ++-------------------- codegen/src/lib.rs | 30 +++++++++++++++++++++++++++++- 2 files changed, 31 insertions(+), 21 deletions(-) diff --git a/codegen/src/api/mod.rs b/codegen/src/api/mod.rs index 20294cfe9b..54b0a8cee4 100644 --- a/codegen/src/api/mod.rs +++ b/codegen/src/api/mod.rs @@ -14,16 +14,16 @@ mod storage; use scale_typegen::typegen::ir::type_ir::CompositeIR; use scale_typegen::typegen::type_params::TypeParameters; -use scale_typegen::{TypeGenerator, TypeGeneratorSettings}; +use scale_typegen::TypeGenerator; use subxt_metadata::Metadata; use crate::error::CodegenError; +use crate::subxt_type_gen_settings; use crate::{api::custom_values::generate_custom_values, ir}; use heck::ToSnakeCase as _; use proc_macro2::TokenStream as TokenStream2; use quote::{format_ident, quote}; -use syn::parse_quote; /// Create the API for interacting with a Substrate runtime. pub struct RuntimeGenerator { @@ -321,24 +321,6 @@ impl RuntimeGenerator { } } -fn subxt_type_gen_settings( - derives: scale_typegen::DerivesRegistry, - substitutes: scale_typegen::TypeSubstitutes, - crate_path: &syn::Path, - should_gen_docs: bool, -) -> TypeGeneratorSettings { - TypeGeneratorSettings { - types_mod_ident: parse_quote!(runtime_types), - should_gen_docs, - derives, - substitutes, - decoded_bits_type_path: Some(parse_quote!(#crate_path::utils::bits::DecodedBits)), - compact_as_type_path: Some(parse_quote!(#crate_path::ext::codec::CompactAs)), - compact_type_path: Some(parse_quote!(#crate_path::ext::codec::Compact)), - insert_codec_attributes: true, - } -} - /// Return a vector of tuples of variant names and corresponding struct definitions. pub fn generate_structs_from_variants( type_gen: &TypeGenerator, diff --git a/codegen/src/lib.rs b/codegen/src/lib.rs index b71e1f048f..43fb8ccdc3 100644 --- a/codegen/src/lib.rs +++ b/codegen/src/lib.rs @@ -24,7 +24,8 @@ use getrandom as _; use api::RuntimeGenerator; use proc_macro2::TokenStream as TokenStream2; use scale_typegen::{ - typegen::settings::substitutes::absolute_path, DerivesRegistry, TypeSubstitutes, TypegenError, + typegen::settings::substitutes::absolute_path, DerivesRegistry, TypeGeneratorSettings, + TypeSubstitutes, TypegenError, }; use std::collections::HashMap; use syn::parse_quote; @@ -290,6 +291,33 @@ impl CodegenBuilder { } } +/// The default [`scale_typegen::TypeGeneratorSettings`], subxt is using for generating code. +/// Useful for emulating subxt's code generation settings from e.g. subxt-explorer. +pub fn default_subxt_type_gen_settings() -> TypeGeneratorSettings { + let crate_path: syn::Path = parse_quote!(::subxt); + let derives = default_derives(&crate_path); + let substitutes = default_substitutes(&crate_path); + subxt_type_gen_settings(derives, substitutes, &crate_path, true) +} + +fn subxt_type_gen_settings( + derives: scale_typegen::DerivesRegistry, + substitutes: scale_typegen::TypeSubstitutes, + crate_path: &syn::Path, + should_gen_docs: bool, +) -> TypeGeneratorSettings { + TypeGeneratorSettings { + types_mod_ident: parse_quote!(runtime_types), + should_gen_docs, + derives, + substitutes, + decoded_bits_type_path: Some(parse_quote!(#crate_path::utils::bits::DecodedBits)), + compact_as_type_path: Some(parse_quote!(#crate_path::ext::codec::CompactAs)), + compact_type_path: Some(parse_quote!(#crate_path::ext::codec::Compact)), + insert_codec_attributes: true, + } +} + fn default_derives(crate_path: &syn::Path) -> DerivesRegistry { let encode_crate_path = quote::quote! { #crate_path::ext::scale_encode }.to_string(); let decode_crate_path = quote::quote! { #crate_path::ext::scale_decode }.to_string(); From a6b580fc8e880847de77a1de1fda39c51c663453 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile <60601340+lexnv@users.noreply.github.com> Date: Wed, 29 Nov 2023 13:16:49 +0200 Subject: [PATCH 12/30] lightclient: Fix wasm socket closure called after being dropped (#1289) * lightclient: Close wasm socket while dropping from connecting state Signed-off-by: Alexandru Vasile * lightclient: Construct one time only closures Signed-off-by: Alexandru Vasile * testing: Enable console logs for lightclient WASM testing Signed-off-by: Alexandru Vasile * lightclient: Separate wakes and check connectivity on poll_read Signed-off-by: Alexandru Vasile * lightclient: Close the socket depending on internal state Signed-off-by: Alexandru Vasile * Revert "lightclient: Separate wakes and check connectivity on poll_read" This reverts commit 866094001d4c0b119a80ed681a74b323f74eae1b. * lightclient: Return pending if socket is opening from poll_read Signed-off-by: Alexandru Vasile * lightclient: Close the socket on `poll_close` Signed-off-by: Alexandru Vasile * lightclient: Reset closures on Drop to avoid recursive invokation Signed-off-by: Alexandru Vasile * lightclient: Close the socket if not already closing Signed-off-by: Alexandru Vasile --------- Signed-off-by: Alexandru Vasile --- lightclient/src/platform/wasm_socket.rs | 31 +++++++++++++++----- testing/wasm-lightclient-tests/tests/wasm.rs | 2 ++ 2 files changed, 26 insertions(+), 7 deletions(-) diff --git a/lightclient/src/platform/wasm_socket.rs b/lightclient/src/platform/wasm_socket.rs index 3d212a3506..abe67e7c2d 100644 --- a/lightclient/src/platform/wasm_socket.rs +++ b/lightclient/src/platform/wasm_socket.rs @@ -122,7 +122,7 @@ impl WasmSocket { let error_callback = Closure::::new({ let inner = inner.clone(); - move |_| { + move |_event: web_sys::Event| { // Callback does not provide useful information, signal it back to the stream. let mut inner = inner.lock().expect("Mutex is poised; qed"); inner.state = ConnectionState::Error; @@ -136,7 +136,7 @@ impl WasmSocket { let close_callback = Closure::::new({ let inner = inner.clone(); - move |_| { + move |_event: web_sys::CloseEvent| { let mut inner = inner.lock().expect("Mutex is poised; qed"); inner.state = ConnectionState::Closed; @@ -171,6 +171,10 @@ impl AsyncRead for WasmSocket { let mut inner = self.inner.lock().expect("Mutex is poised; qed"); inner.waker = Some(cx.waker().clone()); + if self.socket.ready_state() == web_sys::WebSocket::CONNECTING { + return Poll::Pending; + } + match inner.state { ConnectionState::Error => { Poll::Ready(Err(io::Error::new(io::ErrorKind::Other, "Socket error"))) @@ -221,17 +225,30 @@ impl AsyncWrite for WasmSocket { Poll::Ready(Ok(())) } - fn poll_close(self: Pin<&mut Self>, _: &mut Context<'_>) -> Poll> { - Poll::Ready(Ok(())) + fn poll_close(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll> { + if self.socket.ready_state() == web_sys::WebSocket::CLOSED { + return Poll::Ready(Ok(())); + } + + if self.socket.ready_state() != web_sys::WebSocket::CLOSING { + let _ = self.socket.close(); + } + + let mut inner = self.inner.lock().expect("Mutex is poised; qed"); + inner.waker = Some(cx.waker().clone()); + Poll::Pending } } impl Drop for WasmSocket { fn drop(&mut self) { - let inner = self.inner.lock().expect("Mutex is poised; qed"); - - if inner.state == ConnectionState::Opened { + if self.socket.ready_state() != web_sys::WebSocket::CLOSING { let _ = self.socket.close(); } + + self.socket.set_onopen(None); + self.socket.set_onmessage(None); + self.socket.set_onerror(None); + self.socket.set_onclose(None); } } diff --git a/testing/wasm-lightclient-tests/tests/wasm.rs b/testing/wasm-lightclient-tests/tests/wasm.rs index ed3ee77a70..04018babeb 100644 --- a/testing/wasm-lightclient-tests/tests/wasm.rs +++ b/testing/wasm-lightclient-tests/tests/wasm.rs @@ -32,6 +32,8 @@ wasm_bindgen_test::wasm_bindgen_test_configure!(run_in_browser); #[wasm_bindgen_test] async fn light_client_works() { + console_error_panic_hook::set_once(); + let api: LightClient = LightClientBuilder::new() .build_from_url("wss://rpc.polkadot.io:443") .await From 44c42c33e9c1c2eda82e4614cc08e95c5a2921fa Mon Sep 17 00:00:00 2001 From: Alexandru Vasile <60601340+lexnv@users.noreply.github.com> Date: Wed, 29 Nov 2023 14:13:35 +0200 Subject: [PATCH 13/30] workflows: Install rustup component for building substrate (#1295) Signed-off-by: Alexandru Vasile --- .github/workflows/build-substrate.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build-substrate.yml b/.github/workflows/build-substrate.yml index bc4c867ffa..5c660c769a 100644 --- a/.github/workflows/build-substrate.yml +++ b/.github/workflows/build-substrate.yml @@ -23,6 +23,9 @@ jobs: - name: Install WASM toolchain run: rustup target add wasm32-unknown-unknown + - name: Install WASM toolchain + run: rustup component add rust-src + - name: Rust Cache uses: Swatinem/rust-cache@3cf7f8cc28d1b4e7d01e3783be10a97d55d483c8 # v2.7.1 From 07247359095b19ee426b7122c52ec17714067ba0 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile <60601340+lexnv@users.noreply.github.com> Date: Wed, 29 Nov 2023 14:38:19 +0200 Subject: [PATCH 14/30] cli: Command to fetch chainSpec and optimise its size (#1278) * cli: Add chainSpec command Signed-off-by: Alexandru Vasile * cli/chainSpec: Move to dedicated module Signed-off-by: Alexandru Vasile * cli: Compute the state root hash Signed-off-by: Alexandru Vasile * cli: Remove code substitutes Signed-off-by: Alexandru Vasile * artifacts: Update polkadot.json Signed-off-by: Alexandru Vasile * scripts: Generate the chain spec Signed-off-by: Alexandru Vasile * cli: Remove testing artifacts Signed-off-by: Alexandru Vasile * cli: Fix clippy Signed-off-by: Alexandru Vasile * cli: Apply rustfmt Signed-off-by: Alexandru Vasile * cli: Introduce feature flag for smoldot dependency Signed-off-by: Alexandru Vasile * cli: Rename chain-spec to chain-spec-pruning Signed-off-by: Alexandru Vasile * scripts: Update chain-spec command Signed-off-by: Alexandru Vasile --------- Signed-off-by: Alexandru Vasile --- Cargo.lock | 2 + artifacts/demo_chain_specs/polkadot.json | 107 ++++++++++-------- cli/Cargo.toml | 7 ++ cli/src/commands/chain_spec/fetch.rs | 63 +++++++++++ cli/src/commands/chain_spec/mod.rs | 131 +++++++++++++++++++++++ cli/src/commands/mod.rs | 1 + cli/src/main.rs | 2 + scripts/artifacts.sh | 3 + 8 files changed, 270 insertions(+), 46 deletions(-) create mode 100644 cli/src/commands/chain_spec/fetch.rs create mode 100644 cli/src/commands/chain_spec/mod.rs diff --git a/Cargo.lock b/Cargo.lock index c0233755f8..e0e3b31be9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4308,10 +4308,12 @@ dependencies = [ "scale-value", "serde", "serde_json", + "smoldot", "subxt", "subxt-codegen", "subxt-metadata", "syn 2.0.39", + "thiserror", "tokio", ] diff --git a/artifacts/demo_chain_specs/polkadot.json b/artifacts/demo_chain_specs/polkadot.json index 2d4525f8ba..984506f6bc 100644 --- a/artifacts/demo_chain_specs/polkadot.json +++ b/artifacts/demo_chain_specs/polkadot.json @@ -1,47 +1,62 @@ { - "name": "Polkadot", - "id": "polkadot", - "chainType": "Live", - "bootNodes": [ - "/dns/polkadot-connect-0.parity.io/tcp/443/wss/p2p/12D3KooWEPmjoRpDSUuiTjvyNDd8fejZ9eNWH5bE965nyBMDrB4o", - "/dns/polkadot-connect-1.parity.io/tcp/443/wss/p2p/12D3KooWLvcA24g6sT9YTaQyinwowMbLF5z7iMLoxZpEiV9pSmNf", - "/dns/polkadot-connect-2.parity.io/tcp/443/wss/p2p/12D3KooWDhp18HYzJuVX2jLhtjQgAhT1XWGqah42StoUJpkLvh2o", - "/dns/polkadot-connect-3.parity.io/tcp/443/wss/p2p/12D3KooWEsPEadSjLAPyxckqVJkp54aVdPuX3DD6a1FTL2y5cB9x", - "/dns/polkadot-connect-4.parity.io/tcp/443/wss/p2p/12D3KooWFfG1SQvcPoUK2N41cx7r52KYXKpRtZxfLZk8xtVzpp4d", - "/dns/polkadot-connect-5.parity.io/tcp/443/wss/p2p/12D3KooWDmQPkBvQGg9wjBdFThtWj3QCDVQyHJ1apfWrHvjwbYS8", - "/dns/polkadot-connect-6.parity.io/tcp/443/wss/p2p/12D3KooWBKtPpCnVTTzD7fPpCdFsrsYZ5K8fwmsLabb1JBuCycYs", - "/dns/polkadot-connect-7.parity.io/tcp/443/wss/p2p/12D3KooWP3BsFY6UaiLjEJ3YbDp6q6SMQgAHB15qKj41DUZQLMqD", - "/dns/p2p.0.polkadot.network/tcp/30333/p2p/12D3KooWHsvEicXjWWraktbZ4MQBizuyADQtuEGr3NbDvtm5rFA5", - "/dns/p2p.1.polkadot.network/tcp/30333/p2p/12D3KooWQz2q2UWVCiy9cFX1hHYEmhSKQB2hjEZCccScHLGUPjcc", - "/dns/p2p.2.polkadot.network/tcp/30333/p2p/12D3KooWNHxjYbDLLbDNZ2tq1kXgif5MSiLTUWJKcDdedKu4KaG8", - "/dns/p2p.3.polkadot.network/tcp/30333/p2p/12D3KooWGJQysxrQcSvUWWNw88RkqYvJhH3ZcDpWJ8zrXKhLP5Vr", - "/dns/p2p.4.polkadot.network/tcp/30333/p2p/12D3KooWKer8bYqpYjwurVABu13mkELpX2X7mSpEicpjShLeg7D6", - "/dns/p2p.5.polkadot.network/tcp/30333/p2p/12D3KooWSRjL9LcEQd5u2fQTbyLxTEHq1tUFgQ6amXSp8Eu7TfKP", - "/dns/cc1-0.parity.tech/tcp/30333/p2p/12D3KooWSz8r2WyCdsfWHgPyvD8GKQdJ1UAiRmrcrs8sQB3fe2KU", - "/dns/cc1-1.parity.tech/tcp/30333/p2p/12D3KooWFN2mhgpkJsDBuNuE5427AcDrsib8EoqGMZmkxWwx3Md4" - ], - "telemetryEndpoints": [ - [ - "wss://telemetry.polkadot.io/submit/", - 0 - ] - ], - "properties": { - "ss58Format": 0, - "tokenDecimals": 10, - "tokenSymbol": "DOT" - }, - "forkBlocks": null, - "badBlocks": null, - "consensusEngine": null, - "genesis": { - "stateRootHash": "0x29d0d972cd27cbc511e9589fcb7a4506d5eb6a9e8df205f00472e5ab354a4e17" - }, - "lightSyncState": { - "babeEpochChanges": "0x048edc0df46d8dd7b4d2976d124920bf94ab2bdd9058f837f3a502586a70d22ddbd24ddc0001733eaa1000000000d347aa1000000000049a41a36f474af1af3046324e211e0edba2f8cc50390dff82976981bbd67245db2957dc0001d347aa10000000003351aa10000000000486ce7842747897a71c3dd8462432fe113713580f11146d55ee881318f910e3797f60dc00013351aa1000000000935aaa100000000000000c86ce7842747897a71c3dd8462432fe113713580f11146d55ee881318f910e3797f60dc00019f170000000000003351aa10000000006009000000000000a50466f60202b962c40e58fcf3481f5773dc178b9fe096f81511eaa4c7bad20e612001000000000000009c40155989f6072e82caba245d7db7e40a60f866b403257976b89aba6be2b55b0100000000000000ee3b07c54f0d93945caa98d8deea125865e36dee14644453fb07176d4605bb2c010000000000000072ab87b654d80294c876cbefb534b3344c2f64159b015b89221331ec2145417501000000000000008e43fb54c6d8074ba65ddc6c1b9c54a9c9f0508ec939d5b1746ad2bc42069c600100000000000000e2782e5b1d9962dcb6c006b797af79017be14346a6c2086ff132776ee7e74f53010000000000000020352ba0565811731625a8001d26f5d899e5856dedd0f9c6bc3bec2995704e5b01000000000000004c9886e2e62ee92a6778d6a7928052732044b64fa61969cd8e37f3f7e3406f72010000000000000012f7e35aedc710f8335cc813db106f2a569c6224505416e33c241e625993a86a0100000000000000dceaa05fb95e70e99b9fcfa547a67d067b1ec24b1e795bcd739ff3fdf1c2c9160100000000000000002e496e564f088a075525d2f9155aadd1a7eb017fa36f9e16096e9db7e1693301000000000000006a49a129620f4318c4a99b69c28cbe5f94c7578bbce50bf2627c61590f68df750100000000000000f6dddaaaa53b57763610037753656b591d90fa81efbadcabbeddf7378c23602701000000000000009601c5f103f77e1cb78d4e03f2585320142cbb4fd6c5c37f21edbbb2d343eb560100000000000000466c0e97d043a4b0f4c3ac4849e11f901e9b31b28f8b3e40b7cdb0ba7f77480801000000000000002049288b4dbfb741109778c602f9308daf2e31b3b66e9aa550065e73c6787d7c0100000000000000e67c524e443cda4cd27dfcce70488a5d23a93c8c46a5e83ef5a69eff3a02fa5a0100000000000000ca4fb6a27ee4ba734e8e8caac9ed440170a99efe98af430a14a3eaa4b0d03d600100000000000000400c83c89f541c02338cf113c5a841d810bf3bf17c5c6e78efbd637059005f7001000000000000002e85d3d2c07aaf1c0a5f63f544c34b87cfa90a98c4f6167e86cee0b74a20cb1201000000000000007c5f58a83f8101943c089dba3ab906c07811e853444aa58dbcc986c4095fbe7c01000000000000005494142902284943201b7cf610306e8665eeeec87c014d607175c3f50f76103b01000000000000001822493200c35242a149070784dca5e7012a8a52b61cd218ec7d65e469e8cc560100000000000000dcf6d4dda860d902eb4acb8adff1116c637c12eb9d0633caa8fd0b65a30c8105010000000000000042e377034ce6b2a582bfd66c465252ab10ce790e4f0d3bbe99a42ff86b29965c010000000000000052e281ebf2cb6e1751a844d92574869e5a06e596bc41404de1fe55e99980dc6901000000000000004e2753547f6ec0a896bcbc55b9eeab875e8019acdeb10b979210af63f24c4b740100000000000000822467882ab8bd2cd75152843a948b3e56ae1da6aac9b66ac4cba1448217d8410100000000000000f63e0c859002c868d1e8bf7b36558b7b3f4a033f13850862ad643bc99628f335010000000000000090fd0815e122cc480aaa256b319405ab08f867d414dd59736bc81b7f054c59700100000000000000046c86bcf2260b9e862c5867def0e1a528c32e64ce0cb20d41bba00f30013a690100000000000000d416213c0b30df8f5aadf00642a4777dcea76b12836c51a98abcd133c78899470100000000000000ae831c0a4d22eeff12f679540c229029e321499477451768b8999b1191d6164801000000000000006ec27dfa7ac9d35eb002c55d3e4d56b4df928dd5c44323ac228305741c9e09360100000000000000b89cbc83a386d6f5d4fed93289ee50fdf69d77369ca0c9a8b962554e3fc0d37e0100000000000000e61da4eefdd14434952c58dd1943f7f63185d03321ccc8835e4216badd16fc19010000000000000078f66da37371586d480a8c4dcb2fc772c7c3c185961b5757169cb3b72c12436b0100000000000000a20797f3a8669a909adb22a3aee2844dba82d231cc33f5d9be0e2c533cb82a670100000000000000e297620b731b4958e3c6aa06611c6aa5a45f7e116362d64954a0a330d2a98f33010000000000000088c2166cef8e248c6dc7f801967f6c936b21ecff6f061035d9f95cbaabbcbb0f01000000000000005a7a6d3951924738f27fec8c0baa71a0f518a2d56d8289a1887d3d6805088c220100000000000000049e89e200ca2e92ee67afb644b216f3e99c8b4eaf26c1f0e42038850d0c617901000000000000004077191c8d78ed00c81b74788215db40d498f37252f9966f57e96c9d3f6af31701000000000000000ef6f09a9e310abb5c57dd7050a94d56d766772b80789b997cbb40f3b40f625d0100000000000000b25892ec76bcc88536409e440cb14f9de9589c4efe2b69608fff594885a2fe6501000000000000007cc03ffbfb187c1ea32cf4d25893238aae9073b2016084052a6defac64a7e36c01000000000000003af71b42b712323aa28fd7a2099c4f8b8071e3ed27c8a52ff2cdff5d1a5eb66b0100000000000000a88864a0dc9e292aa7cc8eddaa8dd8b6be2a4bc7e8f290023c6604e5c4ad1a7a0100000000000000dc68569b46a09aebabe8fc4452e293fac635e4a2889739809b32e4e2303e3f71010000000000000034ffee048e511f4187a6f40339650ec60a3d99ac5a1158ae162c5729b59d51740100000000000000be7c58318c49ff328d53a6d67830a8a046a41f5124824d3ce2e72cc9965ef57e0100000000000000a693f218033b3eb885bd2c7793227834d1ff3350c296e49aef3d8d801d5719750100000000000000b06e3ee1ea6420fb73ebd502988420f51b977a83074e1aa5daf0121f4a8b6b1e01000000000000003843abe933fa3ce63f3a5e422e13ec05dc9c0e8f150b93a0fa97f1b193cfba2d01000000000000009cdd57a06bd22d104d539527a19033620becff73dd267f0c2f9f13bc37b0d32c0100000000000000e020b5e946e4c6b0603ceac71b44c330fa7d9cb3e79791ebe1e16bedbb9c71000100000000000000a86c7bdf11794e554439b09f9f294c8e0abaebf447c7bc54419434b8b95f864901000000000000009e9f565a8cb6e8f2154a9833735930a04003505856c3743a0f71afe64c7acf71010000000000000042e4c41a899dfb238649e5b17dc232c2699353635d60e6a3bdcd71f9b82cda300100000000000000a24cc4a40afe5d37968f8d6c7904181a1390d5e718ad04a27ace2ea62f52376001000000000000002261bba26f785cfff606f086f5db420a43a4322fb9d225410a140acbe3d3a405010000000000000050a257ba8dddbf08556f5708bccb587ff4dfbfad15f217d422d7bcf2a7f7f5600100000000000000f23d1b22d1b03c9fb6eb203c85761fe429a60c38d6591d215e873d62f5d2e4010100000000000000283a77cab50b96f99a8e8287c1488ebbcf31fc3daa953ffa99ac16db982f1e12010000000000000094e80daa135f9283d6e8c00c00840ef766863b7d89f354c208b75062f9507c760100000000000000ee579514d7f544fc9fb8d6383ed7d109ee98a411bb4b0b45b9354b0f73fed9720100000000000000b8e999c053a20108e3380d6cb1c2dd2b8e6973c7b2a1f354ca91068c1c1eb83d0100000000000000e8308668e9f16683cc739791a6dd530b819f45e4ade2113ee2f27eed1c51d1200100000000000000b0b313e6391bd3cad2a2c91e4fdaff1404e8a5e2014e4ddbe89f0b7a63e28079010000000000000074b89b94bfe9d61d16ace3eacec820305edfa6a7286ada941e92cfb0bd8374100100000000000000b25eaa07b529a889d38e0346761842f8ca2e970b31038d174c88c7fb667718270100000000000000825e4307d8b2b4387bdadc97f6aa854152dcb5ea892bd1e6790afb1dd83e2e2d0100000000000000a889c98c4c129efe5ecf6e78992d19903205818ca2b760ec25a0b7debb7a2f18010000000000000026d421de2e7251020ac2f8b8c7e348aa904dcaf0b6d5d73fa0113b476f7dd903010000000000000020d5041fd7749a76b9862d74f365692ed6186dd95b0436df82089918920bc3580100000000000000bc56c07cea21bcbbe058aedd2ced9fb4757caead55f96bda9bed1c9669c32b640100000000000000ee1c578a2f792ff3237d645124391b6422b16724b1da5f1b4296f422834bf01c0100000000000000da5c9a8e3df09d9e2a73aa5453b53998b426fd747e887faeb9b2dc99a03cd12201000000000000006ccf2ce8e149999a7bb996faa65194e60aeb7bcd1937c787f886fe979fb49e66010000000000000082b820c5bee8ee77e35203dab387f3434b8502e5f1c35dfb2ad15b5c89d47b3c01000000000000003ef7b532bad1e78d67254bb738d2e5aa357aa04dece89ca3aeadcc8b77efe14b0100000000000000b6ea2250aca814c227ff53de081c337cfdbdef2eb3b0416555589fdc15cf64360100000000000000422318d2ed50f9e42bc2451394ea2faa9b6e0a2454d1471a8ad6ed7b2164b81b0100000000000000b4b145ce385b4a3d83f2daac46a61874f80e58c468dd624acc09a558be02c27d0100000000000000ccebbca14a079b3f6a61898b07592456869c753f951401dd3696788419b5952b0100000000000000d04077347325618eb5cef03729a157b910fac54ec7e344e65b6945fb9fbbeb3b0100000000000000069fc7b8027f7088057362a588ed9af23342e37b70fa163cb47897f7960025580100000000000000fe3b55d17e25c44a3568885d9d37276df81fa5225d9d73ee67321c7826581b5a0100000000000000dee6847832968c1e240c64eb4d2cfd8f5ff3be16d63301638049c8cc7db83059010000000000000040a2527ffa7d30d788eca127d435c8b5aa48972cda538b9a1627a57e85c8fa190100000000000000cebf2df4a8cae34e2f4c645863327db8a10b19119ab7d1cd887a4cb8acc0481101000000000000008ee9a6372d159dd413e241b3201ae4cb2ae8d05fe95fbe1e565d81000dc418750100000000000000261ac3229b4bb7a376c37f17e287b2eb596d3b478370b722b6b41443d870813201000000000000001a36d936f4692ac8387ac0ca1f051970ae480271e39fc134436b86b8ec83b25d01000000000000007886559a7121bd7f28b06ce499e0bc3de3d0adf1abc47c6e0461383c7098237f0100000000000000e03dd3bbb140ffa44e0cc0e1846967b03aecccac78f6e2e0a1fd3ac0d34f554a0100000000000000a8818217d40fd73cfb5c28b2402a2c6049fd17f99226f3331b6bf328688e3c4401000000000000007affcc9e0c86c66957afb75d760842bfd374949da725718c0bd3edbf6a1bd7310100000000000000eabcf59549db01c112376fd042e3ecf95b1b3b5ae8e0e744965cad5880bf9e0e010000000000000068d6533bda9e474fabac2aff0e1e6aa7ac48509802f7cd29b5a4badaba2bf37f0100000000000000fa76b5548c290e38efd3aeb5bb478de80b0e4d10b09b758e0b0f0971993e6b1c010000000000000004ba7eb24012b133b20a8021b603a1483c4a5b9ad3415a4d7ca2b1ad625719550100000000000000202e3405e49bb882f1d49efc4a4adc5b62dcc96ec18346a48aad5a510c189b500100000000000000dc02c19ac49087a2a0c5188af826e5ed6450f5041f00ee8e77bc01b12945ac0d01000000000000001ca57b22ae230979adc98a3aa05d47f1196c27eda66bb6125a868583fba6e5420100000000000000ea6acde5149e930af7bc3b17b7f0bdcf12dfd3dc3437f774f823bbeef420a97201000000000000002ea86a65c1e3749548d3c56eb537d21e1756895e35ca99a9019b8606c47bd214010000000000000014e2f25dd3376eb7978d413c14322704a2ff3d9c0c2971acdcdf9720c2c13d6b010000000000000014cf97e739cfd033c2828f25ad3f15e8f6ef62ba97dd74164e77e61eb85454260100000000000000eef6e320387caad3fa7bf295c60b85adf0a6f5a19144a4433e1841b4a72e07410100000000000000a07f151db53097c2da9dac4b2e0f194931a677a3ba99df0f3976e34409fd64760100000000000000809a2c451363ab14bb2272aa972a2b1a1de3386fe2bd47113ba4819d67b6fd6501000000000000004cc9ff5edb36e361b088b0eff52fc6e6559c1169ff87ccdb62503bceab7c7445010000000000000040dab7f2e50b7ccee4e3a6223ac09882654079b695b110ad6401558959c2360d010000000000000004065673fbef2c9dbd1b79088e0e3cd6e39784ebb792ede843d9e7988da85c4c0100000000000000fcd5f4c4fe11f20ad99dc8345b7dc5600caba5d5b7d3f499c3253c095152d45401000000000000009254313d03095e6b374e43addebc950956bcb34f2d11a9c557514c9991b3aa0d01000000000000001e825121b8beecb30e9962a555ce06b9e2c65fcf3b0023178556330d565bcb4c0100000000000000e06ae0c49573816e158f02c5263a7b167c2ff7bc5528b13c1cc5a2ad0a34da16010000000000000038b723ee73f8083592437eb9f2e436ad7b694dbaa7599d154a9e3e01b14b69040100000000000000042ca33fbebb9f50bd3ee55c6eef27124379729ce2670914d1a762ebd5ced55c0100000000000000aa819492e4d782526781e8f9001f93d2b9a23142886757ac932702930b9a991e01000000000000008c14a0d64bbb88f3546c49bafb1f6bbe3d59cb277af2fc97f19aee0b80bdad0e01000000000000006834aee6fa1c48e229ad7431b77181ff03dedfa486aac6eb7880ec9950c445540100000000000000b48cf50a4f94e83450a791d6de965c3e8127c1c915208f2b85df4c3a84b2042f0100000000000000c60a9f5f89ea3a56499bcd39bac7e038c25f5b7720d873fdc12b68d2531eb650010000000000000040b77fd8fcabe868dc7f2a08bf14c67e4d433886c3cd3738d1b0b9c649bafc2301000000000000008c43dc50f9ed5bc7be6b4a648957ee5b01a2cbbf967077a6044d4b92f2c715070100000000000000fa81c1b7635c3f695915443a2dfc030e980cae09e592f555edb67436aa11215001000000000000001296762372530d2ccabddcbd204fa90217ce28c9365c5cf4a4eb9f46545b786a0100000000000000fe621d474a018c4e2265c864e994a129614dfb473339453f45a5510587d0174b0100000000000000f2b63387ce5b649f9388fd1be38ee4357b48dc0146e78b91f8f6469a78dc9f580100000000000000b2ba57f89fba50ab178f10f10f2ff79f6061cfec808679868eb7ddd8b08031340100000000000000e694e453023e9989a59e414a8783f9269e933574332c77067fa7ec2b9b6876100100000000000000dc702f22412e64b699d65c66ea2d0857e7b94c0448346f86068e658fc00c5a2c0100000000000000ccb4e6006ac696d5050bc790beff6eaf61a5dbee1a070f66c824b962fe177b6901000000000000009acfd215519f40156749868afc8d56e015759f71cf183fe68382e8c02c75b251010000000000000038f3f4c693034fb614c804ef2854850286df0b1411e5a0c83513ef4c4fa487050100000000000000de5f9f5ad3209502cf429630c2038b8818b6f8ce5685c2730077349802c579250100000000000000649d1a54b0a158350238c017a71aae21e3bb73497187a010d97e1e1b21e43b6401000000000000001cbfaf2b91ee79c6288ad01dd5787070b34d5e1b8253a1765904eaa7d0b93f02010000000000000036a547b4aca95274437f3876bec0447f775eacd01b09d95869390d326a596d450100000000000000a811667da1a12b408e2eddd3fe118403e1f8926b703104fe34193b4fca229d5701000000000000008e83fc9e157adcb687b4b994326f6de340d80075bdbb590eeaa3f29f457ef3560100000000000000b2afe6968bf90de3f8cea025a2b2b0b560b1899fd23343e52c778ab45e1f685f010000000000000026f2af62a2f0d847e3d2cccc93ec7f98c80a7b6d1bcca4cf1c4a6fc7f81775010100000000000000aafb720e50ac6fe69aa177dff62a733a0e98cc0fe7c35e591127479e7e94d5430100000000000000a8f7368dec8f4f30db015c4362e03cd588c6e60f2f4f69912ee4aafb35df38620100000000000000e6767e8c251c74826054421ff499297c13ab6a4e84ce10e0dfae4e21b64aca7301000000000000000481a58bfdafecabbc96bd170a0ec04cc35100f1f928cca3ecc63b3639e47679010000000000000056935ed80a27ac471336a7c5a8b0e73432ddabdf5fe8992390cbae33a020883601000000000000008ec5856a5fd17617c0af76efea16a87d0c5e769eaad39e91c40dac93fb067d5d0100000000000000b0d7d82ba2eca517d6d899525672a1d236f907565785e41ba80296aad19dc57f0100000000000000e4be18b8f5905bc41fe3cba2e5350d405e76036328042ae7edfbb6b6a9b43d5a010000000000000038a69f047c05d50988318a333c2a6bdde4b778592d66328bcf44f1472c1dab500100000000000000b28eace0661acec97215230b9aae3c2be19ef43e9eb90554ab44b51c6180362001000000000000004ed5f55ec45727a57e2d8d6914f6d2acffb17b9515d347ba045067502a0b1402010000000000000036b1aeb61d78c234c0448c0622c570c33ad8fa7b5d7d12102ab323b7985d31690100000000000000a6cfacf0aff2d5c6e8eadf71f397a64f2863e5f0b8793e3068aebd5b3030e13101000000000000007eb2b0b6adbe5a5bad38f46db207f94c896d419661f4ab8f21e302a543df9b1101000000000000004014ed541e698a7a87888c6b5f0c54d74de28c8cd3bd8f1b1f8fd7fdb757cf330100000000000000b032afc9e8d2abc223f23c1d1e1776b3c66a23f5917a7669d69c2eda81b08c3e010000000000000048ce0aba6f1554e139568b4d2358d6cca9bc291d3600787cc3e732291002ca22010000000000000092239fbae2557ff2ea3952c962e478e6ac2a5b3e3cfffb0eb40e8d41860ab0470100000000000000e82715ac0ec2e1f41af952f272f20ef2d2ef826c441c6f33a95522270e57db4b0100000000000000469d81e8b43725a64da6b1ce10eb53eebe1aaebb9703f75ed452e12f45d262730100000000000000285987285ceda1670b1a2fc5c5cf8578a368d63aabfdbbee83ea05db6ae376470100000000000000c4f22a0641190f1bceebea3f8280f22469d6ac0d9b27bcab27d778ac517d2479010000000000000026106dc6fa26823ed60e52e0b1a164dd897be2f617bbf24ddebd9ab34bf6de7701000000000000001c71bcb434190e911175317142b8589619ea3087fb2048a9117607b7b11d11300100000000000000a8527842f1040269688813eb1cf64f525cac5f9219feac35b2d46bcd2df52d100100000000000000a670be090a366ff66d8f7d1eabb7514252222507111e53430bd437a8dbe53a52010000000000000018261ac5151f160bc419a8e44d85fbd4cd8669decacb23c8d7f36f316cbb445e0100000000000000fc53d15453457faadc5540c5853f54324eec395d3647fbf99d5e6e97ef3876760100000000000000544d12f359dbe87200565a9697af85b936a1b5f9d0a363f2ee540ec544aa761e0100000000000000fca464b97dee2e318ad8d4516fd606a5401f5d15467110112a3326ef96ce00760100000000000000864cbd281011a154d93d0320865ad67ae442bf0985f0ec220e2c7db4b095993101000000000000004c696de688ef5d4d5899d1e596a81fde52db76757669bd0051a155fb2335ed0e0100000000000000382fb32d7c8868ce3765e9ccfb462c04071a3d70cab3382c796a9115ab0c310301000000000000008a6dbf87f769167b4eb982f63b946f96a1f223b6a6f2789183fec09581b8e9060100000000000000b027ae418b6c79d9f3a2b05df499d3aaecfb327e6b9d7995a022dc5265ed76180100000000000000eed7e8e8a64dfa89c548a31c1b9fec7af5aef4dbbdb26997b2ddca72d4f8790c0100000000000000a811cc491bb3487d5e604dcf6dca3bf529437162f3b8cfb8514ffab16809ff600100000000000000fe2848018ac215f72f551e58dd2d065d99b788b5a7aa59b9f9fe47a5bdbc046d0100000000000000b6ed5b0c17ca7560c71f1778694741009d3da979309617f0bb992084019e25290100000000000000f853a1534a3af56217661420536dd7bea0db6f6db843d8fead77c308ed7dcc7c010000000000000004b0ff0440c7e131b891a3c13c6f7f0233dbe80fe90dc097f8c5566f2bb49a5f01000000000000005af4895ad43e058a09b4982b8c78021f1ae6cdec9f6633089f32e948ef0d2a11010000000000000028702457fd7ea52bb88284bfcd721493ceae3ea984492a1b82c55efa1b62fa39010000000000000036550a8edfcf14f96e29a7901f5610b57722dbd68b48608572e98468c5bc1f6901000000000000008a51ec3cd1c7e1e5cdc0e3697dd028337ba54e18169cbb241140dbdcc928695c0100000000000000c80832d979a4ba72f7179c346fe660490c292689da81d790baa30a76b598ad5601000000000000006ef86d4533f47ffd133c63b9575c17234309ab6e16f487ae7cd8914169183c66010000000000000056606b6532cdbf27358fd067d61c2a65e4b3e8934c266a857320ff18e5c7654c01000000000000006e8ab85645445eed3828ed583d9a0af03a682fea56d16f833970a3289088e2510100000000000000d096cea7ac5f1bbcaad09ed4723a23fa3b582cc352182a49f8e4511acfa6f87a0100000000000000481ef876bba4865bb88d141606632b3a482c4e5c58c9c30786f6a279eea8a7780100000000000000f403ea18b9e4e9075319b30bf6b6201dd90d012fe4ba28a1c759d0822b9e550901000000000000000690823277fbe96c145c1686519038d301d63bad07d343810506e2cad4b1145701000000000000006c06a116c1a75e2e3b46a7924fe23ca8d58d2a32acac4ca8d0a1e23e3b4c4720010000000000000094d89cb8df2b03c76d41a6521e5803d6f98e204e1839b9ea747dc7e253d35b7f01000000000000009ce314a687a2e8754e1351cda727fdc20e473c08c8bcf5cb70c9a048b571540301000000000000002801cda4aec5f013c3eb504100b1e29e0e65423219d7c6b1b48b0a424a42307c0100000000000000ccb5a9652f3be5d85fcab3d0b8c2eae27519ae2f7befa40c34b89751bbcce40001000000000000005258f48e31bc89f5d53ea6a12eea9698f8e72c6068ac1588100d8632bc674d1e010000000000000094de02a2418c67e938e449c2297944e13cf638e67110299f14cafd5bf2fc60140100000000000000540926fefa2d0424fd451bfca39a01c0e1a3fc811406e127d1dbfdc6cf9e9770010000000000000038c9a0897d9caff03a308d2120bbe892974ae8cb05f1cfe8b97259f0ac2e85290100000000000000a0b7bf06b6c030493f2107c1f2c4154b98b677fcfd461e5817b909f31223a5630100000000000000eab9946bb96a047e9c2fb0e6db8236e46192bcced0c8ea7319142a73cfaf000401000000000000009a53749c83cc06460148d884f1ea5b71897466b237cf16baa45395d78ce48c1a0100000000000000f46eb7a2664580b8655261ad48df75d27404fa23ec47012148dca3c48783bc39010000000000000088fa8bb07ebce99964718c65d0d6f1b091ef2f4d4cdf7b94a22c42c007ecd70601000000000000008a0e2d0af87ffb812f6e6ec229d02056e812cc4f5f5743cc638a7d3f279f0153010000000000000092e5bb9d0906f768dbdde0696b78e493cc78dc1f68789575b24f0b962799b51e01000000000000001ab9d2c814ed7a719ef2aa94dcf4db8aaa0315a59d4b5699e86656a6ee9ac5610100000000000000b63f9ab3a147d76614bfb688751f79fb9a120d40af7ba3bb123c1957b91a411d010000000000000010e37a12fc6ed768d1a2d33c8abc6db675381dfe69c832abb77d9ba2341b3c4a0100000000000000bc62cca37518b73aa22efed6a88147f84af5db7b82ef7671d9bbf03c76d22b4901000000000000000e21a03fbe9885a475c4875f3f912c8703945e99cd2a85f75258fda7b6022b7c0100000000000000206cc2601e4cc1c4d543c1f22eeabb29d72dba4e47630882b2c783e6d3d1935401000000000000002ef372f7d4c71a60f76f65c8ba860ccdf38a85db80963c7f569990ae3865cd470100000000000000068ea8205451f7fdfc6e72059bc58f56cfbd2edcf349f3514de9b00d0c54856801000000000000000e973b21dcbf05732a16fbb925cc44f2f09b236020324c4ff4688614246ca86e0100000000000000ce571a94661c993c3c9309d3ea50f655a55aef1114b548e5309a3f7d506de70b010000000000000042c56bdb09d52942b0fedb07045113a641e2fd64a428b1fa608b5adff9ff4d640100000000000000a0a5985a2d831cc21039cba304cc7da8512cc9098440896fe45ac6dbd8e6b3300100000000000000108c7ed0328d5b09c3f2800da3b8bcc812eda208e3ed636ea1d5a5f312cac56a0100000000000000be8c20cbf28d23f4ee2c82d16d92b7ffd15dbc8e3b64ece63a24ff703f30a07b0100000000000000f29cb4064a1cc3a79da2c9a9f336053cc69d50bcc737257ca2f071c37030510a010000000000000074ee45b1b895aa42f0ea4642cd50e29e43f741f607f25fd5be35ea8cfc9c1c1701000000000000001e23aea69748f8f1d4f9fbe21694942fb42df344e3e314c4a017a4026ac0d31101000000000000003e07b075219fc7ace8dc3bf3a06f5dc12aa9c7e45fe30244d2284bcfb1e6ee1901000000000000003eebdcb51baa53794fa06a4068cec848881ed9b400e1bf1e577d4815c69ba74101000000000000002271d61469f9f1e5a0832af7de453015b89979fd740526080116295f4a4a516d0100000000000000645077cf303943059891df150649d1d828052ea4249bf50ca3b6d29c6ef1984c0100000000000000a0168573a861e2576ab9c5d74d5a5c6e094e6e0261db290363fdb096da94786b010000000000000022376791bf19fefac611324d27bc6acb4b7f7eec713c186adbeda5a1e1b88f340100000000000000aa3463dd8ac73ea72ed500024f5b8bdcca5b20aa9ac557cb7cf980977f120064010000000000000066afec1ea0202d0623f3f92bd2c9e8b78dcbaf4ac7d5fdbe63dd41a79515806a0100000000000000bc8f93a45201992fa9d04355095d03adeb5ff1aea206425eae4f902ffd47fe20010000000000000034caa67978c1a5280b5f58196edcdb5c864b02d0fd40af9c6e6b9716f3fb12680100000000000000ea03f9dc29ae9b7a053c12b6079664592d2cf46a30b43edbb2d2d980223deb110100000000000000b20050395fc81aa60508e362f02c75faebe3e4909c7a23721182ce791bb7011301000000000000007cf1bdd921922cb281bbbeae6fc07218f1d47b73ad3f0f7902e9a7d86d705b080100000000000000526fdfd1d78345a1b2843d392122962cf89a4f157af2a3d0c99607f506175115010000000000000008e80cc5ada5e557a1cea3658402bc83f9892b5c4e112b6e157e6e7d3663c47b0100000000000000a6730d04d45ee4e7e25d3f7b80b4e2ac12a6644a4128127fbe97e97a1d690d69010000000000000068147c36d367eb1a203b303c65ab3d32fe777cabbca8d39e08ffcfd624b3614d0100000000000000b6ad9df8c32a78e9481e75f484fd0b740554276c026736f0dbac0987db08856701000000000000000a6a0f8136fafe5c2e096704e37d12b47a1e46151489a23eb1713b37769fdf780100000000000000281ab8d29fc2bf57650c90e6ab4966f050d4c5c74e94fa659a78bf1dfa71424b0100000000000000d083ff045870d501ac65c3b29384fe542bb53c20308fe740f261caed7ecb04410100000000000000c4687b6d8e527d1ad3be71f2b242bed92eac25b159d9e142e6922ace2dfe5f2101000000000000001437b1c354ee833e93db39ce7b54269c486db9ac4f5e6bce77216a04d7cc376c01000000000000009ea2cb3e6c59685087e59d6d45fdccdd5e6fd4f77fd90b4749f65113e23f086f0100000000000000cc60431feaf7f1bf42d805f0c12a1978ca9b3ec0a21397a71ecfc2bb7d52d20a01000000000000004a7791775365fadbb61f37a0d2f6d298c0c7c3a4c9402821ec909972fd5f8a4c0100000000000000fe3bbb52c1e1b9169ddd63b8f8d14f14d1f291fdac7387deac13e5ea1f8feb6c01000000000000001827754b7465edb9bf4ce981bdd3a33057f9450fc895e39654dbd51c3ab9835a0100000000000000ba099f95644de464c05e2359160bef3e682b8ef3bedc2d5f34fa1a575224645d010000000000000086666d009342994d248819055032a548e2a964da26184293bb9bcb84f5d5d05901000000000000004854cac0c8e7efba2bb24c236cf20212c5a1aeee9e22ea1c97f7b7f61993f81b010000000000000052978f35bc7dc9cd664d2224d164b8de42221e8e6942d66f47a5e9e95cc95d470100000000000000fedb0e6bb7420d16e7112167b894e2da0287b2a170ea43ac038dd416118e156e0100000000000000e0d28dc9623e77eeff6b0aee79793b3a00cf8b1c46fb79c8e6ff8cfeecc4af120100000000000000d0106f6fb9b008052da3223c389525681d9b6e4fdb73a4078f7f1949bfaa350201000000000000001e1f47deab3e4083f7d353b746b719a9f5aaee3ae2cf6b37a4d710f95d489a6101000000000000004a48e0f85fc8b22e74020e1efeed0e275653e8ecdf028c01f13384def95de92a0100000000000000725d8666c3eda2592bf0b16877cfe8e292f61f0456f1d30fd4c29dd05ef0922f010000000000000004601ba22158973d6bed9113f9976c7947daf458f58ae1943ff6f79553e8d4010100000000000000d4a87be02f6839b90794e3880e77ca40a53a7ebdba4a8a5a9c743acf79c7384c0100000000000000caf6489970c76d9f756bb0b914cbd8beca60312b1e210f9d46b6677b03dc86000100000000000000102ed4107066f497e13d3c484a9fa60e506587e19541069dd4555a91d63f27040100000000000000d27da69172c428ddb80272e6fc6ec90985ee281b45f933e5bad65184bc3b5d0201000000000000003afb6b0dac3a05453f125943b8a26269202d297b991e054ca851fa68bb4c08530100000000000000086b88822caebe9d73149400994a2df6cf317debccde56252bd6616cb28ad859010000000000000014a7dcff9114935084580b0b3f39c1260205e63ac607168795f5b0867f28f52601000000000000009e80c458262141e85c50db48c81b519e5eb97d400b66acaa7f47649e5c23b82801000000000000000c3292b5065b7b78a2de5f4fe397fff21df37c0ff7eef94c5fc4397f760e6e46010000000000000012030a66b25d1ddedf761e0875430a266c847b370aa64dc8c106e4b0b997283e01000000000000004616ac86f0d45899eed3f1246dc5744858a694a92b0abd9f10e52dfc9c28674601000000000000009265e7be28a8f56a974027b630bc37703b7ef21b1b1e4253c54d605f4d10da1e010000000000000046b14e55053a02087c957664d32fdcae6ba1c96051239191c63df564d784e1720100000000000000be2a3b6770dcdcda22736d6705a8d075b77544e73311fd0517058867f184ef32010000000000000058efa50da673a8c3b5799e278ae7d32f9eee340947f793f44348ba17e25a885f0100000000000000da5a8d123547810ba496f10294160840c6e067cca57643c9da68265321e80c2c0100000000000000908033d709f4315e38709b4fbcea1e79a9a91b06cd9d31b9d379b7c6232141750100000000000000de97aa69c9dc17083f2323fef768c1066d0c31e61fb1c57452c851f60569cb1e01000000000000009c4d874baeccbb19733cf93f6ffb2f44d9b9f5191ead84f3550c7b767a75061f0100000000000000d0f8b7532498f883c5c76e05a3c414609da9c82c254aa2bac8e8205d2a80682b01000000000000008ea25b46bbf10e124cdd2a34b2134ff31666a0db69fa2fd17794522b3fc6c5390100000000000000924bef00fa94a5c8d29e672c50c68829db4454a85fce54ed3fabd27b454dcf060100000000000000723f8c9d81d0874cd4130cb58587c90ef454174e9d6d9dec11279a553caf00430100000000000000bcc2dbaf82ccaa470212cf2bf8e87f0639bb9fa454c63878a0ad8c06e39a46650100000000000000547c6a159db6eb46da71179d0d15dad5691617fc7f3c6a672864655997035c2d010000000000000040884e6b9876fe866d109aae2a5a6f1a18bfe3655ec9c1fee848ca9273446872010000000000000045155a07a5a9f181b1ae2d8ffbcf54af9e12621b17dedf9b73058bd535484e6f01000000000000000400000000000000028edc0df46d8dd7b4d2976d124920bf94ab2bdd9058f837f3a502586a70d22ddbd24ddc00019d17000000000000733eaa10000000006009000000000000a50466f60202b962c40e58fcf3481f5773dc178b9fe096f81511eaa4c7bad20e612001000000000000009c40155989f6072e82caba245d7db7e40a60f866b403257976b89aba6be2b55b0100000000000000ee3b07c54f0d93945caa98d8deea125865e36dee14644453fb07176d4605bb2c010000000000000072ab87b654d80294c876cbefb534b3344c2f64159b015b89221331ec2145417501000000000000008e43fb54c6d8074ba65ddc6c1b9c54a9c9f0508ec939d5b1746ad2bc42069c600100000000000000e2782e5b1d9962dcb6c006b797af79017be14346a6c2086ff132776ee7e74f53010000000000000020352ba0565811731625a8001d26f5d899e5856dedd0f9c6bc3bec2995704e5b01000000000000004c9886e2e62ee92a6778d6a7928052732044b64fa61969cd8e37f3f7e3406f72010000000000000012f7e35aedc710f8335cc813db106f2a569c6224505416e33c241e625993a86a0100000000000000dceaa05fb95e70e99b9fcfa547a67d067b1ec24b1e795bcd739ff3fdf1c2c9160100000000000000002e496e564f088a075525d2f9155aadd1a7eb017fa36f9e16096e9db7e1693301000000000000006a49a129620f4318c4a99b69c28cbe5f94c7578bbce50bf2627c61590f68df750100000000000000f6dddaaaa53b57763610037753656b591d90fa81efbadcabbeddf7378c23602701000000000000009601c5f103f77e1cb78d4e03f2585320142cbb4fd6c5c37f21edbbb2d343eb560100000000000000466c0e97d043a4b0f4c3ac4849e11f901e9b31b28f8b3e40b7cdb0ba7f77480801000000000000002049288b4dbfb741109778c602f9308daf2e31b3b66e9aa550065e73c6787d7c0100000000000000e67c524e443cda4cd27dfcce70488a5d23a93c8c46a5e83ef5a69eff3a02fa5a0100000000000000ca4fb6a27ee4ba734e8e8caac9ed440170a99efe98af430a14a3eaa4b0d03d600100000000000000400c83c89f541c02338cf113c5a841d810bf3bf17c5c6e78efbd637059005f7001000000000000002e85d3d2c07aaf1c0a5f63f544c34b87cfa90a98c4f6167e86cee0b74a20cb1201000000000000007c5f58a83f8101943c089dba3ab906c07811e853444aa58dbcc986c4095fbe7c01000000000000005494142902284943201b7cf610306e8665eeeec87c014d607175c3f50f76103b01000000000000001822493200c35242a149070784dca5e7012a8a52b61cd218ec7d65e469e8cc560100000000000000dcf6d4dda860d902eb4acb8adff1116c637c12eb9d0633caa8fd0b65a30c8105010000000000000042e377034ce6b2a582bfd66c465252ab10ce790e4f0d3bbe99a42ff86b29965c010000000000000052e281ebf2cb6e1751a844d92574869e5a06e596bc41404de1fe55e99980dc6901000000000000004e2753547f6ec0a896bcbc55b9eeab875e8019acdeb10b979210af63f24c4b740100000000000000822467882ab8bd2cd75152843a948b3e56ae1da6aac9b66ac4cba1448217d8410100000000000000f63e0c859002c868d1e8bf7b36558b7b3f4a033f13850862ad643bc99628f335010000000000000090fd0815e122cc480aaa256b319405ab08f867d414dd59736bc81b7f054c59700100000000000000046c86bcf2260b9e862c5867def0e1a528c32e64ce0cb20d41bba00f30013a690100000000000000d416213c0b30df8f5aadf00642a4777dcea76b12836c51a98abcd133c78899470100000000000000ae831c0a4d22eeff12f679540c229029e321499477451768b8999b1191d6164801000000000000006ec27dfa7ac9d35eb002c55d3e4d56b4df928dd5c44323ac228305741c9e09360100000000000000b89cbc83a386d6f5d4fed93289ee50fdf69d77369ca0c9a8b962554e3fc0d37e0100000000000000e61da4eefdd14434952c58dd1943f7f63185d03321ccc8835e4216badd16fc19010000000000000078f66da37371586d480a8c4dcb2fc772c7c3c185961b5757169cb3b72c12436b0100000000000000a20797f3a8669a909adb22a3aee2844dba82d231cc33f5d9be0e2c533cb82a670100000000000000e297620b731b4958e3c6aa06611c6aa5a45f7e116362d64954a0a330d2a98f33010000000000000088c2166cef8e248c6dc7f801967f6c936b21ecff6f061035d9f95cbaabbcbb0f01000000000000005a7a6d3951924738f27fec8c0baa71a0f518a2d56d8289a1887d3d6805088c220100000000000000049e89e200ca2e92ee67afb644b216f3e99c8b4eaf26c1f0e42038850d0c617901000000000000004077191c8d78ed00c81b74788215db40d498f37252f9966f57e96c9d3f6af31701000000000000000ef6f09a9e310abb5c57dd7050a94d56d766772b80789b997cbb40f3b40f625d0100000000000000b25892ec76bcc88536409e440cb14f9de9589c4efe2b69608fff594885a2fe6501000000000000007cc03ffbfb187c1ea32cf4d25893238aae9073b2016084052a6defac64a7e36c01000000000000003af71b42b712323aa28fd7a2099c4f8b8071e3ed27c8a52ff2cdff5d1a5eb66b0100000000000000a88864a0dc9e292aa7cc8eddaa8dd8b6be2a4bc7e8f290023c6604e5c4ad1a7a0100000000000000dc68569b46a09aebabe8fc4452e293fac635e4a2889739809b32e4e2303e3f71010000000000000034ffee048e511f4187a6f40339650ec60a3d99ac5a1158ae162c5729b59d51740100000000000000be7c58318c49ff328d53a6d67830a8a046a41f5124824d3ce2e72cc9965ef57e0100000000000000a693f218033b3eb885bd2c7793227834d1ff3350c296e49aef3d8d801d5719750100000000000000b06e3ee1ea6420fb73ebd502988420f51b977a83074e1aa5daf0121f4a8b6b1e01000000000000003843abe933fa3ce63f3a5e422e13ec05dc9c0e8f150b93a0fa97f1b193cfba2d01000000000000009cdd57a06bd22d104d539527a19033620becff73dd267f0c2f9f13bc37b0d32c0100000000000000e020b5e946e4c6b0603ceac71b44c330fa7d9cb3e79791ebe1e16bedbb9c71000100000000000000a86c7bdf11794e554439b09f9f294c8e0abaebf447c7bc54419434b8b95f864901000000000000009e9f565a8cb6e8f2154a9833735930a04003505856c3743a0f71afe64c7acf71010000000000000042e4c41a899dfb238649e5b17dc232c2699353635d60e6a3bdcd71f9b82cda300100000000000000a24cc4a40afe5d37968f8d6c7904181a1390d5e718ad04a27ace2ea62f52376001000000000000002261bba26f785cfff606f086f5db420a43a4322fb9d225410a140acbe3d3a405010000000000000050a257ba8dddbf08556f5708bccb587ff4dfbfad15f217d422d7bcf2a7f7f5600100000000000000f23d1b22d1b03c9fb6eb203c85761fe429a60c38d6591d215e873d62f5d2e4010100000000000000283a77cab50b96f99a8e8287c1488ebbcf31fc3daa953ffa99ac16db982f1e12010000000000000094e80daa135f9283d6e8c00c00840ef766863b7d89f354c208b75062f9507c760100000000000000ee579514d7f544fc9fb8d6383ed7d109ee98a411bb4b0b45b9354b0f73fed9720100000000000000b8e999c053a20108e3380d6cb1c2dd2b8e6973c7b2a1f354ca91068c1c1eb83d0100000000000000e8308668e9f16683cc739791a6dd530b819f45e4ade2113ee2f27eed1c51d1200100000000000000b0b313e6391bd3cad2a2c91e4fdaff1404e8a5e2014e4ddbe89f0b7a63e28079010000000000000074b89b94bfe9d61d16ace3eacec820305edfa6a7286ada941e92cfb0bd8374100100000000000000b25eaa07b529a889d38e0346761842f8ca2e970b31038d174c88c7fb667718270100000000000000825e4307d8b2b4387bdadc97f6aa854152dcb5ea892bd1e6790afb1dd83e2e2d0100000000000000a889c98c4c129efe5ecf6e78992d19903205818ca2b760ec25a0b7debb7a2f18010000000000000026d421de2e7251020ac2f8b8c7e348aa904dcaf0b6d5d73fa0113b476f7dd903010000000000000020d5041fd7749a76b9862d74f365692ed6186dd95b0436df82089918920bc3580100000000000000bc56c07cea21bcbbe058aedd2ced9fb4757caead55f96bda9bed1c9669c32b640100000000000000ee1c578a2f792ff3237d645124391b6422b16724b1da5f1b4296f422834bf01c0100000000000000da5c9a8e3df09d9e2a73aa5453b53998b426fd747e887faeb9b2dc99a03cd12201000000000000006ccf2ce8e149999a7bb996faa65194e60aeb7bcd1937c787f886fe979fb49e66010000000000000082b820c5bee8ee77e35203dab387f3434b8502e5f1c35dfb2ad15b5c89d47b3c01000000000000003ef7b532bad1e78d67254bb738d2e5aa357aa04dece89ca3aeadcc8b77efe14b0100000000000000b6ea2250aca814c227ff53de081c337cfdbdef2eb3b0416555589fdc15cf64360100000000000000422318d2ed50f9e42bc2451394ea2faa9b6e0a2454d1471a8ad6ed7b2164b81b0100000000000000b4b145ce385b4a3d83f2daac46a61874f80e58c468dd624acc09a558be02c27d0100000000000000ccebbca14a079b3f6a61898b07592456869c753f951401dd3696788419b5952b0100000000000000d04077347325618eb5cef03729a157b910fac54ec7e344e65b6945fb9fbbeb3b0100000000000000069fc7b8027f7088057362a588ed9af23342e37b70fa163cb47897f7960025580100000000000000fe3b55d17e25c44a3568885d9d37276df81fa5225d9d73ee67321c7826581b5a0100000000000000dee6847832968c1e240c64eb4d2cfd8f5ff3be16d63301638049c8cc7db83059010000000000000040a2527ffa7d30d788eca127d435c8b5aa48972cda538b9a1627a57e85c8fa190100000000000000cebf2df4a8cae34e2f4c645863327db8a10b19119ab7d1cd887a4cb8acc0481101000000000000008ee9a6372d159dd413e241b3201ae4cb2ae8d05fe95fbe1e565d81000dc418750100000000000000261ac3229b4bb7a376c37f17e287b2eb596d3b478370b722b6b41443d870813201000000000000001a36d936f4692ac8387ac0ca1f051970ae480271e39fc134436b86b8ec83b25d01000000000000007886559a7121bd7f28b06ce499e0bc3de3d0adf1abc47c6e0461383c7098237f0100000000000000e03dd3bbb140ffa44e0cc0e1846967b03aecccac78f6e2e0a1fd3ac0d34f554a0100000000000000a8818217d40fd73cfb5c28b2402a2c6049fd17f99226f3331b6bf328688e3c4401000000000000007affcc9e0c86c66957afb75d760842bfd374949da725718c0bd3edbf6a1bd7310100000000000000eabcf59549db01c112376fd042e3ecf95b1b3b5ae8e0e744965cad5880bf9e0e010000000000000068d6533bda9e474fabac2aff0e1e6aa7ac48509802f7cd29b5a4badaba2bf37f0100000000000000fa76b5548c290e38efd3aeb5bb478de80b0e4d10b09b758e0b0f0971993e6b1c010000000000000004ba7eb24012b133b20a8021b603a1483c4a5b9ad3415a4d7ca2b1ad625719550100000000000000202e3405e49bb882f1d49efc4a4adc5b62dcc96ec18346a48aad5a510c189b500100000000000000dc02c19ac49087a2a0c5188af826e5ed6450f5041f00ee8e77bc01b12945ac0d01000000000000001ca57b22ae230979adc98a3aa05d47f1196c27eda66bb6125a868583fba6e5420100000000000000ea6acde5149e930af7bc3b17b7f0bdcf12dfd3dc3437f774f823bbeef420a97201000000000000002ea86a65c1e3749548d3c56eb537d21e1756895e35ca99a9019b8606c47bd214010000000000000014e2f25dd3376eb7978d413c14322704a2ff3d9c0c2971acdcdf9720c2c13d6b010000000000000014cf97e739cfd033c2828f25ad3f15e8f6ef62ba97dd74164e77e61eb85454260100000000000000eef6e320387caad3fa7bf295c60b85adf0a6f5a19144a4433e1841b4a72e07410100000000000000a07f151db53097c2da9dac4b2e0f194931a677a3ba99df0f3976e34409fd64760100000000000000809a2c451363ab14bb2272aa972a2b1a1de3386fe2bd47113ba4819d67b6fd6501000000000000004cc9ff5edb36e361b088b0eff52fc6e6559c1169ff87ccdb62503bceab7c7445010000000000000040dab7f2e50b7ccee4e3a6223ac09882654079b695b110ad6401558959c2360d010000000000000004065673fbef2c9dbd1b79088e0e3cd6e39784ebb792ede843d9e7988da85c4c0100000000000000fcd5f4c4fe11f20ad99dc8345b7dc5600caba5d5b7d3f499c3253c095152d45401000000000000009254313d03095e6b374e43addebc950956bcb34f2d11a9c557514c9991b3aa0d01000000000000001e825121b8beecb30e9962a555ce06b9e2c65fcf3b0023178556330d565bcb4c0100000000000000e06ae0c49573816e158f02c5263a7b167c2ff7bc5528b13c1cc5a2ad0a34da16010000000000000038b723ee73f8083592437eb9f2e436ad7b694dbaa7599d154a9e3e01b14b69040100000000000000042ca33fbebb9f50bd3ee55c6eef27124379729ce2670914d1a762ebd5ced55c0100000000000000aa819492e4d782526781e8f9001f93d2b9a23142886757ac932702930b9a991e01000000000000008c14a0d64bbb88f3546c49bafb1f6bbe3d59cb277af2fc97f19aee0b80bdad0e01000000000000006834aee6fa1c48e229ad7431b77181ff03dedfa486aac6eb7880ec9950c445540100000000000000b48cf50a4f94e83450a791d6de965c3e8127c1c915208f2b85df4c3a84b2042f0100000000000000c60a9f5f89ea3a56499bcd39bac7e038c25f5b7720d873fdc12b68d2531eb650010000000000000040b77fd8fcabe868dc7f2a08bf14c67e4d433886c3cd3738d1b0b9c649bafc2301000000000000008c43dc50f9ed5bc7be6b4a648957ee5b01a2cbbf967077a6044d4b92f2c715070100000000000000fa81c1b7635c3f695915443a2dfc030e980cae09e592f555edb67436aa11215001000000000000001296762372530d2ccabddcbd204fa90217ce28c9365c5cf4a4eb9f46545b786a0100000000000000fe621d474a018c4e2265c864e994a129614dfb473339453f45a5510587d0174b0100000000000000f2b63387ce5b649f9388fd1be38ee4357b48dc0146e78b91f8f6469a78dc9f580100000000000000b2ba57f89fba50ab178f10f10f2ff79f6061cfec808679868eb7ddd8b08031340100000000000000e694e453023e9989a59e414a8783f9269e933574332c77067fa7ec2b9b6876100100000000000000dc702f22412e64b699d65c66ea2d0857e7b94c0448346f86068e658fc00c5a2c0100000000000000ccb4e6006ac696d5050bc790beff6eaf61a5dbee1a070f66c824b962fe177b6901000000000000009acfd215519f40156749868afc8d56e015759f71cf183fe68382e8c02c75b251010000000000000038f3f4c693034fb614c804ef2854850286df0b1411e5a0c83513ef4c4fa487050100000000000000de5f9f5ad3209502cf429630c2038b8818b6f8ce5685c2730077349802c579250100000000000000649d1a54b0a158350238c017a71aae21e3bb73497187a010d97e1e1b21e43b6401000000000000001cbfaf2b91ee79c6288ad01dd5787070b34d5e1b8253a1765904eaa7d0b93f02010000000000000036a547b4aca95274437f3876bec0447f775eacd01b09d95869390d326a596d450100000000000000a811667da1a12b408e2eddd3fe118403e1f8926b703104fe34193b4fca229d5701000000000000008e83fc9e157adcb687b4b994326f6de340d80075bdbb590eeaa3f29f457ef3560100000000000000b2afe6968bf90de3f8cea025a2b2b0b560b1899fd23343e52c778ab45e1f685f010000000000000026f2af62a2f0d847e3d2cccc93ec7f98c80a7b6d1bcca4cf1c4a6fc7f81775010100000000000000aafb720e50ac6fe69aa177dff62a733a0e98cc0fe7c35e591127479e7e94d5430100000000000000a8f7368dec8f4f30db015c4362e03cd588c6e60f2f4f69912ee4aafb35df38620100000000000000e6767e8c251c74826054421ff499297c13ab6a4e84ce10e0dfae4e21b64aca7301000000000000000481a58bfdafecabbc96bd170a0ec04cc35100f1f928cca3ecc63b3639e47679010000000000000056935ed80a27ac471336a7c5a8b0e73432ddabdf5fe8992390cbae33a020883601000000000000008ec5856a5fd17617c0af76efea16a87d0c5e769eaad39e91c40dac93fb067d5d0100000000000000b0d7d82ba2eca517d6d899525672a1d236f907565785e41ba80296aad19dc57f0100000000000000e4be18b8f5905bc41fe3cba2e5350d405e76036328042ae7edfbb6b6a9b43d5a010000000000000038a69f047c05d50988318a333c2a6bdde4b778592d66328bcf44f1472c1dab500100000000000000b28eace0661acec97215230b9aae3c2be19ef43e9eb90554ab44b51c6180362001000000000000004ed5f55ec45727a57e2d8d6914f6d2acffb17b9515d347ba045067502a0b1402010000000000000036b1aeb61d78c234c0448c0622c570c33ad8fa7b5d7d12102ab323b7985d31690100000000000000a6cfacf0aff2d5c6e8eadf71f397a64f2863e5f0b8793e3068aebd5b3030e13101000000000000007eb2b0b6adbe5a5bad38f46db207f94c896d419661f4ab8f21e302a543df9b1101000000000000004014ed541e698a7a87888c6b5f0c54d74de28c8cd3bd8f1b1f8fd7fdb757cf330100000000000000b032afc9e8d2abc223f23c1d1e1776b3c66a23f5917a7669d69c2eda81b08c3e010000000000000048ce0aba6f1554e139568b4d2358d6cca9bc291d3600787cc3e732291002ca22010000000000000092239fbae2557ff2ea3952c962e478e6ac2a5b3e3cfffb0eb40e8d41860ab0470100000000000000e82715ac0ec2e1f41af952f272f20ef2d2ef826c441c6f33a95522270e57db4b0100000000000000469d81e8b43725a64da6b1ce10eb53eebe1aaebb9703f75ed452e12f45d262730100000000000000285987285ceda1670b1a2fc5c5cf8578a368d63aabfdbbee83ea05db6ae376470100000000000000c4f22a0641190f1bceebea3f8280f22469d6ac0d9b27bcab27d778ac517d2479010000000000000026106dc6fa26823ed60e52e0b1a164dd897be2f617bbf24ddebd9ab34bf6de7701000000000000001c71bcb434190e911175317142b8589619ea3087fb2048a9117607b7b11d11300100000000000000a8527842f1040269688813eb1cf64f525cac5f9219feac35b2d46bcd2df52d100100000000000000a670be090a366ff66d8f7d1eabb7514252222507111e53430bd437a8dbe53a52010000000000000018261ac5151f160bc419a8e44d85fbd4cd8669decacb23c8d7f36f316cbb445e0100000000000000fc53d15453457faadc5540c5853f54324eec395d3647fbf99d5e6e97ef3876760100000000000000544d12f359dbe87200565a9697af85b936a1b5f9d0a363f2ee540ec544aa761e0100000000000000fca464b97dee2e318ad8d4516fd606a5401f5d15467110112a3326ef96ce00760100000000000000864cbd281011a154d93d0320865ad67ae442bf0985f0ec220e2c7db4b095993101000000000000004c696de688ef5d4d5899d1e596a81fde52db76757669bd0051a155fb2335ed0e0100000000000000382fb32d7c8868ce3765e9ccfb462c04071a3d70cab3382c796a9115ab0c310301000000000000008a6dbf87f769167b4eb982f63b946f96a1f223b6a6f2789183fec09581b8e9060100000000000000b027ae418b6c79d9f3a2b05df499d3aaecfb327e6b9d7995a022dc5265ed76180100000000000000eed7e8e8a64dfa89c548a31c1b9fec7af5aef4dbbdb26997b2ddca72d4f8790c0100000000000000a811cc491bb3487d5e604dcf6dca3bf529437162f3b8cfb8514ffab16809ff600100000000000000fe2848018ac215f72f551e58dd2d065d99b788b5a7aa59b9f9fe47a5bdbc046d0100000000000000b6ed5b0c17ca7560c71f1778694741009d3da979309617f0bb992084019e25290100000000000000f853a1534a3af56217661420536dd7bea0db6f6db843d8fead77c308ed7dcc7c010000000000000004b0ff0440c7e131b891a3c13c6f7f0233dbe80fe90dc097f8c5566f2bb49a5f01000000000000005af4895ad43e058a09b4982b8c78021f1ae6cdec9f6633089f32e948ef0d2a11010000000000000028702457fd7ea52bb88284bfcd721493ceae3ea984492a1b82c55efa1b62fa39010000000000000036550a8edfcf14f96e29a7901f5610b57722dbd68b48608572e98468c5bc1f6901000000000000008a51ec3cd1c7e1e5cdc0e3697dd028337ba54e18169cbb241140dbdcc928695c0100000000000000c80832d979a4ba72f7179c346fe660490c292689da81d790baa30a76b598ad5601000000000000006ef86d4533f47ffd133c63b9575c17234309ab6e16f487ae7cd8914169183c66010000000000000056606b6532cdbf27358fd067d61c2a65e4b3e8934c266a857320ff18e5c7654c01000000000000006e8ab85645445eed3828ed583d9a0af03a682fea56d16f833970a3289088e2510100000000000000d096cea7ac5f1bbcaad09ed4723a23fa3b582cc352182a49f8e4511acfa6f87a0100000000000000481ef876bba4865bb88d141606632b3a482c4e5c58c9c30786f6a279eea8a7780100000000000000f403ea18b9e4e9075319b30bf6b6201dd90d012fe4ba28a1c759d0822b9e550901000000000000000690823277fbe96c145c1686519038d301d63bad07d343810506e2cad4b1145701000000000000006c06a116c1a75e2e3b46a7924fe23ca8d58d2a32acac4ca8d0a1e23e3b4c4720010000000000000094d89cb8df2b03c76d41a6521e5803d6f98e204e1839b9ea747dc7e253d35b7f01000000000000009ce314a687a2e8754e1351cda727fdc20e473c08c8bcf5cb70c9a048b571540301000000000000002801cda4aec5f013c3eb504100b1e29e0e65423219d7c6b1b48b0a424a42307c0100000000000000ccb5a9652f3be5d85fcab3d0b8c2eae27519ae2f7befa40c34b89751bbcce40001000000000000005258f48e31bc89f5d53ea6a12eea9698f8e72c6068ac1588100d8632bc674d1e010000000000000094de02a2418c67e938e449c2297944e13cf638e67110299f14cafd5bf2fc60140100000000000000540926fefa2d0424fd451bfca39a01c0e1a3fc811406e127d1dbfdc6cf9e9770010000000000000038c9a0897d9caff03a308d2120bbe892974ae8cb05f1cfe8b97259f0ac2e85290100000000000000a0b7bf06b6c030493f2107c1f2c4154b98b677fcfd461e5817b909f31223a5630100000000000000eab9946bb96a047e9c2fb0e6db8236e46192bcced0c8ea7319142a73cfaf000401000000000000009a53749c83cc06460148d884f1ea5b71897466b237cf16baa45395d78ce48c1a0100000000000000f46eb7a2664580b8655261ad48df75d27404fa23ec47012148dca3c48783bc39010000000000000088fa8bb07ebce99964718c65d0d6f1b091ef2f4d4cdf7b94a22c42c007ecd70601000000000000008a0e2d0af87ffb812f6e6ec229d02056e812cc4f5f5743cc638a7d3f279f0153010000000000000092e5bb9d0906f768dbdde0696b78e493cc78dc1f68789575b24f0b962799b51e01000000000000001ab9d2c814ed7a719ef2aa94dcf4db8aaa0315a59d4b5699e86656a6ee9ac5610100000000000000b63f9ab3a147d76614bfb688751f79fb9a120d40af7ba3bb123c1957b91a411d010000000000000010e37a12fc6ed768d1a2d33c8abc6db675381dfe69c832abb77d9ba2341b3c4a0100000000000000bc62cca37518b73aa22efed6a88147f84af5db7b82ef7671d9bbf03c76d22b4901000000000000000e21a03fbe9885a475c4875f3f912c8703945e99cd2a85f75258fda7b6022b7c0100000000000000206cc2601e4cc1c4d543c1f22eeabb29d72dba4e47630882b2c783e6d3d1935401000000000000002ef372f7d4c71a60f76f65c8ba860ccdf38a85db80963c7f569990ae3865cd470100000000000000068ea8205451f7fdfc6e72059bc58f56cfbd2edcf349f3514de9b00d0c54856801000000000000000e973b21dcbf05732a16fbb925cc44f2f09b236020324c4ff4688614246ca86e0100000000000000ce571a94661c993c3c9309d3ea50f655a55aef1114b548e5309a3f7d506de70b010000000000000042c56bdb09d52942b0fedb07045113a641e2fd64a428b1fa608b5adff9ff4d640100000000000000a0a5985a2d831cc21039cba304cc7da8512cc9098440896fe45ac6dbd8e6b3300100000000000000108c7ed0328d5b09c3f2800da3b8bcc812eda208e3ed636ea1d5a5f312cac56a0100000000000000be8c20cbf28d23f4ee2c82d16d92b7ffd15dbc8e3b64ece63a24ff703f30a07b0100000000000000f29cb4064a1cc3a79da2c9a9f336053cc69d50bcc737257ca2f071c37030510a010000000000000074ee45b1b895aa42f0ea4642cd50e29e43f741f607f25fd5be35ea8cfc9c1c1701000000000000001e23aea69748f8f1d4f9fbe21694942fb42df344e3e314c4a017a4026ac0d31101000000000000003e07b075219fc7ace8dc3bf3a06f5dc12aa9c7e45fe30244d2284bcfb1e6ee1901000000000000003eebdcb51baa53794fa06a4068cec848881ed9b400e1bf1e577d4815c69ba74101000000000000002271d61469f9f1e5a0832af7de453015b89979fd740526080116295f4a4a516d0100000000000000645077cf303943059891df150649d1d828052ea4249bf50ca3b6d29c6ef1984c0100000000000000a0168573a861e2576ab9c5d74d5a5c6e094e6e0261db290363fdb096da94786b010000000000000022376791bf19fefac611324d27bc6acb4b7f7eec713c186adbeda5a1e1b88f340100000000000000aa3463dd8ac73ea72ed500024f5b8bdcca5b20aa9ac557cb7cf980977f120064010000000000000066afec1ea0202d0623f3f92bd2c9e8b78dcbaf4ac7d5fdbe63dd41a79515806a0100000000000000bc8f93a45201992fa9d04355095d03adeb5ff1aea206425eae4f902ffd47fe20010000000000000034caa67978c1a5280b5f58196edcdb5c864b02d0fd40af9c6e6b9716f3fb12680100000000000000ea03f9dc29ae9b7a053c12b6079664592d2cf46a30b43edbb2d2d980223deb110100000000000000b20050395fc81aa60508e362f02c75faebe3e4909c7a23721182ce791bb7011301000000000000007cf1bdd921922cb281bbbeae6fc07218f1d47b73ad3f0f7902e9a7d86d705b080100000000000000526fdfd1d78345a1b2843d392122962cf89a4f157af2a3d0c99607f506175115010000000000000008e80cc5ada5e557a1cea3658402bc83f9892b5c4e112b6e157e6e7d3663c47b0100000000000000a6730d04d45ee4e7e25d3f7b80b4e2ac12a6644a4128127fbe97e97a1d690d69010000000000000068147c36d367eb1a203b303c65ab3d32fe777cabbca8d39e08ffcfd624b3614d0100000000000000b6ad9df8c32a78e9481e75f484fd0b740554276c026736f0dbac0987db08856701000000000000000a6a0f8136fafe5c2e096704e37d12b47a1e46151489a23eb1713b37769fdf780100000000000000281ab8d29fc2bf57650c90e6ab4966f050d4c5c74e94fa659a78bf1dfa71424b0100000000000000d083ff045870d501ac65c3b29384fe542bb53c20308fe740f261caed7ecb04410100000000000000c4687b6d8e527d1ad3be71f2b242bed92eac25b159d9e142e6922ace2dfe5f2101000000000000001437b1c354ee833e93db39ce7b54269c486db9ac4f5e6bce77216a04d7cc376c01000000000000009ea2cb3e6c59685087e59d6d45fdccdd5e6fd4f77fd90b4749f65113e23f086f0100000000000000cc60431feaf7f1bf42d805f0c12a1978ca9b3ec0a21397a71ecfc2bb7d52d20a01000000000000004a7791775365fadbb61f37a0d2f6d298c0c7c3a4c9402821ec909972fd5f8a4c0100000000000000fe3bbb52c1e1b9169ddd63b8f8d14f14d1f291fdac7387deac13e5ea1f8feb6c01000000000000001827754b7465edb9bf4ce981bdd3a33057f9450fc895e39654dbd51c3ab9835a0100000000000000ba099f95644de464c05e2359160bef3e682b8ef3bedc2d5f34fa1a575224645d010000000000000086666d009342994d248819055032a548e2a964da26184293bb9bcb84f5d5d05901000000000000004854cac0c8e7efba2bb24c236cf20212c5a1aeee9e22ea1c97f7b7f61993f81b010000000000000052978f35bc7dc9cd664d2224d164b8de42221e8e6942d66f47a5e9e95cc95d470100000000000000fedb0e6bb7420d16e7112167b894e2da0287b2a170ea43ac038dd416118e156e0100000000000000e0d28dc9623e77eeff6b0aee79793b3a00cf8b1c46fb79c8e6ff8cfeecc4af120100000000000000d0106f6fb9b008052da3223c389525681d9b6e4fdb73a4078f7f1949bfaa350201000000000000001e1f47deab3e4083f7d353b746b719a9f5aaee3ae2cf6b37a4d710f95d489a6101000000000000004a48e0f85fc8b22e74020e1efeed0e275653e8ecdf028c01f13384def95de92a0100000000000000725d8666c3eda2592bf0b16877cfe8e292f61f0456f1d30fd4c29dd05ef0922f010000000000000004601ba22158973d6bed9113f9976c7947daf458f58ae1943ff6f79553e8d4010100000000000000d4a87be02f6839b90794e3880e77ca40a53a7ebdba4a8a5a9c743acf79c7384c0100000000000000caf6489970c76d9f756bb0b914cbd8beca60312b1e210f9d46b6677b03dc86000100000000000000102ed4107066f497e13d3c484a9fa60e506587e19541069dd4555a91d63f27040100000000000000d27da69172c428ddb80272e6fc6ec90985ee281b45f933e5bad65184bc3b5d0201000000000000003afb6b0dac3a05453f125943b8a26269202d297b991e054ca851fa68bb4c08530100000000000000086b88822caebe9d73149400994a2df6cf317debccde56252bd6616cb28ad859010000000000000014a7dcff9114935084580b0b3f39c1260205e63ac607168795f5b0867f28f52601000000000000009e80c458262141e85c50db48c81b519e5eb97d400b66acaa7f47649e5c23b82801000000000000000c3292b5065b7b78a2de5f4fe397fff21df37c0ff7eef94c5fc4397f760e6e46010000000000000012030a66b25d1ddedf761e0875430a266c847b370aa64dc8c106e4b0b997283e01000000000000004616ac86f0d45899eed3f1246dc5744858a694a92b0abd9f10e52dfc9c28674601000000000000009265e7be28a8f56a974027b630bc37703b7ef21b1b1e4253c54d605f4d10da1e010000000000000046b14e55053a02087c957664d32fdcae6ba1c96051239191c63df564d784e1720100000000000000be2a3b6770dcdcda22736d6705a8d075b77544e73311fd0517058867f184ef32010000000000000058efa50da673a8c3b5799e278ae7d32f9eee340947f793f44348ba17e25a885f0100000000000000da5a8d123547810ba496f10294160840c6e067cca57643c9da68265321e80c2c0100000000000000908033d709f4315e38709b4fbcea1e79a9a91b06cd9d31b9d379b7c6232141750100000000000000de97aa69c9dc17083f2323fef768c1066d0c31e61fb1c57452c851f60569cb1e01000000000000009c4d874baeccbb19733cf93f6ffb2f44d9b9f5191ead84f3550c7b767a75061f0100000000000000d0f8b7532498f883c5c76e05a3c414609da9c82c254aa2bac8e8205d2a80682b01000000000000008ea25b46bbf10e124cdd2a34b2134ff31666a0db69fa2fd17794522b3fc6c5390100000000000000924bef00fa94a5c8d29e672c50c68829db4454a85fce54ed3fabd27b454dcf060100000000000000723f8c9d81d0874cd4130cb58587c90ef454174e9d6d9dec11279a553caf00430100000000000000bcc2dbaf82ccaa470212cf2bf8e87f0639bb9fa454c63878a0ad8c06e39a46650100000000000000547c6a159db6eb46da71179d0d15dad5691617fc7f3c6a672864655997035c2d010000000000000040884e6b9876fe866d109aae2a5a6f1a18bfe3655ec9c1fee848ca927344687201000000000000005fa8097d55fa093fc48a7478a0f8681a08c5516068765f866f4fbabb89a9906601000000000000000400000000000000029a41a36f474af1af3046324e211e0edba2f8cc50390dff82976981bbd67245db2957dc00019e17000000000000d347aa10000000006009000000000000a50466f60202b962c40e58fcf3481f5773dc178b9fe096f81511eaa4c7bad20e612001000000000000009c40155989f6072e82caba245d7db7e40a60f866b403257976b89aba6be2b55b0100000000000000ee3b07c54f0d93945caa98d8deea125865e36dee14644453fb07176d4605bb2c010000000000000072ab87b654d80294c876cbefb534b3344c2f64159b015b89221331ec2145417501000000000000008e43fb54c6d8074ba65ddc6c1b9c54a9c9f0508ec939d5b1746ad2bc42069c600100000000000000e2782e5b1d9962dcb6c006b797af79017be14346a6c2086ff132776ee7e74f53010000000000000020352ba0565811731625a8001d26f5d899e5856dedd0f9c6bc3bec2995704e5b01000000000000004c9886e2e62ee92a6778d6a7928052732044b64fa61969cd8e37f3f7e3406f72010000000000000012f7e35aedc710f8335cc813db106f2a569c6224505416e33c241e625993a86a0100000000000000dceaa05fb95e70e99b9fcfa547a67d067b1ec24b1e795bcd739ff3fdf1c2c9160100000000000000002e496e564f088a075525d2f9155aadd1a7eb017fa36f9e16096e9db7e1693301000000000000006a49a129620f4318c4a99b69c28cbe5f94c7578bbce50bf2627c61590f68df750100000000000000f6dddaaaa53b57763610037753656b591d90fa81efbadcabbeddf7378c23602701000000000000009601c5f103f77e1cb78d4e03f2585320142cbb4fd6c5c37f21edbbb2d343eb560100000000000000466c0e97d043a4b0f4c3ac4849e11f901e9b31b28f8b3e40b7cdb0ba7f77480801000000000000002049288b4dbfb741109778c602f9308daf2e31b3b66e9aa550065e73c6787d7c0100000000000000e67c524e443cda4cd27dfcce70488a5d23a93c8c46a5e83ef5a69eff3a02fa5a0100000000000000ca4fb6a27ee4ba734e8e8caac9ed440170a99efe98af430a14a3eaa4b0d03d600100000000000000400c83c89f541c02338cf113c5a841d810bf3bf17c5c6e78efbd637059005f7001000000000000002e85d3d2c07aaf1c0a5f63f544c34b87cfa90a98c4f6167e86cee0b74a20cb1201000000000000007c5f58a83f8101943c089dba3ab906c07811e853444aa58dbcc986c4095fbe7c01000000000000005494142902284943201b7cf610306e8665eeeec87c014d607175c3f50f76103b01000000000000001822493200c35242a149070784dca5e7012a8a52b61cd218ec7d65e469e8cc560100000000000000dcf6d4dda860d902eb4acb8adff1116c637c12eb9d0633caa8fd0b65a30c8105010000000000000042e377034ce6b2a582bfd66c465252ab10ce790e4f0d3bbe99a42ff86b29965c010000000000000052e281ebf2cb6e1751a844d92574869e5a06e596bc41404de1fe55e99980dc6901000000000000004e2753547f6ec0a896bcbc55b9eeab875e8019acdeb10b979210af63f24c4b740100000000000000822467882ab8bd2cd75152843a948b3e56ae1da6aac9b66ac4cba1448217d8410100000000000000f63e0c859002c868d1e8bf7b36558b7b3f4a033f13850862ad643bc99628f335010000000000000090fd0815e122cc480aaa256b319405ab08f867d414dd59736bc81b7f054c59700100000000000000046c86bcf2260b9e862c5867def0e1a528c32e64ce0cb20d41bba00f30013a690100000000000000d416213c0b30df8f5aadf00642a4777dcea76b12836c51a98abcd133c78899470100000000000000ae831c0a4d22eeff12f679540c229029e321499477451768b8999b1191d6164801000000000000006ec27dfa7ac9d35eb002c55d3e4d56b4df928dd5c44323ac228305741c9e09360100000000000000b89cbc83a386d6f5d4fed93289ee50fdf69d77369ca0c9a8b962554e3fc0d37e0100000000000000e61da4eefdd14434952c58dd1943f7f63185d03321ccc8835e4216badd16fc19010000000000000078f66da37371586d480a8c4dcb2fc772c7c3c185961b5757169cb3b72c12436b0100000000000000a20797f3a8669a909adb22a3aee2844dba82d231cc33f5d9be0e2c533cb82a670100000000000000e297620b731b4958e3c6aa06611c6aa5a45f7e116362d64954a0a330d2a98f33010000000000000088c2166cef8e248c6dc7f801967f6c936b21ecff6f061035d9f95cbaabbcbb0f01000000000000005a7a6d3951924738f27fec8c0baa71a0f518a2d56d8289a1887d3d6805088c220100000000000000049e89e200ca2e92ee67afb644b216f3e99c8b4eaf26c1f0e42038850d0c617901000000000000004077191c8d78ed00c81b74788215db40d498f37252f9966f57e96c9d3f6af31701000000000000000ef6f09a9e310abb5c57dd7050a94d56d766772b80789b997cbb40f3b40f625d0100000000000000b25892ec76bcc88536409e440cb14f9de9589c4efe2b69608fff594885a2fe6501000000000000007cc03ffbfb187c1ea32cf4d25893238aae9073b2016084052a6defac64a7e36c01000000000000003af71b42b712323aa28fd7a2099c4f8b8071e3ed27c8a52ff2cdff5d1a5eb66b0100000000000000a88864a0dc9e292aa7cc8eddaa8dd8b6be2a4bc7e8f290023c6604e5c4ad1a7a0100000000000000dc68569b46a09aebabe8fc4452e293fac635e4a2889739809b32e4e2303e3f71010000000000000034ffee048e511f4187a6f40339650ec60a3d99ac5a1158ae162c5729b59d51740100000000000000be7c58318c49ff328d53a6d67830a8a046a41f5124824d3ce2e72cc9965ef57e0100000000000000a693f218033b3eb885bd2c7793227834d1ff3350c296e49aef3d8d801d5719750100000000000000b06e3ee1ea6420fb73ebd502988420f51b977a83074e1aa5daf0121f4a8b6b1e01000000000000003843abe933fa3ce63f3a5e422e13ec05dc9c0e8f150b93a0fa97f1b193cfba2d01000000000000009cdd57a06bd22d104d539527a19033620becff73dd267f0c2f9f13bc37b0d32c0100000000000000e020b5e946e4c6b0603ceac71b44c330fa7d9cb3e79791ebe1e16bedbb9c71000100000000000000a86c7bdf11794e554439b09f9f294c8e0abaebf447c7bc54419434b8b95f864901000000000000009e9f565a8cb6e8f2154a9833735930a04003505856c3743a0f71afe64c7acf71010000000000000042e4c41a899dfb238649e5b17dc232c2699353635d60e6a3bdcd71f9b82cda300100000000000000a24cc4a40afe5d37968f8d6c7904181a1390d5e718ad04a27ace2ea62f52376001000000000000002261bba26f785cfff606f086f5db420a43a4322fb9d225410a140acbe3d3a405010000000000000050a257ba8dddbf08556f5708bccb587ff4dfbfad15f217d422d7bcf2a7f7f5600100000000000000f23d1b22d1b03c9fb6eb203c85761fe429a60c38d6591d215e873d62f5d2e4010100000000000000283a77cab50b96f99a8e8287c1488ebbcf31fc3daa953ffa99ac16db982f1e12010000000000000094e80daa135f9283d6e8c00c00840ef766863b7d89f354c208b75062f9507c760100000000000000ee579514d7f544fc9fb8d6383ed7d109ee98a411bb4b0b45b9354b0f73fed9720100000000000000b8e999c053a20108e3380d6cb1c2dd2b8e6973c7b2a1f354ca91068c1c1eb83d0100000000000000e8308668e9f16683cc739791a6dd530b819f45e4ade2113ee2f27eed1c51d1200100000000000000b0b313e6391bd3cad2a2c91e4fdaff1404e8a5e2014e4ddbe89f0b7a63e28079010000000000000074b89b94bfe9d61d16ace3eacec820305edfa6a7286ada941e92cfb0bd8374100100000000000000b25eaa07b529a889d38e0346761842f8ca2e970b31038d174c88c7fb667718270100000000000000825e4307d8b2b4387bdadc97f6aa854152dcb5ea892bd1e6790afb1dd83e2e2d0100000000000000a889c98c4c129efe5ecf6e78992d19903205818ca2b760ec25a0b7debb7a2f18010000000000000026d421de2e7251020ac2f8b8c7e348aa904dcaf0b6d5d73fa0113b476f7dd903010000000000000020d5041fd7749a76b9862d74f365692ed6186dd95b0436df82089918920bc3580100000000000000bc56c07cea21bcbbe058aedd2ced9fb4757caead55f96bda9bed1c9669c32b640100000000000000ee1c578a2f792ff3237d645124391b6422b16724b1da5f1b4296f422834bf01c0100000000000000da5c9a8e3df09d9e2a73aa5453b53998b426fd747e887faeb9b2dc99a03cd12201000000000000006ccf2ce8e149999a7bb996faa65194e60aeb7bcd1937c787f886fe979fb49e66010000000000000082b820c5bee8ee77e35203dab387f3434b8502e5f1c35dfb2ad15b5c89d47b3c01000000000000003ef7b532bad1e78d67254bb738d2e5aa357aa04dece89ca3aeadcc8b77efe14b0100000000000000b6ea2250aca814c227ff53de081c337cfdbdef2eb3b0416555589fdc15cf64360100000000000000422318d2ed50f9e42bc2451394ea2faa9b6e0a2454d1471a8ad6ed7b2164b81b0100000000000000b4b145ce385b4a3d83f2daac46a61874f80e58c468dd624acc09a558be02c27d0100000000000000ccebbca14a079b3f6a61898b07592456869c753f951401dd3696788419b5952b0100000000000000d04077347325618eb5cef03729a157b910fac54ec7e344e65b6945fb9fbbeb3b0100000000000000069fc7b8027f7088057362a588ed9af23342e37b70fa163cb47897f7960025580100000000000000fe3b55d17e25c44a3568885d9d37276df81fa5225d9d73ee67321c7826581b5a0100000000000000dee6847832968c1e240c64eb4d2cfd8f5ff3be16d63301638049c8cc7db83059010000000000000040a2527ffa7d30d788eca127d435c8b5aa48972cda538b9a1627a57e85c8fa190100000000000000cebf2df4a8cae34e2f4c645863327db8a10b19119ab7d1cd887a4cb8acc0481101000000000000008ee9a6372d159dd413e241b3201ae4cb2ae8d05fe95fbe1e565d81000dc418750100000000000000261ac3229b4bb7a376c37f17e287b2eb596d3b478370b722b6b41443d870813201000000000000001a36d936f4692ac8387ac0ca1f051970ae480271e39fc134436b86b8ec83b25d01000000000000007886559a7121bd7f28b06ce499e0bc3de3d0adf1abc47c6e0461383c7098237f0100000000000000e03dd3bbb140ffa44e0cc0e1846967b03aecccac78f6e2e0a1fd3ac0d34f554a0100000000000000a8818217d40fd73cfb5c28b2402a2c6049fd17f99226f3331b6bf328688e3c4401000000000000007affcc9e0c86c66957afb75d760842bfd374949da725718c0bd3edbf6a1bd7310100000000000000eabcf59549db01c112376fd042e3ecf95b1b3b5ae8e0e744965cad5880bf9e0e010000000000000068d6533bda9e474fabac2aff0e1e6aa7ac48509802f7cd29b5a4badaba2bf37f0100000000000000fa76b5548c290e38efd3aeb5bb478de80b0e4d10b09b758e0b0f0971993e6b1c010000000000000004ba7eb24012b133b20a8021b603a1483c4a5b9ad3415a4d7ca2b1ad625719550100000000000000202e3405e49bb882f1d49efc4a4adc5b62dcc96ec18346a48aad5a510c189b500100000000000000dc02c19ac49087a2a0c5188af826e5ed6450f5041f00ee8e77bc01b12945ac0d01000000000000001ca57b22ae230979adc98a3aa05d47f1196c27eda66bb6125a868583fba6e5420100000000000000ea6acde5149e930af7bc3b17b7f0bdcf12dfd3dc3437f774f823bbeef420a97201000000000000002ea86a65c1e3749548d3c56eb537d21e1756895e35ca99a9019b8606c47bd214010000000000000014e2f25dd3376eb7978d413c14322704a2ff3d9c0c2971acdcdf9720c2c13d6b010000000000000014cf97e739cfd033c2828f25ad3f15e8f6ef62ba97dd74164e77e61eb85454260100000000000000eef6e320387caad3fa7bf295c60b85adf0a6f5a19144a4433e1841b4a72e07410100000000000000a07f151db53097c2da9dac4b2e0f194931a677a3ba99df0f3976e34409fd64760100000000000000809a2c451363ab14bb2272aa972a2b1a1de3386fe2bd47113ba4819d67b6fd6501000000000000004cc9ff5edb36e361b088b0eff52fc6e6559c1169ff87ccdb62503bceab7c7445010000000000000040dab7f2e50b7ccee4e3a6223ac09882654079b695b110ad6401558959c2360d010000000000000004065673fbef2c9dbd1b79088e0e3cd6e39784ebb792ede843d9e7988da85c4c0100000000000000fcd5f4c4fe11f20ad99dc8345b7dc5600caba5d5b7d3f499c3253c095152d45401000000000000009254313d03095e6b374e43addebc950956bcb34f2d11a9c557514c9991b3aa0d01000000000000001e825121b8beecb30e9962a555ce06b9e2c65fcf3b0023178556330d565bcb4c0100000000000000e06ae0c49573816e158f02c5263a7b167c2ff7bc5528b13c1cc5a2ad0a34da16010000000000000038b723ee73f8083592437eb9f2e436ad7b694dbaa7599d154a9e3e01b14b69040100000000000000042ca33fbebb9f50bd3ee55c6eef27124379729ce2670914d1a762ebd5ced55c0100000000000000aa819492e4d782526781e8f9001f93d2b9a23142886757ac932702930b9a991e01000000000000008c14a0d64bbb88f3546c49bafb1f6bbe3d59cb277af2fc97f19aee0b80bdad0e01000000000000006834aee6fa1c48e229ad7431b77181ff03dedfa486aac6eb7880ec9950c445540100000000000000b48cf50a4f94e83450a791d6de965c3e8127c1c915208f2b85df4c3a84b2042f0100000000000000c60a9f5f89ea3a56499bcd39bac7e038c25f5b7720d873fdc12b68d2531eb650010000000000000040b77fd8fcabe868dc7f2a08bf14c67e4d433886c3cd3738d1b0b9c649bafc2301000000000000008c43dc50f9ed5bc7be6b4a648957ee5b01a2cbbf967077a6044d4b92f2c715070100000000000000fa81c1b7635c3f695915443a2dfc030e980cae09e592f555edb67436aa11215001000000000000001296762372530d2ccabddcbd204fa90217ce28c9365c5cf4a4eb9f46545b786a0100000000000000fe621d474a018c4e2265c864e994a129614dfb473339453f45a5510587d0174b0100000000000000f2b63387ce5b649f9388fd1be38ee4357b48dc0146e78b91f8f6469a78dc9f580100000000000000b2ba57f89fba50ab178f10f10f2ff79f6061cfec808679868eb7ddd8b08031340100000000000000e694e453023e9989a59e414a8783f9269e933574332c77067fa7ec2b9b6876100100000000000000dc702f22412e64b699d65c66ea2d0857e7b94c0448346f86068e658fc00c5a2c0100000000000000ccb4e6006ac696d5050bc790beff6eaf61a5dbee1a070f66c824b962fe177b6901000000000000009acfd215519f40156749868afc8d56e015759f71cf183fe68382e8c02c75b251010000000000000038f3f4c693034fb614c804ef2854850286df0b1411e5a0c83513ef4c4fa487050100000000000000de5f9f5ad3209502cf429630c2038b8818b6f8ce5685c2730077349802c579250100000000000000649d1a54b0a158350238c017a71aae21e3bb73497187a010d97e1e1b21e43b6401000000000000001cbfaf2b91ee79c6288ad01dd5787070b34d5e1b8253a1765904eaa7d0b93f02010000000000000036a547b4aca95274437f3876bec0447f775eacd01b09d95869390d326a596d450100000000000000a811667da1a12b408e2eddd3fe118403e1f8926b703104fe34193b4fca229d5701000000000000008e83fc9e157adcb687b4b994326f6de340d80075bdbb590eeaa3f29f457ef3560100000000000000b2afe6968bf90de3f8cea025a2b2b0b560b1899fd23343e52c778ab45e1f685f010000000000000026f2af62a2f0d847e3d2cccc93ec7f98c80a7b6d1bcca4cf1c4a6fc7f81775010100000000000000aafb720e50ac6fe69aa177dff62a733a0e98cc0fe7c35e591127479e7e94d5430100000000000000a8f7368dec8f4f30db015c4362e03cd588c6e60f2f4f69912ee4aafb35df38620100000000000000e6767e8c251c74826054421ff499297c13ab6a4e84ce10e0dfae4e21b64aca7301000000000000000481a58bfdafecabbc96bd170a0ec04cc35100f1f928cca3ecc63b3639e47679010000000000000056935ed80a27ac471336a7c5a8b0e73432ddabdf5fe8992390cbae33a020883601000000000000008ec5856a5fd17617c0af76efea16a87d0c5e769eaad39e91c40dac93fb067d5d0100000000000000b0d7d82ba2eca517d6d899525672a1d236f907565785e41ba80296aad19dc57f0100000000000000e4be18b8f5905bc41fe3cba2e5350d405e76036328042ae7edfbb6b6a9b43d5a010000000000000038a69f047c05d50988318a333c2a6bdde4b778592d66328bcf44f1472c1dab500100000000000000b28eace0661acec97215230b9aae3c2be19ef43e9eb90554ab44b51c6180362001000000000000004ed5f55ec45727a57e2d8d6914f6d2acffb17b9515d347ba045067502a0b1402010000000000000036b1aeb61d78c234c0448c0622c570c33ad8fa7b5d7d12102ab323b7985d31690100000000000000a6cfacf0aff2d5c6e8eadf71f397a64f2863e5f0b8793e3068aebd5b3030e13101000000000000007eb2b0b6adbe5a5bad38f46db207f94c896d419661f4ab8f21e302a543df9b1101000000000000004014ed541e698a7a87888c6b5f0c54d74de28c8cd3bd8f1b1f8fd7fdb757cf330100000000000000b032afc9e8d2abc223f23c1d1e1776b3c66a23f5917a7669d69c2eda81b08c3e010000000000000048ce0aba6f1554e139568b4d2358d6cca9bc291d3600787cc3e732291002ca22010000000000000092239fbae2557ff2ea3952c962e478e6ac2a5b3e3cfffb0eb40e8d41860ab0470100000000000000e82715ac0ec2e1f41af952f272f20ef2d2ef826c441c6f33a95522270e57db4b0100000000000000469d81e8b43725a64da6b1ce10eb53eebe1aaebb9703f75ed452e12f45d262730100000000000000285987285ceda1670b1a2fc5c5cf8578a368d63aabfdbbee83ea05db6ae376470100000000000000c4f22a0641190f1bceebea3f8280f22469d6ac0d9b27bcab27d778ac517d2479010000000000000026106dc6fa26823ed60e52e0b1a164dd897be2f617bbf24ddebd9ab34bf6de7701000000000000001c71bcb434190e911175317142b8589619ea3087fb2048a9117607b7b11d11300100000000000000a8527842f1040269688813eb1cf64f525cac5f9219feac35b2d46bcd2df52d100100000000000000a670be090a366ff66d8f7d1eabb7514252222507111e53430bd437a8dbe53a52010000000000000018261ac5151f160bc419a8e44d85fbd4cd8669decacb23c8d7f36f316cbb445e0100000000000000fc53d15453457faadc5540c5853f54324eec395d3647fbf99d5e6e97ef3876760100000000000000544d12f359dbe87200565a9697af85b936a1b5f9d0a363f2ee540ec544aa761e0100000000000000fca464b97dee2e318ad8d4516fd606a5401f5d15467110112a3326ef96ce00760100000000000000864cbd281011a154d93d0320865ad67ae442bf0985f0ec220e2c7db4b095993101000000000000004c696de688ef5d4d5899d1e596a81fde52db76757669bd0051a155fb2335ed0e0100000000000000382fb32d7c8868ce3765e9ccfb462c04071a3d70cab3382c796a9115ab0c310301000000000000008a6dbf87f769167b4eb982f63b946f96a1f223b6a6f2789183fec09581b8e9060100000000000000b027ae418b6c79d9f3a2b05df499d3aaecfb327e6b9d7995a022dc5265ed76180100000000000000eed7e8e8a64dfa89c548a31c1b9fec7af5aef4dbbdb26997b2ddca72d4f8790c0100000000000000a811cc491bb3487d5e604dcf6dca3bf529437162f3b8cfb8514ffab16809ff600100000000000000fe2848018ac215f72f551e58dd2d065d99b788b5a7aa59b9f9fe47a5bdbc046d0100000000000000b6ed5b0c17ca7560c71f1778694741009d3da979309617f0bb992084019e25290100000000000000f853a1534a3af56217661420536dd7bea0db6f6db843d8fead77c308ed7dcc7c010000000000000004b0ff0440c7e131b891a3c13c6f7f0233dbe80fe90dc097f8c5566f2bb49a5f01000000000000005af4895ad43e058a09b4982b8c78021f1ae6cdec9f6633089f32e948ef0d2a11010000000000000028702457fd7ea52bb88284bfcd721493ceae3ea984492a1b82c55efa1b62fa39010000000000000036550a8edfcf14f96e29a7901f5610b57722dbd68b48608572e98468c5bc1f6901000000000000008a51ec3cd1c7e1e5cdc0e3697dd028337ba54e18169cbb241140dbdcc928695c0100000000000000c80832d979a4ba72f7179c346fe660490c292689da81d790baa30a76b598ad5601000000000000006ef86d4533f47ffd133c63b9575c17234309ab6e16f487ae7cd8914169183c66010000000000000056606b6532cdbf27358fd067d61c2a65e4b3e8934c266a857320ff18e5c7654c01000000000000006e8ab85645445eed3828ed583d9a0af03a682fea56d16f833970a3289088e2510100000000000000d096cea7ac5f1bbcaad09ed4723a23fa3b582cc352182a49f8e4511acfa6f87a0100000000000000481ef876bba4865bb88d141606632b3a482c4e5c58c9c30786f6a279eea8a7780100000000000000f403ea18b9e4e9075319b30bf6b6201dd90d012fe4ba28a1c759d0822b9e550901000000000000000690823277fbe96c145c1686519038d301d63bad07d343810506e2cad4b1145701000000000000006c06a116c1a75e2e3b46a7924fe23ca8d58d2a32acac4ca8d0a1e23e3b4c4720010000000000000094d89cb8df2b03c76d41a6521e5803d6f98e204e1839b9ea747dc7e253d35b7f01000000000000009ce314a687a2e8754e1351cda727fdc20e473c08c8bcf5cb70c9a048b571540301000000000000002801cda4aec5f013c3eb504100b1e29e0e65423219d7c6b1b48b0a424a42307c0100000000000000ccb5a9652f3be5d85fcab3d0b8c2eae27519ae2f7befa40c34b89751bbcce40001000000000000005258f48e31bc89f5d53ea6a12eea9698f8e72c6068ac1588100d8632bc674d1e010000000000000094de02a2418c67e938e449c2297944e13cf638e67110299f14cafd5bf2fc60140100000000000000540926fefa2d0424fd451bfca39a01c0e1a3fc811406e127d1dbfdc6cf9e9770010000000000000038c9a0897d9caff03a308d2120bbe892974ae8cb05f1cfe8b97259f0ac2e85290100000000000000a0b7bf06b6c030493f2107c1f2c4154b98b677fcfd461e5817b909f31223a5630100000000000000eab9946bb96a047e9c2fb0e6db8236e46192bcced0c8ea7319142a73cfaf000401000000000000009a53749c83cc06460148d884f1ea5b71897466b237cf16baa45395d78ce48c1a0100000000000000f46eb7a2664580b8655261ad48df75d27404fa23ec47012148dca3c48783bc39010000000000000088fa8bb07ebce99964718c65d0d6f1b091ef2f4d4cdf7b94a22c42c007ecd70601000000000000008a0e2d0af87ffb812f6e6ec229d02056e812cc4f5f5743cc638a7d3f279f0153010000000000000092e5bb9d0906f768dbdde0696b78e493cc78dc1f68789575b24f0b962799b51e01000000000000001ab9d2c814ed7a719ef2aa94dcf4db8aaa0315a59d4b5699e86656a6ee9ac5610100000000000000b63f9ab3a147d76614bfb688751f79fb9a120d40af7ba3bb123c1957b91a411d010000000000000010e37a12fc6ed768d1a2d33c8abc6db675381dfe69c832abb77d9ba2341b3c4a0100000000000000bc62cca37518b73aa22efed6a88147f84af5db7b82ef7671d9bbf03c76d22b4901000000000000000e21a03fbe9885a475c4875f3f912c8703945e99cd2a85f75258fda7b6022b7c0100000000000000206cc2601e4cc1c4d543c1f22eeabb29d72dba4e47630882b2c783e6d3d1935401000000000000002ef372f7d4c71a60f76f65c8ba860ccdf38a85db80963c7f569990ae3865cd470100000000000000068ea8205451f7fdfc6e72059bc58f56cfbd2edcf349f3514de9b00d0c54856801000000000000000e973b21dcbf05732a16fbb925cc44f2f09b236020324c4ff4688614246ca86e0100000000000000ce571a94661c993c3c9309d3ea50f655a55aef1114b548e5309a3f7d506de70b010000000000000042c56bdb09d52942b0fedb07045113a641e2fd64a428b1fa608b5adff9ff4d640100000000000000a0a5985a2d831cc21039cba304cc7da8512cc9098440896fe45ac6dbd8e6b3300100000000000000108c7ed0328d5b09c3f2800da3b8bcc812eda208e3ed636ea1d5a5f312cac56a0100000000000000be8c20cbf28d23f4ee2c82d16d92b7ffd15dbc8e3b64ece63a24ff703f30a07b0100000000000000f29cb4064a1cc3a79da2c9a9f336053cc69d50bcc737257ca2f071c37030510a010000000000000074ee45b1b895aa42f0ea4642cd50e29e43f741f607f25fd5be35ea8cfc9c1c1701000000000000001e23aea69748f8f1d4f9fbe21694942fb42df344e3e314c4a017a4026ac0d31101000000000000003e07b075219fc7ace8dc3bf3a06f5dc12aa9c7e45fe30244d2284bcfb1e6ee1901000000000000003eebdcb51baa53794fa06a4068cec848881ed9b400e1bf1e577d4815c69ba74101000000000000002271d61469f9f1e5a0832af7de453015b89979fd740526080116295f4a4a516d0100000000000000645077cf303943059891df150649d1d828052ea4249bf50ca3b6d29c6ef1984c0100000000000000a0168573a861e2576ab9c5d74d5a5c6e094e6e0261db290363fdb096da94786b010000000000000022376791bf19fefac611324d27bc6acb4b7f7eec713c186adbeda5a1e1b88f340100000000000000aa3463dd8ac73ea72ed500024f5b8bdcca5b20aa9ac557cb7cf980977f120064010000000000000066afec1ea0202d0623f3f92bd2c9e8b78dcbaf4ac7d5fdbe63dd41a79515806a0100000000000000bc8f93a45201992fa9d04355095d03adeb5ff1aea206425eae4f902ffd47fe20010000000000000034caa67978c1a5280b5f58196edcdb5c864b02d0fd40af9c6e6b9716f3fb12680100000000000000ea03f9dc29ae9b7a053c12b6079664592d2cf46a30b43edbb2d2d980223deb110100000000000000b20050395fc81aa60508e362f02c75faebe3e4909c7a23721182ce791bb7011301000000000000007cf1bdd921922cb281bbbeae6fc07218f1d47b73ad3f0f7902e9a7d86d705b080100000000000000526fdfd1d78345a1b2843d392122962cf89a4f157af2a3d0c99607f506175115010000000000000008e80cc5ada5e557a1cea3658402bc83f9892b5c4e112b6e157e6e7d3663c47b0100000000000000a6730d04d45ee4e7e25d3f7b80b4e2ac12a6644a4128127fbe97e97a1d690d69010000000000000068147c36d367eb1a203b303c65ab3d32fe777cabbca8d39e08ffcfd624b3614d0100000000000000b6ad9df8c32a78e9481e75f484fd0b740554276c026736f0dbac0987db08856701000000000000000a6a0f8136fafe5c2e096704e37d12b47a1e46151489a23eb1713b37769fdf780100000000000000281ab8d29fc2bf57650c90e6ab4966f050d4c5c74e94fa659a78bf1dfa71424b0100000000000000d083ff045870d501ac65c3b29384fe542bb53c20308fe740f261caed7ecb04410100000000000000c4687b6d8e527d1ad3be71f2b242bed92eac25b159d9e142e6922ace2dfe5f2101000000000000001437b1c354ee833e93db39ce7b54269c486db9ac4f5e6bce77216a04d7cc376c01000000000000009ea2cb3e6c59685087e59d6d45fdccdd5e6fd4f77fd90b4749f65113e23f086f0100000000000000cc60431feaf7f1bf42d805f0c12a1978ca9b3ec0a21397a71ecfc2bb7d52d20a01000000000000004a7791775365fadbb61f37a0d2f6d298c0c7c3a4c9402821ec909972fd5f8a4c0100000000000000fe3bbb52c1e1b9169ddd63b8f8d14f14d1f291fdac7387deac13e5ea1f8feb6c01000000000000001827754b7465edb9bf4ce981bdd3a33057f9450fc895e39654dbd51c3ab9835a0100000000000000ba099f95644de464c05e2359160bef3e682b8ef3bedc2d5f34fa1a575224645d010000000000000086666d009342994d248819055032a548e2a964da26184293bb9bcb84f5d5d05901000000000000004854cac0c8e7efba2bb24c236cf20212c5a1aeee9e22ea1c97f7b7f61993f81b010000000000000052978f35bc7dc9cd664d2224d164b8de42221e8e6942d66f47a5e9e95cc95d470100000000000000fedb0e6bb7420d16e7112167b894e2da0287b2a170ea43ac038dd416118e156e0100000000000000e0d28dc9623e77eeff6b0aee79793b3a00cf8b1c46fb79c8e6ff8cfeecc4af120100000000000000d0106f6fb9b008052da3223c389525681d9b6e4fdb73a4078f7f1949bfaa350201000000000000001e1f47deab3e4083f7d353b746b719a9f5aaee3ae2cf6b37a4d710f95d489a6101000000000000004a48e0f85fc8b22e74020e1efeed0e275653e8ecdf028c01f13384def95de92a0100000000000000725d8666c3eda2592bf0b16877cfe8e292f61f0456f1d30fd4c29dd05ef0922f010000000000000004601ba22158973d6bed9113f9976c7947daf458f58ae1943ff6f79553e8d4010100000000000000d4a87be02f6839b90794e3880e77ca40a53a7ebdba4a8a5a9c743acf79c7384c0100000000000000caf6489970c76d9f756bb0b914cbd8beca60312b1e210f9d46b6677b03dc86000100000000000000102ed4107066f497e13d3c484a9fa60e506587e19541069dd4555a91d63f27040100000000000000d27da69172c428ddb80272e6fc6ec90985ee281b45f933e5bad65184bc3b5d0201000000000000003afb6b0dac3a05453f125943b8a26269202d297b991e054ca851fa68bb4c08530100000000000000086b88822caebe9d73149400994a2df6cf317debccde56252bd6616cb28ad859010000000000000014a7dcff9114935084580b0b3f39c1260205e63ac607168795f5b0867f28f52601000000000000009e80c458262141e85c50db48c81b519e5eb97d400b66acaa7f47649e5c23b82801000000000000000c3292b5065b7b78a2de5f4fe397fff21df37c0ff7eef94c5fc4397f760e6e46010000000000000012030a66b25d1ddedf761e0875430a266c847b370aa64dc8c106e4b0b997283e01000000000000004616ac86f0d45899eed3f1246dc5744858a694a92b0abd9f10e52dfc9c28674601000000000000009265e7be28a8f56a974027b630bc37703b7ef21b1b1e4253c54d605f4d10da1e010000000000000046b14e55053a02087c957664d32fdcae6ba1c96051239191c63df564d784e1720100000000000000be2a3b6770dcdcda22736d6705a8d075b77544e73311fd0517058867f184ef32010000000000000058efa50da673a8c3b5799e278ae7d32f9eee340947f793f44348ba17e25a885f0100000000000000da5a8d123547810ba496f10294160840c6e067cca57643c9da68265321e80c2c0100000000000000908033d709f4315e38709b4fbcea1e79a9a91b06cd9d31b9d379b7c6232141750100000000000000de97aa69c9dc17083f2323fef768c1066d0c31e61fb1c57452c851f60569cb1e01000000000000009c4d874baeccbb19733cf93f6ffb2f44d9b9f5191ead84f3550c7b767a75061f0100000000000000d0f8b7532498f883c5c76e05a3c414609da9c82c254aa2bac8e8205d2a80682b01000000000000008ea25b46bbf10e124cdd2a34b2134ff31666a0db69fa2fd17794522b3fc6c5390100000000000000924bef00fa94a5c8d29e672c50c68829db4454a85fce54ed3fabd27b454dcf060100000000000000723f8c9d81d0874cd4130cb58587c90ef454174e9d6d9dec11279a553caf00430100000000000000bcc2dbaf82ccaa470212cf2bf8e87f0639bb9fa454c63878a0ad8c06e39a46650100000000000000547c6a159db6eb46da71179d0d15dad5691617fc7f3c6a672864655997035c2d010000000000000040884e6b9876fe866d109aae2a5a6f1a18bfe3655ec9c1fee848ca927344687201000000000000008cc290fd3d49f9ee36aa66775bd92a04b886d1c2648b5573b91eaf420d2d0df20100000000000000040000000000000002", - "babeFinalizedBlockWeight": 3605523, - "finalizedBlockHeader": "0x78835356007a3483eb5f099af463786e062e8513d025f5e8b326f2f05e8d040ed685710377e7b4ebd68adb7bbe2d509bf61eafb18fce581eb6a0411d161ceba9cc5d4c621806d6ca96d5ccabe0ec3cd1f047ee61015eb765fbc4ed735aaac976f243fa76080642414245b5010311000000cc48aa10000000004a79e7001b31b145320daed393d6e6f9a619bab04c27742be4477952fb46fc4c1b17fe2fa71fec279dcfbb9f234bfea251d8f715f76db1a0562bbbec80d43006ada682bb30d431003e91fba8dfb656396159aa4251a779b3f72c22c18bd4f501054241424501013cce6589582512ce47682b3b5365d7474caf6a6d75bfeb0dd96fe9d0b44aea308b1d8ffd8ce1ddc2f08a974382a154dea572ca87d333c99c5703c2ef1c7bcd8a", - "grandpaAuthoritySet": "0xa5043866d53e02db8ff21ae934a03e06375ba5f3588bd444902794dde526fac2cae00100000000000000fff437ff18629bf1490e5c9b3ec6f1515d46bb9b2aeaa6e39e36611f2479b50d01000000000000006719dee0d6e25f2aabec94019e598524b205b514c1582e72fb9f1be3555300a5010000000000000047f940bc985355be7187c709ded2b689b66d69e61e293a507f1d4f90bdbeceee0100000000000000525c0460e98f5cda7d20e67ea1e27b3ca471760559baa73dcf77b2e163b957180100000000000000f98b21ab797ac19b101f8e446865564901dff29b4e0bbc5badcae7ac88dab7d80100000000000000b61e9b13e849779be8f5378a670d61991875d8e091f359384d7be73d02d50693010000000000000070ba6e5985990ba1b1392713236f1b50df750f10f744cc6eb95fa7c5cfbc687601000000000000005081c119ae99cfaacd677ac4eed05ce7d0d3f9af9e1caa58194564bedff73a480100000000000000b54a0bdc05bf5634a385ad79469726bd507dce50ff5e2e5f6132868fe9ced6af010000000000000057ae0c85ebaf333a6ec3251f577cab910cce072f238d1e50046322b83bbc0dd50100000000000000bdae4bc60b03f8fbc14299f0449301ef7f423a4cd15c6f6a35ea6a44fc5bcb0f01000000000000000139b946b46bee4c61be50c986f2a9ef2e76917644e2ecd842c59d61a94ee612010000000000000076aa25ab781816fdfabc9051149c3db958bc09d2e8f0e10a4d91e0df8c79ec9b010000000000000053352e16d2a27fb3525d5d8750d6ad7f46b303a45e434a409ac727d5cb80432b01000000000000008c54298c6f8704498112ecb24f64f7a28ed2289ec573620b0d1e5a9a44f5fa78010000000000000041ef4a31eb7dc1e01f4630604e1908e644d7cdee3f66a60f98d6d59605326f8b0100000000000000c4ab2451500e321f187140d3aeed09d5cdf67f09d9997b966c86dd74714233db010000000000000021acf715d75065242920f902a3490f2f9f3dbf5bae57a4a6fbc8ed3f805eb8620100000000000000049cb09a86d544249f9e11cf6c348bc0561600343ebee89d1c90bbef3d13e5170100000000000000d04d64a07f144638f20f081de122b88fed0cc8bda57e4810e7afb38036dd8bbf0100000000000000f26945a8a64032a1defa76e720a99649125b55751b6088205e7acab901de670b0100000000000000684768723f0efc2001562c3b2156b987601ae9431f8aaa6f4199649cba487aea01000000000000005ee4dbc4f6c4f07171eda6db4f331180ad4434b34f809071e958910df3252c8c01000000000000009b94bc45bf79bb33f70430c82880456cd7bd5fb3ea131c1b26d493d01c5fe7100100000000000000d7e8ce7ff46c836473acb0c3016feab586b5c4a6b529f7cedef01c6727dbbcf601000000000000006f4855725ebb9eced957bae43ffa7d30657ce7d06b251ce20e2218bcf929e4050100000000000000f2f0f84855c6bce35c42d537fb4022662272203cc4985767ad4ef8ef1bbb716501000000000000008376e5e1a7b6eac21e3e9f9e133f89ed0053b5559376a97e58896653725c502d0100000000000000ff0bf39c82ed573d48585448b0fc19ba3f6203806cb6b4a230848892c097a26f01000000000000009c27510363c46fb84c22765901302fa26af266da5a22099368fce05562ce97eb01000000000000003478e6a5b64e3aaaa6795e6536a12728a20af7a8d44c75f5e981c6d2aee4517701000000000000003b252801bf8a2f4797699a0d95e8fad8c8fb42cf6f6a33f4555bde1c7fefd4490100000000000000c1c1ff5f66fefb5c0849e3b2333411d1f7e9dd4888600e334e7a33623f15fa360100000000000000fe240e80ff8a48a77947b394979cf361017cd906ddaab637d72cf72e729d79bf010000000000000006854c73f5703242d31d2576ac2297c93f0b5dc16ade0097c59d5dc0faa43c5501000000000000004e8f0524e30ac39910b99d0c465e945580c48070ea75214f7c01a920b1a66e4901000000000000008aabd4f6d7ecec7a749c83fc7be33f3b4818cca6f93a4927b4964900df9454e50100000000000000b9186b95c90d2d00a31e7c68066bd37d73408271762604e3608e2f2c983f83090100000000000000f5260c9ada18534d79be08836484429e686985c8241e113307792aa1255b1cb10100000000000000e730007e26ea493e96a65b30d278e92ef85444e61fee3606729a5e699b74f1100100000000000000d4d8cfaa23b3a1a89a7f6a90cdbfdea15c87ad2ca4ae77deb3389406ad3feffe01000000000000002db20e745d850245733e6f6aa93ea9a176044e904160e59995846aac21f1ff610100000000000000dc1427d14e83926d22f6be25d1bd39cbc82a194f5e9373ecae644f156ae9c62e01000000000000005cc3bf681735b048c6d32066de94abae0515d8f401583bf9bb103b4e07ec6e700100000000000000beab86851a829fb4f25d1c1a5d92b4cd97718fd0f2f9ef345b0d3cab98a304aa01000000000000000339088379600f5bd507277eb894aba34d2a8f27ce1964f41e60ef2a4142dc6e010000000000000003d105a30087d96b5f0684f6ded76f826b01dab61e4136e1d851a24f0088b5ed010000000000000020d4e595c50bb9558dad9be6a8784492bbbfc754b9c5fae17edf4f8a84e8b47101000000000000006ba031ff146af5199eeb335a4a9c2fd487685a489e1a154ba1d012e965fdd5ba0100000000000000608f61824d3ae16d443cd0fec15c18590c890d4105e9402cad8743fb423e52b40100000000000000fe95aa161a01b3473ed9dc7f4e2219528d8be86530bcfa7095086ed61e3d7a0301000000000000000ccee96768f9b1d29d5bd9e63afd2be78a90cc89d19653ff1910cb36000b48530100000000000000818a546c630b881c2161588866965649678cda0f4110cccc3533d0f20e5e41200100000000000000088f8736e1cf2ea3d102f0a96ccf51222b8aa1f93d8e42947892f4395cb5477c0100000000000000c3ff25a1743a9df92af4ccd9a7aed5cbc90f64fd538c3df0a9539128f596526701000000000000004e3fb8c16ad624c1852777456805e5352d0221269de66949c95da4076206b35a01000000000000007ad55381f9de00220678c95a19489640fc61331e2a40d927e3d833555575c6fc0100000000000000cb92ffeace78dbafe6fbf275741b4b38657fb81590712aa0bca7877931f6ad39010000000000000074a8906dd2888c9e7edea13ba3c42ad4d833f4a5de43d5ce0d9b12c654ab2e8701000000000000005cd0c7b21d4834c5a41a80f7d421c7d0297e42eb409a524d33aa7557df13adaa01000000000000007ac1f611f90df5fb222924b2c6683062db933d6083922c4a17ce29f21298a768010000000000000007727680e6caac998c03e3702c7f84e558b592dd76ab2a49cdd3dae16e7e853f0100000000000000e78c36a9d8b145c42c879754a79dde433fa2496c55d6d9f00ae577c6b1ff4dfe0100000000000000c6b03ba3484a8eb6518858d525b5a64f5b9db650bcc7c0df788ade370714d222010000000000000059bba625d971d505a9c7d7c2f3ad69203e69e3e5e1fc1e4905fae7703fa19e030100000000000000b79c9e77b101899e5e0b01fb61edb48a2a28c0dc19e6496ece31eef4696674fa0100000000000000ba95f5d0e987305bb794dfeae69d7dd6a7987aa66cd7c9d42aca15e9160ec6a1010000000000000057d2c2934f6896f927b91431398ee0ee820f35d13959ffdb77961c86893c7fea0100000000000000a837eb18e0e629cb4200341ded7e4a28c01ba1384312805f7ba4c788a3636361010000000000000079c7f1a51767cb557331a7ef9d93b1879ae170f5c5e367ec46dc0bd59183109d010000000000000054efa280ecec9c8ce569b293e92733e2fd4a884a551241d92b042be850cca5b9010000000000000079b7935f0302c2cde0ac307993bb5aa917b21ca72116a33d6fb29c9218d23371010000000000000016278af083f6d261762f8a97b6a09ff83e2f5927ce26c2e48f3c7e771dc7e69501000000000000006a4dd2a5375c3ed37eca0a5ecda6ad6d7d1dc9818a588129c9529b41706c28b50100000000000000c49e3cd2c701bb845963c2870dcca12ed070c3f67ffc20144327a93aa6e896ec01000000000000008041ec7547fadc33aa19a785dbd1a7058b0147f2d9736b9dc4dbc6ce454bd7ef0100000000000000b659572f1985264ebbade17666a860f8fba53577db37ab74d510f8250dcf591d01000000000000002dad5b2212ee688f2eeb9ca1fb6a90574f006dc1c6680ac3a8523363a248940b0100000000000000b7c13f1239888cda5c8e6ac9ea10675df17633368906e66a487f91ddd3268ca60100000000000000b9404a5fb9f1723fc9fd4c5535dd9ef1d67c5237d9d322854697e9e245064e330100000000000000a7c97a8b886fb36c1cd26977af2dabcabc59e565fb2ac4662ea3e825ba05eaf701000000000000008cc5497465564e76909d43a2baeb935c9c3ecba972164f0817940b51b83f95070100000000000000f3b1c0e43606bd49bc84e403db685b577e898b5f7c5db9052bdc3dacf38dc7ad0100000000000000596004e838b7d90408d46de62b01e13e631575f348bc59f926286aae4c88702a01000000000000003a511828c0cdc0fd257387843fdbf6f19d5ca1ef1c29ec7e971fc9f1195eb60c01000000000000001bd2dc1433466b9f53f6f564006c366f6f5a77494b4c61c0fa10a746228c7d9a0100000000000000ee5605c1a9ed9484a70b8a591339830f24530eefc4599a7c6188a78896908e2c010000000000000058a618057cf738d5fe0ecd46959bc90fc35e75abfabdad47466882af2328f4510100000000000000d1c146d2429a5a827660008721c7a880e71f44feaa3dc75524c1a9281bac48cd0100000000000000242722dcba2babf14ccfc0617b1d63f0c62bf4fdd8d589192bfa8f83b0cbc25a01000000000000005f7c962cf032d27424ec830bc53534062389bb181aec9299aecc802dd71c144101000000000000002bb7b11dfe79a12110b0370510ef20d40ba8a563f517310f8bf37cf7f0403de4010000000000000040533a786cd0be9618126633512666b1b1b9ab3b436fa653c93e2f65da9c196b010000000000000096d41ceafc16873fda98efcf8cff835c433af51a2cdaa39c0ce71014151eb91e01000000000000006a5f902cdeda2c2161d16bd21d586720c08c0bbb7b463d9c59147338d26a8a96010000000000000031149a16ef2ddd8944e60703a88d8822649f7e18e3d5368c8b730bbe2b5ed6b8010000000000000078ffabbea4ce0d6c8208eacda97bd6aa8b91fe5fd1226bbb08c63c12dfd416aa0100000000000000bba0b1c17968bfe96655ae74c78552858406e7e831477dd6061a036fb58103c00100000000000000ab46e1e7337eb6fb53e1a022dbb648b5d92761b06322a7173b73c8020d3c4f62010000000000000056682332630f5dd42f160f1e3475d1881b2adab83023216892f538efa1e0e66f0100000000000000c7d9cab0fb88dccd0cf4abbf5df9d7f36a3de439c5070c599d397e74133bdfed0100000000000000866fe4ae134938ccf4c5caf01358881c75cfde473b0bb8a2623cc231db2ea3b901000000000000005cecf03ce3d4f89afc378058886f46a745f1672efea7f0a01160cf2df98bade00100000000000000136f0f103b294ecc41b3659fd19b251975ceb3f0b85379393303ee1462dcc6370100000000000000fc555c014d927fe7838e840609916b9af5d93892ce6f394398858286802b8c6101000000000000007e9a8b0613bf51b175b7c446f29daede6bead3f6d1269c216ebaaf770082420301000000000000008c3dbd5a1b928cb51e918452191e5328b0f6e8de0259517831a90b02dba3e6110100000000000000aa6fd06015b8309ea9103f4b0e29bfa7e21ab5bb1431c3a76433f591c739f8380100000000000000fbe806f96dcc137dcaea26125661f35d36aba1e2b2d7c89cf6a536c1a721c3a00100000000000000a892342c56149812a43e98c82b6a3dfee7eff384d9b6d832002ea63838f6490001000000000000005cd92a7f0b1a7ded1de21ee73439f8851622b8d3e4664f68db20269cf0ede9ef010000000000000023f07bcb8dade90cefd08732183d5fe32b89ad8a4f84987b9e4e7e767c25875601000000000000006fd2f5030da02a05fd978e836967d2329d916c21d4081d6b9057341535afee4101000000000000004532b59911aec8842fd910a35fad7c6210b3c1ac73c7c9799963c635e2b562880100000000000000be6b59cb464fadec4e0b22a9f12857ba5cf7a14c4f9551439d36305d582dd7fb010000000000000056cd1acff4de0c0d403c9f34bcafd74cb9e50e47b0b2ffda16f3db9a5fa12d480100000000000000acc5d703d7819d7993784e6ce107cd4c5625954d3baab0bcc07afe7d8c473a220100000000000000300c6f7d60252ecda817a4161b72e77445ef0f95874503ed01533a78a917411a01000000000000004ff4b94f982f0369db2cbfecc73ca3d9a87ee18fb9ca5f5b3bbe4d4256833d6a01000000000000004b98c985398b5d64b7c1cc430cae9fe4a7bb24e6051db62555a83c966266070401000000000000006ade09347d6072d154bdf0b13d0814ce9bf2a3b163c7092d71f0ed5cdcc9e1c90100000000000000a36ea7f37e51f64e364faf6d3f59fbf0a4a638e1b1811484df7423b68fee42be01000000000000008cfea50157362012d46ebbd35d758d9e7e583192a19ccd9fa44e8e566a2f5f610100000000000000d0b4aada93fb3d0b358e8d59f8914f5987acbc6f5b4f3e12a1ed8d962eded82701000000000000004f950be5bf61958a0ae6e6a036b85b33ba838de8bd5508b558cbe2602d341168010000000000000082e6b6bf1f275c59fbde0dad91393ae690d5e644d11d23898a9ccfdda025920a01000000000000006f7a1a4f9d8c054907f3b6b946a59525199dbcffe9fd3ba89612a5d4b548bede0100000000000000664321f9b5f8f1154b1f6ecf936629232bca97b4e6cb7b15b18f6788df57acf20100000000000000817c2256c3f90205a1618aca11b5cda153d906f19dbb071168b5d3eb2dcdf6c3010000000000000067baa27826f448c2761c7d56beeccb4be9a09b9da7c99ced171e47b5b40fd66701000000000000005b379072ec1f3f70b4650979a47b24f9b080c03450f7e9587d92cb599fcf4d6b010000000000000018b45f8c44b86e28967b6a1d16b7ceef81ba4dab940af7f431e2c362779bf8f601000000000000008934b9a6c38dd420aefa1e115c839fad7a71147a6efc77ab593485c3b07576ac010000000000000042767549be650b14b6006f20f646a7b03548181bdd1b3f70fee478f105d0c55c0100000000000000d6dfcd2fd4743915bd90a97b149d985bab1371d416ea1c94878f425b2a312a9c0100000000000000d3b3d9703a265a51a137b9de348587c645a168981ef3e01c9dc482856751b8ef0100000000000000fc787e0cc80b880cec43b8186eabcaf905c6df87582986fe724884d8f50addfa0100000000000000c0444bc7cff2374b76ba49e5ce25b632b0db77f08f6c40799077ce3f5b035f3f010000000000000096954a8ab821a253ef8b1f37f77568a7ef10e3ae1efb6e43d0308ae78888c5270100000000000000a2ee8d9c22eba97998d63854409d99c87b21d079f5c888d863a81d41d6abf0110100000000000000c2344c6fb787621295335b6b5acbab9531199901492d41e13a64dfb2927f83be010000000000000069d5a9da53c043b2852a9ab2712bf10e65c375234a1b6ce75b2e73a3b38b4d0501000000000000009f8d5dad0f5f1acd843c69570a7e34d3718903ee9cdd9cde4df53c0bbca5d00601000000000000001d704a1e9e8ceb87d7ebf583e96a6318ce17bf25ffdedbe57a4fb200f9c8f2060100000000000000155763a153e0c02b2eef1d8a9cd8a50a9eaac9d3af7ad1e559b1e2320b521e1c010000000000000010dedb3ee7bb127bd7c1819086e799b37693fcb8931f5b454fe98bfd92a9124a01000000000000006f24952b93da464bd561b3f9b814d3884e88cf950a204205027989a1259c0bd001000000000000007cf464ab5e56ab05395c73c625ce4fb0b89c4cd02316f290ddf75fc7b189eb6d01000000000000003773b05d2e2660498c8d407a1d6223423c26aa08b9b3656af94d78b861fba22f01000000000000003ca72e96f3893cd5250ff6ba60a9cdfa049945a3740ad6338398d70a1355e06f0100000000000000500a9e1ea37636c24ebf4e32668897dae936eef42b6da49027f606d4f24a7e960100000000000000ed171997fcc2549c08a39a0367b723c68434e08b7c104320f410a6da9a6d822a010000000000000039712f967c4e06d284d6da4735cf2823c1f770674b668f7bc896071c3fd41eda0100000000000000d42a22861f9f410c2f0733d0aba4ce6ba6cfa9c69ad5b6c6502a2b99ae8c0b49010000000000000095fcf1464d41feaa1f7659756d5278e7a42dac7951ed211f6caeb3e75285c75b01000000000000004df6e4d7da2c11ddb9153c714699f9ab625bbcd5e8e38f1cdeee567dc04abc610100000000000000f2ecf2265889c11a724e4fdb0e9f0fd9905b776989014222b047ff9de5fe401401000000000000004c3b4b0a3acf902acec7f5d868f77d78b17fa4cfc5f785d393c9f3d15e0488050100000000000000b8cf76a8082d518016ea5588be57b64e156ed23b0f72248975522c23d15ef161010000000000000069bfcb1c0cae6c61b881995aaee8fb2ec30183eb4545f17df47dce0c08a0ac660100000000000000a3d9e6ea3bf5bbaeb654fa0667fa89d6333e1bda95488c5e0cf70fc3a6f5f35401000000000000002565e04c6e0b665fac87f8238bee74837f8f621ed63409f3838d263603400a980100000000000000c2e6a39d423f82b034e5370932f02653ee45254ced3ec2094640508e3d04d91b0100000000000000f25a93ddbbd03cf6db28c430de1bc7c0cc4ab2912f9df692da294a3d97032ec301000000000000002a38a4dcdffc571d547ee3e59121fdd378335df7c65877f983f0957cdc982413010000000000000013bb7d0d3ad02c62ffe9dd420451792fe18502818635ca189cdfb27cee4e0ae701000000000000004d7c6836bf41d01d5b58d5c8748b9bc7c0f1a4f101e19a9e8aa17c970a92604e01000000000000003a76a7eebe9edea2fcfb70ed044111a1e8f8aa85ee30efe364586845cf28c478010000000000000053db8eab8282ff36ab195de04f694c726085d18722e02ad3713c7e0a64353d00010000000000000081c5c3bebb947d1716d5f6f325afdc71c953c23fd85a716dc082790bbb8d19150100000000000000121e86ff9fde3cc3d2ae12c7346e007c7e025dc2dbb9474494659d76903fdf4f010000000000000007509cdb3f25ea59dc90860670b6ca58c678f099bd4d7221f4bc2a2e2a52b9e301000000000000007af0706d921a331b5c1f957a8d1decf15aa0e3377a80d72107693afd8614ef8f0100000000000000c172464fd94ed33d095961d4bc76be9d4ebd3378dd7f5e738996866da792320e0100000000000000f5e2c973d4ccbdd36d8ed4e3dae75d3b50002cc1c74eb0a1fe29ef1ef8e3f0cc0100000000000000f56f5b3de4f46bcde88569888783fd60646806795807edb1e04ec3dff85ff3e10100000000000000a3dbfbf4eba67c252cf10f45008eff4581f97a5c4f377260de7538aac5a422cb01000000000000008b35aa0d212e4032ede352d5426696c260c9ecffa632a2e14e6a6629a6c9f637010000000000000072341ca1eb3a0fd4e790318b51ace114315573d5355c9d5336e39382ba0642560100000000000000b14911cb101f45b88c437a36bd82a5f8641b1c55052060ea46ea2baea570e8bf0100000000000000b66e24ea84d5e02a7b2b58e20bbf17a0f2a19c4654bf8b07669ba3b9fc4a468101000000000000009d31c78ebe9664e2bd8ba41cddcd9c5b9fb0cc6f8be0a2e5b91f6bcf66a5c7530100000000000000290be52ae5259f3e8bd0cdf454004607867a97c1db86d0c9ff16c8c83625bc830100000000000000c91199db47b7591bf1a928534cdbd3e5979a0d09d6a464f2a9607ec444bd8a9701000000000000004c43a374e6b3e6f7d6c5a6b8518ae0d0d232a1c46d63af8fbc800045a14cbe93010000000000000045983f6d17109e1957bb37362f40a1eb0c8d5259091ee9f8a1693dd821e926eb0100000000000000b9554a4207dfd5c094ae11a6b261bbec2054e3e6bb7e80776b1aa96e24bbbb69010000000000000022edc626e6c76166af032395ade8b874ac872074c72e3e6a70c8f668993d19e8010000000000000081738498a35450b3e36b0a8af266f887bbc3205c00aa46b04fab7f47bc0dc7750100000000000000194d95608f8340cab24e8bb302f1e4b02803ebe8f750888aa5da5508019f5f260100000000000000aab24caa6a8d6a66eac491708363c62c2087540b364273835796a54647a7e6fa0100000000000000ac0ef45b1c0f242a4aeb0ef03a9c0d9e3ae2a4bee8cb4c35f0293bac4331e76501000000000000001887f7937a8ca4ec67ceaedebfad3d307b10f416219de1ed4f8646409eab730a0100000000000000f567fbf0ac2c23bfbe654255aed088d1b78c6fcb63a331b394405c15868340cc0100000000000000a3392683550322454a4b5745afbe051746c4e34170ab2af0d1ce40307c7b7f9a01000000000000002c203d61f409a43e44773a1e7024ebb67b45b489e675ef384334e073bb935ad201000000000000008b933a5a22b04aa2c830429dfd61532ad2e30be1c0fb5a2d0c235de403f30abd0100000000000000e8e69f08c3b5aff03e910e1fc0de0ec6e5846f9b7859946f6f72cf967fc154160100000000000000fc2ff0598fd334e425949d552cd31b59e87365b05d6151aa2e8e982e44f296090100000000000000ee40b85aa515fdbe6e559f815edc7ec1e321e0d152dd54258382ba31b54e447a01000000000000001267b8cba49007ec111d8d037e52e3e32c7ad6c2f41d6b45e90b8402a24005d30100000000000000c3e904b307c280271b2a2bca82cefc7e14d75f776e08ffe58fc4f7fa3d1d0a6101000000000000008dc1439b28d488419535c2fea9c821023f7bce423fa02d9f42e60c07c3d6ab560100000000000000c3150e4ca47e7bc6486f198bf0a742a18ab0871bb1efa34e82c4ce81f279266701000000000000002e8f05a1e5ba68d6e4b93c289e885f630cf27f720181060c437869ab9e83939101000000000000007a92827270cfa82f16145a44f9bdd9ff5038ef1b665dd520a2e61db9749094960100000000000000ebb1834a568ea7653bc66f394937a0aa4f2f617118d2161e2c11c0d7d2febb9d01000000000000002ea29e0897dea1ebd35d08aaf170ffbcef9b1add7a80aa3afdd9161fdd4329e00100000000000000d49bb29ccd716262579a5a448c377aa16ff969d5b2c282a43de87abaf4174e930100000000000000e5f305cd6d930d41209036f066a86d3724aad2f388d354ac4979cc763c220a5601000000000000002605f256953a6cd468cb45aa10509abd14d606166578147b8f4d2c70e3c5a4d3010000000000000098a6defcfeb3dfca36ec46eb373734627a2c395cdd2d886046a11788ed6467af010000000000000035db4f9ab121f213b695b982f50c47ac04a14c54214e831ed1bbef7b9542310c0100000000000000496826b538d97906e14d417b48598d7d591a483ab5f4c6786cd0b96239c2f4cf0100000000000000ef27d1d5573e6419ffcc7c4372668105118256b810ab2e2dbb5e7d8280ee94250100000000000000ed3f97f83ee7799c4aeba9f40bd18134c862c1a30875fc1e038cd27bae3a739a0100000000000000348e8bacc2d40191a6a00e137c745a422ff8fb03148d2ff9cad75efbb7a670140100000000000000cafe2356af019d8b5f39c949b3dee71dd5356eb2655d819f485d0244e55b9fcd01000000000000006a5dcdf2c3598c00d31a010dece5bf744f203856712531b07a31babcf06d09e30100000000000000d03903d0b6fb3ea0891ceeb3a84afdd6979f453d70ee1531168e418d0a8869720100000000000000638bc7ae8bc6ff7e9944c1b108ec4105b61393dc867da3b4ab6c546eb248263c0100000000000000e18f9d4831f99a874b84355d8404b084c06793b62e78cd05e479e7e399dc686901000000000000000938374801c6b36a9164ffdbec02bd2d54b7f927a850f46136126726774166eb01000000000000002088d13e2c7afbe1ab78d935d1d8e02eddb71276a0c9bbf5488188371200f5fe0100000000000000bff74b6ff5ccdce9a659408871d486511938422a6e550fe0669ccd739f801081010000000000000082019acc07b285d7edea9f72e3d5285312e994beb056e6faf58492841a80d282010000000000000004eed32b0d6be0b60d2e33281f623471f3a65de597d2de13c0d8f887ea723aab0100000000000000bc969803075efefd39758affc268d35239b19b63234bce1a8681d3fe5f4540570100000000000000e01d6eda8094e949bfbb05c819b509a12eb662a414b822f841d9555d58e1ce7601000000000000004d12dbcf20a79391d84bee6cb79bf8bab502241e46e52d45c2ea66e3ba5e9a5f010000000000000044a98b8e6c68cbd67e08808496605cc3ac081ae433398676543bde1720048e490100000000000000c3576342cbf99792896ee5329b04ff2eee2fc2bb6d53c5c03d52c8957ee793fb01000000000000005f4e596a0de5073157b4f8a4609e716109a53df7a5bc2a0c24edae406bebcb240100000000000000de186294778cc927cb2a24ade9ad165956f3586979f1ac5f3b4a16edd2674339010000000000000043a9a2915f377cd4943f602be38c3bd6ef39e91562c09f18fb672884b4bf8eab01000000000000001a608965f3df6f3b63f91616d5c7878c3decad01ea6b3b286be37c62e30118b5010000000000000059dadf17dc0f84c1c334e6a815a04bdfcd0988a3f3bcb713c66ae29e17276cc601000000000000008d5cb94ebe135f3e9fb84ed39aa213a14c57b98f19d2cf35f2cc450b44e3792f0100000000000000a770d6b7bb38159344a04fbf56b79c21e7cc58cfa02cf97450be8a67c12955b10100000000000000297dc7cf28b3d40a42c5e8faac876bf7227c670e6e031dd0e0537f4fb70e6fbe01000000000000000909c1eff97923f6bd47e6ec8b5dc163b32d5b675a3b13138d3599e5cc77ab9f0100000000000000f7bdbb5c598784ba157940b08b5c5aa967d0f3faf60da28b915650eb39afe47c0100000000000000677358fc648638cbd854d2a009dd39b8508dd3047d0c5f13bb403a64d053ad030100000000000000f4c1dbe557387df6714021a934e2227b372de5b5e0979d57f4e6ab33c4859e8c010000000000000073dce1727ec50c50366378cd389246e19543d900d7e9dab8e323d04cf5b202a701000000000000002ada479e1fde7211de15900ed29035f6f07506cdbadc4c232aab96d62006b9de0100000000000000ee1a56541083b083f1a13b5f8aa4042a098de2cec4c43f3250baaba8f03a52ea0100000000000000e2cc4424464983ada824bbef5aaa8995e80ef1017c15ef3b13902599841637ba01000000000000005246164c02e9e6bfb7a2dbf7ba8a5440a189f8048373678f5b1085f217464c0501000000000000001889f1b031fa7d64c4b480a17cd2941be2c02681bca397c93607091f37bf5ee10100000000000000b884577e30ee6428215afe3b9bd2d7b5e50f724d74a8e11defc1b52ce411b3850100000000000000dd2845c96358e8dbf0826903b8451d6d374d39b476eed17552d190ed684680cf0100000000000000fd734da3c98d7d56f8b9cc92f389350f3b6de2fb5917d338fee9fd961978e2a301000000000000004251f97b79a45e8acb5f73c11f5fe4966cc998fe4703e63342a34c3b8a345fbb010000000000000084845f99ad8fe89b7aa136c30b71b791015e8801b1d42cbf9841a0b90e723aad01000000000000008c258b4ca16dfb8e5afde4cf40fecf115307798117b4860475511b3b5d5615840100000000000000ea8c8bec277832ff4f31396f76d6117026cf73407bce46de9ccfd17c686ca1170100000000000000a345327d74e78288985f9b2bb655885221105b0c76c4db2f021d60cb74e2183c01000000000000000e7bc96895730726225e47e31c742fd44d3936f31ecd32658c694fc11df252240100000000000000a3316f9e3af8d72aad03079e644c89cf5b97b302b506ac296a4da6aeded2c8ce010000000000000017dd31b9a0e4e050b82550ffe7920c3f53392afb5f6e546114921d5a4a2b6fce010000000000000055762fe2197a58ce7c5f23f3a3fd6f16f1d8845d6a0b13459491a65977553bdf0100000000000000ab99dbd3e4ef435e0920f0ee4ec2297d665ba8d5bf93d024e5c34ed738b71b8f0100000000000000c82cb99a034e1865554243136d8462e6b2e840af79a92b965d7883619d40cb2001000000000000003f6aeb3ed0d67d71ee11a1c2e1ed66da77abd8cc8c0f4d995d64fe4ec873684701000000000000006375ae0c1bf2b0388e16971715fd68c31ed179f38947531c165f0da2c3fe7667010000000000000012aa455c35356255f9ba286193962f3bc23f7fff565c1995ac21015bd946fe6e01000000000000004a46371fa537ccb9ad995cd03c69517dfd310fd4af9d8a95c7976cf8eb6c37fc010000000000000025196076d22b8093c7a53a1be1f9ba73d404c73dde8fd8c49465990eb7d7707a010000000000000018566ab47d72a4a296fe9712acf62d6d135328372e4a3ef7b99816d6b4beb6840100000000000000a2a4f4e18a49ae5fa0170e13427a58e53779a64bdbf817183420f9abdc0cd4090100000000000000d7a0c586d45638b0c2b335420a57c73b2acbe1a8038a25c800a030ffa1e62fbf01000000000000004485615186ae8ad33aff337594a7f8325d3a50201ee04320fb1dd2eab9643d1601000000000000002b07c366c1ed899a2ac9722b76e092828714a8177368e51ca05ec05c565866b30100000000000000e81206b483fdcf1fe42145f27d1efb8178a57ee24b196285374037da2a53b3230100000000000000a0586d138691972dad187e747b31698e301c3e1d58d5ff6be8a06d4ec5d6b855010000000000000027a748182c49d7c4ec091c9589da5c9c35fa99ac8ffa4d613129dd4d08e9f11201000000000000002773bf65269603924e514b545eb69d988b5f6b5d94310f2eac5fe549cadad07c0100000000000000ff568b8e0dbe74604c6d04b5de6f2df03b343bea074c4495c6a10e511ba473d901000000000000009337ca812d686250385c635198917e85833d7a9b0ab4c537246fb069d09f401d01000000000000003a4bfd825ccd308def4a61bac80c579db42b02ea5f1a0768656a326e83a0dd880100000000000000db106e27c5b78f1a0d19e0abb47b4666c54906c5539c8596b43d36dc885e927a0100000000000000b5e0d0ae74b0ac76c0195fecca9660a241920ba97cdc5a247c7e941ee1f5407c01000000000000001b47bfdc6dc74483d9f8b2b6317c4c1a38b781bdcb8e054ba268fe470a2617a00100000000000000f33b53556f28f27d250585317cd57a18f37c5d5f2b3c1bd00a0c91ea54f1636f0100000000000000c629791ed8a776d1ec9a20659c90c0aa152ecf281d3180b6fbd15e3aad9eece80100000000000000e3d0f7b2d2a791eb30b29f912ea13f9586c8d2cbcd600ddd87b1e23481f2559e01000000000000003ee2346e1195969237202d47b843937c1038c34c67dca5a3fcd1127b9e8aa014010000000000000080629b67e7b2d6f57e9da3cb29cc8463a65d125039628124784f944b94c29e880100000000000000eb644b1724854d4d8b22dce0e1bcb890f6643a3a072bf9f8c8add4e47fac659b01000000000000002c3ce4d7102f4236e0df2e8f5797f6dc3d2e6f0e57d373c9a4b89b21d4d228680100000000000000fc678679f11bc904720421273689e6826acb42b21e2c4c5c1d7bf532d8966841010000000000000030afa9ef79458f844a27a3881655b6eafb90b3912737f1bcddb95e78eb098c1d0100000000000000988049da395a4bc05a5c5967e3e492c95006f08f7c6176a4686889717a42e2c80100000000000000c222ba3fffec09b85f1992db2dcaeaa48205903219789369855e347fd188144b010000000000000012c277c98d0593ec3d0f9d01e8ce08f67813197b67fe96d2be7c5ba6481515df01000000000000002f0500000000000000017561dc0000bd1400000000000000002904050001000000000000002a0d050002000000000000002f16050003000000000000008e1f05000400000000000000ee28050005000000000000004d32050006000000000000009d3b05000700000000000000fd44050008000000000000005c4e05000900000000000000b75705000a00000000000000176105000b00000000000000766a05000c00000000000000d67305000d00000000000000357d05000e00000000000000958605000f00000000000000f58f0500100000000000000055990500110000000000000095a205001200000000000000d8ab050013000000000000000db50500140000000000000024da05001500000000000000aaec05001600000000000000f4f5050017000000000000003bff050018000000000000008b0806001900000000000000992406001a00000000000000f92d06001b000000000000000d4a06001c00000000000000685306001d00000000000000b65c06001e00000000000000f76506001f00000000000000308b060020000000000000007b940600210000000000000025a70600220000000000000033c3060023000000000000007fcc06002400000000000000c3d50600250000000000000011df060026000000000000005ae806002700000000000000a0f106002800000000000000410407002900000000000000880d07002a000000000000001b3c07002b00000000000000764507002c00000000000000357407002d00000000000000239907002e000000000000006fa207002f00000000000000c3ab070030000000000000006abe07003100000000000000bdc7070032000000000000000fd107003300000000000000b2e3070034000000000000000aed07003500000000000000971b080036000000000000009d24080037000000000000009c4008003800000000000000255308003900000000000000735c08003a000000000000000c6f08003b00000000000000048b08003c00000000000000589408003d00000000000000d3c208003e00000000000000e4de08003f000000000000003fe808004000000000000000f7fa08004100000000000000aa0d09004200000000000000153309004300000000000000fc6a090044000000000000003e74090045000000000000009a7d0900460000000000000000a30900470000000000000014db0900480000000000000020130a004900000000000000791c0a004a00000000000000364b0a004b0000000000000043830a004c00000000000000e5950a004d0000000000000045bb0a004e0000000000000059f30a004f000000000000000e060b005000000000000000812b0b005100000000000000dc340b005200000000000000ef500b005300000000000000a3630b005400000000000000b69b0b005500000000000000c7d30b005600000000000000dd0b0c005700000000000000f3430c005800000000000000087c0c00590000000000000052b30c005a0000000000000060eb0c005b00000000000000baf40c005c0000000000000072230d005d00000000000000805b0d005e000000000000007e930d005f000000000000007ccb0d00600000000000000076030e006100000000000000793b0e00620000000000000088730e00630000000000000092ab0e00640000000000000083e30e006500000000000000731b0f00660000000000000079530f006700000000000000748b0f0068000000000000001fc30f006900000000000000d0fa0f006a00000000000000633210006b00000000000000826a10006c0000000000000028a210006d0000000000000005b310006e0000000000000055d810006f000000000000004810110070000000000000006548110071000000000000008e8011007200000000000000bfb811007300000000000000bbf011007400000000000000e828120075000000000000001561120076000000000000003b991200770000000000000058d112007800000000000000770913007900000000000000944113007a00000000000000c07913007b00000000000000e7b113007c000000000000000cea13007d0000000000000067f313007e00000000000000d31814007f000000000000002e22140080000000000000008c2b14008100000000000000545a14008200000000000000ad63140083000000000000000e89140084000000000000006892140085000000000000008dca14008600000000000000b00215008700000000000000d03a15008800000000000000f3721500890000000000000015ab15008a000000000000003be315008b000000000000005d1b16008c00000000000000855316008d00000000000000b18b16008e00000000000000d3c316008f00000000000000e9fb16009000000000000000073417009100000000000000bf4617009200000000000000286c1700930000000000000029a41700940000000000000041dc17009500000000000000591418009600000000000000bf3918009700000000000000704c18009800000000000000948418009900000000000000f28d18009a00000000000000bcbc18009b00000000000000e4f418009c000000000000000b2d19009d000000000000002c6519009e00000000000000896e19009f00000000000000519d1900a00000000000000075d51900a100000000000000920d1a00a200000000000000ec161a00a300000000000000b6451a00a400000000000000887d1a00a50000000000000077b51a00a600000000000000cdbe1a00a70000000000000070ed1a00a80000000000000083091b00a9000000000000004e251b00aa00000000000000fe371b00ab00000000000000065d1b00ac000000000000005f661b00ad00000000000000bd6f1b00ae00000000000000de941b00af00000000000000fecc1b00b0000000000000001f041c00b1000000000000000c321c00b2000000000000002f3b1c00b3000000000000002e721c00b4000000000000000ca01c00b50000000000000044a91c00b60000000000000022e11c00b70000000000000044191d00b8000000000000000c481d00b9000000000000006b511d00ba000000000000008b891d00bb00000000000000a5c11d00bc0000000000000053f91d00bd00000000000000ff301e00be00000000000000054d1e00bf0000000000000002691e00c000000000000000d1a01e00c100000000000000c5d81e00c200000000000000cf101f00c30000000000000083481f00c400000000000000af801f00c500000000000000d0b81f00c600000000000000f0f01f00c7000000000000001b292000c80000000000000039612000c90000000000000054992000ca000000000000004fd12000cb000000000000004c092100cc00000000000000031c2100cd000000000000006d412100ce00000000000000cc4a2100cf0000000000000098792100d000000000000000c4b12100d100000000000000eee92100d20000000000000011222200d300000000000000325a2200d40000000000000055922200d50000000000000075ca2200d6000000000000008f022300d700000000000000b13a2300d800000000000000cd722300d90000000000000078852300da00000000000000ce8e2300db00000000000000bdaa2300dc00000000000000abe22300dd0000000000000012112400de00000000000000501a2400df0000000000000045512400e000000000000000a1882400e1000000000000005fc02400e20000000000000013f82400e30000000000000007302500e40000000000000013682500e500000000000000c37a2500e600000000000000a8962500e700000000000000fb9f2500e80000000000000000d82500e90000000000000019102600ea000000000000002b482600eb0000000000000028802600ec000000000000002eb82600ed0000000000000044d42600ee0000000000000058f02600ef00000000000000b3f92600f00000000000000065282700f10000000000000057602700f20000000000000064982700f3000000000000008dd02700f400000000000000a7ec2700f500000000000000b9082800f600000000000000e0402800f700000000000000f6782800f80000000000000019b12800f90000000000000040e92800fa000000000000006c212900fb00000000000000a0592900fc00000000000000107f2900fd00000000000000bc912900fe00000000000000eac92900ff00000000000000fd012a000001000000000000ff1d2a0001010000000000000c3a2a0002010000000000002b722a00030100000000000005aa2a000401000000000000fce12a0005010000000000004ceb2a000601000000000000e0fd2a000701000000000000c3192b000801000000000000be512b0009010000000000000a772b000a01000000000000ae892b000b01000000000000b0a52b000c01000000000000abc12b000d010000000000009bf92b000e0100000000000093312c000f0100000000000087692c00100100000000000075a12c00110100000000000074d92c00120100000000000089112d00130100000000000099492d001401000000000000b0812d001501000000000000c3b92d001601000000000000d1f12d001701000000000000d6292e001801000000000000e9612e001901000000000000ea992e001a01000000000000efd12e001b01000000000000f8092f001c01000000000000f0412f001d01000000000000e9792f001e0100000000000036832f001f01000000000000b2b12f002001000000000000a9cd2f00210100000000000094e92f0022010000000000007121300023010000000000003b5930002401000000000000089130002501000000000000599a30002601000000000000f6c830002701000000000000e30031002801000000000000c03831002901000000000000a17031002a01000000000000f27931002b010000000000007fa831002c010000000000005de031002d01000000000000aae931002e01000000000000441832002f01000000000000295032003001000000000000fe8732003101000000000000aa9a3200320100000000000010c0320033010000000000003af8320034010000000000005f303300350100000000000059683300360100000000000078a0330037010000000000009bd833003801000000000000cb1034003901000000000000f44834003a010000000000001c8134003b0100000000000044b934003c0100000000000055f134003d010000000000009dfa34003e01000000000000302935003f01000000000000c6573500400100000000000023613500410100000000000053993500420100000000000080d135004301000000000000560036004401000000000000b10936004501000000000000ce4136004601000000000000037a3600470100000000000031b2360048010000000000005fea360049010000000000007b2237004a01000000000000995a37004b01000000000000f56337004c01000000000000c69237004d01000000000000feca37004e01000000000000340338004f01000000000000683b380050010000000000009e7338005101000000000000c9ab38005201000000000000dcc7380053010000000000003cd138005401000000000000f8e338005501000000000000b0f6380056010000000000001c1c390057010000000000007a2539005801000000000000da2e39005901000000000000525439005a01000000000000878c39005b01000000000000bbc439005c01000000000000f3fc39005d0100000000000028353a005e010000000000005f6d3a005f0100000000000098a53a006001000000000000cedd3a0061010000000000000c163b006201000000000000404e3b00630100000000000019853b006401000000000000608e3b006501000000000000b8973b0066010000000000000fa13b006701000000000000a7b33b006801000000000000fabc3b00690100000000000049c63b006a010000000000009ccf3b006b01000000000000eed83b006c01000000000000c1f43b006d0100000000000014fe3b006e0100000000000066073c006f01000000000000b7103c0070010000000000009e2c3c007101000000000000ee353c00720100000000000094483c007301000000000000e0513c0074010000000000007c643c0075010000000000001d773c0076010000000000004b9c3c00770100000000000010d43c007801000000000000d80b3d0079010000000000001a153d007a0100000000000053433d007b01000000000000ea553d007c01000000000000225f3d007d0100000000000072683d007e01000000000000b4713d007f01000000000000fb7a3d0080010000000000007a8d3d008101000000000000b8963d00820100000000000006a03d00830100000000000088b23d008401000000000000c8bb3d0085010000000000000bc53d0086010000000000001dea3d008701000000000000e9053e008801000000000000b5213e0089010000000000003b343e008a01000000000000843d3e008b010000000000005e593e008c010000000000001f913e008d0100000000000065c83e008e010000000000006bed3e008f01000000000000a9f63e009001000000000000f6ff3e009101000000000000c1373f0092010000000000005c4a3f0093010000000000003b663f009401000000000000856f3f009501000000000000cf783f0096010000000000003ea73f009701000000000000ccde3f0098010000000000008516400099010000000000001e2940009a010000000000006e4e40009b01000000000000c35740009c010000000000009b8640009d01000000000000cebe40009e0100000000000001f740009f01000000000000372f4100a00100000000000097384100a10100000000000070674100a201000000000000a99f4100a30100000000000065b24100a401000000000000ddd74100a50100000000000096ea4100a6010000000000000b104200a70100000000000044484200a8010000000000009c514200a9010000000000003b804200aa0100000000000051b84200ab010000000000006fd44200ac010000000000005ef04200ad01000000000000b9f94200ae010000000000006a284300af0100000000000078604300b00100000000000077984300b101000000000000abd04300b20100000000000064e34300b30100000000000072ff4300b401000000000000d2084400b50100000000000008414400b6010000000000002e794400b7010000000000005eb14400b8010000000000007de94400b9010000000000009e214500ba010000000000005d344500bb01000000000000d0594500bc0100000000000006924500bd010000000000001aca4500be010000000000004a024600bf01000000000000603a4600c00100000000000084724600c101000000000000abaa4600c20100000000000047bd4600c3010000000000009ec64600c401000000000000a0e24600c5010000000000005df54600c601000000000000bf1a4700c701000000000000d1524700c8010000000000007f814700c901000000000000dd8a4700ca0100000000000039944700cb01000000000000f2c24700cc0100000000000010fb4700cd01000000000000d5294800ce010000000000002c334800cf01000000000000f9614800d001000000000000596b4800d10100000000000078874800d2010000000000008da34800d301000000000000aadb4800d401000000000000c6134900d501000000000000eb4b4900d601000000000000e7834900d701000000000000f9bb4900d801000000000000b6ce4900d9010000000000001bf44900da010000000000004a2c4a00db0100000000000066644a00dc010000000000002f7d4a00dd0100000000000019994a00de01000000000000c0ab4a00df01000000000000aec74a00e001000000000000fed04a00e101000000000000bbff4a00e20100000000000019094b00e301000000000000902e4b00e40100000000000041414b00e50100000000000010704b00e6010000000000006e794b00e7010000000000002b8c4b00e80100000000000094b14b00e901000000000000a4e94b00ea01000000000000d4214c00eb01000000000000d7594c00ec01000000000000e8914c00ed0100000000000004ae4c00ee01000000000000ebc94c00ef0100000000000014024d00f001000000000000fe394d00f1010000000000000a724d00f201000000000000667b4d00f30100000000000013aa4d00f40100000000000031c64d00f50100000000000037e24d00f6010000000000004afe4d00f7010000000000002c1a4e00f801000000000000ea2c4e00f90100000000000049364e00fa010000000000004e524e00fb01000000000000628a4e00fc0100000000000079a64e00fd010000000000001ab94e00fe0100000000000079c24e00ff0100000000000094de4e000002000000000000aafa4e00010200000000000059324f00020200000000000004654f000302000000000000ff764f0004020000000000000d804f0005020000000000007e924f000602000000000000c29b4f000702000000000000f4d34f000802000000000000160c50000902000000000000504450000a02000000000000877c50000b02000000000000b6b450000c02000000000000e7ec50000d0200000000000046f650000e02000000000000b61b51000f020000000000001625510010020000000000004f5d510011020000000000000f7051001202000000000000889551001302000000000000b5cd5100140200000000000014d751001502000000000000e605520016020000000000001f3e5200170200000000000053765200180200000000000089ae52001902000000000000e8b752001a02000000000000b7e652001b0200000000000074f952001c02000000000000e81e53001d020000000000001a5753001e02000000000000558f53001f020000000000008ac753002002000000000000b9ff53002102000000000000f13754002202000000000000277054002302000000000000418c54002402000000000000d1a354002502000000000000d9c8540026020000000000007edb54002702000000000000b81355002802000000000000e34b55002902000000000000c58355002a02000000000000d6bb55002b0200000000000007f455002c02000000000000c30656002d020000000000002c2c56002e020000000000005d6456002f020000000000008f9c56003002000000000000c9d456003102000000000000070d570032020000000000004345570033020000000000007a7d570034020000000000007d99570035020000000000009ab557003602000000000000b4ed57003702000000000000f225580038020000000000002f5e580039020000000000006b9658003a02000000000000a6ce58003b02000000000000e30659003c02000000000000183f59003d02000000000000517759003e02000000000000ad8059003f020000000000008baf59004002000000000000e9b859004102000000000000c5e75900420200000000000002205a0043020000000000003f585a0044020000000000007c905a004502000000000000bcc85a004602000000000000f1005b004702000000000000111d5b00480200000000000030395b0049020000000000006f715b004a02000000000000aca95b004b02000000000000e9e15b004c02000000000000251a5c004d0200000000000060525c004e020000000000009f8a5c004f02000000000000dbc25c00500200000000000019fb5c00510200000000000058335d005202000000000000956b5d005302000000000000c7a35d005402000000000000f7db5d00550200000000000031145e0056020000000000006f4c5e005702000000000000a7845e005802000000000000e0bc5e0059020000000000003fc65e005a020000000000001cf55e005b02000000000000582d5f005c0200000000000093655f005d02000000000000cf9d5f005e0200000000000005d65f005f02000000000000440e600060020000000000008346600061020000000000006a7e6000620200000000000056b46000630200000000000000ec60006402000000000000a72361006502000000000000e25b61006602000000000000f293610067020000000000001bcc61006802000000000000dade61006902000000000000590462006a02000000000000963c62006b02000000000000cc7462006c020000000000008c8762006d02000000000000ffac62006e020000000000003ae562006f02000000000000731d63007002000000000000b05563007102000000000000e98d630072020000000000001dc6630073020000000000005dfe63007402000000000000993664007502000000000000d86e6400760200000000000017a76400770200000000000051df640078020000000000008a1765007902000000000000c34f65007a02000000000000018865007b020000000000003ec065007c020000000000007af865007d02000000000000b63066007e02000000000000f06866007f0200000000000004a16600800200000000000041d966008102000000000000711167008202000000000000ac4967008302000000000000de8167008402000000000000f8b967008502000000000000b8cc6700860200000000000035f2670087020000000000006e2a680088020000000000001c3d680089020000000000007f6268008a02000000000000ba9a68008b02000000000000f3d268008c02000000000000310b69008d02000000000000704369008e02000000000000ae7b69008f02000000000000eeb3690090020000000000002bec6900910200000000000065246a009202000000000000a45c6a009302000000000000e0946a0094020000000000001dcd6a009502000000000000dbdf6a00960200000000000059056b00970200000000000018186b009802000000000000923d6b009902000000000000b0756b009a02000000000000e6ad6b009b0200000000000021e66b009c020000000000005e1e6c009d0200000000000096566c009e02000000000000d28e6c009f020000000000000ac76c00a00200000000000047ff6c00a10200000000000077376d00a202000000000000876f6d00a3020000000000000fa76d00a40200000000000059dc6d00a50200000000000022146e00a602000000000000464c6e00a70200000000000071846e00a802000000000000eea96e00a902000000000000aabc6e00aa0200000000000085eb6e00ab02000000000000e4f46e00ac020000000000001c2d6f00ad02000000000000da3f6f00ae0200000000000053656f00af020000000000008c9d6f00b002000000000000c4d56f00b102000000000000d90d7000b202000000000000d7457000b302000000000000f67d7000b402000000000000deb57000b502000000000000b2ed7000b602000000000000a9257100b702000000000000975d7100b802000000000000338c7100b9020000000000007e957100ba0200000000000068b17100bb0200000000000050cd7100bc020000000000001c057200bd02000000000000610e7200be02000000000000c13c7200bf020000000000006b747200c0020000000000005aac7200c10200000000000032e47200c202000000000000dcf67200c302000000000000321c7300c4020000000000002b547300c5020000000000007d8b7300c60200000000000020c37300c702000000000000cefa7300c8020000000000003c327400c9020000000000009b697400ca02000000000000eda07400cb0200000000000056d87400cc0200000000000090107500cd02000000000000ad2c7500ce020000000000000b367500cf02000000000000c7487500d002000000000000fe807500d10200000000000039b97500d20200000000000073f17500d30200000000000030047600d4020000000000004b207600d502000000000000a9297600d60200000000000006337600d702000000000000d3617600d80200000000000090747600d902000000000000089a7600da020000000000002fd27600db020000000000001a0a7700dc0200000000000022427700dd02000000000000007a7700de02000000000000d2b17700df02000000000000f8e97700e0020000000000002b227800e102000000000000635a7800e202000000000000a0927800e302000000000000daca7800e40200000000000011037900e502000000000000483b7900e60200000000000085737900e702000000000000b1ab7900e802000000000000dae37900e902000000000000121c7a00ea0200000000000049547a00eb02000000000000878c7a00ec02000000000000bfc47a00ed02000000000000edfc7a00ee0200000000000026357b00ef02000000000000606d7b00f0020000000000009da57b00f102000000000000cddd7b00f20200000000000006167c00f3020000000000003f4e7c00f402000000000000fb607c00f50200000000000077867c00f602000000000000b4be7c00f70200000000000014c87c00f802000000000000e0f67c00f9020000000000001b2f7d00fa0200000000000058677d00fb02000000000000959f7d00fc02000000000000d2d77d00fd02000000000000ec0f7e00fe0200000000000025487e00ff020000000000005f807e0000030000000000009ab87e000103000000000000d3f07e000203000000000000ee0c7f0003030000000000000a297f000403000000000000c53b7f00050300000000000043617f0006030000000000007b997f000703000000000000b9d17f000803000000000000f20980000903000000000000284280000a030000000000005e7a80000b0300000000000099b280000c03000000000000d2ea80000d03000000000000082381000e030000000000003e5b81000f030000000000007b9381001003000000000000b8cb81001103000000000000f30382001203000000000000313c82001303000000000000697482001403000000000000a6ac82001503000000000000c4c882001603000000000000e0e482001703000000000000ff00830018030000000000001e1d83001903000000000000dd2f83001a030000000000005b5583001b03000000000000988d83001c03000000000000d5c583001d0300000000000010fe83001e030000000000004e3684001f03000000000000826e84002003000000000000bba684002103000000000000f5de840022030000000000006f0485002303000000000000cc0d850024030000000000002c1785002503000000000000ea2985002603000000000000634f850027030000000000007e6b850028030000000000009a878500290300000000000017ad85002a03000000000000d2bf85002b0300000000000031c985002c030000000000000ef885002d030000000000004a3086002e03000000000000866886002f03000000000000bea086003003000000000000f2d8860031030000000000002a1187003203000000000000871a870033030000000000006449870034030000000000001d5c87003503000000000000998187003603000000000000cfb987003703000000000000eed5870038030000000000000cf2870039030000000000004a2a88003a03000000000000a83388003b03000000000000826288003c03000000000000b69a88003d03000000000000efd288003e030000000000002d0b89003f030000000000004d27890040030000000000006c4389004103000000000000ab7b89004203000000000000eab38900430300000000000028ec8900440300000000000068248a004503000000000000a05c8a004603000000000000b4948a004703000000000000f4cc8a00480300000000000030058b0049030000000000006f3d8b004a030000000000008e598b004b03000000000000ae758b004c03000000000000ecad8b004d0300000000000028e68b004e03000000000000331e8c004f030000000000004f568c0050030000000000008e8e8c005103000000000000c7c68c00520300000000000005ff8c00530300000000000041378d005403000000000000746f8d005503000000000000a4a78d00560300000000000064ba8d005703000000000000e4df8d0058030000000000000a188e00590300000000000023508e005a0300000000000027888e005b03000000000000d89a8e005c0300000000000043c08e005d0300000000000082f88e005e03000000000000c0308f005f03000000000000ff688f0060030000000000001ba18f00610300000000000059d98f006203000000000000981190006303000000000000d64990006403000000000000f56590006503000000000000158290006603000000000000758b9000670300000000000053ba9000680300000000000092f290006903000000000000d22a91006a03000000000000106391006b03000000000000489b91006c03000000000000a2a491006d030000000000001bd391006e03000000000000530992006f03000000000000d32e9200700300000000000090419200710300000000000074799200720300000000000094b19200730300000000000072e092007403000000000000d2e992007503000000000000b21893007603000000000000122293007703000000000000445a93007803000000000000739293007903000000000000f3b793007a03000000000000abca93007b030000000000005ddd93007c03000000000000c40294007d03000000000000e13a94007e03000000000000217394007f0300000000000059ab9400800300000000000090e394008103000000000000c31b95008203000000000000ea53950083030000000000009866950084030000000000000b8c9500850300000000000046c49500860300000000000057fc950087030000000000008f3496008803000000000000cf6c960089030000000000000ba596008a0300000000000045dd96008b03000000000000a3e696008c03000000000000801597008d03000000000000bc4d97008e03000000000000f78597008f030000000000002ebe9700900300000000000030f6970091030000000000005a2e98009203000000000000956698009303000000000000d49e9800940300000000000014d7980095030000000000003b0f990096030000000000006c4799009703000000000000ac7f9900980300000000000078b79900990300000000000026ca99009a030000000000007cef99009b0300000000000085279a009c03000000000000be5f9a009d03000000000000fd979a009e03000000000000b9aa9a009f0300000000000022d09a00a0030000000000003dec9a00a10300000000000058089b00a20300000000000074249b00a3030000000000008b409b00a403000000000000e4499b00a50300000000000038789b00a60300000000000076819b00a703000000000000e4af9b00a803000000000000b7e79b00a903000000000000731f9c00aa03000000000000a6289c00ab030000000000002f3b9c00ac0300000000000012579c00ad030000000000005d609c00ae03000000000000cb8e9c00af0300000000000057a19c00b00300000000000086c69c00b1030000000000005afe9c00b20300000000000002369d00b303000000000000bc6d9d00b40300000000000099a59d00b5030000000000004edd9d00b603000000000000db149e00b703000000000000e0399e00b803000000000000724c9e00b9030000000000002a849e00ba03000000000000ee9f9e00bb03000000000000d1bb9e00bc030000000000007df39e00bd03000000000000f02a9f00be030000000000006a629f00bf03000000000000ff999f00c0030000000000002ed19f00c1030000000000004608a000c203000000000000893fa000c303000000000000a476a000c403000000000000dfada000c5030000000000001cb7a000c6030000000000003ce5a000c703000000000000921ca100c8030000000000008c53a100c903000000000000988aa100ca0300000000000010a6a100cb03000000000000a0c1a100cc03000000000000e5d3a100cd0300000000000072f8a100ce030000000000007c2fa200cf030000000000003766a200d003000000000000389da200d10300000000000056a6a200d203000000000000a9b8a200d303000000000000cac1a200d4030000000000001ad4a200d503000000000000200ba300d6030000000000002714a300d703000000000000bc41a300d8030000000000006778a300d9030000000000000aafa300da0300000000000046dca300db0300000000000065e5a300dc03000000000000a81ba400dd03000000000000d72da400de030000000000002352a400df030000000000006288a400e003000000000000c1bea400e103000000000000f8f4a400e203000000000000212ba500e3030000000000003f61a500e403000000000000656aa500e503000000000000e497a500e60300000000000040cea500e703000000000000b204a600e803000000000000fc3aa600e9030000000000009471a600ea0300000000000037a8a600eb030000000000001adfa600ec03000000000000ea0ca700ed030000000000000e16a700ee030000000000005228a700ef030000000000007d31a700f003000000000000034da700f1030000000000002084a700f2030000000000004a8da700f303000000000000a99fa700f403000000000000f6baa700f503000000000000c1f1a700f603000000000000be28a800f703000000000000a65fa800f8030000000000003e7ba800f903000000000000c296a800fa03000000000000c3cda800fb03000000000000d504a900fc03000000000000f83ba900fd030000000000005f73a900fe03000000000000ceaaa900ff030000000000000bb4a900000400000000000005e2a90001040000000000005e19aa000204000000000000c12baa0003040000000000008e50aa000404000000000000fd62aa0005040000000000008175aa000604000000000000fa87aa0007040000000000002f91aa0008040000000000005dbfaa000904000000000000a3c8aa000a04000000000000e5f6aa000b04000000000000e41bab000c040000000000005b2eab000d04000000000000e765ab000e040000000000004c9dab000f0400000000000085a6ab001004000000000000b8d4ab001104000000000000fdddab0012040000000000003b0cac001304000000000000d043ac001404000000000000827bac001504000000000000b8a0ac0016040000000000005bb3ac00170400000000000029ebac0018040000000000006af4ac0019040000000000000e07ad001a04000000000000f422ad001b04000000000000432cad001c040000000000009935ad001d04000000000000ee3ead001e04000000000000d55aad001f04000000000000bd76ad002004000000000000a592ad00210400000000000076caad002204000000000000f6dcad002304000000000000e001ae0024040000000000004f39ae0025040000000000001371ae0026040000000000005f7aae002704000000000000fc8cae002804000000000000cda8ae0029040000000000005ebbae002a0400000000000081e0ae002b040000000000004f18af002c040000000000001e50af002d04000000000000e687af002e04000000000000a0bfaf002f040000000000005ff7af003004000000000000042fb0003104000000000000da66b00032040000000000009a9eb000330400000000000063d6b0003404000000000000300eb1003504000000000000da45b10036040000000000009a7db100370400000000000050b5b100380400000000000029edb1003904000000000000971bb2003a04000000000000e024b2003b04000000000000995cb2003c040000000000006694b2003d0400000000000048b0b2003e040000000000002eccb2003f0400000000000075d5b200400400000000000008e8b2004104000000000000e703b3004204000000000000ce1fb3004304000000000000b63bb30044040000000000000d45b30045040000000000009f57b30046040000000000007573b3004704000000000000c67cb30048040000000000003aabb3004904000000000000e4e2b3004a04000000000000651ab4004b04000000000000f951b4004c040000000000009389b4004d0400000000000025c1b4004e04000000000000f6f8b4004f04000000000000241eb5005004000000000000b130b50051040000000000007068b500520400000000000040a0b5005304000000000000ecd7b50054040000000000000510b60055040000000000003e48b60056040000000000007a80b6005704000000000000b7b8b6005804000000000000f3f0b60059040000000000002f29b7005a04000000000000ae4eb7005b040000000000006861b7005c04000000000000a599b7005d04000000000000ded1b7005e040000000000005cf7b7005f04000000000000160ab80060040000000000005042b8006104000000000000964bb8006204000000000000687ab8006304000000000000a6b2b800640400000000000066c5b8006504000000000000e5eab80066040000000000000423b90067040000000000003f5bb90068040000000000005d77b90069040000000000007b93b9006a04000000000000b7cbb9006b04000000000000ef03ba006c04000000000000133cba006d040000000000003358ba006e040000000000005174ba006f0400000000000042acba0070040000000000006ce4ba007104000000000000a21cbb007204000000000000e054bb007304000000000000405ebb0074040000000000001b8dbb0075040000000000002ec5bb0076040000000000006dfdbb007704000000000000a435bc007804000000000000d06dbc0079040000000000000ca6bc007a040000000000004adebc007b040000000000008716bd007c04000000000000c34ebd007d04000000000000fc86bd007e040000000000003bbfbd007f040000000000007af7bd008004000000000000d500be008104000000000000b32fbe008204000000000000ea67be00830400000000000027a0be00840400000000000065d8be008504000000000000a410bf008604000000000000dd48bf0087040000000000003b52bf0088040000000000001881bf0089040000000000008fb8bf008a04000000000000cbc1bf008b04000000000000f8efbf008c040000000000007602c0008d040000000000008327c0008e04000000000000075fc0008f040000000000005d96c000900400000000000009cec00091040000000000003b06c10092040000000000002d3ec10093040000000000006476c10094040000000000007aaec1009504000000000000b9e6c1009604000000000000ef1ec20097040000000000002c57c2009804000000000000698fc20099040000000000008cc7c2009a040000000000009effc2009b04000000000000da37c3009c04000000000000ee6fc3009d0400000000000029a8c3009e0400000000000067e0c3009f04000000000000240fc400a0040000000000008218c400a104000000000000b150c400a204000000000000c088c400a304000000000000d2c0c400a404000000000000f6f8c400a5040000000000001231c500a604000000000000d143c500a7040000000000004d69c500a80400000000000089a1c500a904000000000000c4d9c500aa040000000000000112c600ab040000000000005c1bc600ac040000000000003a4ac600ad040000000000007482c600ae04000000000000abbac600af04000000000000e4f2c600b0040000000000001d2bc700b1040000000000002e47c700b2040000000000004863c700b304000000000000687fc700b404000000000000829bc700b5040000000000009bd3c700b604000000000000d80bc800b7040000000000001144c800b804000000000000704dc800b904000000000000d056c800ba040000000000004e7cc800bb0400000000000080b4c800bc04000000000000b1ecc800bd040000000000009808c900be040000000000008d24c900bf04000000000000c75cc900c004000000000000df94c900c104000000000000feb0c900c2040000000000001dcdc900c3040000000000004605ca00c4040000000000006e3dca00c5040000000000009e75ca00c604000000000000029bca00c704000000000000aeadca00c8040000000000008adcca00c904000000000000eae5ca00ca04000000000000251ecb00cb04000000000000fa55cb00cc04000000000000778ccb00cd04000000000000eec3cb00ce0400000000000005fccb00cf040000000000004134cc00d004000000000000716ccc00d10400000000000096a4cc00d204000000000000d3dccc00d30400000000000086efcc00d4040000000000000215cd00d504000000000000ac27cd00d604000000000000264dcd00d7040000000000008656cd00d8040000000000006385cd00d9040000000000003bb4cd00da0400000000000099bdcd00db04000000000000d8f5cd00dc04000000000000172ece00dd040000000000005366ce00de04000000000000909ece00df04000000000000b7d6ce00e00400000000000068e9ce00e104000000000000cc0ecf00e2040000000000000547cf00e304000000000000427fcf00e40400000000000079b7cf00e504000000000000b8efcf00e604000000000000f427d000e7040000000000000b60d000e8040000000000004698d000e90400000000000083d0d000ea04000000000000c008d100eb04000000000000fa40d100ec040000000000003679d100ed0400000000000073b1d100ee0400000000000087cdd100ef04000000000000a6e9d100f004000000000000e521d200f1040000000000001e5ad200f2040000000000005692d200f30400000000000092cad200f40400000000000052ddd200f504000000000000ce02d300f604000000000000e13ad300f7040000000000003444d300f804000000000000dc56d300f904000000000000ef72d300fa040000000000004d7cd300fb0400000000000024abd300fc04000000000000a1d0d300fd040000000000005be3d300fe04000000000000901bd400ff04000000000000ce53d40000050000000000000a8cd40001050000000000003ac4d40002050000000000004ae0d400030500000000000069fcd4000405000000000000a134d50005050000000000006047d5000605000000000000de6cd50007050000000000001ba5d500080500000000000058ddd50009050000000000009415d6000a05000000000000d24dd6000b05000000000000f085d6000c050000000000001ebed6000d05000000000000fbecd6000e050000000000005bf6d6000f050000000000008b2ed7001005000000000000c566d7001105000000000000029fd700120500000000000036d7d70013050000000000006f0fd80014050000000000009f47d8001505000000000000c97fd8001605000000000000e4b7d80017050000000000001ff0d80018050000000000005928d90019050000000000009560d9001a050000000000005473d9001b05000000000000718fd9001c05000000000000d198d9001d0500000000000031a2d9001e050000000000000fd1d9001f05000000000000cfe3d90020050000000000004f09da0021050000000000008941da002205000000000000b979da002305000000000000edb1da00240500000000000047bbda00250500000000000054d7da00260500000000000007eada00270500000000000067f3da0028050000000000003a22db0029050000000000005e5adb002a050000000000007892db002b05000000000000b0cadb002c05000000000000e702dc002d05000000000000183bdc002e050000000000007644dc00" - } - } - \ No newline at end of file + "badBlocks": null, + "bootNodes": [ + "/dns/polkadot-bootnode-0.polkadot.io/tcp/30333/p2p/12D3KooWSz8r2WyCdsfWHgPyvD8GKQdJ1UAiRmrcrs8sQB3fe2KU", + "/dns/polkadot-bootnode-0.polkadot.io/tcp/30334/ws/p2p/12D3KooWSz8r2WyCdsfWHgPyvD8GKQdJ1UAiRmrcrs8sQB3fe2KU", + "/dns/polkadot-bootnode-0.polkadot.io/tcp/443/wss/p2p/12D3KooWSz8r2WyCdsfWHgPyvD8GKQdJ1UAiRmrcrs8sQB3fe2KU", + "/dns/polkadot-bootnode-1.polkadot.io/tcp/30333/p2p/12D3KooWFN2mhgpkJsDBuNuE5427AcDrsib8EoqGMZmkxWwx3Md4", + "/dns/polkadot-bootnode-1.polkadot.io/tcp/30334/ws/p2p/12D3KooWFN2mhgpkJsDBuNuE5427AcDrsib8EoqGMZmkxWwx3Md4", + "/dns/polkadot-bootnode-1.polkadot.io/tcp/443/wss/p2p/12D3KooWFN2mhgpkJsDBuNuE5427AcDrsib8EoqGMZmkxWwx3Md4", + "/dns/polkadot-boot.dwellir.com/tcp/30334/ws/p2p/12D3KooWKvdDyRKqUfSAaUCbYiLwKY8uK3wDWpCuy2FiDLbkPTDJ", + "/dns/polkadot-boot.dwellir.com/tcp/443/wss/p2p/12D3KooWKvdDyRKqUfSAaUCbYiLwKY8uK3wDWpCuy2FiDLbkPTDJ", + "/dns/boot.stake.plus/tcp/30333/p2p/12D3KooWKT4ZHNxXH4icMjdrv7EwWBkfbz5duxE5sdJKKeWFYi5n", + "/dns/boot.stake.plus/tcp/30334/wss/p2p/12D3KooWKT4ZHNxXH4icMjdrv7EwWBkfbz5duxE5sdJKKeWFYi5n", + "/dns/boot-node.helikon.io/tcp/7070/p2p/12D3KooWS9ZcvRxyzrSf6p63QfTCWs12nLoNKhGux865crgxVA4H", + "/dns/boot-node.helikon.io/tcp/7072/wss/p2p/12D3KooWS9ZcvRxyzrSf6p63QfTCWs12nLoNKhGux865crgxVA4H", + "/dns/polkadot.bootnode.amforc.com/tcp/30333/p2p/12D3KooWAsuCEVCzUVUrtib8W82Yne3jgVGhQZN3hizko5FTnDg3", + "/dns/polkadot.bootnode.amforc.com/tcp/30334/wss/p2p/12D3KooWAsuCEVCzUVUrtib8W82Yne3jgVGhQZN3hizko5FTnDg3", + "/dns/polkadot-bootnode.polkadotters.com/tcp/30333/p2p/12D3KooWPAVUgBaBk6n8SztLrMk8ESByncbAfRKUdxY1nygb9zG3", + "/dns/polkadot-bootnode.polkadotters.com/tcp/30334/wss/p2p/12D3KooWPAVUgBaBk6n8SztLrMk8ESByncbAfRKUdxY1nygb9zG3", + "/dns/boot-cr.gatotech.network/tcp/33100/p2p/12D3KooWK4E16jKk9nRhvC4RfrDVgcZzExg8Q3Q2G7ABUUitks1w", + "/dns/boot-cr.gatotech.network/tcp/35100/wss/p2p/12D3KooWK4E16jKk9nRhvC4RfrDVgcZzExg8Q3Q2G7ABUUitks1w", + "/dns/boot-polkadot.metaspan.io/tcp/13012/p2p/12D3KooWRjHFApinuqSBjoaDjQHvxwubQSpEVy5hrgC9Smvh92WF", + "/dns/boot-polkadot.metaspan.io/tcp/13015/ws/p2p/12D3KooWRjHFApinuqSBjoaDjQHvxwubQSpEVy5hrgC9Smvh92WF", + "/dns/boot-polkadot.metaspan.io/tcp/13016/wss/p2p/12D3KooWRjHFApinuqSBjoaDjQHvxwubQSpEVy5hrgC9Smvh92WF", + "/dns/polkadot-bootnode.turboflakes.io/tcp/30300/p2p/12D3KooWHJBMZgt7ymAdTRtadPcGXpJw79vBGe8z53r9JMkZW7Ha", + "/dns/polkadot-bootnode.turboflakes.io/tcp/30400/wss/p2p/12D3KooWHJBMZgt7ymAdTRtadPcGXpJw79vBGe8z53r9JMkZW7Ha", + "/dns/polkadot-boot-ng.dwellir.com/tcp/443/wss/p2p/12D3KooWFFqjBKoSdQniRpw1Y8W6kkV7takWv1DU2ZMkaA81PYVq", + "/dns/polkadot-boot-ng.dwellir.com/tcp/30336/p2p/12D3KooWFFqjBKoSdQniRpw1Y8W6kkV7takWv1DU2ZMkaA81PYVq", + "/dns/polkadot-bootnode.radiumblock.com/tcp/30335/wss/p2p/12D3KooWNwWNRrPrTk4qMah1YszudMjxNw2qag7Kunhw3Ghs9ea5", + "/dns/polkadot-bootnode.radiumblock.com/tcp/30333/p2p/12D3KooWNwWNRrPrTk4qMah1YszudMjxNw2qag7Kunhw3Ghs9ea5", + "/dns/dot-bootnode.stakeworld.io/tcp/30310/p2p/12D3KooWAb5MyC1UJiEQJk4Hg4B2Vi3AJdqSUhTGYUqSnEqCFMFg", + "/dns/dot-bootnode.stakeworld.io/tcp/30311/ws/p2p/12D3KooWAb5MyC1UJiEQJk4Hg4B2Vi3AJdqSUhTGYUqSnEqCFMFg", + "/dns/dot-bootnode.stakeworld.io/tcp/30312/wss/p2p/12D3KooWAb5MyC1UJiEQJk4Hg4B2Vi3AJdqSUhTGYUqSnEqCFMFg", + "/dns/dot14.rotko.net/tcp/35214/wss/p2p/12D3KooWPyEvPEXghnMC67Gff6PuZiSvfx3fmziKiPZcGStZ5xff", + "/dns/dot14.rotko.net/tcp/33214/p2p/12D3KooWPyEvPEXghnMC67Gff6PuZiSvfx3fmziKiPZcGStZ5xff" + ], + "chainType": "Live", + "forkBlocks": null, + "genesis": { + "stateRootHash": "0x29d0d972cd27cbc511e9589fcb7a4506d5eb6a9e8df205f00472e5ab354a4e17" + }, + "id": "polkadot", + "lightSyncState": { + "babeEpochChanges": "0x044736295f5ace57cb8f84fd667e8ed439db12f470d45736d046f67f54bccaada2b69c16010153bae41000000000b3c3e41000000000046646627e2646c3b728990fc968ec647c2170e66b55fbe48365e54557ae43756916a6160101b3c3e4100000000013cde41000000000086441c5d73eef491062ed18d31770e3f8a95eba0a9e78b407d28c706c6f06332775af16010113cde4100000000073d6e41000000000007494065a1f61226b66736add1b00a214e14611c3f78e1ab4d3e0d9c69ae732f875af16010113cde4100000000073d6e410000000000000104736295f5ace57cb8f84fd667e8ed439db12f470d45736d046f67f54bccaada2b69c160101da1d00000000000053bae410000000006009000000000000a50474a0fc84f72a4a9b8493379b7dfc59ca58a261a2e94997600d14b6b444c1475901000000000000009c40155989f6072e82caba245d7db7e40a60f866b403257976b89aba6be2b55b010000000000000014b0a3a620f70ada506d6ef1b7ab099219f2f05689523af7eebc81f9ba258e6001000000000000007067d4c5b492b11e2052a2bb0b4f729a52b3667afbca7dfefa863011254b5272010000000000000072ab87b654d80294c876cbefb534b3344c2f64159b015b89221331ec2145417501000000000000008008c1b7061a2402634fc15d3849e2913863beb9f55024bc8cc7fa7d6e397817010000000000000024a51a9bdb67213626d1b52bd8dbc0e9b94ea88ea417aa17b56212d1cea3e1780100000000000000488d520146f681678e9d229f5e29354edf65e521246b28a4175c0502e060b92001000000000000003ae9dfa8b24faaf16407328ff38a89b25fc7c673c44f9de3de0c011233d4226d01000000000000009e47382505cd1a803bdbe7803d36a61413e58697bd9396ce1607c89a48d1e051010000000000000020352ba0565811731625a8001d26f5d899e5856dedd0f9c6bc3bec2995704e5b01000000000000009cb389c209afbebda2b12113e0266b3d30f46e2a91aaf4451c193d640288357101000000000000004c9886e2e62ee92a6778d6a7928052732044b64fa61969cd8e37f3f7e3406f7201000000000000000c78c9dfc0033ff87657c56b7ab8cec4d1249be2de18729f743f385343af0f160100000000000000002e496e564f088a075525d2f9155aadd1a7eb017fa36f9e16096e9db7e169330100000000000000ae40860237c8f606dfb6974046eaa6b6b96f8d0aef56fbe3ce4865f66646bd260100000000000000f6dddaaaa53b57763610037753656b591d90fa81efbadcabbeddf7378c23602701000000000000003e69835397599a4bf081775f9f42f0f4ee686d67c9af8eacc4a733fdcdb0290b0100000000000000c48c594bb4e173544a0379055b65d995af53256f653d04f2cf4fdf8f3548943901000000000000003a80d898638dccd4aaa472e7948e7394969cc443335c494159948915c097c036010000000000000000b84e6e296de1009aeca95ee09bc5173aec6e91b1145b247d69e477588789720100000000000000466c0e97d043a4b0f4c3ac4849e11f901e9b31b28f8b3e40b7cdb0ba7f77480801000000000000002049288b4dbfb741109778c602f9308daf2e31b3b66e9aa550065e73c6787d7c0100000000000000e67c524e443cda4cd27dfcce70488a5d23a93c8c46a5e83ef5a69eff3a02fa5a010000000000000024a57db63b380456d56d561d8a9da6db13d298045c9672bc4086a2e0a567d55c01000000000000006c50859d9dde209012eb3868c1a3a6e80ae8fa528ace9df68e92dbbae6036820010000000000000078c88041bbca9b2bebd62fde7c46f4dc5e55d8877a113d063a6b525dfd6f7f2a01000000000000002e85d3d2c07aaf1c0a5f63f544c34b87cfa90a98c4f6167e86cee0b74a20cb120100000000000000723f3865d97a772459da8942cbb4757164f1fe7485cbcefb4b206e157ee5ed0201000000000000007c5f58a83f8101943c089dba3ab906c07811e853444aa58dbcc986c4095fbe7c01000000000000005494142902284943201b7cf610306e8665eeeec87c014d607175c3f50f76103b01000000000000001822493200c35242a149070784dca5e7012a8a52b61cd218ec7d65e469e8cc56010000000000000072ed7192625403acef94aa9189f9f179deb89e60478816ca96c79b742f757e750100000000000000d8f30bc2ee88e69f60d0278998414c80f4a130b8e1738e873bcd14ef31e58d36010000000000000042e377034ce6b2a582bfd66c465252ab10ce790e4f0d3bbe99a42ff86b29965c01000000000000000e164f314984e9a172a3a1526d853ff70bd11f3c596f17accbbebe2f7820833c01000000000000007e91ca522b14cbb71b45348c699b7d65c3198516ee771079b672ee3d7cfc577501000000000000004e2753547f6ec0a896bcbc55b9eeab875e8019acdeb10b979210af63f24c4b74010000000000000098faca5e78664fd082bf47f0079de33a5021415c8f5f912941e651a0b7071d1f0100000000000000ca6e63cec4c0801ecd740073da08be68b9cf4c7ff76b740fb6a522a63e838b5a010000000000000042e7851b82d8b7722b9eeb5eead57b21bf533fd25acb10542a52889376fc3920010000000000000028ce9c093ac772f56acb8dfe8b33a3966d4b8699bd41814117352d397195bd5f010000000000000042ad4ba7e8a60af1abcee04fdd82ad02b24f1e2535bdb1abcdde886efbf0fc4301000000000000006ec27dfa7ac9d35eb002c55d3e4d56b4df928dd5c44323ac228305741c9e09360100000000000000b89cbc83a386d6f5d4fed93289ee50fdf69d77369ca0c9a8b962554e3fc0d37e0100000000000000e61da4eefdd14434952c58dd1943f7f63185d03321ccc8835e4216badd16fc19010000000000000012a64d79e44f1adb33c85c4f2bdfcd8d8b38a34d984604f39289c9a7624a442d0100000000000000a20797f3a8669a909adb22a3aee2844dba82d231cc33f5d9be0e2c533cb82a670100000000000000e297620b731b4958e3c6aa06611c6aa5a45f7e116362d64954a0a330d2a98f330100000000000000dc1274e0689c7a3eac31b41ce352719529e65c01f26999f74ce17c9905fce87401000000000000000e5e5f8e89cd8d58ef83abddd3d1c2079691dec4f6965af70436e84411c31f3901000000000000007c21799f6143fa837a8c18bebe3368d60f4e009b114f61490b54e6344034040d0100000000000000e2f4efaa91da8465ac7d109cd80be5c02b9ba7a0603ff372cd77824de17f6c4201000000000000000ef6f09a9e310abb5c57dd7050a94d56d766772b80789b997cbb40f3b40f625d0100000000000000a88864a0dc9e292aa7cc8eddaa8dd8b6be2a4bc7e8f290023c6604e5c4ad1a7a0100000000000000dc68569b46a09aebabe8fc4452e293fac635e4a2889739809b32e4e2303e3f71010000000000000034ffee048e511f4187a6f40339650ec60a3d99ac5a1158ae162c5729b59d51740100000000000000be7c58318c49ff328d53a6d67830a8a046a41f5124824d3ce2e72cc9965ef57e0100000000000000b06e3ee1ea6420fb73ebd502988420f51b977a83074e1aa5daf0121f4a8b6b1e01000000000000003843abe933fa3ce63f3a5e422e13ec05dc9c0e8f150b93a0fa97f1b193cfba2d01000000000000009cdd57a06bd22d104d539527a19033620becff73dd267f0c2f9f13bc37b0d32c0100000000000000e020b5e946e4c6b0603ceac71b44c330fa7d9cb3e79791ebe1e16bedbb9c71000100000000000000a86c7bdf11794e554439b09f9f294c8e0abaebf447c7bc54419434b8b95f864901000000000000009e9f565a8cb6e8f2154a9833735930a04003505856c3743a0f71afe64c7acf7101000000000000005a63824687de4f60534ee18a430396b95263f75a077655c751bc2045ca2ec84d010000000000000042e4c41a899dfb238649e5b17dc232c2699353635d60e6a3bdcd71f9b82cda300100000000000000f23d1b22d1b03c9fb6eb203c85761fe429a60c38d6591d215e873d62f5d2e4010100000000000000283a77cab50b96f99a8e8287c1488ebbcf31fc3daa953ffa99ac16db982f1e1201000000000000007c3526dc5579f1ef841101b573c655c20f4346fa4a6b0b6ed773d147c3ad6d7f0100000000000000ee579514d7f544fc9fb8d6383ed7d109ee98a411bb4b0b45b9354b0f73fed9720100000000000000e8308668e9f16683cc739791a6dd530b819f45e4ade2113ee2f27eed1c51d120010000000000000026d421de2e7251020ac2f8b8c7e348aa904dcaf0b6d5d73fa0113b476f7dd9030100000000000000bc56c07cea21bcbbe058aedd2ced9fb4757caead55f96bda9bed1c9669c32b640100000000000000ec56243ac035f65b377444e20bc8fa7e3e75242a59b5ffa5f44270f451315f2b01000000000000006ccf2ce8e149999a7bb996faa65194e60aeb7bcd1937c787f886fe979fb49e660100000000000000c0e36251f9ce24d6fe429ecf14bc9599285e3e27c0a541d5ac0ad1902d7ad614010000000000000082b820c5bee8ee77e35203dab387f3434b8502e5f1c35dfb2ad15b5c89d47b3c01000000000000005620922a6765fd47abc96615ef5b8b8575f18aaf8507f6afb86129bc1080994f0100000000000000b4b145ce385b4a3d83f2daac46a61874f80e58c468dd624acc09a558be02c27d0100000000000000b288a9832e07bef83c5a8ca72c5a5583b321672ba7c6cdd44a971f855d32d95c0100000000000000d04077347325618eb5cef03729a157b910fac54ec7e344e65b6945fb9fbbeb3b0100000000000000fe3b55d17e25c44a3568885d9d37276df81fa5225d9d73ee67321c7826581b5a010000000000000072183c2429e4966be5cb14c9cb84d6e4092b4e55d8ebe2534cbfa179b6f85325010000000000000040a2527ffa7d30d788eca127d435c8b5aa48972cda538b9a1627a57e85c8fa190100000000000000844b691aa95ff9a15b50f5e5f4f0e582db6621326cf18d7533f55bc27549497a01000000000000009c1863aefa0b4d5f3d48275769ad0ed04e1428db9694d83b9bb8b5d833f1b41101000000000000007c4b93d862704aad434ab3dc2cbef824df738c5dbe1ba7b34daa38b2aabf7c360100000000000000ae272f5ae4e197a1fc8e670d3aa7bcab325a39d1653b5440bb7593788d0526280100000000000000261ac3229b4bb7a376c37f17e287b2eb596d3b478370b722b6b41443d87081320100000000000000421f3fea780f04810915479b2b72ba55591d1db37a425cae170548a50127f83001000000000000001a36d936f4692ac8387ac0ca1f051970ae480271e39fc134436b86b8ec83b25d010000000000000026d7422872cbf4d4918046f240a13a37219a272f4326b3f3bd1249829bbcd12b0100000000000000be6106f9217a1847af66de9510fdfb40514409556506ddc1c1a897818434125b0100000000000000e03dd3bbb140ffa44e0cc0e1846967b03aecccac78f6e2e0a1fd3ac0d34f554a0100000000000000d08dade453078ef481107714d602bafaa5f1247ec053c3fb62fa8ce53c1df4700100000000000000c02283aab385e82cd28d831cd1ba21381597e0ed3b193f6aa22d7588434c24160100000000000000ae2e94f092fbcfe263519f950b5ade09c474258a4e0d5e62570d02b3f71d85480100000000000000b47377c358164a12a68a76035ac0479022018f5e9a3fd8fc915b265f92b74d4a010000000000000088b8e0da91c48fd9bf94ca5ed7fb74797a037e626c98ac18cd76360ccd6ac11c0100000000000000c01b5bef9653fd67a8b11907f4c2a9b12cb24237768ad9188330794e9242a723010000000000000086c1922e4ed392d72e0fbc0ee28e7ec0a8ba2b33470330a606cec9a159a79626010000000000000036465f4be77147914969ea78f8e39610310679011dfbb6137dab12e18a687a520100000000000000783134a08ea27221e873043cd0ee52a9f79c2eb14d5cd25afed24d7c82cb2246010000000000000004ba7eb24012b133b20a8021b603a1483c4a5b9ad3415a4d7ca2b1ad625719550100000000000000202e3405e49bb882f1d49efc4a4adc5b62dcc96ec18346a48aad5a510c189b5001000000000000005c39533cbb607f1f52d82356d267a56399045e0d7b7e95887cfd8ec13173db2e0100000000000000343d27f7f66355f47054ee18bfe7df92bdd8b1aaf9391ba3b8b022905f95f94e0100000000000000ea6acde5149e930af7bc3b17b7f0bdcf12dfd3dc3437f774f823bbeef420a97201000000000000006e7a78e9fdfe275f3e000382ba30452729970578258839db6c0fc568e20b351501000000000000004e1b48e67c1e62e46add39fa523b956946228ea0f08bd9d20ced798cfc9a0f5b0100000000000000faa6ae896c2d1040e495acbdcd8d90a02ccb17ba6e507efa2f7deacb3b28466e0100000000000000402a67126cd160c84edcb39374164f3a39aec59ae72cb66dd9fbd1e9891aa27c010000000000000014e2f25dd3376eb7978d413c14322704a2ff3d9c0c2971acdcdf9720c2c13d6b010000000000000014cf97e739cfd033c2828f25ad3f15e8f6ef62ba97dd74164e77e61eb85454260100000000000000a07f151db53097c2da9dac4b2e0f194931a677a3ba99df0f3976e34409fd64760100000000000000c63dfd97609d6fbdd6300bb957b3feba86755bbd5a36d6b4ca40bea6a1b2517001000000000000004cc9ff5edb36e361b088b0eff52fc6e6559c1169ff87ccdb62503bceab7c74450100000000000000fcd5f4c4fe11f20ad99dc8345b7dc5600caba5d5b7d3f499c3253c095152d4540100000000000000941f291e924d50ffa173fb0a86b37e11915b06910a54d418b0a20998d0303a6901000000000000005eac8ac37c95fc11921839550a30ef071bbc80fb10ea1482cc67818e184d544a0100000000000000ea2b17bd1b69a7b442dd000db0f12f0bd4bf7a87a540427986bd32f3d3bd555801000000000000001e825121b8beecb30e9962a555ce06b9e2c65fcf3b0023178556330d565bcb4c01000000000000001682c3264fc0b2a36eff3a5864cdacfe726bf5972ca8f4c5cad6f18bd450d23e0100000000000000dcbaae9e44c778fd2914d5940c24033575b5b0ef13d0157a667e4a52d9e719070100000000000000d412fb5e47b946e69918a6391ac30283949ba6d99c491d78fc5014aaa2144b590100000000000000ce323186d64f267b11e6dd0bef533ae85d282b40f90e38eef37f191a7927663f0100000000000000b48cf50a4f94e83450a791d6de965c3e8127c1c915208f2b85df4c3a84b2042f0100000000000000c60a9f5f89ea3a56499bcd39bac7e038c25f5b7720d873fdc12b68d2531eb650010000000000000040b77fd8fcabe868dc7f2a08bf14c67e4d433886c3cd3738d1b0b9c649bafc230100000000000000b013a8307c3572f939c1a9759a832f35babc847cc022588903572c8def43267d0100000000000000cef0feb2602582b96fec882181d34bd5504645c544c983b1a962188239eed90a0100000000000000b633c47d126eceb0e36d788370ebaa179b0c7a3a21cf5f1421bfac40c895ed3c0100000000000000dc5dac973975ef5f4edef722e9727d0c05a73e4e45f7e524a8d216d2a691a6710100000000000000a0887bd2c2058519096e8dcebf495f2ef274490994e969063f72a41b3fab80720100000000000000d2838a30fd86f5f19aa80481630ecd0ee0fe5aa565ea15786f37a22a87cc1b7d01000000000000009acfd215519f40156749868afc8d56e015759f71cf183fe68382e8c02c75b25101000000000000005ce79c3ad8a0e1806e863f0858c28a81408d19870a62ac0316b3e6345cbb5f7601000000000000001cbfaf2b91ee79c6288ad01dd5787070b34d5e1b8253a1765904eaa7d0b93f020100000000000000b672ee2f0f9183585ac4875368a0defda6d3c81927fbfc34bbacc7481058cb4b010000000000000036a547b4aca95274437f3876bec0447f775eacd01b09d95869390d326a596d450100000000000000c09be470dab56a2b45b94ba6dac8ed9d515f1d3785cb4eacab40d0a80aa42b1c01000000000000007878535e43226cf81c42183db4bbef4b1eed2a460f6cd423c03af9e86674647a0100000000000000526e1fca7613776cab9c7b4ef9b4577b35adbac416c48529b6058a5f9d133210010000000000000052c9327ca5c1ca830f8ff712d813a8cdc2a8be122f16bf0d1d9e77b7a9789372010000000000000026f2af62a2f0d847e3d2cccc93ec7f98c80a7b6d1bcca4cf1c4a6fc7f81775010100000000000000407e78f505ae833a2eaea113245bf6a5ef6abd0db66141f770cd6cd7a7e75d7101000000000000009c576fccaf2ffb4885a0ac8ed7ba0b80ee5fd060856fb9f80bdd3219e5d7800d010000000000000078c91c4ee02089ea86612f66d6022a0cbd54afe470a162a72036611623924f6d01000000000000000481a58bfdafecabbc96bd170a0ec04cc35100f1f928cca3ecc63b3639e476790100000000000000607fc085eaca16b6a51e44ac9f61a689e869efe15b4da37be15b78c17b193b0301000000000000008ec5856a5fd17617c0af76efea16a87d0c5e769eaad39e91c40dac93fb067d5d0100000000000000e4be18b8f5905bc41fe3cba2e5350d405e76036328042ae7edfbb6b6a9b43d5a0100000000000000824792c3ed55b88805009230d67bd8059eb9958dc23900e4b1a6efe61dc0e96b01000000000000008c73f71ea9e64834a5e048824978864a96c5c600f42f8a7350dd10ac088ecd2101000000000000004ed5f55ec45727a57e2d8d6914f6d2acffb17b9515d347ba045067502a0b14020100000000000000507e2aa1a2409b289b89c80f7ccb129e91a32e8d44c98723f8a97307f54a2d0601000000000000002a0fda136ae348db338b87bed349145a94ce091227774b0542e533a83d1ba455010000000000000078d986932e680d7bebce126a5aedae3e11ba0f4e28c03d63a491e8bcbd05ad2201000000000000007c552599ae2d251c1fb693009a0f904e41e59183027af5adfb8bba4133fc13620100000000000000502c19c77976b8cb0c47b08cd465a75bd7d25734fac0048342c697501533ee2101000000000000006a5607bc375d7ac0908e7643ea2e89dbe42f4f805c2fb6e2a22d0385c1232b310100000000000000f4ccdf83d734edcc568462572abaf32d22ac7faf8000195e02273d1c9665430801000000000000007eb2b0b6adbe5a5bad38f46db207f94c896d419661f4ab8f21e302a543df9b11010000000000000048ce0aba6f1554e139568b4d2358d6cca9bc291d3600787cc3e732291002ca22010000000000000092239fbae2557ff2ea3952c962e478e6ac2a5b3e3cfffb0eb40e8d41860ab0470100000000000000524c4d2a0ab6f9687123f9c8a9ab4fe2c70f9fc3b1863b4fde16f4dfaddc7d570100000000000000469d81e8b43725a64da6b1ce10eb53eebe1aaebb9703f75ed452e12f45d26273010000000000000000e2ef06613c993996e6eddf381c0f035659593515d10d664fb6bc1002bb921a0100000000000000c4c5fe47a568c2fe4876eafd5e0093dcc31b450eb87bfe58397dfae2a590d465010000000000000044c47763e8f2f1675b480c01304c4da58c8d276b5ecee722e45d17afdc3d391d01000000000000001cc40fa83cd0a4431aa63315b55c669370a4037756089f3402a9021e2d8066640100000000000000742c0a1ea78a09c7454b48897bfde87bf4959b89c898623c8eeace7af714147d01000000000000007873ecedbae63dfbe5594da935e52c14dbd0e131b12879d573b9c002c6e5c4400100000000000000fc53d15453457faadc5540c5853f54324eec395d3647fbf99d5e6e97ef3876760100000000000000fca464b97dee2e318ad8d4516fd606a5401f5d15467110112a3326ef96ce007601000000000000001049c5c0f0493537f48c6b122d697f28cf8ea36ab772591ae875da8aae1198520100000000000000bc3bf978ea283cf493b43928b605309be31def9d4a1daf47788017ac61c7c81b0100000000000000864cbd281011a154d93d0320865ad67ae442bf0985f0ec220e2c7db4b09599310100000000000000cebdabff22e607a75aa8db1bf875511a563200cce3f089972aca719649b6e1760100000000000000382fb32d7c8868ce3765e9ccfb462c04071a3d70cab3382c796a9115ab0c310301000000000000008a6dbf87f769167b4eb982f63b946f96a1f223b6a6f2789183fec09581b8e906010000000000000056927fdc8bff2063e108fe1b05bbde2f6219bda7d8663fafcf3d2976c72153590100000000000000b027ae418b6c79d9f3a2b05df499d3aaecfb327e6b9d7995a022dc5265ed76180100000000000000eed7e8e8a64dfa89c548a31c1b9fec7af5aef4dbbdb26997b2ddca72d4f8790c0100000000000000fa49d3457520dd98ca1489b78354d7d30a9bdf2181140072ebda1c3dc3371e450100000000000000a811cc491bb3487d5e604dcf6dca3bf529437162f3b8cfb8514ffab16809ff600100000000000000fe2848018ac215f72f551e58dd2d065d99b788b5a7aa59b9f9fe47a5bdbc046d0100000000000000b6ed5b0c17ca7560c71f1778694741009d3da979309617f0bb992084019e25290100000000000000d2fb72b7c3d020239ba45289122d0ae3fb560d01d0cb3caec01efa0c8701d45e0100000000000000f853a1534a3af56217661420536dd7bea0db6f6db843d8fead77c308ed7dcc7c010000000000000052a0f4ee4ffddedc5b9fd2154ca213cf3f49df94f4b5c36c2d8f877f5a7010220100000000000000c2041cb909e2a314df816d3234a893c1d387f4d4f9a4379d11400963b134a753010000000000000028702457fd7ea52bb88284bfcd721493ceae3ea984492a1b82c55efa1b62fa390100000000000000484b6b8012254027636d95e66c5ea7ee68dbdf9ef6ad3c2fc00cfe5c39fdaf7c010000000000000002e12aee8fa547e191b4395503c28d4b14650c1dc03c698d73f4cd30f03de90201000000000000004050f1025e1481eedf4d787eb4232123b271e5196dcd8670d754836297d0da720100000000000000e816e2e76f7ccbdefdfd484aa8b5f904d293ae8694e21a92990da54f17e244090100000000000000c664c419396f160467b184251d893f1a1d468e0d230691dd0123d60d446c5b6201000000000000006ef86d4533f47ffd133c63b9575c17234309ab6e16f487ae7cd8914169183c660100000000000000ce60d2c987bbeeaceff8463484b717ce80cbcf3d8f8b2102e95effc88000d95d010000000000000056606b6532cdbf27358fd067d61c2a65e4b3e8934c266a857320ff18e5c7654c0100000000000000060edf92540ed4cbb944b399cabc91a7b9641bfd553bae0479b442f9d5bc7c2101000000000000002abc6a5d748978a4023c3597c49178db2349ea6af5a9b61783095af8e427027c010000000000000094d89cb8df2b03c76d41a6521e5803d6f98e204e1839b9ea747dc7e253d35b7f010000000000000050f5f5863f99e896975813fda8768c72ff25fb54e25385a4263d1ff9a19152500100000000000000ecf0297bddebd3d766ea7def2bac79ad6eb650fabdcd029b99cb1649ff7dc8150100000000000000121f9d8ba85d89e3c6f9a0fedcdfc9b05cc40a6d3324eff6e8a58aec5f5259050100000000000000540926fefa2d0424fd451bfca39a01c0e1a3fc811406e127d1dbfdc6cf9e9770010000000000000038c9a0897d9caff03a308d2120bbe892974ae8cb05f1cfe8b97259f0ac2e85290100000000000000e20f692ef4d1cdecf74a65aed29a64a001ca7a83f01f8440c5725ccaa8fb8e2f01000000000000003491cc113ef8fe1165bb10e65cbb461955f92f8f0d82f2dcfe6664430dab853601000000000000009a53749c83cc06460148d884f1ea5b71897466b237cf16baa45395d78ce48c1a010000000000000064615e1323ea003b7c5a63ba2c8bed2023103458eeee7cf45244580d3ca59b6a01000000000000000c68512e2e5dca7783df908fa702dce48d67a439655fe52de6d29cb07890445a010000000000000088fa8bb07ebce99964718c65d0d6f1b091ef2f4d4cdf7b94a22c42c007ecd706010000000000000048afb25f7981cc67a66853ec05675d83a2d99e6318a6a7a135ed2916cb70a26e01000000000000008a0e2d0af87ffb812f6e6ec229d02056e812cc4f5f5743cc638a7d3f279f0153010000000000000002a4b2935b657f9ec563642ab0f34e223ef594cc70c856b9bd70fbe083721560010000000000000092e5bb9d0906f768dbdde0696b78e493cc78dc1f68789575b24f0b962799b51e01000000000000001ab9d2c814ed7a719ef2aa94dcf4db8aaa0315a59d4b5699e86656a6ee9ac5610100000000000000b63f9ab3a147d76614bfb688751f79fb9a120d40af7ba3bb123c1957b91a411d010000000000000078fb9f8411552c70290a09cdc6a0e235c74364d37204ec06ab62a4d45201233e010000000000000010e37a12fc6ed768d1a2d33c8abc6db675381dfe69c832abb77d9ba2341b3c4a01000000000000004a547dfc28e6730b12b365a1cb7dbca5199e04d75aeb07c7b5da4b0245daff5d0100000000000000bc62cca37518b73aa22efed6a88147f84af5db7b82ef7671d9bbf03c76d22b490100000000000000163a52c9bc0e859d814e742b7b5c8ad8e9c603d3d1f2b896256df27320290f050100000000000000fa1b0afc9ce9e9742c4825890f6d93bb87bd199e55e86ce66ba7c34ce43e273e0100000000000000e063e31ccdf34c3372902f92ec915f213538370658d9272f9ba6d8d6943ccd130100000000000000f6d56c6aaa5121b6a63f13af233d5233b608d53eb7f789a3db3749a4cea2f34f010000000000000042c56bdb09d52942b0fedb07045113a641e2fd64a428b1fa608b5adff9ff4d6401000000000000008e0b3a52dae8c17703f7093d386f5fd8fb1c35a585e7830ca06fa84ba489f2610100000000000000b4e86264fd55571f5016e82a1eeba2476b1d0349fdd175d2443ea30bee0b5207010000000000000086ccdecaccbf1a58049c55793916611cb8749edf93085bb764e77636357ec1720100000000000000bec182c65eec6dbc4d89c474a6f6fc6cb6853946eacfc93762cc3616ecd3c47f0100000000000000f29cb4064a1cc3a79da2c9a9f336053cc69d50bcc737257ca2f071c37030510a01000000000000003e07b075219fc7ace8dc3bf3a06f5dc12aa9c7e45fe30244d2284bcfb1e6ee1901000000000000002271d61469f9f1e5a0832af7de453015b89979fd740526080116295f4a4a516d0100000000000000645077cf303943059891df150649d1d828052ea4249bf50ca3b6d29c6ef1984c010000000000000022376791bf19fefac611324d27bc6acb4b7f7eec713c186adbeda5a1e1b88f340100000000000000bc8f93a45201992fa9d04355095d03adeb5ff1aea206425eae4f902ffd47fe20010000000000000034caa67978c1a5280b5f58196edcdb5c864b02d0fd40af9c6e6b9716f3fb12680100000000000000fecb15325d9baf603112dd397d2e83d3694414f529d75c4b639c7e775b979b14010000000000000028052d0b965ed862b7861aa7f3f91fe52ff8b0f795ff476c7e0a7aa42e7993300100000000000000ea03f9dc29ae9b7a053c12b6079664592d2cf46a30b43edbb2d2d980223deb11010000000000000092cca18f264bdcfc19e5c01515ea9d61a0bf0b4e46b2bcae372a428b9dc35e390100000000000000e0b770b1bcf7deb030ee75d5bad6ec1ebfe06ded0fc406a8520a9650fe83233001000000000000003c8330f5d7f34fbec333663bab066cbac4403f892df7659b1c118c185c4f16220100000000000000b20050395fc81aa60508e362f02c75faebe3e4909c7a23721182ce791bb701130100000000000000aa92f32eab7cb844bfce67787d5921e9eb63368577d9c46e9c276dbd2288064c0100000000000000526fdfd1d78345a1b2843d392122962cf89a4f157af2a3d0c99607f506175115010000000000000008e80cc5ada5e557a1cea3658402bc83f9892b5c4e112b6e157e6e7d3663c47b0100000000000000a6730d04d45ee4e7e25d3f7b80b4e2ac12a6644a4128127fbe97e97a1d690d69010000000000000068147c36d367eb1a203b303c65ab3d32fe777cabbca8d39e08ffcfd624b3614d0100000000000000b6ad9df8c32a78e9481e75f484fd0b740554276c026736f0dbac0987db0885670100000000000000ea82745d9978e47fc6bb25fc01383aad42aeee65662b6af304474f0e4101b06f01000000000000000a6a0f8136fafe5c2e096704e37d12b47a1e46151489a23eb1713b37769fdf780100000000000000f25d3265659fca9d24ca877823644f1223714b0167d0a676cf3c9c447173d12f0100000000000000c4687b6d8e527d1ad3be71f2b242bed92eac25b159d9e142e6922ace2dfe5f2101000000000000009ab493c4c8007f49a3e7d1e9f1aef39b39cd66a496e90486e62664725c6ba06f01000000000000009ea2cb3e6c59685087e59d6d45fdccdd5e6fd4f77fd90b4749f65113e23f086f01000000000000000a43fe86fb05c4f76c85474f9867e987d7f894b0f7fdba0b85c323c3103d3b4a0100000000000000cc60431feaf7f1bf42d805f0c12a1978ca9b3ec0a21397a71ecfc2bb7d52d20a01000000000000004a7791775365fadbb61f37a0d2f6d298c0c7c3a4c9402821ec909972fd5f8a4c01000000000000001827754b7465edb9bf4ce981bdd3a33057f9450fc895e39654dbd51c3ab9835a0100000000000000126a7f10393da0379401ed5fc6945ed0cc3a795c2a192b0bbc3708d24ada404401000000000000005ee252f56786ec8e512d233a09c3bbda21d0bd3a6ed7e8e8c0fe035dfe7989330100000000000000e0d28dc9623e77eeff6b0aee79793b3a00cf8b1c46fb79c8e6ff8cfeecc4af120100000000000000d0106f6fb9b008052da3223c389525681d9b6e4fdb73a4078f7f1949bfaa350201000000000000001e1f47deab3e4083f7d353b746b719a9f5aaee3ae2cf6b37a4d710f95d489a6101000000000000006638aad1c437c5f2f2ab4c46b786db51bb8c7e6af2ee745934811712f8d83e0601000000000000009e3b3214afe654cf851be9e564e72f834168ff65ce346ac54024cdcd932571210100000000000000aa8727e4b0a95c761b5f2506159a25195d3efca5dafa334f871c3cf262fcc56e01000000000000005e7f927ca4edf203d65f682fae546d8d43913b253dad434800df66be1f0768520100000000000000c88d83d7927e1c1dff61de6b8321ee64746d983173bfb3a03c3d4789ae3f202701000000000000001a8de0dd57069c2986c48b25cd40c13d2acb62fad487a82f4f13738e34418c1f01000000000000008ca0a873b2685dde8c4792832cabe50ea5a1f8a9a661a336689859319b66ba620100000000000000102ed4107066f497e13d3c484a9fa60e506587e19541069dd4555a91d63f27040100000000000000d27da69172c428ddb80272e6fc6ec90985ee281b45f933e5bad65184bc3b5d0201000000000000003afb6b0dac3a05453f125943b8a26269202d297b991e054ca851fa68bb4c0853010000000000000048970bde717a65371534a2b878995c8bc6c230d556035fa003da1c523092332a01000000000000000c3292b5065b7b78a2de5f4fe397fff21df37c0ff7eef94c5fc4397f760e6e4601000000000000002234e01370aa10159040ac893ffebe3eb28540b8eebe03f5ca658b20866de36e0100000000000000bc3bebcbf6142977fdbe8492bd2c5947a16d38925d56f09db1ef164b608b912601000000000000004616ac86f0d45899eed3f1246dc5744858a694a92b0abd9f10e52dfc9c28674601000000000000009265e7be28a8f56a974027b630bc37703b7ef21b1b1e4253c54d605f4d10da1e010000000000000046b14e55053a02087c957664d32fdcae6ba1c96051239191c63df564d784e1720100000000000000aac332418d8cd5cc9a903a06cbc8f639d32b32163713dd60d065b949abf83679010000000000000058efa50da673a8c3b5799e278ae7d32f9eee340947f793f44348ba17e25a885f0100000000000000e6a08fa6af54d2308215f4a62d554dd5b82deaec8ba22a2e6ebade7202ab9e2101000000000000009c4d874baeccbb19733cf93f6ffb2f44d9b9f5191ead84f3550c7b767a75061f0100000000000000b41546275611fa185c88c7016e909222b3a757b476316766a72729d074d8e92b0100000000000000662f5ccb0a265c7438d4166b72c2d0106b74f928e995dcd24004c67ad715217e0100000000000000723f8c9d81d0874cd4130cb58587c90ef454174e9d6d9dec11279a553caf00430100000000000000a49dbb103be9a66d67ad5c0d11032866488f39d0a106de579d913dc7099a09260100000000000000309ab613bea03c4431f7602c937f5a4d17e2102db6fc7f77e32f7a245041b90c0100000000000000547c6a159db6eb46da71179d0d15dad5691617fc7f3c6a672864655997035c2d010000000000000040884e6b9876fe866d109aae2a5a6f1a18bfe3655ec9c1fee848ca92734468720100000000000000f7cff79458978cd2bff24aae8998623a56cd921ea318c40201b4fe2cd3fb781601000000000000000400000000000000026441c5d73eef491062ed18d31770e3f8a95eba0a9e78b407d28c706c6f06332775af160101dc1d00000000000013cde410000000006009000000000000a50474a0fc84f72a4a9b8493379b7dfc59ca58a261a2e94997600d14b6b444c1475901000000000000009c40155989f6072e82caba245d7db7e40a60f866b403257976b89aba6be2b55b010000000000000014b0a3a620f70ada506d6ef1b7ab099219f2f05689523af7eebc81f9ba258e6001000000000000007067d4c5b492b11e2052a2bb0b4f729a52b3667afbca7dfefa863011254b5272010000000000000072ab87b654d80294c876cbefb534b3344c2f64159b015b89221331ec2145417501000000000000008008c1b7061a2402634fc15d3849e2913863beb9f55024bc8cc7fa7d6e397817010000000000000024a51a9bdb67213626d1b52bd8dbc0e9b94ea88ea417aa17b56212d1cea3e1780100000000000000488d520146f681678e9d229f5e29354edf65e521246b28a4175c0502e060b92001000000000000003ae9dfa8b24faaf16407328ff38a89b25fc7c673c44f9de3de0c011233d4226d0100000000000000e84529a1a5d90df032f8a38981b1e973b2551ffd11eba49d54e278499708473201000000000000009e47382505cd1a803bdbe7803d36a61413e58697bd9396ce1607c89a48d1e0510100000000000000e07446ce5f2219527928039f41b43de71567e0d247a53064b32a1732a9bab306010000000000000020352ba0565811731625a8001d26f5d899e5856dedd0f9c6bc3bec2995704e5b01000000000000009cb389c209afbebda2b12113e0266b3d30f46e2a91aaf4451c193d640288357101000000000000004c9886e2e62ee92a6778d6a7928052732044b64fa61969cd8e37f3f7e3406f7201000000000000000c78c9dfc0033ff87657c56b7ab8cec4d1249be2de18729f743f385343af0f160100000000000000002e496e564f088a075525d2f9155aadd1a7eb017fa36f9e16096e9db7e169330100000000000000ae40860237c8f606dfb6974046eaa6b6b96f8d0aef56fbe3ce4865f66646bd260100000000000000f6dddaaaa53b57763610037753656b591d90fa81efbadcabbeddf7378c23602701000000000000003e69835397599a4bf081775f9f42f0f4ee686d67c9af8eacc4a733fdcdb0290b0100000000000000c48c594bb4e173544a0379055b65d995af53256f653d04f2cf4fdf8f3548943901000000000000003a80d898638dccd4aaa472e7948e7394969cc443335c494159948915c097c036010000000000000000b84e6e296de1009aeca95ee09bc5173aec6e91b1145b247d69e477588789720100000000000000466c0e97d043a4b0f4c3ac4849e11f901e9b31b28f8b3e40b7cdb0ba7f77480801000000000000002049288b4dbfb741109778c602f9308daf2e31b3b66e9aa550065e73c6787d7c0100000000000000e67c524e443cda4cd27dfcce70488a5d23a93c8c46a5e83ef5a69eff3a02fa5a010000000000000024a57db63b380456d56d561d8a9da6db13d298045c9672bc4086a2e0a567d55c01000000000000006c50859d9dde209012eb3868c1a3a6e80ae8fa528ace9df68e92dbbae6036820010000000000000078c88041bbca9b2bebd62fde7c46f4dc5e55d8877a113d063a6b525dfd6f7f2a01000000000000002e85d3d2c07aaf1c0a5f63f544c34b87cfa90a98c4f6167e86cee0b74a20cb120100000000000000723f3865d97a772459da8942cbb4757164f1fe7485cbcefb4b206e157ee5ed0201000000000000007c5f58a83f8101943c089dba3ab906c07811e853444aa58dbcc986c4095fbe7c01000000000000005494142902284943201b7cf610306e8665eeeec87c014d607175c3f50f76103b01000000000000001822493200c35242a149070784dca5e7012a8a52b61cd218ec7d65e469e8cc56010000000000000072ed7192625403acef94aa9189f9f179deb89e60478816ca96c79b742f757e750100000000000000d8f30bc2ee88e69f60d0278998414c80f4a130b8e1738e873bcd14ef31e58d36010000000000000042e377034ce6b2a582bfd66c465252ab10ce790e4f0d3bbe99a42ff86b29965c01000000000000000e164f314984e9a172a3a1526d853ff70bd11f3c596f17accbbebe2f7820833c01000000000000007e91ca522b14cbb71b45348c699b7d65c3198516ee771079b672ee3d7cfc577501000000000000004e2753547f6ec0a896bcbc55b9eeab875e8019acdeb10b979210af63f24c4b74010000000000000098faca5e78664fd082bf47f0079de33a5021415c8f5f912941e651a0b7071d1f0100000000000000ca6e63cec4c0801ecd740073da08be68b9cf4c7ff76b740fb6a522a63e838b5a010000000000000042e7851b82d8b7722b9eeb5eead57b21bf533fd25acb10542a52889376fc3920010000000000000028ce9c093ac772f56acb8dfe8b33a3966d4b8699bd41814117352d397195bd5f010000000000000042ad4ba7e8a60af1abcee04fdd82ad02b24f1e2535bdb1abcdde886efbf0fc4301000000000000006ec27dfa7ac9d35eb002c55d3e4d56b4df928dd5c44323ac228305741c9e09360100000000000000b89cbc83a386d6f5d4fed93289ee50fdf69d77369ca0c9a8b962554e3fc0d37e0100000000000000e61da4eefdd14434952c58dd1943f7f63185d03321ccc8835e4216badd16fc19010000000000000012a64d79e44f1adb33c85c4f2bdfcd8d8b38a34d984604f39289c9a7624a442d0100000000000000a20797f3a8669a909adb22a3aee2844dba82d231cc33f5d9be0e2c533cb82a670100000000000000e297620b731b4958e3c6aa06611c6aa5a45f7e116362d64954a0a330d2a98f330100000000000000dc1274e0689c7a3eac31b41ce352719529e65c01f26999f74ce17c9905fce87401000000000000000e5e5f8e89cd8d58ef83abddd3d1c2079691dec4f6965af70436e84411c31f3901000000000000007c21799f6143fa837a8c18bebe3368d60f4e009b114f61490b54e6344034040d0100000000000000e2f4efaa91da8465ac7d109cd80be5c02b9ba7a0603ff372cd77824de17f6c4201000000000000000ef6f09a9e310abb5c57dd7050a94d56d766772b80789b997cbb40f3b40f625d0100000000000000a88864a0dc9e292aa7cc8eddaa8dd8b6be2a4bc7e8f290023c6604e5c4ad1a7a010000000000000034ffee048e511f4187a6f40339650ec60a3d99ac5a1158ae162c5729b59d51740100000000000000be7c58318c49ff328d53a6d67830a8a046a41f5124824d3ce2e72cc9965ef57e0100000000000000b06e3ee1ea6420fb73ebd502988420f51b977a83074e1aa5daf0121f4a8b6b1e01000000000000003843abe933fa3ce63f3a5e422e13ec05dc9c0e8f150b93a0fa97f1b193cfba2d01000000000000009cdd57a06bd22d104d539527a19033620becff73dd267f0c2f9f13bc37b0d32c0100000000000000e020b5e946e4c6b0603ceac71b44c330fa7d9cb3e79791ebe1e16bedbb9c71000100000000000000a86c7bdf11794e554439b09f9f294c8e0abaebf447c7bc54419434b8b95f864901000000000000009e9f565a8cb6e8f2154a9833735930a04003505856c3743a0f71afe64c7acf7101000000000000005a63824687de4f60534ee18a430396b95263f75a077655c751bc2045ca2ec84d010000000000000042e4c41a899dfb238649e5b17dc232c2699353635d60e6a3bdcd71f9b82cda300100000000000000f23d1b22d1b03c9fb6eb203c85761fe429a60c38d6591d215e873d62f5d2e4010100000000000000283a77cab50b96f99a8e8287c1488ebbcf31fc3daa953ffa99ac16db982f1e1201000000000000007c3526dc5579f1ef841101b573c655c20f4346fa4a6b0b6ed773d147c3ad6d7f0100000000000000ee579514d7f544fc9fb8d6383ed7d109ee98a411bb4b0b45b9354b0f73fed9720100000000000000e8308668e9f16683cc739791a6dd530b819f45e4ade2113ee2f27eed1c51d12001000000000000004052e492aef88954afd9666ecb54ef5303a87394cb0690610841955f3dab1175010000000000000026d421de2e7251020ac2f8b8c7e348aa904dcaf0b6d5d73fa0113b476f7dd9030100000000000000bc56c07cea21bcbbe058aedd2ced9fb4757caead55f96bda9bed1c9669c32b640100000000000000ec56243ac035f65b377444e20bc8fa7e3e75242a59b5ffa5f44270f451315f2b01000000000000006ccf2ce8e149999a7bb996faa65194e60aeb7bcd1937c787f886fe979fb49e660100000000000000c0e36251f9ce24d6fe429ecf14bc9599285e3e27c0a541d5ac0ad1902d7ad614010000000000000082b820c5bee8ee77e35203dab387f3434b8502e5f1c35dfb2ad15b5c89d47b3c01000000000000005620922a6765fd47abc96615ef5b8b8575f18aaf8507f6afb86129bc1080994f0100000000000000b4b145ce385b4a3d83f2daac46a61874f80e58c468dd624acc09a558be02c27d0100000000000000b288a9832e07bef83c5a8ca72c5a5583b321672ba7c6cdd44a971f855d32d95c0100000000000000d04077347325618eb5cef03729a157b910fac54ec7e344e65b6945fb9fbbeb3b0100000000000000fe3b55d17e25c44a3568885d9d37276df81fa5225d9d73ee67321c7826581b5a010000000000000072183c2429e4966be5cb14c9cb84d6e4092b4e55d8ebe2534cbfa179b6f85325010000000000000062d976890a75034b16ddf5c2cfe9e50620782336e19159bb0a11b585b5920f71010000000000000040a2527ffa7d30d788eca127d435c8b5aa48972cda538b9a1627a57e85c8fa190100000000000000844b691aa95ff9a15b50f5e5f4f0e582db6621326cf18d7533f55bc27549497a01000000000000009c1863aefa0b4d5f3d48275769ad0ed04e1428db9694d83b9bb8b5d833f1b41101000000000000007c4b93d862704aad434ab3dc2cbef824df738c5dbe1ba7b34daa38b2aabf7c360100000000000000ae272f5ae4e197a1fc8e670d3aa7bcab325a39d1653b5440bb7593788d0526280100000000000000261ac3229b4bb7a376c37f17e287b2eb596d3b478370b722b6b41443d87081320100000000000000421f3fea780f04810915479b2b72ba55591d1db37a425cae170548a50127f83001000000000000001a36d936f4692ac8387ac0ca1f051970ae480271e39fc134436b86b8ec83b25d010000000000000026d7422872cbf4d4918046f240a13a37219a272f4326b3f3bd1249829bbcd12b0100000000000000be6106f9217a1847af66de9510fdfb40514409556506ddc1c1a897818434125b0100000000000000e03dd3bbb140ffa44e0cc0e1846967b03aecccac78f6e2e0a1fd3ac0d34f554a0100000000000000c02283aab385e82cd28d831cd1ba21381597e0ed3b193f6aa22d7588434c24160100000000000000ae2e94f092fbcfe263519f950b5ade09c474258a4e0d5e62570d02b3f71d85480100000000000000b47377c358164a12a68a76035ac0479022018f5e9a3fd8fc915b265f92b74d4a010000000000000088b8e0da91c48fd9bf94ca5ed7fb74797a037e626c98ac18cd76360ccd6ac11c0100000000000000c01b5bef9653fd67a8b11907f4c2a9b12cb24237768ad9188330794e9242a723010000000000000086c1922e4ed392d72e0fbc0ee28e7ec0a8ba2b33470330a606cec9a159a79626010000000000000036465f4be77147914969ea78f8e39610310679011dfbb6137dab12e18a687a52010000000000000004ba7eb24012b133b20a8021b603a1483c4a5b9ad3415a4d7ca2b1ad625719550100000000000000202e3405e49bb882f1d49efc4a4adc5b62dcc96ec18346a48aad5a510c189b5001000000000000005c39533cbb607f1f52d82356d267a56399045e0d7b7e95887cfd8ec13173db2e0100000000000000343d27f7f66355f47054ee18bfe7df92bdd8b1aaf9391ba3b8b022905f95f94e0100000000000000ea6acde5149e930af7bc3b17b7f0bdcf12dfd3dc3437f774f823bbeef420a97201000000000000006e7a78e9fdfe275f3e000382ba30452729970578258839db6c0fc568e20b351501000000000000004e1b48e67c1e62e46add39fa523b956946228ea0f08bd9d20ced798cfc9a0f5b0100000000000000faa6ae896c2d1040e495acbdcd8d90a02ccb17ba6e507efa2f7deacb3b28466e0100000000000000402a67126cd160c84edcb39374164f3a39aec59ae72cb66dd9fbd1e9891aa27c010000000000000014e2f25dd3376eb7978d413c14322704a2ff3d9c0c2971acdcdf9720c2c13d6b010000000000000014cf97e739cfd033c2828f25ad3f15e8f6ef62ba97dd74164e77e61eb85454260100000000000000ea7a085eb85651e30b4420daeb2935d87931349e62728f7329b46755d424c2320100000000000000a07f151db53097c2da9dac4b2e0f194931a677a3ba99df0f3976e34409fd64760100000000000000c63dfd97609d6fbdd6300bb957b3feba86755bbd5a36d6b4ca40bea6a1b2517001000000000000004cc9ff5edb36e361b088b0eff52fc6e6559c1169ff87ccdb62503bceab7c74450100000000000000fcd5f4c4fe11f20ad99dc8345b7dc5600caba5d5b7d3f499c3253c095152d4540100000000000000941f291e924d50ffa173fb0a86b37e11915b06910a54d418b0a20998d0303a6901000000000000005eac8ac37c95fc11921839550a30ef071bbc80fb10ea1482cc67818e184d544a0100000000000000ea2b17bd1b69a7b442dd000db0f12f0bd4bf7a87a540427986bd32f3d3bd555801000000000000001e825121b8beecb30e9962a555ce06b9e2c65fcf3b0023178556330d565bcb4c01000000000000001682c3264fc0b2a36eff3a5864cdacfe726bf5972ca8f4c5cad6f18bd450d23e0100000000000000d412fb5e47b946e69918a6391ac30283949ba6d99c491d78fc5014aaa2144b590100000000000000ce323186d64f267b11e6dd0bef533ae85d282b40f90e38eef37f191a7927663f0100000000000000b48cf50a4f94e83450a791d6de965c3e8127c1c915208f2b85df4c3a84b2042f0100000000000000c60a9f5f89ea3a56499bcd39bac7e038c25f5b7720d873fdc12b68d2531eb650010000000000000040b77fd8fcabe868dc7f2a08bf14c67e4d433886c3cd3738d1b0b9c649bafc230100000000000000b013a8307c3572f939c1a9759a832f35babc847cc022588903572c8def43267d0100000000000000cef0feb2602582b96fec882181d34bd5504645c544c983b1a962188239eed90a0100000000000000b633c47d126eceb0e36d788370ebaa179b0c7a3a21cf5f1421bfac40c895ed3c0100000000000000a0887bd2c2058519096e8dcebf495f2ef274490994e969063f72a41b3fab80720100000000000000d2838a30fd86f5f19aa80481630ecd0ee0fe5aa565ea15786f37a22a87cc1b7d01000000000000009acfd215519f40156749868afc8d56e015759f71cf183fe68382e8c02c75b2510100000000000000de5f9f5ad3209502cf429630c2038b8818b6f8ce5685c2730077349802c5792501000000000000005ce79c3ad8a0e1806e863f0858c28a81408d19870a62ac0316b3e6345cbb5f7601000000000000001cbfaf2b91ee79c6288ad01dd5787070b34d5e1b8253a1765904eaa7d0b93f020100000000000000b672ee2f0f9183585ac4875368a0defda6d3c81927fbfc34bbacc7481058cb4b010000000000000036a547b4aca95274437f3876bec0447f775eacd01b09d95869390d326a596d450100000000000000c09be470dab56a2b45b94ba6dac8ed9d515f1d3785cb4eacab40d0a80aa42b1c01000000000000007878535e43226cf81c42183db4bbef4b1eed2a460f6cd423c03af9e86674647a0100000000000000526e1fca7613776cab9c7b4ef9b4577b35adbac416c48529b6058a5f9d133210010000000000000052c9327ca5c1ca830f8ff712d813a8cdc2a8be122f16bf0d1d9e77b7a9789372010000000000000026f2af62a2f0d847e3d2cccc93ec7f98c80a7b6d1bcca4cf1c4a6fc7f81775010100000000000000407e78f505ae833a2eaea113245bf6a5ef6abd0db66141f770cd6cd7a7e75d71010000000000000078c91c4ee02089ea86612f66d6022a0cbd54afe470a162a72036611623924f6d01000000000000000481a58bfdafecabbc96bd170a0ec04cc35100f1f928cca3ecc63b3639e476790100000000000000607fc085eaca16b6a51e44ac9f61a689e869efe15b4da37be15b78c17b193b0301000000000000008ec5856a5fd17617c0af76efea16a87d0c5e769eaad39e91c40dac93fb067d5d0100000000000000e4be18b8f5905bc41fe3cba2e5350d405e76036328042ae7edfbb6b6a9b43d5a0100000000000000824792c3ed55b88805009230d67bd8059eb9958dc23900e4b1a6efe61dc0e96b01000000000000008c73f71ea9e64834a5e048824978864a96c5c600f42f8a7350dd10ac088ecd2101000000000000004ed5f55ec45727a57e2d8d6914f6d2acffb17b9515d347ba045067502a0b14020100000000000000507e2aa1a2409b289b89c80f7ccb129e91a32e8d44c98723f8a97307f54a2d0601000000000000008c6d9a2bb472764af439b9dd83d68dd0a0c1a77fbf1025a0e6bbfa3e9c8e857401000000000000002a0fda136ae348db338b87bed349145a94ce091227774b0542e533a83d1ba455010000000000000078d986932e680d7bebce126a5aedae3e11ba0f4e28c03d63a491e8bcbd05ad2201000000000000007c552599ae2d251c1fb693009a0f904e41e59183027af5adfb8bba4133fc136201000000000000006a5607bc375d7ac0908e7643ea2e89dbe42f4f805c2fb6e2a22d0385c1232b310100000000000000f4ccdf83d734edcc568462572abaf32d22ac7faf8000195e02273d1c9665430801000000000000007eb2b0b6adbe5a5bad38f46db207f94c896d419661f4ab8f21e302a543df9b11010000000000000048ce0aba6f1554e139568b4d2358d6cca9bc291d3600787cc3e732291002ca22010000000000000092239fbae2557ff2ea3952c962e478e6ac2a5b3e3cfffb0eb40e8d41860ab0470100000000000000524c4d2a0ab6f9687123f9c8a9ab4fe2c70f9fc3b1863b4fde16f4dfaddc7d570100000000000000469d81e8b43725a64da6b1ce10eb53eebe1aaebb9703f75ed452e12f45d26273010000000000000000e2ef06613c993996e6eddf381c0f035659593515d10d664fb6bc1002bb921a0100000000000000c4c5fe47a568c2fe4876eafd5e0093dcc31b450eb87bfe58397dfae2a590d465010000000000000044c47763e8f2f1675b480c01304c4da58c8d276b5ecee722e45d17afdc3d391d01000000000000001cc40fa83cd0a4431aa63315b55c669370a4037756089f3402a9021e2d8066640100000000000000742c0a1ea78a09c7454b48897bfde87bf4959b89c898623c8eeace7af714147d01000000000000007873ecedbae63dfbe5594da935e52c14dbd0e131b12879d573b9c002c6e5c4400100000000000000fc53d15453457faadc5540c5853f54324eec395d3647fbf99d5e6e97ef3876760100000000000000fca464b97dee2e318ad8d4516fd606a5401f5d15467110112a3326ef96ce00760100000000000000bc3bf978ea283cf493b43928b605309be31def9d4a1daf47788017ac61c7c81b0100000000000000864cbd281011a154d93d0320865ad67ae442bf0985f0ec220e2c7db4b09599310100000000000000cebdabff22e607a75aa8db1bf875511a563200cce3f089972aca719649b6e1760100000000000000382fb32d7c8868ce3765e9ccfb462c04071a3d70cab3382c796a9115ab0c310301000000000000008a6dbf87f769167b4eb982f63b946f96a1f223b6a6f2789183fec09581b8e906010000000000000056927fdc8bff2063e108fe1b05bbde2f6219bda7d8663fafcf3d2976c72153590100000000000000b027ae418b6c79d9f3a2b05df499d3aaecfb327e6b9d7995a022dc5265ed76180100000000000000eed7e8e8a64dfa89c548a31c1b9fec7af5aef4dbbdb26997b2ddca72d4f8790c0100000000000000fa49d3457520dd98ca1489b78354d7d30a9bdf2181140072ebda1c3dc3371e450100000000000000a811cc491bb3487d5e604dcf6dca3bf529437162f3b8cfb8514ffab16809ff600100000000000000fe2848018ac215f72f551e58dd2d065d99b788b5a7aa59b9f9fe47a5bdbc046d0100000000000000b6ed5b0c17ca7560c71f1778694741009d3da979309617f0bb992084019e25290100000000000000d2fb72b7c3d020239ba45289122d0ae3fb560d01d0cb3caec01efa0c8701d45e0100000000000000f853a1534a3af56217661420536dd7bea0db6f6db843d8fead77c308ed7dcc7c010000000000000052a0f4ee4ffddedc5b9fd2154ca213cf3f49df94f4b5c36c2d8f877f5a7010220100000000000000c2041cb909e2a314df816d3234a893c1d387f4d4f9a4379d11400963b134a753010000000000000028702457fd7ea52bb88284bfcd721493ceae3ea984492a1b82c55efa1b62fa390100000000000000484b6b8012254027636d95e66c5ea7ee68dbdf9ef6ad3c2fc00cfe5c39fdaf7c010000000000000002e12aee8fa547e191b4395503c28d4b14650c1dc03c698d73f4cd30f03de90201000000000000004050f1025e1481eedf4d787eb4232123b271e5196dcd8670d754836297d0da720100000000000000e816e2e76f7ccbdefdfd484aa8b5f904d293ae8694e21a92990da54f17e244090100000000000000c664c419396f160467b184251d893f1a1d468e0d230691dd0123d60d446c5b6201000000000000006ef86d4533f47ffd133c63b9575c17234309ab6e16f487ae7cd8914169183c660100000000000000ce60d2c987bbeeaceff8463484b717ce80cbcf3d8f8b2102e95effc88000d95d010000000000000056606b6532cdbf27358fd067d61c2a65e4b3e8934c266a857320ff18e5c7654c0100000000000000060edf92540ed4cbb944b399cabc91a7b9641bfd553bae0479b442f9d5bc7c2101000000000000002abc6a5d748978a4023c3597c49178db2349ea6af5a9b61783095af8e427027c010000000000000094d89cb8df2b03c76d41a6521e5803d6f98e204e1839b9ea747dc7e253d35b7f010000000000000050f5f5863f99e896975813fda8768c72ff25fb54e25385a4263d1ff9a19152500100000000000000ecf0297bddebd3d766ea7def2bac79ad6eb650fabdcd029b99cb1649ff7dc8150100000000000000540926fefa2d0424fd451bfca39a01c0e1a3fc811406e127d1dbfdc6cf9e9770010000000000000038c9a0897d9caff03a308d2120bbe892974ae8cb05f1cfe8b97259f0ac2e85290100000000000000e20f692ef4d1cdecf74a65aed29a64a001ca7a83f01f8440c5725ccaa8fb8e2f01000000000000003491cc113ef8fe1165bb10e65cbb461955f92f8f0d82f2dcfe6664430dab853601000000000000009a53749c83cc06460148d884f1ea5b71897466b237cf16baa45395d78ce48c1a010000000000000064615e1323ea003b7c5a63ba2c8bed2023103458eeee7cf45244580d3ca59b6a010000000000000088fa8bb07ebce99964718c65d0d6f1b091ef2f4d4cdf7b94a22c42c007ecd706010000000000000048afb25f7981cc67a66853ec05675d83a2d99e6318a6a7a135ed2916cb70a26e01000000000000008a0e2d0af87ffb812f6e6ec229d02056e812cc4f5f5743cc638a7d3f279f0153010000000000000002a4b2935b657f9ec563642ab0f34e223ef594cc70c856b9bd70fbe083721560010000000000000092e5bb9d0906f768dbdde0696b78e493cc78dc1f68789575b24f0b962799b51e01000000000000001ab9d2c814ed7a719ef2aa94dcf4db8aaa0315a59d4b5699e86656a6ee9ac5610100000000000000b63f9ab3a147d76614bfb688751f79fb9a120d40af7ba3bb123c1957b91a411d010000000000000010e37a12fc6ed768d1a2d33c8abc6db675381dfe69c832abb77d9ba2341b3c4a01000000000000004a547dfc28e6730b12b365a1cb7dbca5199e04d75aeb07c7b5da4b0245daff5d0100000000000000bc62cca37518b73aa22efed6a88147f84af5db7b82ef7671d9bbf03c76d22b490100000000000000fa1b0afc9ce9e9742c4825890f6d93bb87bd199e55e86ce66ba7c34ce43e273e0100000000000000e063e31ccdf34c3372902f92ec915f213538370658d9272f9ba6d8d6943ccd13010000000000000042c56bdb09d52942b0fedb07045113a641e2fd64a428b1fa608b5adff9ff4d6401000000000000008e0b3a52dae8c17703f7093d386f5fd8fb1c35a585e7830ca06fa84ba489f2610100000000000000b4e86264fd55571f5016e82a1eeba2476b1d0349fdd175d2443ea30bee0b5207010000000000000086ccdecaccbf1a58049c55793916611cb8749edf93085bb764e77636357ec17201000000000000006ac767a27a7c0d66cc9493e93dc9d37a114b8a05ef7ee4b22db346661446e6280100000000000000bec182c65eec6dbc4d89c474a6f6fc6cb6853946eacfc93762cc3616ecd3c47f0100000000000000f29cb4064a1cc3a79da2c9a9f336053cc69d50bcc737257ca2f071c37030510a01000000000000003e07b075219fc7ace8dc3bf3a06f5dc12aa9c7e45fe30244d2284bcfb1e6ee1901000000000000002271d61469f9f1e5a0832af7de453015b89979fd740526080116295f4a4a516d0100000000000000645077cf303943059891df150649d1d828052ea4249bf50ca3b6d29c6ef1984c01000000000000006cb06d06d7955ca5e61897e7f2c4576469e09185f010d96e9bcc84533d1a036b010000000000000022376791bf19fefac611324d27bc6acb4b7f7eec713c186adbeda5a1e1b88f340100000000000000bc8f93a45201992fa9d04355095d03adeb5ff1aea206425eae4f902ffd47fe20010000000000000034caa67978c1a5280b5f58196edcdb5c864b02d0fd40af9c6e6b9716f3fb12680100000000000000fecb15325d9baf603112dd397d2e83d3694414f529d75c4b639c7e775b979b14010000000000000028052d0b965ed862b7861aa7f3f91fe52ff8b0f795ff476c7e0a7aa42e7993300100000000000000ea03f9dc29ae9b7a053c12b6079664592d2cf46a30b43edbb2d2d980223deb11010000000000000092cca18f264bdcfc19e5c01515ea9d61a0bf0b4e46b2bcae372a428b9dc35e390100000000000000e0b770b1bcf7deb030ee75d5bad6ec1ebfe06ded0fc406a8520a9650fe83233001000000000000003c8330f5d7f34fbec333663bab066cbac4403f892df7659b1c118c185c4f16220100000000000000b20050395fc81aa60508e362f02c75faebe3e4909c7a23721182ce791bb701130100000000000000aa92f32eab7cb844bfce67787d5921e9eb63368577d9c46e9c276dbd2288064c0100000000000000526fdfd1d78345a1b2843d392122962cf89a4f157af2a3d0c99607f506175115010000000000000008e80cc5ada5e557a1cea3658402bc83f9892b5c4e112b6e157e6e7d3663c47b0100000000000000a6730d04d45ee4e7e25d3f7b80b4e2ac12a6644a4128127fbe97e97a1d690d69010000000000000068147c36d367eb1a203b303c65ab3d32fe777cabbca8d39e08ffcfd624b3614d0100000000000000b6ad9df8c32a78e9481e75f484fd0b740554276c026736f0dbac0987db0885670100000000000000ea82745d9978e47fc6bb25fc01383aad42aeee65662b6af304474f0e4101b06f01000000000000000a6a0f8136fafe5c2e096704e37d12b47a1e46151489a23eb1713b37769fdf780100000000000000f25d3265659fca9d24ca877823644f1223714b0167d0a676cf3c9c447173d12f0100000000000000c4687b6d8e527d1ad3be71f2b242bed92eac25b159d9e142e6922ace2dfe5f2101000000000000009ab493c4c8007f49a3e7d1e9f1aef39b39cd66a496e90486e62664725c6ba06f0100000000000000d80eba00fd45442e9305434d637564baed7a12136c89734e4ca850db419f0c3a01000000000000009ea2cb3e6c59685087e59d6d45fdccdd5e6fd4f77fd90b4749f65113e23f086f01000000000000000a43fe86fb05c4f76c85474f9867e987d7f894b0f7fdba0b85c323c3103d3b4a0100000000000000cc60431feaf7f1bf42d805f0c12a1978ca9b3ec0a21397a71ecfc2bb7d52d20a01000000000000004a7791775365fadbb61f37a0d2f6d298c0c7c3a4c9402821ec909972fd5f8a4c01000000000000001827754b7465edb9bf4ce981bdd3a33057f9450fc895e39654dbd51c3ab9835a01000000000000005ee252f56786ec8e512d233a09c3bbda21d0bd3a6ed7e8e8c0fe035dfe7989330100000000000000e0d28dc9623e77eeff6b0aee79793b3a00cf8b1c46fb79c8e6ff8cfeecc4af120100000000000000d0106f6fb9b008052da3223c389525681d9b6e4fdb73a4078f7f1949bfaa350201000000000000001e1f47deab3e4083f7d353b746b719a9f5aaee3ae2cf6b37a4d710f95d489a6101000000000000006638aad1c437c5f2f2ab4c46b786db51bb8c7e6af2ee745934811712f8d83e0601000000000000009e3b3214afe654cf851be9e564e72f834168ff65ce346ac54024cdcd932571210100000000000000aa8727e4b0a95c761b5f2506159a25195d3efca5dafa334f871c3cf262fcc56e01000000000000005e7f927ca4edf203d65f682fae546d8d43913b253dad434800df66be1f0768520100000000000000c88d83d7927e1c1dff61de6b8321ee64746d983173bfb3a03c3d4789ae3f202701000000000000001a8de0dd57069c2986c48b25cd40c13d2acb62fad487a82f4f13738e34418c1f01000000000000008ca0a873b2685dde8c4792832cabe50ea5a1f8a9a661a336689859319b66ba620100000000000000102ed4107066f497e13d3c484a9fa60e506587e19541069dd4555a91d63f27040100000000000000d27da69172c428ddb80272e6fc6ec90985ee281b45f933e5bad65184bc3b5d0201000000000000003afb6b0dac3a05453f125943b8a26269202d297b991e054ca851fa68bb4c0853010000000000000048970bde717a65371534a2b878995c8bc6c230d556035fa003da1c523092332a01000000000000000c3292b5065b7b78a2de5f4fe397fff21df37c0ff7eef94c5fc4397f760e6e4601000000000000006edcddd44823f4f48b53a4172c3bbe239842ac1e663eeb0222fd715d050d7a5101000000000000002234e01370aa10159040ac893ffebe3eb28540b8eebe03f5ca658b20866de36e0100000000000000bc3bebcbf6142977fdbe8492bd2c5947a16d38925d56f09db1ef164b608b912601000000000000004616ac86f0d45899eed3f1246dc5744858a694a92b0abd9f10e52dfc9c28674601000000000000009265e7be28a8f56a974027b630bc37703b7ef21b1b1e4253c54d605f4d10da1e010000000000000046b14e55053a02087c957664d32fdcae6ba1c96051239191c63df564d784e1720100000000000000aac332418d8cd5cc9a903a06cbc8f639d32b32163713dd60d065b949abf8367901000000000000007011cf9db6405d2a4b0ffe11b6a6f9de0c8919d0f70e980d6c6e221e98590e0a010000000000000058efa50da673a8c3b5799e278ae7d32f9eee340947f793f44348ba17e25a885f0100000000000000e6a08fa6af54d2308215f4a62d554dd5b82deaec8ba22a2e6ebade7202ab9e21010000000000000038ab6c4b18e1c86176cf53301ea990f1cdddcdc3f2c3e0f8dde126fa59f60b2f01000000000000009c4d874baeccbb19733cf93f6ffb2f44d9b9f5191ead84f3550c7b767a75061f0100000000000000dc9fce160b2cd9c97257b75c861d32348337de685c69042659eec13a0055b4500100000000000000b41546275611fa185c88c7016e909222b3a757b476316766a72729d074d8e92b0100000000000000662f5ccb0a265c7438d4166b72c2d0106b74f928e995dcd24004c67ad715217e0100000000000000723f8c9d81d0874cd4130cb58587c90ef454174e9d6d9dec11279a553caf00430100000000000000a49dbb103be9a66d67ad5c0d11032866488f39d0a106de579d913dc7099a09260100000000000000309ab613bea03c4431f7602c937f5a4d17e2102db6fc7f77e32f7a245041b90c0100000000000000547c6a159db6eb46da71179d0d15dad5691617fc7f3c6a672864655997035c2d010000000000000040884e6b9876fe866d109aae2a5a6f1a18bfe3655ec9c1fee848ca9273446872010000000000000049e7432ee40ede3d43ba6ed37822ac124d32bd6605844c728e889df99472bc1501000000000000000400000000000000026646627e2646c3b728990fc968ec647c2170e66b55fbe48365e54557ae43756916a6160101db1d000000000000b3c3e410000000006009000000000000a50474a0fc84f72a4a9b8493379b7dfc59ca58a261a2e94997600d14b6b444c1475901000000000000009c40155989f6072e82caba245d7db7e40a60f866b403257976b89aba6be2b55b010000000000000014b0a3a620f70ada506d6ef1b7ab099219f2f05689523af7eebc81f9ba258e6001000000000000007067d4c5b492b11e2052a2bb0b4f729a52b3667afbca7dfefa863011254b5272010000000000000072ab87b654d80294c876cbefb534b3344c2f64159b015b89221331ec2145417501000000000000008008c1b7061a2402634fc15d3849e2913863beb9f55024bc8cc7fa7d6e397817010000000000000024a51a9bdb67213626d1b52bd8dbc0e9b94ea88ea417aa17b56212d1cea3e1780100000000000000488d520146f681678e9d229f5e29354edf65e521246b28a4175c0502e060b92001000000000000003ae9dfa8b24faaf16407328ff38a89b25fc7c673c44f9de3de0c011233d4226d01000000000000009e47382505cd1a803bdbe7803d36a61413e58697bd9396ce1607c89a48d1e051010000000000000020352ba0565811731625a8001d26f5d899e5856dedd0f9c6bc3bec2995704e5b01000000000000009cb389c209afbebda2b12113e0266b3d30f46e2a91aaf4451c193d640288357101000000000000004c9886e2e62ee92a6778d6a7928052732044b64fa61969cd8e37f3f7e3406f7201000000000000000c78c9dfc0033ff87657c56b7ab8cec4d1249be2de18729f743f385343af0f160100000000000000002e496e564f088a075525d2f9155aadd1a7eb017fa36f9e16096e9db7e169330100000000000000ae40860237c8f606dfb6974046eaa6b6b96f8d0aef56fbe3ce4865f66646bd260100000000000000f6dddaaaa53b57763610037753656b591d90fa81efbadcabbeddf7378c23602701000000000000003e69835397599a4bf081775f9f42f0f4ee686d67c9af8eacc4a733fdcdb0290b0100000000000000c48c594bb4e173544a0379055b65d995af53256f653d04f2cf4fdf8f3548943901000000000000003a80d898638dccd4aaa472e7948e7394969cc443335c494159948915c097c036010000000000000000b84e6e296de1009aeca95ee09bc5173aec6e91b1145b247d69e477588789720100000000000000466c0e97d043a4b0f4c3ac4849e11f901e9b31b28f8b3e40b7cdb0ba7f77480801000000000000002049288b4dbfb741109778c602f9308daf2e31b3b66e9aa550065e73c6787d7c0100000000000000e67c524e443cda4cd27dfcce70488a5d23a93c8c46a5e83ef5a69eff3a02fa5a010000000000000024a57db63b380456d56d561d8a9da6db13d298045c9672bc4086a2e0a567d55c01000000000000006c50859d9dde209012eb3868c1a3a6e80ae8fa528ace9df68e92dbbae6036820010000000000000078c88041bbca9b2bebd62fde7c46f4dc5e55d8877a113d063a6b525dfd6f7f2a01000000000000002e85d3d2c07aaf1c0a5f63f544c34b87cfa90a98c4f6167e86cee0b74a20cb120100000000000000723f3865d97a772459da8942cbb4757164f1fe7485cbcefb4b206e157ee5ed0201000000000000007c5f58a83f8101943c089dba3ab906c07811e853444aa58dbcc986c4095fbe7c01000000000000005494142902284943201b7cf610306e8665eeeec87c014d607175c3f50f76103b01000000000000001822493200c35242a149070784dca5e7012a8a52b61cd218ec7d65e469e8cc56010000000000000072ed7192625403acef94aa9189f9f179deb89e60478816ca96c79b742f757e750100000000000000d8f30bc2ee88e69f60d0278998414c80f4a130b8e1738e873bcd14ef31e58d36010000000000000042e377034ce6b2a582bfd66c465252ab10ce790e4f0d3bbe99a42ff86b29965c01000000000000000e164f314984e9a172a3a1526d853ff70bd11f3c596f17accbbebe2f7820833c01000000000000007e91ca522b14cbb71b45348c699b7d65c3198516ee771079b672ee3d7cfc577501000000000000004e2753547f6ec0a896bcbc55b9eeab875e8019acdeb10b979210af63f24c4b74010000000000000098faca5e78664fd082bf47f0079de33a5021415c8f5f912941e651a0b7071d1f0100000000000000ca6e63cec4c0801ecd740073da08be68b9cf4c7ff76b740fb6a522a63e838b5a010000000000000042e7851b82d8b7722b9eeb5eead57b21bf533fd25acb10542a52889376fc3920010000000000000028ce9c093ac772f56acb8dfe8b33a3966d4b8699bd41814117352d397195bd5f010000000000000042ad4ba7e8a60af1abcee04fdd82ad02b24f1e2535bdb1abcdde886efbf0fc4301000000000000006ec27dfa7ac9d35eb002c55d3e4d56b4df928dd5c44323ac228305741c9e09360100000000000000b89cbc83a386d6f5d4fed93289ee50fdf69d77369ca0c9a8b962554e3fc0d37e0100000000000000e61da4eefdd14434952c58dd1943f7f63185d03321ccc8835e4216badd16fc19010000000000000012a64d79e44f1adb33c85c4f2bdfcd8d8b38a34d984604f39289c9a7624a442d0100000000000000a20797f3a8669a909adb22a3aee2844dba82d231cc33f5d9be0e2c533cb82a670100000000000000e297620b731b4958e3c6aa06611c6aa5a45f7e116362d64954a0a330d2a98f330100000000000000dc1274e0689c7a3eac31b41ce352719529e65c01f26999f74ce17c9905fce87401000000000000000e5e5f8e89cd8d58ef83abddd3d1c2079691dec4f6965af70436e84411c31f3901000000000000007c21799f6143fa837a8c18bebe3368d60f4e009b114f61490b54e6344034040d0100000000000000e2f4efaa91da8465ac7d109cd80be5c02b9ba7a0603ff372cd77824de17f6c4201000000000000000ef6f09a9e310abb5c57dd7050a94d56d766772b80789b997cbb40f3b40f625d0100000000000000a88864a0dc9e292aa7cc8eddaa8dd8b6be2a4bc7e8f290023c6604e5c4ad1a7a0100000000000000dc68569b46a09aebabe8fc4452e293fac635e4a2889739809b32e4e2303e3f71010000000000000034ffee048e511f4187a6f40339650ec60a3d99ac5a1158ae162c5729b59d51740100000000000000be7c58318c49ff328d53a6d67830a8a046a41f5124824d3ce2e72cc9965ef57e0100000000000000b06e3ee1ea6420fb73ebd502988420f51b977a83074e1aa5daf0121f4a8b6b1e01000000000000003843abe933fa3ce63f3a5e422e13ec05dc9c0e8f150b93a0fa97f1b193cfba2d01000000000000009cdd57a06bd22d104d539527a19033620becff73dd267f0c2f9f13bc37b0d32c0100000000000000e020b5e946e4c6b0603ceac71b44c330fa7d9cb3e79791ebe1e16bedbb9c71000100000000000000a86c7bdf11794e554439b09f9f294c8e0abaebf447c7bc54419434b8b95f864901000000000000009e9f565a8cb6e8f2154a9833735930a04003505856c3743a0f71afe64c7acf7101000000000000005a63824687de4f60534ee18a430396b95263f75a077655c751bc2045ca2ec84d010000000000000042e4c41a899dfb238649e5b17dc232c2699353635d60e6a3bdcd71f9b82cda300100000000000000f23d1b22d1b03c9fb6eb203c85761fe429a60c38d6591d215e873d62f5d2e4010100000000000000283a77cab50b96f99a8e8287c1488ebbcf31fc3daa953ffa99ac16db982f1e1201000000000000007c3526dc5579f1ef841101b573c655c20f4346fa4a6b0b6ed773d147c3ad6d7f0100000000000000ee579514d7f544fc9fb8d6383ed7d109ee98a411bb4b0b45b9354b0f73fed9720100000000000000e8308668e9f16683cc739791a6dd530b819f45e4ade2113ee2f27eed1c51d120010000000000000026d421de2e7251020ac2f8b8c7e348aa904dcaf0b6d5d73fa0113b476f7dd9030100000000000000bc56c07cea21bcbbe058aedd2ced9fb4757caead55f96bda9bed1c9669c32b640100000000000000ec56243ac035f65b377444e20bc8fa7e3e75242a59b5ffa5f44270f451315f2b01000000000000006ccf2ce8e149999a7bb996faa65194e60aeb7bcd1937c787f886fe979fb49e660100000000000000c0e36251f9ce24d6fe429ecf14bc9599285e3e27c0a541d5ac0ad1902d7ad614010000000000000082b820c5bee8ee77e35203dab387f3434b8502e5f1c35dfb2ad15b5c89d47b3c01000000000000005620922a6765fd47abc96615ef5b8b8575f18aaf8507f6afb86129bc1080994f0100000000000000b4b145ce385b4a3d83f2daac46a61874f80e58c468dd624acc09a558be02c27d0100000000000000b288a9832e07bef83c5a8ca72c5a5583b321672ba7c6cdd44a971f855d32d95c0100000000000000d04077347325618eb5cef03729a157b910fac54ec7e344e65b6945fb9fbbeb3b0100000000000000fe3b55d17e25c44a3568885d9d37276df81fa5225d9d73ee67321c7826581b5a010000000000000072183c2429e4966be5cb14c9cb84d6e4092b4e55d8ebe2534cbfa179b6f85325010000000000000040a2527ffa7d30d788eca127d435c8b5aa48972cda538b9a1627a57e85c8fa190100000000000000844b691aa95ff9a15b50f5e5f4f0e582db6621326cf18d7533f55bc27549497a01000000000000009c1863aefa0b4d5f3d48275769ad0ed04e1428db9694d83b9bb8b5d833f1b41101000000000000007c4b93d862704aad434ab3dc2cbef824df738c5dbe1ba7b34daa38b2aabf7c360100000000000000ae272f5ae4e197a1fc8e670d3aa7bcab325a39d1653b5440bb7593788d0526280100000000000000261ac3229b4bb7a376c37f17e287b2eb596d3b478370b722b6b41443d87081320100000000000000421f3fea780f04810915479b2b72ba55591d1db37a425cae170548a50127f83001000000000000001a36d936f4692ac8387ac0ca1f051970ae480271e39fc134436b86b8ec83b25d010000000000000026d7422872cbf4d4918046f240a13a37219a272f4326b3f3bd1249829bbcd12b0100000000000000be6106f9217a1847af66de9510fdfb40514409556506ddc1c1a897818434125b0100000000000000e03dd3bbb140ffa44e0cc0e1846967b03aecccac78f6e2e0a1fd3ac0d34f554a0100000000000000d08dade453078ef481107714d602bafaa5f1247ec053c3fb62fa8ce53c1df4700100000000000000c02283aab385e82cd28d831cd1ba21381597e0ed3b193f6aa22d7588434c24160100000000000000ae2e94f092fbcfe263519f950b5ade09c474258a4e0d5e62570d02b3f71d85480100000000000000b47377c358164a12a68a76035ac0479022018f5e9a3fd8fc915b265f92b74d4a010000000000000088b8e0da91c48fd9bf94ca5ed7fb74797a037e626c98ac18cd76360ccd6ac11c0100000000000000c01b5bef9653fd67a8b11907f4c2a9b12cb24237768ad9188330794e9242a723010000000000000086c1922e4ed392d72e0fbc0ee28e7ec0a8ba2b33470330a606cec9a159a79626010000000000000036465f4be77147914969ea78f8e39610310679011dfbb6137dab12e18a687a520100000000000000783134a08ea27221e873043cd0ee52a9f79c2eb14d5cd25afed24d7c82cb2246010000000000000004ba7eb24012b133b20a8021b603a1483c4a5b9ad3415a4d7ca2b1ad625719550100000000000000202e3405e49bb882f1d49efc4a4adc5b62dcc96ec18346a48aad5a510c189b5001000000000000005c39533cbb607f1f52d82356d267a56399045e0d7b7e95887cfd8ec13173db2e0100000000000000343d27f7f66355f47054ee18bfe7df92bdd8b1aaf9391ba3b8b022905f95f94e0100000000000000ea6acde5149e930af7bc3b17b7f0bdcf12dfd3dc3437f774f823bbeef420a97201000000000000006e7a78e9fdfe275f3e000382ba30452729970578258839db6c0fc568e20b351501000000000000004e1b48e67c1e62e46add39fa523b956946228ea0f08bd9d20ced798cfc9a0f5b0100000000000000faa6ae896c2d1040e495acbdcd8d90a02ccb17ba6e507efa2f7deacb3b28466e0100000000000000402a67126cd160c84edcb39374164f3a39aec59ae72cb66dd9fbd1e9891aa27c010000000000000014e2f25dd3376eb7978d413c14322704a2ff3d9c0c2971acdcdf9720c2c13d6b010000000000000014cf97e739cfd033c2828f25ad3f15e8f6ef62ba97dd74164e77e61eb85454260100000000000000a07f151db53097c2da9dac4b2e0f194931a677a3ba99df0f3976e34409fd64760100000000000000c63dfd97609d6fbdd6300bb957b3feba86755bbd5a36d6b4ca40bea6a1b2517001000000000000004cc9ff5edb36e361b088b0eff52fc6e6559c1169ff87ccdb62503bceab7c74450100000000000000fcd5f4c4fe11f20ad99dc8345b7dc5600caba5d5b7d3f499c3253c095152d4540100000000000000941f291e924d50ffa173fb0a86b37e11915b06910a54d418b0a20998d0303a6901000000000000005eac8ac37c95fc11921839550a30ef071bbc80fb10ea1482cc67818e184d544a0100000000000000ea2b17bd1b69a7b442dd000db0f12f0bd4bf7a87a540427986bd32f3d3bd555801000000000000001e825121b8beecb30e9962a555ce06b9e2c65fcf3b0023178556330d565bcb4c01000000000000001682c3264fc0b2a36eff3a5864cdacfe726bf5972ca8f4c5cad6f18bd450d23e0100000000000000dcbaae9e44c778fd2914d5940c24033575b5b0ef13d0157a667e4a52d9e719070100000000000000d412fb5e47b946e69918a6391ac30283949ba6d99c491d78fc5014aaa2144b590100000000000000ce323186d64f267b11e6dd0bef533ae85d282b40f90e38eef37f191a7927663f0100000000000000b48cf50a4f94e83450a791d6de965c3e8127c1c915208f2b85df4c3a84b2042f0100000000000000c60a9f5f89ea3a56499bcd39bac7e038c25f5b7720d873fdc12b68d2531eb650010000000000000040b77fd8fcabe868dc7f2a08bf14c67e4d433886c3cd3738d1b0b9c649bafc230100000000000000b013a8307c3572f939c1a9759a832f35babc847cc022588903572c8def43267d0100000000000000cef0feb2602582b96fec882181d34bd5504645c544c983b1a962188239eed90a0100000000000000b633c47d126eceb0e36d788370ebaa179b0c7a3a21cf5f1421bfac40c895ed3c0100000000000000dc5dac973975ef5f4edef722e9727d0c05a73e4e45f7e524a8d216d2a691a6710100000000000000a0887bd2c2058519096e8dcebf495f2ef274490994e969063f72a41b3fab80720100000000000000d2838a30fd86f5f19aa80481630ecd0ee0fe5aa565ea15786f37a22a87cc1b7d01000000000000009acfd215519f40156749868afc8d56e015759f71cf183fe68382e8c02c75b25101000000000000005ce79c3ad8a0e1806e863f0858c28a81408d19870a62ac0316b3e6345cbb5f7601000000000000001cbfaf2b91ee79c6288ad01dd5787070b34d5e1b8253a1765904eaa7d0b93f020100000000000000b672ee2f0f9183585ac4875368a0defda6d3c81927fbfc34bbacc7481058cb4b010000000000000036a547b4aca95274437f3876bec0447f775eacd01b09d95869390d326a596d450100000000000000c09be470dab56a2b45b94ba6dac8ed9d515f1d3785cb4eacab40d0a80aa42b1c01000000000000007878535e43226cf81c42183db4bbef4b1eed2a460f6cd423c03af9e86674647a0100000000000000526e1fca7613776cab9c7b4ef9b4577b35adbac416c48529b6058a5f9d133210010000000000000052c9327ca5c1ca830f8ff712d813a8cdc2a8be122f16bf0d1d9e77b7a9789372010000000000000026f2af62a2f0d847e3d2cccc93ec7f98c80a7b6d1bcca4cf1c4a6fc7f81775010100000000000000407e78f505ae833a2eaea113245bf6a5ef6abd0db66141f770cd6cd7a7e75d7101000000000000009c576fccaf2ffb4885a0ac8ed7ba0b80ee5fd060856fb9f80bdd3219e5d7800d010000000000000078c91c4ee02089ea86612f66d6022a0cbd54afe470a162a72036611623924f6d01000000000000000481a58bfdafecabbc96bd170a0ec04cc35100f1f928cca3ecc63b3639e476790100000000000000607fc085eaca16b6a51e44ac9f61a689e869efe15b4da37be15b78c17b193b0301000000000000008ec5856a5fd17617c0af76efea16a87d0c5e769eaad39e91c40dac93fb067d5d0100000000000000e4be18b8f5905bc41fe3cba2e5350d405e76036328042ae7edfbb6b6a9b43d5a0100000000000000824792c3ed55b88805009230d67bd8059eb9958dc23900e4b1a6efe61dc0e96b01000000000000008c73f71ea9e64834a5e048824978864a96c5c600f42f8a7350dd10ac088ecd2101000000000000004ed5f55ec45727a57e2d8d6914f6d2acffb17b9515d347ba045067502a0b14020100000000000000507e2aa1a2409b289b89c80f7ccb129e91a32e8d44c98723f8a97307f54a2d0601000000000000002a0fda136ae348db338b87bed349145a94ce091227774b0542e533a83d1ba455010000000000000078d986932e680d7bebce126a5aedae3e11ba0f4e28c03d63a491e8bcbd05ad2201000000000000007c552599ae2d251c1fb693009a0f904e41e59183027af5adfb8bba4133fc13620100000000000000502c19c77976b8cb0c47b08cd465a75bd7d25734fac0048342c697501533ee2101000000000000006a5607bc375d7ac0908e7643ea2e89dbe42f4f805c2fb6e2a22d0385c1232b310100000000000000f4ccdf83d734edcc568462572abaf32d22ac7faf8000195e02273d1c9665430801000000000000007eb2b0b6adbe5a5bad38f46db207f94c896d419661f4ab8f21e302a543df9b11010000000000000048ce0aba6f1554e139568b4d2358d6cca9bc291d3600787cc3e732291002ca22010000000000000092239fbae2557ff2ea3952c962e478e6ac2a5b3e3cfffb0eb40e8d41860ab0470100000000000000524c4d2a0ab6f9687123f9c8a9ab4fe2c70f9fc3b1863b4fde16f4dfaddc7d570100000000000000469d81e8b43725a64da6b1ce10eb53eebe1aaebb9703f75ed452e12f45d26273010000000000000000e2ef06613c993996e6eddf381c0f035659593515d10d664fb6bc1002bb921a0100000000000000c4c5fe47a568c2fe4876eafd5e0093dcc31b450eb87bfe58397dfae2a590d465010000000000000044c47763e8f2f1675b480c01304c4da58c8d276b5ecee722e45d17afdc3d391d01000000000000001cc40fa83cd0a4431aa63315b55c669370a4037756089f3402a9021e2d8066640100000000000000742c0a1ea78a09c7454b48897bfde87bf4959b89c898623c8eeace7af714147d01000000000000007873ecedbae63dfbe5594da935e52c14dbd0e131b12879d573b9c002c6e5c4400100000000000000fc53d15453457faadc5540c5853f54324eec395d3647fbf99d5e6e97ef3876760100000000000000fca464b97dee2e318ad8d4516fd606a5401f5d15467110112a3326ef96ce007601000000000000001049c5c0f0493537f48c6b122d697f28cf8ea36ab772591ae875da8aae1198520100000000000000bc3bf978ea283cf493b43928b605309be31def9d4a1daf47788017ac61c7c81b0100000000000000864cbd281011a154d93d0320865ad67ae442bf0985f0ec220e2c7db4b09599310100000000000000cebdabff22e607a75aa8db1bf875511a563200cce3f089972aca719649b6e1760100000000000000382fb32d7c8868ce3765e9ccfb462c04071a3d70cab3382c796a9115ab0c310301000000000000008a6dbf87f769167b4eb982f63b946f96a1f223b6a6f2789183fec09581b8e906010000000000000056927fdc8bff2063e108fe1b05bbde2f6219bda7d8663fafcf3d2976c72153590100000000000000b027ae418b6c79d9f3a2b05df499d3aaecfb327e6b9d7995a022dc5265ed76180100000000000000eed7e8e8a64dfa89c548a31c1b9fec7af5aef4dbbdb26997b2ddca72d4f8790c0100000000000000fa49d3457520dd98ca1489b78354d7d30a9bdf2181140072ebda1c3dc3371e450100000000000000a811cc491bb3487d5e604dcf6dca3bf529437162f3b8cfb8514ffab16809ff600100000000000000fe2848018ac215f72f551e58dd2d065d99b788b5a7aa59b9f9fe47a5bdbc046d0100000000000000b6ed5b0c17ca7560c71f1778694741009d3da979309617f0bb992084019e25290100000000000000d2fb72b7c3d020239ba45289122d0ae3fb560d01d0cb3caec01efa0c8701d45e0100000000000000f853a1534a3af56217661420536dd7bea0db6f6db843d8fead77c308ed7dcc7c010000000000000052a0f4ee4ffddedc5b9fd2154ca213cf3f49df94f4b5c36c2d8f877f5a7010220100000000000000c2041cb909e2a314df816d3234a893c1d387f4d4f9a4379d11400963b134a753010000000000000028702457fd7ea52bb88284bfcd721493ceae3ea984492a1b82c55efa1b62fa390100000000000000484b6b8012254027636d95e66c5ea7ee68dbdf9ef6ad3c2fc00cfe5c39fdaf7c010000000000000002e12aee8fa547e191b4395503c28d4b14650c1dc03c698d73f4cd30f03de90201000000000000004050f1025e1481eedf4d787eb4232123b271e5196dcd8670d754836297d0da720100000000000000e816e2e76f7ccbdefdfd484aa8b5f904d293ae8694e21a92990da54f17e244090100000000000000c664c419396f160467b184251d893f1a1d468e0d230691dd0123d60d446c5b6201000000000000006ef86d4533f47ffd133c63b9575c17234309ab6e16f487ae7cd8914169183c660100000000000000ce60d2c987bbeeaceff8463484b717ce80cbcf3d8f8b2102e95effc88000d95d010000000000000056606b6532cdbf27358fd067d61c2a65e4b3e8934c266a857320ff18e5c7654c0100000000000000060edf92540ed4cbb944b399cabc91a7b9641bfd553bae0479b442f9d5bc7c2101000000000000002abc6a5d748978a4023c3597c49178db2349ea6af5a9b61783095af8e427027c010000000000000094d89cb8df2b03c76d41a6521e5803d6f98e204e1839b9ea747dc7e253d35b7f010000000000000050f5f5863f99e896975813fda8768c72ff25fb54e25385a4263d1ff9a19152500100000000000000ecf0297bddebd3d766ea7def2bac79ad6eb650fabdcd029b99cb1649ff7dc8150100000000000000121f9d8ba85d89e3c6f9a0fedcdfc9b05cc40a6d3324eff6e8a58aec5f5259050100000000000000540926fefa2d0424fd451bfca39a01c0e1a3fc811406e127d1dbfdc6cf9e9770010000000000000038c9a0897d9caff03a308d2120bbe892974ae8cb05f1cfe8b97259f0ac2e85290100000000000000e20f692ef4d1cdecf74a65aed29a64a001ca7a83f01f8440c5725ccaa8fb8e2f01000000000000003491cc113ef8fe1165bb10e65cbb461955f92f8f0d82f2dcfe6664430dab853601000000000000009a53749c83cc06460148d884f1ea5b71897466b237cf16baa45395d78ce48c1a010000000000000064615e1323ea003b7c5a63ba2c8bed2023103458eeee7cf45244580d3ca59b6a01000000000000000c68512e2e5dca7783df908fa702dce48d67a439655fe52de6d29cb07890445a010000000000000088fa8bb07ebce99964718c65d0d6f1b091ef2f4d4cdf7b94a22c42c007ecd706010000000000000048afb25f7981cc67a66853ec05675d83a2d99e6318a6a7a135ed2916cb70a26e01000000000000008a0e2d0af87ffb812f6e6ec229d02056e812cc4f5f5743cc638a7d3f279f0153010000000000000002a4b2935b657f9ec563642ab0f34e223ef594cc70c856b9bd70fbe083721560010000000000000092e5bb9d0906f768dbdde0696b78e493cc78dc1f68789575b24f0b962799b51e01000000000000001ab9d2c814ed7a719ef2aa94dcf4db8aaa0315a59d4b5699e86656a6ee9ac5610100000000000000b63f9ab3a147d76614bfb688751f79fb9a120d40af7ba3bb123c1957b91a411d010000000000000078fb9f8411552c70290a09cdc6a0e235c74364d37204ec06ab62a4d45201233e010000000000000010e37a12fc6ed768d1a2d33c8abc6db675381dfe69c832abb77d9ba2341b3c4a01000000000000004a547dfc28e6730b12b365a1cb7dbca5199e04d75aeb07c7b5da4b0245daff5d0100000000000000bc62cca37518b73aa22efed6a88147f84af5db7b82ef7671d9bbf03c76d22b490100000000000000163a52c9bc0e859d814e742b7b5c8ad8e9c603d3d1f2b896256df27320290f050100000000000000fa1b0afc9ce9e9742c4825890f6d93bb87bd199e55e86ce66ba7c34ce43e273e0100000000000000e063e31ccdf34c3372902f92ec915f213538370658d9272f9ba6d8d6943ccd130100000000000000f6d56c6aaa5121b6a63f13af233d5233b608d53eb7f789a3db3749a4cea2f34f010000000000000042c56bdb09d52942b0fedb07045113a641e2fd64a428b1fa608b5adff9ff4d6401000000000000008e0b3a52dae8c17703f7093d386f5fd8fb1c35a585e7830ca06fa84ba489f2610100000000000000b4e86264fd55571f5016e82a1eeba2476b1d0349fdd175d2443ea30bee0b5207010000000000000086ccdecaccbf1a58049c55793916611cb8749edf93085bb764e77636357ec1720100000000000000bec182c65eec6dbc4d89c474a6f6fc6cb6853946eacfc93762cc3616ecd3c47f0100000000000000f29cb4064a1cc3a79da2c9a9f336053cc69d50bcc737257ca2f071c37030510a01000000000000003e07b075219fc7ace8dc3bf3a06f5dc12aa9c7e45fe30244d2284bcfb1e6ee1901000000000000002271d61469f9f1e5a0832af7de453015b89979fd740526080116295f4a4a516d0100000000000000645077cf303943059891df150649d1d828052ea4249bf50ca3b6d29c6ef1984c010000000000000022376791bf19fefac611324d27bc6acb4b7f7eec713c186adbeda5a1e1b88f340100000000000000bc8f93a45201992fa9d04355095d03adeb5ff1aea206425eae4f902ffd47fe20010000000000000034caa67978c1a5280b5f58196edcdb5c864b02d0fd40af9c6e6b9716f3fb12680100000000000000fecb15325d9baf603112dd397d2e83d3694414f529d75c4b639c7e775b979b14010000000000000028052d0b965ed862b7861aa7f3f91fe52ff8b0f795ff476c7e0a7aa42e7993300100000000000000ea03f9dc29ae9b7a053c12b6079664592d2cf46a30b43edbb2d2d980223deb11010000000000000092cca18f264bdcfc19e5c01515ea9d61a0bf0b4e46b2bcae372a428b9dc35e390100000000000000e0b770b1bcf7deb030ee75d5bad6ec1ebfe06ded0fc406a8520a9650fe83233001000000000000003c8330f5d7f34fbec333663bab066cbac4403f892df7659b1c118c185c4f16220100000000000000b20050395fc81aa60508e362f02c75faebe3e4909c7a23721182ce791bb701130100000000000000aa92f32eab7cb844bfce67787d5921e9eb63368577d9c46e9c276dbd2288064c0100000000000000526fdfd1d78345a1b2843d392122962cf89a4f157af2a3d0c99607f506175115010000000000000008e80cc5ada5e557a1cea3658402bc83f9892b5c4e112b6e157e6e7d3663c47b0100000000000000a6730d04d45ee4e7e25d3f7b80b4e2ac12a6644a4128127fbe97e97a1d690d69010000000000000068147c36d367eb1a203b303c65ab3d32fe777cabbca8d39e08ffcfd624b3614d0100000000000000b6ad9df8c32a78e9481e75f484fd0b740554276c026736f0dbac0987db0885670100000000000000ea82745d9978e47fc6bb25fc01383aad42aeee65662b6af304474f0e4101b06f01000000000000000a6a0f8136fafe5c2e096704e37d12b47a1e46151489a23eb1713b37769fdf780100000000000000f25d3265659fca9d24ca877823644f1223714b0167d0a676cf3c9c447173d12f0100000000000000c4687b6d8e527d1ad3be71f2b242bed92eac25b159d9e142e6922ace2dfe5f2101000000000000009ab493c4c8007f49a3e7d1e9f1aef39b39cd66a496e90486e62664725c6ba06f01000000000000009ea2cb3e6c59685087e59d6d45fdccdd5e6fd4f77fd90b4749f65113e23f086f01000000000000000a43fe86fb05c4f76c85474f9867e987d7f894b0f7fdba0b85c323c3103d3b4a0100000000000000cc60431feaf7f1bf42d805f0c12a1978ca9b3ec0a21397a71ecfc2bb7d52d20a01000000000000004a7791775365fadbb61f37a0d2f6d298c0c7c3a4c9402821ec909972fd5f8a4c01000000000000001827754b7465edb9bf4ce981bdd3a33057f9450fc895e39654dbd51c3ab9835a0100000000000000126a7f10393da0379401ed5fc6945ed0cc3a795c2a192b0bbc3708d24ada404401000000000000005ee252f56786ec8e512d233a09c3bbda21d0bd3a6ed7e8e8c0fe035dfe7989330100000000000000e0d28dc9623e77eeff6b0aee79793b3a00cf8b1c46fb79c8e6ff8cfeecc4af120100000000000000d0106f6fb9b008052da3223c389525681d9b6e4fdb73a4078f7f1949bfaa350201000000000000001e1f47deab3e4083f7d353b746b719a9f5aaee3ae2cf6b37a4d710f95d489a6101000000000000006638aad1c437c5f2f2ab4c46b786db51bb8c7e6af2ee745934811712f8d83e0601000000000000009e3b3214afe654cf851be9e564e72f834168ff65ce346ac54024cdcd932571210100000000000000aa8727e4b0a95c761b5f2506159a25195d3efca5dafa334f871c3cf262fcc56e01000000000000005e7f927ca4edf203d65f682fae546d8d43913b253dad434800df66be1f0768520100000000000000c88d83d7927e1c1dff61de6b8321ee64746d983173bfb3a03c3d4789ae3f202701000000000000001a8de0dd57069c2986c48b25cd40c13d2acb62fad487a82f4f13738e34418c1f01000000000000008ca0a873b2685dde8c4792832cabe50ea5a1f8a9a661a336689859319b66ba620100000000000000102ed4107066f497e13d3c484a9fa60e506587e19541069dd4555a91d63f27040100000000000000d27da69172c428ddb80272e6fc6ec90985ee281b45f933e5bad65184bc3b5d0201000000000000003afb6b0dac3a05453f125943b8a26269202d297b991e054ca851fa68bb4c0853010000000000000048970bde717a65371534a2b878995c8bc6c230d556035fa003da1c523092332a01000000000000000c3292b5065b7b78a2de5f4fe397fff21df37c0ff7eef94c5fc4397f760e6e4601000000000000002234e01370aa10159040ac893ffebe3eb28540b8eebe03f5ca658b20866de36e0100000000000000bc3bebcbf6142977fdbe8492bd2c5947a16d38925d56f09db1ef164b608b912601000000000000004616ac86f0d45899eed3f1246dc5744858a694a92b0abd9f10e52dfc9c28674601000000000000009265e7be28a8f56a974027b630bc37703b7ef21b1b1e4253c54d605f4d10da1e010000000000000046b14e55053a02087c957664d32fdcae6ba1c96051239191c63df564d784e1720100000000000000aac332418d8cd5cc9a903a06cbc8f639d32b32163713dd60d065b949abf83679010000000000000058efa50da673a8c3b5799e278ae7d32f9eee340947f793f44348ba17e25a885f0100000000000000e6a08fa6af54d2308215f4a62d554dd5b82deaec8ba22a2e6ebade7202ab9e2101000000000000009c4d874baeccbb19733cf93f6ffb2f44d9b9f5191ead84f3550c7b767a75061f0100000000000000b41546275611fa185c88c7016e909222b3a757b476316766a72729d074d8e92b0100000000000000662f5ccb0a265c7438d4166b72c2d0106b74f928e995dcd24004c67ad715217e0100000000000000723f8c9d81d0874cd4130cb58587c90ef454174e9d6d9dec11279a553caf00430100000000000000a49dbb103be9a66d67ad5c0d11032866488f39d0a106de579d913dc7099a09260100000000000000309ab613bea03c4431f7602c937f5a4d17e2102db6fc7f77e32f7a245041b90c0100000000000000547c6a159db6eb46da71179d0d15dad5691617fc7f3c6a672864655997035c2d010000000000000040884e6b9876fe866d109aae2a5a6f1a18bfe3655ec9c1fee848ca92734468720100000000000000f4751bb25e58daf18770161b19fc3c544f5b5d3986275612bfaeba70d882887101000000000000000400000000000000027494065a1f61226b66736add1b00a214e14611c3f78e1ab4d3e0d9c69ae732f875af160101dc1d00000000000013cde410000000006009000000000000a50474a0fc84f72a4a9b8493379b7dfc59ca58a261a2e94997600d14b6b444c1475901000000000000009c40155989f6072e82caba245d7db7e40a60f866b403257976b89aba6be2b55b010000000000000014b0a3a620f70ada506d6ef1b7ab099219f2f05689523af7eebc81f9ba258e6001000000000000007067d4c5b492b11e2052a2bb0b4f729a52b3667afbca7dfefa863011254b5272010000000000000072ab87b654d80294c876cbefb534b3344c2f64159b015b89221331ec2145417501000000000000008008c1b7061a2402634fc15d3849e2913863beb9f55024bc8cc7fa7d6e397817010000000000000024a51a9bdb67213626d1b52bd8dbc0e9b94ea88ea417aa17b56212d1cea3e1780100000000000000488d520146f681678e9d229f5e29354edf65e521246b28a4175c0502e060b92001000000000000003ae9dfa8b24faaf16407328ff38a89b25fc7c673c44f9de3de0c011233d4226d0100000000000000e84529a1a5d90df032f8a38981b1e973b2551ffd11eba49d54e278499708473201000000000000009e47382505cd1a803bdbe7803d36a61413e58697bd9396ce1607c89a48d1e0510100000000000000e07446ce5f2219527928039f41b43de71567e0d247a53064b32a1732a9bab306010000000000000020352ba0565811731625a8001d26f5d899e5856dedd0f9c6bc3bec2995704e5b01000000000000009cb389c209afbebda2b12113e0266b3d30f46e2a91aaf4451c193d640288357101000000000000004c9886e2e62ee92a6778d6a7928052732044b64fa61969cd8e37f3f7e3406f7201000000000000000c78c9dfc0033ff87657c56b7ab8cec4d1249be2de18729f743f385343af0f160100000000000000002e496e564f088a075525d2f9155aadd1a7eb017fa36f9e16096e9db7e169330100000000000000ae40860237c8f606dfb6974046eaa6b6b96f8d0aef56fbe3ce4865f66646bd260100000000000000f6dddaaaa53b57763610037753656b591d90fa81efbadcabbeddf7378c23602701000000000000003e69835397599a4bf081775f9f42f0f4ee686d67c9af8eacc4a733fdcdb0290b0100000000000000c48c594bb4e173544a0379055b65d995af53256f653d04f2cf4fdf8f3548943901000000000000003a80d898638dccd4aaa472e7948e7394969cc443335c494159948915c097c036010000000000000000b84e6e296de1009aeca95ee09bc5173aec6e91b1145b247d69e477588789720100000000000000466c0e97d043a4b0f4c3ac4849e11f901e9b31b28f8b3e40b7cdb0ba7f77480801000000000000002049288b4dbfb741109778c602f9308daf2e31b3b66e9aa550065e73c6787d7c0100000000000000e67c524e443cda4cd27dfcce70488a5d23a93c8c46a5e83ef5a69eff3a02fa5a010000000000000024a57db63b380456d56d561d8a9da6db13d298045c9672bc4086a2e0a567d55c01000000000000006c50859d9dde209012eb3868c1a3a6e80ae8fa528ace9df68e92dbbae6036820010000000000000078c88041bbca9b2bebd62fde7c46f4dc5e55d8877a113d063a6b525dfd6f7f2a01000000000000002e85d3d2c07aaf1c0a5f63f544c34b87cfa90a98c4f6167e86cee0b74a20cb120100000000000000723f3865d97a772459da8942cbb4757164f1fe7485cbcefb4b206e157ee5ed0201000000000000007c5f58a83f8101943c089dba3ab906c07811e853444aa58dbcc986c4095fbe7c01000000000000005494142902284943201b7cf610306e8665eeeec87c014d607175c3f50f76103b01000000000000001822493200c35242a149070784dca5e7012a8a52b61cd218ec7d65e469e8cc56010000000000000072ed7192625403acef94aa9189f9f179deb89e60478816ca96c79b742f757e750100000000000000d8f30bc2ee88e69f60d0278998414c80f4a130b8e1738e873bcd14ef31e58d36010000000000000042e377034ce6b2a582bfd66c465252ab10ce790e4f0d3bbe99a42ff86b29965c01000000000000000e164f314984e9a172a3a1526d853ff70bd11f3c596f17accbbebe2f7820833c01000000000000007e91ca522b14cbb71b45348c699b7d65c3198516ee771079b672ee3d7cfc577501000000000000004e2753547f6ec0a896bcbc55b9eeab875e8019acdeb10b979210af63f24c4b74010000000000000098faca5e78664fd082bf47f0079de33a5021415c8f5f912941e651a0b7071d1f0100000000000000ca6e63cec4c0801ecd740073da08be68b9cf4c7ff76b740fb6a522a63e838b5a010000000000000042e7851b82d8b7722b9eeb5eead57b21bf533fd25acb10542a52889376fc3920010000000000000028ce9c093ac772f56acb8dfe8b33a3966d4b8699bd41814117352d397195bd5f010000000000000042ad4ba7e8a60af1abcee04fdd82ad02b24f1e2535bdb1abcdde886efbf0fc4301000000000000006ec27dfa7ac9d35eb002c55d3e4d56b4df928dd5c44323ac228305741c9e09360100000000000000b89cbc83a386d6f5d4fed93289ee50fdf69d77369ca0c9a8b962554e3fc0d37e0100000000000000e61da4eefdd14434952c58dd1943f7f63185d03321ccc8835e4216badd16fc19010000000000000012a64d79e44f1adb33c85c4f2bdfcd8d8b38a34d984604f39289c9a7624a442d0100000000000000a20797f3a8669a909adb22a3aee2844dba82d231cc33f5d9be0e2c533cb82a670100000000000000e297620b731b4958e3c6aa06611c6aa5a45f7e116362d64954a0a330d2a98f330100000000000000dc1274e0689c7a3eac31b41ce352719529e65c01f26999f74ce17c9905fce87401000000000000000e5e5f8e89cd8d58ef83abddd3d1c2079691dec4f6965af70436e84411c31f3901000000000000007c21799f6143fa837a8c18bebe3368d60f4e009b114f61490b54e6344034040d0100000000000000e2f4efaa91da8465ac7d109cd80be5c02b9ba7a0603ff372cd77824de17f6c4201000000000000000ef6f09a9e310abb5c57dd7050a94d56d766772b80789b997cbb40f3b40f625d0100000000000000a88864a0dc9e292aa7cc8eddaa8dd8b6be2a4bc7e8f290023c6604e5c4ad1a7a010000000000000034ffee048e511f4187a6f40339650ec60a3d99ac5a1158ae162c5729b59d51740100000000000000be7c58318c49ff328d53a6d67830a8a046a41f5124824d3ce2e72cc9965ef57e0100000000000000b06e3ee1ea6420fb73ebd502988420f51b977a83074e1aa5daf0121f4a8b6b1e01000000000000003843abe933fa3ce63f3a5e422e13ec05dc9c0e8f150b93a0fa97f1b193cfba2d01000000000000009cdd57a06bd22d104d539527a19033620becff73dd267f0c2f9f13bc37b0d32c0100000000000000e020b5e946e4c6b0603ceac71b44c330fa7d9cb3e79791ebe1e16bedbb9c71000100000000000000a86c7bdf11794e554439b09f9f294c8e0abaebf447c7bc54419434b8b95f864901000000000000009e9f565a8cb6e8f2154a9833735930a04003505856c3743a0f71afe64c7acf7101000000000000005a63824687de4f60534ee18a430396b95263f75a077655c751bc2045ca2ec84d010000000000000042e4c41a899dfb238649e5b17dc232c2699353635d60e6a3bdcd71f9b82cda300100000000000000f23d1b22d1b03c9fb6eb203c85761fe429a60c38d6591d215e873d62f5d2e4010100000000000000283a77cab50b96f99a8e8287c1488ebbcf31fc3daa953ffa99ac16db982f1e1201000000000000007c3526dc5579f1ef841101b573c655c20f4346fa4a6b0b6ed773d147c3ad6d7f0100000000000000ee579514d7f544fc9fb8d6383ed7d109ee98a411bb4b0b45b9354b0f73fed9720100000000000000e8308668e9f16683cc739791a6dd530b819f45e4ade2113ee2f27eed1c51d12001000000000000004052e492aef88954afd9666ecb54ef5303a87394cb0690610841955f3dab1175010000000000000026d421de2e7251020ac2f8b8c7e348aa904dcaf0b6d5d73fa0113b476f7dd9030100000000000000bc56c07cea21bcbbe058aedd2ced9fb4757caead55f96bda9bed1c9669c32b640100000000000000ec56243ac035f65b377444e20bc8fa7e3e75242a59b5ffa5f44270f451315f2b01000000000000006ccf2ce8e149999a7bb996faa65194e60aeb7bcd1937c787f886fe979fb49e660100000000000000c0e36251f9ce24d6fe429ecf14bc9599285e3e27c0a541d5ac0ad1902d7ad614010000000000000082b820c5bee8ee77e35203dab387f3434b8502e5f1c35dfb2ad15b5c89d47b3c01000000000000005620922a6765fd47abc96615ef5b8b8575f18aaf8507f6afb86129bc1080994f0100000000000000b4b145ce385b4a3d83f2daac46a61874f80e58c468dd624acc09a558be02c27d0100000000000000b288a9832e07bef83c5a8ca72c5a5583b321672ba7c6cdd44a971f855d32d95c0100000000000000d04077347325618eb5cef03729a157b910fac54ec7e344e65b6945fb9fbbeb3b0100000000000000fe3b55d17e25c44a3568885d9d37276df81fa5225d9d73ee67321c7826581b5a010000000000000072183c2429e4966be5cb14c9cb84d6e4092b4e55d8ebe2534cbfa179b6f85325010000000000000062d976890a75034b16ddf5c2cfe9e50620782336e19159bb0a11b585b5920f71010000000000000040a2527ffa7d30d788eca127d435c8b5aa48972cda538b9a1627a57e85c8fa190100000000000000844b691aa95ff9a15b50f5e5f4f0e582db6621326cf18d7533f55bc27549497a01000000000000009c1863aefa0b4d5f3d48275769ad0ed04e1428db9694d83b9bb8b5d833f1b41101000000000000007c4b93d862704aad434ab3dc2cbef824df738c5dbe1ba7b34daa38b2aabf7c360100000000000000ae272f5ae4e197a1fc8e670d3aa7bcab325a39d1653b5440bb7593788d0526280100000000000000261ac3229b4bb7a376c37f17e287b2eb596d3b478370b722b6b41443d87081320100000000000000421f3fea780f04810915479b2b72ba55591d1db37a425cae170548a50127f83001000000000000001a36d936f4692ac8387ac0ca1f051970ae480271e39fc134436b86b8ec83b25d010000000000000026d7422872cbf4d4918046f240a13a37219a272f4326b3f3bd1249829bbcd12b0100000000000000be6106f9217a1847af66de9510fdfb40514409556506ddc1c1a897818434125b0100000000000000e03dd3bbb140ffa44e0cc0e1846967b03aecccac78f6e2e0a1fd3ac0d34f554a0100000000000000c02283aab385e82cd28d831cd1ba21381597e0ed3b193f6aa22d7588434c24160100000000000000ae2e94f092fbcfe263519f950b5ade09c474258a4e0d5e62570d02b3f71d85480100000000000000b47377c358164a12a68a76035ac0479022018f5e9a3fd8fc915b265f92b74d4a010000000000000088b8e0da91c48fd9bf94ca5ed7fb74797a037e626c98ac18cd76360ccd6ac11c0100000000000000c01b5bef9653fd67a8b11907f4c2a9b12cb24237768ad9188330794e9242a723010000000000000086c1922e4ed392d72e0fbc0ee28e7ec0a8ba2b33470330a606cec9a159a79626010000000000000036465f4be77147914969ea78f8e39610310679011dfbb6137dab12e18a687a52010000000000000004ba7eb24012b133b20a8021b603a1483c4a5b9ad3415a4d7ca2b1ad625719550100000000000000202e3405e49bb882f1d49efc4a4adc5b62dcc96ec18346a48aad5a510c189b5001000000000000005c39533cbb607f1f52d82356d267a56399045e0d7b7e95887cfd8ec13173db2e0100000000000000343d27f7f66355f47054ee18bfe7df92bdd8b1aaf9391ba3b8b022905f95f94e0100000000000000ea6acde5149e930af7bc3b17b7f0bdcf12dfd3dc3437f774f823bbeef420a97201000000000000006e7a78e9fdfe275f3e000382ba30452729970578258839db6c0fc568e20b351501000000000000004e1b48e67c1e62e46add39fa523b956946228ea0f08bd9d20ced798cfc9a0f5b0100000000000000faa6ae896c2d1040e495acbdcd8d90a02ccb17ba6e507efa2f7deacb3b28466e0100000000000000402a67126cd160c84edcb39374164f3a39aec59ae72cb66dd9fbd1e9891aa27c010000000000000014e2f25dd3376eb7978d413c14322704a2ff3d9c0c2971acdcdf9720c2c13d6b010000000000000014cf97e739cfd033c2828f25ad3f15e8f6ef62ba97dd74164e77e61eb85454260100000000000000ea7a085eb85651e30b4420daeb2935d87931349e62728f7329b46755d424c2320100000000000000a07f151db53097c2da9dac4b2e0f194931a677a3ba99df0f3976e34409fd64760100000000000000c63dfd97609d6fbdd6300bb957b3feba86755bbd5a36d6b4ca40bea6a1b2517001000000000000004cc9ff5edb36e361b088b0eff52fc6e6559c1169ff87ccdb62503bceab7c74450100000000000000fcd5f4c4fe11f20ad99dc8345b7dc5600caba5d5b7d3f499c3253c095152d4540100000000000000941f291e924d50ffa173fb0a86b37e11915b06910a54d418b0a20998d0303a6901000000000000005eac8ac37c95fc11921839550a30ef071bbc80fb10ea1482cc67818e184d544a0100000000000000ea2b17bd1b69a7b442dd000db0f12f0bd4bf7a87a540427986bd32f3d3bd555801000000000000001e825121b8beecb30e9962a555ce06b9e2c65fcf3b0023178556330d565bcb4c01000000000000001682c3264fc0b2a36eff3a5864cdacfe726bf5972ca8f4c5cad6f18bd450d23e0100000000000000d412fb5e47b946e69918a6391ac30283949ba6d99c491d78fc5014aaa2144b590100000000000000ce323186d64f267b11e6dd0bef533ae85d282b40f90e38eef37f191a7927663f0100000000000000b48cf50a4f94e83450a791d6de965c3e8127c1c915208f2b85df4c3a84b2042f0100000000000000c60a9f5f89ea3a56499bcd39bac7e038c25f5b7720d873fdc12b68d2531eb650010000000000000040b77fd8fcabe868dc7f2a08bf14c67e4d433886c3cd3738d1b0b9c649bafc230100000000000000b013a8307c3572f939c1a9759a832f35babc847cc022588903572c8def43267d0100000000000000cef0feb2602582b96fec882181d34bd5504645c544c983b1a962188239eed90a0100000000000000b633c47d126eceb0e36d788370ebaa179b0c7a3a21cf5f1421bfac40c895ed3c0100000000000000a0887bd2c2058519096e8dcebf495f2ef274490994e969063f72a41b3fab80720100000000000000d2838a30fd86f5f19aa80481630ecd0ee0fe5aa565ea15786f37a22a87cc1b7d01000000000000009acfd215519f40156749868afc8d56e015759f71cf183fe68382e8c02c75b2510100000000000000de5f9f5ad3209502cf429630c2038b8818b6f8ce5685c2730077349802c5792501000000000000005ce79c3ad8a0e1806e863f0858c28a81408d19870a62ac0316b3e6345cbb5f7601000000000000001cbfaf2b91ee79c6288ad01dd5787070b34d5e1b8253a1765904eaa7d0b93f020100000000000000b672ee2f0f9183585ac4875368a0defda6d3c81927fbfc34bbacc7481058cb4b010000000000000036a547b4aca95274437f3876bec0447f775eacd01b09d95869390d326a596d450100000000000000c09be470dab56a2b45b94ba6dac8ed9d515f1d3785cb4eacab40d0a80aa42b1c01000000000000007878535e43226cf81c42183db4bbef4b1eed2a460f6cd423c03af9e86674647a0100000000000000526e1fca7613776cab9c7b4ef9b4577b35adbac416c48529b6058a5f9d133210010000000000000052c9327ca5c1ca830f8ff712d813a8cdc2a8be122f16bf0d1d9e77b7a9789372010000000000000026f2af62a2f0d847e3d2cccc93ec7f98c80a7b6d1bcca4cf1c4a6fc7f81775010100000000000000407e78f505ae833a2eaea113245bf6a5ef6abd0db66141f770cd6cd7a7e75d71010000000000000078c91c4ee02089ea86612f66d6022a0cbd54afe470a162a72036611623924f6d01000000000000000481a58bfdafecabbc96bd170a0ec04cc35100f1f928cca3ecc63b3639e476790100000000000000607fc085eaca16b6a51e44ac9f61a689e869efe15b4da37be15b78c17b193b0301000000000000008ec5856a5fd17617c0af76efea16a87d0c5e769eaad39e91c40dac93fb067d5d0100000000000000e4be18b8f5905bc41fe3cba2e5350d405e76036328042ae7edfbb6b6a9b43d5a0100000000000000824792c3ed55b88805009230d67bd8059eb9958dc23900e4b1a6efe61dc0e96b01000000000000008c73f71ea9e64834a5e048824978864a96c5c600f42f8a7350dd10ac088ecd2101000000000000004ed5f55ec45727a57e2d8d6914f6d2acffb17b9515d347ba045067502a0b14020100000000000000507e2aa1a2409b289b89c80f7ccb129e91a32e8d44c98723f8a97307f54a2d0601000000000000008c6d9a2bb472764af439b9dd83d68dd0a0c1a77fbf1025a0e6bbfa3e9c8e857401000000000000002a0fda136ae348db338b87bed349145a94ce091227774b0542e533a83d1ba455010000000000000078d986932e680d7bebce126a5aedae3e11ba0f4e28c03d63a491e8bcbd05ad2201000000000000007c552599ae2d251c1fb693009a0f904e41e59183027af5adfb8bba4133fc136201000000000000006a5607bc375d7ac0908e7643ea2e89dbe42f4f805c2fb6e2a22d0385c1232b310100000000000000f4ccdf83d734edcc568462572abaf32d22ac7faf8000195e02273d1c9665430801000000000000007eb2b0b6adbe5a5bad38f46db207f94c896d419661f4ab8f21e302a543df9b11010000000000000048ce0aba6f1554e139568b4d2358d6cca9bc291d3600787cc3e732291002ca22010000000000000092239fbae2557ff2ea3952c962e478e6ac2a5b3e3cfffb0eb40e8d41860ab0470100000000000000524c4d2a0ab6f9687123f9c8a9ab4fe2c70f9fc3b1863b4fde16f4dfaddc7d570100000000000000469d81e8b43725a64da6b1ce10eb53eebe1aaebb9703f75ed452e12f45d26273010000000000000000e2ef06613c993996e6eddf381c0f035659593515d10d664fb6bc1002bb921a0100000000000000c4c5fe47a568c2fe4876eafd5e0093dcc31b450eb87bfe58397dfae2a590d465010000000000000044c47763e8f2f1675b480c01304c4da58c8d276b5ecee722e45d17afdc3d391d01000000000000001cc40fa83cd0a4431aa63315b55c669370a4037756089f3402a9021e2d8066640100000000000000742c0a1ea78a09c7454b48897bfde87bf4959b89c898623c8eeace7af714147d01000000000000007873ecedbae63dfbe5594da935e52c14dbd0e131b12879d573b9c002c6e5c4400100000000000000fc53d15453457faadc5540c5853f54324eec395d3647fbf99d5e6e97ef3876760100000000000000fca464b97dee2e318ad8d4516fd606a5401f5d15467110112a3326ef96ce00760100000000000000bc3bf978ea283cf493b43928b605309be31def9d4a1daf47788017ac61c7c81b0100000000000000864cbd281011a154d93d0320865ad67ae442bf0985f0ec220e2c7db4b09599310100000000000000cebdabff22e607a75aa8db1bf875511a563200cce3f089972aca719649b6e1760100000000000000382fb32d7c8868ce3765e9ccfb462c04071a3d70cab3382c796a9115ab0c310301000000000000008a6dbf87f769167b4eb982f63b946f96a1f223b6a6f2789183fec09581b8e906010000000000000056927fdc8bff2063e108fe1b05bbde2f6219bda7d8663fafcf3d2976c72153590100000000000000b027ae418b6c79d9f3a2b05df499d3aaecfb327e6b9d7995a022dc5265ed76180100000000000000eed7e8e8a64dfa89c548a31c1b9fec7af5aef4dbbdb26997b2ddca72d4f8790c0100000000000000fa49d3457520dd98ca1489b78354d7d30a9bdf2181140072ebda1c3dc3371e450100000000000000a811cc491bb3487d5e604dcf6dca3bf529437162f3b8cfb8514ffab16809ff600100000000000000fe2848018ac215f72f551e58dd2d065d99b788b5a7aa59b9f9fe47a5bdbc046d0100000000000000b6ed5b0c17ca7560c71f1778694741009d3da979309617f0bb992084019e25290100000000000000d2fb72b7c3d020239ba45289122d0ae3fb560d01d0cb3caec01efa0c8701d45e0100000000000000f853a1534a3af56217661420536dd7bea0db6f6db843d8fead77c308ed7dcc7c010000000000000052a0f4ee4ffddedc5b9fd2154ca213cf3f49df94f4b5c36c2d8f877f5a7010220100000000000000c2041cb909e2a314df816d3234a893c1d387f4d4f9a4379d11400963b134a753010000000000000028702457fd7ea52bb88284bfcd721493ceae3ea984492a1b82c55efa1b62fa390100000000000000484b6b8012254027636d95e66c5ea7ee68dbdf9ef6ad3c2fc00cfe5c39fdaf7c010000000000000002e12aee8fa547e191b4395503c28d4b14650c1dc03c698d73f4cd30f03de90201000000000000004050f1025e1481eedf4d787eb4232123b271e5196dcd8670d754836297d0da720100000000000000e816e2e76f7ccbdefdfd484aa8b5f904d293ae8694e21a92990da54f17e244090100000000000000c664c419396f160467b184251d893f1a1d468e0d230691dd0123d60d446c5b6201000000000000006ef86d4533f47ffd133c63b9575c17234309ab6e16f487ae7cd8914169183c660100000000000000ce60d2c987bbeeaceff8463484b717ce80cbcf3d8f8b2102e95effc88000d95d010000000000000056606b6532cdbf27358fd067d61c2a65e4b3e8934c266a857320ff18e5c7654c0100000000000000060edf92540ed4cbb944b399cabc91a7b9641bfd553bae0479b442f9d5bc7c2101000000000000002abc6a5d748978a4023c3597c49178db2349ea6af5a9b61783095af8e427027c010000000000000094d89cb8df2b03c76d41a6521e5803d6f98e204e1839b9ea747dc7e253d35b7f010000000000000050f5f5863f99e896975813fda8768c72ff25fb54e25385a4263d1ff9a19152500100000000000000ecf0297bddebd3d766ea7def2bac79ad6eb650fabdcd029b99cb1649ff7dc8150100000000000000540926fefa2d0424fd451bfca39a01c0e1a3fc811406e127d1dbfdc6cf9e9770010000000000000038c9a0897d9caff03a308d2120bbe892974ae8cb05f1cfe8b97259f0ac2e85290100000000000000e20f692ef4d1cdecf74a65aed29a64a001ca7a83f01f8440c5725ccaa8fb8e2f01000000000000003491cc113ef8fe1165bb10e65cbb461955f92f8f0d82f2dcfe6664430dab853601000000000000009a53749c83cc06460148d884f1ea5b71897466b237cf16baa45395d78ce48c1a010000000000000064615e1323ea003b7c5a63ba2c8bed2023103458eeee7cf45244580d3ca59b6a010000000000000088fa8bb07ebce99964718c65d0d6f1b091ef2f4d4cdf7b94a22c42c007ecd706010000000000000048afb25f7981cc67a66853ec05675d83a2d99e6318a6a7a135ed2916cb70a26e01000000000000008a0e2d0af87ffb812f6e6ec229d02056e812cc4f5f5743cc638a7d3f279f0153010000000000000002a4b2935b657f9ec563642ab0f34e223ef594cc70c856b9bd70fbe083721560010000000000000092e5bb9d0906f768dbdde0696b78e493cc78dc1f68789575b24f0b962799b51e01000000000000001ab9d2c814ed7a719ef2aa94dcf4db8aaa0315a59d4b5699e86656a6ee9ac5610100000000000000b63f9ab3a147d76614bfb688751f79fb9a120d40af7ba3bb123c1957b91a411d010000000000000010e37a12fc6ed768d1a2d33c8abc6db675381dfe69c832abb77d9ba2341b3c4a01000000000000004a547dfc28e6730b12b365a1cb7dbca5199e04d75aeb07c7b5da4b0245daff5d0100000000000000bc62cca37518b73aa22efed6a88147f84af5db7b82ef7671d9bbf03c76d22b490100000000000000fa1b0afc9ce9e9742c4825890f6d93bb87bd199e55e86ce66ba7c34ce43e273e0100000000000000e063e31ccdf34c3372902f92ec915f213538370658d9272f9ba6d8d6943ccd13010000000000000042c56bdb09d52942b0fedb07045113a641e2fd64a428b1fa608b5adff9ff4d6401000000000000008e0b3a52dae8c17703f7093d386f5fd8fb1c35a585e7830ca06fa84ba489f2610100000000000000b4e86264fd55571f5016e82a1eeba2476b1d0349fdd175d2443ea30bee0b5207010000000000000086ccdecaccbf1a58049c55793916611cb8749edf93085bb764e77636357ec17201000000000000006ac767a27a7c0d66cc9493e93dc9d37a114b8a05ef7ee4b22db346661446e6280100000000000000bec182c65eec6dbc4d89c474a6f6fc6cb6853946eacfc93762cc3616ecd3c47f0100000000000000f29cb4064a1cc3a79da2c9a9f336053cc69d50bcc737257ca2f071c37030510a01000000000000003e07b075219fc7ace8dc3bf3a06f5dc12aa9c7e45fe30244d2284bcfb1e6ee1901000000000000002271d61469f9f1e5a0832af7de453015b89979fd740526080116295f4a4a516d0100000000000000645077cf303943059891df150649d1d828052ea4249bf50ca3b6d29c6ef1984c01000000000000006cb06d06d7955ca5e61897e7f2c4576469e09185f010d96e9bcc84533d1a036b010000000000000022376791bf19fefac611324d27bc6acb4b7f7eec713c186adbeda5a1e1b88f340100000000000000bc8f93a45201992fa9d04355095d03adeb5ff1aea206425eae4f902ffd47fe20010000000000000034caa67978c1a5280b5f58196edcdb5c864b02d0fd40af9c6e6b9716f3fb12680100000000000000fecb15325d9baf603112dd397d2e83d3694414f529d75c4b639c7e775b979b14010000000000000028052d0b965ed862b7861aa7f3f91fe52ff8b0f795ff476c7e0a7aa42e7993300100000000000000ea03f9dc29ae9b7a053c12b6079664592d2cf46a30b43edbb2d2d980223deb11010000000000000092cca18f264bdcfc19e5c01515ea9d61a0bf0b4e46b2bcae372a428b9dc35e390100000000000000e0b770b1bcf7deb030ee75d5bad6ec1ebfe06ded0fc406a8520a9650fe83233001000000000000003c8330f5d7f34fbec333663bab066cbac4403f892df7659b1c118c185c4f16220100000000000000b20050395fc81aa60508e362f02c75faebe3e4909c7a23721182ce791bb701130100000000000000aa92f32eab7cb844bfce67787d5921e9eb63368577d9c46e9c276dbd2288064c0100000000000000526fdfd1d78345a1b2843d392122962cf89a4f157af2a3d0c99607f506175115010000000000000008e80cc5ada5e557a1cea3658402bc83f9892b5c4e112b6e157e6e7d3663c47b0100000000000000a6730d04d45ee4e7e25d3f7b80b4e2ac12a6644a4128127fbe97e97a1d690d69010000000000000068147c36d367eb1a203b303c65ab3d32fe777cabbca8d39e08ffcfd624b3614d0100000000000000b6ad9df8c32a78e9481e75f484fd0b740554276c026736f0dbac0987db0885670100000000000000ea82745d9978e47fc6bb25fc01383aad42aeee65662b6af304474f0e4101b06f01000000000000000a6a0f8136fafe5c2e096704e37d12b47a1e46151489a23eb1713b37769fdf780100000000000000f25d3265659fca9d24ca877823644f1223714b0167d0a676cf3c9c447173d12f0100000000000000c4687b6d8e527d1ad3be71f2b242bed92eac25b159d9e142e6922ace2dfe5f2101000000000000009ab493c4c8007f49a3e7d1e9f1aef39b39cd66a496e90486e62664725c6ba06f0100000000000000d80eba00fd45442e9305434d637564baed7a12136c89734e4ca850db419f0c3a01000000000000009ea2cb3e6c59685087e59d6d45fdccdd5e6fd4f77fd90b4749f65113e23f086f01000000000000000a43fe86fb05c4f76c85474f9867e987d7f894b0f7fdba0b85c323c3103d3b4a0100000000000000cc60431feaf7f1bf42d805f0c12a1978ca9b3ec0a21397a71ecfc2bb7d52d20a01000000000000004a7791775365fadbb61f37a0d2f6d298c0c7c3a4c9402821ec909972fd5f8a4c01000000000000001827754b7465edb9bf4ce981bdd3a33057f9450fc895e39654dbd51c3ab9835a01000000000000005ee252f56786ec8e512d233a09c3bbda21d0bd3a6ed7e8e8c0fe035dfe7989330100000000000000e0d28dc9623e77eeff6b0aee79793b3a00cf8b1c46fb79c8e6ff8cfeecc4af120100000000000000d0106f6fb9b008052da3223c389525681d9b6e4fdb73a4078f7f1949bfaa350201000000000000001e1f47deab3e4083f7d353b746b719a9f5aaee3ae2cf6b37a4d710f95d489a6101000000000000006638aad1c437c5f2f2ab4c46b786db51bb8c7e6af2ee745934811712f8d83e0601000000000000009e3b3214afe654cf851be9e564e72f834168ff65ce346ac54024cdcd932571210100000000000000aa8727e4b0a95c761b5f2506159a25195d3efca5dafa334f871c3cf262fcc56e01000000000000005e7f927ca4edf203d65f682fae546d8d43913b253dad434800df66be1f0768520100000000000000c88d83d7927e1c1dff61de6b8321ee64746d983173bfb3a03c3d4789ae3f202701000000000000001a8de0dd57069c2986c48b25cd40c13d2acb62fad487a82f4f13738e34418c1f01000000000000008ca0a873b2685dde8c4792832cabe50ea5a1f8a9a661a336689859319b66ba620100000000000000102ed4107066f497e13d3c484a9fa60e506587e19541069dd4555a91d63f27040100000000000000d27da69172c428ddb80272e6fc6ec90985ee281b45f933e5bad65184bc3b5d0201000000000000003afb6b0dac3a05453f125943b8a26269202d297b991e054ca851fa68bb4c0853010000000000000048970bde717a65371534a2b878995c8bc6c230d556035fa003da1c523092332a01000000000000000c3292b5065b7b78a2de5f4fe397fff21df37c0ff7eef94c5fc4397f760e6e4601000000000000006edcddd44823f4f48b53a4172c3bbe239842ac1e663eeb0222fd715d050d7a5101000000000000002234e01370aa10159040ac893ffebe3eb28540b8eebe03f5ca658b20866de36e0100000000000000bc3bebcbf6142977fdbe8492bd2c5947a16d38925d56f09db1ef164b608b912601000000000000004616ac86f0d45899eed3f1246dc5744858a694a92b0abd9f10e52dfc9c28674601000000000000009265e7be28a8f56a974027b630bc37703b7ef21b1b1e4253c54d605f4d10da1e010000000000000046b14e55053a02087c957664d32fdcae6ba1c96051239191c63df564d784e1720100000000000000aac332418d8cd5cc9a903a06cbc8f639d32b32163713dd60d065b949abf8367901000000000000007011cf9db6405d2a4b0ffe11b6a6f9de0c8919d0f70e980d6c6e221e98590e0a010000000000000058efa50da673a8c3b5799e278ae7d32f9eee340947f793f44348ba17e25a885f0100000000000000e6a08fa6af54d2308215f4a62d554dd5b82deaec8ba22a2e6ebade7202ab9e21010000000000000038ab6c4b18e1c86176cf53301ea990f1cdddcdc3f2c3e0f8dde126fa59f60b2f01000000000000009c4d874baeccbb19733cf93f6ffb2f44d9b9f5191ead84f3550c7b767a75061f0100000000000000dc9fce160b2cd9c97257b75c861d32348337de685c69042659eec13a0055b4500100000000000000b41546275611fa185c88c7016e909222b3a757b476316766a72729d074d8e92b0100000000000000662f5ccb0a265c7438d4166b72c2d0106b74f928e995dcd24004c67ad715217e0100000000000000723f8c9d81d0874cd4130cb58587c90ef454174e9d6d9dec11279a553caf00430100000000000000a49dbb103be9a66d67ad5c0d11032866488f39d0a106de579d913dc7099a09260100000000000000309ab613bea03c4431f7602c937f5a4d17e2102db6fc7f77e32f7a245041b90c0100000000000000547c6a159db6eb46da71179d0d15dad5691617fc7f3c6a672864655997035c2d010000000000000040884e6b9876fe866d109aae2a5a6f1a18bfe3655ec9c1fee848ca9273446872010000000000000049e7432ee40ede3d43ba6ed37822ac124d32bd6605844c728e889df99472bc150100000000000000040000000000000002", + "babeFinalizedBlockWeight": 4559738, + "finalizedBlockHeader": "0xd77079fcf54a7a83fb2b75b24bc4c7b8a776c50c5a6ca04fcf5eba857e2a7f5052c05a04443844f2007aff2b5c8afe4731e735126f337ad52776ffd32f586da47451186fd49b29a11d724d4a7e0eba71b2c74ce1f9fe5958264219cf8ec4160346bc6b12080642414245b501036200000052c4e410000000009a76cf5448916664e377946b2cdf61f1afdc50feae99314db4a62b2ecd5fb24c501e3f442fc8eb763a2fe20657380d5e43c7b8223b90137aeafca12dfe65cd01a3c5a3977a9f1d929cd0855d15aa6f8a5d304ad7f1745bcc857e6e69d0a0e9020542414245010186408d036b3647c440fec22006c5386f1eef56c4fb9314e8bcea8bd26c681f04f8910b1bb3332e0bd2ce3b2cb16a3a9cbf53cb7b1c1152b0693ac90b268eca89", + "grandpaAuthoritySet": "0xa5042f8da08bb2421ef844015c3b2ea23464fc66a9dcb4a2215fe0241f892d19afc50100000000000000fff437ff18629bf1490e5c9b3ec6f1515d46bb9b2aeaa6e39e36611f2479b50d01000000000000000334021ff54e46fb7da4bd257cf113519a0c7ee4a2251b66fe48466fed5853520100000000000000d95f04dc8ea4ac05deea7077457f0406fdd152bd03a7480e7d0de0983b959d3c010000000000000047f940bc985355be7187c709ded2b689b66d69e61e293a507f1d4f90bdbeceee01000000000000004a3fc0fe1020c7f460c7bd23d0b657c03368552b2f0a12d80a1c406fd066e0db01000000000000009b992b5e9b99eb2cd3b2b648d6db81ed722a2feb4938d998b58dcb5d159fadfa0100000000000000aee9de3938173700b3e3f4fbf2b200ae296173a0854157f40de2598dd4cad8f10100000000000000e0b1aae640bfbed119730710c584be65ef59abb3e9ee5dc8a754751e1ba163960100000000000000495a0370e02aadf1beff005feceb521a1d9bb0d85e7fe58658b97ec988fb996c0100000000000000b61e9b13e849779be8f5378a670d61991875d8e091f359384d7be73d02d506930100000000000000426b2be4596a759a15028d84e08c5c56440e6cede68d088f47c671cc3387c3e6010000000000000070ba6e5985990ba1b1392713236f1b50df750f10f744cc6eb95fa7c5cfbc687601000000000000005b27660cd4c375f2654c6d923b29fd8abbab7e96ee040c79598be14f832f56ca010000000000000057ae0c85ebaf333a6ec3251f577cab910cce072f238d1e50046322b83bbc0dd5010000000000000072c09c9e2dc9ab20a65cf70e951352f554442514ba2ac7063966ea7bbe3e6cf001000000000000000139b946b46bee4c61be50c986f2a9ef2e76917644e2ecd842c59d61a94ee612010000000000000019a9d56ea35496122fc44fcb5c29d27fbb43520556d6f8d97753767aaa0f228e01000000000000007cd50f6921fade39653f847bddd48360668004225081a6a3ad7997f78debd34c010000000000000053a51c848834661c92e74b3c2492b8de2591f914ab75345d70e61c79be9699d70100000000000000a5b094ae7c156592baa68ce18dab6368d5b665e9a0f07dfc5f54f58309e086c1010000000000000053352e16d2a27fb3525d5d8750d6ad7f46b303a45e434a409ac727d5cb80432b01000000000000008c54298c6f8704498112ecb24f64f7a28ed2289ec573620b0d1e5a9a44f5fa78010000000000000041ef4a31eb7dc1e01f4630604e1908e644d7cdee3f66a60f98d6d59605326f8b010000000000000097743d6364cdb6c4790cd37c4c2ab5fbc6c65e8bb606625e70a6ee04ed1650d9010000000000000008cc1d6c743da905511a39a6f0a68809a6bc32f8ac25e53bb2d6aca4f493fc9b0100000000000000c9dc00c6a757495c50092362d5c70d2a971ae1da4eb67c9da9f4367c9d408c1d0100000000000000049cb09a86d544249f9e11cf6c348bc0561600343ebee89d1c90bbef3d13e517010000000000000086c42c0f6b8f7c06f9ce823eeecf7cf0371bb5b97f3c7af63872f8bbfb353abd0100000000000000d04d64a07f144638f20f081de122b88fed0cc8bda57e4810e7afb38036dd8bbf0100000000000000f26945a8a64032a1defa76e720a99649125b55751b6088205e7acab901de670b0100000000000000684768723f0efc2001562c3b2156b987601ae9431f8aaa6f4199649cba487aea01000000000000005cba2c6f569da1edc3778308da406f266aa53140381dbb3f14f22909ba6e30040100000000000000c9a741ab82126c4d4eaa6a758cfc1209bbd7b29330e89ccd97fb62ae567c8d4301000000000000009b94bc45bf79bb33f70430c82880456cd7bd5fb3ea131c1b26d493d01c5fe7100100000000000000ce8d085d4b0a9502a680280ecc162bd33533a5ebada62f3be19427542189cb5a0100000000000000a1a9debad5e4afb076cf293c2c797f0b5901ffdb8bd01611235e762411a0db3901000000000000006f4855725ebb9eced957bae43ffa7d30657ce7d06b251ce20e2218bcf929e40501000000000000007c10f10bd6eb9c1201b52c6025545fcbc310432781bbe02629b5cc9e5fdd229a0100000000000000b046cf7d24d49b720b28dd2476b36c157262208fb065c077b1b94db1e9ffa6050100000000000000749556da4a259bc1f0b8ea8e3726c2251656b92205c30b635ec9f42038f8defb01000000000000000ce4d93e25fa5302f4b059456f680047f87be428ae88579e0b862502b5ceed600100000000000000c1758f7cbffeb844419bc494a9dc65fb394259f01e9bf23789a75acc29d7d9620100000000000000c1c1ff5f66fefb5c0849e3b2333411d1f7e9dd4888600e334e7a33623f15fa360100000000000000fe240e80ff8a48a77947b394979cf361017cd906ddaab637d72cf72e729d79bf010000000000000006854c73f5703242d31d2576ac2297c93f0b5dc16ade0097c59d5dc0faa43c550100000000000000c650b1a6b34347bd80ed06b48aa4ae1a33adaa507e8ac23bf6c6b94223b63b9d01000000000000008aabd4f6d7ecec7a749c83fc7be33f3b4818cca6f93a4927b4964900df9454e50100000000000000b9186b95c90d2d00a31e7c68066bd37d73408271762604e3608e2f2c983f830901000000000000003948bfd09bbbc2fe6ac5dfe53146e32df50828eecf7b2b18cdcff8dc385cbd7501000000000000001ba602a293ccdb7a77042fb486c6e010d48b13dff2bef0a26c53637312aac7f70100000000000000ba8180cbc0dceb098ee6b22fe89978bf92ebf196a280470b1501bc2138ec02c70100000000000000f6373ec61f3d99dfcd0bcc6a2b5ddb7e9c8a7d8e5777aa58bc2ac949315dee250100000000000000dc1427d14e83926d22f6be25d1bd39cbc82a194f5e9373ecae644f156ae9c62e010000000000000003d105a30087d96b5f0684f6ded76f826b01dab61e4136e1d851a24f0088b5ed010000000000000020d4e595c50bb9558dad9be6a8784492bbbfc754b9c5fae17edf4f8a84e8b47101000000000000006ba031ff146af5199eeb335a4a9c2fd487685a489e1a154ba1d012e965fdd5ba0100000000000000608f61824d3ae16d443cd0fec15c18590c890d4105e9402cad8743fb423e52b401000000000000000ccee96768f9b1d29d5bd9e63afd2be78a90cc89d19653ff1910cb36000b48530100000000000000818a546c630b881c2161588866965649678cda0f4110cccc3533d0f20e5e41200100000000000000088f8736e1cf2ea3d102f0a96ccf51222b8aa1f93d8e42947892f4395cb5477c0100000000000000c3ff25a1743a9df92af4ccd9a7aed5cbc90f64fd538c3df0a9539128f596526701000000000000004e3fb8c16ad624c1852777456805e5352d0221269de66949c95da4076206b35a01000000000000007ad55381f9de00220678c95a19489640fc61331e2a40d927e3d833555575c6fc010000000000000069a6c84df1d25f855b91040e113a5557da8a89d80644ae7bf8d0ba416ab89b6d0100000000000000cb92ffeace78dbafe6fbf275741b4b38657fb81590712aa0bca7877931f6ad39010000000000000007727680e6caac998c03e3702c7f84e558b592dd76ab2a49cdd3dae16e7e853f0100000000000000e78c36a9d8b145c42c879754a79dde433fa2496c55d6d9f00ae577c6b1ff4dfe0100000000000000f8eb309ab851e8f98aa4bd68138a67dc4a435331598079969053a5325b874a51010000000000000059bba625d971d505a9c7d7c2f3ad69203e69e3e5e1fc1e4905fae7703fa19e030100000000000000ba95f5d0e987305bb794dfeae69d7dd6a7987aa66cd7c9d42aca15e9160ec6a1010000000000000016278af083f6d261762f8a97b6a09ff83e2f5927ce26c2e48f3c7e771dc7e6950100000000000000c49e3cd2c701bb845963c2870dcca12ed070c3f67ffc20144327a93aa6e896ec010000000000000082a1428bcd525a2e77b8f5fb89c73e5fe1261e96e93b383dd2d66767c855c8f001000000000000002dad5b2212ee688f2eeb9ca1fb6a90574f006dc1c6680ac3a8523363a248940b0100000000000000be0a28e5615d9ce3b866b5cf0babf6a7f0e6de06119463382e715b47c89853e40100000000000000b7c13f1239888cda5c8e6ac9ea10675df17633368906e66a487f91ddd3268ca601000000000000007509d9697cb54f627f47b25e80f46f5d1bf483a9cab5f52df69e1a8f612e486f0100000000000000f3b1c0e43606bd49bc84e403db685b577e898b5f7c5db9052bdc3dacf38dc7ad01000000000000008a2b50acd1a4955fc814bf6720c7427902a6ce709f3a2d7c17c55b67f6f1c06301000000000000003a511828c0cdc0fd257387843fdbf6f19d5ca1ef1c29ec7e971fc9f1195eb60c0100000000000000ee5605c1a9ed9484a70b8a591339830f24530eefc4599a7c6188a78896908e2c010000000000000039dbc464cdd3a095627527d2c7cdfa40444369c636578a7e1129c3109ead35260100000000000000d1c146d2429a5a827660008721c7a880e71f44feaa3dc75524c1a9281bac48cd0100000000000000e4b2cffd0b9cacfc500050b27ecae3c55b9b51bd9a416d62605118c8ad4fb09f0100000000000000b28ba3f09e3521f7d09f0098c6743bc218ee2970068adfa5d908d9d06e627ae50100000000000000f6d74de7b39455519a5d6480c8f12c93fc7a4cfc9af39154fc60857a39ad888b010000000000000099f58256a4a5d6cf5d99f0cdebbcbe1477db461457647631cd21ca7f3120da6001000000000000002bb7b11dfe79a12110b0370510ef20d40ba8a563f517310f8bf37cf7f0403de40100000000000000b71a15131dd5df7c4fdc0b13abdd27488d2becdeacb8a42a227dd90ce92057f2010000000000000040533a786cd0be9618126633512666b1b1b9ab3b436fa653c93e2f65da9c196b0100000000000000be95095d93298171c6fb8a1847adfa173d127e13f53482dcb694f891d68f0c58010000000000000085b714accac0654ba57fac59b626dd35802269d2c1d995cea7c335cb05a88f7f01000000000000006a5f902cdeda2c2161d16bd21d586720c08c0bbb7b463d9c59147338d26a8a960100000000000000bbad19c54e41fe818395f38b2771d4f83813441596016c9a01afd591c2bee87b0100000000000000f459c0d1b1e42bf6c6f976b70e15e2842d753200ce2f901a7cf1b8c9bfb10c0401000000000000009c11e35911f023df6e4d218e53412ab4e4a20c17961d63ba381c913b51f394c00100000000000000ac61d1b7ba7b5731e691f8293c6338ef8e909f97d7eb94c0e7874e17afb0ea5b0100000000000000ffcca343512faeffe1cb3a8a7ce62fa4ee0c7f6a5f3e5ac883482846e132813d0100000000000000fd4ae377dbe850ae5bdd50c71831ccf889ede1785d4011f20e3ca6edf0b93900010000000000000037483029302a84623f0a8db165fbed905b0a4fc25e7cfb56e975a0e98336a59b010000000000000053b5918f72e73f92f32b578d1b602f0cc554d98bee8c4e131ef0ac7a63399fb40100000000000000f9908ae5581496061d7e62b966463ac3fe3b52c4dffbffe4d565d4eb3b8b6dd00100000000000000c7d9cab0fb88dccd0cf4abbf5df9d7f36a3de439c5070c599d397e74133bdfed0100000000000000866fe4ae134938ccf4c5caf01358881c75cfde473b0bb8a2623cc231db2ea3b901000000000000005d202a011f023dfaa6713f16bfd4409dde8bfe594abd59e2be32484c73b979820100000000000000756dd17b3ef4077e4df06f9ce7eaa98fa7dd158f1cba596567f0b89cc12544270100000000000000fc555c014d927fe7838e840609916b9af5d93892ce6f394398858286802b8c6101000000000000006727561447ed474ff4e15645b952a37fa5008d4e694d4853bb55594fa34c4f340100000000000000ec295fb809e22c332aa36a57afe05f2c093b2d13e52b0971d8265c5514e4e9690100000000000000efb5f1e4c4ba37f8c159d452d897c607a58518b8355a8454620b3e3ccc3271230100000000000000f71fca8770328d06e9a45e650e5f58c15feb8ec77ca2dce397490bedfa37db4801000000000000008c3dbd5a1b928cb51e918452191e5328b0f6e8de0259517831a90b02dba3e6110100000000000000aa6fd06015b8309ea9103f4b0e29bfa7e21ab5bb1431c3a76433f591c739f8380100000000000000a892342c56149812a43e98c82b6a3dfee7eff384d9b6d832002ea63838f64900010000000000000005b78368482b0584326a9c0176949523c03ab1446a8aa021701aa9837ccf04fc010000000000000023f07bcb8dade90cefd08732183d5fe32b89ad8a4f84987b9e4e7e767c2587560100000000000000be6b59cb464fadec4e0b22a9f12857ba5cf7a14c4f9551439d36305d582dd7fb0100000000000000035c917f27530f3f99142c77541cbc6ac4f27fd49008c0371e54640ec3b49dfe0100000000000000f916634f9fd7e54374e30ac6b722ad1793c13cb2d5f2ad38769eaca2f79d414b01000000000000007ba967a2dae0d8839cf44710591db994d18e53b25ec6d0f861da0037c4a4366a0100000000000000acc5d703d7819d7993784e6ce107cd4c5625954d3baab0bcc07afe7d8c473a2201000000000000004d4a140145f83598fc5a3839260723176f643ae286ff7b2fc460b897fb050a4501000000000000007d3011d58467b4677391062477ccc42adf126de1587287ea7f1af3510817840c01000000000000007e15c89cc954f1ddd6a5f2e9f482c1143f5b7b4ba406ed1264fd25a999f223f20100000000000000442fc5263e255282e1dd5fc8e56c3e72c18648243da370fbad832275de9abc5c0100000000000000d0b4aada93fb3d0b358e8d59f8914f5987acbc6f5b4f3e12a1ed8d962eded82701000000000000004f950be5bf61958a0ae6e6a036b85b33ba838de8bd5508b558cbe2602d341168010000000000000082e6b6bf1f275c59fbde0dad91393ae690d5e644d11d23898a9ccfdda025920a01000000000000004659b8114500937a2db0c810e194610c582865305e141d04e52ee989b80edd87010000000000000074b60dfb12745236ba9dc8f925efa21482b50c870c567638ba3240a05fe363d90100000000000000d761043f405069ac01285f1ff258450aac675f08d906b1ae0a1ce54eabcb36d901000000000000005047f4a799401d6a39e92c7331147b38b421ea59f96d87426c294c660d1ba3d10100000000000000147e7434965c27c972446e97a5f2e8c92e3031858a7d576ce5187eed4e6434d70100000000000000423e84653aad03ac3c5a6eba17239343a6856a514bf898ed61822f67f2bdcfcd0100000000000000d3b3d9703a265a51a137b9de348587c645a168981ef3e01c9dc482856751b8ef0100000000000000cfb9f7f1fcf903a51af729ed1647aee928630e148990309f9dc9f3b14b114b760100000000000000a2ee8d9c22eba97998d63854409d99c87b21d079f5c888d863a81d41d6abf0110100000000000000d14a779884de1b2fbf079b8e47e8c0edb1c29e282996899a4eab5aaf1f4f41130100000000000000c2344c6fb787621295335b6b5acbab9531199901492d41e13a64dfb2927f83be0100000000000000da0ea9347962105f4b59f4fd04a85b0493736dd9afddb20829771816bdc3ca6301000000000000004c51b84496e533a7f1bb2b806f3733a7f0a48543976d0a4e5410e831f93e041701000000000000009c39dae41fdfa2e72ce57a6c899b01edf5d1aa421d429ba86d4d1741c58317590100000000000000615d64d17a182504db609d14dc6a45a109817cfaaad1608b4c48382bee48d3780100000000000000155763a153e0c02b2eef1d8a9cd8a50a9eaac9d3af7ad1e559b1e2320b521e1c01000000000000005208fe27477acbc6750d0caa831c0b26801c58eca046a6cf9d4143f85d877e8301000000000000004242378110faf2970e19fa227955307e8fe2d055824a2aa3ca2600b933ceb63a010000000000000025ebbb2a00126545bbedf00318a78b6e61a0b52c81e30231ff45bd32e311472f01000000000000003773b05d2e2660498c8d407a1d6223423c26aa08b9b3656af94d78b861fba22f0100000000000000be177f23c0065f9135b057181534bbf09c5f9daecce6c99aa2e9267202fc4f900100000000000000500a9e1ea37636c24ebf4e32668897dae936eef42b6da49027f606d4f24a7e96010000000000000039712f967c4e06d284d6da4735cf2823c1f770674b668f7bc896071c3fd41eda010000000000000046f540d46498b7e5c53d650c28a682f61a769919fe3a3554114cde720c05ebea01000000000000009a5df54f5051a3f41be540c0eb233df31dd82a3acb755a3b42eafb6ca47b06d201000000000000004df6e4d7da2c11ddb9153c714699f9ab625bbcd5e8e38f1cdeee567dc04abc610100000000000000d9b96ab14d54cf0093b00b5bb592a6ea6036f844bf7eaa3b5181d0764e1724b901000000000000009cfeed14dd2f96550a0e7edebd9c9a8c8b1d8f7efdd1abca01987654239f3c860100000000000000fd2fe2f117d597b29474a740ec767fe51cec93544d00e34269b78ddb31225f3b0100000000000000a74ff082093aff29e9a0d9adeb6e6df264b39c15ef1a82bf942e8ba76872bac40100000000000000a9413b5f6af8458b220e467cfa30ec635e0690a843bae76b0c25a387238e45c701000000000000008404cabeb0674765bb77af690fa838ba28fa2045d602994a89f07680f4851c83010000000000000006b9e740c0a0e1f8fd31717438d5918ed8680eaccb70fdc9511931ce0d164ae50100000000000000b8cf76a8082d518016ea5588be57b64e156ed23b0f72248975522c23d15ef16101000000000000002565e04c6e0b665fac87f8238bee74837f8f621ed63409f3838d263603400a980100000000000000c2e6a39d423f82b034e5370932f02653ee45254ced3ec2094640508e3d04d91b0100000000000000d0071dcdd61d5f4df542a2978fc2acd51996ab0abccddf4d64732fc7b83c073101000000000000002a38a4dcdffc571d547ee3e59121fdd378335df7c65877f983f0957cdc9824130100000000000000606f8c9ce630a1ce30fc7b7108fae524bc47bbbb2c838a985d9a651be4fa03450100000000000000620c78305072857b43dadced80ebc057dbfc82b58c14c7b63372ef02140867650100000000000000baf0112f613aa6fff341d67decad56d1c5744a3ebb8e3577e82febbf3535b3fe01000000000000004dc2e72680dbf0156818114fa34d3591f8e6948df25a128e191190c66f6ac35301000000000000001ebe41ca4cd399901ffe5f6f52642630820500e4a96cbef4c80c560cae38d2c601000000000000000442cfb3cd38604b2a5251638e9fa7ee6b05968c731f393b78a6604e0072b09f01000000000000007af0706d921a331b5c1f957a8d1decf15aa0e3377a80d72107693afd8614ef8f0100000000000000f5e2c973d4ccbdd36d8ed4e3dae75d3b50002cc1c74eb0a1fe29ef1ef8e3f0cc01000000000000003ded8aac5210831cbcc4d0cf1f96f2c711afc90a6f6f35a4ffb766be1dfbaee30100000000000000258f23d60623fcb1d699a35f79776a9e81e979150ba5098dcc8e3a69a407ff9a0100000000000000f56f5b3de4f46bcde88569888783fd60646806795807edb1e04ec3dff85ff3e10100000000000000b1f748c87b12edf7242b4719cfe68e6761acaa4329beee538d6ff740941d3cd301000000000000008b35aa0d212e4032ede352d5426696c260c9ecffa632a2e14e6a6629a6c9f637010000000000000072341ca1eb3a0fd4e790318b51ace114315573d5355c9d5336e39382ba0642560100000000000000a79cd2241bd68004641baac25c1900da3a9e6d83101aea3ef2a58d78c657272f0100000000000000b14911cb101f45b88c437a36bd82a5f8641b1c55052060ea46ea2baea570e8bf0100000000000000b66e24ea84d5e02a7b2b58e20bbf17a0f2a19c4654bf8b07669ba3b9fc4a468101000000000000003c1dcee818434058b7de26ee874ade21bd1149185d6dcba1f67048b931ec3dda01000000000000009d31c78ebe9664e2bd8ba41cddcd9c5b9fb0cc6f8be0a2e5b91f6bcf66a5c7530100000000000000290be52ae5259f3e8bd0cdf454004607867a97c1db86d0c9ff16c8c83625bc830100000000000000c91199db47b7591bf1a928534cdbd3e5979a0d09d6a464f2a9607ec444bd8a9701000000000000005e0fad9f1e6837994babd7d55b2d4079af785ec48568cd1c4efd60ea28162e8e01000000000000004c43a374e6b3e6f7d6c5a6b8518ae0d0d232a1c46d63af8fbc800045a14cbe93010000000000000029a6535bac723c2f711e590c67f0bd60843cf7888eebca46025ae57f5ca1d9290100000000000000b5f8f28250bc934f684d57ce969bc3171e5a92085ea3fc4f5cbd3616cb4c7c63010000000000000022edc626e6c76166af032395ade8b874ac872074c72e3e6a70c8f668993d19e80100000000000000ee73c2912d35fe8d3f5bd51303d89bbd8500cd12b3a17594ab3e9ac4cee922200100000000000000ccc84b255e5e73b971f2e71d1903b5ef9bd6d0965ff3ce29c517c875bd7ab65701000000000000001babed13d56d28fdb937b07bce846689584099575382c273f7e425f822c8159f01000000000000003e6d39376bea51b81c57d4a308938c6552bea5433d6bed9f1ac3896cacbdc70d01000000000000004ace071bafa32176b1e916d9454f099b9306a2ad9efd86418bd83cd048935fec0100000000000000ac0ef45b1c0f242a4aeb0ef03a9c0d9e3ae2a4bee8cb4c35f0293bac4331e76501000000000000006bed5c36442ab221e4d825e3ef41e30bddd8bb3847153706d69d851e186092c101000000000000001887f7937a8ca4ec67ceaedebfad3d307b10f416219de1ed4f8646409eab730a0100000000000000b3772cbf76b589acf34786c7882bde8fbe77fd6474543ee882fdce09e50892410100000000000000e1c1327187f940cd73d5afb676b4b28399109aa6a6c3868707df1dc3d62a83820100000000000000ee40b85aa515fdbe6e559f815edc7ec1e321e0d152dd54258382ba31b54e447a010000000000000090517dbf339bac4cd01fcad403dd0803cb67a9b15bf024ce038eea2c7f2423040100000000000000c2eb94269c5e5d2ab9a1a300387358679640763b053aca99ba5c1c9083ee717f0100000000000000316bafdefb60951da2738d6c9c2ef1866d139b34b5eab6944d6bae754dd3fb1101000000000000007a92827270cfa82f16145a44f9bdd9ff5038ef1b665dd520a2e61db9749094960100000000000000ebb1834a568ea7653bc66f394937a0aa4f2f617118d2161e2c11c0d7d2febb9d0100000000000000fd2d8b8e265ca440581956a7e36b57eba685631193bc4fe0a2b638887ca5cc0b0100000000000000b6d7ac98d6667fe8f4a186ef12a66b017df05a54e11b45d3f2967cb3d6b6827f0100000000000000e5f305cd6d930d41209036f066a86d3724aad2f388d354ac4979cc763c220a5601000000000000007ef02c62a02f0c18581cfb8ab7c2dcdff34e36a453a3700c568d61fdf9c8a7b4010000000000000045e03689170b9fc027db927a99842e2c13f9fcbd875a74e2b54a2663f3c23dfc010000000000000098a6defcfeb3dfca36ec46eb373734627a2c395cdd2d886046a11788ed6467af01000000000000007a03c321222b7f7b34946e44850798fee20b9112a64e3950398cce19064b8723010000000000000035db4f9ab121f213b695b982f50c47ac04a14c54214e831ed1bbef7b9542310c01000000000000009bbc024bfe4f072b94735afda064dc3c7da2b4bc0c50cfad44722543583a372e0100000000000000496826b538d97906e14d417b48598d7d591a483ab5f4c6786cd0b96239c2f4cf0100000000000000ef27d1d5573e6419ffcc7c4372668105118256b810ab2e2dbb5e7d8280ee94250100000000000000ed3f97f83ee7799c4aeba9f40bd18134c862c1a30875fc1e038cd27bae3a739a01000000000000001e8548bd6c863891e2d9dd01c56e5e28355dc309f568cacce63d6ea61010b8700100000000000000348e8bacc2d40191a6a00e137c745a422ff8fb03148d2ff9cad75efbb7a670140100000000000000bfcc366ce0bfebc76ac157ed0814e2516786e48eb1a3313b5fe37283e9cf2c5a0100000000000000cafe2356af019d8b5f39c949b3dee71dd5356eb2655d819f485d0244e55b9fcd0100000000000000352738b28d7612806e53cb994ae9d0c04c29e66e74142b374149e9362d98070c0100000000000000efb31c5039e45fda750af5d2ea31b3210a407b168adec8f98db1f3dbc4cd94380100000000000000e2d564796e2660ba1bf553a21581f82116f775002a0dc0f26439f54c660fd84d01000000000000003732b4c704a4568eeced68b4347500bf3e5be27d612ff5382aea88100995ce1d0100000000000000bff74b6ff5ccdce9a659408871d486511938422a6e550fe0669ccd739f8010810100000000000000c149ee2bb1be4395301442de3b032c8596afa5588e1125258a172f837e8f0aa0010000000000000070603976fe118b79a53a29d112718649d8061b2a326a2809897ec904687df7a401000000000000002ff9330a8c344ad3adf4d97db014a2d0891d4dd69f5c8369dad3e0b25566173e01000000000000002667b3cc3064ffdc71758c12f2966407cdb1ac70e2cf972d547c688fd59080880100000000000000e01d6eda8094e949bfbb05c819b509a12eb662a414b822f841d9555d58e1ce760100000000000000c3576342cbf99792896ee5329b04ff2eee2fc2bb6d53c5c03d52c8957ee793fb0100000000000000de186294778cc927cb2a24ade9ad165956f3586979f1ac5f3b4a16edd2674339010000000000000043a9a2915f377cd4943f602be38c3bd6ef39e91562c09f18fb672884b4bf8eab010000000000000059dadf17dc0f84c1c334e6a815a04bdfcd0988a3f3bcb713c66ae29e17276cc60100000000000000297dc7cf28b3d40a42c5e8faac876bf7227c670e6e031dd0e0537f4fb70e6fbe01000000000000000909c1eff97923f6bd47e6ec8b5dc163b32d5b675a3b13138d3599e5cc77ab9f0100000000000000a5f788e86ee2d311357b7aa4a128f063fa4ee36958baf10304c10bde7421aa2c0100000000000000290321d793b7dcb12ad148c2438bb60821bd938b7e9164a0c3d0fc82987f8b630100000000000000f7bdbb5c598784ba157940b08b5c5aa967d0f3faf60da28b915650eb39afe47c01000000000000003bb30832d06cdd3e081afef0cf2b7770bfe81dc58081d1886443e4e4547da8a101000000000000002832b59000d2027d2bf57fdb40da04bd8aac1498923397517181cc487a92815201000000000000006c3829859c7b27da7f0528e6281a406cf713971a03fa4dbb4ea973ee33f7f3170100000000000000677358fc648638cbd854d2a009dd39b8508dd3047d0c5f13bb403a64d053ad030100000000000000645b81dc1769e34a815cc5682abd3c3b3ea60afa9705a5ff2908ad354b0f9ca4010000000000000073dce1727ec50c50366378cd389246e19543d900d7e9dab8e323d04cf5b202a701000000000000002ada479e1fde7211de15900ed29035f6f07506cdbadc4c232aab96d62006b9de0100000000000000ee1a56541083b083f1a13b5f8aa4042a098de2cec4c43f3250baaba8f03a52ea0100000000000000e2cc4424464983ada824bbef5aaa8995e80ef1017c15ef3b13902599841637ba01000000000000005246164c02e9e6bfb7a2dbf7ba8a5440a189f8048373678f5b1085f217464c050100000000000000dea69c3badff9b8d7571cb6c538cd099544da7460a19e1b8651c5c530a6dd53c01000000000000001889f1b031fa7d64c4b480a17cd2941be2c02681bca397c93607091f37bf5ee1010000000000000005062bede97a45c6e1c6b593675ee07ce969fae45136cc2b2afc6e705a77f4700100000000000000fd734da3c98d7d56f8b9cc92f389350f3b6de2fb5917d338fee9fd961978e2a30100000000000000dc6e03f650e4304ca8d1598dde8d4faf45891987bfc49ef785ace47c4c0b5573010000000000000084845f99ad8fe89b7aa136c30b71b791015e8801b1d42cbf9841a0b90e723aad0100000000000000ee145c84de0c536f9d5a7472fe520b20c036ebb714d5b4d51ff913b7cd69caae01000000000000008c258b4ca16dfb8e5afde4cf40fecf115307798117b4860475511b3b5d5615840100000000000000ea8c8bec277832ff4f31396f76d6117026cf73407bce46de9ccfd17c686ca11701000000000000000e7bc96895730726225e47e31c742fd44d3936f31ecd32658c694fc11df25224010000000000000016de137c03756dfabe67ce17e70158cf3d0ad00622b4ad02ed5ff16631f1c97901000000000000008873eb6d260a77ad37a779b9d6c87eabde1fb0be17ddfbd8c8bef64200cdf0db01000000000000003f6aeb3ed0d67d71ee11a1c2e1ed66da77abd8cc8c0f4d995d64fe4ec873684701000000000000006375ae0c1bf2b0388e16971715fd68c31ed179f38947531c165f0da2c3fe7667010000000000000012aa455c35356255f9ba286193962f3bc23f7fff565c1995ac21015bd946fe6e0100000000000000447a00c24ddef95382f0fce94aec3aefb0e8f0cb1a635bfb05faa030d63c1130010000000000000047ede3eca5f6c8f0a51f2d36d7d1c236aab07a8b2aaa6ab08c8ccf8d87ce3dd1010000000000000054c3e0cec10a6cade078942e7f79b242fc4a2eb1988eeb0ee6d92c8653a29c960100000000000000a5d172126aadfe80d2b711776674d61df5a1cd1a0129761fb2d2de58ed9d48a001000000000000006b5487e03da258c7c92add43a1b5a99a0b40f8316e758585150877bb6fe88b320100000000000000af470f2d66661e59ad85302877ba095309d859cea3d5086c5c184030c8f5bdf301000000000000009a0ea02dca493accceb975732f31c9d249d4c90ff1ca0bd86cbe00f1728146b401000000000000004485615186ae8ad33aff337594a7f8325d3a50201ee04320fb1dd2eab9643d1601000000000000002b07c366c1ed899a2ac9722b76e092828714a8177368e51ca05ec05c565866b30100000000000000e81206b483fdcf1fe42145f27d1efb8178a57ee24b196285374037da2a53b32301000000000000001ac44a1e32a5aabcb2bd23d6586da06e7d97d49a36cd670acaee574df1b912210100000000000000ff568b8e0dbe74604c6d04b5de6f2df03b343bea074c4495c6a10e511ba473d9010000000000000056563474f25233f9c2297766972922fd80f4dba402594c9ce82af58a9d0f9d07010000000000000085cf5e7395cdb93f9c9ba72075847443f040f22f440f0e868fbb5de594642dee01000000000000003a4bfd825ccd308def4a61bac80c579db42b02ea5f1a0768656a326e83a0dd880100000000000000db106e27c5b78f1a0d19e0abb47b4666c54906c5539c8596b43d36dc885e927a0100000000000000b5e0d0ae74b0ac76c0195fecca9660a241920ba97cdc5a247c7e941ee1f5407c010000000000000040d167daa1c3ef5c6b1982223618d955926af5b7670f6c1e732f4493fcd349ed0100000000000000f33b53556f28f27d250585317cd57a18f37c5d5f2b3c1bd00a0c91ea54f1636f0100000000000000e056900cabddb471de9e1846d7efdddd8b5ad400b02fc54b4402ba725c78bf9a010000000000000080629b67e7b2d6f57e9da3cb29cc8463a65d125039628124784f944b94c29e88010000000000000079f73931b31ce353119fb4063412e844b16cb3eb92e592ebd822a8c2130355480100000000000000b7d7f71a55b0e39262ab8d33e88e308d0ff39a79eae810ac8ec9cb8e37151fde010000000000000030afa9ef79458f844a27a3881655b6eafb90b3912737f1bcddb95e78eb098c1d010000000000000095885aaa49faca9622ac9eab12f2efa509361511039934ffeff93eb948eb517d010000000000000031a46e639e57d1a11119b17f76617a35b3606d206fb5c3e87710f464f7a57de50100000000000000c222ba3fffec09b85f1992db2dcaeaa48205903219789369855e347fd188144b010000000000000012c277c98d0593ec3d0f9d01e8ce08f67813197b67fe96d2be7c5ba6481515df01000000000000009606000000000000000114b0160100591a00000000000000002904050001000000000000002a0d050002000000000000002f16050003000000000000008e1f05000400000000000000ee28050005000000000000004d32050006000000000000009d3b05000700000000000000fd44050008000000000000005c4e05000900000000000000b75705000a00000000000000176105000b00000000000000766a05000c00000000000000d67305000d00000000000000357d05000e00000000000000958605000f00000000000000f58f0500100000000000000055990500110000000000000095a205001200000000000000d8ab050013000000000000000db50500140000000000000024da05001500000000000000aaec05001600000000000000f4f5050017000000000000003bff050018000000000000008b0806001900000000000000992406001a00000000000000f92d06001b000000000000000d4a06001c00000000000000685306001d00000000000000b65c06001e00000000000000f76506001f00000000000000308b060020000000000000007b940600210000000000000025a70600220000000000000033c3060023000000000000007fcc06002400000000000000c3d50600250000000000000011df060026000000000000005ae806002700000000000000a0f106002800000000000000410407002900000000000000880d07002a000000000000001b3c07002b00000000000000764507002c00000000000000357407002d00000000000000239907002e000000000000006fa207002f00000000000000c3ab070030000000000000006abe07003100000000000000bdc7070032000000000000000fd107003300000000000000b2e3070034000000000000000aed07003500000000000000971b080036000000000000009d24080037000000000000009c4008003800000000000000255308003900000000000000735c08003a000000000000000c6f08003b00000000000000048b08003c00000000000000589408003d00000000000000d3c208003e00000000000000e4de08003f000000000000003fe808004000000000000000f7fa08004100000000000000aa0d09004200000000000000153309004300000000000000fc6a090044000000000000003e74090045000000000000009a7d0900460000000000000000a30900470000000000000014db0900480000000000000020130a004900000000000000791c0a004a00000000000000364b0a004b0000000000000043830a004c00000000000000e5950a004d0000000000000045bb0a004e0000000000000059f30a004f000000000000000e060b005000000000000000812b0b005100000000000000dc340b005200000000000000ef500b005300000000000000a3630b005400000000000000b69b0b005500000000000000c7d30b005600000000000000dd0b0c005700000000000000f3430c005800000000000000087c0c00590000000000000052b30c005a0000000000000060eb0c005b00000000000000baf40c005c0000000000000072230d005d00000000000000805b0d005e000000000000007e930d005f000000000000007ccb0d00600000000000000076030e006100000000000000793b0e00620000000000000088730e00630000000000000092ab0e00640000000000000083e30e006500000000000000731b0f00660000000000000079530f006700000000000000748b0f0068000000000000001fc30f006900000000000000d0fa0f006a00000000000000633210006b00000000000000826a10006c0000000000000028a210006d0000000000000005b310006e0000000000000055d810006f000000000000004810110070000000000000006548110071000000000000008e8011007200000000000000bfb811007300000000000000bbf011007400000000000000e828120075000000000000001561120076000000000000003b991200770000000000000058d112007800000000000000770913007900000000000000944113007a00000000000000c07913007b00000000000000e7b113007c000000000000000cea13007d0000000000000067f313007e00000000000000d31814007f000000000000002e22140080000000000000008c2b14008100000000000000545a14008200000000000000ad63140083000000000000000e89140084000000000000006892140085000000000000008dca14008600000000000000b00215008700000000000000d03a15008800000000000000f3721500890000000000000015ab15008a000000000000003be315008b000000000000005d1b16008c00000000000000855316008d00000000000000b18b16008e00000000000000d3c316008f00000000000000e9fb16009000000000000000073417009100000000000000bf4617009200000000000000286c1700930000000000000029a41700940000000000000041dc17009500000000000000591418009600000000000000bf3918009700000000000000704c18009800000000000000948418009900000000000000f28d18009a00000000000000bcbc18009b00000000000000e4f418009c000000000000000b2d19009d000000000000002c6519009e00000000000000896e19009f00000000000000519d1900a00000000000000075d51900a100000000000000920d1a00a200000000000000ec161a00a300000000000000b6451a00a400000000000000887d1a00a50000000000000077b51a00a600000000000000cdbe1a00a70000000000000070ed1a00a80000000000000083091b00a9000000000000004e251b00aa00000000000000fe371b00ab00000000000000065d1b00ac000000000000005f661b00ad00000000000000bd6f1b00ae00000000000000de941b00af00000000000000fecc1b00b0000000000000001f041c00b1000000000000000c321c00b2000000000000002f3b1c00b3000000000000002e721c00b4000000000000000ca01c00b50000000000000044a91c00b60000000000000022e11c00b70000000000000044191d00b8000000000000000c481d00b9000000000000006b511d00ba000000000000008b891d00bb00000000000000a5c11d00bc0000000000000053f91d00bd00000000000000ff301e00be00000000000000054d1e00bf0000000000000002691e00c000000000000000d1a01e00c100000000000000c5d81e00c200000000000000cf101f00c30000000000000083481f00c400000000000000af801f00c500000000000000d0b81f00c600000000000000f0f01f00c7000000000000001b292000c80000000000000039612000c90000000000000054992000ca000000000000004fd12000cb000000000000004c092100cc00000000000000031c2100cd000000000000006d412100ce00000000000000cc4a2100cf0000000000000098792100d000000000000000c4b12100d100000000000000eee92100d20000000000000011222200d300000000000000325a2200d40000000000000055922200d50000000000000075ca2200d6000000000000008f022300d700000000000000b13a2300d800000000000000cd722300d90000000000000078852300da00000000000000ce8e2300db00000000000000bdaa2300dc00000000000000abe22300dd0000000000000012112400de00000000000000501a2400df0000000000000045512400e000000000000000a1882400e1000000000000005fc02400e20000000000000013f82400e30000000000000007302500e40000000000000013682500e500000000000000c37a2500e600000000000000a8962500e700000000000000fb9f2500e80000000000000000d82500e90000000000000019102600ea000000000000002b482600eb0000000000000028802600ec000000000000002eb82600ed0000000000000044d42600ee0000000000000058f02600ef00000000000000b3f92600f00000000000000065282700f10000000000000057602700f20000000000000064982700f3000000000000008dd02700f400000000000000a7ec2700f500000000000000b9082800f600000000000000e0402800f700000000000000f6782800f80000000000000019b12800f90000000000000040e92800fa000000000000006c212900fb00000000000000a0592900fc00000000000000107f2900fd00000000000000bc912900fe00000000000000eac92900ff00000000000000fd012a000001000000000000ff1d2a0001010000000000000c3a2a0002010000000000002b722a00030100000000000005aa2a000401000000000000fce12a0005010000000000004ceb2a000601000000000000e0fd2a000701000000000000c3192b000801000000000000be512b0009010000000000000a772b000a01000000000000ae892b000b01000000000000b0a52b000c01000000000000abc12b000d010000000000009bf92b000e0100000000000093312c000f0100000000000087692c00100100000000000075a12c00110100000000000074d92c00120100000000000089112d00130100000000000099492d001401000000000000b0812d001501000000000000c3b92d001601000000000000d1f12d001701000000000000d6292e001801000000000000e9612e001901000000000000ea992e001a01000000000000efd12e001b01000000000000f8092f001c01000000000000f0412f001d01000000000000e9792f001e0100000000000036832f001f01000000000000b2b12f002001000000000000a9cd2f00210100000000000094e92f0022010000000000007121300023010000000000003b5930002401000000000000089130002501000000000000599a30002601000000000000f6c830002701000000000000e30031002801000000000000c03831002901000000000000a17031002a01000000000000f27931002b010000000000007fa831002c010000000000005de031002d01000000000000aae931002e01000000000000441832002f01000000000000295032003001000000000000fe8732003101000000000000aa9a3200320100000000000010c0320033010000000000003af8320034010000000000005f303300350100000000000059683300360100000000000078a0330037010000000000009bd833003801000000000000cb1034003901000000000000f44834003a010000000000001c8134003b0100000000000044b934003c0100000000000055f134003d010000000000009dfa34003e01000000000000302935003f01000000000000c6573500400100000000000023613500410100000000000053993500420100000000000080d135004301000000000000560036004401000000000000b10936004501000000000000ce4136004601000000000000037a3600470100000000000031b2360048010000000000005fea360049010000000000007b2237004a01000000000000995a37004b01000000000000f56337004c01000000000000c69237004d01000000000000feca37004e01000000000000340338004f01000000000000683b380050010000000000009e7338005101000000000000c9ab38005201000000000000dcc7380053010000000000003cd138005401000000000000f8e338005501000000000000b0f6380056010000000000001c1c390057010000000000007a2539005801000000000000da2e39005901000000000000525439005a01000000000000878c39005b01000000000000bbc439005c01000000000000f3fc39005d0100000000000028353a005e010000000000005f6d3a005f0100000000000098a53a006001000000000000cedd3a0061010000000000000c163b006201000000000000404e3b00630100000000000019853b006401000000000000608e3b006501000000000000b8973b0066010000000000000fa13b006701000000000000a7b33b006801000000000000fabc3b00690100000000000049c63b006a010000000000009ccf3b006b01000000000000eed83b006c01000000000000c1f43b006d0100000000000014fe3b006e0100000000000066073c006f01000000000000b7103c0070010000000000009e2c3c007101000000000000ee353c00720100000000000094483c007301000000000000e0513c0074010000000000007c643c0075010000000000001d773c0076010000000000004b9c3c00770100000000000010d43c007801000000000000d80b3d0079010000000000001a153d007a0100000000000053433d007b01000000000000ea553d007c01000000000000225f3d007d0100000000000072683d007e01000000000000b4713d007f01000000000000fb7a3d0080010000000000007a8d3d008101000000000000b8963d00820100000000000006a03d00830100000000000088b23d008401000000000000c8bb3d0085010000000000000bc53d0086010000000000001dea3d008701000000000000e9053e008801000000000000b5213e0089010000000000003b343e008a01000000000000843d3e008b010000000000005e593e008c010000000000001f913e008d0100000000000065c83e008e010000000000006bed3e008f01000000000000a9f63e009001000000000000f6ff3e009101000000000000c1373f0092010000000000005c4a3f0093010000000000003b663f009401000000000000856f3f009501000000000000cf783f0096010000000000003ea73f009701000000000000ccde3f0098010000000000008516400099010000000000001e2940009a010000000000006e4e40009b01000000000000c35740009c010000000000009b8640009d01000000000000cebe40009e0100000000000001f740009f01000000000000372f4100a00100000000000097384100a10100000000000070674100a201000000000000a99f4100a30100000000000065b24100a401000000000000ddd74100a50100000000000096ea4100a6010000000000000b104200a70100000000000044484200a8010000000000009c514200a9010000000000003b804200aa0100000000000051b84200ab010000000000006fd44200ac010000000000005ef04200ad01000000000000b9f94200ae010000000000006a284300af0100000000000078604300b00100000000000077984300b101000000000000abd04300b20100000000000064e34300b30100000000000072ff4300b401000000000000d2084400b50100000000000008414400b6010000000000002e794400b7010000000000005eb14400b8010000000000007de94400b9010000000000009e214500ba010000000000005d344500bb01000000000000d0594500bc0100000000000006924500bd010000000000001aca4500be010000000000004a024600bf01000000000000603a4600c00100000000000084724600c101000000000000abaa4600c20100000000000047bd4600c3010000000000009ec64600c401000000000000a0e24600c5010000000000005df54600c601000000000000bf1a4700c701000000000000d1524700c8010000000000007f814700c901000000000000dd8a4700ca0100000000000039944700cb01000000000000f2c24700cc0100000000000010fb4700cd01000000000000d5294800ce010000000000002c334800cf01000000000000f9614800d001000000000000596b4800d10100000000000078874800d2010000000000008da34800d301000000000000aadb4800d401000000000000c6134900d501000000000000eb4b4900d601000000000000e7834900d701000000000000f9bb4900d801000000000000b6ce4900d9010000000000001bf44900da010000000000004a2c4a00db0100000000000066644a00dc010000000000002f7d4a00dd0100000000000019994a00de01000000000000c0ab4a00df01000000000000aec74a00e001000000000000fed04a00e101000000000000bbff4a00e20100000000000019094b00e301000000000000902e4b00e40100000000000041414b00e50100000000000010704b00e6010000000000006e794b00e7010000000000002b8c4b00e80100000000000094b14b00e901000000000000a4e94b00ea01000000000000d4214c00eb01000000000000d7594c00ec01000000000000e8914c00ed0100000000000004ae4c00ee01000000000000ebc94c00ef0100000000000014024d00f001000000000000fe394d00f1010000000000000a724d00f201000000000000667b4d00f30100000000000013aa4d00f40100000000000031c64d00f50100000000000037e24d00f6010000000000004afe4d00f7010000000000002c1a4e00f801000000000000ea2c4e00f90100000000000049364e00fa010000000000004e524e00fb01000000000000628a4e00fc0100000000000079a64e00fd010000000000001ab94e00fe0100000000000079c24e00ff0100000000000094de4e000002000000000000aafa4e00010200000000000059324f00020200000000000004654f000302000000000000ff764f0004020000000000000d804f0005020000000000007e924f000602000000000000c29b4f000702000000000000f4d34f000802000000000000160c50000902000000000000504450000a02000000000000877c50000b02000000000000b6b450000c02000000000000e7ec50000d0200000000000046f650000e02000000000000b61b51000f020000000000001625510010020000000000004f5d510011020000000000000f7051001202000000000000889551001302000000000000b5cd5100140200000000000014d751001502000000000000e605520016020000000000001f3e5200170200000000000053765200180200000000000089ae52001902000000000000e8b752001a02000000000000b7e652001b0200000000000074f952001c02000000000000e81e53001d020000000000001a5753001e02000000000000558f53001f020000000000008ac753002002000000000000b9ff53002102000000000000f13754002202000000000000277054002302000000000000418c54002402000000000000d1a354002502000000000000d9c8540026020000000000007edb54002702000000000000b81355002802000000000000e34b55002902000000000000c58355002a02000000000000d6bb55002b0200000000000007f455002c02000000000000c30656002d020000000000002c2c56002e020000000000005d6456002f020000000000008f9c56003002000000000000c9d456003102000000000000070d570032020000000000004345570033020000000000007a7d570034020000000000007d99570035020000000000009ab557003602000000000000b4ed57003702000000000000f225580038020000000000002f5e580039020000000000006b9658003a02000000000000a6ce58003b02000000000000e30659003c02000000000000183f59003d02000000000000517759003e02000000000000ad8059003f020000000000008baf59004002000000000000e9b859004102000000000000c5e75900420200000000000002205a0043020000000000003f585a0044020000000000007c905a004502000000000000bcc85a004602000000000000f1005b004702000000000000111d5b00480200000000000030395b0049020000000000006f715b004a02000000000000aca95b004b02000000000000e9e15b004c02000000000000251a5c004d0200000000000060525c004e020000000000009f8a5c004f02000000000000dbc25c00500200000000000019fb5c00510200000000000058335d005202000000000000956b5d005302000000000000c7a35d005402000000000000f7db5d00550200000000000031145e0056020000000000006f4c5e005702000000000000a7845e005802000000000000e0bc5e0059020000000000003fc65e005a020000000000001cf55e005b02000000000000582d5f005c0200000000000093655f005d02000000000000cf9d5f005e0200000000000005d65f005f02000000000000440e600060020000000000008346600061020000000000006a7e6000620200000000000056b46000630200000000000000ec60006402000000000000a72361006502000000000000e25b61006602000000000000f293610067020000000000001bcc61006802000000000000dade61006902000000000000590462006a02000000000000963c62006b02000000000000cc7462006c020000000000008c8762006d02000000000000ffac62006e020000000000003ae562006f02000000000000731d63007002000000000000b05563007102000000000000e98d630072020000000000001dc6630073020000000000005dfe63007402000000000000993664007502000000000000d86e6400760200000000000017a76400770200000000000051df640078020000000000008a1765007902000000000000c34f65007a02000000000000018865007b020000000000003ec065007c020000000000007af865007d02000000000000b63066007e02000000000000f06866007f0200000000000004a16600800200000000000041d966008102000000000000711167008202000000000000ac4967008302000000000000de8167008402000000000000f8b967008502000000000000b8cc6700860200000000000035f2670087020000000000006e2a680088020000000000001c3d680089020000000000007f6268008a02000000000000ba9a68008b02000000000000f3d268008c02000000000000310b69008d02000000000000704369008e02000000000000ae7b69008f02000000000000eeb3690090020000000000002bec6900910200000000000065246a009202000000000000a45c6a009302000000000000e0946a0094020000000000001dcd6a009502000000000000dbdf6a00960200000000000059056b00970200000000000018186b009802000000000000923d6b009902000000000000b0756b009a02000000000000e6ad6b009b0200000000000021e66b009c020000000000005e1e6c009d0200000000000096566c009e02000000000000d28e6c009f020000000000000ac76c00a00200000000000047ff6c00a10200000000000077376d00a202000000000000876f6d00a3020000000000000fa76d00a40200000000000059dc6d00a50200000000000022146e00a602000000000000464c6e00a70200000000000071846e00a802000000000000eea96e00a902000000000000aabc6e00aa0200000000000085eb6e00ab02000000000000e4f46e00ac020000000000001c2d6f00ad02000000000000da3f6f00ae0200000000000053656f00af020000000000008c9d6f00b002000000000000c4d56f00b102000000000000d90d7000b202000000000000d7457000b302000000000000f67d7000b402000000000000deb57000b502000000000000b2ed7000b602000000000000a9257100b702000000000000975d7100b802000000000000338c7100b9020000000000007e957100ba0200000000000068b17100bb0200000000000050cd7100bc020000000000001c057200bd02000000000000610e7200be02000000000000c13c7200bf020000000000006b747200c0020000000000005aac7200c10200000000000032e47200c202000000000000dcf67200c302000000000000321c7300c4020000000000002b547300c5020000000000007d8b7300c60200000000000020c37300c702000000000000cefa7300c8020000000000003c327400c9020000000000009b697400ca02000000000000eda07400cb0200000000000056d87400cc0200000000000090107500cd02000000000000ad2c7500ce020000000000000b367500cf02000000000000c7487500d002000000000000fe807500d10200000000000039b97500d20200000000000073f17500d30200000000000030047600d4020000000000004b207600d502000000000000a9297600d60200000000000006337600d702000000000000d3617600d80200000000000090747600d902000000000000089a7600da020000000000002fd27600db020000000000001a0a7700dc0200000000000022427700dd02000000000000007a7700de02000000000000d2b17700df02000000000000f8e97700e0020000000000002b227800e102000000000000635a7800e202000000000000a0927800e302000000000000daca7800e40200000000000011037900e502000000000000483b7900e60200000000000085737900e702000000000000b1ab7900e802000000000000dae37900e902000000000000121c7a00ea0200000000000049547a00eb02000000000000878c7a00ec02000000000000bfc47a00ed02000000000000edfc7a00ee0200000000000026357b00ef02000000000000606d7b00f0020000000000009da57b00f102000000000000cddd7b00f20200000000000006167c00f3020000000000003f4e7c00f402000000000000fb607c00f50200000000000077867c00f602000000000000b4be7c00f70200000000000014c87c00f802000000000000e0f67c00f9020000000000001b2f7d00fa0200000000000058677d00fb02000000000000959f7d00fc02000000000000d2d77d00fd02000000000000ec0f7e00fe0200000000000025487e00ff020000000000005f807e0000030000000000009ab87e000103000000000000d3f07e000203000000000000ee0c7f0003030000000000000a297f000403000000000000c53b7f00050300000000000043617f0006030000000000007b997f000703000000000000b9d17f000803000000000000f20980000903000000000000284280000a030000000000005e7a80000b0300000000000099b280000c03000000000000d2ea80000d03000000000000082381000e030000000000003e5b81000f030000000000007b9381001003000000000000b8cb81001103000000000000f30382001203000000000000313c82001303000000000000697482001403000000000000a6ac82001503000000000000c4c882001603000000000000e0e482001703000000000000ff00830018030000000000001e1d83001903000000000000dd2f83001a030000000000005b5583001b03000000000000988d83001c03000000000000d5c583001d0300000000000010fe83001e030000000000004e3684001f03000000000000826e84002003000000000000bba684002103000000000000f5de840022030000000000006f0485002303000000000000cc0d850024030000000000002c1785002503000000000000ea2985002603000000000000634f850027030000000000007e6b850028030000000000009a878500290300000000000017ad85002a03000000000000d2bf85002b0300000000000031c985002c030000000000000ef885002d030000000000004a3086002e03000000000000866886002f03000000000000bea086003003000000000000f2d8860031030000000000002a1187003203000000000000871a870033030000000000006449870034030000000000001d5c87003503000000000000998187003603000000000000cfb987003703000000000000eed5870038030000000000000cf2870039030000000000004a2a88003a03000000000000a83388003b03000000000000826288003c03000000000000b69a88003d03000000000000efd288003e030000000000002d0b89003f030000000000004d27890040030000000000006c4389004103000000000000ab7b89004203000000000000eab38900430300000000000028ec8900440300000000000068248a004503000000000000a05c8a004603000000000000b4948a004703000000000000f4cc8a00480300000000000030058b0049030000000000006f3d8b004a030000000000008e598b004b03000000000000ae758b004c03000000000000ecad8b004d0300000000000028e68b004e03000000000000331e8c004f030000000000004f568c0050030000000000008e8e8c005103000000000000c7c68c00520300000000000005ff8c00530300000000000041378d005403000000000000746f8d005503000000000000a4a78d00560300000000000064ba8d005703000000000000e4df8d0058030000000000000a188e00590300000000000023508e005a0300000000000027888e005b03000000000000d89a8e005c0300000000000043c08e005d0300000000000082f88e005e03000000000000c0308f005f03000000000000ff688f0060030000000000001ba18f00610300000000000059d98f006203000000000000981190006303000000000000d64990006403000000000000f56590006503000000000000158290006603000000000000758b9000670300000000000053ba9000680300000000000092f290006903000000000000d22a91006a03000000000000106391006b03000000000000489b91006c03000000000000a2a491006d030000000000001bd391006e03000000000000530992006f03000000000000d32e9200700300000000000090419200710300000000000074799200720300000000000094b19200730300000000000072e092007403000000000000d2e992007503000000000000b21893007603000000000000122293007703000000000000445a93007803000000000000739293007903000000000000f3b793007a03000000000000abca93007b030000000000005ddd93007c03000000000000c40294007d03000000000000e13a94007e03000000000000217394007f0300000000000059ab9400800300000000000090e394008103000000000000c31b95008203000000000000ea53950083030000000000009866950084030000000000000b8c9500850300000000000046c49500860300000000000057fc950087030000000000008f3496008803000000000000cf6c960089030000000000000ba596008a0300000000000045dd96008b03000000000000a3e696008c03000000000000801597008d03000000000000bc4d97008e03000000000000f78597008f030000000000002ebe9700900300000000000030f6970091030000000000005a2e98009203000000000000956698009303000000000000d49e9800940300000000000014d7980095030000000000003b0f990096030000000000006c4799009703000000000000ac7f9900980300000000000078b79900990300000000000026ca99009a030000000000007cef99009b0300000000000085279a009c03000000000000be5f9a009d03000000000000fd979a009e03000000000000b9aa9a009f0300000000000022d09a00a0030000000000003dec9a00a10300000000000058089b00a20300000000000074249b00a3030000000000008b409b00a403000000000000e4499b00a50300000000000038789b00a60300000000000076819b00a703000000000000e4af9b00a803000000000000b7e79b00a903000000000000731f9c00aa03000000000000a6289c00ab030000000000002f3b9c00ac0300000000000012579c00ad030000000000005d609c00ae03000000000000cb8e9c00af0300000000000057a19c00b00300000000000086c69c00b1030000000000005afe9c00b20300000000000002369d00b303000000000000bc6d9d00b40300000000000099a59d00b5030000000000004edd9d00b603000000000000db149e00b703000000000000e0399e00b803000000000000724c9e00b9030000000000002a849e00ba03000000000000ee9f9e00bb03000000000000d1bb9e00bc030000000000007df39e00bd03000000000000f02a9f00be030000000000006a629f00bf03000000000000ff999f00c0030000000000002ed19f00c1030000000000004608a000c203000000000000893fa000c303000000000000a476a000c403000000000000dfada000c5030000000000001cb7a000c6030000000000003ce5a000c703000000000000921ca100c8030000000000008c53a100c903000000000000988aa100ca0300000000000010a6a100cb03000000000000a0c1a100cc03000000000000e5d3a100cd0300000000000072f8a100ce030000000000007c2fa200cf030000000000003766a200d003000000000000389da200d10300000000000056a6a200d203000000000000a9b8a200d303000000000000cac1a200d4030000000000001ad4a200d503000000000000200ba300d6030000000000002714a300d703000000000000bc41a300d8030000000000006778a300d9030000000000000aafa300da0300000000000046dca300db0300000000000065e5a300dc03000000000000a81ba400dd03000000000000d72da400de030000000000002352a400df030000000000006288a400e003000000000000c1bea400e103000000000000f8f4a400e203000000000000212ba500e3030000000000003f61a500e403000000000000656aa500e503000000000000e497a500e60300000000000040cea500e703000000000000b204a600e803000000000000fc3aa600e9030000000000009471a600ea0300000000000037a8a600eb030000000000001adfa600ec03000000000000ea0ca700ed030000000000000e16a700ee030000000000005228a700ef030000000000007d31a700f003000000000000034da700f1030000000000002084a700f2030000000000004a8da700f303000000000000a99fa700f403000000000000f6baa700f503000000000000c1f1a700f603000000000000be28a800f703000000000000a65fa800f8030000000000003e7ba800f903000000000000c296a800fa03000000000000c3cda800fb03000000000000d504a900fc03000000000000f83ba900fd030000000000005f73a900fe03000000000000ceaaa900ff030000000000000bb4a900000400000000000005e2a90001040000000000005e19aa000204000000000000c12baa0003040000000000008e50aa000404000000000000fd62aa0005040000000000008175aa000604000000000000fa87aa0007040000000000002f91aa0008040000000000005dbfaa000904000000000000a3c8aa000a04000000000000e5f6aa000b04000000000000e41bab000c040000000000005b2eab000d04000000000000e765ab000e040000000000004c9dab000f0400000000000085a6ab001004000000000000b8d4ab001104000000000000fdddab0012040000000000003b0cac001304000000000000d043ac001404000000000000827bac001504000000000000b8a0ac0016040000000000005bb3ac00170400000000000029ebac0018040000000000006af4ac0019040000000000000e07ad001a04000000000000f422ad001b04000000000000432cad001c040000000000009935ad001d04000000000000ee3ead001e04000000000000d55aad001f04000000000000bd76ad002004000000000000a592ad00210400000000000076caad002204000000000000f6dcad002304000000000000e001ae0024040000000000004f39ae0025040000000000001371ae0026040000000000005f7aae002704000000000000fc8cae002804000000000000cda8ae0029040000000000005ebbae002a0400000000000081e0ae002b040000000000004f18af002c040000000000001e50af002d04000000000000e687af002e04000000000000a0bfaf002f040000000000005ff7af003004000000000000042fb0003104000000000000da66b00032040000000000009a9eb000330400000000000063d6b0003404000000000000300eb1003504000000000000da45b10036040000000000009a7db100370400000000000050b5b100380400000000000029edb1003904000000000000971bb2003a04000000000000e024b2003b04000000000000995cb2003c040000000000006694b2003d0400000000000048b0b2003e040000000000002eccb2003f0400000000000075d5b200400400000000000008e8b2004104000000000000e703b3004204000000000000ce1fb3004304000000000000b63bb30044040000000000000d45b30045040000000000009f57b30046040000000000007573b3004704000000000000c67cb30048040000000000003aabb3004904000000000000e4e2b3004a04000000000000651ab4004b04000000000000f951b4004c040000000000009389b4004d0400000000000025c1b4004e04000000000000f6f8b4004f04000000000000241eb5005004000000000000b130b50051040000000000007068b500520400000000000040a0b5005304000000000000ecd7b50054040000000000000510b60055040000000000003e48b60056040000000000007a80b6005704000000000000b7b8b6005804000000000000f3f0b60059040000000000002f29b7005a04000000000000ae4eb7005b040000000000006861b7005c04000000000000a599b7005d04000000000000ded1b7005e040000000000005cf7b7005f04000000000000160ab80060040000000000005042b8006104000000000000964bb8006204000000000000687ab8006304000000000000a6b2b800640400000000000066c5b8006504000000000000e5eab80066040000000000000423b90067040000000000003f5bb90068040000000000005d77b90069040000000000007b93b9006a04000000000000b7cbb9006b04000000000000ef03ba006c04000000000000133cba006d040000000000003358ba006e040000000000005174ba006f0400000000000042acba0070040000000000006ce4ba007104000000000000a21cbb007204000000000000e054bb007304000000000000405ebb0074040000000000001b8dbb0075040000000000002ec5bb0076040000000000006dfdbb007704000000000000a435bc007804000000000000d06dbc0079040000000000000ca6bc007a040000000000004adebc007b040000000000008716bd007c04000000000000c34ebd007d04000000000000fc86bd007e040000000000003bbfbd007f040000000000007af7bd008004000000000000d500be008104000000000000b32fbe008204000000000000ea67be00830400000000000027a0be00840400000000000065d8be008504000000000000a410bf008604000000000000dd48bf0087040000000000003b52bf0088040000000000001881bf0089040000000000008fb8bf008a04000000000000cbc1bf008b04000000000000f8efbf008c040000000000007602c0008d040000000000008327c0008e04000000000000075fc0008f040000000000005d96c000900400000000000009cec00091040000000000003b06c10092040000000000002d3ec10093040000000000006476c10094040000000000007aaec1009504000000000000b9e6c1009604000000000000ef1ec20097040000000000002c57c2009804000000000000698fc20099040000000000008cc7c2009a040000000000009effc2009b04000000000000da37c3009c04000000000000ee6fc3009d0400000000000029a8c3009e0400000000000067e0c3009f04000000000000240fc400a0040000000000008218c400a104000000000000b150c400a204000000000000c088c400a304000000000000d2c0c400a404000000000000f6f8c400a5040000000000001231c500a604000000000000d143c500a7040000000000004d69c500a80400000000000089a1c500a904000000000000c4d9c500aa040000000000000112c600ab040000000000005c1bc600ac040000000000003a4ac600ad040000000000007482c600ae04000000000000abbac600af04000000000000e4f2c600b0040000000000001d2bc700b1040000000000002e47c700b2040000000000004863c700b304000000000000687fc700b404000000000000829bc700b5040000000000009bd3c700b604000000000000d80bc800b7040000000000001144c800b804000000000000704dc800b904000000000000d056c800ba040000000000004e7cc800bb0400000000000080b4c800bc04000000000000b1ecc800bd040000000000009808c900be040000000000008d24c900bf04000000000000c75cc900c004000000000000df94c900c104000000000000feb0c900c2040000000000001dcdc900c3040000000000004605ca00c4040000000000006e3dca00c5040000000000009e75ca00c604000000000000029bca00c704000000000000aeadca00c8040000000000008adcca00c904000000000000eae5ca00ca04000000000000251ecb00cb04000000000000fa55cb00cc04000000000000778ccb00cd04000000000000eec3cb00ce0400000000000005fccb00cf040000000000004134cc00d004000000000000716ccc00d10400000000000096a4cc00d204000000000000d3dccc00d30400000000000086efcc00d4040000000000000215cd00d504000000000000ac27cd00d604000000000000264dcd00d7040000000000008656cd00d8040000000000006385cd00d9040000000000003bb4cd00da0400000000000099bdcd00db04000000000000d8f5cd00dc04000000000000172ece00dd040000000000005366ce00de04000000000000909ece00df04000000000000b7d6ce00e00400000000000068e9ce00e104000000000000cc0ecf00e2040000000000000547cf00e304000000000000427fcf00e40400000000000079b7cf00e504000000000000b8efcf00e604000000000000f427d000e7040000000000000b60d000e8040000000000004698d000e90400000000000083d0d000ea04000000000000c008d100eb04000000000000fa40d100ec040000000000003679d100ed0400000000000073b1d100ee0400000000000087cdd100ef04000000000000a6e9d100f004000000000000e521d200f1040000000000001e5ad200f2040000000000005692d200f30400000000000092cad200f40400000000000052ddd200f504000000000000ce02d300f604000000000000e13ad300f7040000000000003444d300f804000000000000dc56d300f904000000000000ef72d300fa040000000000004d7cd300fb0400000000000024abd300fc04000000000000a1d0d300fd040000000000005be3d300fe04000000000000901bd400ff04000000000000ce53d40000050000000000000a8cd40001050000000000003ac4d40002050000000000004ae0d400030500000000000069fcd4000405000000000000a134d50005050000000000006047d5000605000000000000de6cd50007050000000000001ba5d500080500000000000058ddd50009050000000000009415d6000a05000000000000d24dd6000b05000000000000f085d6000c050000000000001ebed6000d05000000000000fbecd6000e050000000000005bf6d6000f050000000000008b2ed7001005000000000000c566d7001105000000000000029fd700120500000000000036d7d70013050000000000006f0fd80014050000000000009f47d8001505000000000000c97fd8001605000000000000e4b7d80017050000000000001ff0d80018050000000000005928d90019050000000000009560d9001a050000000000005473d9001b05000000000000718fd9001c05000000000000d198d9001d0500000000000031a2d9001e050000000000000fd1d9001f05000000000000cfe3d90020050000000000004f09da0021050000000000008941da002205000000000000b979da002305000000000000edb1da00240500000000000047bbda00250500000000000054d7da00260500000000000007eada00270500000000000067f3da0028050000000000003a22db0029050000000000005e5adb002a050000000000007892db002b05000000000000b0cadb002c05000000000000e702dc002d05000000000000183bdc002e050000000000007644dc002f050000000000002773dc003005000000000000dd85dc0031050000000000004dabdc00320500000000000086e3dc003305000000000000bb1bdd003405000000000000944add003505000000000000f453dd003605000000000000ad66dd003705000000000000298cdd00380500000000000060c4dd0039050000000000009cfcdd003a05000000000000fa05de003b05000000000000d734de003c05000000000000b56cde003d0500000000000045a4de003e05000000000000a1d2de003f05000000000000e4dbde0040050000000000002fe5de0041050000000000003c05df004205000000000000d81adf004305000000000000d636df0044050000000000002840df004505000000000000d252df004605000000000000cf6edf004705000000000000a9a6df004805000000000000eeafdf00490500000000000047b9df004a05000000000000b1dedf004b050000000000000de8df004c050000000000006e0de0004d05000000000000cb16e0004e05000000000000d84ee0004f050000000000007886e0005005000000000000b3bee0005105000000000000c3f6e0005205000000000000fe2ee10053050000000000002c67e1005405000000000000e679e1005505000000000000a68ce1005605000000000000629fe10057050000000000009bd7e10058050000000000005806e2005905000000000000b10fe2005a05000000000000e647e2005b050000000000001880e2005c050000000000007689e2005d050000000000004cb8e2005e050000000000007ef0e2005f05000000000000b228e3006005000000000000e760e30061050000000000002499e300620500000000000060d1e30063050000000000009c09e4006405000000000000d441e4006505000000000000334be40066050000000000000a7ae4006705000000000000e0a8e400680500000000000040b2e40069050000000000006feae4006a05000000000000a022e5006b05000000000000de5ae5006c050000000000001a93e5006d0500000000000055cbe5006e050000000000000bdee5006f050000000000008203e6007005000000000000db0ce6007105000000000000b53be6007205000000000000f073e60073050000000000004e7de60074050000000000002cace60075050000000000008cb5e60076050000000000006be4e6007705000000000000a51ce7007805000000000000dc54e7007905000000000000168de7007a050000000000004ac5e7007b0500000000000057fde7007c050000000000009335e8007d05000000000000d06de8007e050000000000002e77e8007f0500000000000004a6e80080050000000000003fdee80081050000000000007b16e9008205000000000000b74ee9008305000000000000e886e900840500000000000015bfe900850500000000000046f7e9008605000000000000602fea0087050000000000000442ea0088050000000000005a4bea0089050000000000006a67ea008a05000000000000889fea008b05000000000000daa8ea008c0500000000000079d7ea008d050000000000009f0feb008e050000000000005c22eb008f050000000000001c35eb009005000000000000d847eb0091050000000000000e80eb0092050000000000003eb8eb00930500000000000076f0eb009405000000000000ad28ec009505000000000000e660ec0096050000000000002399ec00970500000000000060d1ec0098050000000000009e09ed0099050000000000005e1ced009a05000000000000da41ed009b050000000000009654ed009c050000000000005567ed009d05000000000000127aed009e050000000000004ab2ed009f0500000000000082eaed00a005000000000000e1f3ed00a105000000000000bd22ee00a205000000000000fa5aee00a3050000000000003493ee00a405000000000000929cee00a50500000000000070cbee00a605000000000000ac03ef00a705000000000000eb3bef00a805000000000000fb73ef00a905000000000000feabef00aa05000000000000bebeef00ab0500000000000038e4ef00ac050000000000004e1cf000ad050000000000008854f000ae05000000000000958cf000af05000000000000c5c4f000b005000000000000fffcf000b1050000000000002e35f100b205000000000000de47f100b305000000000000466df100b4050000000000005da5f100b50500000000000094ddf100b605000000000000c115f200b705000000000000fa4df200b8050000000000002d86f200b90500000000000067bef200ba05000000000000a0f6f200bb05000000000000b52ef300bc050000000000003254f300bd05000000000000ef66f300be05000000000000239ff300bf0500000000000032d7f300c005000000000000dde9f300c1050000000000001e0ff400c2050000000000004f47f400c3050000000000008d7ff400c4050000000000006bb7f400c5050000000000009beff400c605000000000000c927f500c705000000000000ff5ff500c8050000000000003198f500c90500000000000063d0f500ca050000000000008908f600cb05000000000000c240f600cc050000000000001d66f600cd05000000000000ca78f600ce05000000000000fbb0f600cf0500000000000031e9f600d0050000000000006021f700d1050000000000009e59f700d205000000000000d891f700d3050000000000000acaf700d4050000000000004402f800d5050000000000007b3af800d605000000000000fa5ff800d705000000000000b672f800d805000000000000ebaaf800d90500000000000048b4f800da0500000000000024e3f800db05000000000000601bf900dc050000000000009753f900dd05000000000000ac8bf900de05000000000000e3c3f900df050000000000001cfcf900e0050000000000005934fa00e105000000000000936cfa00e205000000000000a7a4fa00e305000000000000dfdcfa00e4050000000000001a15fb00e5050000000000004d4dfb00e605000000000000a656fb00e7050000000000007b85fb00e805000000000000a2bdfb00e905000000000000dff5fb00ea050000000000005f1bfc00eb050000000000001e2efc00ec050000000000005266fc00ed050000000000000c79fc00ee05000000000000cc8bfc00ef050000000000002995fc00f005000000000000899efc00f105000000000000c1d6fc00f2050000000000007ee9fc00f3050000000000003dfcfc00f405000000000000f00efd00f5050000000000004c18fd00f6050000000000001a47fd00f7050000000000004a7ffd00f80500000000000086b7fd00f905000000000000beeffd00fa050000000000001ef9fd00fb05000000000000ee27fe00fc050000000000000944fe00fd050000000000002560fe00fe05000000000000307cfe00ff050000000000002798fe000006000000000000e2aafe00010600000000000042b4fe0002060000000000005dd0fe0003060000000000009a08ff000406000000000000ca40ff000506000000000000244aff000606000000000000f278ff0007060000000000002db1ff00080600000000000063e9ff000906000000000000712100010a06000000000000313400010b060000000000004c5000010c06000000000000ac5900010d06000000000000b49100010e06000000000000e3c900010f06000000000000f60101011006000000000000103a010111060000000000003056010112060000000000004c720101130600000000000084aa01011406000000000000c2e201011506000000000000fe1a02011606000000000000235302011706000000000000618b020118060000000000009dc3020119060000000000005ad602011a06000000000000badf02011b06000000000000d7fb02011c06000000000000370503011d06000000000000f71703011e06000000000000133403011f06000000000000516c03012006000000000000107f030121060000000000008da403012206000000000000cadc03012306000000000000f81404012406000000000000324d0401250600000000000070850401260600000000000080bd040127060000000000008bf504012806000000000000842d05012906000000000000d73605012a060000000000008b6505012b06000000000000c19d05012c06000000000000f9d505012d060000000000002e0e06012e06000000000000664606012f060000000000009d7e06013006000000000000d7b60601310600000000000011ef06013206000000000000442707013306000000000000725f07013406000000000000af9707013506000000000000e7cf070136060000000000001f0808013706000000000000372408013806000000000000544008013906000000000000917808013a06000000000000c8b008013b0600000000000001e908013c060000000000000f2109013d06000000000000085909013e06000000000000a99009013f06000000000000b5c809014006000000000000c5000a014106000000000000d2380a01420600000000000006710a014306000000000000f5a80a0144060000000000002be10a01450600000000000012190b01460600000000000048510b01470600000000000086890b014806000000000000e5920b014906000000000000c4c10b014a0600000000000000fa0b014b060000000000001d320c014c060000000000000b6a0c014d06000000000000c5980c014e060000000000001aa20c014f06000000000000d7d00c0150060000000000002dda0c01510600000000000069120d015206000000000000a44a0d015306000000000000df820d0154060000000000001dbb0d01550600000000000055f30d015606000000000000852b0e01570600000000000083630e015806000000000000c39b0e0159060000000000001ba50e015a060000000000007bae0e015b06000000000000f7d30e015c06000000000000afe60e015d06000000000000290c0f015e0600000000000065440f015f06000000000000db690f016006000000000000977c0f016106000000000000d2b40f016206000000000000ecec0f016306000000000000062510016406000000000000ea5c10016506000000000000f49410016606000000000000ffcc100167060000000000005ed610016806000000000000d6fb10016906000000000000340511016a06000000000000613d11016b060000000000008b7511016c06000000000000919111016d06000000000000abad11016e06000000000000e0e511016f060000000000001d1e120170060000000000005556120171060000000000006c8e120172060000000000008aaa12017306000000000000a3c612017406000000000000bdfe12017506000000000000f83613017606000000000000126f130177060000000000006c9413017806000000000000c99d1301790600000000000029a713017a060000000000005bdf13017b06000000000000b8e813017c0600000000000016f213017d060000000000008d1714017e06000000000000ec2014017f06000000000000a43314018006000000000000bc4f14018106000000000000d58714018206000000000000919a1401830600000000000005c0140184060000000000005fc914018506000000000000f8f714018606000000000000a10a15018706000000000000fa1315018806000000000000561d15018906000000000000fa2f15018a06000000000000513915018b06000000000000aa4215018c06000000000000106815018d060000000000002f8415018e060000000000004ba015018f060000000000002cbc15019006000000000000ccce1501910600000000000019d81501920600000000000076e11501930600000000000033101601940600000000000066481601950600000000000099801601" + }, + "name": "Polkadot", + "properties": { + "ss58Format": 0, + "tokenDecimals": 10, + "tokenSymbol": "DOT" + }, + "protocolId": "dot", + "telemetryEndpoints": [ + [ + "/dns/telemetry.polkadot.io/tcp/443/x-parity-wss/%2Fsubmit%2F", + 0 + ] + ] +} \ No newline at end of file diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 9b5ef68298..12bd3ac0a3 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -16,6 +16,11 @@ description = "Command line utilities for working with subxt codegen" name = "subxt" path = "src/main.rs" +[features] +# Compute the state root hash from the genesis entry. +# Enable this to create a smaller chain spec file. +chain-spec-pruning = ["smoldot"] + [dependencies] subxt-codegen = { workspace = true, features = ["fetch-metadata"] } subxt-metadata = { workspace = true } @@ -32,3 +37,5 @@ scale-value = { workspace = true } syn = { workspace = true } jsonrpsee = { workspace = true, features = ["async-client", "client-ws-transport-native-tls", "http-client"] } tokio = { workspace = true, features = ["rt-multi-thread"] } +thiserror = { workspace = true } +smoldot = { workspace = true, optional = true} diff --git a/cli/src/commands/chain_spec/fetch.rs b/cli/src/commands/chain_spec/fetch.rs new file mode 100644 index 0000000000..ca3efc113e --- /dev/null +++ b/cli/src/commands/chain_spec/fetch.rs @@ -0,0 +1,63 @@ +// Copyright 2019-2023 Parity Technologies (UK) Ltd. +// This file is dual-licensed as Apache-2.0 or GPL-3.0. +// see LICENSE for license details. + +use jsonrpsee::{ + async_client::ClientBuilder, + client_transport::ws::WsTransportClientBuilder, + core::{client::ClientT, Error}, + http_client::HttpClientBuilder, +}; +use std::time::Duration; +use subxt_codegen::fetch_metadata::Url; + +/// Returns the node's chainSpec from the provided URL. +pub async fn fetch_chain_spec(url: Url) -> Result { + async fn fetch_ws(url: Url) -> Result { + let (sender, receiver) = WsTransportClientBuilder::default() + .build(url) + .await + .map_err(|e| Error::Transport(e.into()))?; + + let client = ClientBuilder::default() + .request_timeout(Duration::from_secs(180)) + .max_buffer_capacity_per_subscription(4096) + .build_with_tokio(sender, receiver); + + inner_fetch(client).await + } + + async fn fetch_http(url: Url) -> Result { + let client = HttpClientBuilder::default() + .request_timeout(Duration::from_secs(180)) + .build(url)?; + + inner_fetch(client).await + } + + async fn inner_fetch(client: impl ClientT) -> Result { + client + .request("sync_state_genSyncSpec", jsonrpsee::rpc_params![true]) + .await + } + + let spec = match url.scheme() { + "http" | "https" => fetch_http(url).await.map_err(FetchSpecError::RequestError), + "ws" | "wss" => fetch_ws(url).await.map_err(FetchSpecError::RequestError), + invalid_scheme => Err(FetchSpecError::InvalidScheme(invalid_scheme.to_owned())), + }?; + + Ok(spec) +} + +/// Error attempting to fetch chainSpec. +#[derive(Debug, thiserror::Error)] +#[non_exhaustive] +pub enum FetchSpecError { + /// JSON-RPC error fetching metadata. + #[error("Request error: {0}")] + RequestError(#[from] jsonrpsee::core::Error), + /// URL scheme is not http, https, ws or wss. + #[error("'{0}' not supported, supported URI schemes are http, https, ws or wss.")] + InvalidScheme(String), +} diff --git a/cli/src/commands/chain_spec/mod.rs b/cli/src/commands/chain_spec/mod.rs new file mode 100644 index 0000000000..f0d2928acc --- /dev/null +++ b/cli/src/commands/chain_spec/mod.rs @@ -0,0 +1,131 @@ +// Copyright 2019-2023 Parity Technologies (UK) Ltd. +// This file is dual-licensed as Apache-2.0 or GPL-3.0. +// see LICENSE for license details. + +use clap::Parser as ClapParser; +#[cfg(feature = "chain-spec-pruning")] +use serde_json::Value; +use std::{io::Write, path::PathBuf}; +use subxt_codegen::fetch_metadata::Url; + +mod fetch; + +/// Download chainSpec from a substrate node. +#[derive(Debug, ClapParser)] +pub struct Opts { + /// The url of the substrate node to query for metadata for codegen. + #[clap(long)] + url: Url, + /// Write the output of the command to the provided file path. + #[clap(long, short, value_parser)] + output_file: Option, + /// Replaced the genesis raw entry with a stateRootHash to optimize + /// the spec size and avoid the need to calculate the genesis storage. + /// + /// This option is enabled with the `chain-spec-pruning` feature. + /// + /// Defaults to `false`. + #[cfg(feature = "chain-spec-pruning")] + #[clap(long)] + state_root_hash: bool, + /// Remove the `codeSubstitutes` entry from the chain spec. + /// This is useful when wanting to store a smaller chain spec. + /// At this moment, the light client does not utilize this object. + /// + /// Defaults to `false`. + #[clap(long)] + remove_substitutes: bool, +} + +/// Error attempting to fetch chainSpec. +#[derive(Debug, thiserror::Error)] +#[non_exhaustive] +pub enum ChainSpecError { + /// Failed to fetch the chain spec. + #[error("Failed to fetch the chain spec: {0}")] + FetchError(#[from] fetch::FetchSpecError), + + #[cfg(feature = "chain-spec-pruning")] + /// The provided chain spec is invalid. + #[error("Error while parsing the chain spec: {0})")] + ParseError(String), + + #[cfg(feature = "chain-spec-pruning")] + /// Cannot compute the state root hash. + #[error("Error computing state root hash: {0})")] + ComputeError(String), + + /// Other error. + #[error("Other: {0})")] + Other(String), +} + +#[cfg(feature = "chain-spec-pruning")] +fn compute_state_root_hash(spec: &Value) -> Result<[u8; 32], ChainSpecError> { + let chain_spec = smoldot::chain_spec::ChainSpec::from_json_bytes(spec.to_string().as_bytes()) + .map_err(|err| ChainSpecError::ParseError(err.to_string()))?; + + let genesis_chain_information = chain_spec.to_chain_information().map(|(ci, _)| ci); + + let state_root = match genesis_chain_information { + Ok(genesis_chain_information) => { + let header = genesis_chain_information.as_ref().finalized_block_header; + *header.state_root + } + // From the smoldot code this error is encountered when the genesis already contains the + // state root hash entry instead of the raw entry. + Err(smoldot::chain_spec::FromGenesisStorageError::UnknownStorageItems) => *chain_spec + .genesis_storage() + .into_trie_root_hash() + .ok_or_else(|| { + ChainSpecError::ParseError( + "The chain spec does not contain the proper shape for the genesis.raw entry" + .to_string(), + ) + })?, + Err(err) => return Err(ChainSpecError::ComputeError(err.to_string())), + }; + + Ok(state_root) +} + +pub async fn run(opts: Opts, output: &mut impl Write) -> color_eyre::Result<()> { + let url = opts.url; + + let mut spec = fetch::fetch_chain_spec(url).await?; + + let mut output: Box = match opts.output_file { + Some(path) => Box::new(std::fs::File::create(path)?), + None => Box::new(output), + }; + + #[cfg(feature = "chain-spec-pruning")] + if opts.state_root_hash { + let state_root_hash = compute_state_root_hash(&spec)?; + let state_root_hash = format!("0x{}", hex::encode(state_root_hash)); + + if let Some(genesis) = spec.get_mut("genesis") { + let object = genesis.as_object_mut().ok_or_else(|| { + ChainSpecError::Other("The genesis entry must be an object".to_string()) + })?; + + object.remove("raw").ok_or_else(|| { + ChainSpecError::Other("The genesis entry must contain a raw entry".to_string()) + })?; + + object.insert("stateRootHash".to_string(), Value::String(state_root_hash)); + } + } + + if opts.remove_substitutes { + let object = spec + .as_object_mut() + .ok_or_else(|| ChainSpecError::Other("The chain spec must be an object".to_string()))?; + + object.remove("codeSubstitutes"); + } + + let json = serde_json::to_string_pretty(&spec)?; + write!(output, "{json}")?; + Ok(()) +} diff --git a/cli/src/commands/mod.rs b/cli/src/commands/mod.rs index 569c93bcb0..5656570c62 100644 --- a/cli/src/commands/mod.rs +++ b/cli/src/commands/mod.rs @@ -2,6 +2,7 @@ // This file is dual-licensed as Apache-2.0 or GPL-3.0. // see LICENSE for license details. +pub mod chain_spec; pub mod codegen; pub mod compatibility; pub mod diff; diff --git a/cli/src/main.rs b/cli/src/main.rs index a2c74a74f1..8bbae02cc8 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -18,6 +18,7 @@ enum Command { Diff(commands::diff::Opts), Version(commands::version::Opts), Explore(commands::explore::Opts), + ChainSpec(commands::chain_spec::Opts), } #[tokio::main] @@ -32,5 +33,6 @@ async fn main() -> color_eyre::Result<()> { Command::Diff(opts) => commands::diff::run(opts, &mut output).await, Command::Version(opts) => commands::version::run(opts, &mut output), Command::Explore(opts) => commands::explore::run(opts, &mut output).await, + Command::ChainSpec(opts) => commands::chain_spec::run(opts, &mut output).await, } } diff --git a/scripts/artifacts.sh b/scripts/artifacts.sh index 9324fccd7b..f201e7cf81 100755 --- a/scripts/artifacts.sh +++ b/scripts/artifacts.sh @@ -21,3 +21,6 @@ cargo run --bin subxt metadata --file artifacts/polkadot_metadata_full.scale --p cargo run --bin subxt metadata --file artifacts/polkadot_metadata_full.scale --pallets "" > artifacts/polkadot_metadata_tiny.scale # generate a metadata file that only contains some custom metadata cargo run --bin generate-custom-metadata > artifacts/metadata_with_custom_values.scale + +# Generate the polkadot chain spec. +cargo run --features chain-spec-pruning --bin subxt chain-spec --url wss://rpc.polkadot.io:443 --output-file artifacts/demo_chain_specs/polkadot.json --state-root-hash --remove-substitutes From 58b8fee6c29c29e0b7072f6a743e2431cfa2c101 Mon Sep 17 00:00:00 2001 From: Tadeo hepperle Date: Thu, 30 Nov 2023 16:56:49 +0100 Subject: [PATCH 15/30] remove comments and unused args --- cli/src/commands/codegen.rs | 4 ---- codegen/src/api/calls.rs | 1 - codegen/src/api/events.rs | 9 ++------- codegen/src/api/mod.rs | 22 ---------------------- codegen/src/api/runtime_apis.rs | 1 - 5 files changed, 2 insertions(+), 35 deletions(-) diff --git a/cli/src/commands/codegen.rs b/cli/src/commands/codegen.rs index 57805e3204..f2b16b2048 100644 --- a/cli/src/commands/codegen.rs +++ b/cli/src/commands/codegen.rs @@ -203,10 +203,6 @@ fn codegen( .map_err(|e| eyre!("Cannot decode the provided metadata: {e}"))?; let code = codegen .generate(metadata) - .map_err(|e| { - dbg!(&e); - e - }) .map_err(|e| eyre!("Cannot generate code: {e}"))?; writeln!(output, "{code}")?; diff --git a/codegen/src/api/calls.rs b/codegen/src/api/calls.rs index c7f735af94..1ed633790b 100644 --- a/codegen/src/api/calls.rs +++ b/codegen/src/api/calls.rs @@ -33,7 +33,6 @@ pub fn generate_calls( call_ty, |name| name.to_upper_camel_case().into(), "Call", - crate_path, )?; let (call_structs, call_fns): (Vec<_>, Vec<_>) = struct_defs .into_iter() diff --git a/codegen/src/api/events.rs b/codegen/src/api/events.rs index d89ca6182c..536c80b5c7 100644 --- a/codegen/src/api/events.rs +++ b/codegen/src/api/events.rs @@ -48,13 +48,8 @@ pub fn generate_events( return Ok(quote!()); }; - let struct_defs = super::generate_structs_from_variants( - type_gen, - event_ty, - |name| name.into(), - "Event", - crate_path, - )?; + let struct_defs = + super::generate_structs_from_variants(type_gen, event_ty, |name| name.into(), "Event")?; let event_structs = struct_defs.into_iter().map(|(variant_name, composite)| { let pallet_name = pallet.name(); diff --git a/codegen/src/api/mod.rs b/codegen/src/api/mod.rs index 54b0a8cee4..e79df8057a 100644 --- a/codegen/src/api/mod.rs +++ b/codegen/src/api/mod.rs @@ -207,7 +207,6 @@ impl RuntimeGenerator { &type_gen, types_mod_ident, &crate_path, - should_gen_docs, )?; // Fetch the paths of the outer enums. @@ -327,7 +326,6 @@ pub fn generate_structs_from_variants( type_id: u32, variant_to_struct_name: F, error_message_type_name: &str, - _crate_path: &syn::Path, ) -> Result, CodegenError> where F: Fn(&str) -> std::borrow::Cow, @@ -345,32 +343,12 @@ where let mut type_params = TypeParameters::from_scale_info(&[]); let composite_ir_kind = type_gen.create_composite_ir_kind(&var.fields, &mut type_params)?; - // let fields = CompositeDefFields::from_scale_info_fields( - // struct_name.as_ref(), - // &var.fields, - // &[], - // type_gen, - // )?; - let struct_name = variant_to_struct_name(&var.name); let composite_ir = CompositeIR::new( syn::parse_str(&struct_name).expect("enum variant name is valid ident"), composite_ir_kind, type_gen.docs_from_scale_info(&var.docs), ); - - // let docs = should_gen_docs.then_some(&*var.docs).unwrap_or_default(); - // let struct_def = CompositeDef::struct_def( - // &ty, - // struct_name.as_ref(), - // Default::default(), - // fields, - // Some(parse_quote!(pub)), - // type_gen, - // docs, - // crate_path, - // )?; - Ok((var.name.to_string(), composite_ir)) }) .collect() diff --git a/codegen/src/api/runtime_apis.rs b/codegen/src/api/runtime_apis.rs index 9cd5c62a01..f349ffe574 100644 --- a/codegen/src/api/runtime_apis.rs +++ b/codegen/src/api/runtime_apis.rs @@ -135,7 +135,6 @@ pub fn generate_runtime_apis( type_gen: &TypeGenerator, types_mod_ident: &syn::Ident, crate_path: &syn::Path, - _should_gen_docs: bool, ) -> Result { let runtime_fns: Vec<_> = metadata .runtime_api_traits() From 0c7d3734f9c4d52f39f03f2e81dcbe1d74abe65a Mon Sep 17 00:00:00 2001 From: Tadeo Hepperle <62739623+tadeohepperle@users.noreply.github.com> Date: Thu, 30 Nov 2023 14:54:41 +0100 Subject: [PATCH 16/30] Update substrate- and signer-related dependencies (#1297) * update crypto dependencies, adjust keypair * add scale_info::TypeInfo derive in some places * add multi signature derive --- Cargo.lock | 421 ++++++++++++++++++++--------- Cargo.toml | 24 +- signer/src/ecdsa.rs | 8 +- subxt/src/utils/account_id.rs | 1 + subxt/src/utils/era.rs | 1 + subxt/src/utils/multi_address.rs | 1 + subxt/src/utils/multi_signature.rs | 2 +- 7 files changed, 321 insertions(+), 137 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e0e3b31be9..337eca4cf8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -159,11 +159,140 @@ version = "1.0.75" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a4668cab20f66d8d020e1fbc0ebe47217433c1b6c8f2040faf858554e394ace6" +[[package]] +name = "ark-bls12-377" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fb00293ba84f51ce3bd026bd0de55899c4e68f0a39a5728cebae3a73ffdc0a4f" +dependencies = [ + "ark-ec", + "ark-ff", + "ark-std", +] + +[[package]] +name = "ark-bls12-381" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c775f0d12169cba7aae4caeb547bb6a50781c7449a8aa53793827c9ec4abf488" +dependencies = [ + "ark-ec", + "ark-ff", + "ark-serialize", + "ark-std", +] + +[[package]] +name = "ark-ec" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "defd9a439d56ac24968cca0571f598a61bc8c55f71d50a89cda591cb750670ba" +dependencies = [ + "ark-ff", + "ark-poly", + "ark-serialize", + "ark-std", + "derivative", + "hashbrown 0.13.2", + "itertools 0.10.5", + "num-traits", + "zeroize", +] + +[[package]] +name = "ark-ff" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec847af850f44ad29048935519032c33da8aa03340876d351dfab5660d2966ba" +dependencies = [ + "ark-ff-asm", + "ark-ff-macros", + "ark-serialize", + "ark-std", + "derivative", + "digest 0.10.7", + "itertools 0.10.5", + "num-bigint", + "num-traits", + "paste", + "rustc_version", + "zeroize", +] + +[[package]] +name = "ark-ff-asm" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ed4aa4fe255d0bc6d79373f7e31d2ea147bcf486cba1be5ba7ea85abdb92348" +dependencies = [ + "quote", + "syn 1.0.109", +] + +[[package]] +name = "ark-ff-macros" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7abe79b0e4288889c4574159ab790824d0033b9fdcb2a112a3182fac2e514565" +dependencies = [ + "num-bigint", + "num-traits", + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "ark-poly" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d320bfc44ee185d899ccbadfa8bc31aab923ce1558716e1997a1e74057fe86bf" +dependencies = [ + "ark-ff", + "ark-serialize", + "ark-std", + "derivative", + "hashbrown 0.13.2", +] + +[[package]] +name = "ark-serialize" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "adb7b85a02b83d2f22f89bd5cac66c9c89474240cb6207cb1efc16d098e822a5" +dependencies = [ + "ark-serialize-derive", + "ark-std", + "digest 0.10.7", + "num-bigint", +] + +[[package]] +name = "ark-serialize-derive" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae3281bc6d0fd7e549af32b52511e1302185bd688fd3359fa36423346ff682ea" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "ark-std" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94893f1e0c6eeab764ade8dc4c0db24caf4fe7cbbaafc0eba0a9030f447b5185" +dependencies = [ + "num-traits", + "rand 0.8.5", +] + [[package]] name = "array-bytes" -version = "4.2.0" +version = "6.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f52f63c5c1316a16a4b35eaac8b76a98248961a533f061684cb2a7cb0eafb6c6" +checksum = "de17a919934ad8c5cc99a1a74de4e2dab95d6121a8f27f94755ff525b630382c" [[package]] name = "arrayref" @@ -432,6 +561,12 @@ version = "0.21.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "35636a1494ede3b646cc98f74f8e62c773a38a659ebc777a2cf26b9b74171df9" +[[package]] +name = "base64ct" +version = "1.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c3c1a368f70d6cf7302d78f8f7093da241fb8e8807c05cc9e51a125895a6d5b" + [[package]] name = "basic-toml" version = "0.1.7" @@ -466,6 +601,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "93f2635620bf0b9d4576eb7bb9a38a55df78bd1205d26fa994b25911a69f212f" dependencies = [ "bitcoin_hashes", + "rand 0.8.5", + "rand_core 0.6.4", "serde", "unicode-normalization", ] @@ -597,12 +734,6 @@ dependencies = [ "serde", ] -[[package]] -name = "bs58" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "771fe0050b883fcc3ea2359b1a96bcfbc090b7116eae7c3c512c7a083fdf23d3" - [[package]] name = "bs58" version = "0.5.0" @@ -835,6 +966,12 @@ dependencies = [ "crossbeam-utils", ] +[[package]] +name = "const-oid" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "28c122c3980598d243d63d9a704629a2d748d101f278052ff068be5a4423ab6f" + [[package]] name = "constant_time_eq" version = "0.1.5" @@ -847,6 +984,12 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f7144d30dcf0fafbce74250a3963025d8d52177934239851c917d29f1df280c2" +[[package]] +name = "constcat" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd7e35aee659887cbfb97aaf227ac12cad1a9d7c71e55ff3376839ed4e282d08" + [[package]] name = "convert_case" version = "0.4.0" @@ -1012,9 +1155,9 @@ dependencies = [ [[package]] name = "crypto-mac" -version = "0.11.1" +version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1d1a86f49236c215f271d40892d5fc950490551400b02ef360692c29815c714" +checksum = "25fab6889090c8133f3deb8f73ba3c65a7f456f66436fc012a1b1e272b1e103e" dependencies = [ "generic-array 0.14.7", "subtle", @@ -1157,6 +1300,16 @@ dependencies = [ "syn 2.0.39", ] +[[package]] +name = "der" +version = "0.7.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fffa369a668c8af7dbf8b5e56c9f744fbd399949ed171606040001947de40b1c" +dependencies = [ + "const-oid", + "zeroize", +] + [[package]] name = "derivative" version = "2.2.0" @@ -1243,33 +1396,27 @@ version = "1.0.16" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "545b22097d44f8a9581187cdf93de7a71e4722bf51200cfaba810865b49a495d" -[[package]] -name = "ed25519" -version = "1.5.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91cff35c70bba8a626e3185d8cd48cc11b5437e1a5bcd15b9b5fa3c64b6dfee7" -dependencies = [ - "signature 1.6.4", -] - [[package]] name = "ed25519" version = "2.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "115531babc129696a58c64a4fef0a8bf9e9698629fb97e9e40767d235cfbcd53" dependencies = [ - "signature 2.2.0", + "pkcs8", + "signature", ] [[package]] name = "ed25519-dalek" -version = "1.0.1" +version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c762bae6dcaf24c4c84667b8579785430908723d5c889f469d76a41d59cc7a9d" +checksum = "1f628eaec48bfd21b865dc2950cfa014450c01d2fa2b69a86c2fd5844ec523c0" dependencies = [ - "curve25519-dalek 3.2.0", - "ed25519 1.5.3", - "sha2 0.9.9", + "curve25519-dalek 4.1.1", + "ed25519", + "serde", + "sha2 0.10.8", + "subtle", "zeroize", ] @@ -1294,8 +1441,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7d9ce6874da5d4415896cd45ffbc4d1cfc0c4f9c079427bd870742c30f2f65a9" dependencies = [ "curve25519-dalek 4.1.1", - "ed25519 2.2.3", - "hashbrown 0.14.3", + "ed25519", + "hashbrown 0.14.1", "hex", "rand_core 0.6.4", "sha2 0.10.8", @@ -1836,7 +1983,7 @@ version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2a2a2320eb7ec0ebe8da8f744d7812d9fc4cb4d09344ac01898dbcb6a20ae69b" dependencies = [ - "crypto-mac 0.11.1", + "crypto-mac 0.11.0", "digest 0.9.0", ] @@ -2697,16 +2844,7 @@ version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d95f5254224e617595d2cc3cc73ff0a5eaf2637519e25f03388154e9378b6ffa" dependencies = [ - "crypto-mac 0.11.1", -] - -[[package]] -name = "pbkdf2" -version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "83a0692ec44e4cf1ef28ca317f14f8f07da2d95ec3fa01f86e4467b725e60917" -dependencies = [ - "digest 0.10.7", + "crypto-mac 0.11.0", ] [[package]] @@ -2767,6 +2905,16 @@ dependencies = [ "futures-io", ] +[[package]] +name = "pkcs8" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f950b2377845cebe5cf8b5165cb3cc1a5e0fa5cfa3e1f7f55707d8fd82e0a7b7" +dependencies = [ + "der", + "spki", +] + [[package]] name = "platforms" version = "3.2.0" @@ -3424,12 +3572,29 @@ dependencies = [ "curve25519-dalek-ng", "merlin 3.0.0", "rand_core 0.6.4", - "serde_bytes", "sha2 0.9.9", "subtle-ng", "zeroize", ] +[[package]] +name = "schnorrkel" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da18ffd9f2f5d01bc0b3050b37ce7728665f926b4dd1157fe3221b05737d924f" +dependencies = [ + "arrayref", + "arrayvec 0.7.4", + "curve25519-dalek 4.1.1", + "merlin 3.0.0", + "rand 0.8.5", + "rand_core 0.6.4", + "serde_bytes", + "sha2 0.10.8", + "subtle", + "zeroize", +] + [[package]] name = "scopeguard" version = "1.2.0" @@ -3457,11 +3622,11 @@ dependencies = [ [[package]] name = "secp256k1" -version = "0.27.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25996b82292a7a57ed3508f052cfff8640d38d32018784acd714758b43da9c8f" +checksum = "2acea373acb8c21ecb5a23741452acd2593ed44ee3d343e72baaa143bc89d0d5" dependencies = [ - "secp256k1-sys 0.8.1", + "secp256k1-sys 0.9.0", ] [[package]] @@ -3475,9 +3640,9 @@ dependencies = [ [[package]] name = "secp256k1-sys" -version = "0.8.1" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "70a129b9e9efbfb223753b9163c4ab3b13cff7fd9c7f010fbac25ab4099fa07e" +checksum = "09e67c467c38fd24bd5499dc9a18183b31575c12ee549197e3e20d57aa4fe3b7" dependencies = [ "cc", ] @@ -3651,13 +3816,7 @@ dependencies = [ [[package]] name = "signature" -version = "1.6.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "74233d3b3b2f6d4b006dc19dee745e73e2a6bfb6f93607cd3b02bd5b00797d7c" - -[[package]] -name = "signature" -version = "2.2.0" +version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "77549399552de45a898a580c1b41d445bf730df867cc44e6c0233bbc4b8329de" @@ -3711,7 +3870,7 @@ dependencies = [ "base64 0.21.5", "bip39", "blake2-rfc", - "bs58 0.5.0", + "bs58", "chacha20", "crossbeam-queue", "derive_more", @@ -3826,9 +3985,9 @@ dependencies = [ [[package]] name = "sp-application-crypto" -version = "23.0.0" +version = "28.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "899492ea547816d5dfe9a5a2ecc32f65a7110805af6da3380aa4902371b31dc2" +checksum = "23030de8eae0272c705cf3e2ce0523a64708a6b53aa23f3cf9053ca63abd08d7" dependencies = [ "parity-scale-codec", "scale-info", @@ -3840,9 +3999,9 @@ dependencies = [ [[package]] name = "sp-arithmetic" -version = "16.0.0" +version = "21.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bb6020576e544c6824a51d651bc8df8e6ab67cd59f1c9ac09868bb81a5199ded" +checksum = "b9cf6e5c0c7c2e7be3a4a10af5316d2d40182915509a70f632a66c238a05c37b" dependencies = [ "integer-sqrt", "num-traits", @@ -3855,21 +4014,23 @@ dependencies = [ [[package]] name = "sp-core" -version = "21.0.0" +version = "26.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f18d9e2f67d8661f9729f35347069ac29d92758b59135176799db966947a7336" +checksum = "d0db34a19be2efa0398a9506a365392d93a85220856d55e0eb78165ad2e1bedc" dependencies = [ "array-bytes", + "bip39", "bitflags 1.3.2", "blake2", "bounded-collections", - "bs58 0.4.0", + "bs58", "dyn-clonable", "ed25519-zebra 3.1.0", "futures", "hash-db", "hash256-std-hasher", "impl-serde", + "itertools 0.10.5", "lazy_static", "libsecp256k1", "log", @@ -3894,30 +4055,30 @@ dependencies = [ "ss58-registry", "substrate-bip39", "thiserror", - "tiny-bip39", + "tracing", + "w3f-bls", "zeroize", ] [[package]] name = "sp-core-hashing" -version = "9.0.0" +version = "13.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2ee599a8399448e65197f9a6cee338ad192e9023e35e31f22382964c3c174c68" +checksum = "cb8524f01591ee58b46cd83c9dbc0fcffd2fd730dabec4f59326cd58a00f17e2" dependencies = [ "blake2b_simd", "byteorder", "digest 0.10.7", "sha2 0.10.8", "sha3", - "sp-std", "twox-hash", ] [[package]] name = "sp-debug-derive" -version = "8.0.0" +version = "12.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7f531814d2f16995144c74428830ccf7d94ff4a7749632b83ad8199b181140c" +checksum = "50535e1a5708d3ba5c1195b59ebefac61cc8679c2c24716b87a86e8b7ed2e4a1" dependencies = [ "proc-macro2", "quote", @@ -3926,9 +4087,9 @@ dependencies = [ [[package]] name = "sp-externalities" -version = "0.19.0" +version = "0.23.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a0f71c671e01a8ca60da925d43a1b351b69626e268b8837f8371e320cf1dd100" +checksum = "884d05160bc89d0943d1c9fb8006c3d44b80f37f8af607aeff8d4d9cc82e279a" dependencies = [ "environmental", "parity-scale-codec", @@ -3938,14 +4099,12 @@ dependencies = [ [[package]] name = "sp-io" -version = "23.0.0" +version = "28.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d597e35a9628fe7454b08965b2442e3ec0f264b0a90d41328e87422cec02e99" +checksum = "301c0ce94f80b324465a6f6173183aa07b26bd71d67f94a44de1fd11dea4a7cb" dependencies = [ "bytes", - "ed25519 1.5.3", "ed25519-dalek", - "futures", "libsecp256k1", "log", "parity-scale-codec", @@ -3965,9 +4124,9 @@ dependencies = [ [[package]] name = "sp-keyring" -version = "24.0.0" +version = "29.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4673405248580504a8bc4e09615ab25ccb182dfaccd27e000fda9dcb2ca1dab1" +checksum = "674ebf2c64039465e8d55d4d92cb079d2214932a4d101473e1fbded29e5488cc" dependencies = [ "lazy_static", "sp-core", @@ -3977,11 +4136,10 @@ dependencies = [ [[package]] name = "sp-keystore" -version = "0.27.0" +version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9be3cdd67cc1d9c1db17c5cbc4ec4924054a8437009d167f21f6590797e4aa45" +checksum = "1db18ab01b2684856904c973d2be7dbf9ab3607cf706a7bd6648812662e5e7c5" dependencies = [ - "futures", "parity-scale-codec", "parking_lot", "sp-core", @@ -3991,9 +4149,9 @@ dependencies = [ [[package]] name = "sp-panic-handler" -version = "8.0.0" +version = "12.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ebd2de46003fa8212426838ca71cd42ee36a26480ba9ffea983506ce03131033" +checksum = "b00e40857ed3e0187f145b037c733545c5633859f1bd1d1b09deb52805fa696a" dependencies = [ "backtrace", "lazy_static", @@ -4002,9 +4160,9 @@ dependencies = [ [[package]] name = "sp-runtime" -version = "24.0.0" +version = "29.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21c5bfc764a1a8259d7e8f7cfd22c84006275a512c958d3ff966c92151e134d5" +checksum = "082bae4a164b8b629ce9cee79ff3c6b20e66d11d8ef37398796567d616325da4" dependencies = [ "either", "hash256-std-hasher", @@ -4025,9 +4183,9 @@ dependencies = [ [[package]] name = "sp-runtime-interface" -version = "17.0.0" +version = "22.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e676128182f90015e916f806cba635c8141e341e7abbc45d25525472e1bbce8" +checksum = "695bba5d981a6fd3131b098d65f620601bd822501612bfb65897d4bb660762b1" dependencies = [ "bytes", "impl-trait-for-tuples", @@ -4044,9 +4202,9 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" -version = "11.0.0" +version = "15.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a5d5bd5566fe5633ec48dfa35ab152fd29f8a577c21971e1c6db9f28afb9bbb9" +checksum = "9b2afcbd1bd18d323371111b66b7ac2870bdc1c86c3d7b0dae67b112ca52b4d8" dependencies = [ "Inflector", "proc-macro-crate", @@ -4057,9 +4215,9 @@ dependencies = [ [[package]] name = "sp-state-machine" -version = "0.28.0" +version = "0.33.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ef45d31f9e7ac648f8899a0cd038a3608f8499028bff55b6c799702592325b6" +checksum = "df7c6680d9342c22c10d8272ebf9f0339b0e439b3e67b68f5627f9dfc6926a07" dependencies = [ "hash-db", "log", @@ -4074,19 +4232,20 @@ dependencies = [ "sp-trie", "thiserror", "tracing", + "trie-db", ] [[package]] name = "sp-std" -version = "8.0.0" +version = "12.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53458e3c57df53698b3401ec0934bea8e8cfce034816873c0b0abbd83d7bac0d" +checksum = "54c78c5a66682568cc7b153603c5d01a2cc8f5c221c7b1e921517a0eef18ae05" [[package]] name = "sp-storage" -version = "13.0.0" +version = "17.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94294be83f11d4958cfea89ed5798f0b6605f5defc3a996948848458abbcc18e" +checksum = "016f20812cc51bd479cc88d048c35d44cd3adde4accdb159d49d6050f2953595" dependencies = [ "impl-serde", "parity-scale-codec", @@ -4098,9 +4257,9 @@ dependencies = [ [[package]] name = "sp-tracing" -version = "10.0.0" +version = "14.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "357f7591980dd58305956d32f8f6646d0a8ea9ea0e7e868e46f53b68ddf00cec" +checksum = "0d727cb5265641ffbb7d4e42c18b63e29f6cfdbd240aae3bcf093c3d6eb29a19" dependencies = [ "parity-scale-codec", "sp-std", @@ -4111,9 +4270,9 @@ dependencies = [ [[package]] name = "sp-trie" -version = "22.0.0" +version = "27.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "48e4eeb7ef23f79eba8609db79ef9cef242f994f1f87a3c0387b4b5f177fda74" +checksum = "a9c4bf89a5bd74f696cd1f23d83bb6abe6bd0abad1f3c70d4b0d7ebec4098cfe" dependencies = [ "ahash 0.8.6", "hash-db", @@ -4123,6 +4282,7 @@ dependencies = [ "nohash-hasher", "parity-scale-codec", "parking_lot", + "rand 0.8.5", "scale-info", "schnellru", "sp-core", @@ -4135,9 +4295,9 @@ dependencies = [ [[package]] name = "sp-wasm-interface" -version = "14.0.0" +version = "18.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a19c122609ca5d8246be6386888596320d03c7bc880959eaa2c36bcd5acd6846" +checksum = "d5d85813d46a22484cdf5e5afddbbe85442dd1b4d84d67a8c7792f92f9f93607" dependencies = [ "anyhow", "impl-trait-for-tuples", @@ -4149,9 +4309,9 @@ dependencies = [ [[package]] name = "sp-weights" -version = "20.0.0" +version = "25.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "45d084c735544f70625b821c3acdbc7a2fc1893ca98b85f1942631284692c75b" +checksum = "1689f9594c2c4d09ede3d8a991a9eb900654e424fb00b62f2b370170af347acd" dependencies = [ "parity-scale-codec", "scale-info", @@ -4169,6 +4329,16 @@ version = "0.9.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" +[[package]] +name = "spki" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d91ed6c858b01f942cd56b37a94b3e0a1798290327d1236e4d9cf4eaca44d29d" +dependencies = [ + "base64ct", + "der", +] + [[package]] name = "ss58-registry" version = "1.44.0" @@ -4243,9 +4413,9 @@ version = "0.32.1" [[package]] name = "subtle" -version = "2.4.1" +version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6bdef32e8150c2a081110b42772ffe7d7c9032b606bc226c8260fd97e0976601" +checksum = "81cdd64d312baedb58e21336b31bc043b77e01cc99033ce76ef539f78e965ebc" [[package]] name = "subtle-ng" @@ -4400,8 +4570,8 @@ dependencies = [ "parity-scale-codec", "pbkdf2 0.12.2", "regex", - "schnorrkel 0.10.2", - "secp256k1 0.27.0", + "schnorrkel 0.11.3", + "secp256k1 0.28.0", "secrecy", "sha2 0.10.8", "sp-core", @@ -4526,25 +4696,6 @@ dependencies = [ "once_cell", ] -[[package]] -name = "tiny-bip39" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62cc94d358b5a1e84a5cb9109f559aa3c4d634d2b1b4de3d0fa4adc7c78e2861" -dependencies = [ - "anyhow", - "hmac 0.12.1", - "once_cell", - "pbkdf2 0.11.0", - "rand 0.8.5", - "rustc-hash", - "sha2 0.10.8", - "thiserror", - "unicode-normalization", - "wasm-bindgen", - "zeroize", -] - [[package]] name = "tinytemplate" version = "1.2.1" @@ -4791,9 +4942,9 @@ dependencies = [ [[package]] name = "trie-db" -version = "0.27.1" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "767abe6ffed88a1889671a102c2861ae742726f52e0a5a425b92c9fbfa7e9c85" +checksum = "ff28e0f815c2fea41ebddf148e008b077d2faddb026c9555b29696114d602642" dependencies = [ "hash-db", "hashbrown 0.13.2", @@ -4948,6 +5099,30 @@ version = "0.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" +[[package]] +name = "w3f-bls" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7335e4c132c28cc43caef6adb339789e599e39adbe78da0c4d547fad48cbc331" +dependencies = [ + "ark-bls12-377", + "ark-bls12-381", + "ark-ec", + "ark-ff", + "ark-serialize", + "ark-serialize-derive", + "arrayref", + "constcat", + "digest 0.10.7", + "rand 0.8.5", + "rand_chacha 0.3.1", + "rand_core 0.6.4", + "sha2 0.10.8", + "sha3", + "thiserror", + "zeroize", +] + [[package]] name = "wabt" version = "0.10.0" diff --git a/Cargo.toml b/Cargo.toml index 2740ca619a..289999fb0a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,7 +17,13 @@ members = [ # We exclude any crates that would depend on non mutually # exclusive feature flags and thus can't compile with the # workspace: -exclude = ["testing/wasm-rpc-tests", "testing/wasm-lightclient-tests", "signer/wasm-tests", "examples/wasm-example", "examples/parachain-example"] +exclude = [ + "testing/wasm-rpc-tests", + "testing/wasm-lightclient-tests", + "signer/wasm-tests", + "examples/wasm-example", + "examples/parachain-example" +] resolver = "2" [workspace.package] @@ -35,7 +41,7 @@ async-trait = "0.1.74" assert_matches = "1.5.0" base58 = { version = "0.2.0" } bitvec = { version = "1", default-features = false } -blake2 = { version = "0.10.4", default-features = false } +blake2 = { version = "0.10.6", default-features = false } clap = { version = "4.4.8", features = ["derive", "cargo"] } criterion = "0.4" codec = { package = "parity-scale-codec", version = "3.4.0", default-features = false } @@ -95,10 +101,10 @@ instant = { version = "0.1.12", default-features = false } tokio-util = "0.7.10" # Substrate crates: -sp-core = { version = "21.0.0", default-features = false } -sp-core-hashing = { version = "9.0.0", default-features = false } -sp-runtime = "24.0.0" -sp-keyring = "24.0.0" +sp-core = { version = "26.0.0", default-features = false } +sp-core-hashing = { version = "13.0.0", default-features = false } +sp-runtime = "29.0.0" +sp-keyring = "29.0.0" # Subxt workspace crates: subxt = { version = "0.32.1", path = "subxt", default-features = false } @@ -114,8 +120,8 @@ substrate-runner = { path = "testing/substrate-runner" } bip39 = "2.0.0" hmac = "0.12.1" pbkdf2 = { version = "0.12.2", default-features = false } -schnorrkel = "0.10.2" -secp256k1 = "0.27.0" +schnorrkel = "0.11.3" +secp256k1 = "0.28.0" secrecy = "0.8.0" -sha2 = "0.10.6" +sha2 = "0.10.8" zeroize = { version = "1", default-features = false } diff --git a/signer/src/ecdsa.rs b/signer/src/ecdsa.rs index e5b0900512..a76054abf1 100644 --- a/signer/src/ecdsa.rs +++ b/signer/src/ecdsa.rs @@ -38,7 +38,7 @@ impl AsRef<[u8]> for PublicKey { /// An ecdsa keypair implementation. #[derive(Debug, Clone)] -pub struct Keypair(pub secp256k1::KeyPair); +pub struct Keypair(pub secp256k1::Keypair); impl Keypair { /// Create an ecdsa keypair from a [`SecretUri`]. See the [`SecretUri`] docs for more. @@ -108,7 +108,7 @@ impl Keypair { /// This will only be secure if the seed is secure! pub fn from_seed(seed: Seed) -> Result { let secret = SecretKey::from_slice(&seed).map_err(|_| Error::InvalidSeed)?; - Ok(Self(secp256k1::KeyPair::from_secret_key( + Ok(Self(secp256k1::Keypair::from_secret_key( SECP256K1, &secret, ))) } @@ -159,7 +159,7 @@ impl Keypair { // From sp_core::ecdsa::sign: let message_hash = sp_core_hashing::blake2_256(message); // From sp_core::ecdsa::sign_prehashed: - let wrapped = Message::from_slice(&message_hash).expect("Message is 32 bytes; qed"); + let wrapped = Message::from_digest_slice(&message_hash).expect("Message is 32 bytes; qed"); let recsig: RecoverableSignature = SECP256K1.sign_ecdsa_recoverable(&wrapped, &self.0.secret_key()); // From sp_core::ecdsa's `impl From for Signature`: @@ -191,7 +191,7 @@ pub fn verify>(sig: &Signature, message: M, pubkey: &PublicKey) - return false; }; let message_hash = sp_core_hashing::blake2_256(message.as_ref()); - let wrapped = Message::from_slice(&message_hash).expect("Message is 32 bytes; qed"); + let wrapped = Message::from_digest_slice(&message_hash).expect("Message is 32 bytes; qed"); signature.verify(&wrapped, &public).is_ok() } diff --git a/subxt/src/utils/account_id.rs b/subxt/src/utils/account_id.rs index 73a3b9e105..faa3dbbd4d 100644 --- a/subxt/src/utils/account_id.rs +++ b/subxt/src/utils/account_id.rs @@ -23,6 +23,7 @@ use serde::{Deserialize, Serialize}; Debug, scale_encode::EncodeAsType, scale_decode::DecodeAsType, + scale_info::TypeInfo, )] pub struct AccountId32(pub [u8; 32]); diff --git a/subxt/src/utils/era.rs b/subxt/src/utils/era.rs index a01950724a..c98ebe58f6 100644 --- a/subxt/src/utils/era.rs +++ b/subxt/src/utils/era.rs @@ -18,6 +18,7 @@ use scale_encode::EncodeAsType; serde::Deserialize, DecodeAsType, EncodeAsType, + scale_info::TypeInfo, )] pub enum Era { /// The transaction is valid forever. The genesis hash must be present in the signed content. diff --git a/subxt/src/utils/multi_address.rs b/subxt/src/utils/multi_address.rs index 6e557db696..9b1e556fa9 100644 --- a/subxt/src/utils/multi_address.rs +++ b/subxt/src/utils/multi_address.rs @@ -22,6 +22,7 @@ use codec::{Decode, Encode}; Debug, scale_encode::EncodeAsType, scale_decode::DecodeAsType, + scale_info::TypeInfo, )] pub enum MultiAddress { /// It's an account ID (pubkey). diff --git a/subxt/src/utils/multi_signature.rs b/subxt/src/utils/multi_signature.rs index 94bdf028d3..4ed9ea4bd5 100644 --- a/subxt/src/utils/multi_signature.rs +++ b/subxt/src/utils/multi_signature.rs @@ -10,7 +10,7 @@ use codec::{Decode, Encode}; /// Signature container that can store known signature types. This is a simplified version of /// `sp_runtime::MultiSignature`. To obtain more functionality, convert this into that type. -#[derive(Clone, Eq, PartialEq, Ord, PartialOrd, Encode, Decode, Debug)] +#[derive(Clone, Eq, PartialEq, Ord, PartialOrd, Encode, Decode, Debug, scale_info::TypeInfo)] pub enum MultiSignature { /// An Ed25519 signature. Ed25519([u8; 64]), From 42643d84cea1f990880e1952231549e51e07aee1 Mon Sep 17 00:00:00 2001 From: Tadeo hepperle Date: Thu, 30 Nov 2023 17:06:28 +0100 Subject: [PATCH 17/30] fix lock file --- Cargo.lock | 65 ++++++++++++++++++++++++++++++++++++------------------ 1 file changed, 44 insertions(+), 21 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 337eca4cf8..69071f6dcf 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1008,9 +1008,9 @@ dependencies = [ [[package]] name = "core-foundation-sys" -version = "0.8.4" +version = "0.8.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e496a50fda8aacccc86d7529e2c1e0892dbd0f898a6b5645b5561b89c3210efa" +checksum = "06ea2b9bc92be3c2baa9334a323ebca2d6f074ff852cd1d7b11064035cd3868f" [[package]] name = "cpp_demangle" @@ -1442,7 +1442,7 @@ checksum = "7d9ce6874da5d4415896cd45ffbc4d1cfc0c4f9c079427bd870742c30f2f65a9" dependencies = [ "curve25519-dalek 4.1.1", "ed25519", - "hashbrown 0.14.1", + "hashbrown 0.14.3", "hex", "rand_core 0.6.4", "sha2 0.10.8", @@ -2778,9 +2778,9 @@ checksum = "c1b04fb49957986fdce4d6ee7a65027d55d4b6d2265e5848bbb507b58ccfdb6f" [[package]] name = "parity-scale-codec" -version = "3.6.5" +version = "3.6.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0dec8a8073036902368c2cdc0387e85ff9a37054d7e7c98e592145e0c92cd4fb" +checksum = "881331e34fa842a2fb61cc2db9643a8fedc615e47cfcc52597d1af0db9a7e8fe" dependencies = [ "arrayvec 0.7.4", "bitvec", @@ -2793,11 +2793,11 @@ dependencies = [ [[package]] name = "parity-scale-codec-derive" -version = "3.6.5" +version = "3.6.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "312270ee71e1cd70289dacf597cab7b207aa107d2f28191c2ae45b2ece18a260" +checksum = "be30eaf4b0a9fba5336683b38de57bb86d179a35862ba6bfcf57625d006bde5b" dependencies = [ - "proc-macro-crate", + "proc-macro-crate 2.0.0", "proc-macro2", "quote", "syn 1.0.109", @@ -3016,7 +3016,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f4c021e1093a56626774e81216a4ce732a735e5bad4868a03f3ed65ca0c3919" dependencies = [ "once_cell", - "toml_edit", + "toml_edit 0.19.15", +] + +[[package]] +name = "proc-macro-crate" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e8366a6159044a37876a2b9817124296703c586a5c92e2c53751fa06d8d43e8" +dependencies = [ + "toml_edit 0.20.7", ] [[package]] @@ -3242,9 +3251,9 @@ checksum = "c08c74e62047bb2de4ff487b251e4a92e24f48745648451635cec7d591162d9f" [[package]] name = "ring" -version = "0.17.5" +version = "0.17.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb0205304757e5d899b9c2e448b867ffd03ae7f988002e47cd24954391394d0b" +checksum = "684d5e6e18f669ccebf64a92236bb7db9a34f07be010e3627368182027180866" dependencies = [ "cc", "getrandom 0.2.11", @@ -3430,7 +3439,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d3475108a1b62c7efd1b5c65974f30109a598b2f45f23c9ae030acb9686966db" dependencies = [ "darling 0.14.4", - "proc-macro-crate", + "proc-macro-crate 1.3.1", "proc-macro2", "quote", "syn 1.0.109", @@ -3458,7 +3467,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "995491f110efdc6bea96d6a746140e32bfceb4ea47510750a5467295a4707a25" dependencies = [ "darling 0.14.4", - "proc-macro-crate", + "proc-macro-crate 1.3.1", "proc-macro2", "quote", "syn 1.0.109", @@ -3484,7 +3493,7 @@ version = "2.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "abf2c68b89cafb3b8d918dd07b42be0da66ff202cf1155c5739a4e0c1ea0dc19" dependencies = [ - "proc-macro-crate", + "proc-macro-crate 1.3.1", "proc-macro2", "quote", "syn 1.0.109", @@ -3493,7 +3502,7 @@ dependencies = [ [[package]] name = "scale-typegen" version = "0.0.1" -source = "git+https://github.com/paritytech/scale-typegen?branch=recursive-derives#f7fff3b133732e8a7c0fbd82385dc5452b3a0813" +source = "git+https://github.com/paritytech/scale-typegen?branch=recursive-derives#361fa5b6cb65904cdd7d6c85dfbd9e19aeae2e2e" dependencies = [ "proc-macro2", "quote", @@ -3816,9 +3825,12 @@ dependencies = [ [[package]] name = "signature" -version = "2.1.0" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "77549399552de45a898a580c1b41d445bf730df867cc44e6c0233bbc4b8329de" +dependencies = [ + "rand_core 0.6.4", +] [[package]] name = "siphasher" @@ -4207,7 +4219,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9b2afcbd1bd18d323371111b66b7ac2870bdc1c86c3d7b0dae67b112ca52b4d8" dependencies = [ "Inflector", - "proc-macro-crate", + "proc-macro-crate 1.3.1", "proc-macro2", "quote", "syn 2.0.39", @@ -4802,6 +4814,17 @@ dependencies = [ "winnow", ] +[[package]] +name = "toml_edit" +version = "0.20.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70f427fce4d84c72b5b732388bf4a9f4531b53f74e2887e3ecb2481f68f66d81" +dependencies = [ + "indexmap 2.1.0", + "toml_datetime", + "winnow", +] + [[package]] name = "tower" version = "0.4.13" @@ -5729,18 +5752,18 @@ checksum = "ff4524214bc4629eba08d78ceb1d6507070cc0bcbbed23af74e19e6e924a24cf" [[package]] name = "zerocopy" -version = "0.7.26" +version = "0.7.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e97e415490559a91254a2979b4829267a57d2fcd741a98eee8b722fb57289aa0" +checksum = "f43de342578a3a14a9314a2dab1942cbfcbe5686e1f91acdc513058063eafe18" dependencies = [ "zerocopy-derive", ] [[package]] name = "zerocopy-derive" -version = "0.7.26" +version = "0.7.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd7e48ccf166952882ca8bd778a43502c64f33bf94c12ebe2a7f08e5a0f6689f" +checksum = "e1012d89e3acb79fad7a799ce96866cfb8098b74638465ea1b1533d35900ca90" dependencies = [ "proc-macro2", "quote", From bbda16aefdd9e82561f66a6658a3a9c74419c08a Mon Sep 17 00:00:00 2001 From: Tadeo hepperle Date: Thu, 30 Nov 2023 17:08:18 +0100 Subject: [PATCH 18/30] fix lock file again :| --- Cargo.lock | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 2012ab854b..69071f6dcf 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -567,12 +567,6 @@ version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8c3c1a368f70d6cf7302d78f8f7093da241fb8e8807c05cc9e51a125895a6d5b" -[[package]] -name = "base64ct" -version = "1.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c3c1a368f70d6cf7302d78f8f7093da241fb8e8807c05cc9e51a125895a6d5b" - [[package]] name = "basic-toml" version = "0.1.7" From 42595725f9e0a6e8e4aad0ca13532bf5b3aedb6d Mon Sep 17 00:00:00 2001 From: Tadeo hepperle Date: Fri, 8 Dec 2023 09:38:22 +0100 Subject: [PATCH 19/30] adjust to new interface in scale-typegen --- Cargo.lock | 3 +-- Cargo.toml | 10 ++-------- codegen/src/api/runtime_apis.rs | 2 +- codegen/src/lib.rs | 14 ++++++++------ 4 files changed, 12 insertions(+), 17 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 69071f6dcf..835e893c12 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3502,12 +3502,11 @@ dependencies = [ [[package]] name = "scale-typegen" version = "0.0.1" -source = "git+https://github.com/paritytech/scale-typegen?branch=recursive-derives#361fa5b6cb65904cdd7d6c85dfbd9e19aeae2e2e" +source = "git+https://github.com/paritytech/scale-typegen?branch=tadeohepperle/validate-codegen#1233641f15851087978518572bc3e1b05d19a047" dependencies = [ "proc-macro2", "quote", "scale-info", - "smallvec", "syn 2.0.39", "thiserror", ] diff --git a/Cargo.toml b/Cargo.toml index 289999fb0a..9bd6e28a23 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,13 +17,7 @@ members = [ # We exclude any crates that would depend on non mutually # exclusive feature flags and thus can't compile with the # workspace: -exclude = [ - "testing/wasm-rpc-tests", - "testing/wasm-lightclient-tests", - "signer/wasm-tests", - "examples/wasm-example", - "examples/parachain-example" -] +exclude = ["testing/wasm-rpc-tests", "testing/wasm-lightclient-tests", "signer/wasm-tests", "examples/wasm-example", "examples/parachain-example"] resolver = "2" [workspace.package] @@ -80,7 +74,7 @@ trybuild = "1.0.85" wabt = "0.10.0" wasm-bindgen-test = "0.3.24" which = "4.4.2" -scale-typegen = { git = "https://github.com/paritytech/scale-typegen", branch = "recursive-derives" } +scale-typegen = { git = "https://github.com/paritytech/scale-typegen", branch = "tadeohepperle/validate-codegen" } # Light client support: smoldot = { version = "0.12.0", default-features = false } diff --git a/codegen/src/api/runtime_apis.rs b/codegen/src/api/runtime_apis.rs index f349ffe574..8865a5a689 100644 --- a/codegen/src/api/runtime_apis.rs +++ b/codegen/src/api/runtime_apis.rs @@ -59,7 +59,7 @@ fn generate_runtime_api( // From the method metadata generate a structure that holds // all parameter types. This structure is used with metadata // to encode parameters to the call via `encode_as_fields_to`. - let derives = type_gen.default_derives(); + let derives = type_gen.settings().derives.default_derives(); let struct_name = format_ident!("{}", method.name().to_upper_camel_case()); let struct_params = params.clone(); let struct_input = quote!( diff --git a/codegen/src/lib.rs b/codegen/src/lib.rs index 43fb8ccdc3..4ade3a1298 100644 --- a/codegen/src/lib.rs +++ b/codegen/src/lib.rs @@ -239,19 +239,20 @@ impl CodegenBuilder { DerivesRegistry::new() }; - derives_registry.extend_for_all(self.extra_global_derives, self.extra_global_attributes); + derives_registry.add_derives_for_all(self.extra_global_derives); + derives_registry.add_attributes_for_all(self.extra_global_attributes); for (ty, derives) in self.derives_for_type { - derives_registry.extend_for_type(ty, derives, vec![], false); + derives_registry.add_derives_for(ty, derives, false); } for (ty, derives) in self.derives_for_type_recursive { - derives_registry.extend_for_type(ty, derives, vec![], true); + derives_registry.add_derives_for(ty, derives, true); } for (ty, attributes) in self.attributes_for_type { - derives_registry.extend_for_type(ty, vec![], attributes, false); + derives_registry.add_attributes_for(ty, attributes, false); } for (ty, attributes) in self.attributes_for_type_recursive { - derives_registry.extend_for_type(ty, vec![], attributes, true); + derives_registry.add_attributes_for(ty, attributes, true); } let mut type_substitutes: TypeSubstitutes = if self.use_default_substitutions { @@ -337,7 +338,8 @@ fn default_derives(crate_path: &syn::Path) -> DerivesRegistry { ]; let mut derives_registry = DerivesRegistry::new(); - derives_registry.extend_for_all(derives, attributes); + derives_registry.add_derives_for_all(derives); + derives_registry.add_attributes_for_all(attributes); derives_registry } From 14775abfbec5718394df08a14072d2224897cde0 Mon Sep 17 00:00:00 2001 From: Tadeo hepperle Date: Tue, 2 Jan 2024 10:31:46 +0100 Subject: [PATCH 20/30] use released scale typegen --- Cargo.lock | 5 +++-- Cargo.toml | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 835e893c12..38182db905 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3501,8 +3501,9 @@ dependencies = [ [[package]] name = "scale-typegen" -version = "0.0.1" -source = "git+https://github.com/paritytech/scale-typegen?branch=tadeohepperle/validate-codegen#1233641f15851087978518572bc3e1b05d19a047" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b0c99a8ba597db382b1245aa098732e95f35fd835070c61eef0583a1d1e7fcc8" dependencies = [ "proc-macro2", "quote", diff --git a/Cargo.toml b/Cargo.toml index 9bd6e28a23..63799f8e8e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -74,7 +74,8 @@ trybuild = "1.0.85" wabt = "0.10.0" wasm-bindgen-test = "0.3.24" which = "4.4.2" -scale-typegen = { git = "https://github.com/paritytech/scale-typegen", branch = "tadeohepperle/validate-codegen" } +scale-typegen-description = "0.1.0" +scale-typegen = "0.1.0" # Light client support: smoldot = { version = "0.12.0", default-features = false } From 69af6d143b8fc6edcbf85ae1fa0424d53141bf2f Mon Sep 17 00:00:00 2001 From: Tadeo hepperle Date: Tue, 2 Jan 2024 17:54:43 +0100 Subject: [PATCH 21/30] reintroduce type aliases --- codegen/src/api/calls.rs | 24 ++++++----- codegen/src/api/events.rs | 13 +++--- codegen/src/api/mod.rs | 87 ++++++++++++++++++++++++++++++++++++--- 3 files changed, 103 insertions(+), 21 deletions(-) diff --git a/codegen/src/api/calls.rs b/codegen/src/api/calls.rs index 1ed633790b..88feb6d08d 100644 --- a/codegen/src/api/calls.rs +++ b/codegen/src/api/calls.rs @@ -28,26 +28,27 @@ pub fn generate_calls( return Ok(quote!()); }; - let struct_defs = super::generate_structs_from_variants( + let variant_names_and_struct_defs = super::generate_structs_from_variants( type_gen, call_ty, |name| name.to_upper_camel_case().into(), "Call", )?; - let (call_structs, call_fns): (Vec<_>, Vec<_>) = struct_defs + let (call_structs, call_fns): (Vec<_>, Vec<_>) = variant_names_and_struct_defs .into_iter() - .map(|(variant_name, composite)| { - let (call_fn_args, call_args): (Vec<_>, Vec<_>) = match &composite.kind { + .map(|var| { + let (call_fn_args, call_args): (Vec<_>, Vec<_>) = match &var.composite.kind { CompositeIRKind::Named(named_fields) => named_fields .iter() .map(|(name, field)| { + // Note: fn_arg_type this is relative the type path of the type alias when prefixed with `types::`, e.g. `set_max_code_size::New` 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) + (quote!( #name: types::#fn_arg_type ), call_arg) }) .unzip(), CompositeIRKind::NoFields => Default::default(), @@ -57,23 +58,26 @@ pub fn generate_calls( }; let pallet_name = pallet.name(); - let call_name = &variant_name; - let struct_name = &composite.name; + let call_name = &var.variant_name; + let struct_name = &var.composite.name; let Some(call_hash) = pallet.call_hash(call_name) else { return Err(CodegenError::MissingCallMetadata( pallet_name.into(), call_name.to_string(), )); }; - let fn_name = format_ident!("{}", variant_name.to_snake_case()); + let fn_name = format_ident!("{}", var.variant_name.to_snake_case()); // Propagate the documentation just to `TransactionApi` methods, while // draining the documentation of inner call structures. - let docs = &composite.docs; + let docs = &var.composite.docs; // this converts the composite into a full struct type. No Type Parameters needed here. - let struct_def = type_gen.upcast_composite(&composite); + let struct_def = type_gen.upcast_composite(&var.composite); + let alias_mod = var.type_alias_mod; // The call structure's documentation was stripped above. let call_struct = quote! { + // #alias_mod + #struct_def impl #crate_path::blocks::StaticExtrinsic for #struct_name { diff --git a/codegen/src/api/events.rs b/codegen/src/api/events.rs index 536c80b5c7..c0f8255d4c 100644 --- a/codegen/src/api/events.rs +++ b/codegen/src/api/events.rs @@ -48,16 +48,17 @@ pub fn generate_events( return Ok(quote!()); }; - let struct_defs = + let variant_names_and_struct_defs = super::generate_structs_from_variants(type_gen, event_ty, |name| name.into(), "Event")?; - let event_structs = struct_defs.into_iter().map(|(variant_name, composite)| { + let event_structs = variant_names_and_struct_defs.into_iter().map(|var| { let pallet_name = pallet.name(); - let event_struct_name = &composite.name; - let event_name = variant_name; - - let struct_def = type_gen.upcast_composite(&composite); + let event_struct_name = &var.composite.name; + let event_name = var.variant_name; + let alias_mod = var.type_alias_mod; + let struct_def = type_gen.upcast_composite(&var.composite); quote! { + // #alias_mod #struct_def impl #crate_path::events::StaticEvent for #event_struct_name { diff --git a/codegen/src/api/mod.rs b/codegen/src/api/mod.rs index e79df8057a..a67cecea48 100644 --- a/codegen/src/api/mod.rs +++ b/codegen/src/api/mod.rs @@ -12,16 +12,18 @@ mod events; mod runtime_apis; mod storage; -use scale_typegen::typegen::ir::type_ir::CompositeIR; +use scale_typegen::typegen::ir::type_ir::{CompositeFieldIR, CompositeIR, CompositeIRKind}; use scale_typegen::typegen::type_params::TypeParameters; +use scale_typegen::typegen::type_path::{TypePath, TypePathType}; use scale_typegen::TypeGenerator; use subxt_metadata::Metadata; +use syn::{parse_quote, Ident}; use crate::error::CodegenError; use crate::subxt_type_gen_settings; use crate::{api::custom_values::generate_custom_values, ir}; -use heck::ToSnakeCase as _; +use heck::{ToSnakeCase as _, ToUpperCamelCase}; use proc_macro2::TokenStream as TokenStream2; use quote::{format_ident, quote}; @@ -326,7 +328,7 @@ pub fn generate_structs_from_variants( type_id: u32, variant_to_struct_name: F, error_message_type_name: &str, -) -> Result, CodegenError> +) -> Result, CodegenError> where F: Fn(&str) -> std::borrow::Cow, { @@ -344,12 +346,87 @@ where let composite_ir_kind = type_gen.create_composite_ir_kind(&var.fields, &mut type_params)?; let struct_name = variant_to_struct_name(&var.name); - let composite_ir = CompositeIR::new( + let mut composite = CompositeIR::new( syn::parse_str(&struct_name).expect("enum variant name is valid ident"), composite_ir_kind, type_gen.docs_from_scale_info(&var.docs), ); - Ok((var.name.to_string(), composite_ir)) + + let type_alias_mod = generate_type_alias_mod(&mut composite, type_gen); + Ok(StructFromVariant { + variant_name: var.name.to_string(), + composite, + type_alias_mod, + }) }) .collect() } + +pub struct StructFromVariant { + variant_name: String, + composite: CompositeIR, + type_alias_mod: TokenStream2, +} + +/// Modifies the composite, by replacing its types with references to the generated type alias module. +/// Returns the TokenStream of the type alias module. +/// +/// E.g a struct like this: +/// ```ignore +/// pub struct SetMaxCodeSize { +/// pub new: ::core::primitive::u32, +/// } +/// ``` +/// will be made into this: +/// ```ignore +/// pub struct SetMaxCodeSize { +/// pub new: set_max_code_size::New, +/// } +/// ``` +/// And the type alias module will look like this: +/// ```ignore +/// pub mod set_max_code_size { +/// use super::runtime_types; +/// pub type New = ::core::primitive::u32; +/// } +/// ``` +pub fn generate_type_alias_mod( + composite: &mut CompositeIR, + type_gen: &TypeGenerator, +) -> TokenStream2 { + let mut aliases: Vec = vec![]; + let alias_mod_name: Ident = syn::parse_str(&composite.name.to_string().to_snake_case()) + .expect("composite name in snake_case should be a valid identifier"); + + let mut modify_field_to_be_type_alias = |field: &mut CompositeFieldIR, alias_name: Ident| { + let type_path = &field.type_path; + aliases.push(quote!(pub type #alias_name = #type_path;)); + + let type_alias_path: syn::Path = parse_quote!(#alias_mod_name::#alias_name); + field.type_path = TypePath::from_syn_path(type_alias_path); + }; + + match &mut composite.kind { + CompositeIRKind::NoFields => { + return quote!(); // no types mod generated for unit structs. + } + CompositeIRKind::Named(named) => { + for (name, field) in named.iter_mut() { + let alias_name = format_ident!("{}", name.to_string().to_upper_camel_case()); + modify_field_to_be_type_alias(field, alias_name); + } + } + CompositeIRKind::Unnamed(unnamed) => { + for (i, field) in unnamed.iter_mut().enumerate() { + let alias_name = format_ident!("Field{}", i); + modify_field_to_be_type_alias(field, alias_name); + } + } + }; + + let types_mod_ident = type_gen.types_mod_ident(); + quote!(pub mod #alias_mod_name { + use super::#types_mod_ident; + #( #aliases )* + }) +} From f125b2b324632e09c53ebc17aba15a2bf2f7c088 Mon Sep 17 00:00:00 2001 From: Tadeo hepperle Date: Tue, 2 Jan 2024 18:01:34 +0100 Subject: [PATCH 22/30] introduce type aliases again using scale-typegen --- codegen/src/api/calls.rs | 3 +- codegen/src/api/events.rs | 4 +- codegen/src/api/mod.rs | 2 +- .../src/full_client/codegen/polkadot.rs | 6811 ++++++++++++----- 4 files changed, 4746 insertions(+), 2074 deletions(-) diff --git a/codegen/src/api/calls.rs b/codegen/src/api/calls.rs index 88feb6d08d..0db84b0e81 100644 --- a/codegen/src/api/calls.rs +++ b/codegen/src/api/calls.rs @@ -76,9 +76,8 @@ pub fn generate_calls( let alias_mod = var.type_alias_mod; // The call structure's documentation was stripped above. let call_struct = quote! { - // #alias_mod - #struct_def + #alias_mod impl #crate_path::blocks::StaticExtrinsic for #struct_name { const PALLET: &'static str = #pallet_name; diff --git a/codegen/src/api/events.rs b/codegen/src/api/events.rs index c0f8255d4c..1a20522e79 100644 --- a/codegen/src/api/events.rs +++ b/codegen/src/api/events.rs @@ -58,9 +58,9 @@ pub fn generate_events( let alias_mod = var.type_alias_mod; let struct_def = type_gen.upcast_composite(&var.composite); quote! { - // #alias_mod #struct_def - + #alias_mod + impl #crate_path::events::StaticEvent for #event_struct_name { const PALLET: &'static str = #pallet_name; const EVENT: &'static str = #event_name; diff --git a/codegen/src/api/mod.rs b/codegen/src/api/mod.rs index a67cecea48..120670af93 100644 --- a/codegen/src/api/mod.rs +++ b/codegen/src/api/mod.rs @@ -14,7 +14,7 @@ mod storage; use scale_typegen::typegen::ir::type_ir::{CompositeFieldIR, CompositeIR, CompositeIRKind}; use scale_typegen::typegen::type_params::TypeParameters; -use scale_typegen::typegen::type_path::{TypePath, TypePathType}; +use scale_typegen::typegen::type_path::{TypePath}; use scale_typegen::TypeGenerator; use subxt_metadata::Metadata; use syn::{parse_quote, Ident}; diff --git a/testing/integration-tests/src/full_client/codegen/polkadot.rs b/testing/integration-tests/src/full_client/codegen/polkadot.rs index 242b4ce84e..78eeab2e5a 100644 --- a/testing/integration-tests/src/full_client/codegen/polkadot.rs +++ b/testing/integration-tests/src/full_client/codegen/polkadot.rs @@ -3358,14 +3358,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::remark`]."] 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"; const CALL: &'static str = "remark"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -3377,7 +3380,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_heap_pages`]."] 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"; @@ -3395,7 +3402,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_code`]."] 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"; @@ -3413,7 +3424,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_code_without_checks`]."] 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"; @@ -3431,10 +3446,14 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_storage`]."] 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 +3471,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::kill_storage`]."] 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"; @@ -3470,8 +3493,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::kill_prefix`]."] 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"; @@ -3489,7 +3517,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::remark_with_event`]."] 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"; @@ -3501,7 +3533,7 @@ pub mod api { #[doc = "See [`Pallet::remark`]."] pub fn remark( &self, - remark: ::std::vec::Vec<::core::primitive::u8>, + remark: types::remark::Remark, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "System", @@ -3518,7 +3550,7 @@ pub mod api { #[doc = "See [`Pallet::set_heap_pages`]."] pub fn set_heap_pages( &self, - pages: ::core::primitive::u64, + pages: types::set_heap_pages::Pages, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "System", @@ -3535,7 +3567,7 @@ pub mod api { #[doc = "See [`Pallet::set_code`]."] pub fn set_code( &self, - code: ::std::vec::Vec<::core::primitive::u8>, + code: types::set_code::Code, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "System", @@ -3551,7 +3583,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: types::set_code_without_checks::Code, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "System", @@ -3568,10 +3600,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: types::set_storage::Items, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "System", @@ -3588,7 +3617,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: types::kill_storage::Keys, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "System", @@ -3605,8 +3634,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: types::kill_prefix::Prefix, + subkeys: types::kill_prefix::Subkeys, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "System", @@ -3623,7 +3652,7 @@ pub mod api { #[doc = "See [`Pallet::remark_with_event`]."] pub fn remark_with_event( &self, - remark: ::std::vec::Vec<::core::primitive::u8>, + remark: types::remark_with_event::Remark, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "System", @@ -3654,7 +3683,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"; @@ -3672,8 +3705,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"; @@ -3707,7 +3745,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"; @@ -3725,7 +3767,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"; @@ -3743,8 +3789,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"; @@ -4358,11 +4409,18 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::schedule`]."] 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::polkadot_runtime::RuntimeCall; } impl ::subxt::blocks::StaticExtrinsic for Schedule { const PALLET: &'static str = "Scheduler"; @@ -4380,8 +4438,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::cancel`]."] 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"; @@ -4399,12 +4462,20 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::schedule_named`]."] 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::polkadot_runtime::RuntimeCall; } impl ::subxt::blocks::StaticExtrinsic for ScheduleNamed { const PALLET: &'static str = "Scheduler"; @@ -4422,7 +4493,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::cancel_named`]."] 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"; @@ -4440,11 +4515,18 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::schedule_after`]."] 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::polkadot_runtime::RuntimeCall; } impl ::subxt::blocks::StaticExtrinsic for ScheduleAfter { const PALLET: &'static str = "Scheduler"; @@ -4462,12 +4544,20 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::schedule_named_after`]."] 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::polkadot_runtime::RuntimeCall; } impl ::subxt::blocks::StaticExtrinsic for ScheduleNamedAfter { const PALLET: &'static str = "Scheduler"; @@ -4479,13 +4569,10 @@ pub mod api { #[doc = "See [`Pallet::schedule`]."] pub fn schedule( &self, - when: ::core::primitive::u32, - maybe_periodic: ::core::option::Option<( - ::core::primitive::u32, - ::core::primitive::u32, - )>, - priority: ::core::primitive::u8, - call: runtime_types::polkadot_runtime::RuntimeCall, + 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", @@ -4506,8 +4593,8 @@ pub mod api { #[doc = "See [`Pallet::cancel`]."] pub fn cancel( &self, - when: ::core::primitive::u32, - index: ::core::primitive::u32, + when: types::cancel::When, + index: types::cancel::Index, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Scheduler", @@ -4524,14 +4611,11 @@ pub mod api { #[doc = "See [`Pallet::schedule_named`]."] pub fn schedule_named( &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, + 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", @@ -4553,7 +4637,7 @@ pub mod api { #[doc = "See [`Pallet::cancel_named`]."] pub fn cancel_named( &self, - id: [::core::primitive::u8; 32usize], + id: types::cancel_named::Id, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Scheduler", @@ -4569,13 +4653,10 @@ pub mod api { #[doc = "See [`Pallet::schedule_after`]."] pub fn schedule_after( &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, + 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", @@ -4596,14 +4677,11 @@ pub mod api { #[doc = "See [`Pallet::schedule_named_after`]."] pub fn schedule_named_after( &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, + 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", @@ -4640,8 +4718,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"; @@ -4659,8 +4742,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"; @@ -4678,9 +4766,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"; @@ -4698,8 +4793,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"; @@ -4717,8 +4817,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"; @@ -4736,8 +4841,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"; @@ -4959,7 +5069,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::note_preimage`]."] 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"; @@ -4977,7 +5091,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::unnote_preimage`]."] 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"; @@ -4995,7 +5113,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::request_preimage`]."] 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"; @@ -5013,7 +5135,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::unrequest_preimage`]."] 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"; @@ -5025,7 +5151,7 @@ pub mod api { #[doc = "See [`Pallet::note_preimage`]."] pub fn note_preimage( &self, - bytes: ::std::vec::Vec<::core::primitive::u8>, + bytes: types::note_preimage::Bytes, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Preimage", @@ -5041,7 +5167,7 @@ pub mod api { #[doc = "See [`Pallet::unnote_preimage`]."] pub fn unnote_preimage( &self, - hash: ::subxt::utils::H256, + hash: types::unnote_preimage::Hash, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Preimage", @@ -5058,7 +5184,7 @@ pub mod api { #[doc = "See [`Pallet::request_preimage`]."] pub fn request_preimage( &self, - hash: ::subxt::utils::H256, + hash: types::request_preimage::Hash, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Preimage", @@ -5074,7 +5200,7 @@ pub mod api { #[doc = "See [`Pallet::unrequest_preimage`]."] pub fn unrequest_preimage( &self, - hash: ::subxt::utils::H256, + hash: types::unrequest_preimage::Hash, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Preimage", @@ -5106,7 +5232,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"; @@ -5124,7 +5254,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"; @@ -5142,7 +5276,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"; @@ -5311,16 +5449,21 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::report_equivocation`]."] 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_runtime::traits::BlakeTwo256, >, 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"; @@ -5338,16 +5481,21 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::report_equivocation_unsigned`]."] 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_runtime::traits::BlakeTwo256, >, 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"; @@ -5365,7 +5513,12 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::plan_config_change`]."] 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"; @@ -5377,14 +5530,8 @@ pub mod api { #[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, + equivocation_proof: types::report_equivocation::EquivocationProof, + key_owner_proof: types::report_equivocation::KeyOwnerProof, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Babe", @@ -5404,14 +5551,8 @@ pub mod api { #[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, + equivocation_proof: types::report_equivocation_unsigned::EquivocationProof, + key_owner_proof: types::report_equivocation_unsigned::KeyOwnerProof, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Babe", @@ -5430,7 +5571,7 @@ pub mod api { #[doc = "See [`Pallet::plan_config_change`]."] pub fn plan_config_change( &self, - config: runtime_types::sp_consensus_babe::digests::NextConfigDescriptor, + config: types::plan_config_change::Config, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Babe", @@ -5979,7 +6120,11 @@ pub mod api { #[doc = "See [`Pallet::set`]."] 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"; @@ -5989,7 +6134,7 @@ pub mod api { pub struct TransactionApi; impl TransactionApi { #[doc = "See [`Pallet::set`]."] - pub fn set(&self, now: ::core::primitive::u64) -> ::subxt::tx::Payload { + pub fn set(&self, now: types::set::Now) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Timestamp", "set", @@ -6091,7 +6236,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, @@ -6103,7 +6247,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::claim`]."] 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"; @@ -6121,15 +6269,19 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::transfer`]."] 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"; const CALL: &'static str = "transfer"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -6141,7 +6293,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::free`]."] 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"; @@ -6159,16 +6315,21 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::force_transfer`]."] 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"; const CALL: &'static str = "force_transfer"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -6180,7 +6341,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::freeze`]."] 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"; @@ -6192,7 +6357,7 @@ pub mod api { #[doc = "See [`Pallet::claim`]."] pub fn claim( &self, - index: ::core::primitive::u32, + index: types::claim::Index, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Indices", @@ -6208,8 +6373,8 @@ pub mod api { #[doc = "See [`Pallet::transfer`]."] pub fn transfer( &self, - new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - index: ::core::primitive::u32, + new: types::transfer::New, + index: types::transfer::Index, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Indices", @@ -6224,10 +6389,7 @@ pub mod api { ) } #[doc = "See [`Pallet::free`]."] - pub fn free( - &self, - index: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + pub fn free(&self, index: types::free::Index) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Indices", "free", @@ -6243,9 +6405,9 @@ pub mod api { #[doc = "See [`Pallet::force_transfer`]."] pub fn force_transfer( &self, - new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - index: ::core::primitive::u32, - freeze: ::core::primitive::bool, + new: types::force_transfer::New, + index: types::force_transfer::Index, + freeze: types::force_transfer::Freeze, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Indices", @@ -6262,7 +6424,7 @@ pub mod api { #[doc = "See [`Pallet::freeze`]."] pub fn freeze( &self, - index: ::core::primitive::u32, + index: types::freeze::Index, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Indices", @@ -6294,15 +6456,19 @@ 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"; const EVENT: &'static str = "IndexAssigned"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -6314,7 +6480,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"; @@ -6332,8 +6502,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"; @@ -6445,9 +6620,14 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::transfer_allow_death`]."] 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"; @@ -6465,11 +6645,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_balance_deprecated`]."] pub struct SetBalanceDeprecated { - pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub who: set_balance_deprecated::Who, #[codec(compact)] - pub new_free: ::core::primitive::u128, + pub new_free: set_balance_deprecated::NewFree, #[codec(compact)] - pub old_reserved: ::core::primitive::u128, + pub old_reserved: set_balance_deprecated::OldReserved, + } + pub mod set_balance_deprecated { + use super::runtime_types; + pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type NewFree = ::core::primitive::u128; + pub type OldReserved = ::core::primitive::u128; } impl ::subxt::blocks::StaticExtrinsic for SetBalanceDeprecated { const PALLET: &'static str = "Balances"; @@ -6487,10 +6673,16 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::force_transfer`]."] 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"; @@ -6508,9 +6700,14 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::transfer_keep_alive`]."] 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"; @@ -6528,8 +6725,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::transfer_all`]."] 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"; @@ -6547,8 +6749,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::force_unreserve`]."] 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"; @@ -6566,7 +6773,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::upgrade_accounts`]."] 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"; @@ -6584,9 +6795,14 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::transfer`]."] pub struct Transfer { - pub dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub dest: transfer::Dest, #[codec(compact)] - pub value: ::core::primitive::u128, + pub value: transfer::Value, + } + pub mod transfer { + use super::runtime_types; + pub type Dest = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Value = ::core::primitive::u128; } impl ::subxt::blocks::StaticExtrinsic for Transfer { const PALLET: &'static str = "Balances"; @@ -6604,9 +6820,14 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::force_set_balance`]."] 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"; @@ -6618,8 +6839,8 @@ pub mod api { #[doc = "See [`Pallet::transfer_allow_death`]."] pub fn transfer_allow_death( &self, - dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - value: ::core::primitive::u128, + dest: types::transfer_allow_death::Dest, + value: types::transfer_allow_death::Value, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Balances", @@ -6636,9 +6857,9 @@ pub mod api { #[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, + who: types::set_balance_deprecated::Who, + new_free: types::set_balance_deprecated::NewFree, + old_reserved: types::set_balance_deprecated::OldReserved, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Balances", @@ -6658,9 +6879,9 @@ pub mod api { #[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, + source: types::force_transfer::Source, + dest: types::force_transfer::Dest, + value: types::force_transfer::Value, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Balances", @@ -6680,8 +6901,8 @@ pub mod api { #[doc = "See [`Pallet::transfer_keep_alive`]."] pub fn transfer_keep_alive( &self, - dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - value: ::core::primitive::u128, + dest: types::transfer_keep_alive::Dest, + value: types::transfer_keep_alive::Value, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Balances", @@ -6697,8 +6918,8 @@ pub mod api { #[doc = "See [`Pallet::transfer_all`]."] pub fn transfer_all( &self, - dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - keep_alive: ::core::primitive::bool, + dest: types::transfer_all::Dest, + keep_alive: types::transfer_all::KeepAlive, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Balances", @@ -6714,8 +6935,8 @@ pub mod api { #[doc = "See [`Pallet::force_unreserve`]."] pub fn force_unreserve( &self, - who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - amount: ::core::primitive::u128, + who: types::force_unreserve::Who, + amount: types::force_unreserve::Amount, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Balances", @@ -6732,7 +6953,7 @@ pub mod api { #[doc = "See [`Pallet::upgrade_accounts`]."] pub fn upgrade_accounts( &self, - who: ::std::vec::Vec<::subxt::utils::AccountId32>, + who: types::upgrade_accounts::Who, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Balances", @@ -6748,8 +6969,8 @@ pub mod api { #[doc = "See [`Pallet::transfer`]."] pub fn transfer( &self, - dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - value: ::core::primitive::u128, + dest: types::transfer::Dest, + value: types::transfer::Value, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Balances", @@ -6766,8 +6987,8 @@ pub mod api { #[doc = "See [`Pallet::force_set_balance`]."] pub fn force_set_balance( &self, - who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - new_free: ::core::primitive::u128, + who: types::force_set_balance::Who, + new_free: types::force_set_balance::NewFree, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Balances", @@ -6798,8 +7019,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"; @@ -6818,8 +7044,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"; @@ -6837,9 +7068,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"; @@ -6857,8 +7094,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"; @@ -6876,8 +7118,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"; @@ -6895,8 +7142,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"; @@ -6915,11 +7167,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"; @@ -6937,8 +7196,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"; @@ -6956,8 +7220,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"; @@ -6975,8 +7244,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"; @@ -6994,8 +7268,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"; @@ -7013,8 +7292,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"; @@ -7032,8 +7316,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"; @@ -7051,8 +7340,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"; @@ -7070,14 +7364,17 @@ 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"; const EVENT: &'static str = "Upgraded"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -7089,14 +7386,17 @@ 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"; const EVENT: &'static str = "Issued"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -7108,7 +7408,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"; @@ -7126,8 +7430,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"; @@ -7145,8 +7454,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"; @@ -7164,8 +7478,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"; @@ -7183,8 +7502,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"; @@ -7648,9 +7972,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"; @@ -7805,10 +8135,15 @@ pub mod api { #[doc = "See [`Pallet::bond`]."] pub struct Bond { #[codec(compact)] - pub value: ::core::primitive::u128, - pub payee: runtime_types::pallet_staking::RewardDestination< + pub value: bond::Value, + pub payee: bond::Payee, + } + pub mod bond { + use super::runtime_types; + pub type Value = ::core::primitive::u128; + pub type Payee = runtime_types::pallet_staking::RewardDestination< ::subxt::utils::AccountId32, - >, + >; } impl ::subxt::blocks::StaticExtrinsic for Bond { const PALLET: &'static str = "Staking"; @@ -7827,7 +8162,11 @@ pub mod api { #[doc = "See [`Pallet::bond_extra`]."] pub struct BondExtra { #[codec(compact)] - pub max_additional: ::core::primitive::u128, + pub max_additional: bond_extra::MaxAdditional, + } + pub mod bond_extra { + use super::runtime_types; + pub type MaxAdditional = ::core::primitive::u128; } impl ::subxt::blocks::StaticExtrinsic for BondExtra { const PALLET: &'static str = "Staking"; @@ -7846,14 +8185,17 @@ pub mod api { #[doc = "See [`Pallet::unbond`]."] pub struct Unbond { #[codec(compact)] - pub value: ::core::primitive::u128, + pub value: unbond::Value, + } + pub mod unbond { + use super::runtime_types; + pub type 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, @@ -7865,7 +8207,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::withdraw_unbonded`]."] pub struct WithdrawUnbonded { - pub num_slashing_spans: ::core::primitive::u32, + pub num_slashing_spans: withdraw_unbonded::NumSlashingSpans, + } + pub mod withdraw_unbonded { + use super::runtime_types; + pub type NumSlashingSpans = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for WithdrawUnbonded { const PALLET: &'static str = "Staking"; @@ -7883,7 +8229,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::validate`]."] pub struct Validate { - pub prefs: runtime_types::pallet_staking::ValidatorPrefs, + pub prefs: validate::Prefs, + } + pub mod validate { + use super::runtime_types; + pub type Prefs = runtime_types::pallet_staking::ValidatorPrefs; } impl ::subxt::blocks::StaticExtrinsic for Validate { const PALLET: &'static str = "Staking"; @@ -7901,9 +8251,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::nominate`]."] pub struct Nominate { - pub targets: ::std::vec::Vec< + pub targets: nominate::Targets, + } + pub mod nominate { + use super::runtime_types; + pub type Targets = ::std::vec::Vec< ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - >, + >; } impl ::subxt::blocks::StaticExtrinsic for Nominate { const PALLET: &'static str = "Staking"; @@ -7937,9 +8291,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_payee`]."] pub struct SetPayee { - pub payee: runtime_types::pallet_staking::RewardDestination< + pub payee: set_payee::Payee, + } + pub mod set_payee { + use super::runtime_types; + pub type Payee = runtime_types::pallet_staking::RewardDestination< ::subxt::utils::AccountId32, - >, + >; } impl ::subxt::blocks::StaticExtrinsic for SetPayee { const PALLET: &'static str = "Staking"; @@ -7974,7 +8332,11 @@ pub mod api { #[doc = "See [`Pallet::set_validator_count`]."] pub struct SetValidatorCount { #[codec(compact)] - pub new: ::core::primitive::u32, + pub new: set_validator_count::New, + } + pub mod set_validator_count { + use super::runtime_types; + pub type New = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for SetValidatorCount { const PALLET: &'static str = "Staking"; @@ -7993,7 +8355,11 @@ pub mod api { #[doc = "See [`Pallet::increase_validator_count`]."] pub struct IncreaseValidatorCount { #[codec(compact)] - pub additional: ::core::primitive::u32, + pub additional: increase_validator_count::Additional, + } + pub mod increase_validator_count { + use super::runtime_types; + pub type Additional = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for IncreaseValidatorCount { const PALLET: &'static str = "Staking"; @@ -8011,7 +8377,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::scale_validator_count`]."] pub struct ScaleValidatorCount { - pub factor: runtime_types::sp_arithmetic::per_things::Percent, + pub factor: scale_validator_count::Factor, + } + pub mod scale_validator_count { + use super::runtime_types; + pub type Factor = runtime_types::sp_arithmetic::per_things::Percent; } impl ::subxt::blocks::StaticExtrinsic for ScaleValidatorCount { const PALLET: &'static str = "Staking"; @@ -8061,7 +8431,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_invulnerables`]."] pub struct SetInvulnerables { - pub invulnerables: ::std::vec::Vec<::subxt::utils::AccountId32>, + pub invulnerables: set_invulnerables::Invulnerables, + } + pub mod set_invulnerables { + use super::runtime_types; + pub type Invulnerables = ::std::vec::Vec<::subxt::utils::AccountId32>; } impl ::subxt::blocks::StaticExtrinsic for SetInvulnerables { const PALLET: &'static str = "Staking"; @@ -8079,8 +8453,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::force_unstake`]."] pub struct ForceUnstake { - pub stash: ::subxt::utils::AccountId32, - pub num_slashing_spans: ::core::primitive::u32, + pub stash: force_unstake::Stash, + pub num_slashing_spans: force_unstake::NumSlashingSpans, + } + pub mod force_unstake { + use super::runtime_types; + pub type Stash = ::subxt::utils::AccountId32; + pub type NumSlashingSpans = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for ForceUnstake { const PALLET: &'static str = "Staking"; @@ -8114,8 +8493,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::cancel_deferred_slash`]."] pub struct CancelDeferredSlash { - pub era: ::core::primitive::u32, - pub slash_indices: ::std::vec::Vec<::core::primitive::u32>, + pub era: cancel_deferred_slash::Era, + pub slash_indices: cancel_deferred_slash::SlashIndices, + } + pub mod cancel_deferred_slash { + use super::runtime_types; + pub type Era = ::core::primitive::u32; + pub type SlashIndices = ::std::vec::Vec<::core::primitive::u32>; } impl ::subxt::blocks::StaticExtrinsic for CancelDeferredSlash { const PALLET: &'static str = "Staking"; @@ -8133,8 +8517,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::payout_stakers`]."] pub struct PayoutStakers { - pub validator_stash: ::subxt::utils::AccountId32, - pub era: ::core::primitive::u32, + pub validator_stash: payout_stakers::ValidatorStash, + pub era: payout_stakers::Era, + } + pub mod payout_stakers { + use super::runtime_types; + pub type ValidatorStash = ::subxt::utils::AccountId32; + pub type Era = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for PayoutStakers { const PALLET: &'static str = "Staking"; @@ -8153,7 +8542,11 @@ pub mod api { #[doc = "See [`Pallet::rebond`]."] pub struct Rebond { #[codec(compact)] - pub value: ::core::primitive::u128, + pub value: rebond::Value, + } + pub mod rebond { + use super::runtime_types; + pub type Value = ::core::primitive::u128; } impl ::subxt::blocks::StaticExtrinsic for Rebond { const PALLET: &'static str = "Staking"; @@ -8171,8 +8564,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::reap_stash`]."] pub struct ReapStash { - pub stash: ::subxt::utils::AccountId32, - pub num_slashing_spans: ::core::primitive::u32, + pub stash: reap_stash::Stash, + pub num_slashing_spans: reap_stash::NumSlashingSpans, + } + pub mod reap_stash { + use super::runtime_types; + pub type Stash = ::subxt::utils::AccountId32; + pub type NumSlashingSpans = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for ReapStash { const PALLET: &'static str = "Staking"; @@ -8190,9 +8588,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::kick`]."] pub struct Kick { - pub who: ::std::vec::Vec< + pub who: kick::Who, + } + pub mod kick { + use super::runtime_types; + pub type Who = ::std::vec::Vec< ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - >, + >; } impl ::subxt::blocks::StaticExtrinsic for Kick { const PALLET: &'static str = "Staking"; @@ -8210,26 +8612,39 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_staking_configs`]."] 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: + pub min_nominator_bond: set_staking_configs::MinNominatorBond, + pub min_validator_bond: set_staking_configs::MinValidatorBond, + pub max_nominator_count: set_staking_configs::MaxNominatorCount, + pub max_validator_count: set_staking_configs::MaxValidatorCount, + pub chill_threshold: set_staking_configs::ChillThreshold, + pub min_commission: set_staking_configs::MinCommission, + } + pub mod set_staking_configs { + use super::runtime_types; + pub type MinNominatorBond = + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + ::core::primitive::u128, + >; + pub type MinValidatorBond = + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + ::core::primitive::u128, + >; + pub type MaxNominatorCount = runtime_types::pallet_staking::pallet::pallet::ConfigOp< ::core::primitive::u32, - >, - pub max_validator_count: + >; + pub type MaxValidatorCount = runtime_types::pallet_staking::pallet::pallet::ConfigOp< ::core::primitive::u32, - >, - pub chill_threshold: runtime_types::pallet_staking::pallet::pallet::ConfigOp< - runtime_types::sp_arithmetic::per_things::Percent, - >, - pub min_commission: runtime_types::pallet_staking::pallet::pallet::ConfigOp< - runtime_types::sp_arithmetic::per_things::Perbill, - >, + >; + pub type ChillThreshold = + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + runtime_types::sp_arithmetic::per_things::Percent, + >; + pub type MinCommission = + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + runtime_types::sp_arithmetic::per_things::Perbill, + >; } impl ::subxt::blocks::StaticExtrinsic for SetStakingConfigs { const PALLET: &'static str = "Staking"; @@ -8247,7 +8662,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::chill_other`]."] pub struct ChillOther { - pub controller: ::subxt::utils::AccountId32, + pub controller: chill_other::Controller, + } + pub mod chill_other { + use super::runtime_types; + pub type Controller = ::subxt::utils::AccountId32; } impl ::subxt::blocks::StaticExtrinsic for ChillOther { const PALLET: &'static str = "Staking"; @@ -8265,7 +8684,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::force_apply_min_commission`]."] pub struct ForceApplyMinCommission { - pub validator_stash: ::subxt::utils::AccountId32, + pub validator_stash: force_apply_min_commission::ValidatorStash, + } + pub mod force_apply_min_commission { + use super::runtime_types; + pub type ValidatorStash = ::subxt::utils::AccountId32; } impl ::subxt::blocks::StaticExtrinsic for ForceApplyMinCommission { const PALLET: &'static str = "Staking"; @@ -8283,7 +8706,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_min_commission`]."] pub struct SetMinCommission { - pub new: runtime_types::sp_arithmetic::per_things::Perbill, + pub new: set_min_commission::New, + } + pub mod set_min_commission { + use super::runtime_types; + pub type New = runtime_types::sp_arithmetic::per_things::Perbill; } impl ::subxt::blocks::StaticExtrinsic for SetMinCommission { const PALLET: &'static str = "Staking"; @@ -8295,10 +8722,8 @@ pub mod api { #[doc = "See [`Pallet::bond`]."] pub fn bond( &self, - value: ::core::primitive::u128, - payee: runtime_types::pallet_staking::RewardDestination< - ::subxt::utils::AccountId32, - >, + value: types::bond::Value, + payee: types::bond::Payee, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", @@ -8314,7 +8739,7 @@ pub mod api { #[doc = "See [`Pallet::bond_extra`]."] pub fn bond_extra( &self, - max_additional: ::core::primitive::u128, + max_additional: types::bond_extra::MaxAdditional, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", @@ -8330,7 +8755,7 @@ pub mod api { #[doc = "See [`Pallet::unbond`]."] pub fn unbond( &self, - value: ::core::primitive::u128, + value: types::unbond::Value, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", @@ -8346,7 +8771,7 @@ pub mod api { #[doc = "See [`Pallet::withdraw_unbonded`]."] pub fn withdraw_unbonded( &self, - num_slashing_spans: ::core::primitive::u32, + num_slashing_spans: types::withdraw_unbonded::NumSlashingSpans, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", @@ -8363,7 +8788,7 @@ pub mod api { #[doc = "See [`Pallet::validate`]."] pub fn validate( &self, - prefs: runtime_types::pallet_staking::ValidatorPrefs, + prefs: types::validate::Prefs, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", @@ -8379,9 +8804,7 @@ pub mod api { #[doc = "See [`Pallet::nominate`]."] pub fn nominate( &self, - targets: ::std::vec::Vec< - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - >, + targets: types::nominate::Targets, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", @@ -8411,9 +8834,7 @@ pub mod api { #[doc = "See [`Pallet::set_payee`]."] pub fn set_payee( &self, - payee: runtime_types::pallet_staking::RewardDestination< - ::subxt::utils::AccountId32, - >, + payee: types::set_payee::Payee, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", @@ -8444,7 +8865,7 @@ pub mod api { #[doc = "See [`Pallet::set_validator_count`]."] pub fn set_validator_count( &self, - new: ::core::primitive::u32, + new: types::set_validator_count::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", @@ -8461,7 +8882,7 @@ pub mod api { #[doc = "See [`Pallet::increase_validator_count`]."] pub fn increase_validator_count( &self, - additional: ::core::primitive::u32, + additional: types::increase_validator_count::Additional, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", @@ -8478,7 +8899,7 @@ pub mod api { #[doc = "See [`Pallet::scale_validator_count`]."] pub fn scale_validator_count( &self, - factor: runtime_types::sp_arithmetic::per_things::Percent, + factor: types::scale_validator_count::Factor, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", @@ -8522,7 +8943,7 @@ pub mod api { #[doc = "See [`Pallet::set_invulnerables`]."] pub fn set_invulnerables( &self, - invulnerables: ::std::vec::Vec<::subxt::utils::AccountId32>, + invulnerables: types::set_invulnerables::Invulnerables, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", @@ -8538,8 +8959,8 @@ pub mod api { #[doc = "See [`Pallet::force_unstake`]."] pub fn force_unstake( &self, - stash: ::subxt::utils::AccountId32, - num_slashing_spans: ::core::primitive::u32, + stash: types::force_unstake::Stash, + num_slashing_spans: types::force_unstake::NumSlashingSpans, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", @@ -8573,8 +8994,8 @@ pub mod api { #[doc = "See [`Pallet::cancel_deferred_slash`]."] pub fn cancel_deferred_slash( &self, - era: ::core::primitive::u32, - slash_indices: ::std::vec::Vec<::core::primitive::u32>, + era: types::cancel_deferred_slash::Era, + slash_indices: types::cancel_deferred_slash::SlashIndices, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", @@ -8591,8 +9012,8 @@ pub mod api { #[doc = "See [`Pallet::payout_stakers`]."] pub fn payout_stakers( &self, - validator_stash: ::subxt::utils::AccountId32, - era: ::core::primitive::u32, + validator_stash: types::payout_stakers::ValidatorStash, + era: types::payout_stakers::Era, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", @@ -8611,7 +9032,7 @@ pub mod api { #[doc = "See [`Pallet::rebond`]."] pub fn rebond( &self, - value: ::core::primitive::u128, + value: types::rebond::Value, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", @@ -8627,8 +9048,8 @@ pub mod api { #[doc = "See [`Pallet::reap_stash`]."] pub fn reap_stash( &self, - stash: ::subxt::utils::AccountId32, - num_slashing_spans: ::core::primitive::u32, + stash: types::reap_stash::Stash, + num_slashing_spans: types::reap_stash::NumSlashingSpans, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", @@ -8645,12 +9066,7 @@ pub mod api { ) } #[doc = "See [`Pallet::kick`]."] - pub fn kick( - &self, - who: ::std::vec::Vec< - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - >, - ) -> ::subxt::tx::Payload { + pub fn kick(&self, who: types::kick::Who) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", "kick", @@ -8665,24 +9081,12 @@ pub mod api { #[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, - >, + min_nominator_bond: types::set_staking_configs::MinNominatorBond, + min_validator_bond: types::set_staking_configs::MinValidatorBond, + max_nominator_count: types::set_staking_configs::MaxNominatorCount, + max_validator_count: types::set_staking_configs::MaxValidatorCount, + chill_threshold: types::set_staking_configs::ChillThreshold, + min_commission: types::set_staking_configs::MinCommission, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", @@ -8705,7 +9109,7 @@ pub mod api { #[doc = "See [`Pallet::chill_other`]."] pub fn chill_other( &self, - controller: ::subxt::utils::AccountId32, + controller: types::chill_other::Controller, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", @@ -8721,7 +9125,7 @@ pub mod api { #[doc = "See [`Pallet::force_apply_min_commission`]."] pub fn force_apply_min_commission( &self, - validator_stash: ::subxt::utils::AccountId32, + validator_stash: types::force_apply_min_commission::ValidatorStash, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", @@ -8737,7 +9141,7 @@ pub mod api { #[doc = "See [`Pallet::set_min_commission`]."] pub fn set_min_commission( &self, - new: runtime_types::sp_arithmetic::per_things::Perbill, + new: types::set_min_commission::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", @@ -8770,9 +9174,15 @@ pub mod api { #[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, + pub era_index: era_paid::EraIndex, + pub validator_payout: era_paid::ValidatorPayout, + pub remainder: era_paid::Remainder, + } + pub mod era_paid { + use super::runtime_types; + pub type EraIndex = ::core::primitive::u32; + pub type ValidatorPayout = ::core::primitive::u128; + pub type Remainder = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for EraPaid { const PALLET: &'static str = "Staking"; @@ -8790,8 +9200,13 @@ pub mod api { #[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, + pub stash: rewarded::Stash, + pub amount: rewarded::Amount, + } + pub mod rewarded { + use super::runtime_types; + pub type Stash = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Rewarded { const PALLET: &'static str = "Staking"; @@ -8809,8 +9224,13 @@ pub mod api { #[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, + pub staker: slashed::Staker, + pub amount: slashed::Amount, + } + pub mod slashed { + use super::runtime_types; + pub type Staker = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Slashed { const PALLET: &'static str = "Staking"; @@ -8829,16 +9249,21 @@ pub mod api { #[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, + pub validator: slash_reported::Validator, + pub fraction: slash_reported::Fraction, + pub slash_era: slash_reported::SlashEra, + } + pub mod slash_reported { + use super::runtime_types; + pub type Validator = ::subxt::utils::AccountId32; + pub type Fraction = runtime_types::sp_arithmetic::per_things::Perbill; + pub type SlashEra = ::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, @@ -8851,7 +9276,11 @@ pub mod api { #[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, + pub session_index: old_slashing_report_discarded::SessionIndex, + } + pub mod old_slashing_report_discarded { + use super::runtime_types; + pub type SessionIndex = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for OldSlashingReportDiscarded { const PALLET: &'static str = "Staking"; @@ -8888,8 +9317,13 @@ pub mod api { #[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, + pub stash: bonded::Stash, + pub amount: bonded::Amount, + } + pub mod bonded { + use super::runtime_types; + pub type Stash = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Bonded { const PALLET: &'static str = "Staking"; @@ -8907,8 +9341,13 @@ pub mod api { #[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, + pub stash: unbonded::Stash, + pub amount: unbonded::Amount, + } + pub mod unbonded { + use super::runtime_types; + pub type Stash = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Unbonded { const PALLET: &'static str = "Staking"; @@ -8927,8 +9366,13 @@ pub mod api { #[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, + pub stash: withdrawn::Stash, + pub amount: withdrawn::Amount, + } + pub mod withdrawn { + use super::runtime_types; + pub type Stash = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Withdrawn { const PALLET: &'static str = "Staking"; @@ -8946,8 +9390,13 @@ pub mod api { #[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, + pub nominator: kicked::Nominator, + pub stash: kicked::Stash, + } + pub mod kicked { + use super::runtime_types; + pub type Nominator = ::subxt::utils::AccountId32; + pub type Stash = ::subxt::utils::AccountId32; } impl ::subxt::events::StaticEvent for Kicked { const PALLET: &'static str = "Staking"; @@ -8981,7 +9430,11 @@ pub mod api { #[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, + pub stash: chilled::Stash, + } + pub mod chilled { + use super::runtime_types; + pub type Stash = ::subxt::utils::AccountId32; } impl ::subxt::events::StaticEvent for Chilled { const PALLET: &'static str = "Staking"; @@ -8999,8 +9452,13 @@ pub mod api { #[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, + pub era_index: payout_started::EraIndex, + pub validator_stash: payout_started::ValidatorStash, + } + pub mod payout_started { + use super::runtime_types; + pub type EraIndex = ::core::primitive::u32; + pub type ValidatorStash = ::subxt::utils::AccountId32; } impl ::subxt::events::StaticEvent for PayoutStarted { const PALLET: &'static str = "Staking"; @@ -9018,8 +9476,13 @@ pub mod api { #[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, + pub stash: validator_prefs_set::Stash, + pub prefs: validator_prefs_set::Prefs, + } + pub mod validator_prefs_set { + use super::runtime_types; + pub type Stash = ::subxt::utils::AccountId32; + pub type Prefs = runtime_types::pallet_staking::ValidatorPrefs; } impl ::subxt::events::StaticEvent for ValidatorPrefsSet { const PALLET: &'static str = "Staking"; @@ -9037,7 +9500,11 @@ pub mod api { #[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, + pub mode: force_era::Mode, + } + pub mod force_era { + use super::runtime_types; + pub type Mode = runtime_types::pallet_staking::Forcing; } impl ::subxt::events::StaticEvent for ForceEra { const PALLET: &'static str = "Staking"; @@ -10777,8 +11244,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"; @@ -10958,8 +11430,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_keys`]."] pub struct SetKeys { - pub keys: runtime_types::polkadot_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::polkadot_runtime::SessionKeys; + pub type Proof = ::std::vec::Vec<::core::primitive::u8>; } impl ::subxt::blocks::StaticExtrinsic for SetKeys { const PALLET: &'static str = "Session"; @@ -10987,8 +11464,8 @@ pub mod api { #[doc = "See [`Pallet::set_keys`]."] pub fn set_keys( &self, - keys: runtime_types::polkadot_runtime::SessionKeys, - proof: ::std::vec::Vec<::core::primitive::u8>, + keys: types::set_keys::Keys, + proof: types::set_keys::Proof, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Session", @@ -11022,7 +11499,6 @@ pub mod api { 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, @@ -11035,7 +11511,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"; @@ -11311,13 +11791,18 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::report_equivocation`]."] 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"; @@ -11335,13 +11820,18 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::report_equivocation_unsigned`]."] 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"; @@ -11359,8 +11849,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::note_stalled`]."] 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"; @@ -11372,11 +11867,8 @@ pub mod api { #[doc = "See [`Pallet::report_equivocation`]."] pub fn report_equivocation( &self, - equivocation_proof: runtime_types::sp_consensus_grandpa::EquivocationProof< - ::subxt::utils::H256, - ::core::primitive::u32, - >, - key_owner_proof: runtime_types::sp_session::MembershipProof, + equivocation_proof: types::report_equivocation::EquivocationProof, + key_owner_proof: types::report_equivocation::KeyOwnerProof, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Grandpa", @@ -11395,11 +11887,8 @@ pub mod api { #[doc = "See [`Pallet::report_equivocation_unsigned`]."] pub fn report_equivocation_unsigned( &self, - equivocation_proof: runtime_types::sp_consensus_grandpa::EquivocationProof< - ::subxt::utils::H256, - ::core::primitive::u32, - >, - key_owner_proof: runtime_types::sp_session::MembershipProof, + equivocation_proof: types::report_equivocation_unsigned::EquivocationProof, + key_owner_proof: types::report_equivocation_unsigned::KeyOwnerProof, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Grandpa", @@ -11418,8 +11907,8 @@ pub mod api { #[doc = "See [`Pallet::note_stalled`]."] pub fn note_stalled( &self, - delay: ::core::primitive::u32, - best_finalized_block_number: ::core::primitive::u32, + delay: types::note_stalled::Delay, + best_finalized_block_number: types::note_stalled::BestFinalizedBlockNumber, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Grandpa", @@ -11453,10 +11942,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"; @@ -11739,9 +12232,15 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::heartbeat`]."] 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"; @@ -11753,8 +12252,8 @@ pub mod api { #[doc = "See [`Pallet::heartbeat`]."] pub fn heartbeat( &self, - heartbeat: runtime_types::pallet_im_online::Heartbeat<::core::primitive::u32>, - signature: runtime_types::pallet_im_online::sr25519::app_sr25519::Signature, + heartbeat: types::heartbeat::Heartbeat, + signature: types::heartbeat::Signature, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ImOnline", @@ -11788,7 +12287,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"; @@ -11822,13 +12326,17 @@ 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<( + pub offline: some_offline::Offline, + } + pub mod some_offline { + use super::runtime_types; + pub type Offline = ::std::vec::Vec<( ::subxt::utils::AccountId32, runtime_types::pallet_staking::Exposure< ::subxt::utils::AccountId32, ::core::primitive::u128, >, - )>, + )>; } impl ::subxt::events::StaticEvent for SomeOffline { const PALLET: &'static str = "ImOnline"; @@ -12098,11 +12606,16 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::propose`]."] pub struct Propose { - pub proposal: runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::polkadot_runtime::RuntimeCall, - >, + pub proposal: propose::Proposal, #[codec(compact)] - pub value: ::core::primitive::u128, + pub value: propose::Value, + } + pub mod propose { + use super::runtime_types; + pub type Proposal = runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::polkadot_runtime::RuntimeCall, + >; + pub type Value = ::core::primitive::u128; } impl ::subxt::blocks::StaticExtrinsic for Propose { const PALLET: &'static str = "Democracy"; @@ -12121,7 +12634,11 @@ pub mod api { #[doc = "See [`Pallet::second`]."] pub struct Second { #[codec(compact)] - pub proposal: ::core::primitive::u32, + pub proposal: second::Proposal, + } + pub mod second { + use super::runtime_types; + pub type Proposal = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for Second { const PALLET: &'static str = "Democracy"; @@ -12140,16 +12657,20 @@ pub mod api { #[doc = "See [`Pallet::vote`]."] pub struct Vote { #[codec(compact)] - pub ref_index: ::core::primitive::u32, - pub vote: - runtime_types::pallet_democracy::vote::AccountVote<::core::primitive::u128>, + pub ref_index: vote::RefIndex, + pub vote: vote::Vote, + } + pub mod vote { + use super::runtime_types; + pub type RefIndex = ::core::primitive::u32; + pub type 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, @@ -12161,7 +12682,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::emergency_cancel`]."] pub struct EmergencyCancel { - pub ref_index: ::core::primitive::u32, + pub ref_index: emergency_cancel::RefIndex, + } + pub mod emergency_cancel { + use super::runtime_types; + pub type RefIndex = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for EmergencyCancel { const PALLET: &'static str = "Democracy"; @@ -12179,9 +12704,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::external_propose`]."] pub struct ExternalPropose { - pub proposal: runtime_types::frame_support::traits::preimages::Bounded< + pub proposal: external_propose::Proposal, + } + pub mod external_propose { + use super::runtime_types; + pub type Proposal = runtime_types::frame_support::traits::preimages::Bounded< runtime_types::polkadot_runtime::RuntimeCall, - >, + >; } impl ::subxt::blocks::StaticExtrinsic for ExternalPropose { const PALLET: &'static str = "Democracy"; @@ -12199,9 +12728,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::external_propose_majority`]."] pub struct ExternalProposeMajority { - pub proposal: runtime_types::frame_support::traits::preimages::Bounded< + pub proposal: external_propose_majority::Proposal, + } + pub mod external_propose_majority { + use super::runtime_types; + pub type Proposal = runtime_types::frame_support::traits::preimages::Bounded< runtime_types::polkadot_runtime::RuntimeCall, - >, + >; } impl ::subxt::blocks::StaticExtrinsic for ExternalProposeMajority { const PALLET: &'static str = "Democracy"; @@ -12219,9 +12752,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::external_propose_default`]."] pub struct ExternalProposeDefault { - pub proposal: runtime_types::frame_support::traits::preimages::Bounded< + pub proposal: external_propose_default::Proposal, + } + pub mod external_propose_default { + use super::runtime_types; + pub type Proposal = runtime_types::frame_support::traits::preimages::Bounded< runtime_types::polkadot_runtime::RuntimeCall, - >, + >; } impl ::subxt::blocks::StaticExtrinsic for ExternalProposeDefault { const PALLET: &'static str = "Democracy"; @@ -12239,9 +12776,15 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::fast_track`]."] pub struct FastTrack { - pub proposal_hash: ::subxt::utils::H256, - pub voting_period: ::core::primitive::u32, - pub delay: ::core::primitive::u32, + pub proposal_hash: fast_track::ProposalHash, + pub voting_period: fast_track::VotingPeriod, + pub delay: fast_track::Delay, + } + pub mod fast_track { + use super::runtime_types; + pub type ProposalHash = ::subxt::utils::H256; + pub type VotingPeriod = ::core::primitive::u32; + pub type Delay = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for FastTrack { const PALLET: &'static str = "Democracy"; @@ -12259,7 +12802,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::veto_external`]."] pub struct VetoExternal { - pub proposal_hash: ::subxt::utils::H256, + pub proposal_hash: veto_external::ProposalHash, + } + pub mod veto_external { + use super::runtime_types; + pub type ProposalHash = ::subxt::utils::H256; } impl ::subxt::blocks::StaticExtrinsic for VetoExternal { const PALLET: &'static str = "Democracy"; @@ -12278,7 +12825,11 @@ pub mod api { #[doc = "See [`Pallet::cancel_referendum`]."] pub struct CancelReferendum { #[codec(compact)] - pub ref_index: ::core::primitive::u32, + pub ref_index: cancel_referendum::RefIndex, + } + pub mod cancel_referendum { + use super::runtime_types; + pub type RefIndex = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for CancelReferendum { const PALLET: &'static str = "Democracy"; @@ -12296,9 +12847,15 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::delegate`]."] 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 to: delegate::To, + pub conviction: delegate::Conviction, + pub balance: delegate::Balance, + } + pub mod delegate { + use super::runtime_types; + pub type To = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Conviction = runtime_types::pallet_democracy::conviction::Conviction; + pub type Balance = ::core::primitive::u128; } impl ::subxt::blocks::StaticExtrinsic for Delegate { const PALLET: &'static str = "Democracy"; @@ -12348,14 +12905,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::unlock`]."] pub struct Unlock { - pub target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub target: unlock::Target, + } + pub mod unlock { + use super::runtime_types; + pub type Target = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; } impl ::subxt::blocks::StaticExtrinsic for Unlock { const PALLET: &'static str = "Democracy"; const CALL: &'static str = "unlock"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -12367,7 +12927,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::remove_vote`]."] pub struct RemoveVote { - pub index: ::core::primitive::u32, + pub index: remove_vote::Index, + } + pub mod remove_vote { + use super::runtime_types; + pub type Index = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for RemoveVote { const PALLET: &'static str = "Democracy"; @@ -12385,8 +12949,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::remove_other_vote`]."] pub struct RemoveOtherVote { - pub target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub index: ::core::primitive::u32, + pub target: remove_other_vote::Target, + 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 Index = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for RemoveOtherVote { const PALLET: &'static str = "Democracy"; @@ -12404,8 +12973,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::blacklist`]."] pub struct Blacklist { - pub proposal_hash: ::subxt::utils::H256, - pub maybe_ref_index: ::core::option::Option<::core::primitive::u32>, + pub proposal_hash: blacklist::ProposalHash, + pub maybe_ref_index: blacklist::MaybeRefIndex, + } + pub mod blacklist { + use super::runtime_types; + pub type ProposalHash = ::subxt::utils::H256; + pub type MaybeRefIndex = ::core::option::Option<::core::primitive::u32>; } impl ::subxt::blocks::StaticExtrinsic for Blacklist { const PALLET: &'static str = "Democracy"; @@ -12424,7 +12998,11 @@ pub mod api { #[doc = "See [`Pallet::cancel_proposal`]."] pub struct CancelProposal { #[codec(compact)] - pub prop_index: ::core::primitive::u32, + pub prop_index: cancel_proposal::PropIndex, + } + pub mod cancel_proposal { + use super::runtime_types; + pub type PropIndex = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for CancelProposal { const PALLET: &'static str = "Democracy"; @@ -12442,8 +13020,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_metadata`]."] pub struct SetMetadata { - pub owner: runtime_types::pallet_democracy::types::MetadataOwner, - pub maybe_hash: ::core::option::Option<::subxt::utils::H256>, + pub owner: set_metadata::Owner, + pub maybe_hash: set_metadata::MaybeHash, + } + pub mod set_metadata { + use super::runtime_types; + pub type Owner = runtime_types::pallet_democracy::types::MetadataOwner; + pub type MaybeHash = ::core::option::Option<::subxt::utils::H256>; } impl ::subxt::blocks::StaticExtrinsic for SetMetadata { const PALLET: &'static str = "Democracy"; @@ -12455,10 +13038,8 @@ pub mod api { #[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, + proposal: types::propose::Proposal, + value: types::propose::Value, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Democracy", @@ -12475,7 +13056,7 @@ pub mod api { #[doc = "See [`Pallet::second`]."] pub fn second( &self, - proposal: ::core::primitive::u32, + proposal: types::second::Proposal, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Democracy", @@ -12492,10 +13073,8 @@ pub mod api { #[doc = "See [`Pallet::vote`]."] pub fn vote( &self, - ref_index: ::core::primitive::u32, - vote: runtime_types::pallet_democracy::vote::AccountVote< - ::core::primitive::u128, - >, + ref_index: types::vote::RefIndex, + vote: types::vote::Vote, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Democracy", @@ -12511,7 +13090,7 @@ pub mod api { #[doc = "See [`Pallet::emergency_cancel`]."] pub fn emergency_cancel( &self, - ref_index: ::core::primitive::u32, + ref_index: types::emergency_cancel::RefIndex, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Democracy", @@ -12527,9 +13106,7 @@ pub mod api { #[doc = "See [`Pallet::external_propose`]."] pub fn external_propose( &self, - proposal: runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::polkadot_runtime::RuntimeCall, - >, + proposal: types::external_propose::Proposal, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Democracy", @@ -12545,9 +13122,7 @@ pub mod api { #[doc = "See [`Pallet::external_propose_majority`]."] pub fn external_propose_majority( &self, - proposal: runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::polkadot_runtime::RuntimeCall, - >, + proposal: types::external_propose_majority::Proposal, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Democracy", @@ -12563,9 +13138,7 @@ pub mod api { #[doc = "See [`Pallet::external_propose_default`]."] pub fn external_propose_default( &self, - proposal: runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::polkadot_runtime::RuntimeCall, - >, + proposal: types::external_propose_default::Proposal, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Democracy", @@ -12581,9 +13154,9 @@ pub mod api { #[doc = "See [`Pallet::fast_track`]."] pub fn fast_track( &self, - proposal_hash: ::subxt::utils::H256, - voting_period: ::core::primitive::u32, - delay: ::core::primitive::u32, + proposal_hash: types::fast_track::ProposalHash, + voting_period: types::fast_track::VotingPeriod, + delay: types::fast_track::Delay, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Democracy", @@ -12603,7 +13176,7 @@ pub mod api { #[doc = "See [`Pallet::veto_external`]."] pub fn veto_external( &self, - proposal_hash: ::subxt::utils::H256, + proposal_hash: types::veto_external::ProposalHash, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Democracy", @@ -12620,7 +13193,7 @@ pub mod api { #[doc = "See [`Pallet::cancel_referendum`]."] pub fn cancel_referendum( &self, - ref_index: ::core::primitive::u32, + ref_index: types::cancel_referendum::RefIndex, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Democracy", @@ -12637,9 +13210,9 @@ pub mod api { #[doc = "See [`Pallet::delegate`]."] pub fn delegate( &self, - to: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - conviction: runtime_types::pallet_democracy::conviction::Conviction, - balance: ::core::primitive::u128, + to: types::delegate::To, + conviction: types::delegate::Conviction, + balance: types::delegate::Balance, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Democracy", @@ -12690,7 +13263,7 @@ pub mod api { #[doc = "See [`Pallet::unlock`]."] pub fn unlock( &self, - target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + target: types::unlock::Target, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Democracy", @@ -12707,7 +13280,7 @@ pub mod api { #[doc = "See [`Pallet::remove_vote`]."] pub fn remove_vote( &self, - index: ::core::primitive::u32, + index: types::remove_vote::Index, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Democracy", @@ -12724,8 +13297,8 @@ pub mod api { #[doc = "See [`Pallet::remove_other_vote`]."] pub fn remove_other_vote( &self, - target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - index: ::core::primitive::u32, + target: types::remove_other_vote::Target, + index: types::remove_other_vote::Index, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Democracy", @@ -12742,8 +13315,8 @@ pub mod api { #[doc = "See [`Pallet::blacklist`]."] pub fn blacklist( &self, - proposal_hash: ::subxt::utils::H256, - maybe_ref_index: ::core::option::Option<::core::primitive::u32>, + proposal_hash: types::blacklist::ProposalHash, + maybe_ref_index: types::blacklist::MaybeRefIndex, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Democracy", @@ -12763,7 +13336,7 @@ pub mod api { #[doc = "See [`Pallet::cancel_proposal`]."] pub fn cancel_proposal( &self, - prop_index: ::core::primitive::u32, + prop_index: types::cancel_proposal::PropIndex, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Democracy", @@ -12779,8 +13352,8 @@ pub mod api { #[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>, + owner: types::set_metadata::Owner, + maybe_hash: types::set_metadata::MaybeHash, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Democracy", @@ -12811,8 +13384,13 @@ pub mod api { #[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, + pub proposal_index: proposed::ProposalIndex, + pub deposit: proposed::Deposit, + } + pub mod proposed { + use super::runtime_types; + pub type ProposalIndex = ::core::primitive::u32; + pub type Deposit = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Proposed { const PALLET: &'static str = "Democracy"; @@ -12830,8 +13408,13 @@ pub mod api { #[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, + pub proposal_index: tabled::ProposalIndex, + pub deposit: tabled::Deposit, + } + pub mod tabled { + use super::runtime_types; + pub type ProposalIndex = ::core::primitive::u32; + pub type Deposit = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Tabled { const PALLET: &'static str = "Democracy"; @@ -12865,15 +13448,19 @@ pub mod api { #[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, + pub ref_index: started::RefIndex, + pub threshold: started::Threshold, + } + pub mod started { + use super::runtime_types; + pub type RefIndex = ::core::primitive::u32; + pub type Threshold = runtime_types::pallet_democracy::vote_threshold::VoteThreshold; } impl ::subxt::events::StaticEvent for Started { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Started"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -12885,14 +13472,17 @@ pub mod api { #[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, + pub ref_index: passed::RefIndex, + } + pub mod passed { + use super::runtime_types; + pub type RefIndex = ::core::primitive::u32; } 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, @@ -12904,14 +13494,17 @@ pub mod api { #[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, + pub ref_index: not_passed::RefIndex, + } + pub mod not_passed { + use super::runtime_types; + pub type RefIndex = ::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, @@ -12923,7 +13516,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A referendum has been cancelled."] pub struct Cancelled { - pub ref_index: ::core::primitive::u32, + pub ref_index: cancelled::RefIndex, + } + pub mod cancelled { + use super::runtime_types; + pub type RefIndex = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for Cancelled { const PALLET: &'static str = "Democracy"; @@ -12941,8 +13538,13 @@ pub mod api { #[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, + pub who: delegated::Who, + pub target: delegated::Target, + } + pub mod delegated { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Target = ::subxt::utils::AccountId32; } impl ::subxt::events::StaticEvent for Delegated { const PALLET: &'static str = "Democracy"; @@ -12960,7 +13562,11 @@ pub mod api { #[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, + pub account: undelegated::Account, + } + pub mod undelegated { + use super::runtime_types; + pub type Account = ::subxt::utils::AccountId32; } impl ::subxt::events::StaticEvent for Undelegated { const PALLET: &'static str = "Democracy"; @@ -12978,9 +13584,15 @@ pub mod api { #[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, + pub who: vetoed::Who, + pub proposal_hash: vetoed::ProposalHash, + pub until: vetoed::Until, + } + pub mod vetoed { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type ProposalHash = ::subxt::utils::H256; + pub type Until = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for Vetoed { const PALLET: &'static str = "Democracy"; @@ -12998,7 +13610,11 @@ pub mod api { #[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, + pub proposal_hash: blacklisted::ProposalHash, + } + pub mod blacklisted { + use super::runtime_types; + pub type ProposalHash = ::subxt::utils::H256; } impl ::subxt::events::StaticEvent for Blacklisted { const PALLET: &'static str = "Democracy"; @@ -13016,10 +13632,16 @@ pub mod api { #[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>, + pub voter: voted::Voter, + pub ref_index: voted::RefIndex, + pub vote: voted::Vote, + } + pub mod voted { + use super::runtime_types; + pub type Voter = ::subxt::utils::AccountId32; + pub type RefIndex = ::core::primitive::u32; + pub type Vote = + runtime_types::pallet_democracy::vote::AccountVote<::core::primitive::u128>; } impl ::subxt::events::StaticEvent for Voted { const PALLET: &'static str = "Democracy"; @@ -13037,15 +13659,19 @@ pub mod api { #[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, + pub seconder: seconded::Seconder, + pub prop_index: seconded::PropIndex, + } + pub mod seconded { + use super::runtime_types; + pub type Seconder = ::subxt::utils::AccountId32; + pub type PropIndex = ::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, @@ -13057,7 +13683,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A proposal got canceled."] pub struct ProposalCanceled { - pub prop_index: ::core::primitive::u32, + pub prop_index: proposal_canceled::PropIndex, + } + pub mod proposal_canceled { + use super::runtime_types; + pub type PropIndex = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for ProposalCanceled { const PALLET: &'static str = "Democracy"; @@ -13075,8 +13705,13 @@ pub mod api { #[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, + pub owner: metadata_set::Owner, + pub hash: metadata_set::Hash, + } + pub mod metadata_set { + use super::runtime_types; + pub type Owner = runtime_types::pallet_democracy::types::MetadataOwner; + pub type Hash = ::subxt::utils::H256; } impl ::subxt::events::StaticEvent for MetadataSet { const PALLET: &'static str = "Democracy"; @@ -13094,8 +13729,13 @@ pub mod api { #[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, + pub owner: metadata_cleared::Owner, + pub hash: metadata_cleared::Hash, + } + pub mod metadata_cleared { + use super::runtime_types; + pub type Owner = runtime_types::pallet_democracy::types::MetadataOwner; + pub type Hash = ::subxt::utils::H256; } impl ::subxt::events::StaticEvent for MetadataCleared { const PALLET: &'static str = "Democracy"; @@ -13113,9 +13753,15 @@ pub mod api { #[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, + pub prev_owner: metadata_transferred::PrevOwner, + pub owner: metadata_transferred::Owner, + pub hash: metadata_transferred::Hash, + } + pub mod metadata_transferred { + use super::runtime_types; + pub type PrevOwner = runtime_types::pallet_democracy::types::MetadataOwner; + pub type Owner = runtime_types::pallet_democracy::types::MetadataOwner; + pub type Hash = ::subxt::utils::H256; } impl ::subxt::events::StaticEvent for MetadataTransferred { const PALLET: &'static str = "Democracy"; @@ -13829,9 +14475,15 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_members`]."] 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 new_members: set_members::NewMembers, + pub prime: set_members::Prime, + pub old_count: set_members::OldCount, + } + pub mod set_members { + use super::runtime_types; + pub type NewMembers = ::std::vec::Vec<::subxt::utils::AccountId32>; + pub type Prime = ::core::option::Option<::subxt::utils::AccountId32>; + pub type OldCount = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for SetMembers { const PALLET: &'static str = "Council"; @@ -13849,9 +14501,14 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::execute`]."] pub struct Execute { - pub proposal: ::std::boxed::Box, + pub proposal: ::std::boxed::Box, #[codec(compact)] - pub length_bound: ::core::primitive::u32, + pub length_bound: execute::LengthBound, + } + pub mod execute { + use super::runtime_types; + pub type Proposal = runtime_types::polkadot_runtime::RuntimeCall; + pub type LengthBound = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for Execute { const PALLET: &'static str = "Council"; @@ -13870,10 +14527,16 @@ pub mod api { #[doc = "See [`Pallet::propose`]."] pub struct Propose { #[codec(compact)] - pub threshold: ::core::primitive::u32, - pub proposal: ::std::boxed::Box, + pub threshold: propose::Threshold, + pub proposal: ::std::boxed::Box, #[codec(compact)] - pub length_bound: ::core::primitive::u32, + pub length_bound: propose::LengthBound, + } + pub mod propose { + use super::runtime_types; + pub type Threshold = ::core::primitive::u32; + pub type Proposal = runtime_types::polkadot_runtime::RuntimeCall; + pub type LengthBound = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for Propose { const PALLET: &'static str = "Council"; @@ -13891,10 +14554,16 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::vote`]."] pub struct Vote { - pub proposal: ::subxt::utils::H256, + pub proposal: vote::Proposal, #[codec(compact)] - pub index: ::core::primitive::u32, - pub approve: ::core::primitive::bool, + pub index: vote::Index, + pub approve: vote::Approve, + } + pub mod vote { + use super::runtime_types; + pub type Proposal = ::subxt::utils::H256; + pub type Index = ::core::primitive::u32; + pub type Approve = ::core::primitive::bool; } impl ::subxt::blocks::StaticExtrinsic for Vote { const PALLET: &'static str = "Council"; @@ -13912,7 +14581,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::disapprove_proposal`]."] pub struct DisapproveProposal { - pub proposal_hash: ::subxt::utils::H256, + pub proposal_hash: disapprove_proposal::ProposalHash, + } + pub mod disapprove_proposal { + use super::runtime_types; + pub type ProposalHash = ::subxt::utils::H256; } impl ::subxt::blocks::StaticExtrinsic for DisapproveProposal { const PALLET: &'static str = "Council"; @@ -13930,12 +14603,19 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::close`]."] pub struct Close { - pub proposal_hash: ::subxt::utils::H256, + pub proposal_hash: close::ProposalHash, #[codec(compact)] - pub index: ::core::primitive::u32, - pub proposal_weight_bound: runtime_types::sp_weights::weight_v2::Weight, + pub index: close::Index, + pub proposal_weight_bound: close::ProposalWeightBound, #[codec(compact)] - pub length_bound: ::core::primitive::u32, + pub length_bound: close::LengthBound, + } + pub mod close { + use super::runtime_types; + pub type ProposalHash = ::subxt::utils::H256; + pub type Index = ::core::primitive::u32; + pub type ProposalWeightBound = runtime_types::sp_weights::weight_v2::Weight; + pub type LengthBound = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for Close { const PALLET: &'static str = "Council"; @@ -13947,9 +14627,9 @@ pub mod api { #[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, + new_members: types::set_members::NewMembers, + prime: types::set_members::Prime, + old_count: types::set_members::OldCount, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Council", @@ -13970,8 +14650,8 @@ pub mod api { #[doc = "See [`Pallet::execute`]."] pub fn execute( &self, - proposal: runtime_types::polkadot_runtime::RuntimeCall, - length_bound: ::core::primitive::u32, + proposal: types::execute::Proposal, + length_bound: types::execute::LengthBound, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Council", @@ -13991,9 +14671,9 @@ pub mod api { #[doc = "See [`Pallet::propose`]."] pub fn propose( &self, - threshold: ::core::primitive::u32, - proposal: runtime_types::polkadot_runtime::RuntimeCall, - length_bound: ::core::primitive::u32, + threshold: types::propose::Threshold, + proposal: types::propose::Proposal, + length_bound: types::propose::LengthBound, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Council", @@ -14013,9 +14693,9 @@ pub mod api { #[doc = "See [`Pallet::vote`]."] pub fn vote( &self, - proposal: ::subxt::utils::H256, - index: ::core::primitive::u32, - approve: ::core::primitive::bool, + proposal: types::vote::Proposal, + index: types::vote::Index, + approve: types::vote::Approve, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Council", @@ -14036,7 +14716,7 @@ pub mod api { #[doc = "See [`Pallet::disapprove_proposal`]."] pub fn disapprove_proposal( &self, - proposal_hash: ::subxt::utils::H256, + proposal_hash: types::disapprove_proposal::ProposalHash, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Council", @@ -14052,10 +14732,10 @@ pub mod api { #[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, + proposal_hash: types::close::ProposalHash, + index: types::close::Index, + proposal_weight_bound: types::close::ProposalWeightBound, + length_bound: types::close::LengthBound, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Council", @@ -14092,10 +14772,17 @@ pub mod api { #[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, + pub account: proposed::Account, + pub proposal_index: proposed::ProposalIndex, + pub proposal_hash: proposed::ProposalHash, + pub threshold: proposed::Threshold, + } + pub mod proposed { + use super::runtime_types; + pub type Account = ::subxt::utils::AccountId32; + pub type ProposalIndex = ::core::primitive::u32; + pub type ProposalHash = ::subxt::utils::H256; + pub type Threshold = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for Proposed { const PALLET: &'static str = "Council"; @@ -14114,11 +14801,19 @@ pub mod api { #[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, + pub account: voted::Account, + pub proposal_hash: voted::ProposalHash, + pub voted: voted::Voted, + pub yes: voted::Yes, + pub no: voted::No, + } + pub mod voted { + use super::runtime_types; + pub type Account = ::subxt::utils::AccountId32; + pub type ProposalHash = ::subxt::utils::H256; + pub type Voted = ::core::primitive::bool; + pub type Yes = ::core::primitive::u32; + pub type No = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for Voted { const PALLET: &'static str = "Council"; @@ -14136,7 +14831,11 @@ pub mod api { #[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, + pub proposal_hash: approved::ProposalHash, + } + pub mod approved { + use super::runtime_types; + pub type ProposalHash = ::subxt::utils::H256; } impl ::subxt::events::StaticEvent for Approved { const PALLET: &'static str = "Council"; @@ -14154,7 +14853,11 @@ pub mod api { #[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, + pub proposal_hash: disapproved::ProposalHash, + } + pub mod disapproved { + use super::runtime_types; + pub type ProposalHash = ::subxt::utils::H256; } impl ::subxt::events::StaticEvent for Disapproved { const PALLET: &'static str = "Council"; @@ -14172,8 +14875,14 @@ pub mod api { #[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 proposal_hash: executed::ProposalHash, + pub result: executed::Result, + } + pub mod executed { + use super::runtime_types; + pub type ProposalHash = ::subxt::utils::H256; + pub type Result = + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>; } impl ::subxt::events::StaticEvent for Executed { const PALLET: &'static str = "Council"; @@ -14191,8 +14900,14 @@ pub mod api { #[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 proposal_hash: member_executed::ProposalHash, + pub result: member_executed::Result, + } + pub mod member_executed { + use super::runtime_types; + pub type ProposalHash = ::subxt::utils::H256; + pub type Result = + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>; } impl ::subxt::events::StaticEvent for MemberExecuted { const PALLET: &'static str = "Council"; @@ -14210,9 +14925,15 @@ pub mod api { #[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 proposal_hash: closed::ProposalHash, + pub yes: closed::Yes, + pub no: closed::No, + } + pub mod closed { + use super::runtime_types; + pub type ProposalHash = ::subxt::utils::H256; + pub type Yes = ::core::primitive::u32; + pub type No = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for Closed { const PALLET: &'static str = "Council"; @@ -14457,9 +15178,15 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_members`]."] 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 new_members: set_members::NewMembers, + pub prime: set_members::Prime, + pub old_count: set_members::OldCount, + } + pub mod set_members { + use super::runtime_types; + pub type NewMembers = ::std::vec::Vec<::subxt::utils::AccountId32>; + pub type Prime = ::core::option::Option<::subxt::utils::AccountId32>; + pub type OldCount = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for SetMembers { const PALLET: &'static str = "TechnicalCommittee"; @@ -14477,9 +15204,14 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::execute`]."] pub struct Execute { - pub proposal: ::std::boxed::Box, + pub proposal: ::std::boxed::Box, #[codec(compact)] - pub length_bound: ::core::primitive::u32, + pub length_bound: execute::LengthBound, + } + pub mod execute { + use super::runtime_types; + pub type Proposal = runtime_types::polkadot_runtime::RuntimeCall; + pub type LengthBound = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for Execute { const PALLET: &'static str = "TechnicalCommittee"; @@ -14498,10 +15230,16 @@ pub mod api { #[doc = "See [`Pallet::propose`]."] pub struct Propose { #[codec(compact)] - pub threshold: ::core::primitive::u32, - pub proposal: ::std::boxed::Box, + pub threshold: propose::Threshold, + pub proposal: ::std::boxed::Box, #[codec(compact)] - pub length_bound: ::core::primitive::u32, + pub length_bound: propose::LengthBound, + } + pub mod propose { + use super::runtime_types; + pub type Threshold = ::core::primitive::u32; + pub type Proposal = runtime_types::polkadot_runtime::RuntimeCall; + pub type LengthBound = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for Propose { const PALLET: &'static str = "TechnicalCommittee"; @@ -14519,10 +15257,16 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::vote`]."] pub struct Vote { - pub proposal: ::subxt::utils::H256, + pub proposal: vote::Proposal, #[codec(compact)] - pub index: ::core::primitive::u32, - pub approve: ::core::primitive::bool, + pub index: vote::Index, + pub approve: vote::Approve, + } + pub mod vote { + use super::runtime_types; + pub type Proposal = ::subxt::utils::H256; + pub type Index = ::core::primitive::u32; + pub type Approve = ::core::primitive::bool; } impl ::subxt::blocks::StaticExtrinsic for Vote { const PALLET: &'static str = "TechnicalCommittee"; @@ -14540,7 +15284,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::disapprove_proposal`]."] pub struct DisapproveProposal { - pub proposal_hash: ::subxt::utils::H256, + pub proposal_hash: disapprove_proposal::ProposalHash, + } + pub mod disapprove_proposal { + use super::runtime_types; + pub type ProposalHash = ::subxt::utils::H256; } impl ::subxt::blocks::StaticExtrinsic for DisapproveProposal { const PALLET: &'static str = "TechnicalCommittee"; @@ -14558,12 +15306,19 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::close`]."] pub struct Close { - pub proposal_hash: ::subxt::utils::H256, + pub proposal_hash: close::ProposalHash, #[codec(compact)] - pub index: ::core::primitive::u32, - pub proposal_weight_bound: runtime_types::sp_weights::weight_v2::Weight, + pub index: close::Index, + pub proposal_weight_bound: close::ProposalWeightBound, #[codec(compact)] - pub length_bound: ::core::primitive::u32, + pub length_bound: close::LengthBound, + } + pub mod close { + use super::runtime_types; + pub type ProposalHash = ::subxt::utils::H256; + pub type Index = ::core::primitive::u32; + pub type ProposalWeightBound = runtime_types::sp_weights::weight_v2::Weight; + pub type LengthBound = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for Close { const PALLET: &'static str = "TechnicalCommittee"; @@ -14575,9 +15330,9 @@ pub mod api { #[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, + new_members: types::set_members::NewMembers, + prime: types::set_members::Prime, + old_count: types::set_members::OldCount, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "TechnicalCommittee", @@ -14598,8 +15353,8 @@ pub mod api { #[doc = "See [`Pallet::execute`]."] pub fn execute( &self, - proposal: runtime_types::polkadot_runtime::RuntimeCall, - length_bound: ::core::primitive::u32, + proposal: types::execute::Proposal, + length_bound: types::execute::LengthBound, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "TechnicalCommittee", @@ -14619,9 +15374,9 @@ pub mod api { #[doc = "See [`Pallet::propose`]."] pub fn propose( &self, - threshold: ::core::primitive::u32, - proposal: runtime_types::polkadot_runtime::RuntimeCall, - length_bound: ::core::primitive::u32, + threshold: types::propose::Threshold, + proposal: types::propose::Proposal, + length_bound: types::propose::LengthBound, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "TechnicalCommittee", @@ -14641,9 +15396,9 @@ pub mod api { #[doc = "See [`Pallet::vote`]."] pub fn vote( &self, - proposal: ::subxt::utils::H256, - index: ::core::primitive::u32, - approve: ::core::primitive::bool, + proposal: types::vote::Proposal, + index: types::vote::Index, + approve: types::vote::Approve, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "TechnicalCommittee", @@ -14664,7 +15419,7 @@ pub mod api { #[doc = "See [`Pallet::disapprove_proposal`]."] pub fn disapprove_proposal( &self, - proposal_hash: ::subxt::utils::H256, + proposal_hash: types::disapprove_proposal::ProposalHash, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "TechnicalCommittee", @@ -14680,10 +15435,10 @@ pub mod api { #[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, + proposal_hash: types::close::ProposalHash, + index: types::close::Index, + proposal_weight_bound: types::close::ProposalWeightBound, + length_bound: types::close::LengthBound, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "TechnicalCommittee", @@ -14720,10 +15475,17 @@ pub mod api { #[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, + pub account: proposed::Account, + pub proposal_index: proposed::ProposalIndex, + pub proposal_hash: proposed::ProposalHash, + pub threshold: proposed::Threshold, + } + pub mod proposed { + use super::runtime_types; + pub type Account = ::subxt::utils::AccountId32; + pub type ProposalIndex = ::core::primitive::u32; + pub type ProposalHash = ::subxt::utils::H256; + pub type Threshold = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for Proposed { const PALLET: &'static str = "TechnicalCommittee"; @@ -14742,11 +15504,19 @@ pub mod api { #[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, + pub account: voted::Account, + pub proposal_hash: voted::ProposalHash, + pub voted: voted::Voted, + pub yes: voted::Yes, + pub no: voted::No, + } + pub mod voted { + use super::runtime_types; + pub type Account = ::subxt::utils::AccountId32; + pub type ProposalHash = ::subxt::utils::H256; + pub type Voted = ::core::primitive::bool; + pub type Yes = ::core::primitive::u32; + pub type No = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for Voted { const PALLET: &'static str = "TechnicalCommittee"; @@ -14764,7 +15534,11 @@ pub mod api { #[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, + pub proposal_hash: approved::ProposalHash, + } + pub mod approved { + use super::runtime_types; + pub type ProposalHash = ::subxt::utils::H256; } impl ::subxt::events::StaticEvent for Approved { const PALLET: &'static str = "TechnicalCommittee"; @@ -14782,7 +15556,11 @@ pub mod api { #[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, + pub proposal_hash: disapproved::ProposalHash, + } + pub mod disapproved { + use super::runtime_types; + pub type ProposalHash = ::subxt::utils::H256; } impl ::subxt::events::StaticEvent for Disapproved { const PALLET: &'static str = "TechnicalCommittee"; @@ -14800,8 +15578,14 @@ pub mod api { #[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 proposal_hash: executed::ProposalHash, + pub result: executed::Result, + } + pub mod executed { + use super::runtime_types; + pub type ProposalHash = ::subxt::utils::H256; + pub type Result = + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>; } impl ::subxt::events::StaticEvent for Executed { const PALLET: &'static str = "TechnicalCommittee"; @@ -14819,8 +15603,14 @@ pub mod api { #[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 proposal_hash: member_executed::ProposalHash, + pub result: member_executed::Result, + } + pub mod member_executed { + use super::runtime_types; + pub type ProposalHash = ::subxt::utils::H256; + pub type Result = + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>; } impl ::subxt::events::StaticEvent for MemberExecuted { const PALLET: &'static str = "TechnicalCommittee"; @@ -14838,9 +15628,15 @@ pub mod api { #[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 proposal_hash: closed::ProposalHash, + pub yes: closed::Yes, + pub no: closed::No, + } + pub mod closed { + use super::runtime_types; + pub type ProposalHash = ::subxt::utils::H256; + pub type Yes = ::core::primitive::u32; + pub type No = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for Closed { const PALLET: &'static str = "TechnicalCommittee"; @@ -15085,9 +15881,14 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::vote`]."] pub struct Vote { - pub votes: ::std::vec::Vec<::subxt::utils::AccountId32>, + pub votes: vote::Votes, #[codec(compact)] - pub value: ::core::primitive::u128, + pub value: vote::Value, + } + pub mod vote { + use super::runtime_types; + pub type Votes = ::std::vec::Vec<::subxt::utils::AccountId32>; + pub type Value = ::core::primitive::u128; } impl ::subxt::blocks::StaticExtrinsic for Vote { const PALLET: &'static str = "PhragmenElection"; @@ -15122,7 +15923,11 @@ pub mod api { #[doc = "See [`Pallet::submit_candidacy`]."] pub struct SubmitCandidacy { #[codec(compact)] - pub candidate_count: ::core::primitive::u32, + pub candidate_count: submit_candidacy::CandidateCount, + } + pub mod submit_candidacy { + use super::runtime_types; + pub type CandidateCount = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for SubmitCandidacy { const PALLET: &'static str = "PhragmenElection"; @@ -15140,7 +15945,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::renounce_candidacy`]."] pub struct RenounceCandidacy { - pub renouncing: runtime_types::pallet_elections_phragmen::Renouncing, + pub renouncing: renounce_candidacy::Renouncing, + } + pub mod renounce_candidacy { + use super::runtime_types; + pub type Renouncing = runtime_types::pallet_elections_phragmen::Renouncing; } impl ::subxt::blocks::StaticExtrinsic for RenounceCandidacy { const PALLET: &'static str = "PhragmenElection"; @@ -15158,9 +15967,15 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::remove_member`]."] pub struct RemoveMember { - pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub slash_bond: ::core::primitive::bool, - pub rerun_election: ::core::primitive::bool, + pub who: remove_member::Who, + pub slash_bond: remove_member::SlashBond, + pub rerun_election: remove_member::RerunElection, + } + pub mod remove_member { + use super::runtime_types; + pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type SlashBond = ::core::primitive::bool; + pub type RerunElection = ::core::primitive::bool; } impl ::subxt::blocks::StaticExtrinsic for RemoveMember { const PALLET: &'static str = "PhragmenElection"; @@ -15178,8 +15993,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::clean_defunct_voters`]."] pub struct CleanDefunctVoters { - pub num_voters: ::core::primitive::u32, - pub num_defunct: ::core::primitive::u32, + pub num_voters: clean_defunct_voters::NumVoters, + pub num_defunct: clean_defunct_voters::NumDefunct, + } + pub mod clean_defunct_voters { + use super::runtime_types; + pub type NumVoters = ::core::primitive::u32; + pub type NumDefunct = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for CleanDefunctVoters { const PALLET: &'static str = "PhragmenElection"; @@ -15191,8 +16011,8 @@ pub mod api { #[doc = "See [`Pallet::vote`]."] pub fn vote( &self, - votes: ::std::vec::Vec<::subxt::utils::AccountId32>, - value: ::core::primitive::u128, + votes: types::vote::Votes, + value: types::vote::Value, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "PhragmenElection", @@ -15222,7 +16042,7 @@ pub mod api { #[doc = "See [`Pallet::submit_candidacy`]."] pub fn submit_candidacy( &self, - candidate_count: ::core::primitive::u32, + candidate_count: types::submit_candidacy::CandidateCount, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "PhragmenElection", @@ -15239,7 +16059,7 @@ pub mod api { #[doc = "See [`Pallet::renounce_candidacy`]."] pub fn renounce_candidacy( &self, - renouncing: runtime_types::pallet_elections_phragmen::Renouncing, + renouncing: types::renounce_candidacy::Renouncing, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "PhragmenElection", @@ -15256,9 +16076,9 @@ pub mod api { #[doc = "See [`Pallet::remove_member`]."] pub fn remove_member( &self, - who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - slash_bond: ::core::primitive::bool, - rerun_election: ::core::primitive::bool, + who: types::remove_member::Who, + slash_bond: types::remove_member::SlashBond, + rerun_election: types::remove_member::RerunElection, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "PhragmenElection", @@ -15278,8 +16098,8 @@ pub mod api { #[doc = "See [`Pallet::clean_defunct_voters`]."] pub fn clean_defunct_voters( &self, - num_voters: ::core::primitive::u32, - num_defunct: ::core::primitive::u32, + num_voters: types::clean_defunct_voters::NumVoters, + num_defunct: types::clean_defunct_voters::NumDefunct, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "PhragmenElection", @@ -15317,8 +16137,12 @@ pub mod api { #[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)>, + pub new_members: new_term::NewMembers, + } + pub mod new_term { + use super::runtime_types; + pub type NewMembers = + ::std::vec::Vec<(::subxt::utils::AccountId32, ::core::primitive::u128)>; } impl ::subxt::events::StaticEvent for NewTerm { const PALLET: &'static str = "PhragmenElection"; @@ -15370,7 +16194,11 @@ pub mod api { #[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, + pub member: member_kicked::Member, + } + pub mod member_kicked { + use super::runtime_types; + pub type Member = ::subxt::utils::AccountId32; } impl ::subxt::events::StaticEvent for MemberKicked { const PALLET: &'static str = "PhragmenElection"; @@ -15388,7 +16216,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Someone has renounced their candidacy."] pub struct Renounced { - pub candidate: ::subxt::utils::AccountId32, + pub candidate: renounced::Candidate, + } + pub mod renounced { + use super::runtime_types; + pub type Candidate = ::subxt::utils::AccountId32; } impl ::subxt::events::StaticEvent for Renounced { const PALLET: &'static str = "PhragmenElection"; @@ -15409,8 +16241,13 @@ pub mod api { #[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, + pub candidate: candidate_slashed::Candidate, + pub amount: candidate_slashed::Amount, + } + pub mod candidate_slashed { + use super::runtime_types; + pub type Candidate = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for CandidateSlashed { const PALLET: &'static str = "PhragmenElection"; @@ -15428,8 +16265,13 @@ pub mod api { #[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, - pub amount: ::core::primitive::u128, + pub seat_holder: seat_holder_slashed::SeatHolder, + pub amount: seat_holder_slashed::Amount, + } + pub mod seat_holder_slashed { + use super::runtime_types; + pub type SeatHolder = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for SeatHolderSlashed { const PALLET: &'static str = "PhragmenElection"; @@ -15794,7 +16636,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::add_member`]."] 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 = "TechnicalMembership"; @@ -15812,7 +16658,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::remove_member`]."] pub struct RemoveMember { - pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub who: remove_member::Who, + } + pub mod remove_member { + use super::runtime_types; + pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; } impl ::subxt::blocks::StaticExtrinsic for RemoveMember { const PALLET: &'static str = "TechnicalMembership"; @@ -15830,8 +16680,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::swap_member`]."] pub struct SwapMember { - pub remove: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub add: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub remove: swap_member::Remove, + pub add: swap_member::Add, + } + pub mod swap_member { + use super::runtime_types; + pub type Remove = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Add = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; } impl ::subxt::blocks::StaticExtrinsic for SwapMember { const PALLET: &'static str = "TechnicalMembership"; @@ -15849,7 +16704,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::reset_members`]."] pub struct ResetMembers { - pub members: ::std::vec::Vec<::subxt::utils::AccountId32>, + pub members: reset_members::Members, + } + pub mod reset_members { + use super::runtime_types; + pub type Members = ::std::vec::Vec<::subxt::utils::AccountId32>; } impl ::subxt::blocks::StaticExtrinsic for ResetMembers { const PALLET: &'static str = "TechnicalMembership"; @@ -15867,7 +16726,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::change_key`]."] pub struct ChangeKey { - pub new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub new: change_key::New, + } + pub mod change_key { + use super::runtime_types; + pub type New = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; } impl ::subxt::blocks::StaticExtrinsic for ChangeKey { const PALLET: &'static str = "TechnicalMembership"; @@ -15885,7 +16748,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_prime`]."] pub struct SetPrime { - pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub who: set_prime::Who, + } + pub mod set_prime { + use super::runtime_types; + pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; } impl ::subxt::blocks::StaticExtrinsic for SetPrime { const PALLET: &'static str = "TechnicalMembership"; @@ -15913,7 +16780,7 @@ pub mod api { #[doc = "See [`Pallet::add_member`]."] pub fn add_member( &self, - who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + who: types::add_member::Who, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "TechnicalMembership", @@ -15929,7 +16796,7 @@ pub mod api { #[doc = "See [`Pallet::remove_member`]."] pub fn remove_member( &self, - who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + who: types::remove_member::Who, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "TechnicalMembership", @@ -15946,8 +16813,8 @@ pub mod api { #[doc = "See [`Pallet::swap_member`]."] pub fn swap_member( &self, - remove: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - add: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + remove: types::swap_member::Remove, + add: types::swap_member::Add, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "TechnicalMembership", @@ -15964,7 +16831,7 @@ pub mod api { #[doc = "See [`Pallet::reset_members`]."] pub fn reset_members( &self, - members: ::std::vec::Vec<::subxt::utils::AccountId32>, + members: types::reset_members::Members, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "TechnicalMembership", @@ -15980,7 +16847,7 @@ pub mod api { #[doc = "See [`Pallet::change_key`]."] pub fn change_key( &self, - new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + new: types::change_key::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "TechnicalMembership", @@ -15997,7 +16864,7 @@ pub mod api { #[doc = "See [`Pallet::set_prime`]."] pub fn set_prime( &self, - who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + who: types::set_prime::Who, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "TechnicalMembership", @@ -16205,8 +17072,14 @@ pub mod api { #[doc = "See [`Pallet::propose_spend`]."] 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"; @@ -16225,7 +17098,11 @@ pub mod api { #[doc = "See [`Pallet::reject_proposal`]."] 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"; @@ -16244,7 +17121,11 @@ pub mod api { #[doc = "See [`Pallet::approve_proposal`]."] 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"; @@ -16263,8 +17144,14 @@ pub mod api { #[doc = "See [`Pallet::spend`]."] pub struct Spend { #[codec(compact)] - pub amount: ::core::primitive::u128, - pub beneficiary: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub amount: spend::Amount, + pub beneficiary: spend::Beneficiary, + } + pub mod spend { + use super::runtime_types; + pub type Amount = ::core::primitive::u128; + pub type Beneficiary = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; } impl ::subxt::blocks::StaticExtrinsic for Spend { const PALLET: &'static str = "Treasury"; @@ -16283,7 +17170,11 @@ pub mod api { #[doc = "See [`Pallet::remove_approval`]."] 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"; @@ -16295,8 +17186,8 @@ pub mod api { #[doc = "See [`Pallet::propose_spend`]."] pub fn propose_spend( &self, - value: ::core::primitive::u128, - beneficiary: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + value: types::propose_spend::Value, + beneficiary: types::propose_spend::Beneficiary, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Treasury", @@ -16312,7 +17203,7 @@ pub mod api { #[doc = "See [`Pallet::reject_proposal`]."] pub fn reject_proposal( &self, - proposal_id: ::core::primitive::u32, + proposal_id: types::reject_proposal::ProposalId, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Treasury", @@ -16328,7 +17219,7 @@ pub mod api { #[doc = "See [`Pallet::approve_proposal`]."] pub fn approve_proposal( &self, - proposal_id: ::core::primitive::u32, + proposal_id: types::approve_proposal::ProposalId, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Treasury", @@ -16344,8 +17235,8 @@ pub mod api { #[doc = "See [`Pallet::spend`]."] pub fn spend( &self, - amount: ::core::primitive::u128, - beneficiary: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + amount: types::spend::Amount, + beneficiary: types::spend::Beneficiary, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Treasury", @@ -16364,7 +17255,7 @@ pub mod api { #[doc = "See [`Pallet::remove_approval`]."] pub fn remove_approval( &self, - proposal_id: ::core::primitive::u32, + proposal_id: types::remove_approval::ProposalId, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Treasury", @@ -16385,7 +17276,6 @@ pub mod api { 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, @@ -16397,14 +17287,17 @@ 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"; const EVENT: &'static str = "Proposed"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -16416,7 +17309,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"; @@ -16434,9 +17331,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"; @@ -16454,15 +17357,19 @@ 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"; const EVENT: &'static str = "Rejected"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -16474,14 +17381,17 @@ 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"; const EVENT: &'static str = "Burnt"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -16493,14 +17403,17 @@ 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"; const EVENT: &'static str = "Rollover"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -16512,7 +17425,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"; @@ -16530,9 +17447,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"; @@ -16550,8 +17473,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"; @@ -16820,10 +17748,15 @@ pub mod api { #[doc = "See [`Pallet::vote`]."] 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"; @@ -16841,17 +17774,24 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::delegate`]."] 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"; const CALL: &'static str = "delegate"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -16863,7 +17803,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::undelegate`]."] 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"; @@ -16881,8 +17825,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::unlock`]."] 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"; @@ -16900,8 +17849,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::remove_vote`]."] 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"; @@ -16919,9 +17873,15 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::remove_other_vote`]."] 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"; @@ -16933,10 +17893,8 @@ pub mod api { #[doc = "See [`Pallet::vote`]."] pub fn vote( &self, - poll_index: ::core::primitive::u32, - vote: runtime_types::pallet_conviction_voting::vote::AccountVote< - ::core::primitive::u128, - >, + poll_index: types::vote::PollIndex, + vote: types::vote::Vote, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ConvictionVoting", @@ -16953,10 +17911,10 @@ pub mod api { #[doc = "See [`Pallet::delegate`]."] pub fn delegate( &self, - class: ::core::primitive::u16, - to: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - conviction: runtime_types::pallet_conviction_voting::conviction::Conviction, - balance: ::core::primitive::u128, + 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", @@ -16977,7 +17935,7 @@ pub mod api { #[doc = "See [`Pallet::undelegate`]."] pub fn undelegate( &self, - class: ::core::primitive::u16, + class: types::undelegate::Class, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ConvictionVoting", @@ -16994,8 +17952,8 @@ pub mod api { #[doc = "See [`Pallet::unlock`]."] pub fn unlock( &self, - class: ::core::primitive::u16, - target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + class: types::unlock::Class, + target: types::unlock::Target, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ConvictionVoting", @@ -17012,8 +17970,8 @@ pub mod api { #[doc = "See [`Pallet::remove_vote`]."] pub fn remove_vote( &self, - class: ::core::option::Option<::core::primitive::u16>, - index: ::core::primitive::u32, + class: types::remove_vote::Class, + index: types::remove_vote::Index, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ConvictionVoting", @@ -17030,9 +17988,9 @@ pub mod api { #[doc = "See [`Pallet::remove_other_vote`]."] pub fn remove_other_vote( &self, - target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - class: ::core::primitive::u16, - index: ::core::primitive::u32, + 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", @@ -17066,10 +18024,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"; @@ -17085,7 +18045,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"; @@ -17307,22 +18271,26 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::submit`]."] 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::polkadot_runtime::OriginCaller; + pub type Proposal = runtime_types::frame_support::traits::preimages::Bounded< runtime_types::polkadot_runtime::RuntimeCall, - >, - 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"; const CALL: &'static str = "submit"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -17334,14 +18302,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::place_decision_deposit`]."] 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"; 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, @@ -17353,14 +18324,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::refund_decision_deposit`]."] 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"; 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, @@ -17372,14 +18346,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::cancel`]."] 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"; const CALL: &'static str = "cancel"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -17391,14 +18368,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::kill`]."] 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"; const CALL: &'static str = "kill"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -17410,14 +18390,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::nudge_referendum`]."] 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"; const CALL: &'static str = "nudge_referendum"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -17429,14 +18412,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::one_fewer_deciding`]."] 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"; 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, @@ -17448,7 +18434,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::refund_submission_deposit`]."] 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"; @@ -17466,8 +18456,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_metadata`]."] 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"; @@ -17479,13 +18474,9 @@ pub mod api { #[doc = "See [`Pallet::submit`]."] pub fn submit( &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, - >, + proposal_origin: types::submit::ProposalOrigin, + proposal: types::submit::Proposal, + enactment_moment: types::submit::EnactmentMoment, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Referenda", @@ -17506,7 +18497,7 @@ pub mod api { #[doc = "See [`Pallet::place_decision_deposit`]."] pub fn place_decision_deposit( &self, - index: ::core::primitive::u32, + index: types::place_decision_deposit::Index, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Referenda", @@ -17522,7 +18513,7 @@ pub mod api { #[doc = "See [`Pallet::refund_decision_deposit`]."] pub fn refund_decision_deposit( &self, - index: ::core::primitive::u32, + index: types::refund_decision_deposit::Index, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Referenda", @@ -17538,7 +18529,7 @@ pub mod api { #[doc = "See [`Pallet::cancel`]."] pub fn cancel( &self, - index: ::core::primitive::u32, + index: types::cancel::Index, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Referenda", @@ -17553,10 +18544,7 @@ pub mod api { ) } #[doc = "See [`Pallet::kill`]."] - pub fn kill( - &self, - index: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + pub fn kill(&self, index: types::kill::Index) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Referenda", "kill", @@ -17572,7 +18560,7 @@ pub mod api { #[doc = "See [`Pallet::nudge_referendum`]."] pub fn nudge_referendum( &self, - index: ::core::primitive::u32, + index: types::nudge_referendum::Index, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Referenda", @@ -17589,7 +18577,7 @@ pub mod api { #[doc = "See [`Pallet::one_fewer_deciding`]."] pub fn one_fewer_deciding( &self, - track: ::core::primitive::u16, + track: types::one_fewer_deciding::Track, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Referenda", @@ -17606,7 +18594,7 @@ pub mod api { #[doc = "See [`Pallet::refund_submission_deposit`]."] pub fn refund_submission_deposit( &self, - index: ::core::primitive::u32, + index: types::refund_submission_deposit::Index, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Referenda", @@ -17622,8 +18610,8 @@ pub mod api { #[doc = "See [`Pallet::set_metadata`]."] pub fn set_metadata( &self, - index: ::core::primitive::u32, - maybe_hash: ::core::option::Option<::subxt::utils::H256>, + index: types::set_metadata::Index, + maybe_hash: types::set_metadata::MaybeHash, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Referenda", @@ -17655,11 +18643,17 @@ 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::polkadot_runtime::RuntimeCall, - >, + >; } impl ::subxt::events::StaticEvent for Submitted { const PALLET: &'static str = "Referenda"; @@ -17677,9 +18671,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"; @@ -17697,9 +18697,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"; @@ -17717,8 +18723,13 @@ pub mod api { #[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, + 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"; @@ -17736,20 +18747,26 @@ 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::polkadot_runtime::RuntimeCall, - >, - 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"; const EVENT: &'static str = "DecisionStarted"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -17760,14 +18777,17 @@ 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"; const EVENT: &'static str = "ConfirmStarted"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -17778,7 +18798,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"; @@ -17796,16 +18820,20 @@ 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"; const EVENT: &'static str = "Confirmed"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -17817,7 +18845,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"; @@ -17835,9 +18867,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"; @@ -17855,9 +18892,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"; @@ -17875,9 +18917,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"; @@ -17895,9 +18942,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"; @@ -17915,9 +18967,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"; @@ -17935,8 +18993,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"; @@ -17954,8 +19017,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"; @@ -18339,7 +19407,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::whitelist_call`]."] 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"; @@ -18357,7 +19429,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::remove_whitelisted_call`]."] 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"; @@ -18375,9 +19451,15 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::dispatch_whitelisted_call`]."] 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"; @@ -18395,7 +19477,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::dispatch_whitelisted_call_with_preimage`]."] 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::polkadot_runtime::RuntimeCall; } impl ::subxt::blocks::StaticExtrinsic for DispatchWhitelistedCallWithPreimage { const PALLET: &'static str = "Whitelist"; @@ -18407,7 +19493,7 @@ pub mod api { #[doc = "See [`Pallet::whitelist_call`]."] pub fn whitelist_call( &self, - call_hash: ::subxt::utils::H256, + call_hash: types::whitelist_call::CallHash, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Whitelist", @@ -18424,7 +19510,7 @@ pub mod api { #[doc = "See [`Pallet::remove_whitelisted_call`]."] pub fn remove_whitelisted_call( &self, - call_hash: ::subxt::utils::H256, + call_hash: types::remove_whitelisted_call::CallHash, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Whitelist", @@ -18441,9 +19527,9 @@ pub mod api { #[doc = "See [`Pallet::dispatch_whitelisted_call`]."] pub fn dispatch_whitelisted_call( &self, - call_hash: ::subxt::utils::H256, - call_encoded_len: ::core::primitive::u32, - call_weight_witness: runtime_types::sp_weights::weight_v2::Weight, + 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", @@ -18464,7 +19550,7 @@ pub mod api { #[doc = "See [`Pallet::dispatch_whitelisted_call_with_preimage`]."] pub fn dispatch_whitelisted_call_with_preimage( &self, - call: runtime_types::polkadot_runtime::RuntimeCall, + call: types::dispatch_whitelisted_call_with_preimage::Call, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( @@ -18498,7 +19584,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"; @@ -18515,7 +19605,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"; @@ -18532,13 +19626,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"; @@ -18620,9 +19719,14 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::claim`]."] 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"; @@ -18640,16 +19744,23 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::mint_claim`]."] 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"; @@ -18667,10 +19778,16 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::claim_attest`]."] 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"; @@ -18688,7 +19805,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::attest`]."] 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"; @@ -18706,9 +19827,15 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::move_claim`]."] 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"; @@ -18720,8 +19847,8 @@ pub mod api { #[doc = "See [`Pallet::claim`]."] pub fn claim( &self, - dest: ::subxt::utils::AccountId32, - ethereum_signature : runtime_types :: polkadot_runtime_common :: claims :: EcdsaSignature, + dest: types::claim::Dest, + ethereum_signature: types::claim::EthereumSignature, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Claims", @@ -18741,16 +19868,10 @@ pub mod api { #[doc = "See [`Pallet::mint_claim`]."] pub fn mint_claim( &self, - who: runtime_types::polkadot_runtime_common::claims::EthereumAddress, - value: ::core::primitive::u128, - vesting_schedule: ::core::option::Option<( - ::core::primitive::u128, - ::core::primitive::u128, - ::core::primitive::u32, - )>, - statement: ::core::option::Option< - runtime_types::polkadot_runtime_common::claims::StatementKind, - >, + 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", @@ -18771,9 +19892,9 @@ pub mod api { #[doc = "See [`Pallet::claim_attest`]."] pub fn claim_attest( &self, - dest: ::subxt::utils::AccountId32, - ethereum_signature : runtime_types :: polkadot_runtime_common :: claims :: EcdsaSignature, - statement: ::std::vec::Vec<::core::primitive::u8>, + 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", @@ -18793,7 +19914,7 @@ pub mod api { #[doc = "See [`Pallet::attest`]."] pub fn attest( &self, - statement: ::std::vec::Vec<::core::primitive::u8>, + statement: types::attest::Statement, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Claims", @@ -18810,9 +19931,9 @@ pub mod api { #[doc = "See [`Pallet::move_claim`]."] pub fn move_claim( &self, - old: runtime_types::polkadot_runtime_common::claims::EthereumAddress, - new: runtime_types::polkadot_runtime_common::claims::EthereumAddress, - maybe_preclaim: ::core::option::Option<::subxt::utils::AccountId32>, + 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", @@ -18848,10 +19969,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"; @@ -19152,7 +20279,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::vest_other`]."] 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"; @@ -19170,11 +20301,16 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::vested_transfer`]."] 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"; @@ -19192,12 +20328,18 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::force_vested_transfer`]."] 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"; @@ -19215,8 +20357,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::merge_schedules`]."] 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"; @@ -19242,7 +20389,7 @@ pub mod api { #[doc = "See [`Pallet::vest_other`]."] pub fn vest_other( &self, - target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + target: types::vest_other::Target, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Vesting", @@ -19258,11 +20405,8 @@ pub mod api { #[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, - >, + target: types::vested_transfer::Target, + schedule: types::vested_transfer::Schedule, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Vesting", @@ -19278,12 +20422,9 @@ pub mod api { #[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, - >, + 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", @@ -19304,8 +20445,8 @@ pub mod api { #[doc = "See [`Pallet::merge_schedules`]."] pub fn merge_schedules( &self, - schedule1_index: ::core::primitive::u32, - schedule2_index: ::core::primitive::u32, + schedule1_index: types::merge_schedules::Schedule1Index, + schedule2_index: types::merge_schedules::Schedule2Index, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Vesting", @@ -19340,8 +20481,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"; @@ -19359,7 +20505,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"; @@ -19512,7 +20662,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::batch`]."] 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"; @@ -19530,8 +20684,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::as_derivative`]."] 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::polkadot_runtime::RuntimeCall; } impl ::subxt::blocks::StaticExtrinsic for AsDerivative { const PALLET: &'static str = "Utility"; @@ -19549,7 +20708,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::batch_all`]."] 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"; @@ -19567,8 +20730,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::dispatch_as`]."] 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::polkadot_runtime::OriginCaller; + pub type Call = runtime_types::polkadot_runtime::RuntimeCall; } impl ::subxt::blocks::StaticExtrinsic for DispatchAs { const PALLET: &'static str = "Utility"; @@ -19586,7 +20754,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::force_batch`]."] 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"; @@ -19604,8 +20776,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::with_weight`]."] 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::polkadot_runtime::RuntimeCall; + pub type Weight = runtime_types::sp_weights::weight_v2::Weight; } impl ::subxt::blocks::StaticExtrinsic for WithWeight { const PALLET: &'static str = "Utility"; @@ -19617,7 +20794,7 @@ pub mod api { #[doc = "See [`Pallet::batch`]."] pub fn batch( &self, - calls: ::std::vec::Vec, + calls: types::batch::Calls, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Utility", @@ -19633,8 +20810,8 @@ pub mod api { #[doc = "See [`Pallet::as_derivative`]."] pub fn as_derivative( &self, - index: ::core::primitive::u16, - call: runtime_types::polkadot_runtime::RuntimeCall, + index: types::as_derivative::Index, + call: types::as_derivative::Call, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Utility", @@ -19654,7 +20831,7 @@ pub mod api { #[doc = "See [`Pallet::batch_all`]."] pub fn batch_all( &self, - calls: ::std::vec::Vec, + calls: types::batch_all::Calls, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Utility", @@ -19670,8 +20847,8 @@ pub mod api { #[doc = "See [`Pallet::dispatch_as`]."] pub fn dispatch_as( &self, - as_origin: runtime_types::polkadot_runtime::OriginCaller, - call: runtime_types::polkadot_runtime::RuntimeCall, + as_origin: types::dispatch_as::AsOrigin, + call: types::dispatch_as::Call, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Utility", @@ -19691,7 +20868,7 @@ pub mod api { #[doc = "See [`Pallet::force_batch`]."] pub fn force_batch( &self, - calls: ::std::vec::Vec, + calls: types::force_batch::Calls, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Utility", @@ -19707,8 +20884,8 @@ pub mod api { #[doc = "See [`Pallet::with_weight`]."] pub fn with_weight( &self, - call: runtime_types::polkadot_runtime::RuntimeCall, - weight: runtime_types::sp_weights::weight_v2::Weight, + call: types::with_weight::Call, + weight: types::with_weight::Weight, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Utility", @@ -19744,8 +20921,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"; @@ -19811,7 +20993,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"; @@ -19829,7 +21015,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"; @@ -19883,7 +21074,12 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::add_registrar`]."] 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"; @@ -19901,8 +21097,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_identity`]."] 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::types::IdentityInfo; } impl ::subxt::blocks::StaticExtrinsic for SetIdentity { const PALLET: &'static str = "Identity"; @@ -19920,10 +21119,14 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_subs`]."] 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"; @@ -19958,16 +21161,20 @@ pub mod api { #[doc = "See [`Pallet::request_judgement`]."] 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"; const CALL: &'static str = "request_judgement"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -19979,7 +21186,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::cancel_request`]."] 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"; @@ -19998,9 +21209,14 @@ pub mod api { #[doc = "See [`Pallet::set_fee`]."] 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"; @@ -20019,8 +21235,13 @@ pub mod api { #[doc = "See [`Pallet::set_account_id`]."] 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"; @@ -20039,10 +21260,15 @@ pub mod api { #[doc = "See [`Pallet::set_fields`]."] pub struct SetFields { #[codec(compact)] - pub index: ::core::primitive::u32, - pub fields: runtime_types::pallet_identity::types::BitFlags< + 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 = runtime_types::pallet_identity::types::BitFlags< runtime_types::pallet_identity::types::IdentityField, - >, + >; } impl ::subxt::blocks::StaticExtrinsic for SetFields { const PALLET: &'static str = "Identity"; @@ -20061,11 +21287,18 @@ pub mod api { #[doc = "See [`Pallet::provide_judgement`]."] 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"; @@ -20083,7 +21316,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::kill_identity`]."] 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"; @@ -20101,8 +21338,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::add_sub`]."] 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"; @@ -20120,8 +21362,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::rename_sub`]."] 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"; @@ -20139,7 +21386,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::remove_sub`]."] 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"; @@ -20167,7 +21418,7 @@ pub mod api { #[doc = "See [`Pallet::add_registrar`]."] pub fn add_registrar( &self, - account: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + account: types::add_registrar::Account, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Identity", @@ -20183,7 +21434,7 @@ pub mod api { #[doc = "See [`Pallet::set_identity`]."] pub fn set_identity( &self, - info: runtime_types::pallet_identity::types::IdentityInfo, + info: types::set_identity::Info, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Identity", @@ -20202,10 +21453,7 @@ pub mod api { #[doc = "See [`Pallet::set_subs`]."] pub fn set_subs( &self, - subs: ::std::vec::Vec<( - ::subxt::utils::AccountId32, - runtime_types::pallet_identity::types::Data, - )>, + subs: types::set_subs::Subs, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Identity", @@ -20236,8 +21484,8 @@ pub mod api { #[doc = "See [`Pallet::request_judgement`]."] pub fn request_judgement( &self, - reg_index: ::core::primitive::u32, - max_fee: ::core::primitive::u128, + reg_index: types::request_judgement::RegIndex, + max_fee: types::request_judgement::MaxFee, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Identity", @@ -20253,7 +21501,7 @@ pub mod api { #[doc = "See [`Pallet::cancel_request`]."] pub fn cancel_request( &self, - reg_index: ::core::primitive::u32, + reg_index: types::cancel_request::RegIndex, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Identity", @@ -20270,8 +21518,8 @@ pub mod api { #[doc = "See [`Pallet::set_fee`]."] pub fn set_fee( &self, - index: ::core::primitive::u32, - fee: ::core::primitive::u128, + index: types::set_fee::Index, + fee: types::set_fee::Fee, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Identity", @@ -20288,8 +21536,8 @@ pub mod api { #[doc = "See [`Pallet::set_account_id`]."] pub fn set_account_id( &self, - index: ::core::primitive::u32, - new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + index: types::set_account_id::Index, + new: types::set_account_id::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Identity", @@ -20306,10 +21554,8 @@ pub mod api { #[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, - >, + index: types::set_fields::Index, + fields: types::set_fields::Fields, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Identity", @@ -20325,12 +21571,10 @@ pub mod api { #[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, + 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", @@ -20352,7 +21596,7 @@ pub mod api { #[doc = "See [`Pallet::kill_identity`]."] pub fn kill_identity( &self, - target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + target: types::kill_identity::Target, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Identity", @@ -20369,8 +21613,8 @@ pub mod api { #[doc = "See [`Pallet::add_sub`]."] pub fn add_sub( &self, - sub: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - data: runtime_types::pallet_identity::types::Data, + sub: types::add_sub::Sub, + data: types::add_sub::Data, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Identity", @@ -20386,8 +21630,8 @@ pub mod api { #[doc = "See [`Pallet::rename_sub`]."] pub fn rename_sub( &self, - sub: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - data: runtime_types::pallet_identity::types::Data, + sub: types::rename_sub::Sub, + data: types::rename_sub::Data, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Identity", @@ -20404,7 +21648,7 @@ pub mod api { #[doc = "See [`Pallet::remove_sub`]."] pub fn remove_sub( &self, - sub: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + sub: types::remove_sub::Sub, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Identity", @@ -20449,7 +21693,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"; @@ -20467,8 +21715,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"; @@ -20486,8 +21739,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"; @@ -20505,8 +21763,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"; @@ -20524,8 +21787,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"; @@ -20543,15 +21811,19 @@ 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"; const EVENT: &'static str = "JudgementGiven"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -20563,7 +21835,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"; @@ -20581,9 +21857,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"; @@ -20601,9 +21883,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"; @@ -20622,9 +21910,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"; @@ -20959,10 +22253,16 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::proxy`]."] 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::polkadot_runtime::RuntimeCall; } impl ::subxt::blocks::StaticExtrinsic for Proxy { const PALLET: &'static str = "Proxy"; @@ -20980,9 +22280,16 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::add_proxy`]."] 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 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::polkadot_runtime::ProxyType; + pub type Delay = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for AddProxy { const PALLET: &'static str = "Proxy"; @@ -21000,9 +22307,16 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::remove_proxy`]."] 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 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::polkadot_runtime::ProxyType; + pub type Delay = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for RemoveProxy { const PALLET: &'static str = "Proxy"; @@ -21036,9 +22350,15 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::create_pure`]."] pub struct CreatePure { - pub proxy_type: runtime_types::polkadot_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::polkadot_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"; @@ -21056,13 +22376,22 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::kill_pure`]."] pub struct KillPure { - pub spawner: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub proxy_type: runtime_types::polkadot_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::polkadot_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"; @@ -21080,8 +22409,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::announce`]."] 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"; @@ -21099,8 +22433,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::remove_announcement`]."] 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"; @@ -21118,8 +22457,14 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::reject_announcement`]."] 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"; @@ -21137,11 +22482,19 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::proxy_announced`]."] 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::polkadot_runtime::RuntimeCall; } impl ::subxt::blocks::StaticExtrinsic for ProxyAnnounced { const PALLET: &'static str = "Proxy"; @@ -21153,11 +22506,9 @@ pub mod api { #[doc = "See [`Pallet::proxy`]."] pub fn proxy( &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, + real: types::proxy::Real, + force_proxy_type: types::proxy::ForceProxyType, + call: types::proxy::Call, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Proxy", @@ -21177,9 +22528,9 @@ pub mod api { #[doc = "See [`Pallet::add_proxy`]."] pub fn add_proxy( &self, - delegate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - proxy_type: runtime_types::polkadot_runtime::ProxyType, - delay: ::core::primitive::u32, + 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", @@ -21200,9 +22551,9 @@ pub mod api { #[doc = "See [`Pallet::remove_proxy`]."] pub fn remove_proxy( &self, - delegate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - proxy_type: runtime_types::polkadot_runtime::ProxyType, - delay: ::core::primitive::u32, + 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", @@ -21237,9 +22588,9 @@ pub mod api { #[doc = "See [`Pallet::create_pure`]."] pub fn create_pure( &self, - proxy_type: runtime_types::polkadot_runtime::ProxyType, - delay: ::core::primitive::u32, - index: ::core::primitive::u16, + 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", @@ -21259,11 +22610,11 @@ pub mod api { #[doc = "See [`Pallet::kill_pure`]."] pub fn kill_pure( &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, + 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", @@ -21285,8 +22636,8 @@ pub mod api { #[doc = "See [`Pallet::announce`]."] pub fn announce( &self, - real: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - call_hash: ::subxt::utils::H256, + real: types::announce::Real, + call_hash: types::announce::CallHash, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Proxy", @@ -21303,8 +22654,8 @@ pub mod api { #[doc = "See [`Pallet::remove_announcement`]."] pub fn remove_announcement( &self, - real: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - call_hash: ::subxt::utils::H256, + real: types::remove_announcement::Real, + call_hash: types::remove_announcement::CallHash, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Proxy", @@ -21320,8 +22671,8 @@ pub mod api { #[doc = "See [`Pallet::reject_announcement`]."] pub fn reject_announcement( &self, - delegate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - call_hash: ::subxt::utils::H256, + delegate: types::reject_announcement::Delegate, + call_hash: types::reject_announcement::CallHash, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Proxy", @@ -21340,12 +22691,10 @@ pub mod api { #[doc = "See [`Pallet::proxy_announced`]."] pub fn proxy_announced( &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, + 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", @@ -21382,7 +22731,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"; @@ -21401,10 +22755,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::polkadot_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::polkadot_runtime::ProxyType; + pub type DisambiguationIndex = ::core::primitive::u16; } impl ::subxt::events::StaticEvent for PureCreated { const PALLET: &'static str = "Proxy"; @@ -21422,9 +22783,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"; @@ -21442,10 +22809,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::polkadot_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::polkadot_runtime::ProxyType; + pub type Delay = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for ProxyAdded { const PALLET: &'static str = "Proxy"; @@ -21463,10 +22837,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::polkadot_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::polkadot_runtime::ProxyType; + pub type Delay = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for ProxyRemoved { const PALLET: &'static str = "Proxy"; @@ -21738,8 +23119,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::as_multi_threshold_1`]."] pub struct AsMultiThreshold1 { - pub other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, - pub call: ::std::boxed::Box, + pub other_signatories: as_multi_threshold1::OtherSignatories, + pub call: ::std::boxed::Box, + } + pub mod as_multi_threshold1 { + use super::runtime_types; + pub type OtherSignatories = ::std::vec::Vec<::subxt::utils::AccountId32>; + pub type Call = runtime_types::polkadot_runtime::RuntimeCall; } impl ::subxt::blocks::StaticExtrinsic for AsMultiThreshold1 { const PALLET: &'static str = "Multisig"; @@ -21757,13 +23143,21 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::as_multi`]."] 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::polkadot_runtime::RuntimeCall; + pub type MaxWeight = runtime_types::sp_weights::weight_v2::Weight; } impl ::subxt::blocks::StaticExtrinsic for AsMulti { const PALLET: &'static str = "Multisig"; @@ -21781,13 +23175,21 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::approve_as_multi`]."] 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"; @@ -21805,11 +23207,18 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::cancel_as_multi`]."] 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"; @@ -21821,8 +23230,8 @@ pub mod api { #[doc = "See [`Pallet::as_multi_threshold_1`]."] pub fn as_multi_threshold_1( &self, - other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, - call: runtime_types::polkadot_runtime::RuntimeCall, + other_signatories: types::as_multi_threshold1::OtherSignatories, + call: types::as_multi_threshold1::Call, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Multisig", @@ -21842,13 +23251,11 @@ pub mod api { #[doc = "See [`Pallet::as_multi`]."] pub fn as_multi( &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, + 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", @@ -21871,13 +23278,11 @@ pub mod api { #[doc = "See [`Pallet::approve_as_multi`]."] pub fn approve_as_multi( &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, + 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", @@ -21899,10 +23304,10 @@ pub mod api { #[doc = "See [`Pallet::cancel_as_multi`]."] pub fn cancel_as_multi( &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], + 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", @@ -21938,9 +23343,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"; @@ -21958,10 +23369,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"; @@ -21979,11 +23398,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"; @@ -22001,10 +23430,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"; @@ -22181,8 +23618,13 @@ pub mod api { #[doc = "See [`Pallet::propose_bounty`]."] 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"; @@ -22201,7 +23643,11 @@ pub mod api { #[doc = "See [`Pallet::approve_bounty`]."] 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"; @@ -22220,10 +23666,17 @@ pub mod api { #[doc = "See [`Pallet::propose_curator`]."] 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"; @@ -22242,7 +23695,11 @@ pub mod api { #[doc = "See [`Pallet::unassign_curator`]."] 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"; @@ -22261,7 +23718,11 @@ pub mod api { #[doc = "See [`Pallet::accept_curator`]."] 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"; @@ -22280,8 +23741,14 @@ pub mod api { #[doc = "See [`Pallet::award_bounty`]."] 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"; @@ -22300,7 +23767,11 @@ pub mod api { #[doc = "See [`Pallet::claim_bounty`]."] 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"; @@ -22319,7 +23790,11 @@ pub mod api { #[doc = "See [`Pallet::close_bounty`]."] 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"; @@ -22338,8 +23813,13 @@ pub mod api { #[doc = "See [`Pallet::extend_bounty_expiry`]."] 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"; @@ -22351,8 +23831,8 @@ pub mod api { #[doc = "See [`Pallet::propose_bounty`]."] pub fn propose_bounty( &self, - value: ::core::primitive::u128, - description: ::std::vec::Vec<::core::primitive::u8>, + value: types::propose_bounty::Value, + description: types::propose_bounty::Description, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Bounties", @@ -22368,7 +23848,7 @@ pub mod api { #[doc = "See [`Pallet::approve_bounty`]."] pub fn approve_bounty( &self, - bounty_id: ::core::primitive::u32, + bounty_id: types::approve_bounty::BountyId, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Bounties", @@ -22385,9 +23865,9 @@ pub mod api { #[doc = "See [`Pallet::propose_curator`]."] pub fn propose_curator( &self, - bounty_id: ::core::primitive::u32, - curator: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - fee: ::core::primitive::u128, + 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", @@ -22407,7 +23887,7 @@ pub mod api { #[doc = "See [`Pallet::unassign_curator`]."] pub fn unassign_curator( &self, - bounty_id: ::core::primitive::u32, + bounty_id: types::unassign_curator::BountyId, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Bounties", @@ -22424,7 +23904,7 @@ pub mod api { #[doc = "See [`Pallet::accept_curator`]."] pub fn accept_curator( &self, - bounty_id: ::core::primitive::u32, + bounty_id: types::accept_curator::BountyId, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Bounties", @@ -22440,8 +23920,8 @@ pub mod api { #[doc = "See [`Pallet::award_bounty`]."] pub fn award_bounty( &self, - bounty_id: ::core::primitive::u32, - beneficiary: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + bounty_id: types::award_bounty::BountyId, + beneficiary: types::award_bounty::Beneficiary, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Bounties", @@ -22460,7 +23940,7 @@ pub mod api { #[doc = "See [`Pallet::claim_bounty`]."] pub fn claim_bounty( &self, - bounty_id: ::core::primitive::u32, + bounty_id: types::claim_bounty::BountyId, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Bounties", @@ -22477,7 +23957,7 @@ pub mod api { #[doc = "See [`Pallet::close_bounty`]."] pub fn close_bounty( &self, - bounty_id: ::core::primitive::u32, + bounty_id: types::close_bounty::BountyId, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Bounties", @@ -22494,8 +23974,8 @@ pub mod api { #[doc = "See [`Pallet::extend_bounty_expiry`]."] pub fn extend_bounty_expiry( &self, - bounty_id: ::core::primitive::u32, - remark: ::std::vec::Vec<::core::primitive::u8>, + bounty_id: types::extend_bounty_expiry::BountyId, + remark: types::extend_bounty_expiry::Remark, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Bounties", @@ -22516,7 +23996,6 @@ pub mod api { 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, @@ -22528,7 +24007,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"; @@ -22546,15 +24029,19 @@ 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"; const EVENT: &'static str = "BountyRejected"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -22566,7 +24053,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"; @@ -22584,8 +24075,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"; @@ -22603,16 +24099,21 @@ 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"; const EVENT: &'static str = "BountyClaimed"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -22624,14 +24125,17 @@ 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"; const EVENT: &'static str = "BountyCanceled"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -22643,7 +24147,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"; @@ -22977,10 +24485,16 @@ pub mod api { #[doc = "See [`Pallet::add_child_bounty`]."] 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"; @@ -22999,12 +24513,20 @@ pub mod api { #[doc = "See [`Pallet::propose_curator`]."] 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"; @@ -23023,9 +24545,14 @@ pub mod api { #[doc = "See [`Pallet::accept_curator`]."] 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"; @@ -23044,9 +24571,14 @@ pub mod api { #[doc = "See [`Pallet::unassign_curator`]."] 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"; @@ -23065,10 +24597,17 @@ pub mod api { #[doc = "See [`Pallet::award_child_bounty`]."] 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"; @@ -23087,9 +24626,14 @@ pub mod api { #[doc = "See [`Pallet::claim_child_bounty`]."] 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"; @@ -23108,9 +24652,14 @@ pub mod api { #[doc = "See [`Pallet::close_child_bounty`]."] 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"; @@ -23122,9 +24671,9 @@ pub mod api { #[doc = "See [`Pallet::add_child_bounty`]."] pub fn add_child_bounty( &self, - parent_bounty_id: ::core::primitive::u32, - value: ::core::primitive::u128, - description: ::std::vec::Vec<::core::primitive::u8>, + 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", @@ -23145,10 +24694,10 @@ pub mod api { #[doc = "See [`Pallet::propose_curator`]."] pub fn propose_curator( &self, - parent_bounty_id: ::core::primitive::u32, - child_bounty_id: ::core::primitive::u32, - curator: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - fee: ::core::primitive::u128, + 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", @@ -23169,8 +24718,8 @@ pub mod api { #[doc = "See [`Pallet::accept_curator`]."] pub fn accept_curator( &self, - parent_bounty_id: ::core::primitive::u32, - child_bounty_id: ::core::primitive::u32, + parent_bounty_id: types::accept_curator::ParentBountyId, + child_bounty_id: types::accept_curator::ChildBountyId, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ChildBounties", @@ -23190,8 +24739,8 @@ pub mod api { #[doc = "See [`Pallet::unassign_curator`]."] pub fn unassign_curator( &self, - parent_bounty_id: ::core::primitive::u32, - child_bounty_id: ::core::primitive::u32, + parent_bounty_id: types::unassign_curator::ParentBountyId, + child_bounty_id: types::unassign_curator::ChildBountyId, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ChildBounties", @@ -23211,9 +24760,9 @@ pub mod api { #[doc = "See [`Pallet::award_child_bounty`]."] pub fn award_child_bounty( &self, - parent_bounty_id: ::core::primitive::u32, - child_bounty_id: ::core::primitive::u32, - beneficiary: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + 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", @@ -23233,8 +24782,8 @@ pub mod api { #[doc = "See [`Pallet::claim_child_bounty`]."] pub fn claim_child_bounty( &self, - parent_bounty_id: ::core::primitive::u32, - child_bounty_id: ::core::primitive::u32, + 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", @@ -23253,8 +24802,8 @@ pub mod api { #[doc = "See [`Pallet::close_child_bounty`]."] pub fn close_child_bounty( &self, - parent_bounty_id: ::core::primitive::u32, - child_bounty_id: ::core::primitive::u32, + 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", @@ -23288,8 +24837,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"; @@ -23307,9 +24861,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"; @@ -23327,10 +24887,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"; @@ -23348,8 +24915,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"; @@ -23671,8 +25243,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::report_awesome`]."] pub struct ReportAwesome { - pub reason: ::std::vec::Vec<::core::primitive::u8>, - pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub reason: report_awesome::Reason, + pub who: report_awesome::Who, + } + pub mod report_awesome { + use super::runtime_types; + pub type Reason = ::std::vec::Vec<::core::primitive::u8>; + pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; } impl ::subxt::blocks::StaticExtrinsic for ReportAwesome { const PALLET: &'static str = "Tips"; @@ -23690,7 +25267,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::retract_tip`]."] pub struct RetractTip { - pub hash: ::subxt::utils::H256, + pub hash: retract_tip::Hash, + } + pub mod retract_tip { + use super::runtime_types; + pub type Hash = ::subxt::utils::H256; } impl ::subxt::blocks::StaticExtrinsic for RetractTip { const PALLET: &'static str = "Tips"; @@ -23708,10 +25289,16 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::tip_new`]."] pub struct TipNew { - pub reason: ::std::vec::Vec<::core::primitive::u8>, - pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub reason: tip_new::Reason, + pub who: tip_new::Who, #[codec(compact)] - pub tip_value: ::core::primitive::u128, + pub tip_value: tip_new::TipValue, + } + pub mod tip_new { + use super::runtime_types; + pub type Reason = ::std::vec::Vec<::core::primitive::u8>; + pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type TipValue = ::core::primitive::u128; } impl ::subxt::blocks::StaticExtrinsic for TipNew { const PALLET: &'static str = "Tips"; @@ -23729,9 +25316,14 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::tip`]."] pub struct Tip { - pub hash: ::subxt::utils::H256, + pub hash: tip::Hash, #[codec(compact)] - pub tip_value: ::core::primitive::u128, + pub tip_value: tip::TipValue, + } + pub mod tip { + use super::runtime_types; + pub type Hash = ::subxt::utils::H256; + pub type TipValue = ::core::primitive::u128; } impl ::subxt::blocks::StaticExtrinsic for Tip { const PALLET: &'static str = "Tips"; @@ -23749,7 +25341,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::close_tip`]."] pub struct CloseTip { - pub hash: ::subxt::utils::H256, + pub hash: close_tip::Hash, + } + pub mod close_tip { + use super::runtime_types; + pub type Hash = ::subxt::utils::H256; } impl ::subxt::blocks::StaticExtrinsic for CloseTip { const PALLET: &'static str = "Tips"; @@ -23767,7 +25363,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::slash_tip`]."] pub struct SlashTip { - pub hash: ::subxt::utils::H256, + pub hash: slash_tip::Hash, + } + pub mod slash_tip { + use super::runtime_types; + pub type Hash = ::subxt::utils::H256; } impl ::subxt::blocks::StaticExtrinsic for SlashTip { const PALLET: &'static str = "Tips"; @@ -23779,8 +25379,8 @@ pub mod api { #[doc = "See [`Pallet::report_awesome`]."] pub fn report_awesome( &self, - reason: ::std::vec::Vec<::core::primitive::u8>, - who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + reason: types::report_awesome::Reason, + who: types::report_awesome::Who, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Tips", @@ -23797,7 +25397,7 @@ pub mod api { #[doc = "See [`Pallet::retract_tip`]."] pub fn retract_tip( &self, - hash: ::subxt::utils::H256, + hash: types::retract_tip::Hash, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Tips", @@ -23814,9 +25414,9 @@ pub mod api { #[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, + reason: types::tip_new::Reason, + who: types::tip_new::Who, + tip_value: types::tip_new::TipValue, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Tips", @@ -23836,8 +25436,8 @@ pub mod api { #[doc = "See [`Pallet::tip`]."] pub fn tip( &self, - hash: ::subxt::utils::H256, - tip_value: ::core::primitive::u128, + hash: types::tip::Hash, + tip_value: types::tip::TipValue, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Tips", @@ -23854,7 +25454,7 @@ pub mod api { #[doc = "See [`Pallet::close_tip`]."] pub fn close_tip( &self, - hash: ::subxt::utils::H256, + hash: types::close_tip::Hash, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Tips", @@ -23871,7 +25471,7 @@ pub mod api { #[doc = "See [`Pallet::slash_tip`]."] pub fn slash_tip( &self, - hash: ::subxt::utils::H256, + hash: types::slash_tip::Hash, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Tips", @@ -23903,7 +25503,11 @@ pub mod api { #[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, + pub tip_hash: new_tip::TipHash, + } + pub mod new_tip { + use super::runtime_types; + pub type TipHash = ::subxt::utils::H256; } impl ::subxt::events::StaticEvent for NewTip { const PALLET: &'static str = "Tips"; @@ -23921,7 +25525,11 @@ pub mod api { #[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, + pub tip_hash: tip_closing::TipHash, + } + pub mod tip_closing { + use super::runtime_types; + pub type TipHash = ::subxt::utils::H256; } impl ::subxt::events::StaticEvent for TipClosing { const PALLET: &'static str = "Tips"; @@ -23939,9 +25547,15 @@ pub mod api { #[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, - pub who: ::subxt::utils::AccountId32, - pub payout: ::core::primitive::u128, + pub tip_hash: tip_closed::TipHash, + pub who: tip_closed::Who, + pub payout: tip_closed::Payout, + } + pub mod tip_closed { + use super::runtime_types; + pub type TipHash = ::subxt::utils::H256; + pub type Who = ::subxt::utils::AccountId32; + pub type Payout = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for TipClosed { const PALLET: &'static str = "Tips"; @@ -23959,7 +25573,11 @@ pub mod api { #[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, + pub tip_hash: tip_retracted::TipHash, + } + pub mod tip_retracted { + use super::runtime_types; + pub type TipHash = ::subxt::utils::H256; } impl ::subxt::events::StaticEvent for TipRetracted { const PALLET: &'static str = "Tips"; @@ -23977,9 +25595,15 @@ pub mod api { #[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, + pub tip_hash: tip_slashed::TipHash, + pub finder: tip_slashed::Finder, + pub deposit: tip_slashed::Deposit, + } + pub mod tip_slashed { + use super::runtime_types; + pub type TipHash = ::subxt::utils::H256; + pub type Finder = ::subxt::utils::AccountId32; + pub type Deposit = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for TipSlashed { const PALLET: &'static str = "Tips"; @@ -24206,13 +25830,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::submit_unsigned`]."] pub struct SubmitUnsigned { - pub raw_solution: ::std::boxed::Box< + pub raw_solution: ::std::boxed::Box, + pub witness: submit_unsigned::Witness, + } + pub mod submit_unsigned { + use super::runtime_types; + pub type RawSolution = runtime_types::pallet_election_provider_multi_phase::RawSolution< runtime_types::polkadot_runtime::NposCompactSolution16, - >, - >, - pub witness: - runtime_types::pallet_election_provider_multi_phase::SolutionOrSnapshotSize, + >; + pub type Witness = + runtime_types::pallet_election_provider_multi_phase::SolutionOrSnapshotSize; } impl ::subxt::blocks::StaticExtrinsic for SubmitUnsigned { const PALLET: &'static str = "ElectionProviderMultiPhase"; @@ -24230,8 +25858,12 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_minimum_untrusted_score`]."] pub struct SetMinimumUntrustedScore { - pub maybe_next_score: - ::core::option::Option, + pub maybe_next_score: set_minimum_untrusted_score::MaybeNextScore, + } + pub mod set_minimum_untrusted_score { + use super::runtime_types; + pub type MaybeNextScore = + ::core::option::Option; } impl ::subxt::blocks::StaticExtrinsic for SetMinimumUntrustedScore { const PALLET: &'static str = "ElectionProviderMultiPhase"; @@ -24249,10 +25881,14 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_emergency_election_result`]."] pub struct SetEmergencyElectionResult { - pub supports: ::std::vec::Vec<( + pub supports: set_emergency_election_result::Supports, + } + pub mod set_emergency_election_result { + use super::runtime_types; + pub type 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"; @@ -24270,11 +25906,14 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::submit`]."] pub struct Submit { - pub raw_solution: ::std::boxed::Box< + pub raw_solution: ::std::boxed::Box, + } + pub mod submit { + use super::runtime_types; + pub type RawSolution = runtime_types::pallet_election_provider_multi_phase::RawSolution< runtime_types::polkadot_runtime::NposCompactSolution16, - >, - >, + >; } impl ::subxt::blocks::StaticExtrinsic for Submit { const PALLET: &'static str = "ElectionProviderMultiPhase"; @@ -24292,8 +25931,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::governance_fallback`]."] pub struct GovernanceFallback { - pub maybe_max_voters: ::core::option::Option<::core::primitive::u32>, - pub maybe_max_targets: ::core::option::Option<::core::primitive::u32>, + pub maybe_max_voters: governance_fallback::MaybeMaxVoters, + pub maybe_max_targets: governance_fallback::MaybeMaxTargets, + } + pub mod governance_fallback { + use super::runtime_types; + pub type MaybeMaxVoters = ::core::option::Option<::core::primitive::u32>; + pub type MaybeMaxTargets = ::core::option::Option<::core::primitive::u32>; } impl ::subxt::blocks::StaticExtrinsic for GovernanceFallback { const PALLET: &'static str = "ElectionProviderMultiPhase"; @@ -24305,10 +25949,8 @@ pub mod api { #[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, + raw_solution: types::submit_unsigned::RawSolution, + witness: types::submit_unsigned::Witness, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ElectionProviderMultiPhase", @@ -24327,9 +25969,7 @@ pub mod api { #[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, - >, + maybe_next_score: types::set_minimum_untrusted_score::MaybeNextScore, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ElectionProviderMultiPhase", @@ -24346,10 +25986,7 @@ pub mod api { #[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>, - )>, + supports: types::set_emergency_election_result::Supports, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ElectionProviderMultiPhase", @@ -24366,9 +26003,7 @@ pub mod api { #[doc = "See [`Pallet::submit`]."] pub fn submit( &self, - raw_solution: runtime_types::pallet_election_provider_multi_phase::RawSolution< - runtime_types::polkadot_runtime::NposCompactSolution16, - >, + raw_solution: types::submit::RawSolution, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ElectionProviderMultiPhase", @@ -24386,8 +26021,8 @@ pub mod api { #[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>, + maybe_max_voters: types::governance_fallback::MaybeMaxVoters, + maybe_max_targets: types::governance_fallback::MaybeMaxTargets, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ElectionProviderMultiPhase", @@ -24427,9 +26062,16 @@ pub mod api { #[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, + pub compute: solution_stored::Compute, + pub origin: solution_stored::Origin, + pub prev_ejected: solution_stored::PrevEjected, + } + pub mod solution_stored { + use super::runtime_types; + pub type Compute = + runtime_types::pallet_election_provider_multi_phase::ElectionCompute; + pub type Origin = ::core::option::Option<::subxt::utils::AccountId32>; + pub type PrevEjected = ::core::primitive::bool; } impl ::subxt::events::StaticEvent for SolutionStored { const PALLET: &'static str = "ElectionProviderMultiPhase"; @@ -24447,8 +26089,14 @@ pub mod api { #[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, + pub compute: election_finalized::Compute, + pub score: election_finalized::Score, + } + pub mod election_finalized { + use super::runtime_types; + pub type Compute = + runtime_types::pallet_election_provider_multi_phase::ElectionCompute; + pub type Score = runtime_types::sp_npos_elections::ElectionScore; } impl ::subxt::events::StaticEvent for ElectionFinalized { const PALLET: &'static str = "ElectionProviderMultiPhase"; @@ -24484,8 +26132,13 @@ pub mod api { #[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, + pub account: rewarded::Account, + pub value: rewarded::Value, + } + pub mod rewarded { + use super::runtime_types; + pub type Account = ::subxt::utils::AccountId32; + pub type Value = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Rewarded { const PALLET: &'static str = "ElectionProviderMultiPhase"; @@ -24503,8 +26156,13 @@ pub mod api { #[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, + pub account: slashed::Account, + pub value: slashed::Value, + } + pub mod slashed { + use super::runtime_types; + pub type Account = ::subxt::utils::AccountId32; + pub type Value = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Slashed { const PALLET: &'static str = "ElectionProviderMultiPhase"; @@ -24522,13 +26180,19 @@ pub mod api { #[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< + pub from: phase_transitioned::From, + pub to: phase_transitioned::To, + pub round: phase_transitioned::Round, + } + pub mod phase_transitioned { + use super::runtime_types; + pub type From = runtime_types::pallet_election_provider_multi_phase::Phase< ::core::primitive::u32, - >, - pub to: runtime_types::pallet_election_provider_multi_phase::Phase< + >; + pub type To = runtime_types::pallet_election_provider_multi_phase::Phase< ::core::primitive::u32, - >, - pub round: ::core::primitive::u32, + >; + pub type Round = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for PhaseTransitioned { const PALLET: &'static str = "ElectionProviderMultiPhase"; @@ -25182,7 +26846,12 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::rebag`]."] pub struct Rebag { - pub dislocated: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub dislocated: rebag::Dislocated, + } + pub mod rebag { + use super::runtime_types; + pub type Dislocated = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; } impl ::subxt::blocks::StaticExtrinsic for Rebag { const PALLET: &'static str = "VoterList"; @@ -25200,7 +26869,12 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::put_in_front_of`]."] pub struct PutInFrontOf { - pub lighter: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub lighter: put_in_front_of::Lighter, + } + pub mod put_in_front_of { + use super::runtime_types; + pub type Lighter = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; } impl ::subxt::blocks::StaticExtrinsic for PutInFrontOf { const PALLET: &'static str = "VoterList"; @@ -25212,7 +26886,7 @@ pub mod api { #[doc = "See [`Pallet::rebag`]."] pub fn rebag( &self, - dislocated: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + dislocated: types::rebag::Dislocated, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "VoterList", @@ -25228,7 +26902,7 @@ pub mod api { #[doc = "See [`Pallet::put_in_front_of`]."] pub fn put_in_front_of( &self, - lighter: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + lighter: types::put_in_front_of::Lighter, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "VoterList", @@ -25259,9 +26933,15 @@ pub mod api { #[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, + pub who: rebagged::Who, + pub from: rebagged::From, + pub to: rebagged::To, + } + pub mod rebagged { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type From = ::core::primitive::u64; + pub type To = ::core::primitive::u64; } impl ::subxt::events::StaticEvent for Rebagged { const PALLET: &'static str = "VoterList"; @@ -25279,8 +26959,13 @@ pub mod api { #[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, + pub who: score_updated::Who, + pub new_score: score_updated::NewScore, + } + pub mod score_updated { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type NewScore = ::core::primitive::u64; } impl ::subxt::events::StaticEvent for ScoreUpdated { const PALLET: &'static str = "VoterList"; @@ -25503,8 +27188,13 @@ pub mod api { #[doc = "See [`Pallet::join`]."] pub struct Join { #[codec(compact)] - pub amount: ::core::primitive::u128, - pub pool_id: ::core::primitive::u32, + pub amount: join::Amount, + pub pool_id: join::PoolId, + } + pub mod join { + use super::runtime_types; + pub type Amount = ::core::primitive::u128; + pub type PoolId = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for Join { const PALLET: &'static str = "NominationPools"; @@ -25522,8 +27212,12 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::bond_extra`]."] pub struct BondExtra { - pub extra: - runtime_types::pallet_nomination_pools::BondExtra<::core::primitive::u128>, + pub extra: bond_extra::Extra, + } + pub mod bond_extra { + use super::runtime_types; + pub type Extra = + runtime_types::pallet_nomination_pools::BondExtra<::core::primitive::u128>; } impl ::subxt::blocks::StaticExtrinsic for BondExtra { const PALLET: &'static str = "NominationPools"; @@ -25557,10 +27251,15 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::unbond`]."] pub struct Unbond { - pub member_account: - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + pub member_account: unbond::MemberAccount, #[codec(compact)] - pub unbonding_points: ::core::primitive::u128, + pub unbonding_points: unbond::UnbondingPoints, + } + pub mod unbond { + use super::runtime_types; + pub type MemberAccount = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type UnbondingPoints = ::core::primitive::u128; } impl ::subxt::blocks::StaticExtrinsic for Unbond { const PALLET: &'static str = "NominationPools"; @@ -25578,8 +27277,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::pool_withdraw_unbonded`]."] pub struct PoolWithdrawUnbonded { - pub pool_id: ::core::primitive::u32, - pub num_slashing_spans: ::core::primitive::u32, + pub pool_id: pool_withdraw_unbonded::PoolId, + pub num_slashing_spans: pool_withdraw_unbonded::NumSlashingSpans, + } + pub mod pool_withdraw_unbonded { + use super::runtime_types; + pub type PoolId = ::core::primitive::u32; + pub type NumSlashingSpans = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for PoolWithdrawUnbonded { const PALLET: &'static str = "NominationPools"; @@ -25597,9 +27301,14 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::withdraw_unbonded`]."] pub struct WithdrawUnbonded { - pub member_account: - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub num_slashing_spans: ::core::primitive::u32, + pub member_account: withdraw_unbonded::MemberAccount, + pub num_slashing_spans: withdraw_unbonded::NumSlashingSpans, + } + pub mod withdraw_unbonded { + use super::runtime_types; + pub type MemberAccount = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type NumSlashingSpans = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for WithdrawUnbonded { const PALLET: &'static str = "NominationPools"; @@ -25618,10 +27327,19 @@ pub mod api { #[doc = "See [`Pallet::create`]."] 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, ()>, + pub amount: create::Amount, + pub root: create::Root, + pub nominator: create::Nominator, + pub bouncer: create::Bouncer, + } + pub mod create { + use super::runtime_types; + pub type Amount = ::core::primitive::u128; + pub type Root = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Nominator = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Bouncer = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; } impl ::subxt::blocks::StaticExtrinsic for Create { const PALLET: &'static str = "NominationPools"; @@ -25640,11 +27358,21 @@ pub mod api { #[doc = "See [`Pallet::create_with_pool_id`]."] 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, + pub amount: create_with_pool_id::Amount, + pub root: create_with_pool_id::Root, + pub nominator: create_with_pool_id::Nominator, + pub bouncer: create_with_pool_id::Bouncer, + pub pool_id: create_with_pool_id::PoolId, + } + pub mod create_with_pool_id { + use super::runtime_types; + pub type Amount = ::core::primitive::u128; + pub type Root = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Nominator = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Bouncer = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type PoolId = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for CreateWithPoolId { const PALLET: &'static str = "NominationPools"; @@ -25662,8 +27390,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::nominate`]."] pub struct Nominate { - pub pool_id: ::core::primitive::u32, - pub validators: ::std::vec::Vec<::subxt::utils::AccountId32>, + pub pool_id: nominate::PoolId, + pub validators: nominate::Validators, + } + pub mod nominate { + use super::runtime_types; + pub type PoolId = ::core::primitive::u32; + pub type Validators = ::std::vec::Vec<::subxt::utils::AccountId32>; } impl ::subxt::blocks::StaticExtrinsic for Nominate { const PALLET: &'static str = "NominationPools"; @@ -25681,8 +27414,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_state`]."] pub struct SetState { - pub pool_id: ::core::primitive::u32, - pub state: runtime_types::pallet_nomination_pools::PoolState, + pub pool_id: set_state::PoolId, + pub state: set_state::State, + } + pub mod set_state { + use super::runtime_types; + pub type PoolId = ::core::primitive::u32; + pub type State = runtime_types::pallet_nomination_pools::PoolState; } impl ::subxt::blocks::StaticExtrinsic for SetState { const PALLET: &'static str = "NominationPools"; @@ -25700,8 +27438,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_metadata`]."] pub struct SetMetadata { - pub pool_id: ::core::primitive::u32, - pub metadata: ::std::vec::Vec<::core::primitive::u8>, + pub pool_id: set_metadata::PoolId, + pub metadata: set_metadata::Metadata, + } + pub mod set_metadata { + use super::runtime_types; + pub type PoolId = ::core::primitive::u32; + pub type Metadata = ::std::vec::Vec<::core::primitive::u8>; } impl ::subxt::blocks::StaticExtrinsic for SetMetadata { const PALLET: &'static str = "NominationPools"; @@ -25719,19 +27462,28 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_configs`]."] 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< + pub min_join_bond: set_configs::MinJoinBond, + pub min_create_bond: set_configs::MinCreateBond, + pub max_pools: set_configs::MaxPools, + pub max_members: set_configs::MaxMembers, + pub max_members_per_pool: set_configs::MaxMembersPerPool, + pub global_max_commission: set_configs::GlobalMaxCommission, + } + pub mod set_configs { + use super::runtime_types; + pub type MinJoinBond = + runtime_types::pallet_nomination_pools::ConfigOp<::core::primitive::u128>; + pub type MinCreateBond = + runtime_types::pallet_nomination_pools::ConfigOp<::core::primitive::u128>; + pub type MaxPools = + runtime_types::pallet_nomination_pools::ConfigOp<::core::primitive::u32>; + pub type MaxMembers = + runtime_types::pallet_nomination_pools::ConfigOp<::core::primitive::u32>; + pub type MaxMembersPerPool = + runtime_types::pallet_nomination_pools::ConfigOp<::core::primitive::u32>; + pub type GlobalMaxCommission = runtime_types::pallet_nomination_pools::ConfigOp< runtime_types::sp_arithmetic::per_things::Perbill, - >, + >; } impl ::subxt::blocks::StaticExtrinsic for SetConfigs { const PALLET: &'static str = "NominationPools"; @@ -25749,23 +27501,29 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::update_roles`]."] pub struct UpdateRoles { - pub pool_id: ::core::primitive::u32, - pub new_root: runtime_types::pallet_nomination_pools::ConfigOp< + pub pool_id: update_roles::PoolId, + pub new_root: update_roles::NewRoot, + pub new_nominator: update_roles::NewNominator, + pub new_bouncer: update_roles::NewBouncer, + } + pub mod update_roles { + use super::runtime_types; + pub type PoolId = ::core::primitive::u32; + pub type NewRoot = runtime_types::pallet_nomination_pools::ConfigOp< ::subxt::utils::AccountId32, - >, - pub new_nominator: runtime_types::pallet_nomination_pools::ConfigOp< + >; + pub type NewNominator = runtime_types::pallet_nomination_pools::ConfigOp< ::subxt::utils::AccountId32, - >, - pub new_bouncer: runtime_types::pallet_nomination_pools::ConfigOp< + >; + pub type NewBouncer = 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, @@ -25777,7 +27535,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::chill`]."] pub struct Chill { - pub pool_id: ::core::primitive::u32, + pub pool_id: chill::PoolId, + } + pub mod chill { + use super::runtime_types; + pub type PoolId = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for Chill { const PALLET: &'static str = "NominationPools"; @@ -25795,9 +27557,14 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::bond_extra_other`]."] pub struct BondExtraOther { - pub member: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - pub extra: - runtime_types::pallet_nomination_pools::BondExtra<::core::primitive::u128>, + pub member: bond_extra_other::Member, + pub extra: bond_extra_other::Extra, + } + pub mod bond_extra_other { + use super::runtime_types; + pub type Member = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Extra = + runtime_types::pallet_nomination_pools::BondExtra<::core::primitive::u128>; } impl ::subxt::blocks::StaticExtrinsic for BondExtraOther { const PALLET: &'static str = "NominationPools"; @@ -25815,7 +27582,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_claim_permission`]."] pub struct SetClaimPermission { - pub permission: runtime_types::pallet_nomination_pools::ClaimPermission, + pub permission: set_claim_permission::Permission, + } + pub mod set_claim_permission { + use super::runtime_types; + pub type Permission = runtime_types::pallet_nomination_pools::ClaimPermission; } impl ::subxt::blocks::StaticExtrinsic for SetClaimPermission { const PALLET: &'static str = "NominationPools"; @@ -25833,7 +27604,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::claim_payout_other`]."] pub struct ClaimPayoutOther { - pub other: ::subxt::utils::AccountId32, + pub other: claim_payout_other::Other, + } + pub mod claim_payout_other { + use super::runtime_types; + pub type Other = ::subxt::utils::AccountId32; } impl ::subxt::blocks::StaticExtrinsic for ClaimPayoutOther { const PALLET: &'static str = "NominationPools"; @@ -25851,11 +27626,16 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_commission`]."] pub struct SetCommission { - pub pool_id: ::core::primitive::u32, - pub new_commission: ::core::option::Option<( + pub pool_id: set_commission::PoolId, + pub new_commission: set_commission::NewCommission, + } + pub mod set_commission { + use super::runtime_types; + pub type PoolId = ::core::primitive::u32; + pub type NewCommission = ::core::option::Option<( runtime_types::sp_arithmetic::per_things::Perbill, ::subxt::utils::AccountId32, - )>, + )>; } impl ::subxt::blocks::StaticExtrinsic for SetCommission { const PALLET: &'static str = "NominationPools"; @@ -25873,8 +27653,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_commission_max`]."] pub struct SetCommissionMax { - pub pool_id: ::core::primitive::u32, - pub max_commission: runtime_types::sp_arithmetic::per_things::Perbill, + pub pool_id: set_commission_max::PoolId, + pub max_commission: set_commission_max::MaxCommission, + } + pub mod set_commission_max { + use super::runtime_types; + pub type PoolId = ::core::primitive::u32; + pub type MaxCommission = runtime_types::sp_arithmetic::per_things::Perbill; } impl ::subxt::blocks::StaticExtrinsic for SetCommissionMax { const PALLET: &'static str = "NominationPools"; @@ -25892,17 +27677,22 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_commission_change_rate`]."] pub struct SetCommissionChangeRate { - pub pool_id: ::core::primitive::u32, - pub change_rate: runtime_types::pallet_nomination_pools::CommissionChangeRate< - ::core::primitive::u32, - >, + pub pool_id: set_commission_change_rate::PoolId, + pub change_rate: set_commission_change_rate::ChangeRate, + } + pub mod set_commission_change_rate { + use super::runtime_types; + pub type PoolId = ::core::primitive::u32; + pub type ChangeRate = + 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, @@ -25914,7 +27704,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::claim_commission`]."] pub struct ClaimCommission { - pub pool_id: ::core::primitive::u32, + pub pool_id: claim_commission::PoolId, + } + pub mod claim_commission { + use super::runtime_types; + pub type PoolId = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for ClaimCommission { const PALLET: &'static str = "NominationPools"; @@ -25926,8 +27720,8 @@ pub mod api { #[doc = "See [`Pallet::join`]."] pub fn join( &self, - amount: ::core::primitive::u128, - pool_id: ::core::primitive::u32, + amount: types::join::Amount, + pool_id: types::join::PoolId, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NominationPools", @@ -25943,9 +27737,7 @@ pub mod api { #[doc = "See [`Pallet::bond_extra`]."] pub fn bond_extra( &self, - extra: runtime_types::pallet_nomination_pools::BondExtra< - ::core::primitive::u128, - >, + extra: types::bond_extra::Extra, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NominationPools", @@ -25975,8 +27767,8 @@ pub mod api { #[doc = "See [`Pallet::unbond`]."] pub fn unbond( &self, - member_account: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - unbonding_points: ::core::primitive::u128, + member_account: types::unbond::MemberAccount, + unbonding_points: types::unbond::UnbondingPoints, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NominationPools", @@ -25995,8 +27787,8 @@ pub mod api { #[doc = "See [`Pallet::pool_withdraw_unbonded`]."] pub fn pool_withdraw_unbonded( &self, - pool_id: ::core::primitive::u32, - num_slashing_spans: ::core::primitive::u32, + pool_id: types::pool_withdraw_unbonded::PoolId, + num_slashing_spans: types::pool_withdraw_unbonded::NumSlashingSpans, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NominationPools", @@ -26016,8 +27808,8 @@ pub mod api { #[doc = "See [`Pallet::withdraw_unbonded`]."] pub fn withdraw_unbonded( &self, - member_account: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - num_slashing_spans: ::core::primitive::u32, + member_account: types::withdraw_unbonded::MemberAccount, + num_slashing_spans: types::withdraw_unbonded::NumSlashingSpans, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NominationPools", @@ -26037,10 +27829,10 @@ pub mod api { #[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, ()>, + amount: types::create::Amount, + root: types::create::Root, + nominator: types::create::Nominator, + bouncer: types::create::Bouncer, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NominationPools", @@ -26061,11 +27853,11 @@ pub mod api { #[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, + amount: types::create_with_pool_id::Amount, + root: types::create_with_pool_id::Root, + nominator: types::create_with_pool_id::Nominator, + bouncer: types::create_with_pool_id::Bouncer, + pool_id: types::create_with_pool_id::PoolId, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NominationPools", @@ -26088,8 +27880,8 @@ pub mod api { #[doc = "See [`Pallet::nominate`]."] pub fn nominate( &self, - pool_id: ::core::primitive::u32, - validators: ::std::vec::Vec<::subxt::utils::AccountId32>, + pool_id: types::nominate::PoolId, + validators: types::nominate::Validators, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NominationPools", @@ -26108,8 +27900,8 @@ pub mod api { #[doc = "See [`Pallet::set_state`]."] pub fn set_state( &self, - pool_id: ::core::primitive::u32, - state: runtime_types::pallet_nomination_pools::PoolState, + pool_id: types::set_state::PoolId, + state: types::set_state::State, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NominationPools", @@ -26125,8 +27917,8 @@ pub mod api { #[doc = "See [`Pallet::set_metadata`]."] pub fn set_metadata( &self, - pool_id: ::core::primitive::u32, - metadata: ::std::vec::Vec<::core::primitive::u8>, + pool_id: types::set_metadata::PoolId, + metadata: types::set_metadata::Metadata, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NominationPools", @@ -26142,24 +27934,12 @@ pub mod api { #[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, - >, + min_join_bond: types::set_configs::MinJoinBond, + min_create_bond: types::set_configs::MinCreateBond, + max_pools: types::set_configs::MaxPools, + max_members: types::set_configs::MaxMembers, + max_members_per_pool: types::set_configs::MaxMembersPerPool, + global_max_commission: types::set_configs::GlobalMaxCommission, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NominationPools", @@ -26183,16 +27963,10 @@ pub mod api { #[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, - >, + pool_id: types::update_roles::PoolId, + new_root: types::update_roles::NewRoot, + new_nominator: types::update_roles::NewNominator, + new_bouncer: types::update_roles::NewBouncer, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NominationPools", @@ -26214,7 +27988,7 @@ pub mod api { #[doc = "See [`Pallet::chill`]."] pub fn chill( &self, - pool_id: ::core::primitive::u32, + pool_id: types::chill::PoolId, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NominationPools", @@ -26230,10 +28004,8 @@ pub mod api { #[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, - >, + member: types::bond_extra_other::Member, + extra: types::bond_extra_other::Extra, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NominationPools", @@ -26249,7 +28021,7 @@ pub mod api { #[doc = "See [`Pallet::set_claim_permission`]."] pub fn set_claim_permission( &self, - permission: runtime_types::pallet_nomination_pools::ClaimPermission, + permission: types::set_claim_permission::Permission, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NominationPools", @@ -26265,7 +28037,7 @@ pub mod api { #[doc = "See [`Pallet::claim_payout_other`]."] pub fn claim_payout_other( &self, - other: ::subxt::utils::AccountId32, + other: types::claim_payout_other::Other, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NominationPools", @@ -26282,11 +28054,8 @@ pub mod api { #[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, - )>, + pool_id: types::set_commission::PoolId, + new_commission: types::set_commission::NewCommission, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NominationPools", @@ -26305,8 +28074,8 @@ pub mod api { #[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, + pool_id: types::set_commission_max::PoolId, + max_commission: types::set_commission_max::MaxCommission, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NominationPools", @@ -26326,10 +28095,8 @@ pub mod api { #[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, - >, + pool_id: types::set_commission_change_rate::PoolId, + change_rate: types::set_commission_change_rate::ChangeRate, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NominationPools", @@ -26348,7 +28115,7 @@ pub mod api { #[doc = "See [`Pallet::claim_commission`]."] pub fn claim_commission( &self, - pool_id: ::core::primitive::u32, + pool_id: types::claim_commission::PoolId, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NominationPools", @@ -26379,8 +28146,13 @@ pub mod api { #[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, + pub depositor: created::Depositor, + pub pool_id: created::PoolId, + } + pub mod created { + use super::runtime_types; + pub type Depositor = ::subxt::utils::AccountId32; + pub type PoolId = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for Created { const PALLET: &'static str = "NominationPools"; @@ -26398,10 +28170,17 @@ pub mod api { #[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, + pub member: bonded::Member, + pub pool_id: bonded::PoolId, + pub bonded: bonded::Bonded, + pub joined: bonded::Joined, + } + pub mod bonded { + use super::runtime_types; + pub type Member = ::subxt::utils::AccountId32; + pub type PoolId = ::core::primitive::u32; + pub type Bonded = ::core::primitive::u128; + pub type Joined = ::core::primitive::bool; } impl ::subxt::events::StaticEvent for Bonded { const PALLET: &'static str = "NominationPools"; @@ -26419,9 +28198,15 @@ pub mod api { #[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, + pub member: paid_out::Member, + pub pool_id: paid_out::PoolId, + pub payout: paid_out::Payout, + } + pub mod paid_out { + use super::runtime_types; + pub type Member = ::subxt::utils::AccountId32; + pub type PoolId = ::core::primitive::u32; + pub type Payout = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for PaidOut { const PALLET: &'static str = "NominationPools"; @@ -26449,11 +28234,19 @@ pub mod api { #[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, + pub member: unbonded::Member, + pub pool_id: unbonded::PoolId, + pub balance: unbonded::Balance, + pub points: unbonded::Points, + pub era: unbonded::Era, + } + pub mod unbonded { + use super::runtime_types; + pub type Member = ::subxt::utils::AccountId32; + pub type PoolId = ::core::primitive::u32; + pub type Balance = ::core::primitive::u128; + pub type Points = ::core::primitive::u128; + pub type Era = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for Unbonded { const PALLET: &'static str = "NominationPools"; @@ -26476,17 +28269,23 @@ pub mod api { #[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, + pub member: withdrawn::Member, + pub pool_id: withdrawn::PoolId, + pub balance: withdrawn::Balance, + pub points: withdrawn::Points, + } + pub mod withdrawn { + use super::runtime_types; + pub type Member = ::subxt::utils::AccountId32; + pub type PoolId = ::core::primitive::u32; + pub type Balance = ::core::primitive::u128; + pub type 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, @@ -26498,7 +28297,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A pool has been destroyed."] pub struct Destroyed { - pub pool_id: ::core::primitive::u32, + pub pool_id: destroyed::PoolId, + } + pub mod destroyed { + use super::runtime_types; + pub type PoolId = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for Destroyed { const PALLET: &'static str = "NominationPools"; @@ -26516,8 +28319,13 @@ pub mod api { #[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, + pub pool_id: state_changed::PoolId, + pub new_state: state_changed::NewState, + } + pub mod state_changed { + use super::runtime_types; + pub type PoolId = ::core::primitive::u32; + pub type NewState = runtime_types::pallet_nomination_pools::PoolState; } impl ::subxt::events::StaticEvent for StateChanged { const PALLET: &'static str = "NominationPools"; @@ -26537,8 +28345,13 @@ pub mod api { #[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, + pub pool_id: member_removed::PoolId, + pub member: member_removed::Member, + } + pub mod member_removed { + use super::runtime_types; + pub type PoolId = ::core::primitive::u32; + pub type Member = ::subxt::utils::AccountId32; } impl ::subxt::events::StaticEvent for MemberRemoved { const PALLET: &'static str = "NominationPools"; @@ -26557,9 +28370,15 @@ pub mod api { #[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>, + pub root: roles_updated::Root, + pub bouncer: roles_updated::Bouncer, + pub nominator: roles_updated::Nominator, + } + pub mod roles_updated { + use super::runtime_types; + pub type Root = ::core::option::Option<::subxt::utils::AccountId32>; + pub type Bouncer = ::core::option::Option<::subxt::utils::AccountId32>; + pub type Nominator = ::core::option::Option<::subxt::utils::AccountId32>; } impl ::subxt::events::StaticEvent for RolesUpdated { const PALLET: &'static str = "NominationPools"; @@ -26577,8 +28396,13 @@ pub mod api { #[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, + pub pool_id: pool_slashed::PoolId, + pub balance: pool_slashed::Balance, + } + pub mod pool_slashed { + use super::runtime_types; + pub type PoolId = ::core::primitive::u32; + pub type Balance = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for PoolSlashed { const PALLET: &'static str = "NominationPools"; @@ -26596,9 +28420,15 @@ pub mod api { #[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, + pub pool_id: unbonding_pool_slashed::PoolId, + pub era: unbonding_pool_slashed::Era, + pub balance: unbonding_pool_slashed::Balance, + } + pub mod unbonding_pool_slashed { + use super::runtime_types; + pub type PoolId = ::core::primitive::u32; + pub type Era = ::core::primitive::u32; + pub type Balance = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for UnbondingPoolSlashed { const PALLET: &'static str = "NominationPools"; @@ -26616,11 +28446,16 @@ pub mod api { #[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<( + pub pool_id: pool_commission_updated::PoolId, + pub current: pool_commission_updated::Current, + } + pub mod pool_commission_updated { + use super::runtime_types; + pub type PoolId = ::core::primitive::u32; + pub type 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"; @@ -26638,8 +28473,13 @@ pub mod api { #[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, + pub pool_id: pool_max_commission_updated::PoolId, + pub max_commission: pool_max_commission_updated::MaxCommission, + } + pub mod pool_max_commission_updated { + use super::runtime_types; + pub type PoolId = ::core::primitive::u32; + pub type MaxCommission = runtime_types::sp_arithmetic::per_things::Perbill; } impl ::subxt::events::StaticEvent for PoolMaxCommissionUpdated { const PALLET: &'static str = "NominationPools"; @@ -26657,10 +28497,15 @@ pub mod api { #[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< + pub pool_id: pool_commission_change_rate_updated::PoolId, + pub change_rate: pool_commission_change_rate_updated::ChangeRate, + } + pub mod pool_commission_change_rate_updated { + use super::runtime_types; + pub type PoolId = ::core::primitive::u32; + pub type ChangeRate = runtime_types::pallet_nomination_pools::CommissionChangeRate< ::core::primitive::u32, - >, + >; } impl ::subxt::events::StaticEvent for PoolCommissionChangeRateUpdated { const PALLET: &'static str = "NominationPools"; @@ -26678,8 +28523,13 @@ pub mod api { #[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, + pub pool_id: pool_commission_claimed::PoolId, + pub commission: pool_commission_claimed::Commission, + } + pub mod pool_commission_claimed { + use super::runtime_types; + pub type PoolId = ::core::primitive::u32; + pub type Commission = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for PoolCommissionClaimed { const PALLET: &'static str = "NominationPools"; @@ -27417,7 +29267,6 @@ pub mod api { const CALL: &'static str = "deregister"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -27429,7 +29278,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::control`]."] pub struct Control { - pub eras_to_check: ::core::primitive::u32, + pub eras_to_check: control::ErasToCheck, + } + pub mod control { + use super::runtime_types; + pub type ErasToCheck = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for Control { const PALLET: &'static str = "FastUnstake"; @@ -27469,7 +29322,7 @@ pub mod api { #[doc = "See [`Pallet::control`]."] pub fn control( &self, - eras_to_check: ::core::primitive::u32, + eras_to_check: types::control::ErasToCheck, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "FastUnstake", @@ -27500,8 +29353,14 @@ pub mod api { #[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>, + pub stash: unstaked::Stash, + pub result: unstaked::Result, + } + pub mod unstaked { + use super::runtime_types; + pub type Stash = ::subxt::utils::AccountId32; + pub type Result = + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>; } impl ::subxt::events::StaticEvent for Unstaked { const PALLET: &'static str = "FastUnstake"; @@ -27519,8 +29378,13 @@ pub mod api { #[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, + pub stash: slashed::Stash, + pub amount: slashed::Amount, + } + pub mod slashed { + use super::runtime_types; + pub type Stash = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Slashed { const PALLET: &'static str = "FastUnstake"; @@ -27538,14 +29402,17 @@ pub mod api { #[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>, + pub eras: batch_checked::Eras, + } + pub mod batch_checked { + use super::runtime_types; + pub type 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, @@ -27560,7 +29427,11 @@ pub mod api { #[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, + pub size: batch_finished::Size, + } + pub mod batch_finished { + use super::runtime_types; + pub type Size = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for BatchFinished { const PALLET: &'static str = "FastUnstake"; @@ -27751,7 +29622,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, @@ -27763,14 +29633,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_validation_upgrade_cooldown`]."] 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"; const CALL: &'static str = "set_validation_upgrade_cooldown"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -27782,14 +29655,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_validation_upgrade_delay`]."] 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"; const CALL: &'static str = "set_validation_upgrade_delay"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -27801,14 +29677,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_code_retention_period`]."] 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"; const CALL: &'static str = "set_code_retention_period"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -27820,14 +29699,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_max_code_size`]."] 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"; const CALL: &'static str = "set_max_code_size"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -27839,14 +29721,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_max_pov_size`]."] 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"; const CALL: &'static str = "set_max_pov_size"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -27858,14 +29743,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_max_head_data_size`]."] 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"; const CALL: &'static str = "set_max_head_data_size"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -27877,14 +29765,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_parathread_cores`]."] pub struct SetParathreadCores { - pub new: ::core::primitive::u32, + pub new: set_parathread_cores::New, + } + pub mod set_parathread_cores { + use super::runtime_types; + pub type New = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for SetParathreadCores { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_parathread_cores"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -27896,14 +29787,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_parathread_retries`]."] pub struct SetParathreadRetries { - pub new: ::core::primitive::u32, + pub new: set_parathread_retries::New, + } + pub mod set_parathread_retries { + use super::runtime_types; + pub type New = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for SetParathreadRetries { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_parathread_retries"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -27915,14 +29809,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_group_rotation_frequency`]."] 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"; const CALL: &'static str = "set_group_rotation_frequency"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -27934,14 +29831,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_chain_availability_period`]."] pub struct SetChainAvailabilityPeriod { - pub new: ::core::primitive::u32, + pub new: set_chain_availability_period::New, + } + pub mod set_chain_availability_period { + use super::runtime_types; + pub type 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, @@ -27953,14 +29853,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_thread_availability_period`]."] pub struct SetThreadAvailabilityPeriod { - pub new: ::core::primitive::u32, + pub new: set_thread_availability_period::New, + } + pub mod set_thread_availability_period { + use super::runtime_types; + pub type New = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for SetThreadAvailabilityPeriod { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_thread_availability_period"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -27972,7 +29875,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_scheduling_lookahead`]."] 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"; @@ -27990,7 +29897,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_max_validators_per_core`]."] 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"; @@ -28008,14 +29919,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_max_validators`]."] 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"; const CALL: &'static str = "set_max_validators"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -28027,14 +29941,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_dispute_period`]."] 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"; const CALL: &'static str = "set_dispute_period"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -28046,14 +29963,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_dispute_post_conclusion_acceptance_period`]."] 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"; const CALL: &'static str = "set_dispute_post_conclusion_acceptance_period"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -28065,14 +29985,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_no_show_slots`]."] 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"; const CALL: &'static str = "set_no_show_slots"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -28084,14 +30007,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_n_delay_tranches`]."] 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"; const CALL: &'static str = "set_n_delay_tranches"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -28103,14 +30029,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_zeroth_delay_tranche_width`]."] 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"; const CALL: &'static str = "set_zeroth_delay_tranche_width"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -28122,14 +30051,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_needed_approvals`]."] 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"; const CALL: &'static str = "set_needed_approvals"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -28141,14 +30073,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_relay_vrf_modulo_samples`]."] 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"; const CALL: &'static str = "set_relay_vrf_modulo_samples"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -28160,14 +30095,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_max_upward_queue_count`]."] 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"; const CALL: &'static str = "set_max_upward_queue_count"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -28179,14 +30117,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_max_upward_queue_size`]."] 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"; const CALL: &'static str = "set_max_upward_queue_size"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -28198,14 +30139,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_max_downward_message_size`]."] 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"; const CALL: &'static str = "set_max_downward_message_size"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -28217,14 +30161,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_max_upward_message_size`]."] 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"; const CALL: &'static str = "set_max_upward_message_size"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -28236,14 +30183,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_max_upward_message_num_per_candidate`]."] 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"; const CALL: &'static str = "set_max_upward_message_num_per_candidate"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -28255,14 +30205,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_hrmp_open_request_ttl`]."] 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"; const CALL: &'static str = "set_hrmp_open_request_ttl"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -28274,14 +30227,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_hrmp_sender_deposit`]."] 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"; const CALL: &'static str = "set_hrmp_sender_deposit"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -28293,14 +30249,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_hrmp_recipient_deposit`]."] 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"; const CALL: &'static str = "set_hrmp_recipient_deposit"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -28312,14 +30271,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_hrmp_channel_max_capacity`]."] 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"; const CALL: &'static str = "set_hrmp_channel_max_capacity"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -28331,14 +30293,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_hrmp_channel_max_total_size`]."] 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"; const CALL: &'static str = "set_hrmp_channel_max_total_size"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -28350,14 +30315,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_hrmp_max_parachain_inbound_channels`]."] 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"; const CALL: &'static str = "set_hrmp_max_parachain_inbound_channels"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -28369,14 +30337,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_hrmp_max_parathread_inbound_channels`]."] pub struct SetHrmpMaxParathreadInboundChannels { - pub new: ::core::primitive::u32, + pub new: set_hrmp_max_parathread_inbound_channels::New, + } + pub mod set_hrmp_max_parathread_inbound_channels { + use super::runtime_types; + pub type New = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for SetHrmpMaxParathreadInboundChannels { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_hrmp_max_parathread_inbound_channels"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -28388,14 +30359,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_hrmp_channel_max_message_size`]."] 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"; const CALL: &'static str = "set_hrmp_channel_max_message_size"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -28407,14 +30381,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_hrmp_max_parachain_outbound_channels`]."] 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"; const CALL: &'static str = "set_hrmp_max_parachain_outbound_channels"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -28426,14 +30403,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_hrmp_max_parathread_outbound_channels`]."] pub struct SetHrmpMaxParathreadOutboundChannels { - pub new: ::core::primitive::u32, + pub new: set_hrmp_max_parathread_outbound_channels::New, + } + pub mod set_hrmp_max_parathread_outbound_channels { + use super::runtime_types; + pub type New = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for SetHrmpMaxParathreadOutboundChannels { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_hrmp_max_parathread_outbound_channels"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -28445,7 +30425,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_hrmp_max_message_num_per_candidate`]."] 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"; @@ -28463,14 +30447,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_pvf_checking_enabled`]."] pub struct SetPvfCheckingEnabled { - pub new: ::core::primitive::bool, + pub new: set_pvf_checking_enabled::New, + } + pub mod set_pvf_checking_enabled { + use super::runtime_types; + pub type New = ::core::primitive::bool; } impl ::subxt::blocks::StaticExtrinsic for SetPvfCheckingEnabled { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_pvf_checking_enabled"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -28482,14 +30469,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_pvf_voting_ttl`]."] 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"; const CALL: &'static str = "set_pvf_voting_ttl"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -28501,7 +30491,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_minimum_validation_upgrade_delay`]."] 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"; @@ -28519,7 +30513,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_bypass_consistency_check`]."] 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"; @@ -28537,7 +30535,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_async_backing_params`]."] pub struct SetAsyncBackingParams { - pub new: runtime_types::polkadot_primitives::vstaging::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::vstaging::AsyncBackingParams; } impl ::subxt::blocks::StaticExtrinsic for SetAsyncBackingParams { const PALLET: &'static str = "Configuration"; @@ -28555,8 +30557,12 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_executor_params`]."] pub struct SetExecutorParams { - pub new: - runtime_types::polkadot_primitives::v5::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::v5::executor_params::ExecutorParams; } impl ::subxt::blocks::StaticExtrinsic for SetExecutorParams { const PALLET: &'static str = "Configuration"; @@ -28568,7 +30574,7 @@ pub mod api { #[doc = "See [`Pallet::set_validation_upgrade_cooldown`]."] pub fn set_validation_upgrade_cooldown( &self, - new: ::core::primitive::u32, + new: types::set_validation_upgrade_cooldown::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28585,7 +30591,7 @@ pub mod api { #[doc = "See [`Pallet::set_validation_upgrade_delay`]."] pub fn set_validation_upgrade_delay( &self, - new: ::core::primitive::u32, + new: types::set_validation_upgrade_delay::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28601,7 +30607,7 @@ pub mod api { #[doc = "See [`Pallet::set_code_retention_period`]."] pub fn set_code_retention_period( &self, - new: ::core::primitive::u32, + new: types::set_code_retention_period::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28618,7 +30624,7 @@ pub mod api { #[doc = "See [`Pallet::set_max_code_size`]."] pub fn set_max_code_size( &self, - new: ::core::primitive::u32, + new: types::set_max_code_size::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28635,7 +30641,7 @@ pub mod api { #[doc = "See [`Pallet::set_max_pov_size`]."] pub fn set_max_pov_size( &self, - new: ::core::primitive::u32, + new: types::set_max_pov_size::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28651,7 +30657,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: types::set_max_head_data_size::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28668,7 +30674,7 @@ pub mod api { #[doc = "See [`Pallet::set_parathread_cores`]."] pub fn set_parathread_cores( &self, - new: ::core::primitive::u32, + new: types::set_parathread_cores::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28685,7 +30691,7 @@ pub mod api { #[doc = "See [`Pallet::set_parathread_retries`]."] pub fn set_parathread_retries( &self, - new: ::core::primitive::u32, + new: types::set_parathread_retries::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28702,7 +30708,7 @@ pub mod api { #[doc = "See [`Pallet::set_group_rotation_frequency`]."] pub fn set_group_rotation_frequency( &self, - new: ::core::primitive::u32, + new: types::set_group_rotation_frequency::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28718,7 +30724,7 @@ pub mod api { #[doc = "See [`Pallet::set_chain_availability_period`]."] pub fn set_chain_availability_period( &self, - new: ::core::primitive::u32, + new: types::set_chain_availability_period::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28735,7 +30741,7 @@ pub mod api { #[doc = "See [`Pallet::set_thread_availability_period`]."] pub fn set_thread_availability_period( &self, - new: ::core::primitive::u32, + new: types::set_thread_availability_period::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28752,7 +30758,7 @@ pub mod api { #[doc = "See [`Pallet::set_scheduling_lookahead`]."] pub fn set_scheduling_lookahead( &self, - new: ::core::primitive::u32, + new: types::set_scheduling_lookahead::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28769,7 +30775,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: types::set_max_validators_per_core::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28786,7 +30792,7 @@ pub mod api { #[doc = "See [`Pallet::set_max_validators`]."] pub fn set_max_validators( &self, - new: ::core::option::Option<::core::primitive::u32>, + new: types::set_max_validators::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28803,7 +30809,7 @@ pub mod api { #[doc = "See [`Pallet::set_dispute_period`]."] pub fn set_dispute_period( &self, - new: ::core::primitive::u32, + new: types::set_dispute_period::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28820,7 +30826,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: types::set_dispute_post_conclusion_acceptance_period::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( @@ -28838,7 +30844,7 @@ pub mod api { #[doc = "See [`Pallet::set_no_show_slots`]."] pub fn set_no_show_slots( &self, - new: ::core::primitive::u32, + new: types::set_no_show_slots::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28854,7 +30860,7 @@ pub mod api { #[doc = "See [`Pallet::set_n_delay_tranches`]."] pub fn set_n_delay_tranches( &self, - new: ::core::primitive::u32, + new: types::set_n_delay_tranches::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28871,7 +30877,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: types::set_zeroth_delay_tranche_width::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28887,7 +30893,7 @@ pub mod api { #[doc = "See [`Pallet::set_needed_approvals`]."] pub fn set_needed_approvals( &self, - new: ::core::primitive::u32, + new: types::set_needed_approvals::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28903,7 +30909,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: types::set_relay_vrf_modulo_samples::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28920,7 +30926,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: types::set_max_upward_queue_count::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28937,7 +30943,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: types::set_max_upward_queue_size::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28954,7 +30960,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: types::set_max_downward_message_size::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28970,7 +30976,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: types::set_max_upward_message_size::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -28987,7 +30993,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: types::set_max_upward_message_num_per_candidate::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( @@ -29004,7 +31010,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: types::set_hrmp_open_request_ttl::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -29020,7 +31026,7 @@ pub mod api { #[doc = "See [`Pallet::set_hrmp_sender_deposit`]."] pub fn set_hrmp_sender_deposit( &self, - new: ::core::primitive::u128, + new: types::set_hrmp_sender_deposit::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -29036,7 +31042,7 @@ pub mod api { #[doc = "See [`Pallet::set_hrmp_recipient_deposit`]."] pub fn set_hrmp_recipient_deposit( &self, - new: ::core::primitive::u128, + new: types::set_hrmp_recipient_deposit::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -29053,7 +31059,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: types::set_hrmp_channel_max_capacity::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -29070,7 +31076,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: types::set_hrmp_channel_max_total_size::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -29086,7 +31092,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: types::set_hrmp_max_parachain_inbound_channels::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( @@ -29103,7 +31109,7 @@ 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, + new: types::set_hrmp_max_parathread_inbound_channels::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( @@ -29120,7 +31126,7 @@ pub mod api { #[doc = "See [`Pallet::set_hrmp_channel_max_message_size`]."] pub fn set_hrmp_channel_max_message_size( &self, - new: ::core::primitive::u32, + new: types::set_hrmp_channel_max_message_size::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -29137,7 +31143,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: types::set_hrmp_max_parachain_outbound_channels::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( @@ -29154,7 +31160,7 @@ 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, + new: types::set_hrmp_max_parathread_outbound_channels::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( @@ -29172,7 +31178,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: ::core::primitive::u32, + new: types::set_hrmp_max_message_num_per_candidate::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -29188,7 +31194,7 @@ pub mod api { #[doc = "See [`Pallet::set_pvf_checking_enabled`]."] pub fn set_pvf_checking_enabled( &self, - new: ::core::primitive::bool, + new: types::set_pvf_checking_enabled::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -29205,7 +31211,7 @@ pub mod api { #[doc = "See [`Pallet::set_pvf_voting_ttl`]."] pub fn set_pvf_voting_ttl( &self, - new: ::core::primitive::u32, + new: types::set_pvf_voting_ttl::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -29222,7 +31228,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: types::set_minimum_validation_upgrade_delay::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -29239,7 +31245,7 @@ pub mod api { #[doc = "See [`Pallet::set_bypass_consistency_check`]."] pub fn set_bypass_consistency_check( &self, - new: ::core::primitive::bool, + new: types::set_bypass_consistency_check::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -29256,7 +31262,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: types::set_async_backing_params::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -29273,7 +31279,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: types::set_executor_params::New, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -29482,11 +31488,19 @@ 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 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::v5::CandidateReceipt<::subxt::utils::H256>; + pub type Field1 = runtime_types::polkadot_parachain::primitives::HeadData; + pub type Field2 = runtime_types::polkadot_primitives::v5::CoreIndex; + pub type Field3 = runtime_types::polkadot_primitives::v5::GroupIndex; + } impl ::subxt::events::StaticEvent for CandidateBacked { const PALLET: &'static str = "ParaInclusion"; const EVENT: &'static str = "CandidateBacked"; @@ -29503,11 +31517,19 @@ 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 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::v5::CandidateReceipt<::subxt::utils::H256>; + pub type Field1 = runtime_types::polkadot_parachain::primitives::HeadData; + pub type Field2 = runtime_types::polkadot_primitives::v5::CoreIndex; + pub type Field3 = runtime_types::polkadot_primitives::v5::GroupIndex; + } impl ::subxt::events::StaticEvent for CandidateIncluded { const PALLET: &'static str = "ParaInclusion"; const EVENT: &'static str = "CandidateIncluded"; @@ -29524,10 +31546,17 @@ 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 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::v5::CandidateReceipt<::subxt::utils::H256>; + pub type Field1 = runtime_types::polkadot_parachain::primitives::HeadData; + pub type Field2 = runtime_types::polkadot_primitives::v5::CoreIndex; + } impl ::subxt::events::StaticEvent for CandidateTimedOut { const PALLET: &'static str = "ParaInclusion"; const EVENT: &'static str = "CandidateTimedOut"; @@ -29544,8 +31573,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::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::Id; + pub type Count = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for UpwardMessagesReceived { const PALLET: &'static str = "ParaInclusion"; @@ -29685,12 +31719,16 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::enter`]."] pub struct Enter { - pub data: runtime_types::polkadot_primitives::v5::InherentData< + pub data: enter::Data, + } + pub mod enter { + use super::runtime_types; + pub type Data = runtime_types::polkadot_primitives::v5::InherentData< runtime_types::sp_runtime::generic::header::Header< ::core::primitive::u32, runtime_types::sp_runtime::traits::BlakeTwo256, >, - >, + >; } impl ::subxt::blocks::StaticExtrinsic for Enter { const PALLET: &'static str = "ParaInherent"; @@ -29702,12 +31740,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: types::enter::Data, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ParaInherent", @@ -29978,8 +32011,14 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::force_set_current_code`]."] pub struct ForceSetCurrentCode { - pub para: runtime_types::polkadot_parachain::primitives::Id, - pub new_code: runtime_types::polkadot_parachain::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::Id; + pub type NewCode = + runtime_types::polkadot_parachain::primitives::ValidationCode; } impl ::subxt::blocks::StaticExtrinsic for ForceSetCurrentCode { const PALLET: &'static str = "Paras"; @@ -29997,8 +32036,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::force_set_current_head`]."] pub struct ForceSetCurrentHead { - pub para: runtime_types::polkadot_parachain::primitives::Id, - pub new_head: runtime_types::polkadot_parachain::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::Id; + pub type NewHead = runtime_types::polkadot_parachain::primitives::HeadData; } impl ::subxt::blocks::StaticExtrinsic for ForceSetCurrentHead { const PALLET: &'static str = "Paras"; @@ -30016,9 +32060,16 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::force_schedule_code_upgrade`]."] pub struct ForceScheduleCodeUpgrade { - pub para: runtime_types::polkadot_parachain::primitives::Id, - pub new_code: runtime_types::polkadot_parachain::primitives::ValidationCode, - pub relay_parent_number: ::core::primitive::u32, + 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::Id; + pub type NewCode = + runtime_types::polkadot_parachain::primitives::ValidationCode; + pub type RelayParentNumber = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for ForceScheduleCodeUpgrade { const PALLET: &'static str = "Paras"; @@ -30036,8 +32087,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::force_note_new_head`]."] pub struct ForceNoteNewHead { - pub para: runtime_types::polkadot_parachain::primitives::Id, - pub new_head: runtime_types::polkadot_parachain::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::Id; + pub type NewHead = runtime_types::polkadot_parachain::primitives::HeadData; } impl ::subxt::blocks::StaticExtrinsic for ForceNoteNewHead { const PALLET: &'static str = "Paras"; @@ -30055,7 +32111,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::force_queue_action`]."] pub struct ForceQueueAction { - pub para: runtime_types::polkadot_parachain::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::Id; } impl ::subxt::blocks::StaticExtrinsic for ForceQueueAction { const PALLET: &'static str = "Paras"; @@ -30073,8 +32133,12 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::add_trusted_validation_code`]."] pub struct AddTrustedValidationCode { - pub validation_code: - runtime_types::polkadot_parachain::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::ValidationCode; } impl ::subxt::blocks::StaticExtrinsic for AddTrustedValidationCode { const PALLET: &'static str = "Paras"; @@ -30092,8 +32156,12 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::poke_unused_validation_code`]."] pub struct PokeUnusedValidationCode { - pub validation_code_hash: - runtime_types::polkadot_parachain::primitives::ValidationCodeHash, + 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::ValidationCodeHash; } impl ::subxt::blocks::StaticExtrinsic for PokeUnusedValidationCode { const PALLET: &'static str = "Paras"; @@ -30111,8 +32179,14 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::include_pvf_check_statement`]."] pub struct IncludePvfCheckStatement { - pub stmt: runtime_types::polkadot_primitives::v5::PvfCheckStatement, - pub signature: runtime_types::polkadot_primitives::v5::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::v5::PvfCheckStatement; + pub type Signature = + runtime_types::polkadot_primitives::v5::validator_app::Signature; } impl ::subxt::blocks::StaticExtrinsic for IncludePvfCheckStatement { const PALLET: &'static str = "Paras"; @@ -30124,8 +32198,8 @@ pub mod api { #[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: types::force_set_current_code::Para, + new_code: types::force_set_current_code::NewCode, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Paras", @@ -30142,8 +32216,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: types::force_set_current_head::Para, + new_head: types::force_set_current_head::NewHead, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Paras", @@ -30160,9 +32234,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: 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", @@ -30183,8 +32257,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: types::force_note_new_head::Para, + new_head: types::force_note_new_head::NewHead, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Paras", @@ -30200,7 +32274,7 @@ pub mod api { #[doc = "See [`Pallet::force_queue_action`]."] pub fn force_queue_action( &self, - para: runtime_types::polkadot_parachain::primitives::Id, + para: types::force_queue_action::Para, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Paras", @@ -30217,7 +32291,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: types::add_trusted_validation_code::ValidationCode, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Paras", @@ -30234,7 +32308,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: types::poke_unused_validation_code::ValidationCodeHash, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Paras", @@ -30252,8 +32326,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: types::include_pvf_check_statement::Stmt, + signature: types::include_pvf_check_statement::Signature, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Paras", @@ -30284,7 +32358,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::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::Id; + } impl ::subxt::events::StaticEvent for CurrentCodeUpdated { const PALLET: &'static str = "Paras"; const EVENT: &'static str = "CurrentCodeUpdated"; @@ -30300,7 +32378,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::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::Id; + } impl ::subxt::events::StaticEvent for CurrentHeadUpdated { const PALLET: &'static str = "Paras"; const EVENT: &'static str = "CurrentHeadUpdated"; @@ -30316,7 +32398,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::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::Id; + } impl ::subxt::events::StaticEvent for CodeUpgradeScheduled { const PALLET: &'static str = "Paras"; const EVENT: &'static str = "CodeUpgradeScheduled"; @@ -30332,7 +32418,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::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::Id; + } impl ::subxt::events::StaticEvent for NewHeadNoted { const PALLET: &'static str = "Paras"; const EVENT: &'static str = "NewHeadNoted"; @@ -30348,10 +32438,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::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::Id; + pub type Field1 = ::core::primitive::u32; + } impl ::subxt::events::StaticEvent for ActionQueued { const PALLET: &'static str = "Paras"; const EVENT: &'static str = "ActionQueued"; @@ -30369,9 +32461,14 @@ 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 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::ValidationCodeHash; + pub type Field1 = runtime_types::polkadot_parachain::primitives::Id; + } impl ::subxt::events::StaticEvent for PvfCheckStarted { const PALLET: &'static str = "Paras"; const EVENT: &'static str = "PvfCheckStarted"; @@ -30389,9 +32486,14 @@ 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 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::ValidationCodeHash; + pub type Field1 = runtime_types::polkadot_parachain::primitives::Id; + } impl ::subxt::events::StaticEvent for PvfCheckAccepted { const PALLET: &'static str = "Paras"; const EVENT: &'static str = "PvfCheckAccepted"; @@ -30409,9 +32511,14 @@ 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 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::ValidationCodeHash; + pub type Field1 = runtime_types::polkadot_parachain::primitives::Id; + } impl ::subxt::events::StaticEvent for PvfCheckRejected { const PALLET: &'static str = "Paras"; const EVENT: &'static str = "PvfCheckRejected"; @@ -31345,7 +33452,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, @@ -31357,7 +33463,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::force_approve`]."] 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"; @@ -31369,7 +33479,7 @@ pub mod api { #[doc = "See [`Pallet::force_approve`]."] pub fn force_approve( &self, - up_to: ::core::primitive::u32, + up_to: types::force_approve::UpTo, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Initializer", @@ -31630,9 +33740,15 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::hrmp_init_open_channel`]."] pub struct HrmpInitOpenChannel { - pub recipient: runtime_types::polkadot_parachain::primitives::Id, - pub proposed_max_capacity: ::core::primitive::u32, - pub proposed_max_message_size: ::core::primitive::u32, + 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::Id; + pub type ProposedMaxCapacity = ::core::primitive::u32; + pub type ProposedMaxMessageSize = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for HrmpInitOpenChannel { const PALLET: &'static str = "Hrmp"; @@ -31650,7 +33766,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::hrmp_accept_open_channel`]."] pub struct HrmpAcceptOpenChannel { - pub sender: runtime_types::polkadot_parachain::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::Id; } impl ::subxt::blocks::StaticExtrinsic for HrmpAcceptOpenChannel { const PALLET: &'static str = "Hrmp"; @@ -31668,7 +33788,12 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::hrmp_close_channel`]."] pub struct HrmpCloseChannel { - pub channel_id: runtime_types::polkadot_parachain::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::HrmpChannelId; } impl ::subxt::blocks::StaticExtrinsic for HrmpCloseChannel { const PALLET: &'static str = "Hrmp"; @@ -31686,16 +33811,21 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::force_clean_hrmp`]."] pub struct ForceCleanHrmp { - pub para: runtime_types::polkadot_parachain::primitives::Id, - pub inbound: ::core::primitive::u32, - pub outbound: ::core::primitive::u32, + pub para: force_clean_hrmp::Para, + pub inbound: force_clean_hrmp::Inbound, + pub outbound: force_clean_hrmp::Outbound, + } + pub mod force_clean_hrmp { + use super::runtime_types; + pub type Para = runtime_types::polkadot_parachain::primitives::Id; + pub type Inbound = ::core::primitive::u32; + pub type Outbound = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for ForceCleanHrmp { const PALLET: &'static str = "Hrmp"; const CALL: &'static str = "force_clean_hrmp"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -31707,14 +33837,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::force_process_hrmp_open`]."] 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"; const CALL: &'static str = "force_process_hrmp_open"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -31726,7 +33859,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::force_process_hrmp_close`]."] 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"; @@ -31744,8 +33881,14 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::hrmp_cancel_open_request`]."] pub struct HrmpCancelOpenRequest { - pub channel_id: runtime_types::polkadot_parachain::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::HrmpChannelId; + pub type OpenRequests = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for HrmpCancelOpenRequest { const PALLET: &'static str = "Hrmp"; @@ -31763,10 +33906,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::force_open_hrmp_channel`]."] pub struct ForceOpenHrmpChannel { - pub sender: runtime_types::polkadot_parachain::primitives::Id, - pub recipient: runtime_types::polkadot_parachain::primitives::Id, - pub max_capacity: ::core::primitive::u32, - pub max_message_size: ::core::primitive::u32, + 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::Id; + pub type Recipient = runtime_types::polkadot_parachain::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"; @@ -31778,9 +33928,9 @@ pub mod api { #[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: 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", @@ -31801,7 +33951,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: types::hrmp_accept_open_channel::Sender, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Hrmp", @@ -31817,7 +33967,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: types::hrmp_close_channel::ChannelId, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Hrmp", @@ -31834,9 +33984,9 @@ 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: types::force_clean_hrmp::Para, + inbound: types::force_clean_hrmp::Inbound, + outbound: types::force_clean_hrmp::Outbound, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Hrmp", @@ -31856,7 +34006,7 @@ pub mod api { #[doc = "See [`Pallet::force_process_hrmp_open`]."] pub fn force_process_hrmp_open( &self, - channels: ::core::primitive::u32, + channels: types::force_process_hrmp_open::Channels, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Hrmp", @@ -31873,7 +34023,7 @@ pub mod api { #[doc = "See [`Pallet::force_process_hrmp_close`]."] pub fn force_process_hrmp_close( &self, - channels: ::core::primitive::u32, + channels: types::force_process_hrmp_close::Channels, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Hrmp", @@ -31890,8 +34040,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: types::hrmp_cancel_open_request::ChannelId, + open_requests: types::hrmp_cancel_open_request::OpenRequests, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Hrmp", @@ -31910,10 +34060,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: 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", @@ -31950,11 +34100,18 @@ pub mod api { #[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 open_channel_requested::Field0, + pub open_channel_requested::Field1, + pub open_channel_requested::Field2, + pub open_channel_requested::Field3, ); + pub mod open_channel_requested { + use super::runtime_types; + pub type Field0 = runtime_types::polkadot_parachain::primitives::Id; + pub type Field1 = runtime_types::polkadot_parachain::primitives::Id; + pub type Field2 = ::core::primitive::u32; + pub type Field3 = ::core::primitive::u32; + } impl ::subxt::events::StaticEvent for OpenChannelRequested { const PALLET: &'static str = "Hrmp"; const EVENT: &'static str = "OpenChannelRequested"; @@ -31972,9 +34129,14 @@ pub mod api { #[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 open_channel_canceled::Field0, + pub open_channel_canceled::Field1, ); + pub mod open_channel_canceled { + use super::runtime_types; + pub type Field0 = runtime_types::polkadot_parachain::primitives::Id; + pub type Field1 = runtime_types::polkadot_parachain::primitives::HrmpChannelId; + } impl ::subxt::events::StaticEvent for OpenChannelCanceled { const PALLET: &'static str = "Hrmp"; const EVENT: &'static str = "OpenChannelCanceled"; @@ -31991,9 +34153,14 @@ pub mod api { #[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, + pub open_channel_accepted::Field0, + pub open_channel_accepted::Field1, ); + pub mod open_channel_accepted { + use super::runtime_types; + pub type Field0 = runtime_types::polkadot_parachain::primitives::Id; + pub type Field1 = runtime_types::polkadot_parachain::primitives::Id; + } impl ::subxt::events::StaticEvent for OpenChannelAccepted { const PALLET: &'static str = "Hrmp"; const EVENT: &'static str = "OpenChannelAccepted"; @@ -32009,10 +34176,12 @@ pub mod api { #[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, - ); + pub struct ChannelClosed(pub channel_closed::Field0, pub channel_closed::Field1); + pub mod channel_closed { + use super::runtime_types; + pub type Field0 = runtime_types::polkadot_parachain::primitives::Id; + pub type Field1 = runtime_types::polkadot_parachain::primitives::HrmpChannelId; + } impl ::subxt::events::StaticEvent for ChannelClosed { const PALLET: &'static str = "Hrmp"; const EVENT: &'static str = "ChannelClosed"; @@ -32030,11 +34199,18 @@ pub mod api { #[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 hrmp_channel_force_opened::Field0, + pub hrmp_channel_force_opened::Field1, + pub hrmp_channel_force_opened::Field2, + pub hrmp_channel_force_opened::Field3, ); + pub mod hrmp_channel_force_opened { + use super::runtime_types; + pub type Field0 = runtime_types::polkadot_parachain::primitives::Id; + pub type Field1 = runtime_types::polkadot_parachain::primitives::Id; + pub type Field2 = ::core::primitive::u32; + pub type Field3 = ::core::primitive::u32; + } impl ::subxt::events::StaticEvent for HrmpChannelForceOpened { const PALLET: &'static str = "Hrmp"; const EVENT: &'static str = "HrmpChannelForceOpened"; @@ -32908,9 +35084,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"; @@ -32928,15 +35110,20 @@ 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"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -32950,7 +35137,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"; @@ -33271,10 +35462,15 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::report_dispute_lost_unsigned`]."] 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 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::v5::slashing::DisputeProof; + pub type KeyOwnerProof = runtime_types::sp_session::MembershipProof; } impl ::subxt::blocks::StaticExtrinsic for ReportDisputeLostUnsigned { const PALLET: &'static str = "ParasSlashing"; @@ -33286,8 +35482,8 @@ pub mod api { #[doc = "See [`Pallet::report_dispute_lost_unsigned`]."] pub fn report_dispute_lost_unsigned( &self, - dispute_proof: runtime_types::polkadot_primitives::v5::slashing::DisputeProof, - key_owner_proof: runtime_types::sp_session::MembershipProof, + 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", @@ -33459,10 +35655,16 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::register`]."] pub struct Register { - pub id: runtime_types::polkadot_parachain::primitives::Id, - pub genesis_head: runtime_types::polkadot_parachain::primitives::HeadData, - pub validation_code: - runtime_types::polkadot_parachain::primitives::ValidationCode, + pub 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::Id; + pub type GenesisHead = runtime_types::polkadot_parachain::primitives::HeadData; + pub type ValidationCode = + runtime_types::polkadot_parachain::primitives::ValidationCode; } impl ::subxt::blocks::StaticExtrinsic for Register { const PALLET: &'static str = "Registrar"; @@ -33480,12 +35682,20 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::force_register`]."] 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 validation_code: - runtime_types::polkadot_parachain::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::Id; + pub type GenesisHead = runtime_types::polkadot_parachain::primitives::HeadData; + pub type ValidationCode = + runtime_types::polkadot_parachain::primitives::ValidationCode; } impl ::subxt::blocks::StaticExtrinsic for ForceRegister { const PALLET: &'static str = "Registrar"; @@ -33503,7 +35713,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::deregister`]."] pub struct Deregister { - pub id: runtime_types::polkadot_parachain::primitives::Id, + pub id: deregister::Id, + } + pub mod deregister { + use super::runtime_types; + pub type Id = runtime_types::polkadot_parachain::primitives::Id; } impl ::subxt::blocks::StaticExtrinsic for Deregister { const PALLET: &'static str = "Registrar"; @@ -33521,8 +35735,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::swap`]."] pub struct Swap { - pub id: runtime_types::polkadot_parachain::primitives::Id, - pub other: runtime_types::polkadot_parachain::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::Id; + pub type Other = runtime_types::polkadot_parachain::primitives::Id; } impl ::subxt::blocks::StaticExtrinsic for Swap { const PALLET: &'static str = "Registrar"; @@ -33540,7 +35759,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::remove_lock`]."] pub struct RemoveLock { - pub para: runtime_types::polkadot_parachain::primitives::Id, + pub para: remove_lock::Para, + } + pub mod remove_lock { + use super::runtime_types; + pub type Para = runtime_types::polkadot_parachain::primitives::Id; } impl ::subxt::blocks::StaticExtrinsic for RemoveLock { const PALLET: &'static str = "Registrar"; @@ -33574,7 +35797,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::add_lock`]."] pub struct AddLock { - pub para: runtime_types::polkadot_parachain::primitives::Id, + pub para: add_lock::Para, + } + pub mod add_lock { + use super::runtime_types; + pub type Para = runtime_types::polkadot_parachain::primitives::Id; } impl ::subxt::blocks::StaticExtrinsic for AddLock { const PALLET: &'static str = "Registrar"; @@ -33592,8 +35819,14 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::schedule_code_upgrade`]."] pub struct ScheduleCodeUpgrade { - pub para: runtime_types::polkadot_parachain::primitives::Id, - pub new_code: runtime_types::polkadot_parachain::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::Id; + pub type NewCode = + runtime_types::polkadot_parachain::primitives::ValidationCode; } impl ::subxt::blocks::StaticExtrinsic for ScheduleCodeUpgrade { const PALLET: &'static str = "Registrar"; @@ -33611,8 +35844,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::set_current_head`]."] pub struct SetCurrentHead { - pub para: runtime_types::polkadot_parachain::primitives::Id, - pub new_head: runtime_types::polkadot_parachain::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::Id; + pub type NewHead = runtime_types::polkadot_parachain::primitives::HeadData; } impl ::subxt::blocks::StaticExtrinsic for SetCurrentHead { const PALLET: &'static str = "Registrar"; @@ -33624,9 +35862,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: types::register::Id, + genesis_head: types::register::GenesisHead, + validation_code: types::register::ValidationCode, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Registrar", @@ -33646,11 +35884,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: 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", @@ -33673,7 +35911,7 @@ pub mod api { #[doc = "See [`Pallet::deregister`]."] pub fn deregister( &self, - id: runtime_types::polkadot_parachain::primitives::Id, + id: types::deregister::Id, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Registrar", @@ -33689,8 +35927,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: types::swap::Id, + other: types::swap::Other, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Registrar", @@ -33707,7 +35945,7 @@ pub mod api { #[doc = "See [`Pallet::remove_lock`]."] pub fn remove_lock( &self, - para: runtime_types::polkadot_parachain::primitives::Id, + para: types::remove_lock::Para, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Registrar", @@ -33736,7 +35974,7 @@ pub mod api { #[doc = "See [`Pallet::add_lock`]."] pub fn add_lock( &self, - para: runtime_types::polkadot_parachain::primitives::Id, + para: types::add_lock::Para, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Registrar", @@ -33752,8 +35990,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: types::schedule_code_upgrade::Para, + new_code: types::schedule_code_upgrade::NewCode, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Registrar", @@ -33770,8 +36008,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: types::set_current_head::Para, + new_head: types::set_current_head::NewHead, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Registrar", @@ -33802,8 +36040,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::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::Id; + pub type Manager = ::subxt::utils::AccountId32; } impl ::subxt::events::StaticEvent for Registered { const PALLET: &'static str = "Registrar"; @@ -33820,7 +36063,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::Id, + pub para_id: deregistered::ParaId, + } + pub mod deregistered { + use super::runtime_types; + pub type ParaId = runtime_types::polkadot_parachain::primitives::Id; } impl ::subxt::events::StaticEvent for Deregistered { const PALLET: &'static str = "Registrar"; @@ -33837,8 +36084,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::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::Id; + pub type Who = ::subxt::utils::AccountId32; } impl ::subxt::events::StaticEvent for Reserved { const PALLET: &'static str = "Registrar"; @@ -33855,8 +36107,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::Id, - pub other_id: runtime_types::polkadot_parachain::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::Id; + pub type OtherId = runtime_types::polkadot_parachain::primitives::Id; } impl ::subxt::events::StaticEvent for Swapped { const PALLET: &'static str = "Registrar"; @@ -34054,11 +36311,19 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::force_lease`]."] pub struct ForceLease { - pub para: runtime_types::polkadot_parachain::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::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"; @@ -34076,7 +36341,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::clear_all_leases`]."] pub struct ClearAllLeases { - pub para: runtime_types::polkadot_parachain::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::Id; } impl ::subxt::blocks::StaticExtrinsic for ClearAllLeases { const PALLET: &'static str = "Slots"; @@ -34094,7 +36363,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::trigger_onboard`]."] pub struct TriggerOnboard { - pub para: runtime_types::polkadot_parachain::primitives::Id, + pub para: trigger_onboard::Para, + } + pub mod trigger_onboard { + use super::runtime_types; + pub type Para = runtime_types::polkadot_parachain::primitives::Id; } impl ::subxt::blocks::StaticExtrinsic for TriggerOnboard { const PALLET: &'static str = "Slots"; @@ -34106,11 +36379,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: 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", @@ -34133,7 +36406,7 @@ pub mod api { #[doc = "See [`Pallet::clear_all_leases`]."] pub fn clear_all_leases( &self, - para: runtime_types::polkadot_parachain::primitives::Id, + para: types::clear_all_leases::Para, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Slots", @@ -34149,7 +36422,7 @@ pub mod api { #[doc = "See [`Pallet::trigger_onboard`]."] pub fn trigger_onboard( &self, - para: runtime_types::polkadot_parachain::primitives::Id, + para: types::trigger_onboard::Para, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Slots", @@ -34169,7 +36442,6 @@ pub mod api { 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, @@ -34181,7 +36453,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"; @@ -34201,12 +36477,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::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::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"; @@ -34365,9 +36650,14 @@ pub mod api { #[doc = "See [`Pallet::new_auction`]."] 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"; @@ -34386,15 +36676,23 @@ pub mod api { #[doc = "See [`Pallet::bid`]."] pub struct Bid { #[codec(compact)] - pub para: runtime_types::polkadot_parachain::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::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"; @@ -34422,8 +36720,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: types::new_auction::Duration, + lease_period_index: types::new_auction::LeasePeriodIndex, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Auctions", @@ -34443,11 +36741,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: 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", @@ -34498,16 +36796,21 @@ 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"; const EVENT: &'static str = "AuctionStarted"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -34519,7 +36822,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"; @@ -34538,9 +36845,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"; @@ -34558,8 +36871,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"; @@ -34578,9 +36896,15 @@ pub mod api { #[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."] pub struct ReserveConfiscated { - pub para_id: runtime_types::polkadot_parachain::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::Id; + pub type Leaser = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for ReserveConfiscated { const PALLET: &'static str = "Auctions"; @@ -34598,11 +36922,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::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::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"; @@ -34620,8 +36952,13 @@ pub mod api { #[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."] 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"; @@ -34903,16 +37240,26 @@ pub mod api { #[doc = "See [`Pallet::create`]."] pub struct Create { #[codec(compact)] - pub index: runtime_types::polkadot_parachain::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::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"; @@ -34931,11 +37278,17 @@ pub mod api { #[doc = "See [`Pallet::contribute`]."] pub struct Contribute { #[codec(compact)] - pub index: runtime_types::polkadot_parachain::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::Id; + pub type Value = ::core::primitive::u128; + pub type Signature = + ::core::option::Option; } impl ::subxt::blocks::StaticExtrinsic for Contribute { const PALLET: &'static str = "Crowdloan"; @@ -34953,9 +37306,14 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::withdraw`]."] pub struct Withdraw { - pub who: ::subxt::utils::AccountId32, + pub who: withdraw::Who, #[codec(compact)] - pub index: runtime_types::polkadot_parachain::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::Id; } impl ::subxt::blocks::StaticExtrinsic for Withdraw { const PALLET: &'static str = "Crowdloan"; @@ -34974,7 +37332,11 @@ pub mod api { #[doc = "See [`Pallet::refund`]."] pub struct Refund { #[codec(compact)] - pub index: runtime_types::polkadot_parachain::primitives::Id, + pub index: refund::Index, + } + pub mod refund { + use super::runtime_types; + pub type Index = runtime_types::polkadot_parachain::primitives::Id; } impl ::subxt::blocks::StaticExtrinsic for Refund { const PALLET: &'static str = "Crowdloan"; @@ -34993,7 +37355,11 @@ pub mod api { #[doc = "See [`Pallet::dissolve`]."] pub struct Dissolve { #[codec(compact)] - pub index: runtime_types::polkadot_parachain::primitives::Id, + pub index: dissolve::Index, + } + pub mod dissolve { + use super::runtime_types; + pub type Index = runtime_types::polkadot_parachain::primitives::Id; } impl ::subxt::blocks::StaticExtrinsic for Dissolve { const PALLET: &'static str = "Crowdloan"; @@ -35012,16 +37378,26 @@ pub mod api { #[doc = "See [`Pallet::edit`]."] pub struct Edit { #[codec(compact)] - pub index: runtime_types::polkadot_parachain::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::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"; @@ -35039,8 +37415,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::add_memo`]."] pub struct AddMemo { - pub index: runtime_types::polkadot_parachain::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::Id; + pub type Memo = ::std::vec::Vec<::core::primitive::u8>; } impl ::subxt::blocks::StaticExtrinsic for AddMemo { const PALLET: &'static str = "Crowdloan"; @@ -35058,7 +37439,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::poke`]."] pub struct Poke { - pub index: runtime_types::polkadot_parachain::primitives::Id, + pub index: poke::Index, + } + pub mod poke { + use super::runtime_types; + pub type Index = runtime_types::polkadot_parachain::primitives::Id; } impl ::subxt::blocks::StaticExtrinsic for Poke { const PALLET: &'static str = "Crowdloan"; @@ -35077,9 +37462,14 @@ pub mod api { #[doc = "See [`Pallet::contribute_all`]."] pub struct ContributeAll { #[codec(compact)] - pub index: runtime_types::polkadot_parachain::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::Id; + pub type Signature = + ::core::option::Option; } impl ::subxt::blocks::StaticExtrinsic for ContributeAll { const PALLET: &'static str = "Crowdloan"; @@ -35091,12 +37481,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: 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", @@ -35119,9 +37509,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: types::contribute::Index, + value: types::contribute::Value, + signature: types::contribute::Signature, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Crowdloan", @@ -35142,8 +37532,8 @@ pub mod api { #[doc = "See [`Pallet::withdraw`]."] pub fn withdraw( &self, - who: ::subxt::utils::AccountId32, - index: runtime_types::polkadot_parachain::primitives::Id, + who: types::withdraw::Who, + index: types::withdraw::Index, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Crowdloan", @@ -35159,7 +37549,7 @@ pub mod api { #[doc = "See [`Pallet::refund`]."] pub fn refund( &self, - index: runtime_types::polkadot_parachain::primitives::Id, + index: types::refund::Index, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Crowdloan", @@ -35176,7 +37566,7 @@ pub mod api { #[doc = "See [`Pallet::dissolve`]."] pub fn dissolve( &self, - index: runtime_types::polkadot_parachain::primitives::Id, + index: types::dissolve::Index, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Crowdloan", @@ -35193,12 +37583,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: 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", @@ -35222,8 +37612,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: types::add_memo::Index, + memo: types::add_memo::Memo, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Crowdloan", @@ -35238,10 +37628,7 @@ pub mod api { ) } #[doc = "See [`Pallet::poke`]."] - pub fn poke( - &self, - index: runtime_types::polkadot_parachain::primitives::Id, - ) -> ::subxt::tx::Payload { + pub fn poke(&self, index: types::poke::Index) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Crowdloan", "poke", @@ -35257,8 +37644,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: types::contribute_all::Index, + signature: types::contribute_all::Signature, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Crowdloan", @@ -35289,7 +37676,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::Id, + pub para_id: created::ParaId, + } + pub mod created { + use super::runtime_types; + pub type ParaId = runtime_types::polkadot_parachain::primitives::Id; } impl ::subxt::events::StaticEvent for Created { const PALLET: &'static str = "Crowdloan"; @@ -35307,9 +37698,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::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::Id; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Contributed { const PALLET: &'static str = "Crowdloan"; @@ -35327,9 +37724,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::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::Id; + pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Withdrew { const PALLET: &'static str = "Crowdloan"; @@ -35348,7 +37751,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::Id, + pub para_id: partially_refunded::ParaId, + } + pub mod partially_refunded { + use super::runtime_types; + pub type ParaId = runtime_types::polkadot_parachain::primitives::Id; } impl ::subxt::events::StaticEvent for PartiallyRefunded { const PALLET: &'static str = "Crowdloan"; @@ -35366,7 +37773,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::Id, + pub para_id: all_refunded::ParaId, + } + pub mod all_refunded { + use super::runtime_types; + pub type ParaId = runtime_types::polkadot_parachain::primitives::Id; } impl ::subxt::events::StaticEvent for AllRefunded { const PALLET: &'static str = "Crowdloan"; @@ -35384,7 +37795,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::Id, + pub para_id: dissolved::ParaId, + } + pub mod dissolved { + use super::runtime_types; + pub type ParaId = runtime_types::polkadot_parachain::primitives::Id; } impl ::subxt::events::StaticEvent for Dissolved { const PALLET: &'static str = "Crowdloan"; @@ -35402,8 +37817,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::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::Id; + pub type Result = + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>; } impl ::subxt::events::StaticEvent for HandleBidResult { const PALLET: &'static str = "Crowdloan"; @@ -35421,7 +37842,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::Id, + pub para_id: edited::ParaId, + } + pub mod edited { + use super::runtime_types; + pub type ParaId = runtime_types::polkadot_parachain::primitives::Id; } impl ::subxt::events::StaticEvent for Edited { const PALLET: &'static str = "Crowdloan"; @@ -35439,9 +37864,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::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::Id; + pub type Memo = ::std::vec::Vec<::core::primitive::u8>; } impl ::subxt::events::StaticEvent for MemoUpdated { const PALLET: &'static str = "Crowdloan"; @@ -35459,7 +37890,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::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::Id; } impl ::subxt::events::StaticEvent for AddedToNewRaise { const PALLET: &'static str = "Crowdloan"; @@ -35672,8 +38107,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::send`]."] 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"; @@ -35691,10 +38131,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::teleport_assets`]."] 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"; @@ -35712,10 +38159,17 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::reserve_transfer_assets`]."] 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"; @@ -35733,8 +38187,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::execute`]."] 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"; @@ -35752,9 +38211,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::force_xcm_version`]."] pub struct ForceXcmVersion { - pub location: - ::std::boxed::Box, - 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::xcm::v3::multilocation::MultiLocation; + pub type Version = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for ForceXcmVersion { const PALLET: &'static str = "XcmPallet"; @@ -35772,7 +38235,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::force_default_xcm_version`]."] 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"; @@ -35790,7 +38257,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::force_subscribe_version_notify`]."] 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"; @@ -35808,7 +38279,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::force_unsubscribe_version_notify`]."] 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"; @@ -35826,11 +38301,20 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::limited_reserve_transfer_assets`]."] 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"; @@ -35848,11 +38332,19 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::limited_teleport_assets`]."] 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"; @@ -35870,7 +38362,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::force_suspension`]."] 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"; @@ -35882,8 +38378,8 @@ pub mod api { #[doc = "See [`Pallet::send`]."] pub fn send( &self, - dest: runtime_types::xcm::VersionedMultiLocation, - message: runtime_types::xcm::VersionedXcm, + dest: types::send::Dest, + message: types::send::Message, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "XcmPallet", @@ -35902,10 +38398,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: 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", @@ -35926,10 +38422,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: 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", @@ -35950,8 +38446,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: types::execute::Message, + max_weight: types::execute::MaxWeight, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "XcmPallet", @@ -35970,8 +38466,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: types::force_xcm_version::Location, + version: types::force_xcm_version::Version, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "XcmPallet", @@ -35990,7 +38486,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: types::force_default_xcm_version::MaybeXcmVersion, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "XcmPallet", @@ -36007,7 +38503,7 @@ pub mod api { #[doc = "See [`Pallet::force_subscribe_version_notify`]."] pub fn force_subscribe_version_notify( &self, - location: runtime_types::xcm::VersionedMultiLocation, + location: types::force_subscribe_version_notify::Location, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "XcmPallet", @@ -36025,7 +38521,7 @@ pub mod api { #[doc = "See [`Pallet::force_unsubscribe_version_notify`]."] pub fn force_unsubscribe_version_notify( &self, - location: runtime_types::xcm::VersionedMultiLocation, + location: types::force_unsubscribe_version_notify::Location, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "XcmPallet", @@ -36044,11 +38540,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: 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", @@ -36071,11 +38567,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: 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", @@ -36098,7 +38594,7 @@ pub mod api { #[doc = "See [`Pallet::force_suspension`]."] pub fn force_suspension( &self, - suspended: ::core::primitive::bool, + suspended: types::force_suspension::Suspended, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "XcmPallet", @@ -36129,7 +38625,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"; @@ -36147,10 +38647,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::xcm::v3::multilocation::MultiLocation, - pub destination: runtime_types::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::xcm::v3::multilocation::MultiLocation; + pub type Destination = runtime_types::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"; @@ -36170,8 +38677,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::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::xcm::v3::multilocation::MultiLocation; + pub type QueryId = ::core::primitive::u64; } impl ::subxt::events::StaticEvent for UnexpectedResponse { const PALLET: &'static str = "XcmPallet"; @@ -36190,8 +38702,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"; @@ -36210,9 +38727,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"; @@ -36232,11 +38755,19 @@ pub mod api { #[doc = "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"; @@ -36255,9 +38786,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"; @@ -36277,9 +38814,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"; @@ -36299,10 +38842,16 @@ 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 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::xcm::v3::multilocation::MultiLocation; + pub type QueryId = ::core::primitive::u64; + pub type ExpectedLocation = + ::core::option::Option; } impl ::subxt::events::StaticEvent for InvalidResponder { const PALLET: &'static str = "XcmPallet"; @@ -36326,15 +38875,19 @@ 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 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::xcm::v3::multilocation::MultiLocation; + pub type QueryId = ::core::primitive::u64; } impl ::subxt::events::StaticEvent for InvalidResponderVersion { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "InvalidResponderVersion"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -36346,7 +38899,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"; @@ -36364,9 +38921,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::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::xcm::v3::multilocation::MultiLocation; + pub type Assets = runtime_types::xcm::VersionedMultiAssets; } impl ::subxt::events::StaticEvent for AssetsTrapped { const PALLET: &'static str = "XcmPallet"; @@ -36386,10 +38949,17 @@ 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 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::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"; @@ -36408,8 +38978,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::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::xcm::v3::multilocation::MultiLocation; + pub type Version = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for SupportedVersionChanged { const PALLET: &'static str = "XcmPallet"; @@ -36428,9 +39003,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::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::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"; @@ -36449,8 +39030,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"; @@ -36474,8 +39060,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::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::xcm::v3::multilocation::MultiLocation; + pub type QueryId = ::core::primitive::u64; } impl ::subxt::events::StaticEvent for InvalidQuerierVersion { const PALLET: &'static str = "XcmPallet"; @@ -36495,11 +39086,18 @@ 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 query_id: ::core::primitive::u64, - pub expected_querier: runtime_types::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::xcm::v3::multilocation::MultiLocation; + pub type QueryId = ::core::primitive::u64; + pub type ExpectedQuerier = runtime_types::xcm::v3::multilocation::MultiLocation; + pub type MaybeActualQuerier = + ::core::option::Option; } impl ::subxt::events::StaticEvent for InvalidQuerier { const PALLET: &'static str = "XcmPallet"; @@ -36518,9 +39116,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::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::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"; @@ -36538,9 +39142,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::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::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"; @@ -36558,9 +39168,15 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "We have requested that a remote chain stops sending us XCM version change notifications."] pub struct VersionNotifyUnrequested { - pub destination: runtime_types::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::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"; @@ -36578,8 +39194,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::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::xcm::v3::multilocation::MultiLocation; + pub type Fees = runtime_types::xcm::v3::multiasset::MultiAssets; } impl ::subxt::events::StaticEvent for FeesPaid { const PALLET: &'static str = "XcmPallet"; @@ -36597,9 +39218,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::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::xcm::v3::multilocation::MultiLocation; + pub type Assets = runtime_types::xcm::VersionedMultiAssets; } impl ::subxt::events::StaticEvent for AssetsClaimed { const PALLET: &'static str = "XcmPallet"; @@ -37229,7 +39856,15 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::reap_page`]."] - 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"; @@ -37245,7 +39880,19 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::execute_overweight`]."] - 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"; @@ -37256,8 +39903,8 @@ pub mod api { #[doc = "See [`Pallet::reap_page`]."] pub fn reap_page( &self, - message_origin : runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin, - page_index: ::core::primitive::u32, + message_origin: types::reap_page::MessageOrigin, + page_index: types::reap_page::PageIndex, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "MessageQueue", @@ -37276,10 +39923,10 @@ pub mod api { #[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, + 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", @@ -37316,10 +39963,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"; @@ -37337,11 +39991,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"; @@ -37359,11 +40020,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"; @@ -37381,9 +40049,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"; From 602d459eaa0d8c97fab5e54b24de85864705e1b1 Mon Sep 17 00:00:00 2001 From: Tadeo hepperle Date: Tue, 2 Jan 2024 18:02:01 +0100 Subject: [PATCH 23/30] cargo fmt and clippy --- codegen/src/api/events.rs | 2 +- codegen/src/api/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/codegen/src/api/events.rs b/codegen/src/api/events.rs index 1a20522e79..13ae6e0be6 100644 --- a/codegen/src/api/events.rs +++ b/codegen/src/api/events.rs @@ -60,7 +60,7 @@ pub fn generate_events( quote! { #struct_def #alias_mod - + impl #crate_path::events::StaticEvent for #event_struct_name { const PALLET: &'static str = #pallet_name; const EVENT: &'static str = #event_name; diff --git a/codegen/src/api/mod.rs b/codegen/src/api/mod.rs index 120670af93..f71eab6fb3 100644 --- a/codegen/src/api/mod.rs +++ b/codegen/src/api/mod.rs @@ -14,7 +14,7 @@ mod storage; use scale_typegen::typegen::ir::type_ir::{CompositeFieldIR, CompositeIR, CompositeIRKind}; use scale_typegen::typegen::type_params::TypeParameters; -use scale_typegen::typegen::type_path::{TypePath}; +use scale_typegen::typegen::type_path::TypePath; use scale_typegen::TypeGenerator; use subxt_metadata::Metadata; use syn::{parse_quote, Ident}; From aaf9ded1d5e57dbf975facf3a3b41fe045bf78d9 Mon Sep 17 00:00:00 2001 From: Tadeo hepperle Date: Wed, 3 Jan 2024 11:09:52 +0100 Subject: [PATCH 24/30] reconcile changes with master branch --- Cargo.lock | 35 ++---- codegen/Cargo.toml | 1 - codegen/src/api/calls.rs | 13 +- codegen/src/api/mod.rs | 1 - codegen/src/api/runtime_apis.rs | 217 ++++++++++++++++---------------- codegen/src/api/storage.rs | 66 ++++++---- 6 files changed, 166 insertions(+), 167 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 9cb36a8e5e..b59a5a37b7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3850,7 +3850,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "eca99148e026936bbc444c3708748207033968e4ef1c33bfc885660ae4d44d21" dependencies = [ "arrayvec 0.7.4", - "async-lock 2.8.0", + "async-lock 3.1.2", "atomic-take", "base64 0.21.5", "bip39", @@ -3861,9 +3861,9 @@ dependencies = [ "derive_more", "ed25519-zebra 4.0.3", "either", - "event-listener 2.5.3", + "event-listener 3.1.0", "fnv", - "futures-lite 1.13.0", + "futures-lite 2.0.1", "futures-util", "hashbrown 0.14.3", "hex", @@ -3904,16 +3904,16 @@ version = "0.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0e6f1898682b618b81570047b9d870b3faaff6ae1891b468eddd94d7f903c2fe" dependencies = [ - "async-channel 1.9.0", - "async-lock 2.8.0", + "async-channel 2.1.1", + "async-lock 3.1.2", "base64 0.21.5", "blake2-rfc", "derive_more", "either", - "event-listener 2.5.3", + "event-listener 3.1.0", "fnv", "futures-channel", - "futures-lite 1.13.0", + "futures-lite 2.0.1", "futures-util", "hashbrown 0.14.3", "hex", @@ -4634,26 +4634,6 @@ dependencies = [ "thiserror-impl", ] -[[package]] -name = "thiserror-core" -version = "1.0.50" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c001ee18b7e5e3f62cbf58c7fe220119e68d902bb7443179c0c8aef30090e999" -dependencies = [ - "thiserror-core-impl", -] - -[[package]] -name = "thiserror-core-impl" -version = "1.0.50" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e4c60d69f36615a077cc7663b9cb8e42275722d23e58a7fa3d2c7f2915d09d04" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.39", -] - [[package]] name = "thiserror-impl" version = "1.0.50" @@ -5441,6 +5421,7 @@ dependencies = [ "home", "once_cell", "rustix 0.38.25", + "windows-sys 0.48.0", ] [[package]] diff --git a/codegen/Cargo.toml b/codegen/Cargo.toml index 78bdf372f3..666c52142d 100644 --- a/codegen/Cargo.toml +++ b/codegen/Cargo.toml @@ -38,4 +38,3 @@ getrandom = { workspace = true, optional = true } [dev-dependencies] scale-info = { workspace = true, features = ["bit-vec"] } -pretty_assertions = { workspace = true } diff --git a/codegen/src/api/calls.rs b/codegen/src/api/calls.rs index 5f23b75b8d..0db84b0e81 100644 --- a/codegen/src/api/calls.rs +++ b/codegen/src/api/calls.rs @@ -30,7 +30,6 @@ pub fn generate_calls( let variant_names_and_struct_defs = super::generate_structs_from_variants( type_gen, - types_mod_ident, call_ty, |name| name.to_upper_camel_case().into(), "Call", @@ -58,9 +57,6 @@ 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 pallet_name = pallet.name(); let call_name = &var.variant_name; let struct_name = &var.composite.name; @@ -83,8 +79,6 @@ pub fn generate_calls( #struct_def #alias_mod - #aliases - impl #crate_path::blocks::StaticExtrinsic for #struct_name { const PALLET: &'static str = #pallet_name; const CALL: &'static str = #call_name; @@ -108,10 +102,9 @@ pub fn generate_calls( 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); + .collect::, _>>()? + .into_iter() + .unzip(); let call_type = type_gen.resolve_type_path(call_ty)?; let call_ty = type_gen.resolve_type(call_ty)?; diff --git a/codegen/src/api/mod.rs b/codegen/src/api/mod.rs index 45cd4170c5..f71eab6fb3 100644 --- a/codegen/src/api/mod.rs +++ b/codegen/src/api/mod.rs @@ -325,7 +325,6 @@ 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, diff --git a/codegen/src/api/runtime_apis.rs b/codegen/src/api/runtime_apis.rs index e6a79fe4ac..57b185fb8e 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 heck::ToSnakeCase as _; use heck::ToUpperCamelCase as _; @@ -30,118 +32,121 @@ fn generate_runtime_api( .then_some(quote! { #( #[doc = #docs ] )* }) .unwrap_or_default(); - let structs_and_methods: Vec<_> = api.methods().map(|method| { - let method_name = format_ident!("{}", method.name()); - let method_name_str = method.name(); - - let docs = method.docs(); - let docs: TokenStream2 = type_gen.settings().should_gen_docs - .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 name = if input.name == "_" { - format_ident!("_{}", idx) - } else { - format_ident!("{}", &input.name) - }; - let ty = type_gen.resolve_type_path(input.ty).expect("lookup of type should not fail"); - - 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); - let aliased_param = quote!( pub type #alias_name = #ty; ); - - // 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 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!( - pub mod #method_name { - use super::#types_mod_ident; - - #( #type_aliases )* - - // Guard the `Output` name against collisions by placing it in a dedicated module. - pub mod output { + let structs_and_methods: Vec<_> = api + .methods() + .map(|method| { + let method_name = format_ident!("{}", method.name()); + let method_name_str = method.name(); + + let docs = method.docs(); + let docs: TokenStream2 = type_gen + .settings() + .should_gen_docs + .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 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) + .expect("type should be present"); + let aliased_param = quote!( pub type #alias_name = #ty; ); + + // 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 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 types_mod_ident = type_gen.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; - pub type Output = #output; - } - } - ); - // From the method metadata generate a structure that holds - // all parameter types. This structure is used with metadata - // to encode parameters to the call via `encode_as_fields_to`. - let derives = type_gen.settings().derives.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, )* - } - ); + #( #type_aliases )* - let output = type_gen.resolve_type_path(method.output_ty())?; + // 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; + } + } + ); + + // From the method metadata generate a structure that holds + // all parameter types. This structure is used with metadata + // to encode parameters to the call via `encode_as_fields_to`. + let derives = type_gen.settings().derives.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, )* + } + ); - let Some(call_hash) = api.method_hash(method.name()) else { - return Err(CodegenError::MissingRuntimeApiMetadata( - trait_name_str.to_owned(), - method_name_str.to_owned(), - )) - }; + let Some(call_hash) = api.method_hash(method.name()) else { + return Err(CodegenError::MissingRuntimeApiMetadata( + trait_name_str.to_owned(), + method_name_str.to_owned(), + )) + }; - let method = quote!( - #docs - 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, - types::#struct_name { #( #param_names, )* }, - [#(#call_hash,)*], - ) - } - ); + let method = quote!( + #docs + 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, + types::#struct_name { #( #param_names, )* }, + [#(#call_hash,)*], + ) + } + ); - Ok((struct_input, method)) - }).collect::>()?; + Ok((struct_input, method)) + }) + .collect::>()?; let trait_name = format_ident!("{}", trait_name_str); diff --git a/codegen/src/api/storage.rs b/codegen/src/api/storage.rs index 1923d38273..31f2e00c94 100644 --- a/codegen/src/api/storage.rs +++ b/codegen/src/api/storage.rs @@ -2,8 +2,7 @@ // This file is dual-licensed as Apache-2.0 or GPL-3.0. // see LICENSE for license details. -use heck::ToSnakeCase as _; -use heck::ToUpperCamelCase as _; +use heck::{ToSnakeCase as _, ToUpperCamelCase}; use proc_macro2::{Ident, TokenStream as TokenStream2, TokenStream}; use quote::{format_ident, quote}; use scale_info::TypeDef; @@ -32,12 +31,13 @@ pub fn generate_storage( return Ok(quote!()); }; - let (storage_fns, alias_modules): (Vec<_>, Vec<_>) = storage + let (storage_fns, alias_modules): (Vec, Vec) = storage .entries() .iter() .map(|entry| generate_storage_entry_fns(type_gen, pallet, entry, crate_path)) - .collect::, CodegenError>>()?; - + .collect::, CodegenError>>()? + .into_iter() + .unzip(); let types_mod_ident = type_gen.types_mod_ident(); Ok(quote! { @@ -59,34 +59,56 @@ pub fn generate_storage( }) } +/// Returns storage entry functions and alias modules. fn generate_storage_entry_fns( type_gen: &TypeGenerator, pallet: &PalletMetadata, storage_entry: &StorageEntryMetadata, crate_path: &syn::Path, -) -> Result { - let keys: Vec<(Ident, TypePath)> = match storage_entry.entry_type() { +) -> Result<(TokenStream2, TokenStream2), CodegenError> { + 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) + .expect("type should be present"); + + 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) + .expect("type should be present"); + + 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 { + match &type_gen + .resolve_type(*key_ty) + .expect("key type should be present") + .type_def + { // An N-map; return each of the keys separately. TypeDef::Tuple(tuple) => tuple .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) - .expect("resolving type should not fail"); - (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)] } } } @@ -100,9 +122,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 docs = storage_entry.docs(); let docs = type_gen .settings() @@ -159,6 +178,7 @@ fn generate_storage_entry_fns( let alias_types = keys.iter().map(|(_, alias_type, _)| alias_type); + let types_mod_ident = type_gen.types_mod_ident(); // Generate type alias for the return type only, since // the keys of the storage entry are not explicitly named. let alias_module = quote! { @@ -195,7 +215,7 @@ fn primitive_type_alias(type_path: &TypePath) -> TokenStream { mod tests { use crate::RuntimeGenerator; use frame_metadata::v15; - use heck::ToUpperCamelCase as _; + use heck::ToUpperCamelCase; use quote::{format_ident, quote}; use scale_info::{meta_type, MetaType}; @@ -309,6 +329,8 @@ mod tests { _0: impl ::std::borrow::Borrow, ) ); + dbg!(&generated_str); + dbg!(&expected_storage_constructor.to_string()); assert!(generated_str.contains(&expected_storage_constructor.to_string())); let alias_name = format_ident!("{}", name.to_upper_camel_case()); From 05dbe3f008b77c3b868430a0b1e1b586cfbdd64d Mon Sep 17 00:00:00 2001 From: Tadeo hepperle Date: Wed, 3 Jan 2024 11:41:23 +0100 Subject: [PATCH 25/30] update polkadot.rs --- .../src/full_client/codegen/polkadot.rs | 41113 ++++++---------- 1 file changed, 14254 insertions(+), 26859 deletions(-) diff --git a/testing/integration-tests/src/full_client/codegen/polkadot.rs b/testing/integration-tests/src/full_client/codegen/polkadot.rs index 05336dc028..1e3fd1092b 100644 --- a/testing/integration-tests/src/full_client/codegen/polkadot.rs +++ b/testing/integration-tests/src/full_client/codegen/polkadot.rs @@ -21,6 +21,7 @@ pub mod api { "MmrLeaf", "Session", "Grandpa", + "ImOnline", "AuthorityDiscovery", "Treasury", "ConvictionVoting", @@ -65,7 +66,6 @@ pub mod api { "Auctions", "Crowdloan", "XcmPallet", - "IdentityMigrator", "ParasSudoWrapper", "AssignedSlots", "ValidatorManager", @@ -198,8 +198,11 @@ 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 > , :: subxt :: utils :: 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 ,) > >, - ) -> ::subxt::runtime_api::Payload { + block: types::execute_block::Block, + ) -> ::subxt::runtime_api::Payload< + types::ExecuteBlock, + types::execute_block::output::Output, + > { ::subxt::runtime_api::Payload::new_static( "Core", "execute_block", @@ -269,7 +272,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 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 > , :: subxt :: utils :: 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: execute_block::Block, + } + pub mod initialize_block { + 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, @@ -426,7 +440,7 @@ 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 :: 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: types::apply_extrinsic::Extrinsic, ) -> ::subxt::runtime_api::Payload< types::ApplyExtrinsic, types::apply_extrinsic::output::Output, @@ -460,7 +474,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 :: 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: types::inherent_extrinsics::Inherent, + ) -> ::subxt::runtime_api::Payload< + types::InherentExtrinsics, + types::inherent_extrinsics::output::Output, + > { ::subxt::runtime_api::Payload::new_static( "BlockBuilder", "inherent_extrinsics", @@ -476,8 +497,8 @@ 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 > , :: subxt :: utils :: 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 ,) > >, - data: runtime_types::sp_inherents::InherentData, + block: types::check_inherents::Block, + data: types::check_inherents::Data, ) -> ::subxt::runtime_api::Payload< types::CheckInherents, types::check_inherents::output::Output, @@ -515,7 +536,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 ApplyExtrinsic { pub extrinsic : :: subxt :: utils :: 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: apply_extrinsic::Extrinsic, + } + pub mod finalize_block { + use super::runtime_types; + 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, :: subxt :: ext :: codec :: Encode, @@ -567,155 +599,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 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 > , :: subxt :: utils :: 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: check_inherents::Block, + pub data: check_inherents::Data, } } } @@ -736,9 +622,9 @@ 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 :: 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_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, types::validate_transaction::output::Output, @@ -782,7 +668,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 ValidateTransaction { pub source : runtime_types :: sp_runtime :: transaction_validity :: TransactionSource , pub tx : :: subxt :: utils :: 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: validate_transaction::Source, + pub tx: validate_transaction::Tx, + pub block_hash: validate_transaction::BlockHash, + } } } pub mod offchain_worker_api { @@ -1259,9 +1149,9 @@ pub mod api { "session_executor_params", types::SessionExecutorParams { session_index }, [ - 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, + 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, ], ) } @@ -1406,25 +1296,6 @@ 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; @@ -2049,27 +1920,6 @@ 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 node_features { - use super::runtime_types; - 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 { @@ -3244,8 +3094,8 @@ pub mod api { impl TransactionPaymentApi { pub fn query_info( &self, - uxt : :: subxt :: utils :: 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 ,) >, - len: ::core::primitive::u32, + uxt: types::query_info::Uxt, + len: types::query_info::Len, ) -> ::subxt::runtime_api::Payload< types::QueryInfo, types::query_info::output::Output, @@ -3263,8 +3113,8 @@ pub mod api { } pub fn query_fee_details( &self, - uxt : :: subxt :: utils :: 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 ,) >, - len: ::core::primitive::u32, + uxt: types::query_fee_details::Uxt, + len: types::query_fee_details::Len, ) -> ::subxt::runtime_api::Payload< types::QueryFeeDetails, types::query_fee_details::output::Output, @@ -3344,7 +3194,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 QueryInfo { pub uxt : :: subxt :: utils :: 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: query_info::Uxt, + pub len: query_info::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 mod output { + use super::runtime_types; + pub type Output = + runtime_types::pallet_transaction_payment::types::FeeDetails< + ::core::primitive::u128, + >; + } + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -3355,7 +3220,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 :: 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: query_fee_details::Uxt, + pub len: query_fee_details::Len, + } + pub mod query_weight_to_fee { + use super::runtime_types; + 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, :: subxt :: ext :: codec :: Encode, @@ -3609,6 +3485,9 @@ 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 } @@ -3733,6 +3612,9 @@ 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 } @@ -3897,6 +3779,9 @@ 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 } @@ -4010,9 +3895,6 @@ 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 } @@ -4041,9 +3923,9 @@ pub mod api { .hash(); runtime_metadata_hash == [ - 63u8, 112u8, 153u8, 58u8, 108u8, 232u8, 33u8, 100u8, 197u8, 178u8, 237u8, 162u8, - 47u8, 16u8, 185u8, 0u8, 6u8, 96u8, 45u8, 233u8, 217u8, 166u8, 1u8, 188u8, 28u8, - 141u8, 116u8, 206u8, 125u8, 179u8, 115u8, 76u8, + 217u8, 170u8, 7u8, 110u8, 237u8, 43u8, 49u8, 116u8, 87u8, 190u8, 100u8, 30u8, + 165u8, 15u8, 56u8, 52u8, 43u8, 64u8, 243u8, 187u8, 213u8, 229u8, 138u8, 173u8, + 223u8, 202u8, 95u8, 218u8, 85u8, 15u8, 85u8, 240u8, ] } pub mod system { @@ -4888,9 +4770,9 @@ pub mod api { "Events", vec![], [ - 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, + 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, ], ) } @@ -5167,13 +5049,13 @@ 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; @@ -5190,101 +5072,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")] - #[doc = "See [`Pallet::schedule`]."] - pub struct Schedule { - 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::polkadot_runtime::RuntimeCall; - } - 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")] - #[doc = "See [`Pallet::cancel`]."] - pub struct Cancel { - 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"; - const CALL: &'static str = "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")] - #[doc = "See [`Pallet::schedule_named`]."] - pub struct ScheduleNamed { - 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::polkadot_runtime::RuntimeCall; - } - impl ::subxt::blocks::StaticExtrinsic for ScheduleNamed { - const PALLET: &'static str = "Scheduler"; - const CALL: &'static str = "schedule_named"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 = "See [`Pallet::cancel_named`]."] - pub struct CancelNamed { - pub id: cancel_named::Id, + #[doc = "See [`Pallet::report_equivocation`]."] + pub struct ReportEquivocation { + pub equivocation_proof: + ::std::boxed::Box, + pub key_owner_proof: report_equivocation::KeyOwnerProof, } - pub mod cancel_named { + pub mod report_equivocation { use super::runtime_types; - pub type Id = [::core::primitive::u8; 32usize]; + 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 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, @@ -5296,24 +5103,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")] - #[doc = "See [`Pallet::schedule_after`]."] - pub struct ScheduleAfter { - pub after: schedule_after::After, - pub maybe_periodic: schedule_after::MaybePeriodic, - pub priority: schedule_after::Priority, - pub call: ::std::boxed::Box, + #[doc = "See [`Pallet::report_equivocation_unsigned`]."] + pub struct ReportEquivocationUnsigned { + pub equivocation_proof: + ::std::boxed::Box, + pub key_owner_proof: report_equivocation_unsigned::KeyOwnerProof, } - pub mod schedule_after { + pub mod report_equivocation_unsigned { 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::polkadot_runtime::RuntimeCall; + 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 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, @@ -5325,515 +5134,834 @@ pub mod 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 = "See [`Pallet::schedule_named_after`]."] - pub struct ScheduleNamedAfter { - 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, + #[doc = "See [`Pallet::plan_config_change`]."] + pub struct PlanConfigChange { + pub config: plan_config_change::Config, } - pub mod schedule_named_after { + pub mod plan_config_change { 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::polkadot_runtime::RuntimeCall; + pub type 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( - &self, - 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", - "schedule", - types::Schedule { - when, - maybe_periodic, - priority, - call: ::std::boxed::Box::new(call), - }, - [ - 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: types::cancel::When, - index: types::cancel::Index, - ) -> ::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, - ], - ) - } - #[doc = "See [`Pallet::schedule_named`]."] - pub fn schedule_named( + #[doc = "See [`Pallet::report_equivocation`]."] + pub fn report_equivocation( &self, - 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 { + equivocation_proof: types::report_equivocation::EquivocationProof, + key_owner_proof: types::report_equivocation::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", + types::ReportEquivocation { + 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, - ], - ) - } - #[doc = "See [`Pallet::cancel_named`]."] - pub fn cancel_named( - &self, - id: types::cancel_named::Id, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Scheduler", - "cancel_named", - types::CancelNamed { id }, - [ - 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, + 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_after`]."] - pub fn schedule_after( + #[doc = "See [`Pallet::report_equivocation_unsigned`]."] + pub fn report_equivocation_unsigned( &self, - after: types::schedule_after::After, - maybe_periodic: types::schedule_after::MaybePeriodic, - priority: types::schedule_after::Priority, - call: types::schedule_after::Call, - ) -> ::subxt::tx::Payload { + equivocation_proof: types::report_equivocation_unsigned::EquivocationProof, + key_owner_proof: types::report_equivocation_unsigned::KeyOwnerProof, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Scheduler", - "schedule_after", - types::ScheduleAfter { - after, - 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, }, [ - 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, + 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::schedule_named_after`]."] - pub fn schedule_named_after( + #[doc = "See [`Pallet::plan_config_change`]."] + pub fn plan_config_change( &self, - 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 { + config: types::plan_config_change::Config, + ) -> ::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), - }, + "Babe", + "plan_config_change", + types::PlanConfigChange { config }, [ - 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, + 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 = "Events type."] - pub type Event = runtime_types::pallet_scheduler::pallet::Event; - pub mod events { + pub mod storage { 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: scheduled::When, - pub index: scheduled::Index, - } - pub mod scheduled { + pub mod types { 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"; - 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: 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"; - 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: 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"; - 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: 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"; - 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: 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"; - 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: 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"; - const EVENT: &'static str = "PermanentlyOverweight"; + 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 type Param0 = ::core::primitive::u32; + } + 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 mod storage { - use super::runtime_types; pub struct StorageApi; impl StorageApi { - pub fn incomplete_since( + #[doc = " Current epoch index."] + pub fn epoch_index( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, + types::epoch_index::EpochIndex, + ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, - (), (), > { ::subxt::storage::address::Address::new_static( - "Scheduler", - "IncompleteSince", + "Babe", + "EpochIndex", 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, + 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 = " Items to be executed, indexed by the block number that they should be executed on."] - pub fn agenda_iter( + #[doc = " Current epoch authorities."] + pub fn authorities( &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, - >, - >, - >, + types::authorities::Authorities, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, (), + > { + ::subxt::storage::address::Address::new_static( + "Babe", + "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, + ], + ) + } + #[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, + types::genesis_slot::GenesisSlot, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, + (), > { ::subxt::storage::address::Address::new_static( - "Scheduler", - "Agenda", + "Babe", + "GenesisSlot", 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, + 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( + #[doc = " Current slot number."] + pub fn current_slot( &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, - >, - >, - >, + types::current_slot::CurrentSlot, ::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", + "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 = " Lookup from a name to the block number and index of the task."] + #[doc = " The epoch randomness for the *current* epoch."] #[doc = ""] - #[doc = " For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4"] - #[doc = " identities."] - pub fn lookup_iter( + #[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, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::randomness::Randomness, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Babe", + "Randomness", + vec![], + [ + 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 = " 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), + types::pending_epoch_config_change::PendingEpochConfigChange, + ::subxt::storage::address::Yes, (), (), + > { + ::subxt::storage::address::Address::new_static( + "Babe", + "PendingEpochConfigChange", + vec![], + [ + 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 = " Next epoch randomness."] + pub fn next_randomness( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::next_randomness::NextRandomness, ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), > { ::subxt::storage::address::Address::new_static( - "Scheduler", - "Lookup", + "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, ], ) } - #[doc = " Lookup from a name to the block number and index of the task."] + #[doc = " Next epoch authorities."] + pub fn next_authorities( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::next_authorities::NextAuthorities, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Babe", + "NextAuthorities", + vec![], + [ + 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 = " Randomness under construction."] #[doc = ""] - #[doc = " For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4"] - #[doc = " identities."] - pub fn lookup( + #[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, - _0: impl ::std::borrow::Borrow<[::core::primitive::u8; 32usize]>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - (::core::primitive::u32, ::core::primitive::u32), + types::segment_index::SegmentIndex, ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Babe", + "SegmentIndex", + vec![], + [ + 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, + ], + ) + } + #[doc = " TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay."] + pub fn under_construction_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::under_construction::UnderConstruction, (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Babe", + "UnderConstruction", + 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, + ], + ) + } + #[doc = " TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay."] + pub fn under_construction( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::under_construction::UnderConstruction, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( - "Scheduler", - "Lookup", + "Babe", + "UnderConstruction", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 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, + 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, ], ) } - } - } - 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 = " 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::constants::Address - { - ::subxt::constants::Address::new_static( - "Scheduler", - "MaximumWeight", + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::initialized::Initialized, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Babe", + "Initialized", + 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, + 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 = " The maximum number of scheduled calls in the queue for a single block."] + #[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 = " 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 = " It is set in `on_finalize`, before it will contain the value from the last block."] + pub fn author_vrf_randomness( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Scheduler", - "MaxScheduledPerBlock", + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::author_vrf_randomness::AuthorVrfRandomness, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Babe", + "AuthorVrfRandomness", + 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, + 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 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, + types::epoch_start::EpochStart, + ::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, + ], + ) + } + #[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, + types::lateness::Lateness, + ::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, + types::epoch_config::EpochConfig, + ::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, + types::next_epoch_config::NextEpochConfig, + ::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, + ], + ) + } + #[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, + types::skipped_epochs::SkippedEpochs, + ::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 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", + [ + 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 preimage { + 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( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + 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 = "See [`Pallet::set`]."] + pub struct Set { + #[codec(compact)] + 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"; + const CALL: &'static str = "set"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::set`]."] + pub fn set(&self, now: types::set::Now) -> ::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 mod storage { + use super::runtime_types; + pub mod 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 = " The current time for the current block."] + pub fn now( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::now::Now, + ::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, + ], + ) + } + #[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, + types::did_update::DidUpdate, + ::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, + ], + ) + } + } + } + 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::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, + ], + ) + } + } + } + } + pub mod indices { use super::root_mod; use super::runtime_types; #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_preimage::pallet::Error; + 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_preimage::pallet::Call; + pub type Call = runtime_types::pallet_indices::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; @@ -5850,17 +5978,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 = "See [`Pallet::note_preimage`]."] - pub struct NotePreimage { - pub bytes: note_preimage::Bytes, + #[doc = "See [`Pallet::claim`]."] + pub struct Claim { + pub index: claim::Index, } - pub mod note_preimage { + pub mod claim { use super::runtime_types; - pub type Bytes = ::std::vec::Vec<::core::primitive::u8>; + pub type Index = ::core::primitive::u32; } - impl ::subxt::blocks::StaticExtrinsic for NotePreimage { - const PALLET: &'static str = "Preimage"; - const CALL: &'static str = "note_preimage"; + impl ::subxt::blocks::StaticExtrinsic for Claim { + const PALLET: &'static str = "Indices"; + const CALL: &'static str = "claim"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -5872,17 +6000,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 = "See [`Pallet::unnote_preimage`]."] - pub struct UnnotePreimage { - pub hash: unnote_preimage::Hash, + #[doc = "See [`Pallet::transfer`]."] + pub struct Transfer { + pub new: transfer::New, + pub index: transfer::Index, } - pub mod unnote_preimage { + pub mod transfer { use super::runtime_types; - pub type Hash = ::subxt::utils::H256; + pub type New = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Index = ::core::primitive::u32; } - impl ::subxt::blocks::StaticExtrinsic for UnnotePreimage { - const PALLET: &'static str = "Preimage"; - const CALL: &'static str = "unnote_preimage"; + impl ::subxt::blocks::StaticExtrinsic for Transfer { + const PALLET: &'static str = "Indices"; + const CALL: &'static str = "transfer"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -5894,17 +6024,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 = "See [`Pallet::request_preimage`]."] - pub struct RequestPreimage { - pub hash: request_preimage::Hash, + #[doc = "See [`Pallet::free`]."] + pub struct Free { + pub index: free::Index, } - pub mod request_preimage { + pub mod free { use super::runtime_types; - pub type Hash = ::subxt::utils::H256; + pub type Index = ::core::primitive::u32; } - impl ::subxt::blocks::StaticExtrinsic for RequestPreimage { - const PALLET: &'static str = "Preimage"; - const CALL: &'static str = "request_preimage"; + impl ::subxt::blocks::StaticExtrinsic for Free { + const PALLET: &'static str = "Indices"; + const CALL: &'static str = "free"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -5916,91 +6046,135 @@ pub mod 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 = "See [`Pallet::unrequest_preimage`]."] - pub struct UnrequestPreimage { - pub hash: unrequest_preimage::Hash, + #[doc = "See [`Pallet::force_transfer`]."] + pub struct ForceTransfer { + pub new: force_transfer::New, + pub index: force_transfer::Index, + pub freeze: force_transfer::Freeze, } - pub mod unrequest_preimage { + pub mod force_transfer { use super::runtime_types; - pub type Hash = ::subxt::utils::H256; + 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 UnrequestPreimage { - const PALLET: &'static str = "Preimage"; - const CALL: &'static str = "unrequest_preimage"; + impl ::subxt::blocks::StaticExtrinsic for ForceTransfer { + const PALLET: &'static str = "Indices"; + 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")] + #[doc = "See [`Pallet::freeze`]."] + pub struct Freeze { + 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"; + const CALL: &'static str = "freeze"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::note_preimage`]."] - pub fn note_preimage( + #[doc = "See [`Pallet::claim`]."] + pub fn claim( &self, - bytes: types::note_preimage::Bytes, - ) -> ::subxt::tx::Payload { + index: types::claim::Index, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Preimage", - "note_preimage", - types::NotePreimage { bytes }, + "Indices", + "claim", + types::Claim { index }, [ - 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, + 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 = "See [`Pallet::unnote_preimage`]."] - pub fn unnote_preimage( + #[doc = "See [`Pallet::transfer`]."] + pub fn transfer( &self, - hash: types::unnote_preimage::Hash, - ) -> ::subxt::tx::Payload { + new: types::transfer::New, + index: types::transfer::Index, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Preimage", - "unnote_preimage", - types::UnnotePreimage { hash }, + "Indices", + "transfer", + types::Transfer { new, index }, [ - 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, + 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 = "See [`Pallet::request_preimage`]."] - pub fn request_preimage( - &self, - hash: types::request_preimage::Hash, - ) -> ::subxt::tx::Payload { + #[doc = "See [`Pallet::free`]."] + pub fn free(&self, index: types::free::Index) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Preimage", - "request_preimage", - types::RequestPreimage { hash }, + "Indices", + "free", + types::Free { index }, [ - 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, + 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 = "See [`Pallet::unrequest_preimage`]."] - pub fn unrequest_preimage( + #[doc = "See [`Pallet::force_transfer`]."] + pub fn force_transfer( &self, - hash: types::unrequest_preimage::Hash, - ) -> ::subxt::tx::Payload { + new: types::force_transfer::New, + index: types::force_transfer::Index, + freeze: types::force_transfer::Freeze, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Preimage", - "unrequest_preimage", - types::UnrequestPreimage { hash }, + "Indices", + "force_transfer", + types::ForceTransfer { new, index, freeze }, [ - 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, + 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 = "See [`Pallet::freeze`]."] + pub fn freeze( + &self, + index: types::freeze::Index, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Indices", + "freeze", + types::Freeze { index }, + [ + 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 = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_preimage::pallet::Event; + pub type Event = runtime_types::pallet_indices::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -6013,17 +6187,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 preimage has been noted."] - pub struct Noted { - pub hash: noted::Hash, + #[doc = "A account index was assigned."] + pub struct IndexAssigned { + pub who: index_assigned::Who, + pub index: index_assigned::Index, } - pub mod noted { + pub mod index_assigned { use super::runtime_types; - pub type Hash = ::subxt::utils::H256; + pub type Who = ::subxt::utils::AccountId32; + pub type Index = ::core::primitive::u32; } - impl ::subxt::events::StaticEvent for Noted { - const PALLET: &'static str = "Preimage"; - const EVENT: &'static str = "Noted"; + impl ::subxt::events::StaticEvent for IndexAssigned { + const PALLET: &'static str = "Indices"; + const EVENT: &'static str = "IndexAssigned"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6035,17 +6211,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 preimage has been requested."] - pub struct Requested { - pub hash: requested::Hash, + #[doc = "A account index has been freed up (unassigned)."] + pub struct IndexFreed { + pub index: index_freed::Index, } - pub mod requested { + pub mod index_freed { use super::runtime_types; - pub type Hash = ::subxt::utils::H256; + pub type Index = ::core::primitive::u32; } - impl ::subxt::events::StaticEvent for Requested { - const PALLET: &'static str = "Preimage"; - const EVENT: &'static str = "Requested"; + impl ::subxt::events::StaticEvent for IndexFreed { + const PALLET: &'static str = "Indices"; + const EVENT: &'static str = "IndexFreed"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6057,163 +6233,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")] - #[doc = "A preimage has ben cleared."] - pub struct Cleared { - pub hash: cleared::Hash, + #[doc = "A account index has been frozen to its current account ID."] + pub struct IndexFrozen { + pub index: index_frozen::Index, + pub who: index_frozen::Who, } - pub mod cleared { + pub mod index_frozen { use super::runtime_types; - pub type Hash = ::subxt::utils::H256; + pub type Index = ::core::primitive::u32; + pub type Who = ::subxt::utils::AccountId32; } - impl ::subxt::events::StaticEvent for Cleared { - const PALLET: &'static str = "Preimage"; - const EVENT: &'static str = "Cleared"; + 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 request status of a given hash."] - pub fn status_for_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_preimage::RequestStatus< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Preimage", - "StatusFor", - 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, - ], - ) - } - #[doc = " The request status of a given hash."] - pub fn status_for( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_preimage::RequestStatus< + pub mod types { + use super::runtime_types; + pub mod accounts { + use super::runtime_types; + pub type Accounts = ( ::subxt::utils::AccountId32, ::core::primitive::u128, - >, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Preimage", - "StatusFor", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 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, - ], - ) + ::core::primitive::bool, + ); + pub type Param0 = ::core::primitive::u32; } - pub fn preimage_for_iter( + } + 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, - >, + types::accounts::Accounts, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Preimage", - "PreimageFor", + "Indices", + "Accounts", 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, + 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 fn preimage_for_iter1( + #[doc = " The lookup from index to account."] + pub fn accounts( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, + types::accounts::Accounts, + ::subxt::storage::address::Yes, (), (), - ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Preimage", - "PreimageFor", + "Indices", + "Accounts", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 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, + 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 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::primitive::u8, - >, - ::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()), - ], + } + } + 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", [ - 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, + 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 babe { + pub mod balances { use super::root_mod; use super::runtime_types; #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_babe::pallet::Error; + 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_babe::pallet::Call; + pub type Call = runtime_types::pallet_balances::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; @@ -6230,26 +6355,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")] - #[doc = "See [`Pallet::report_equivocation`]."] - pub struct ReportEquivocation { - pub equivocation_proof: - ::std::boxed::Box, - pub key_owner_proof: report_equivocation::KeyOwnerProof, + #[doc = "See [`Pallet::transfer_allow_death`]."] + pub struct TransferAllowDeath { + pub dest: transfer_allow_death::Dest, + #[codec(compact)] + pub value: transfer_allow_death::Value, } - pub mod report_equivocation { + pub mod transfer_allow_death { 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 type Dest = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Value = ::core::primitive::u128; } - impl ::subxt::blocks::StaticExtrinsic for ReportEquivocation { - const PALLET: &'static str = "Babe"; - const CALL: &'static str = "report_equivocation"; + impl ::subxt::blocks::StaticExtrinsic for TransferAllowDeath { + const PALLET: &'static str = "Balances"; + const CALL: &'static str = "transfer_allow_death"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6261,26 +6380,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 = "See [`Pallet::report_equivocation_unsigned`]."] - pub struct ReportEquivocationUnsigned { - pub equivocation_proof: - ::std::boxed::Box, - pub key_owner_proof: report_equivocation_unsigned::KeyOwnerProof, + #[doc = "See [`Pallet::force_transfer`]."] + pub struct ForceTransfer { + pub source: force_transfer::Source, + pub dest: force_transfer::Dest, + #[codec(compact)] + pub value: force_transfer::Value, } - pub mod report_equivocation_unsigned { + pub mod force_transfer { 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 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 ReportEquivocationUnsigned { - const PALLET: &'static str = "Babe"; - const CALL: &'static str = "report_equivocation_unsigned"; + impl ::subxt::blocks::StaticExtrinsic for ForceTransfer { + const PALLET: &'static str = "Balances"; + const CALL: &'static str = "force_transfer"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6292,8727 +6407,248 @@ pub mod 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 = "See [`Pallet::plan_config_change`]."] - pub struct PlanConfigChange { - pub config: plan_config_change::Config, + #[doc = "See [`Pallet::transfer_keep_alive`]."] + pub struct TransferKeepAlive { + pub dest: transfer_keep_alive::Dest, + #[codec(compact)] + pub value: transfer_keep_alive::Value, } - pub mod plan_config_change { + pub mod transfer_keep_alive { use super::runtime_types; - pub type Config = - runtime_types::sp_consensus_babe::digests::NextConfigDescriptor; + pub type Dest = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Value = ::core::primitive::u128; } - impl ::subxt::blocks::StaticExtrinsic for PlanConfigChange { - const PALLET: &'static str = "Babe"; - const CALL: &'static str = "plan_config_change"; + 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")] + #[doc = "See [`Pallet::transfer_all`]."] + pub struct TransferAll { + 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"; + 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")] + #[doc = "See [`Pallet::force_unreserve`]."] + pub struct ForceUnreserve { + 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"; + 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")] + #[doc = "See [`Pallet::upgrade_accounts`]."] + pub struct UpgradeAccounts { + 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"; + 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")] + #[doc = "See [`Pallet::force_set_balance`]."] + pub struct ForceSetBalance { + pub who: force_set_balance::Who, + #[codec(compact)] + 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"; + const CALL: &'static str = "force_set_balance"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::report_equivocation`]."] - pub fn report_equivocation( + #[doc = "See [`Pallet::transfer_allow_death`]."] + pub fn transfer_allow_death( &self, - equivocation_proof: types::report_equivocation::EquivocationProof, - key_owner_proof: types::report_equivocation::KeyOwnerProof, - ) -> ::subxt::tx::Payload { + dest: types::transfer_allow_death::Dest, + value: types::transfer_allow_death::Value, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Babe", - "report_equivocation", - types::ReportEquivocation { - equivocation_proof: ::std::boxed::Box::new(equivocation_proof), - key_owner_proof, - }, + "Balances", + "transfer_allow_death", + types::TransferAllowDeath { dest, value }, [ - 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, + 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::report_equivocation_unsigned`]."] - pub fn report_equivocation_unsigned( + #[doc = "See [`Pallet::force_transfer`]."] + pub fn force_transfer( &self, - equivocation_proof: types::report_equivocation_unsigned::EquivocationProof, - key_owner_proof: types::report_equivocation_unsigned::KeyOwnerProof, - ) -> ::subxt::tx::Payload { + source: types::force_transfer::Source, + dest: types::force_transfer::Dest, + value: types::force_transfer::Value, + ) -> ::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, + "Balances", + "force_transfer", + types::ForceTransfer { + source, + dest, + value, }, [ - 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, + 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::plan_config_change`]."] - pub fn plan_config_change( + #[doc = "See [`Pallet::transfer_keep_alive`]."] + pub fn transfer_keep_alive( &self, - config: types::plan_config_change::Config, - ) -> ::subxt::tx::Payload { + dest: types::transfer_keep_alive::Dest, + value: types::transfer_keep_alive::Value, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Babe", - "plan_config_change", - types::PlanConfigChange { config }, + "Balances", + "transfer_keep_alive", + types::TransferKeepAlive { dest, value }, [ - 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, + 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, ], ) } - } - } - pub mod storage { - use super::runtime_types; - pub mod 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; + #[doc = "See [`Pallet::transfer_all`]."] + pub fn transfer_all( + &self, + dest: types::transfer_all::Dest, + keep_alive: types::transfer_all::KeepAlive, + ) -> ::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, + ], + ) } - 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 type Param0 = ::core::primitive::u32; - } - 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, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::epoch_index::EpochIndex, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Babe", - "EpochIndex", - 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, - ], - ) - } - #[doc = " Current epoch 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( - "Babe", - "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, - ], - ) - } - #[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, - types::genesis_slot::GenesisSlot, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Babe", - "GenesisSlot", - vec![], - [ - 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 = " Current slot number."] - pub fn current_slot( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::current_slot::CurrentSlot, - ::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, - ], - ) - } - #[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, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::randomness::Randomness, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Babe", - "Randomness", - vec![], - [ - 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 = " 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, - types::pending_epoch_config_change::PendingEpochConfigChange, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Babe", - "PendingEpochConfigChange", - vec![], - [ - 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 = " Next epoch randomness."] - pub fn next_randomness( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::next_randomness::NextRandomness, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Babe", - "NextRandomness", - vec![], - [ - 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, - ], - ) - } - #[doc = " Next epoch authorities."] - pub fn next_authorities( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::next_authorities::NextAuthorities, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Babe", - "NextAuthorities", - vec![], - [ - 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 = " 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( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::segment_index::SegmentIndex, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Babe", - "SegmentIndex", - vec![], - [ - 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, - ], - ) - } - #[doc = " TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay."] - pub fn under_construction_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::under_construction::UnderConstruction, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Babe", - "UnderConstruction", - 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, - ], - ) - } - #[doc = " TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay."] - pub fn under_construction( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - 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(), - )], - [ - 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 = " 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, - types::initialized::Initialized, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Babe", - "Initialized", - vec![], - [ - 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, - ], - ) - } - #[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, - types::author_vrf_randomness::AuthorVrfRandomness, - ::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, - ], - ) - } - #[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, - types::epoch_start::EpochStart, - ::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, - ], - ) - } - #[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, - types::lateness::Lateness, - ::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, - types::epoch_config::EpochConfig, - ::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, - types::next_epoch_config::NextEpochConfig, - ::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, - ], - ) - } - #[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, - types::skipped_epochs::SkippedEpochs, - ::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 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", - [ - 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 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( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 = "See [`Pallet::set`]."] - pub struct Set { - #[codec(compact)] - 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"; - const CALL: &'static str = "set"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::set`]."] - pub fn set(&self, now: types::set::Now) -> ::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 mod storage { - use super::runtime_types; - pub mod 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 = " The current time for the current block."] - pub fn now( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::now::Now, - ::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, - ], - ) - } - #[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, - types::did_update::DidUpdate, - ::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, - ], - ) - } - } - } - 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::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, - ], - ) - } - } - } - } - 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 :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 = "See [`Pallet::claim`]."] - pub struct Claim { - 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"; - 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")] - #[doc = "See [`Pallet::transfer`]."] - pub struct Transfer { - 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"; - 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")] - #[doc = "See [`Pallet::free`]."] - pub struct Free { - 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"; - 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")] - #[doc = "See [`Pallet::force_transfer`]."] - pub struct ForceTransfer { - 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"; - 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")] - #[doc = "See [`Pallet::freeze`]."] - pub struct Freeze { - 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"; - const CALL: &'static str = "freeze"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::claim`]."] - pub fn claim( - &self, - index: types::claim::Index, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Indices", - "claim", - types::Claim { index }, - [ - 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 = "See [`Pallet::transfer`]."] - pub fn transfer( - &self, - new: types::transfer::New, - index: types::transfer::Index, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Indices", - "transfer", - types::Transfer { new, index }, - [ - 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 = "See [`Pallet::free`]."] - pub fn free(&self, index: types::free::Index) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Indices", - "free", - types::Free { index }, - [ - 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 = "See [`Pallet::force_transfer`]."] - pub fn force_transfer( - &self, - new: types::force_transfer::New, - index: types::force_transfer::Index, - freeze: types::force_transfer::Freeze, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Indices", - "force_transfer", - types::ForceTransfer { new, index, freeze }, - [ - 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 = "See [`Pallet::freeze`]."] - pub fn freeze( - &self, - index: types::freeze::Index, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Indices", - "freeze", - types::Freeze { index }, - [ - 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 = "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: 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"; - const EVENT: &'static str = "IndexAssigned"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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: 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"; - 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: 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"; - const EVENT: &'static str = "IndexFrozen"; - } - } - pub mod storage { - use super::runtime_types; - pub mod 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 type Param0 = ::core::primitive::u32; - } - } - 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, - types::accounts::Accounts, - (), - (), - ::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, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::accounts::Accounts, - ::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")] - #[doc = "See [`Pallet::transfer_allow_death`]."] - pub struct TransferAllowDeath { - pub dest: transfer_allow_death::Dest, - #[codec(compact)] - 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"; - 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")] - #[doc = "See [`Pallet::set_balance_deprecated`]."] - pub struct SetBalanceDeprecated { - pub who: set_balance_deprecated::Who, - #[codec(compact)] - pub new_free: set_balance_deprecated::NewFree, - #[codec(compact)] - pub old_reserved: set_balance_deprecated::OldReserved, - } - pub mod set_balance_deprecated { - use super::runtime_types; - pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type NewFree = ::core::primitive::u128; - pub type OldReserved = ::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")] - #[doc = "See [`Pallet::force_transfer`]."] - pub struct ForceTransfer { - pub source: force_transfer::Source, - pub dest: force_transfer::Dest, - #[codec(compact)] - 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"; - 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")] - #[doc = "See [`Pallet::transfer_keep_alive`]."] - pub struct TransferKeepAlive { - pub dest: transfer_keep_alive::Dest, - #[codec(compact)] - 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"; - 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")] - #[doc = "See [`Pallet::transfer_all`]."] - pub struct TransferAll { - 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"; - 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")] - #[doc = "See [`Pallet::force_unreserve`]."] - pub struct ForceUnreserve { - 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"; - 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")] - #[doc = "See [`Pallet::upgrade_accounts`]."] - pub struct UpgradeAccounts { - 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"; - 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")] - #[doc = "See [`Pallet::transfer`]."] - pub struct Transfer { - pub dest: transfer::Dest, - #[codec(compact)] - pub value: transfer::Value, - } - pub mod transfer { - use super::runtime_types; - pub type Dest = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type 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")] - #[doc = "See [`Pallet::force_set_balance`]."] - pub struct ForceSetBalance { - pub who: force_set_balance::Who, - #[codec(compact)] - 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"; - 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: types::transfer_allow_death::Dest, - value: types::transfer_allow_death::Value, - ) -> ::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: types::set_balance_deprecated::Who, - new_free: types::set_balance_deprecated::NewFree, - old_reserved: types::set_balance_deprecated::OldReserved, - ) -> ::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: types::force_transfer::Source, - dest: types::force_transfer::Dest, - value: types::force_transfer::Value, - ) -> ::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: types::transfer_keep_alive::Dest, - value: types::transfer_keep_alive::Value, - ) -> ::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: types::transfer_all::Dest, - keep_alive: types::transfer_all::KeepAlive, - ) -> ::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: types::force_unreserve::Who, - amount: types::force_unreserve::Amount, - ) -> ::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: 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::transfer`]."] - pub fn transfer( - &self, - dest: types::transfer::Dest, - value: types::transfer::Value, - ) -> ::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: types::force_set_balance::Who, - new_free: 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_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: 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"; - 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: 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"; - 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: 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"; - const EVENT: &'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")] - #[doc = "A balance was set by root."] - pub struct BalanceSet { - 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"; - const EVENT: &'static str = "BalanceSet"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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: 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"; - const EVENT: &'static str = "Reserved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 unreserved (moved from reserved to free)."] - pub struct Unreserved { - 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"; - const EVENT: &'static str = "Unreserved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 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: 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"; - const EVENT: &'static str = "ReserveRepatriated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 deposited (e.g. for transaction fees)."] - pub struct Deposit { - 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"; - 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 = "Some amount was withdrawn from the account (e.g. for transaction fees)."] - pub struct Withdraw { - 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"; - const EVENT: &'static str = "Withdraw"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 removed from the account (e.g. for misbehavior)."] - pub struct Slashed { - 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"; - 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 = "Some amount was minted into an account."] - pub struct Minted { - 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"; - const EVENT: &'static str = "Minted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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: 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"; - const EVENT: &'static str = "Burned"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 suspended from an account (it can be restored later)."] - pub struct Suspended { - 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"; - const EVENT: &'static str = "Suspended"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 restored into an account."] - pub struct Restored { - 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"; - const EVENT: &'static str = "Restored"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 upgraded."] - pub struct Upgraded { - 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"; - const EVENT: &'static str = "Upgraded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 = "Total issuance was increased by `amount`, creating a credit to be balanced."] - pub struct Issued { - 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"; - const EVENT: &'static str = "Issued"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 = "Total issuance was decreased by `amount`, creating a debt to be balanced."] - pub struct Rescinded { - 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"; - const EVENT: &'static str = "Rescinded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 locked."] - pub struct Locked { - 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"; - 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: 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"; - 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: 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"; - 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: 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"; - const EVENT: &'static str = "Thawed"; - } - } - pub mod storage { - use super::runtime_types; - pub mod 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 type Param0 = ::subxt::utils::AccountId32; - } - 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 type Param0 = ::subxt::utils::AccountId32; - } - 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 type Param0 = ::subxt::utils::AccountId32; - } - 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 type Param0 = ::subxt::utils::AccountId32; - } - 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 type Param0 = ::subxt::utils::AccountId32; - } - } - pub struct StorageApi; - impl StorageApi { - #[doc = " The total units issued in the system."] - pub fn total_issuance( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::total_issuance::TotalIssuance, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Balances", - "TotalIssuance", - vec![], - [ - 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 = " The total units of outstanding deactivated balance in the system."] - pub fn inactive_issuance( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::inactive_issuance::InactiveIssuance, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Balances", - "InactiveIssuance", - vec![], - [ - 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 = " 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_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::account::Account, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Balances", - "Account", - vec![], - [ - 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 = " 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::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::account::Account, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Balances", - "Account", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 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 = " 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, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::locks::Locks, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Balances", - "Locks", - vec![], - [ - 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 = " 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::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::locks::Locks, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Balances", - "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, - types::reserves::Reserves, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Balances", - "Reserves", - vec![], - [ - 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 = " Named reserves on some account balances."] - pub fn reserves( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::reserves::Reserves, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Balances", - "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, - types::holds::Holds, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Balances", - "Holds", - vec![], - [ - 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 = " Holds on account balances."] - pub fn holds( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::holds::Holds, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Balances", - "Holds", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 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 = " Freeze locks on account balances."] - pub fn freezes_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::freezes::Freezes, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Balances", - "Freezes", - vec![], - [ - 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 = " Freeze locks on account balances."] - pub fn freezes( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::freezes::Freezes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Balances", - "Freezes", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 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, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[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( - "Balances", - "ExistentialDeposit", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ], - ) - } - #[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( - "Balances", - "MaxLocks", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[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( - "Balances", - "MaxReserves", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[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( - "Balances", - "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( - "Balances", - "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, - ], - ) - } - } - } - } - pub mod transaction_payment { - use super::root_mod; - use super::runtime_types; - #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_transaction_payment::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 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: 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"; - const EVENT: &'static str = "TransactionFeePaid"; - } - } - pub mod storage { - use super::runtime_types; - pub mod 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, - types::next_fee_multiplier::NextFeeMultiplier, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "TransactionPayment", - "NextFeeMultiplier", - vec![], - [ - 247u8, 39u8, 81u8, 170u8, 225u8, 226u8, 82u8, 147u8, 34u8, 113u8, - 147u8, 213u8, 59u8, 80u8, 139u8, 35u8, 36u8, 196u8, 152u8, 19u8, 9u8, - 159u8, 176u8, 79u8, 249u8, 201u8, 170u8, 1u8, 129u8, 79u8, 146u8, - 197u8, - ], - ) - } - pub fn storage_version( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::storage_version::StorageVersion, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "TransactionPayment", - "StorageVersion", - vec![], - [ - 105u8, 243u8, 158u8, 241u8, 159u8, 231u8, 253u8, 6u8, 4u8, 32u8, 85u8, - 178u8, 126u8, 31u8, 203u8, 134u8, 154u8, 38u8, 122u8, 155u8, 150u8, - 251u8, 174u8, 15u8, 74u8, 134u8, 216u8, 244u8, 168u8, 175u8, 158u8, - 144u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " A fee multiplier for `Operational` extrinsics to compute \"virtual tip\" to boost their"] - #[doc = " `priority`"] - #[doc = ""] - #[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."] - #[doc = ""] - #[doc = " ```rust,ignore"] - #[doc = " // For `Normal`"] - #[doc = " let priority = priority_calc(tip);"] - #[doc = ""] - #[doc = " // For `Operational`"] - #[doc = " let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;"] - #[doc = " let priority = priority_calc(tip + virtual_tip);"] - #[doc = " ```"] - #[doc = ""] - #[doc = " Note that since we use `final_fee` the multiplier applies also to the regular `tip`"] - #[doc = " sent with the transaction. So, not only does the transaction get a priority bump based"] - #[doc = " on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`"] - #[doc = " transactions."] - pub fn operational_fee_multiplier( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u8> { - ::subxt::constants::Address::new_static( - "TransactionPayment", - "OperationalFeeMultiplier", - [ - 141u8, 130u8, 11u8, 35u8, 226u8, 114u8, 92u8, 179u8, 168u8, 110u8, - 28u8, 91u8, 221u8, 64u8, 4u8, 148u8, 201u8, 193u8, 185u8, 66u8, 226u8, - 114u8, 97u8, 79u8, 62u8, 212u8, 202u8, 114u8, 237u8, 228u8, 183u8, - 165u8, - ], - ) - } - } - } - } - pub mod authorship { - use super::root_mod; - use super::runtime_types; - pub mod storage { - use super::runtime_types; - pub mod 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."] - pub fn author( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::author::Author, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Authorship", - "Author", - vec![], - [ - 247u8, 192u8, 118u8, 227u8, 47u8, 20u8, 203u8, 199u8, 216u8, 87u8, - 220u8, 50u8, 166u8, 61u8, 168u8, 213u8, 253u8, 62u8, 202u8, 199u8, - 61u8, 192u8, 237u8, 53u8, 22u8, 148u8, 164u8, 245u8, 99u8, 24u8, 146u8, - 18u8, - ], - ) - } - } - } - } - pub mod staking { - 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; - 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")] - #[doc = "See [`Pallet::bond`]."] - pub struct Bond { - #[codec(compact)] - pub value: bond::Value, - pub payee: bond::Payee, - } - pub mod bond { - use super::runtime_types; - pub type Value = ::core::primitive::u128; - pub type 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")] - #[doc = "See [`Pallet::bond_extra`]."] - pub struct BondExtra { - #[codec(compact)] - pub max_additional: bond_extra::MaxAdditional, - } - pub mod bond_extra { - use super::runtime_types; - pub type MaxAdditional = ::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")] - #[doc = "See [`Pallet::unbond`]."] - pub struct Unbond { - #[codec(compact)] - pub value: unbond::Value, - } - pub mod unbond { - use super::runtime_types; - pub type Value = ::core::primitive::u128; - } - impl ::subxt::blocks::StaticExtrinsic for Unbond { - const PALLET: &'static str = "Staking"; - 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")] - #[doc = "See [`Pallet::withdraw_unbonded`]."] - pub struct WithdrawUnbonded { - pub num_slashing_spans: withdraw_unbonded::NumSlashingSpans, - } - pub mod withdraw_unbonded { - use super::runtime_types; - pub type NumSlashingSpans = ::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")] - #[doc = "See [`Pallet::validate`]."] - pub struct Validate { - pub prefs: validate::Prefs, - } - pub mod validate { - use super::runtime_types; - pub type 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")] - #[doc = "See [`Pallet::nominate`]."] - pub struct Nominate { - pub targets: nominate::Targets, - } - pub mod nominate { - use super::runtime_types; - pub type 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")] - #[doc = "See [`Pallet::chill`]."] - 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")] - #[doc = "See [`Pallet::set_payee`]."] - pub struct SetPayee { - pub payee: set_payee::Payee, - } - pub mod set_payee { - use super::runtime_types; - pub type Payee = runtime_types::pallet_staking::RewardDestination< - ::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")] - #[doc = "See [`Pallet::set_controller`]."] - 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")] - #[doc = "See [`Pallet::set_validator_count`]."] - pub struct SetValidatorCount { - #[codec(compact)] - pub new: set_validator_count::New, - } - pub mod set_validator_count { - use super::runtime_types; - pub type 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")] - #[doc = "See [`Pallet::increase_validator_count`]."] - pub struct IncreaseValidatorCount { - #[codec(compact)] - pub additional: increase_validator_count::Additional, - } - pub mod increase_validator_count { - use super::runtime_types; - pub type 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")] - #[doc = "See [`Pallet::scale_validator_count`]."] - pub struct ScaleValidatorCount { - pub factor: scale_validator_count::Factor, - } - pub mod scale_validator_count { - use super::runtime_types; - pub type 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")] - #[doc = "See [`Pallet::force_no_eras`]."] - 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")] - #[doc = "See [`Pallet::force_new_era`]."] - 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")] - #[doc = "See [`Pallet::set_invulnerables`]."] - pub struct SetInvulnerables { - pub invulnerables: set_invulnerables::Invulnerables, - } - pub mod set_invulnerables { - use super::runtime_types; - pub type Invulnerables = ::std::vec::Vec<::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")] - #[doc = "See [`Pallet::force_unstake`]."] - pub struct ForceUnstake { - pub stash: force_unstake::Stash, - pub num_slashing_spans: force_unstake::NumSlashingSpans, - } - pub mod force_unstake { - use super::runtime_types; - pub type Stash = ::subxt::utils::AccountId32; - pub type NumSlashingSpans = ::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")] - #[doc = "See [`Pallet::force_new_era_always`]."] - pub struct ForceNewEraAlways; - impl ::subxt::blocks::StaticExtrinsic for ForceNewEraAlways { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "force_new_era_always"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 = "See [`Pallet::cancel_deferred_slash`]."] - pub struct CancelDeferredSlash { - pub era: cancel_deferred_slash::Era, - pub slash_indices: cancel_deferred_slash::SlashIndices, - } - pub mod cancel_deferred_slash { - use super::runtime_types; - pub type Era = ::core::primitive::u32; - pub type SlashIndices = ::std::vec::Vec<::core::primitive::u32>; - } - impl ::subxt::blocks::StaticExtrinsic for CancelDeferredSlash { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "cancel_deferred_slash"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 = "See [`Pallet::payout_stakers`]."] - pub struct PayoutStakers { - pub validator_stash: payout_stakers::ValidatorStash, - pub era: payout_stakers::Era, - } - pub mod payout_stakers { - use super::runtime_types; - pub type ValidatorStash = ::subxt::utils::AccountId32; - pub type Era = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for PayoutStakers { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "payout_stakers"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 = "See [`Pallet::rebond`]."] - pub struct Rebond { - #[codec(compact)] - pub value: rebond::Value, - } - pub mod rebond { - use super::runtime_types; - pub type Value = ::core::primitive::u128; - } - impl ::subxt::blocks::StaticExtrinsic for Rebond { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "rebond"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 = "See [`Pallet::reap_stash`]."] - pub struct ReapStash { - pub stash: reap_stash::Stash, - pub num_slashing_spans: reap_stash::NumSlashingSpans, - } - pub mod reap_stash { - use super::runtime_types; - pub type Stash = ::subxt::utils::AccountId32; - pub type NumSlashingSpans = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for ReapStash { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "reap_stash"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 = "See [`Pallet::kick`]."] - pub struct Kick { - pub who: kick::Who, - } - pub mod kick { - use super::runtime_types; - pub type Who = ::std::vec::Vec< - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - >; - } - impl ::subxt::blocks::StaticExtrinsic for Kick { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "kick"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 = "See [`Pallet::set_staking_configs`]."] - pub struct SetStakingConfigs { - pub min_nominator_bond: set_staking_configs::MinNominatorBond, - pub min_validator_bond: set_staking_configs::MinValidatorBond, - pub max_nominator_count: set_staking_configs::MaxNominatorCount, - pub max_validator_count: set_staking_configs::MaxValidatorCount, - pub chill_threshold: set_staking_configs::ChillThreshold, - pub min_commission: set_staking_configs::MinCommission, - } - pub mod set_staking_configs { - use super::runtime_types; - pub type MinNominatorBond = - runtime_types::pallet_staking::pallet::pallet::ConfigOp< - ::core::primitive::u128, - >; - pub type MinValidatorBond = - runtime_types::pallet_staking::pallet::pallet::ConfigOp< - ::core::primitive::u128, - >; - pub type MaxNominatorCount = - runtime_types::pallet_staking::pallet::pallet::ConfigOp< - ::core::primitive::u32, - >; - pub type MaxValidatorCount = - runtime_types::pallet_staking::pallet::pallet::ConfigOp< - ::core::primitive::u32, - >; - pub type ChillThreshold = - runtime_types::pallet_staking::pallet::pallet::ConfigOp< - runtime_types::sp_arithmetic::per_things::Percent, - >; - pub type MinCommission = - runtime_types::pallet_staking::pallet::pallet::ConfigOp< - runtime_types::sp_arithmetic::per_things::Perbill, - >; - } - 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")] - #[doc = "See [`Pallet::chill_other`]."] - pub struct ChillOther { - pub controller: chill_other::Controller, - } - pub mod chill_other { - use super::runtime_types; - pub type 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")] - #[doc = "See [`Pallet::force_apply_min_commission`]."] - pub struct ForceApplyMinCommission { - pub validator_stash: force_apply_min_commission::ValidatorStash, - } - pub mod force_apply_min_commission { - use super::runtime_types; - pub type ValidatorStash = ::subxt::utils::AccountId32; - } - impl ::subxt::blocks::StaticExtrinsic for ForceApplyMinCommission { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "force_apply_min_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")] - #[doc = "See [`Pallet::set_min_commission`]."] - pub struct SetMinCommission { - pub new: set_min_commission::New, - } - pub mod set_min_commission { - use super::runtime_types; - pub type New = runtime_types::sp_arithmetic::per_things::Perbill; - } - impl ::subxt::blocks::StaticExtrinsic for SetMinCommission { - const PALLET: &'static str = "Staking"; - const CALL: &'static str = "set_min_commission"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::bond`]."] - pub fn bond( - &self, - value: types::bond::Value, - payee: types::bond::Payee, - ) -> ::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( - &self, - max_additional: types::bond_extra::MaxAdditional, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "bond_extra", - types::BondExtra { max_additional }, - [ - 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, - ], - ) - } - #[doc = "See [`Pallet::unbond`]."] - pub fn unbond( - &self, - value: types::unbond::Value, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "unbond", - types::Unbond { value }, - [ - 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, - ], - ) - } - #[doc = "See [`Pallet::withdraw_unbonded`]."] - pub fn withdraw_unbonded( - &self, - num_slashing_spans: types::withdraw_unbonded::NumSlashingSpans, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "withdraw_unbonded", - types::WithdrawUnbonded { num_slashing_spans }, - [ - 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, - ], - ) - } - #[doc = "See [`Pallet::validate`]."] - pub fn validate( - &self, - prefs: types::validate::Prefs, - ) -> ::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: types::nominate::Targets, - ) -> ::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: types::set_payee::Payee, - ) -> ::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: types::set_validator_count::New, - ) -> ::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: types::increase_validator_count::Additional, - ) -> ::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: types::scale_validator_count::Factor, - ) -> ::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: types::set_invulnerables::Invulnerables, - ) -> ::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: types::force_unstake::Stash, - num_slashing_spans: types::force_unstake::NumSlashingSpans, - ) -> ::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: types::cancel_deferred_slash::Era, - slash_indices: types::cancel_deferred_slash::SlashIndices, - ) -> ::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: types::payout_stakers::ValidatorStash, - era: types::payout_stakers::Era, - ) -> ::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: types::rebond::Value, - ) -> ::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: types::reap_stash::Stash, - num_slashing_spans: types::reap_stash::NumSlashingSpans, - ) -> ::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: types::kick::Who) -> ::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, - ], - ) - } - #[doc = "See [`Pallet::set_staking_configs`]."] - pub fn set_staking_configs( - &self, - min_nominator_bond: types::set_staking_configs::MinNominatorBond, - min_validator_bond: types::set_staking_configs::MinValidatorBond, - max_nominator_count: types::set_staking_configs::MaxNominatorCount, - max_validator_count: types::set_staking_configs::MaxValidatorCount, - chill_threshold: types::set_staking_configs::ChillThreshold, - min_commission: types::set_staking_configs::MinCommission, - ) -> ::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, - ], - ) - } - #[doc = "See [`Pallet::chill_other`]."] - pub fn chill_other( - &self, - controller: types::chill_other::Controller, - ) -> ::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, - ], - ) - } - #[doc = "See [`Pallet::force_apply_min_commission`]."] - pub fn force_apply_min_commission( - &self, - validator_stash: types::force_apply_min_commission::ValidatorStash, - ) -> ::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, - ], - ) - } - #[doc = "See [`Pallet::set_min_commission`]."] - pub fn set_min_commission( - &self, - new: types::set_min_commission::New, - ) -> ::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, - ], - ) - } - } - } - #[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: era_paid::EraIndex, - pub validator_payout: era_paid::ValidatorPayout, - pub remainder: era_paid::Remainder, - } - pub mod era_paid { - use super::runtime_types; - pub type EraIndex = ::core::primitive::u32; - pub type ValidatorPayout = ::core::primitive::u128; - pub type 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: rewarded::Stash, - pub amount: rewarded::Amount, - } - pub mod rewarded { - use super::runtime_types; - pub type Stash = ::subxt::utils::AccountId32; - pub type 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: slashed::Staker, - pub amount: slashed::Amount, - } - pub mod slashed { - use super::runtime_types; - pub type Staker = ::subxt::utils::AccountId32; - pub type 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: slash_reported::Validator, - pub fraction: slash_reported::Fraction, - pub slash_era: slash_reported::SlashEra, - } - pub mod slash_reported { - use super::runtime_types; - pub type Validator = ::subxt::utils::AccountId32; - pub type Fraction = runtime_types::sp_arithmetic::per_things::Perbill; - pub type SlashEra = ::core::primitive::u32; - } - impl ::subxt::events::StaticEvent for SlashReported { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "SlashReported"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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: old_slashing_report_discarded::SessionIndex, - } - pub mod old_slashing_report_discarded { - use super::runtime_types; - pub type SessionIndex = ::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: bonded::Stash, - pub amount: bonded::Amount, - } - pub mod bonded { - use super::runtime_types; - pub type Stash = ::subxt::utils::AccountId32; - pub type 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: unbonded::Stash, - pub amount: unbonded::Amount, - } - pub mod unbonded { - use super::runtime_types; - pub type Stash = ::subxt::utils::AccountId32; - pub type 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: withdrawn::Stash, - pub amount: withdrawn::Amount, - } - pub mod withdrawn { - use super::runtime_types; - pub type Stash = ::subxt::utils::AccountId32; - pub type 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: kicked::Nominator, - pub stash: kicked::Stash, - } - pub mod kicked { - use super::runtime_types; - pub type Nominator = ::subxt::utils::AccountId32; - pub type 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: chilled::Stash, - } - pub mod chilled { - use super::runtime_types; - pub type 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: payout_started::EraIndex, - pub validator_stash: payout_started::ValidatorStash, - } - pub mod payout_started { - use super::runtime_types; - pub type EraIndex = ::core::primitive::u32; - pub type ValidatorStash = ::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: validator_prefs_set::Stash, - pub prefs: validator_prefs_set::Prefs, - } - pub mod validator_prefs_set { - use super::runtime_types; - pub type Stash = ::subxt::utils::AccountId32; - pub type 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: force_era::Mode, - } - pub mod force_era { - use super::runtime_types; - pub type 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( - &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", - "ValidatorCount", - 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, - ], - ) - } - #[doc = " Minimum number of staking participants before emergency conditions are imposed."] - pub fn minimum_validator_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( - "Staking", - "MinimumValidatorCount", - 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, - ], - ) - } - #[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( - &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( - "Staking", - "Invulnerables", - 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, - ], - ) - } - #[doc = " Map from all locked \"stash\" accounts to the controller account."] - #[doc = ""] - #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] - pub fn bonded_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::subxt::utils::AccountId32, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "Bonded", - 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, - ], - ) - } - #[doc = " Map from all locked \"stash\" accounts to the controller account."] - #[doc = ""] - #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] - pub fn bonded( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::subxt::utils::AccountId32, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "Bonded", - 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, - ], - ) - } - #[doc = " The minimum active bond to become and maintain the role of a nominator."] - pub fn min_nominator_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( - "Staking", - "MinNominatorBond", - 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, - ], - ) - } - #[doc = " The minimum active bond to become and maintain the role of a validator."] - pub fn min_validator_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( - "Staking", - "MinValidatorBond", - vec![], - [ - 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, - ], - ) - } - #[doc = " The minimum active nominator stake of the last successful election."] - pub fn minimum_active_stake( - &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![], - [ - 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, - ], - ) - } - #[doc = " The minimum amount of commission that validators can set."] - #[doc = ""] - #[doc = " If set to `0`, no limit exists."] - pub fn min_commission( - &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![], - [ - 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, - ], - ) - } - #[doc = " Map from all (unlocked) \"controller\" accounts to the info regarding the staking."] - pub fn ledger_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::StakingLedger, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "Ledger", - 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, - ], - ) - } - #[doc = " Map from all (unlocked) \"controller\" accounts to the info regarding the staking."] - pub fn ledger( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::StakingLedger, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "Ledger", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 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, - ], - ) - } - #[doc = " Where the reward payment should be made. Keyed by stash."] - #[doc = ""] - #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] - pub fn payee_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::RewardDestination<::subxt::utils::AccountId32>, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "Payee", - 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, - ], - ) - } - #[doc = " Where the reward payment should be made. Keyed by stash."] - #[doc = ""] - #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] - pub fn payee( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::RewardDestination<::subxt::utils::AccountId32>, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "Payee", - 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, - ], - ) - } - #[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( - &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", - "Validators", - 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, - ], - ) - } - #[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( - &self, - _0: 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", - "Validators", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 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, - ], - ) - } - #[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, - ], - ) - } - #[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( - &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![], - [ - 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, - ], - ) - } - #[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![], - [ - 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, - ], - ) - } - #[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( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::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![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 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, - ], - ) - } - #[doc = "Counter for the related counted storage map"] - pub fn counter_for_nominators( - &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", - "CounterForNominators", - 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, - ], - ) - } - #[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( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "MaxNominatorsCount", - 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, - ], - ) - } - #[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( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "CurrentEra", - 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, - ], - ) - } - #[doc = " The active era information, it holds index and start."] - #[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( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::ActiveEraInfo, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "ActiveEra", - 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, - ], - ) - } - #[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( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "ErasStartSessionIndex", - 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, - ], - ) - } - #[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( - &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::Address::new_static( - "Staking", - "ErasStartSessionIndex", - 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, - ], - ) - } - #[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( - &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", - "ErasStakers", - 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, - ], - ) - } - #[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( - &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, - >, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "ErasStakers", - 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, - ], - ) - } - #[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( - &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, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "ErasStakers", - 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, - ], - ) - } - #[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, - ], - ) - } - #[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, - >, - (), - ::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, - ], - ) - } - #[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, - >, - ::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, - ], - ) - } - #[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( - &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![], - [ - 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, - ], - ) - } - #[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( - &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(), - )], - [ - 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, - ], - ) - } - #[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( - &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()), - ], - [ - 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, - ], - ) - } - #[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( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "ErasValidatorReward", - 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, - ], - ) - } - #[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( - &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::Address::new_static( - "Staking", - "ErasValidatorReward", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 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, - ], - ) - } - #[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( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::EraRewardPoints<::subxt::utils::AccountId32>, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "ErasRewardPoints", - 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, - ], - ) - } - #[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( - &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, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "ErasRewardPoints", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 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, - ], - ) - } - #[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( - &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", - "ErasTotalStake", - 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, - ], - ) - } - #[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( - &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( - "Staking", - "ErasTotalStake", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 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, - ], - ) - } - #[doc = " Mode of era forcing."] - pub fn force_era( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::Forcing, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "ForceEra", - vec![], - [ - 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, - ], - ) - } - #[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( - &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![], - [ - 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, - ], - ) - } - #[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( - &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![], - [ - 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, - ], - ) - } - #[doc = " All unapplied slashes that are queued for later."] - pub fn unapplied_slashes_iter( - &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![], - [ - 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, - ], - ) - } - #[doc = " All unapplied slashes that are queued for later."] - pub fn unapplied_slashes( - &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, - >, - >, - ::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(), - )], - [ - 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, - ], - ) - } - #[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( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::u32)>, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "BondedEras", - 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, - ], - ) - } - #[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( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ( - runtime_types::sp_arithmetic::per_things::Perbill, - ::core::primitive::u128, - ), - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "ValidatorSlashInEra", - 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, - ], - ) - } - #[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( - &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, - ), - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "ValidatorSlashInEra", - 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, - ], - ) - } - #[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( - &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::sp_arithmetic::per_things::Perbill, - ::core::primitive::u128, - ), - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "ValidatorSlashInEra", - 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, - ], - ) - } - #[doc = " All slashing events on nominators, mapped by era to the highest slash value of the era."] - pub fn nominator_slash_in_era_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "NominatorSlashInEra", - 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, - ], - ) - } - #[doc = " All slashing events on nominators, mapped by era to the highest slash value of the era."] - pub fn nominator_slash_in_era_iter1( - &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::Address::new_static( - "Staking", - "NominatorSlashInEra", - 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, - ], - ) - } - #[doc = " All slashing events on nominators, mapped by era to the highest slash value of the era."] - pub fn nominator_slash_in_era( - &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, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "NominatorSlashInEra", - 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, - ], - ) - } - #[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( - &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(), - )], - [ - 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 = " 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, - ], - ) - } - #[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, - ], - ) - } - #[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, - ], - ) - } - #[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, - ], - ) - } - #[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( - &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![], - [ - 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, - ], - ) - } - #[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( - &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![], - [ - 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, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " Maximum number of nominations per nominator."] - pub fn max_nominations( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Staking", - "MaxNominations", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[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", - [ - 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 = " Number of sessions per era."] - pub fn sessions_per_era( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Staking", - "SessionsPerEra", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " Number of eras that staked funds must remain bonded for."] - pub fn bonding_duration( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Staking", - "BondingDuration", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[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( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Staking", - "SlashDeferDuration", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[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( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Staking", - "MaxNominatorRewardedPerValidator", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[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( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Staking", - "MaxUnlockingChunks", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - } - } - } - pub mod offences { - use super::root_mod; - use super::runtime_types; - #[doc = "Events type."] - pub type Event = runtime_types::pallet_offences::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 = "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: 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"; - const EVENT: &'static str = "Offence"; - } - } - pub mod storage { - use super::runtime_types; - pub mod types { - use super::runtime_types; - pub mod reports { - use super::runtime_types; - pub type Reports = runtime_types::sp_staking::offence::OffenceDetails< - ::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; - 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, - 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, - ], - ) - } - #[doc = " The primary structure that holds all offence records keyed by report identifiers."] - pub fn reports( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - 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, - ], - ) - } - #[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, - 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, - ], - ) - } - #[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, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - 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, - ], - ) - } - #[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, - _1: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - 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, - ], - ) - } - } - } - } - 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 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, - 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 type KeyOwnerProof = runtime_types::sp_session::MembershipProof; - } - impl ::subxt::blocks::StaticExtrinsic for ReportEquivocation { - const PALLET: &'static str = "Beefy"; - 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, - 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 type KeyOwnerProof = runtime_types::sp_session::MembershipProof; - } - 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, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[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: 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"; - const CALL: &'static str = "set_new_genesis"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::report_equivocation`]."] - pub fn report_equivocation( - &self, - equivocation_proof: types::report_equivocation::EquivocationProof, - key_owner_proof: types::report_equivocation::KeyOwnerProof, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Beefy", - "report_equivocation", - types::ReportEquivocation { - equivocation_proof: ::std::boxed::Box::new(equivocation_proof), - key_owner_proof, - }, - [ - 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::report_equivocation_unsigned`]."] - pub fn report_equivocation_unsigned( - &self, - equivocation_proof: types::report_equivocation_unsigned::EquivocationProof, - key_owner_proof: types::report_equivocation_unsigned::KeyOwnerProof, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Beefy", - "report_equivocation_unsigned", - types::ReportEquivocationUnsigned { - equivocation_proof: ::std::boxed::Box::new(equivocation_proof), - key_owner_proof, - }, - [ - 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::set_new_genesis`]."] - pub fn set_new_genesis( - &self, - delay_in_blocks: types::set_new_genesis::DelayInBlocks, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Beefy", - "set_new_genesis", - types::SetNewGenesis { delay_in_blocks }, - [ - 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, - ], - ) - } - } - } - pub mod storage { - use super::runtime_types; - pub mod 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, - >; - } - pub mod validator_set_id { - use super::runtime_types; - pub type ValidatorSetId = ::core::primitive::u64; - } - 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, - >; - } - 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; - pub type GenesisBlock = ::core::option::Option<::core::primitive::u32>; - } - } - pub struct StorageApi; - impl StorageApi { - #[doc = " The current authorities set"] - 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( - "Beefy", - "Authorities", - vec![], - [ - 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 = " The current validator set id"] - pub fn validator_set_id( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::validator_set_id::ValidatorSetId, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Beefy", - "ValidatorSetId", - vec![], - [ - 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 = " Authorities set scheduled to be used with the next session"] - pub fn next_authorities( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::next_authorities::NextAuthorities, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Beefy", - "NextAuthorities", - vec![], - [ - 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 = " 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: `ValidatorSetId` is not under user control."] - pub fn set_id_session_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::set_id_session::SetIdSession, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Beefy", - "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 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: `ValidatorSetId` is not under user control."] - pub fn set_id_session( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::set_id_session::SetIdSession, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Beefy", - "SetIdSession", - 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, - ], - ) - } - #[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, - types::genesis_block::GenesisBlock, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Beefy", - "GenesisBlock", - vec![], - [ - 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, - ], - ) - } - } - } - 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::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Beefy", - "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( - "Beefy", - "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, - ], - ) - } - #[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::constants::Address<::core::primitive::u64> { - ::subxt::constants::Address::new_static( - "Beefy", - "MaxSetIdSessionEntries", - [ - 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 mmr { - use super::root_mod; - use super::runtime_types; - pub mod storage { - use super::runtime_types; - pub mod 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 type Param0 = ::core::primitive::u64; - } - } - pub struct StorageApi; - impl StorageApi { - #[doc = " Latest MMR Root hash."] - pub fn root_hash( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::root_hash::RootHash, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Mmr", - "RootHash", - vec![], - [ - 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 = " Current size of the MMR (number of leaves)."] - pub fn number_of_leaves( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::number_of_leaves::NumberOfLeaves, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Mmr", - "NumberOfLeaves", - vec![], - [ - 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 = " Hashes of the nodes in the MMR."] - #[doc = ""] - #[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, - types::nodes::Nodes, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Mmr", - "Nodes", - vec![], - [ - 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 = " Hashes of the nodes in the MMR."] - #[doc = ""] - #[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::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::nodes::Nodes, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Mmr", - "Nodes", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 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, - ], - ) - } - } - } - } - pub mod mmr_leaf { - use super::root_mod; - use super::runtime_types; - pub mod storage { - use super::runtime_types; - pub mod 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, - types::beefy_authorities::BeefyAuthorities, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "MmrLeaf", - "BeefyAuthorities", - vec![], - [ - 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 = " Details of next BEEFY authority set."] - #[doc = ""] - #[doc = " This storage entry is used as cache for calls to `update_beefy_next_authority_set`."] - pub fn beefy_next_authorities( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::beefy_next_authorities::BeefyNextAuthorities, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "MmrLeaf", - "BeefyNextAuthorities", - vec![], - [ - 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, - ], - ) - } - } - } - } - 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")] - #[doc = "See [`Pallet::set_keys`]."] - pub struct SetKeys { - pub keys: set_keys::Keys, - pub proof: set_keys::Proof, - } - pub mod set_keys { - use super::runtime_types; - pub type Keys = runtime_types::polkadot_runtime::SessionKeys; - pub type 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")] - #[doc = "See [`Pallet::purge_keys`]."] - 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, - keys: types::set_keys::Keys, - proof: types::set_keys::Proof, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Session", - "set_keys", - types::SetKeys { keys, proof }, - [ - 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, - ], - ) - } - #[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, - ], - ) - } - } - } - #[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 :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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: 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"; - const EVENT: &'static str = "NewSession"; - } - } - pub mod storage { - use super::runtime_types; - pub mod 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 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; - impl StorageApi { - #[doc = " The current set of validators."] - pub fn validators( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::validators::Validators, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Session", - "Validators", - 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, - ], - ) - } - #[doc = " Current index of the session."] - pub fn current_index( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::current_index::CurrentIndex, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Session", - "CurrentIndex", - vec![], - [ - 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 = " 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, - types::queued_changed::QueuedChanged, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Session", - "QueuedChanged", - 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, - ], - ) - } - #[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, - types::queued_keys::QueuedKeys, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Session", - "QueuedKeys", - vec![], - [ - 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, - ], - ) - } - #[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( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::disabled_validators::DisabledValidators, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Session", - "DisabledValidators", - 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, - ], - ) - } - #[doc = " The next session keys for a validator."] - pub fn next_keys_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::next_keys::NextKeys, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Session", - "NextKeys", - vec![], - [ - 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, - ], - ) - } - #[doc = " The next session keys for a validator."] - pub fn next_keys( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::next_keys::NextKeys, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Session", - "NextKeys", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 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, - ], - ) - } - #[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, - types::key_owner::KeyOwner, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Session", - "KeyOwner", - vec![], - [ - 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 = " The owner of a key. The key is the `KeyTypeId` + the encoded key."] - pub fn key_owner_iter1( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::key_owner::KeyOwner, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Session", - "KeyOwner", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 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 = " 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, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::key_owner::KeyOwner, - ::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()), - ], - [ - 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, - ], - ) - } - } - } - } - 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 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 = "See [`Pallet::report_equivocation`]."] - pub struct ReportEquivocation { - 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 type KeyOwnerProof = runtime_types::sp_session::MembershipProof; - } - 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")] - #[doc = "See [`Pallet::report_equivocation_unsigned`]."] - pub struct ReportEquivocationUnsigned { - 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 type KeyOwnerProof = runtime_types::sp_session::MembershipProof; - } - 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")] - #[doc = "See [`Pallet::note_stalled`]."] - pub struct NoteStalled { - 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"; - const CALL: &'static str = "note_stalled"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::report_equivocation`]."] - pub fn report_equivocation( - &self, - equivocation_proof: types::report_equivocation::EquivocationProof, - key_owner_proof: 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, - }, - [ - 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 = "See [`Pallet::report_equivocation_unsigned`]."] - pub fn report_equivocation_unsigned( - &self, - equivocation_proof: types::report_equivocation_unsigned::EquivocationProof, - key_owner_proof: 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, - }, - [ - 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 = "See [`Pallet::note_stalled`]."] - pub fn note_stalled( - &self, - delay: types::note_stalled::Delay, - best_finalized_block_number: types::note_stalled::BestFinalizedBlockNumber, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Grandpa", - "note_stalled", - types::NoteStalled { - delay, - best_finalized_block_number, - }, - [ - 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 `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: 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"; - 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 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 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 { - #[doc = " State of the current authority set."] - pub fn state( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::state::State, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Grandpa", - "State", - 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, - ], - ) - } - #[doc = " Pending change: (signaled at, scheduled change)."] - pub fn pending_change( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::pending_change::PendingChange, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Grandpa", - "PendingChange", - vec![], - [ - 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 = " next block number where we can force a change."] - pub fn next_forced( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::next_forced::NextForced, - ::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, - ], - ) - } - #[doc = " `true` if we are currently stalled."] - pub fn stalled( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::stalled::Stalled, - ::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, - ], - ) - } - #[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, - types::current_set_id::CurrentSetId, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Grandpa", - "CurrentSetId", - 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, - ], - ) - } - #[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, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::set_id_session::SetIdSession, - (), - (), - ::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, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::set_id_session::SetIdSession, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Grandpa", - "SetIdSession", - 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, - ], - ) - } - #[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 { - 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> { - ::subxt::constants::Address::new_static( - "Grandpa", - "MaxAuthorities", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[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( - "Grandpa", - "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, - ], - ) - } - #[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::constants::Address<::core::primitive::u64> { - ::subxt::constants::Address::new_static( - "Grandpa", - "MaxSetIdSessionEntries", - [ - 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 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")] - #[doc = "See [`Pallet::heartbeat`]."] - 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, - runtime_types::pallet_staking::Exposure< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, - )>; - } - impl ::subxt::events::StaticEvent for SomeOffline { - const PALLET: &'static str = "ImOnline"; - const EVENT: &'static str = "SomeOffline"; - } - } - pub mod storage { - use super::runtime_types; - 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, - ::core::primitive::u32, - ::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, - 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, - (), - > { - ::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, - ::core::primitive::bool, - (), - (), - ::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<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::bool, - (), - (), - ::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<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::bool, - ::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, - ::core::primitive::u32, - (), - ::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<::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( - "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<::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, - (), - > { - ::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; - } - pub mod democracy { - use super::root_mod; - use super::runtime_types; - #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_democracy::pallet::Error; - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::pallet_democracy::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")] - #[doc = "See [`Pallet::propose`]."] - pub struct Propose { - pub proposal: propose::Proposal, - #[codec(compact)] - pub value: propose::Value, - } - pub mod propose { - use super::runtime_types; - pub type Proposal = runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::polkadot_runtime::RuntimeCall, - >; - pub type 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")] - #[doc = "See [`Pallet::second`]."] - pub struct Second { - #[codec(compact)] - pub proposal: second::Proposal, - } - pub mod second { - use super::runtime_types; - pub type 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")] - #[doc = "See [`Pallet::vote`]."] - pub struct Vote { - #[codec(compact)] - pub ref_index: vote::RefIndex, - pub vote: vote::Vote, - } - pub mod vote { - use super::runtime_types; - pub type RefIndex = ::core::primitive::u32; - pub type 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 :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 = "See [`Pallet::emergency_cancel`]."] - pub struct EmergencyCancel { - pub ref_index: emergency_cancel::RefIndex, - } - pub mod emergency_cancel { - use super::runtime_types; - pub type RefIndex = ::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")] - #[doc = "See [`Pallet::external_propose`]."] - pub struct ExternalPropose { - pub proposal: external_propose::Proposal, - } - pub mod external_propose { - use super::runtime_types; - pub type 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")] - #[doc = "See [`Pallet::external_propose_majority`]."] - pub struct ExternalProposeMajority { - pub proposal: external_propose_majority::Proposal, - } - pub mod external_propose_majority { - use super::runtime_types; - pub type 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")] - #[doc = "See [`Pallet::external_propose_default`]."] - pub struct ExternalProposeDefault { - pub proposal: external_propose_default::Proposal, - } - pub mod external_propose_default { - use super::runtime_types; - pub type 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")] - #[doc = "See [`Pallet::fast_track`]."] - pub struct FastTrack { - pub proposal_hash: fast_track::ProposalHash, - pub voting_period: fast_track::VotingPeriod, - pub delay: fast_track::Delay, - } - pub mod fast_track { - use super::runtime_types; - pub type ProposalHash = ::subxt::utils::H256; - pub type VotingPeriod = ::core::primitive::u32; - pub type 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")] - #[doc = "See [`Pallet::veto_external`]."] - pub struct VetoExternal { - pub proposal_hash: veto_external::ProposalHash, - } - pub mod veto_external { - use super::runtime_types; - pub type ProposalHash = ::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")] - #[doc = "See [`Pallet::cancel_referendum`]."] - pub struct CancelReferendum { - #[codec(compact)] - pub ref_index: cancel_referendum::RefIndex, - } - pub mod cancel_referendum { - use super::runtime_types; - pub type RefIndex = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for CancelReferendum { - const PALLET: &'static str = "Democracy"; - const CALL: &'static str = "cancel_referendum"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 = "See [`Pallet::delegate`]."] - pub struct Delegate { - pub to: delegate::To, - pub conviction: delegate::Conviction, - pub balance: delegate::Balance, - } - pub mod delegate { - use super::runtime_types; - pub type To = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Conviction = runtime_types::pallet_democracy::conviction::Conviction; - pub type Balance = ::core::primitive::u128; - } - impl ::subxt::blocks::StaticExtrinsic for Delegate { - const PALLET: &'static str = "Democracy"; - const CALL: &'static str = "delegate"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 = "See [`Pallet::undelegate`]."] - pub struct Undelegate; - impl ::subxt::blocks::StaticExtrinsic for Undelegate { - const PALLET: &'static str = "Democracy"; - 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")] - #[doc = "See [`Pallet::clear_public_proposals`]."] - pub struct ClearPublicProposals; - impl ::subxt::blocks::StaticExtrinsic for ClearPublicProposals { - const PALLET: &'static str = "Democracy"; - const CALL: &'static str = "clear_public_proposals"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 = "See [`Pallet::unlock`]."] - pub struct Unlock { - pub target: unlock::Target, - } - pub mod unlock { - use super::runtime_types; - pub type Target = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - } - impl ::subxt::blocks::StaticExtrinsic for Unlock { - const PALLET: &'static str = "Democracy"; - 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")] - #[doc = "See [`Pallet::remove_vote`]."] - pub struct RemoveVote { - pub index: remove_vote::Index, - } - pub mod remove_vote { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for RemoveVote { - const PALLET: &'static str = "Democracy"; - 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")] - #[doc = "See [`Pallet::remove_other_vote`]."] - pub struct RemoveOtherVote { - pub target: remove_other_vote::Target, - 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 Index = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for RemoveOtherVote { - const PALLET: &'static str = "Democracy"; - const CALL: &'static str = "remove_other_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 = "See [`Pallet::blacklist`]."] - pub struct Blacklist { - pub proposal_hash: blacklist::ProposalHash, - pub maybe_ref_index: blacklist::MaybeRefIndex, - } - pub mod blacklist { - use super::runtime_types; - pub type ProposalHash = ::subxt::utils::H256; - pub type MaybeRefIndex = ::core::option::Option<::core::primitive::u32>; - } - impl ::subxt::blocks::StaticExtrinsic for Blacklist { - const PALLET: &'static str = "Democracy"; - const CALL: &'static str = "blacklist"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 = "See [`Pallet::cancel_proposal`]."] - pub struct CancelProposal { - #[codec(compact)] - pub prop_index: cancel_proposal::PropIndex, - } - pub mod cancel_proposal { - use super::runtime_types; - pub type PropIndex = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for CancelProposal { - const PALLET: &'static str = "Democracy"; - const CALL: &'static str = "cancel_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")] - #[doc = "See [`Pallet::set_metadata`]."] - pub struct SetMetadata { - pub owner: set_metadata::Owner, - pub maybe_hash: set_metadata::MaybeHash, - } - pub mod set_metadata { - use super::runtime_types; - pub type Owner = runtime_types::pallet_democracy::types::MetadataOwner; - pub type MaybeHash = ::core::option::Option<::subxt::utils::H256>; - } - impl ::subxt::blocks::StaticExtrinsic for SetMetadata { - const PALLET: &'static str = "Democracy"; - const CALL: &'static str = "set_metadata"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::propose`]."] - pub fn propose( - &self, - proposal: types::propose::Proposal, - value: types::propose::Value, - ) -> ::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: types::second::Proposal, - ) -> ::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: types::vote::RefIndex, - vote: types::vote::Vote, - ) -> ::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: types::emergency_cancel::RefIndex, - ) -> ::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: types::external_propose::Proposal, - ) -> ::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( - &self, - proposal: types::external_propose_majority::Proposal, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Democracy", - "external_propose_majority", - types::ExternalProposeMajority { proposal }, - [ - 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, - ], - ) - } - #[doc = "See [`Pallet::external_propose_default`]."] - pub fn external_propose_default( - &self, - proposal: types::external_propose_default::Proposal, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Democracy", - "external_propose_default", - types::ExternalProposeDefault { proposal }, - [ - 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, - ], - ) - } - #[doc = "See [`Pallet::fast_track`]."] - pub fn fast_track( - &self, - proposal_hash: types::fast_track::ProposalHash, - voting_period: types::fast_track::VotingPeriod, - delay: types::fast_track::Delay, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Democracy", - "fast_track", - types::FastTrack { - proposal_hash, - voting_period, - delay, - }, - [ - 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, - ], - ) - } - #[doc = "See [`Pallet::veto_external`]."] - pub fn veto_external( - &self, - proposal_hash: types::veto_external::ProposalHash, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Democracy", - "veto_external", - types::VetoExternal { proposal_hash }, - [ - 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, - ], - ) - } - #[doc = "See [`Pallet::cancel_referendum`]."] - pub fn cancel_referendum( - &self, - ref_index: types::cancel_referendum::RefIndex, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Democracy", - "cancel_referendum", - types::CancelReferendum { ref_index }, - [ - 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, - ], - ) - } - #[doc = "See [`Pallet::delegate`]."] - pub fn delegate( - &self, - to: types::delegate::To, - conviction: types::delegate::Conviction, - balance: types::delegate::Balance, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Democracy", - "delegate", - types::Delegate { - to, - conviction, - balance, - }, - [ - 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, - 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: types::unlock::Target, - ) -> ::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: types::remove_vote::Index, - ) -> ::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: types::remove_other_vote::Target, - index: types::remove_other_vote::Index, - ) -> ::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( + #[doc = "See [`Pallet::force_unreserve`]."] + pub fn force_unreserve( &self, - proposal_hash: types::blacklist::ProposalHash, - maybe_ref_index: types::blacklist::MaybeRefIndex, - ) -> ::subxt::tx::Payload { + who: types::force_unreserve::Who, + amount: types::force_unreserve::Amount, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Democracy", - "blacklist", - types::Blacklist { - proposal_hash, - maybe_ref_index, - }, + "Balances", + "force_unreserve", + types::ForceUnreserve { who, amount }, [ - 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, + 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::cancel_proposal`]."] - pub fn cancel_proposal( + #[doc = "See [`Pallet::upgrade_accounts`]."] + pub fn upgrade_accounts( &self, - prop_index: types::cancel_proposal::PropIndex, - ) -> ::subxt::tx::Payload { + who: types::upgrade_accounts::Who, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Democracy", - "cancel_proposal", - types::CancelProposal { prop_index }, + "Balances", + "upgrade_accounts", + types::UpgradeAccounts { who }, [ - 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, + 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::set_metadata`]."] - pub fn set_metadata( + #[doc = "See [`Pallet::force_set_balance`]."] + pub fn force_set_balance( &self, - owner: types::set_metadata::Owner, - maybe_hash: types::set_metadata::MaybeHash, - ) -> ::subxt::tx::Payload { + who: types::force_set_balance::Who, + new_free: types::force_set_balance::NewFree, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Democracy", - "set_metadata", - types::SetMetadata { owner, maybe_hash }, + "Balances", + "force_set_balance", + types::ForceSetBalance { who, new_free }, [ - 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, + 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_democracy::pallet::Event; + pub type Event = runtime_types::pallet_balances::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -15025,105 +6661,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 motion has been proposed by a public account."] - pub struct Proposed { - pub proposal_index: proposed::ProposalIndex, - pub deposit: proposed::Deposit, - } - pub mod proposed { - use super::runtime_types; - pub type ProposalIndex = ::core::primitive::u32; - pub type Deposit = ::core::primitive::u128; - } - impl ::subxt::events::StaticEvent for Proposed { - const PALLET: &'static str = "Democracy"; - 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 public proposal has been tabled for referendum vote."] - pub struct Tabled { - pub proposal_index: tabled::ProposalIndex, - pub deposit: tabled::Deposit, - } - pub mod tabled { - use super::runtime_types; - pub type ProposalIndex = ::core::primitive::u32; - pub type Deposit = ::core::primitive::u128; - } - impl ::subxt::events::StaticEvent for Tabled { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Tabled"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 begun."] - pub struct Started { - pub ref_index: started::RefIndex, - pub threshold: started::Threshold, - } - pub mod started { - use super::runtime_types; - pub type RefIndex = ::core::primitive::u32; - pub type Threshold = runtime_types::pallet_democracy::vote_threshold::VoteThreshold; - } - impl ::subxt::events::StaticEvent for Started { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Started"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 approved by referendum."] - pub struct Passed { - pub ref_index: passed::RefIndex, + #[doc = "An account was created with some free balance."] + pub struct Endowed { + pub account: endowed::Account, + pub free_balance: endowed::FreeBalance, } - pub mod passed { + pub mod endowed { use super::runtime_types; - pub type RefIndex = ::core::primitive::u32; + pub type Account = ::subxt::utils::AccountId32; + pub type FreeBalance = ::core::primitive::u128; } - impl ::subxt::events::StaticEvent for Passed { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Passed"; + impl ::subxt::events::StaticEvent for Endowed { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Endowed"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -15135,17 +6685,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")] - #[doc = "A proposal has been rejected by referendum."] - pub struct NotPassed { - pub ref_index: not_passed::RefIndex, + #[doc = "An account was removed whose balance was non-zero but below ExistentialDeposit,"] + #[doc = "resulting in an outright loss."] + pub struct DustLost { + pub account: dust_lost::Account, + pub amount: dust_lost::Amount, } - pub mod not_passed { + pub mod dust_lost { use super::runtime_types; - pub type RefIndex = ::core::primitive::u32; + pub type Account = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } - impl ::subxt::events::StaticEvent for NotPassed { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "NotPassed"; + impl ::subxt::events::StaticEvent for DustLost { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "DustLost"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -15157,17 +6710,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")] - #[doc = "A referendum has been cancelled."] - pub struct Cancelled { - pub ref_index: cancelled::RefIndex, + #[doc = "Transfer succeeded."] + pub struct Transfer { + pub from: transfer::From, + pub to: transfer::To, + pub amount: transfer::Amount, } - pub mod cancelled { + pub mod transfer { use super::runtime_types; - pub type RefIndex = ::core::primitive::u32; + pub type From = ::subxt::utils::AccountId32; + pub type To = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } - impl ::subxt::events::StaticEvent for Cancelled { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Cancelled"; + impl ::subxt::events::StaticEvent for Transfer { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Transfer"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -15179,19 +6736,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 = "An account has delegated their vote to another account."] - pub struct Delegated { - pub who: delegated::Who, - pub target: delegated::Target, + #[doc = "A balance was set by root."] + pub struct BalanceSet { + pub who: balance_set::Who, + pub free: balance_set::Free, } - pub mod delegated { + pub mod balance_set { use super::runtime_types; pub type Who = ::subxt::utils::AccountId32; - pub type Target = ::subxt::utils::AccountId32; + pub type Free = ::core::primitive::u128; } - impl ::subxt::events::StaticEvent for Delegated { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Delegated"; + impl ::subxt::events::StaticEvent for BalanceSet { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "BalanceSet"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -15203,17 +6760,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 = "An account has cancelled a previous delegation operation."] - pub struct Undelegated { - pub account: undelegated::Account, + #[doc = "Some balance was reserved (moved from free to reserved)."] + pub struct Reserved { + pub who: reserved::Who, + pub amount: reserved::Amount, } - pub mod undelegated { + pub mod reserved { use super::runtime_types; - pub type Account = ::subxt::utils::AccountId32; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } - impl ::subxt::events::StaticEvent for Undelegated { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Undelegated"; + impl ::subxt::events::StaticEvent for Reserved { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Reserved"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -15225,21 +6784,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 = "An external proposal has been vetoed."] - pub struct Vetoed { - pub who: vetoed::Who, - pub proposal_hash: vetoed::ProposalHash, - pub until: vetoed::Until, + #[doc = "Some balance was unreserved (moved from reserved to free)."] + pub struct Unreserved { + pub who: unreserved::Who, + pub amount: unreserved::Amount, } - pub mod vetoed { + pub mod unreserved { use super::runtime_types; pub type Who = ::subxt::utils::AccountId32; - pub type ProposalHash = ::subxt::utils::H256; - pub type Until = ::core::primitive::u32; + pub type Amount = ::core::primitive::u128; } - impl ::subxt::events::StaticEvent for Vetoed { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Vetoed"; + impl ::subxt::events::StaticEvent for Unreserved { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Unreserved"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -15251,17 +6808,25 @@ pub mod 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_hash has been blacklisted permanently."] - pub struct Blacklisted { - pub proposal_hash: blacklisted::ProposalHash, + #[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: reserve_repatriated::From, + pub to: reserve_repatriated::To, + pub amount: reserve_repatriated::Amount, + pub destination_status: reserve_repatriated::DestinationStatus, } - pub mod blacklisted { + pub mod reserve_repatriated { use super::runtime_types; - pub type ProposalHash = ::subxt::utils::H256; + 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 Blacklisted { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Blacklisted"; + impl ::subxt::events::StaticEvent for ReserveRepatriated { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "ReserveRepatriated"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -15273,22 +6838,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 = "An account has voted in a referendum"] - pub struct Voted { - pub voter: voted::Voter, - pub ref_index: voted::RefIndex, - pub vote: voted::Vote, + #[doc = "Some amount was deposited (e.g. for transaction fees)."] + pub struct Deposit { + pub who: deposit::Who, + pub amount: deposit::Amount, } - pub mod voted { + pub mod deposit { use super::runtime_types; - pub type Voter = ::subxt::utils::AccountId32; - pub type RefIndex = ::core::primitive::u32; - pub type Vote = - runtime_types::pallet_democracy::vote::AccountVote<::core::primitive::u128>; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } - impl ::subxt::events::StaticEvent for Voted { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Voted"; + impl ::subxt::events::StaticEvent for Deposit { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Deposit"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -15300,19 +6862,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 = "An account has secconded a proposal"] - pub struct Seconded { - pub seconder: seconded::Seconder, - pub prop_index: seconded::PropIndex, + #[doc = "Some amount was withdrawn from the account (e.g. for transaction fees)."] + pub struct Withdraw { + pub who: withdraw::Who, + pub amount: withdraw::Amount, } - pub mod seconded { + pub mod withdraw { use super::runtime_types; - pub type Seconder = ::subxt::utils::AccountId32; - pub type PropIndex = ::core::primitive::u32; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } - impl ::subxt::events::StaticEvent for Seconded { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Seconded"; + impl ::subxt::events::StaticEvent for Withdraw { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Withdraw"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -15324,17 +6886,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 proposal got canceled."] - pub struct ProposalCanceled { - pub prop_index: proposal_canceled::PropIndex, + #[doc = "Some amount was removed from the account (e.g. for misbehavior)."] + pub struct Slashed { + pub who: slashed::Who, + pub amount: slashed::Amount, } - pub mod proposal_canceled { + pub mod slashed { use super::runtime_types; - pub type PropIndex = ::core::primitive::u32; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } - impl ::subxt::events::StaticEvent for ProposalCanceled { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "ProposalCanceled"; + impl ::subxt::events::StaticEvent for Slashed { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Slashed"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -15346,19 +6910,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 = "Metadata for a proposal or a referendum has been set."] - pub struct MetadataSet { - pub owner: metadata_set::Owner, - pub hash: metadata_set::Hash, + #[doc = "Some amount was minted into an account."] + pub struct Minted { + pub who: minted::Who, + pub amount: minted::Amount, } - pub mod metadata_set { + pub mod minted { use super::runtime_types; - pub type Owner = runtime_types::pallet_democracy::types::MetadataOwner; - pub type Hash = ::subxt::utils::H256; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } - impl ::subxt::events::StaticEvent for MetadataSet { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "MetadataSet"; + impl ::subxt::events::StaticEvent for Minted { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Minted"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -15370,19 +6934,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 = "Metadata for a proposal or a referendum has been cleared."] - pub struct MetadataCleared { - pub owner: metadata_cleared::Owner, - pub hash: metadata_cleared::Hash, + #[doc = "Some amount was burned from an account."] + pub struct Burned { + pub who: burned::Who, + pub amount: burned::Amount, } - pub mod metadata_cleared { + pub mod burned { use super::runtime_types; - pub type Owner = runtime_types::pallet_democracy::types::MetadataOwner; - pub type Hash = ::subxt::utils::H256; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } - impl ::subxt::events::StaticEvent for MetadataCleared { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "MetadataCleared"; + impl ::subxt::events::StaticEvent for Burned { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Burned"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -15394,1014 +6958,44 @@ pub mod 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 has been transferred to new owner."] - pub struct MetadataTransferred { - pub prev_owner: metadata_transferred::PrevOwner, - pub owner: metadata_transferred::Owner, - pub hash: metadata_transferred::Hash, + #[doc = "Some amount was suspended from an account (it can be restored later)."] + pub struct Suspended { + pub who: suspended::Who, + pub amount: suspended::Amount, } - pub mod metadata_transferred { + pub mod suspended { use super::runtime_types; - pub type PrevOwner = runtime_types::pallet_democracy::types::MetadataOwner; - pub type Owner = runtime_types::pallet_democracy::types::MetadataOwner; - pub type Hash = ::subxt::utils::H256; - } - impl ::subxt::events::StaticEvent for MetadataTransferred { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "MetadataTransferred"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The number of (public) proposals that have been made so far."] - pub fn public_prop_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( - "Democracy", - "PublicPropCount", - 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, - ], - ) - } - #[doc = " The public proposals. Unsorted. The second item is the proposal."] - pub fn public_props( - &self, - ) -> ::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, - )>, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Democracy", - "PublicProps", - vec![], - [ - 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, - ], - ) - } - #[doc = " Those who have locked a deposit."] - #[doc = ""] - #[doc = " TWOX-NOTE: Safe, as increasing integer keys are safe."] - pub fn deposit_of_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ( - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::subxt::utils::AccountId32, - >, - ::core::primitive::u128, - ), - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Democracy", - "DepositOf", - 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, - ], - ) - } - #[doc = " Those who have locked a deposit."] - #[doc = ""] - #[doc = " TWOX-NOTE: Safe, as increasing integer keys are safe."] - pub fn deposit_of( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ( - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::subxt::utils::AccountId32, - >, - ::core::primitive::u128, - ), - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Democracy", - "DepositOf", - 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, - ], - ) - } - #[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( - "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::Address::new_static( - "Democracy", - "LowestUnbaked", - 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, - ], - ) - } - #[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( - &self, - ) -> ::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, - >, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Democracy", - "ReferendumInfoOf", - vec![], - [ - 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, - ], - ) - } - #[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( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::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, - >, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Democracy", - "ReferendumInfoOf", - 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, - ], - ) - } - #[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( - &self, - ) -> ::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, - > { - ::subxt::storage::address::Address::new_static( - "Democracy", - "VotingOf", - 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, - ], - ) - } - #[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( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, - ) -> ::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, - (), - > { - ::subxt::storage::address::Address::new_static( - "Democracy", - "VotingOf", - 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, - ], - ) - } - #[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( - &self, - ) -> ::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, - ), - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Democracy", - "NextExternal", - vec![], - [ - 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, - ], - ) - } - #[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( - &self, - ) -> ::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, - > { - ::subxt::storage::address::Address::new_static( - "Democracy", - "Blacklist", - 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, - ], - ) - } - #[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( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, - ) -> ::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, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Democracy", - "Blacklist", - 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, - ], - ) - } - #[doc = " Record of all proposals that have been subject to emergency cancellation."] - pub fn cancellations( - &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, - ) -> ::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![::subxt::storage::address::make_static_storage_map_key( - _0.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, - ], - ) - } - #[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( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::subxt::utils::H256, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Democracy", - "MetadataOf", - 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, - ], - ) - } - #[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( - &self, - _0: impl ::std::borrow::Borrow< - runtime_types::pallet_democracy::types::MetadataOwner, - >, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::subxt::utils::H256, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Democracy", - "MetadataOf", - 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 type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } - } - 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, - ], - ) - } + impl ::subxt::events::StaticEvent for Suspended { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Suspended"; } - } - } - pub mod council { - use super::root_mod; - use super::runtime_types; - #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_collective::pallet::Error; - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::pallet_collective::pallet::Call; - pub mod calls { - use super::root_mod; - 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 = "Some amount was restored into an account."] + pub struct Restored { + pub who: restored::Who, + pub amount: restored::Amount, + } + pub mod restored { 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 = "See [`Pallet::set_members`]."] - pub struct SetMembers { - pub new_members: set_members::NewMembers, - pub prime: set_members::Prime, - pub old_count: set_members::OldCount, - } - pub mod set_members { - use super::runtime_types; - pub type NewMembers = ::std::vec::Vec<::subxt::utils::AccountId32>; - pub type Prime = ::core::option::Option<::subxt::utils::AccountId32>; - pub type OldCount = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for SetMembers { - const PALLET: &'static str = "Council"; - const CALL: &'static str = "set_members"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 = "See [`Pallet::execute`]."] - pub struct Execute { - pub proposal: ::std::boxed::Box, - #[codec(compact)] - pub length_bound: execute::LengthBound, - } - pub mod execute { - use super::runtime_types; - pub type Proposal = runtime_types::polkadot_runtime::RuntimeCall; - pub type LengthBound = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for Execute { - const PALLET: &'static str = "Council"; - const CALL: &'static str = "execute"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 = "See [`Pallet::propose`]."] - pub struct Propose { - #[codec(compact)] - pub threshold: propose::Threshold, - pub proposal: ::std::boxed::Box, - #[codec(compact)] - pub length_bound: propose::LengthBound, - } - pub mod propose { - use super::runtime_types; - pub type Threshold = ::core::primitive::u32; - pub type Proposal = runtime_types::polkadot_runtime::RuntimeCall; - pub type LengthBound = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for Propose { - const PALLET: &'static str = "Council"; - 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")] - #[doc = "See [`Pallet::vote`]."] - pub struct Vote { - pub proposal: vote::Proposal, - #[codec(compact)] - pub index: vote::Index, - pub approve: vote::Approve, - } - pub mod vote { - use super::runtime_types; - pub type Proposal = ::subxt::utils::H256; - pub type Index = ::core::primitive::u32; - pub type Approve = ::core::primitive::bool; - } - impl ::subxt::blocks::StaticExtrinsic for Vote { - const PALLET: &'static str = "Council"; - const CALL: &'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 = "See [`Pallet::disapprove_proposal`]."] - pub struct DisapproveProposal { - pub proposal_hash: disapprove_proposal::ProposalHash, - } - pub mod disapprove_proposal { - use super::runtime_types; - pub type ProposalHash = ::subxt::utils::H256; - } - impl ::subxt::blocks::StaticExtrinsic for DisapproveProposal { - const PALLET: &'static str = "Council"; - const CALL: &'static str = "disapprove_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")] - #[doc = "See [`Pallet::close`]."] - pub struct Close { - pub proposal_hash: close::ProposalHash, - #[codec(compact)] - pub index: close::Index, - pub proposal_weight_bound: close::ProposalWeightBound, - #[codec(compact)] - pub length_bound: close::LengthBound, - } - pub mod close { - use super::runtime_types; - pub type ProposalHash = ::subxt::utils::H256; - pub type Index = ::core::primitive::u32; - pub type ProposalWeightBound = runtime_types::sp_weights::weight_v2::Weight; - pub type LengthBound = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for Close { - const PALLET: &'static str = "Council"; - const CALL: &'static str = "close"; - } + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::set_members`]."] - pub fn set_members( - &self, - new_members: types::set_members::NewMembers, - prime: types::set_members::Prime, - old_count: types::set_members::OldCount, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Council", - "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( - &self, - proposal: types::execute::Proposal, - length_bound: types::execute::LengthBound, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Council", - "execute", - types::Execute { - proposal: ::std::boxed::Box::new(proposal), - length_bound, - }, - [ - 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, - ], - ) - } - #[doc = "See [`Pallet::propose`]."] - pub fn propose( - &self, - threshold: types::propose::Threshold, - proposal: types::propose::Proposal, - length_bound: types::propose::LengthBound, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Council", - "propose", - types::Propose { - threshold, - proposal: ::std::boxed::Box::new(proposal), - length_bound, - }, - [ - 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, - ], - ) - } - #[doc = "See [`Pallet::vote`]."] - pub fn vote( - &self, - proposal: types::vote::Proposal, - index: types::vote::Index, - approve: types::vote::Approve, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Council", - "vote", - types::Vote { - proposal, - index, - approve, - }, - [ - 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, - ], - ) - } - #[doc = "See [`Pallet::disapprove_proposal`]."] - pub fn disapprove_proposal( - &self, - proposal_hash: types::disapprove_proposal::ProposalHash, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Council", - "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: types::close::ProposalHash, - index: types::close::Index, - proposal_weight_bound: types::close::ProposalWeightBound, - length_bound: types::close::LengthBound, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Council", - "close", - types::Close { - proposal_hash, - index, - proposal_weight_bound, - length_bound, - }, - [ - 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, - ], - ) - } + impl ::subxt::events::StaticEvent for Restored { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Restored"; } - } - #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_collective::pallet::Event; - pub mod events { - use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -16412,24 +7006,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 motion (given hash) has been proposed (by given account) with a threshold (given"] - #[doc = "`MemberCount`)."] - pub struct Proposed { - pub account: proposed::Account, - pub proposal_index: proposed::ProposalIndex, - pub proposal_hash: proposed::ProposalHash, - pub threshold: proposed::Threshold, + #[doc = "An account was upgraded."] + pub struct Upgraded { + pub who: upgraded::Who, } - pub mod proposed { + pub mod upgraded { use super::runtime_types; - pub type Account = ::subxt::utils::AccountId32; - pub type ProposalIndex = ::core::primitive::u32; - pub type ProposalHash = ::subxt::utils::H256; - pub type Threshold = ::core::primitive::u32; + pub type Who = ::subxt::utils::AccountId32; } - impl ::subxt::events::StaticEvent for Proposed { - const PALLET: &'static str = "Council"; - const EVENT: &'static str = "Proposed"; + impl ::subxt::events::StaticEvent for Upgraded { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Upgraded"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16441,26 +7028,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 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: voted::Account, - pub proposal_hash: voted::ProposalHash, - pub voted: voted::Voted, - pub yes: voted::Yes, - pub no: voted::No, + #[doc = "Total issuance was increased by `amount`, creating a credit to be balanced."] + pub struct Issued { + pub amount: issued::Amount, } - pub mod voted { + pub mod issued { use super::runtime_types; - pub type Account = ::subxt::utils::AccountId32; - pub type ProposalHash = ::subxt::utils::H256; - pub type Voted = ::core::primitive::bool; - pub type Yes = ::core::primitive::u32; - pub type No = ::core::primitive::u32; + pub type 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 Issued { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Issued"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16472,17 +7050,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 motion was approved by the required threshold."] - pub struct Approved { - pub proposal_hash: approved::ProposalHash, + #[doc = "Total issuance was decreased by `amount`, creating a debt to be balanced."] + pub struct Rescinded { + pub amount: rescinded::Amount, } - pub mod approved { + pub mod rescinded { use super::runtime_types; - pub type ProposalHash = ::subxt::utils::H256; + pub type Amount = ::core::primitive::u128; } - impl ::subxt::events::StaticEvent for Approved { - const PALLET: &'static str = "Council"; - const EVENT: &'static str = "Approved"; + impl ::subxt::events::StaticEvent for Rescinded { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Rescinded"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16494,17 +7072,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 motion was not approved by the required threshold."] - pub struct Disapproved { - pub proposal_hash: disapproved::ProposalHash, + #[doc = "Some balance was locked."] + pub struct Locked { + pub who: locked::Who, + pub amount: locked::Amount, } - pub mod disapproved { + pub mod locked { use super::runtime_types; - pub type ProposalHash = ::subxt::utils::H256; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } - impl ::subxt::events::StaticEvent for Disapproved { - const PALLET: &'static str = "Council"; - const EVENT: &'static str = "Disapproved"; + impl ::subxt::events::StaticEvent for Locked { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Locked"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16516,20 +7096,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 motion was executed; result will be `Ok` if it returned without error."] - pub struct Executed { - pub proposal_hash: executed::ProposalHash, - pub result: executed::Result, + #[doc = "Some balance was unlocked."] + pub struct Unlocked { + pub who: unlocked::Who, + pub amount: unlocked::Amount, } - pub mod executed { + pub mod unlocked { use super::runtime_types; - pub type ProposalHash = ::subxt::utils::H256; - pub type Result = - ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } - impl ::subxt::events::StaticEvent for Executed { - const PALLET: &'static str = "Council"; - const EVENT: &'static str = "Executed"; + impl ::subxt::events::StaticEvent for Unlocked { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Unlocked"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16541,20 +7120,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 single member did some action; result will be `Ok` if it returned without error."] - pub struct MemberExecuted { - pub proposal_hash: member_executed::ProposalHash, - pub result: member_executed::Result, + #[doc = "Some balance was frozen."] + pub struct Frozen { + pub who: frozen::Who, + pub amount: frozen::Amount, } - pub mod member_executed { + pub mod frozen { use super::runtime_types; - pub type ProposalHash = ::subxt::utils::H256; - pub type Result = - ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } - impl ::subxt::events::StaticEvent for MemberExecuted { - const PALLET: &'static str = "Council"; - const EVENT: &'static str = "MemberExecuted"; + impl ::subxt::events::StaticEvent for Frozen { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Frozen"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16566,208 +7144,397 @@ pub mod 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: closed::ProposalHash, - pub yes: closed::Yes, - pub no: closed::No, + #[doc = "Some balance was thawed."] + pub struct Thawed { + pub who: thawed::Who, + pub amount: thawed::Amount, } - pub mod closed { + pub mod thawed { use super::runtime_types; - pub type ProposalHash = ::subxt::utils::H256; - pub type Yes = ::core::primitive::u32; - pub type No = ::core::primitive::u32; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } - impl ::subxt::events::StaticEvent for Closed { - const PALLET: &'static str = "Council"; - const EVENT: &'static str = "Closed"; + impl ::subxt::events::StaticEvent for Thawed { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Thawed"; } } pub mod storage { use super::runtime_types; + pub mod 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 type Param0 = ::subxt::utils::AccountId32; + } + 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 type Param0 = ::subxt::utils::AccountId32; + } + 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 type Param0 = ::subxt::utils::AccountId32; + } + 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 type Param0 = ::subxt::utils::AccountId32; + } + 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 type Param0 = ::subxt::utils::AccountId32; + } + } pub struct StorageApi; impl StorageApi { - #[doc = " The hashes of the active proposals."] - pub fn proposals( + #[doc = " The total units issued in the system."] + pub fn total_issuance( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::subxt::utils::H256, - >, + types::total_issuance::TotalIssuance, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( - "Council", - "Proposals", + "Balances", + "TotalIssuance", + vec![], + [ + 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 = " The total units of outstanding deactivated balance in the system."] + pub fn inactive_issuance( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::inactive_issuance::InactiveIssuance, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Balances", + "InactiveIssuance", + vec![], + [ + 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 = " 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_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::account::Account, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Balances", + "Account", + vec![], + [ + 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 = " 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::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::account::Account, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Balances", + "Account", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 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 = " 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, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::locks::Locks, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Balances", + "Locks", 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, + 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 = " Actual proposal for a given hash, if it's current."] - pub fn proposal_of_iter( + #[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::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_runtime::RuntimeCall, + types::locks::Locks, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, (), + > { + ::subxt::storage::address::Address::new_static( + "Balances", + "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, + types::reserves::Reserves, (), ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Council", - "ProposalOf", + "Balances", + "Reserves", 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, + 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 = " Actual proposal for a given hash, if it's current."] - pub fn proposal_of( + #[doc = " Named reserves on some account balances."] + pub fn reserves( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_runtime::RuntimeCall, + types::reserves::Reserves, + ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, - (), (), > { ::subxt::storage::address::Address::new_static( - "Council", - "ProposalOf", + "Balances", + "Reserves", 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, + 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 = " Votes on a given proposal, if it is ongoing."] - pub fn voting_iter( + #[doc = " Holds on account balances."] + pub fn holds_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_collective::Votes< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - (), + types::holds::Holds, (), ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Council", - "Voting", + "Balances", + "Holds", 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, + 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 = " Votes on a given proposal, if it is ongoing."] - pub fn voting( + #[doc = " Holds on account balances."] + pub fn holds( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_collective::Votes< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, + types::holds::Holds, + ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, - (), (), > { ::subxt::storage::address::Address::new_static( - "Council", - "Voting", + "Balances", + "Holds", 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, + 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 = " Proposals so far."] - pub fn proposal_count( + #[doc = " Freeze locks on account balances."] + pub fn freezes_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, + types::freezes::Freezes, (), - > { - ::subxt::storage::address::Address::new_static( - "Council", - "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, - ], - ) - } - #[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( - "Council", - "Members", + "Balances", + "Freezes", 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, + 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 = " The prime member that helps determine the default vote behavior in case of absentations."] - pub fn prime( + #[doc = " Freeze locks on account balances."] + pub fn freezes( &self, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::subxt::utils::AccountId32, + types::freezes::Freezes, + ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, - (), (), > { ::subxt::storage::address::Address::new_static( - "Council", - "Prime", - vec![], + "Balances", + "Freezes", + 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, + 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, ], ) } @@ -16777,332 +7544,88 @@ 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 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 - { + ) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( - "Council", - "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 technical_committee { - use super::root_mod; - use super::runtime_types; - #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_collective::pallet::Error2; - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::pallet_collective::pallet::Call2; - 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")] - #[doc = "See [`Pallet::set_members`]."] - pub struct SetMembers { - pub new_members: set_members::NewMembers, - pub prime: set_members::Prime, - pub old_count: set_members::OldCount, - } - pub mod set_members { - use super::runtime_types; - pub type NewMembers = ::std::vec::Vec<::subxt::utils::AccountId32>; - pub type Prime = ::core::option::Option<::subxt::utils::AccountId32>; - pub type OldCount = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for SetMembers { - const PALLET: &'static str = "TechnicalCommittee"; - const CALL: &'static str = "set_members"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 = "See [`Pallet::execute`]."] - pub struct Execute { - pub proposal: ::std::boxed::Box, - #[codec(compact)] - pub length_bound: execute::LengthBound, - } - pub mod execute { - use super::runtime_types; - pub type Proposal = runtime_types::polkadot_runtime::RuntimeCall; - pub type LengthBound = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for Execute { - const PALLET: &'static str = "TechnicalCommittee"; - const CALL: &'static str = "execute"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 = "See [`Pallet::propose`]."] - pub struct Propose { - #[codec(compact)] - pub threshold: propose::Threshold, - pub proposal: ::std::boxed::Box, - #[codec(compact)] - pub length_bound: propose::LengthBound, - } - pub mod propose { - use super::runtime_types; - pub type Threshold = ::core::primitive::u32; - pub type Proposal = runtime_types::polkadot_runtime::RuntimeCall; - pub type LengthBound = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for Propose { - const PALLET: &'static str = "TechnicalCommittee"; - 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")] - #[doc = "See [`Pallet::vote`]."] - pub struct Vote { - pub proposal: vote::Proposal, - #[codec(compact)] - pub index: vote::Index, - pub approve: vote::Approve, - } - pub mod vote { - use super::runtime_types; - pub type Proposal = ::subxt::utils::H256; - pub type Index = ::core::primitive::u32; - pub type Approve = ::core::primitive::bool; - } - impl ::subxt::blocks::StaticExtrinsic for Vote { - const PALLET: &'static str = "TechnicalCommittee"; - const CALL: &'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 = "See [`Pallet::disapprove_proposal`]."] - pub struct DisapproveProposal { - pub proposal_hash: disapprove_proposal::ProposalHash, - } - pub mod disapprove_proposal { - use super::runtime_types; - pub type ProposalHash = ::subxt::utils::H256; - } - impl ::subxt::blocks::StaticExtrinsic for DisapproveProposal { - const PALLET: &'static str = "TechnicalCommittee"; - const CALL: &'static str = "disapprove_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")] - #[doc = "See [`Pallet::close`]."] - pub struct Close { - pub proposal_hash: close::ProposalHash, - #[codec(compact)] - pub index: close::Index, - pub proposal_weight_bound: close::ProposalWeightBound, - #[codec(compact)] - pub length_bound: close::LengthBound, - } - pub mod close { - use super::runtime_types; - pub type ProposalHash = ::subxt::utils::H256; - pub type Index = ::core::primitive::u32; - pub type ProposalWeightBound = runtime_types::sp_weights::weight_v2::Weight; - pub type LengthBound = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for Close { - const PALLET: &'static str = "TechnicalCommittee"; - const CALL: &'static str = "close"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::set_members`]."] - pub fn set_members( - &self, - new_members: types::set_members::NewMembers, - prime: types::set_members::Prime, - old_count: types::set_members::OldCount, - ) -> ::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( - &self, - proposal: types::execute::Proposal, - length_bound: types::execute::LengthBound, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "TechnicalCommittee", - "execute", - types::Execute { - proposal: ::std::boxed::Box::new(proposal), - length_bound, - }, + "Balances", + "ExistentialDeposit", [ - 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, + 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 = "See [`Pallet::propose`]."] - pub fn propose( - &self, - threshold: types::propose::Threshold, - proposal: types::propose::Proposal, - length_bound: types::propose::LengthBound, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "TechnicalCommittee", - "propose", - types::Propose { - threshold, - proposal: ::std::boxed::Box::new(proposal), - length_bound, - }, + #[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( + "Balances", + "MaxLocks", [ - 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, + 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 = "See [`Pallet::vote`]."] - pub fn vote( - &self, - proposal: types::vote::Proposal, - index: types::vote::Index, - approve: types::vote::Approve, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "TechnicalCommittee", - "vote", - types::Vote { - proposal, - index, - approve, - }, + #[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( + "Balances", + "MaxReserves", [ - 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, + 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 = "See [`Pallet::disapprove_proposal`]."] - pub fn disapprove_proposal( - &self, - proposal_hash: types::disapprove_proposal::ProposalHash, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "TechnicalCommittee", - "disapprove_proposal", - types::DisapproveProposal { proposal_hash }, + #[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( + "Balances", + "MaxHolds", [ - 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, + 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 = "See [`Pallet::close`]."] - pub fn close( - &self, - proposal_hash: types::close::ProposalHash, - index: types::close::Index, - proposal_weight_bound: types::close::ProposalWeightBound, - length_bound: types::close::LengthBound, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "TechnicalCommittee", - "close", - types::Close { - proposal_hash, - index, - proposal_weight_bound, - length_bound, - }, + #[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( + "Balances", + "MaxFreezes", [ - 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, + 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 transaction_payment { + use super::root_mod; + use super::runtime_types; #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_collective::pallet::Event2; + pub type Event = runtime_types::pallet_transaction_payment::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -17115,150 +7638,172 @@ pub mod 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: proposed::Account, - pub proposal_index: proposed::ProposalIndex, - pub proposal_hash: proposed::ProposalHash, - pub threshold: proposed::Threshold, - } - pub mod proposed { - use super::runtime_types; - pub type Account = ::subxt::utils::AccountId32; - pub type ProposalIndex = ::core::primitive::u32; - pub type ProposalHash = ::subxt::utils::H256; - pub type 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: voted::Account, - pub proposal_hash: voted::ProposalHash, - pub voted: voted::Voted, - pub yes: voted::Yes, - pub no: voted::No, - } - pub mod voted { - use super::runtime_types; - pub type Account = ::subxt::utils::AccountId32; - pub type ProposalHash = ::subxt::utils::H256; - pub type Voted = ::core::primitive::bool; - pub type Yes = ::core::primitive::u32; - pub type 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: approved::ProposalHash, - } - pub mod approved { - use super::runtime_types; - pub type ProposalHash = ::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: disapproved::ProposalHash, + #[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: transaction_fee_paid::Who, + pub actual_fee: transaction_fee_paid::ActualFee, + pub tip: transaction_fee_paid::Tip, } - pub mod disapproved { + pub mod transaction_fee_paid { use super::runtime_types; - pub type ProposalHash = ::subxt::utils::H256; - } - impl ::subxt::events::StaticEvent for Disapproved { - const PALLET: &'static str = "TechnicalCommittee"; - const EVENT: &'static str = "Disapproved"; + pub type Who = ::subxt::utils::AccountId32; + pub type ActualFee = ::core::primitive::u128; + pub type Tip = ::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")] - #[doc = "A motion was executed; result will be `Ok` if it returned without error."] - pub struct Executed { - pub proposal_hash: executed::ProposalHash, - pub result: executed::Result, + impl ::subxt::events::StaticEvent for TransactionFeePaid { + const PALLET: &'static str = "TransactionPayment"; + const EVENT: &'static str = "TransactionFeePaid"; } - pub mod executed { + } + pub mod storage { + use super::runtime_types; + pub mod types { use super::runtime_types; - pub type ProposalHash = ::subxt::utils::H256; - pub type Result = - ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>; + 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; + } } - impl ::subxt::events::StaticEvent for Executed { - const PALLET: &'static str = "TechnicalCommittee"; - const EVENT: &'static str = "Executed"; + pub struct StorageApi; + impl StorageApi { + pub fn next_fee_multiplier( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::next_fee_multiplier::NextFeeMultiplier, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "TransactionPayment", + "NextFeeMultiplier", + vec![], + [ + 247u8, 39u8, 81u8, 170u8, 225u8, 226u8, 82u8, 147u8, 34u8, 113u8, + 147u8, 213u8, 59u8, 80u8, 139u8, 35u8, 36u8, 196u8, 152u8, 19u8, 9u8, + 159u8, 176u8, 79u8, 249u8, 201u8, 170u8, 1u8, 129u8, 79u8, 146u8, + 197u8, + ], + ) + } + pub fn storage_version( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::storage_version::StorageVersion, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "TransactionPayment", + "StorageVersion", + vec![], + [ + 105u8, 243u8, 158u8, 241u8, 159u8, 231u8, 253u8, 6u8, 4u8, 32u8, 85u8, + 178u8, 126u8, 31u8, 203u8, 134u8, 154u8, 38u8, 122u8, 155u8, 150u8, + 251u8, 174u8, 15u8, 74u8, 134u8, 216u8, 244u8, 168u8, 175u8, 158u8, + 144u8, + ], + ) + } } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 single member did some action; result will be `Ok` if it returned without error."] - pub struct MemberExecuted { - pub proposal_hash: member_executed::ProposalHash, - pub result: member_executed::Result, + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " A fee multiplier for `Operational` extrinsics to compute \"virtual tip\" to boost their"] + #[doc = " `priority`"] + #[doc = ""] + #[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."] + #[doc = ""] + #[doc = " ```rust,ignore"] + #[doc = " // For `Normal`"] + #[doc = " let priority = priority_calc(tip);"] + #[doc = ""] + #[doc = " // For `Operational`"] + #[doc = " let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;"] + #[doc = " let priority = priority_calc(tip + virtual_tip);"] + #[doc = " ```"] + #[doc = ""] + #[doc = " Note that since we use `final_fee` the multiplier applies also to the regular `tip`"] + #[doc = " sent with the transaction. So, not only does the transaction get a priority bump based"] + #[doc = " on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`"] + #[doc = " transactions."] + pub fn operational_fee_multiplier( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u8> { + ::subxt::constants::Address::new_static( + "TransactionPayment", + "OperationalFeeMultiplier", + [ + 141u8, 130u8, 11u8, 35u8, 226u8, 114u8, 92u8, 179u8, 168u8, 110u8, + 28u8, 91u8, 221u8, 64u8, 4u8, 148u8, 201u8, 193u8, 185u8, 66u8, 226u8, + 114u8, 97u8, 79u8, 62u8, 212u8, 202u8, 114u8, 237u8, 228u8, 183u8, + 165u8, + ], + ) + } } - pub mod member_executed { + } + } + pub mod authorship { + use super::root_mod; + use super::runtime_types; + pub mod storage { + use super::runtime_types; + pub mod types { use super::runtime_types; - pub type ProposalHash = ::subxt::utils::H256; - pub type Result = - ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>; + pub mod author { + use super::runtime_types; + pub type Author = ::subxt::utils::AccountId32; + } } - impl ::subxt::events::StaticEvent for MemberExecuted { - const PALLET: &'static str = "TechnicalCommittee"; - const EVENT: &'static str = "MemberExecuted"; + pub struct StorageApi; + impl StorageApi { + #[doc = " Author of current block."] + pub fn author( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::author::Author, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Authorship", + "Author", + vec![], + [ + 247u8, 192u8, 118u8, 227u8, 47u8, 20u8, 203u8, 199u8, 216u8, 87u8, + 220u8, 50u8, 166u8, 61u8, 168u8, 213u8, 253u8, 62u8, 202u8, 199u8, + 61u8, 192u8, 237u8, 53u8, 22u8, 148u8, 164u8, 245u8, 99u8, 24u8, 146u8, + 18u8, + ], + ) + } } + } + } + pub mod offences { + use super::root_mod; + use super::runtime_types; + #[doc = "Events type."] + pub type Event = runtime_types::pallet_offences::pallet::Event; + pub mod events { + use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -17269,243 +7814,179 @@ pub mod 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: closed::ProposalHash, - pub yes: closed::Yes, - pub no: closed::No, + #[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: offence::Kind, + pub timeslot: offence::Timeslot, } - pub mod closed { + pub mod offence { use super::runtime_types; - pub type ProposalHash = ::subxt::utils::H256; - pub type Yes = ::core::primitive::u32; - pub type No = ::core::primitive::u32; + pub type Kind = [::core::primitive::u8; 16usize]; + pub type Timeslot = ::std::vec::Vec<::core::primitive::u8>; } - impl ::subxt::events::StaticEvent for Closed { - const PALLET: &'static str = "TechnicalCommittee"; - const EVENT: &'static str = "Closed"; + 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 types { + use super::runtime_types; + pub mod reports { + use super::runtime_types; + pub type Reports = runtime_types::sp_staking::offence::OffenceDetails< + ::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; 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( + #[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::polkadot_runtime::RuntimeCall, + types::reports::Reports, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "TechnicalCommittee", - "ProposalOf", + "Offences", + "Reports", 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, + 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, ], ) } - #[doc = " Actual proposal for a given hash, if it's current."] - pub fn proposal_of( + #[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, - runtime_types::polkadot_runtime::RuntimeCall, + types::reports::Reports, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( - "TechnicalCommittee", - "ProposalOf", + "Offences", + "Reports", 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, + 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, ], ) } - #[doc = " Votes on a given proposal, if it is ongoing."] - pub fn voting_iter( + #[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, - runtime_types::pallet_collective::Votes< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - (), + types::concurrent_reports_index::ConcurrentReportsIndex, (), ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "TechnicalCommittee", - "Voting", + "Offences", + "ConcurrentReportsIndex", 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, + 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 = " Votes on a given proposal, if it is ongoing."] - pub fn voting( + #[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<::subxt::utils::H256>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_collective::Votes< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ::subxt::storage::address::Yes, - (), + types::concurrent_reports_index::ConcurrentReportsIndex, (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "TechnicalCommittee", - "Voting", + "Offences", + "ConcurrentReportsIndex", 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, - ], - ) - } - #[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, + 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 = " The current members of the collective. This is stored sorted (just by value)."] - pub fn members( + #[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, + _1: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<::subxt::utils::AccountId32>, - ::subxt::storage::address::Yes, + types::concurrent_reports_index::ConcurrentReportsIndex, ::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, - ], - ) - } - #[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, + "Offences", + "ConcurrentReportsIndex", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), ], - ) - } - } - } - 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, + 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, ], ) } } } } - pub mod phragmen_election { + 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_elections_phragmen::pallet::Error; + 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_elections_phragmen::pallet::Call; + pub type Call = runtime_types::pallet_beefy::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; @@ -17522,81 +8003,25 @@ pub mod 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 = "See [`Pallet::vote`]."] - pub struct Vote { - pub votes: vote::Votes, - #[codec(compact)] - pub value: vote::Value, - } - pub mod vote { - use super::runtime_types; - pub type Votes = ::std::vec::Vec<::subxt::utils::AccountId32>; - pub type Value = ::core::primitive::u128; - } - impl ::subxt::blocks::StaticExtrinsic for Vote { - const PALLET: &'static str = "PhragmenElection"; - const CALL: &'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 = "See [`Pallet::remove_voter`]."] - pub struct RemoveVoter; - impl ::subxt::blocks::StaticExtrinsic for RemoveVoter { - const PALLET: &'static str = "PhragmenElection"; - const CALL: &'static str = "remove_voter"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 = "See [`Pallet::submit_candidacy`]."] - pub struct SubmitCandidacy { - #[codec(compact)] - pub candidate_count: submit_candidacy::CandidateCount, - } - pub mod submit_candidacy { - use super::runtime_types; - pub type CandidateCount = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for SubmitCandidacy { - const PALLET: &'static str = "PhragmenElection"; - const CALL: &'static str = "submit_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")] - #[doc = "See [`Pallet::renounce_candidacy`]."] - pub struct RenounceCandidacy { - pub renouncing: renounce_candidacy::Renouncing, + #[doc = "See [`Pallet::report_equivocation`]."] + pub struct ReportEquivocation { + pub equivocation_proof: + ::std::boxed::Box, + pub key_owner_proof: report_equivocation::KeyOwnerProof, } - pub mod renounce_candidacy { + pub mod report_equivocation { use super::runtime_types; - pub type Renouncing = runtime_types::pallet_elections_phragmen::Renouncing; + 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 RenounceCandidacy { - const PALLET: &'static str = "PhragmenElection"; - const CALL: &'static str = "renounce_candidacy"; + impl ::subxt::blocks::StaticExtrinsic for ReportEquivocation { + const PALLET: &'static str = "Beefy"; + const CALL: &'static str = "report_equivocation"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -17608,21 +8033,25 @@ pub mod 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 = "See [`Pallet::remove_member`]."] - pub struct RemoveMember { - pub who: remove_member::Who, - pub slash_bond: remove_member::SlashBond, - pub rerun_election: remove_member::RerunElection, + #[doc = "See [`Pallet::report_equivocation_unsigned`]."] + pub struct ReportEquivocationUnsigned { + pub equivocation_proof: + ::std::boxed::Box, + pub key_owner_proof: report_equivocation_unsigned::KeyOwnerProof, } - pub mod remove_member { + pub mod report_equivocation_unsigned { use super::runtime_types; - pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type SlashBond = ::core::primitive::bool; - pub type RerunElection = ::core::primitive::bool; + 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 RemoveMember { - const PALLET: &'static str = "PhragmenElection"; - const CALL: &'static str = "remove_member"; + impl ::subxt::blocks::StaticExtrinsic for ReportEquivocationUnsigned { + const PALLET: &'static str = "Beefy"; + const CALL: &'static str = "report_equivocation_unsigned"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -17634,454 +8063,262 @@ pub mod 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 = "See [`Pallet::clean_defunct_voters`]."] - pub struct CleanDefunctVoters { - pub num_voters: clean_defunct_voters::NumVoters, - pub num_defunct: clean_defunct_voters::NumDefunct, + #[doc = "See [`Pallet::set_new_genesis`]."] + pub struct SetNewGenesis { + pub delay_in_blocks: set_new_genesis::DelayInBlocks, } - pub mod clean_defunct_voters { + pub mod set_new_genesis { use super::runtime_types; - pub type NumVoters = ::core::primitive::u32; - pub type NumDefunct = ::core::primitive::u32; + pub type DelayInBlocks = ::core::primitive::u32; } - impl ::subxt::blocks::StaticExtrinsic for CleanDefunctVoters { - const PALLET: &'static str = "PhragmenElection"; - const CALL: &'static str = "clean_defunct_voters"; + 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::vote`]."] - pub fn vote( - &self, - votes: types::vote::Votes, - value: types::vote::Value, - ) -> ::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 { - ::subxt::tx::Payload::new_static( - "PhragmenElection", - "remove_voter", - types::RemoveVoter {}, - [ - 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, - ], - ) - } - #[doc = "See [`Pallet::submit_candidacy`]."] - pub fn submit_candidacy( - &self, - candidate_count: types::submit_candidacy::CandidateCount, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "PhragmenElection", - "submit_candidacy", - types::SubmitCandidacy { candidate_count }, - [ - 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, - ], - ) - } - #[doc = "See [`Pallet::renounce_candidacy`]."] - pub fn renounce_candidacy( + #[doc = "See [`Pallet::report_equivocation`]."] + pub fn report_equivocation( &self, - renouncing: types::renounce_candidacy::Renouncing, - ) -> ::subxt::tx::Payload { + equivocation_proof: types::report_equivocation::EquivocationProof, + key_owner_proof: types::report_equivocation::KeyOwnerProof, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "PhragmenElection", - "renounce_candidacy", - types::RenounceCandidacy { renouncing }, + "Beefy", + "report_equivocation", + types::ReportEquivocation { + equivocation_proof: ::std::boxed::Box::new(equivocation_proof), + key_owner_proof, + }, [ - 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, + 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::remove_member`]."] - pub fn remove_member( + #[doc = "See [`Pallet::report_equivocation_unsigned`]."] + pub fn report_equivocation_unsigned( &self, - who: types::remove_member::Who, - slash_bond: types::remove_member::SlashBond, - rerun_election: types::remove_member::RerunElection, - ) -> ::subxt::tx::Payload { + equivocation_proof: types::report_equivocation_unsigned::EquivocationProof, + key_owner_proof: types::report_equivocation_unsigned::KeyOwnerProof, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "PhragmenElection", - "remove_member", - types::RemoveMember { - who, - slash_bond, - rerun_election, + "Beefy", + "report_equivocation_unsigned", + types::ReportEquivocationUnsigned { + equivocation_proof: ::std::boxed::Box::new(equivocation_proof), + key_owner_proof, }, [ - 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, + 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::clean_defunct_voters`]."] - pub fn clean_defunct_voters( + #[doc = "See [`Pallet::set_new_genesis`]."] + pub fn set_new_genesis( &self, - num_voters: types::clean_defunct_voters::NumVoters, - num_defunct: types::clean_defunct_voters::NumDefunct, - ) -> ::subxt::tx::Payload { + delay_in_blocks: types::set_new_genesis::DelayInBlocks, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "PhragmenElection", - "clean_defunct_voters", - types::CleanDefunctVoters { - num_voters, - num_defunct, - }, + "Beefy", + "set_new_genesis", + types::SetNewGenesis { delay_in_blocks }, [ - 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, + 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 = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_elections_phragmen::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 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: new_term::NewMembers, - } - pub mod new_term { - use super::runtime_types; - pub type NewMembers = - ::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: member_kicked::Member, - } - pub mod member_kicked { - use super::runtime_types; - pub type 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: renounced::Candidate, - } - pub mod renounced { - use super::runtime_types; - pub type 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: candidate_slashed::Candidate, - pub amount: candidate_slashed::Amount, - } - pub mod candidate_slashed { - use super::runtime_types; - pub type Candidate = ::subxt::utils::AccountId32; - pub type 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: seat_holder_slashed::SeatHolder, - pub amount: seat_holder_slashed::Amount, - } - pub mod seat_holder_slashed { - use super::runtime_types; - pub type SeatHolder = ::subxt::utils::AccountId32; - pub type Amount = ::core::primitive::u128; - } - impl ::subxt::events::StaticEvent for SeatHolderSlashed { - const PALLET: &'static str = "PhragmenElection"; - const EVENT: &'static str = "SeatHolderSlashed"; - } - } pub mod storage { use super::runtime_types; + pub mod 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, + >; + } + pub mod validator_set_id { + use super::runtime_types; + pub type ValidatorSetId = ::core::primitive::u64; + } + 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, + >; + } + 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; + pub type GenesisBlock = ::core::option::Option<::core::primitive::u32>; + } + } pub struct StorageApi; impl StorageApi { - #[doc = " The current elected members."] - #[doc = ""] - #[doc = " Invariant: Always sorted based on account id."] - pub fn members( + #[doc = " The current authorities set"] + pub fn authorities( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec< - runtime_types::pallet_elections_phragmen::SeatHolder< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, - >, + types::authorities::Authorities, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( - "PhragmenElection", - "Members", + "Beefy", + "Authorities", vec![], [ - 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, + 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 = " 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( + #[doc = " The current validator set id"] + pub fn validator_set_id( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec< - runtime_types::pallet_elections_phragmen::SeatHolder< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, - >, + types::validator_set_id::ValidatorSetId, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( - "PhragmenElection", - "RunnersUp", + "Beefy", + "ValidatorSetId", 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, + 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 = " 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 = " 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, ::core::primitive::u128)>, + types::next_authorities::NextAuthorities, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( - "PhragmenElection", - "Candidates", + "Beefy", + "NextAuthorities", vec![], [ - 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, + 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 = " The total number of vote rounds that have happened, excluding the upcoming one."] - pub fn election_rounds( + #[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: `ValidatorSetId` is not under user control."] + pub fn set_id_session_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, + types::set_id_session::SetIdSession, + (), (), + ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "PhragmenElection", - "ElectionRounds", + "Beefy", + "SetIdSession", vec![], [ - 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, + 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 = " Votes and locked stake of a particular voter."] + #[doc = " A mapping from BEEFY set ID to the index of the *most recent* session for which its"] + #[doc = " members were responsible."] #[doc = ""] - #[doc = " TWOX-NOTE: SAFE as `AccountId` is a crypto hash."] - pub fn voting_iter( + #[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: `ValidatorSetId` is not under user control."] + pub fn set_id_session( &self, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_elections_phragmen::Voter< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, - (), - ::subxt::storage::address::Yes, + types::set_id_session::SetIdSession, ::subxt::storage::address::Yes, + (), + (), > { ::subxt::storage::address::Address::new_static( - "PhragmenElection", - "Voting", - vec![], + "Beefy", + "SetIdSession", + 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, + 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 = " Votes and locked stake of a particular voter."] - #[doc = ""] - #[doc = " TWOX-NOTE: SAFE as `AccountId` is a crypto hash."] - pub fn voting( + #[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, - _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, - >, + types::genesis_block::GenesisBlock, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( - "PhragmenElection", - "Voting", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], + "Beefy", + "GenesisBlock", + 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, + 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, ], ) } @@ -18091,102 +8328,13 @@ 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( - &self, - ) -> ::subxt::constants::Address<[::core::primitive::u8; 8usize]> { - ::subxt::constants::Address::new_static( - "PhragmenElection", - "PalletId", - [ - 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, - ], - ) - } - #[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, - ], - ) - } - #[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, - ], - ) - } - #[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, - ], - ) - } - #[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, - ], - ) - } - #[doc = " Number of runners_up to keep."] - pub fn desired_runners_up( + #[doc = " The maximum number of authorities that can be added."] + pub fn max_authorities( &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", + "Beefy", + "MaxAuthorities", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, @@ -18195,36 +8343,13 @@ pub mod api { ], ) } - #[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( + #[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( - "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", + "Beefy", + "MaxNominators", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, @@ -18233,469 +8358,227 @@ pub mod api { ], ) } - #[doc = " Maximum numbers of votes per voter."] + #[doc = " The maximum number of entries to keep in the set id to session index mapping."] #[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( + #[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::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u64> { ::subxt::constants::Address::new_static( - "PhragmenElection", - "MaxVotesPerVoter", + "Beefy", + "MaxSetIdSessionEntries", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, + 128u8, 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 technical_membership { + pub mod mmr { 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; + pub mod storage { 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")] - #[doc = "See [`Pallet::add_member`]."] - pub struct AddMember { - 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 = "TechnicalMembership"; - const CALL: &'static str = "add_member"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 = "See [`Pallet::remove_member`]."] - pub struct RemoveMember { - pub who: remove_member::Who, - } - pub mod remove_member { - use super::runtime_types; - pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - } - impl ::subxt::blocks::StaticExtrinsic for RemoveMember { - const PALLET: &'static str = "TechnicalMembership"; - const CALL: &'static str = "remove_member"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 = "See [`Pallet::swap_member`]."] - pub struct SwapMember { - pub remove: swap_member::Remove, - pub add: swap_member::Add, - } - pub mod swap_member { - use super::runtime_types; - pub type Remove = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Add = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - } - impl ::subxt::blocks::StaticExtrinsic for SwapMember { - const PALLET: &'static str = "TechnicalMembership"; - const CALL: &'static str = "swap_member"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 = "See [`Pallet::reset_members`]."] - pub struct ResetMembers { - pub members: reset_members::Members, - } - pub mod reset_members { + pub mod root_hash { use super::runtime_types; - pub type Members = ::std::vec::Vec<::subxt::utils::AccountId32>; - } - impl ::subxt::blocks::StaticExtrinsic for ResetMembers { - const PALLET: &'static str = "TechnicalMembership"; - const CALL: &'static str = "reset_members"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 = "See [`Pallet::change_key`]."] - pub struct ChangeKey { - pub new: change_key::New, + pub type RootHash = ::subxt::utils::H256; } - pub mod change_key { + pub mod number_of_leaves { use super::runtime_types; - pub type New = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - } - impl ::subxt::blocks::StaticExtrinsic for ChangeKey { - const PALLET: &'static str = "TechnicalMembership"; - const CALL: &'static str = "change_key"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 = "See [`Pallet::set_prime`]."] - pub struct SetPrime { - pub who: set_prime::Who, + pub type NumberOfLeaves = ::core::primitive::u64; } - pub mod set_prime { + pub mod nodes { use super::runtime_types; - pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - } - impl ::subxt::blocks::StaticExtrinsic for SetPrime { - const PALLET: &'static str = "TechnicalMembership"; - const CALL: &'static str = "set_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 = "See [`Pallet::clear_prime`]."] - pub struct ClearPrime; - impl ::subxt::blocks::StaticExtrinsic for ClearPrime { - const PALLET: &'static str = "TechnicalMembership"; - const CALL: &'static str = "clear_prime"; + pub type Nodes = ::subxt::utils::H256; + pub type Param0 = ::core::primitive::u64; } } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::add_member`]."] - pub fn add_member( - &self, - who: types::add_member::Who, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "TechnicalMembership", - "add_member", - types::AddMember { who }, - [ - 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::remove_member`]."] - pub fn remove_member( - &self, - who: types::remove_member::Who, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "TechnicalMembership", - "remove_member", - types::RemoveMember { who }, - [ - 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, - ], - ) - } - #[doc = "See [`Pallet::swap_member`]."] - pub fn swap_member( + pub struct StorageApi; + impl StorageApi { + #[doc = " Latest MMR Root hash."] + pub fn root_hash( &self, - remove: types::swap_member::Remove, - add: types::swap_member::Add, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "TechnicalMembership", - "swap_member", - types::SwapMember { remove, add }, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::root_hash::RootHash, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Mmr", + "RootHash", + vec![], [ - 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, + 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 = "See [`Pallet::reset_members`]."] - pub fn reset_members( + #[doc = " Current size of the MMR (number of leaves)."] + pub fn number_of_leaves( &self, - members: types::reset_members::Members, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "TechnicalMembership", - "reset_members", - types::ResetMembers { members }, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::number_of_leaves::NumberOfLeaves, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Mmr", + "NumberOfLeaves", + vec![], [ - 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, + 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 = "See [`Pallet::change_key`]."] - pub fn change_key( + #[doc = " Hashes of the nodes in the MMR."] + #[doc = ""] + #[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, - new: types::change_key::New, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "TechnicalMembership", - "change_key", - types::ChangeKey { new }, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::nodes::Nodes, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Mmr", + "Nodes", + vec![], [ - 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, + 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 = "See [`Pallet::set_prime`]."] - pub fn set_prime( + #[doc = " Hashes of the nodes in the MMR."] + #[doc = ""] + #[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, - who: types::set_prime::Who, - ) -> ::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 { - ::subxt::tx::Payload::new_static( - "TechnicalMembership", - "clear_prime", - types::ClearPrime {}, - [ - 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, - ], - ) - } - } - } - #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_membership::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 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"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 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"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 = "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"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 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"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 = "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"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 = "Phantom member, never used."] - pub struct Dummy; - impl ::subxt::events::StaticEvent for Dummy { - const PALLET: &'static str = "TechnicalMembership"; - const EVENT: &'static str = "Dummy"; + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::nodes::Nodes, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Mmr", + "Nodes", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 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, + ], + ) + } } } + } + pub mod mmr_leaf { + use super::root_mod; + use super::runtime_types; pub mod storage { use super::runtime_types; + pub mod 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 = " The current membership, stored as an ordered Vec."] - pub fn members( + #[doc = " Details of current BEEFY authority set."] + pub fn beefy_authorities( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::subxt::utils::AccountId32, - >, + types::beefy_authorities::BeefyAuthorities, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( - "TechnicalMembership", - "Members", + "MmrLeaf", + "BeefyAuthorities", 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, + 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 current prime member, if one exists."] - pub fn prime( + #[doc = " Details of next BEEFY authority set."] + #[doc = ""] + #[doc = " This storage entry is used as cache for calls to `update_beefy_next_authority_set`."] + pub fn beefy_next_authorities( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::subxt::utils::AccountId32, + types::beefy_next_authorities::BeefyNextAuthorities, + ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, - (), (), > { ::subxt::storage::address::Address::new_static( - "TechnicalMembership", - "Prime", + "MmrLeaf", + "BeefyNextAuthorities", 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, + 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, ], ) } } } } - pub mod treasury { + pub mod session { use super::root_mod; use super::runtime_types; - #[doc = "Error for the treasury pallet."] - pub type Error = runtime_types::pallet_treasury::pallet::Error; + #[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_treasury::pallet::Call; + pub type Call = runtime_types::pallet_session::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; @@ -18712,21 +8595,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 = "See [`Pallet::propose_spend`]."] - pub struct ProposeSpend { - #[codec(compact)] - pub value: propose_spend::Value, - pub beneficiary: propose_spend::Beneficiary, + #[doc = "See [`Pallet::set_keys`]."] + pub struct SetKeys { + pub keys: set_keys::Keys, + pub proof: set_keys::Proof, } - pub mod propose_spend { + pub mod set_keys { use super::runtime_types; - pub type Value = ::core::primitive::u128; - pub type Beneficiary = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Keys = runtime_types::rococo_runtime::SessionKeys; + pub type Proof = ::std::vec::Vec<::core::primitive::u8>; } - impl ::subxt::blocks::StaticExtrinsic for ProposeSpend { - const PALLET: &'static str = "Treasury"; - const CALL: &'static str = "propose_spend"; + impl ::subxt::blocks::StaticExtrinsic for SetKeys { + const PALLET: &'static str = "Session"; + const CALL: &'static str = "set_keys"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -18738,128 +8619,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 = "See [`Pallet::reject_proposal`]."] - pub struct RejectProposal { - #[codec(compact)] - pub proposal_id: reject_proposal::ProposalId, + #[doc = "See [`Pallet::purge_keys`]."] + pub struct PurgeKeys; + impl ::subxt::blocks::StaticExtrinsic for PurgeKeys { + const PALLET: &'static str = "Session"; + const CALL: &'static str = "purge_keys"; } - pub mod reject_proposal { - use super::runtime_types; - pub type ProposalId = ::core::primitive::u32; + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::set_keys`]."] + pub fn set_keys( + &self, + keys: types::set_keys::Keys, + proof: types::set_keys::Proof, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Session", + "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, + ], + ) } - impl ::subxt::blocks::StaticExtrinsic for RejectProposal { - const PALLET: &'static str = "Treasury"; - const CALL: &'static str = "reject_proposal"; + #[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 = "See [`Pallet::approve_proposal`]."] - pub struct ApproveProposal { - #[codec(compact)] - pub proposal_id: approve_proposal::ProposalId, + } + } + #[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 :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + 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: 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"; + const EVENT: &'static str = "NewSession"; + } + } + pub mod storage { + use super::runtime_types; + pub mod types { + use super::runtime_types; + pub mod validators { + use super::runtime_types; + pub type Validators = ::std::vec::Vec<::subxt::utils::AccountId32>; } - pub mod approve_proposal { + pub mod current_index { use super::runtime_types; - pub type ProposalId = ::core::primitive::u32; + pub type CurrentIndex = ::core::primitive::u32; } - impl ::subxt::blocks::StaticExtrinsic for ApproveProposal { - const PALLET: &'static str = "Treasury"; - const CALL: &'static str = "approve_proposal"; + pub mod queued_changed { + use super::runtime_types; + pub type QueuedChanged = ::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")] - #[doc = "See [`Pallet::spend`]."] - pub struct Spend { - #[codec(compact)] - pub amount: spend::Amount, - pub beneficiary: spend::Beneficiary, + pub mod queued_keys { + use super::runtime_types; + pub type QueuedKeys = ::std::vec::Vec<( + ::subxt::utils::AccountId32, + runtime_types::rococo_runtime::SessionKeys, + )>; } - pub mod spend { + pub mod disabled_validators { use super::runtime_types; - pub type Amount = ::core::primitive::u128; - pub type Beneficiary = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type DisabledValidators = ::std::vec::Vec<::core::primitive::u32>; } - pub mod spend_local { + pub mod next_keys { use super::runtime_types; - pub type Amount = ::core::primitive::u128; - pub type Beneficiary = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type NextKeys = runtime_types::rococo_runtime::SessionKeys; + pub type Param0 = ::subxt::utils::AccountId32; } - impl ::subxt::blocks::StaticExtrinsic for SpendLocal { - const PALLET: &'static str = "Treasury"; - const CALL: &'static str = "spend_local"; + 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]; } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 = "See [`Pallet::remove_approval`]."] - pub struct RemoveApproval { - #[codec(compact)] - pub proposal_id: remove_approval::ProposalId, + } + pub struct StorageApi; + impl StorageApi { + #[doc = " The current set of validators."] + pub fn validators( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::validators::Validators, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Session", + "Validators", + 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, + ], + ) } - pub mod remove_approval { - use super::runtime_types; - pub type ProposalId = ::core::primitive::u32; + #[doc = " Current index of the session."] + pub fn current_index( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::current_index::CurrentIndex, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Session", + "CurrentIndex", + vec![], + [ + 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, + ], + ) } - impl ::subxt::blocks::StaticExtrinsic for RemoveApproval { - const PALLET: &'static str = "Treasury"; - const CALL: &'static str = "remove_approval"; + #[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, + types::queued_changed::QueuedChanged, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Session", + "QueuedChanged", + 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, + ], + ) } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (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, - #[codec(compact)] - pub amount: spend::Amount, - pub beneficiary: ::std::boxed::Box, - pub valid_from: spend::ValidFrom, + #[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, + types::queued_keys::QueuedKeys, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Session", + "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, + ], + ) } - 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>; + #[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( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::disabled_validators::DisabledValidators, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Session", + "DisabledValidators", + 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, + ], + ) } - impl ::subxt::blocks::StaticExtrinsic for Spend { - const PALLET: &'static str = "Treasury"; - const CALL: &'static str = "spend"; + #[doc = " The next session keys for a validator."] + pub fn next_keys_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::next_keys::NextKeys, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Session", + "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, + ], + ) + } + #[doc = " The next session keys for a validator."] + pub fn next_keys( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::next_keys::NextKeys, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Session", + "NextKeys", + vec![::subxt::storage::address::make_static_storage_map_key( + _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, + ], + ) + } + #[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, + types::key_owner::KeyOwner, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Session", + "KeyOwner", + vec![], + [ + 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 = " The owner of a key. The key is the `KeyTypeId` + the encoded key."] + pub fn key_owner_iter1( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::key_owner::KeyOwner, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Session", + "KeyOwner", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 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 = " 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, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::key_owner::KeyOwner, + ::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()), + ], + [ + 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, + ], + ) } + } + } + } + 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 types { + use super::runtime_types; #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -18869,19 +8989,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 Payout { - pub index: payout::Index, + #[doc = "See [`Pallet::report_equivocation`]."] + pub struct ReportEquivocation { + pub equivocation_proof: + ::std::boxed::Box, + pub key_owner_proof: report_equivocation::KeyOwnerProof, } - pub mod payout { + pub mod report_equivocation { use super::runtime_types; - pub type Index = ::core::primitive::u32; + pub type EquivocationProof = + runtime_types::sp_consensus_grandpa::EquivocationProof< + ::subxt::utils::H256, + ::core::primitive::u32, + >; + pub type KeyOwnerProof = runtime_types::sp_session::MembershipProof; } - impl ::subxt::blocks::StaticExtrinsic for Payout { - const PALLET: &'static str = "Treasury"; - const CALL: &'static str = "payout"; + impl ::subxt::blocks::StaticExtrinsic for ReportEquivocation { + const PALLET: &'static str = "Grandpa"; + const CALL: &'static str = "report_equivocation"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -18891,19 +9018,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 CheckStatus { - pub index: check_status::Index, + #[doc = "See [`Pallet::report_equivocation_unsigned`]."] + pub struct ReportEquivocationUnsigned { + pub equivocation_proof: + ::std::boxed::Box, + pub key_owner_proof: report_equivocation_unsigned::KeyOwnerProof, } - pub mod check_status { + pub mod report_equivocation_unsigned { use super::runtime_types; - pub type Index = ::core::primitive::u32; + pub type EquivocationProof = + runtime_types::sp_consensus_grandpa::EquivocationProof< + ::subxt::utils::H256, + ::core::primitive::u32, + >; + pub type KeyOwnerProof = runtime_types::sp_session::MembershipProof; } - impl ::subxt::blocks::StaticExtrinsic for CheckStatus { - const PALLET: &'static str = "Treasury"; - const CALL: &'static str = "check_status"; + impl ::subxt::blocks::StaticExtrinsic for ReportEquivocationUnsigned { + const PALLET: &'static str = "Grandpa"; + 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, @@ -18913,451 +9047,89 @@ pub mod 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 VoidSpend { - pub index: void_spend::Index, + #[doc = "See [`Pallet::note_stalled`]."] + pub struct NoteStalled { + pub delay: note_stalled::Delay, + pub best_finalized_block_number: note_stalled::BestFinalizedBlockNumber, } - pub mod void_spend { + pub mod note_stalled { use super::runtime_types; - pub type Index = ::core::primitive::u32; + pub type Delay = ::core::primitive::u32; + pub type BestFinalizedBlockNumber = ::core::primitive::u32; } - impl ::subxt::blocks::StaticExtrinsic for VoidSpend { - const PALLET: &'static str = "Treasury"; - const CALL: &'static str = "void_spend"; + 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::propose_spend`]."] - pub fn propose_spend( - &self, - value: types::propose_spend::Value, - beneficiary: types::propose_spend::Beneficiary, - ) -> ::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, - ], - ) - } - #[doc = "See [`Pallet::reject_proposal`]."] - pub fn reject_proposal( - &self, - proposal_id: types::reject_proposal::ProposalId, - ) -> ::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, - ], - ) - } - #[doc = "See [`Pallet::approve_proposal`]."] - pub fn approve_proposal( - &self, - proposal_id: types::approve_proposal::ProposalId, - ) -> ::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, - ], - ) - } - #[doc = "See [`Pallet::spend_local`]."] - pub fn spend_local( + #[doc = "See [`Pallet::report_equivocation`]."] + pub fn report_equivocation( &self, - amount: types::spend::Amount, - beneficiary: types::spend::Beneficiary, - ) -> ::subxt::tx::Payload { + equivocation_proof: types::report_equivocation::EquivocationProof, + key_owner_proof: types::report_equivocation::KeyOwnerProof, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Treasury", - "spend_local", - types::SpendLocal { - amount, - beneficiary, + "Grandpa", + "report_equivocation", + types::ReportEquivocation { + equivocation_proof: ::std::boxed::Box::new(equivocation_proof), + key_owner_proof, }, [ - 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 = "See [`Pallet::remove_approval`]."] - pub fn remove_approval( - &self, - proposal_id: types::remove_approval::ProposalId, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Treasury", - "remove_approval", - types::RemoveApproval { proposal_id }, - [ - 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, + 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 = "See [`Pallet::spend`]."] - pub fn spend( + #[doc = "See [`Pallet::report_equivocation_unsigned`]."] + pub fn report_equivocation_unsigned( &self, - asset_kind: types::spend::AssetKind, - amount: types::spend::Amount, - beneficiary: types::spend::Beneficiary, - valid_from: types::spend::ValidFrom, - ) -> ::subxt::tx::Payload { + equivocation_proof: types::report_equivocation_unsigned::EquivocationProof, + key_owner_proof: types::report_equivocation_unsigned::KeyOwnerProof, + ) -> ::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, + "Grandpa", + "report_equivocation_unsigned", + types::ReportEquivocationUnsigned { + equivocation_proof: ::std::boxed::Box::new(equivocation_proof), + key_owner_proof, }, [ - 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, - ], - ) - } - #[doc = "See [`Pallet::payout`]."] - pub fn payout( - &self, - index: types::payout::Index, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Treasury", - "payout", - types::Payout { index }, - [ - 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 = "See [`Pallet::check_status`]."] - pub fn check_status( - &self, - index: types::check_status::Index, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Treasury", - "check_status", - types::CheckStatus { index }, - [ - 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, + 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 = "See [`Pallet::void_spend`]."] - pub fn void_spend( + #[doc = "See [`Pallet::note_stalled`]."] + pub fn note_stalled( &self, - index: types::void_spend::Index, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Treasury", - "void_spend", - types::VoidSpend { index }, - [ - 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, - ], - ) - } - } - } - #[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 :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 proposal."] - pub struct Proposed { - 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"; - 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 = "We have ended a spend period and will now allocate funds."] - pub struct Spending { - 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"; - const EVENT: &'static str = "Spending"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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: 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"; - 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: 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"; - 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 = "Some of our funds have been burnt."] - pub struct Burnt { - 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"; - const EVENT: &'static str = "Burnt"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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: 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"; - const EVENT: &'static str = "Rollover"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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: 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"; - 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: 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"; - 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: 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"; - 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: 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"; - 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: 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"; - const EVENT: &'static str = "AssetSpendVoided"; + delay: types::note_stalled::Delay, + best_finalized_block_number: types::note_stalled::BestFinalizedBlockNumber, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Grandpa", + "note_stalled", + types::NoteStalled { + delay, + best_finalized_block_number, + }, + [ + 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 `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, @@ -19368,19 +9140,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")] - #[doc = "A payment happened."] - pub struct Paid { - pub index: paid::Index, - pub payment_id: paid::PaymentId, + #[doc = "New authority set has been applied."] + pub struct NewAuthorities { + pub authority_set: new_authorities::AuthoritySet, } - pub mod paid { + pub mod new_authorities { use super::runtime_types; - pub type Index = ::core::primitive::u32; - pub type PaymentId = ::core::primitive::u64; + pub type AuthoritySet = ::std::vec::Vec<( + runtime_types::sp_consensus_grandpa::app::Public, + ::core::primitive::u64, + )>; } - impl ::subxt::events::StaticEvent for Paid { - const PALLET: &'static str = "Treasury"; - const EVENT: &'static str = "Paid"; + impl ::subxt::events::StaticEvent for NewAuthorities { + const PALLET: &'static str = "Grandpa"; + const EVENT: &'static str = "NewAuthorities"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -19392,22 +9165,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 payment failed and can be retried."] - pub struct PaymentFailed { - 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"; - const EVENT: &'static str = "PaymentFailed"; + #[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 :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -19417,378 +9181,676 @@ pub mod 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 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: 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"; - const EVENT: &'static str = "SpendProcessed"; + #[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 types { use super::runtime_types; - pub mod proposal_count { + pub mod state { use super::runtime_types; - pub type ProposalCount = ::core::primitive::u32; + pub type State = + runtime_types::pallet_grandpa::StoredState<::core::primitive::u32>; } - pub mod proposals { + pub mod pending_change { use super::runtime_types; - pub type Proposals = runtime_types::pallet_treasury::Proposal< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >; - pub type Param0 = ::core::primitive::u32; + pub type PendingChange = + runtime_types::pallet_grandpa::StoredPendingChange<::core::primitive::u32>; } - pub mod deactivated { + pub mod next_forced { use super::runtime_types; - pub type Deactivated = ::core::primitive::u128; + pub type NextForced = ::core::primitive::u32; } - pub mod approvals { + pub mod stalled { use super::runtime_types; - pub type Approvals = - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u32, - >; + pub type Stalled = (::core::primitive::u32, ::core::primitive::u32); } - pub mod spend_count { + pub mod current_set_id { use super::runtime_types; - pub type SpendCount = ::core::primitive::u32; + pub type CurrentSetId = ::core::primitive::u64; } - pub mod spends { + pub mod set_id_session { 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 type Param0 = ::core::primitive::u32; + pub type SetIdSession = ::core::primitive::u32; + pub type Param0 = ::core::primitive::u64; } } pub struct StorageApi; impl StorageApi { - #[doc = " Number of proposals that have been made."] - pub fn proposal_count( + #[doc = " State of the current authority set."] + pub fn state( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::proposal_count::ProposalCount, + types::state::State, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( - "Treasury", - "ProposalCount", + "Grandpa", + "State", 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, + 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 = " Proposals that have been made."] - pub fn proposals_iter( + #[doc = " Pending change: (signaled at, scheduled change)."] + pub fn pending_change( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::proposals::Proposals, + types::pending_change::PendingChange, + ::subxt::storage::address::Yes, (), (), + > { + ::subxt::storage::address::Address::new_static( + "Grandpa", + "PendingChange", + vec![], + [ + 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 = " next block number where we can force a change."] + pub fn next_forced( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::next_forced::NextForced, ::subxt::storage::address::Yes, + (), + (), > { ::subxt::storage::address::Address::new_static( - "Treasury", - "Proposals", + "Grandpa", + "NextForced", 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, + 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 = " Proposals that have been made."] - pub fn proposals( + #[doc = " `true` if we are currently stalled."] + pub fn stalled( &self, - _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::proposals::Proposals, + types::stalled::Stalled, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( - "Treasury", - "Proposals", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], + "Grandpa", + "Stalled", + 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, + 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 amount which has been reported as inactive to Currency."] - pub fn deactivated( + #[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, - types::deactivated::Deactivated, + types::current_set_id::CurrentSetId, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( - "Treasury", - "Deactivated", + "Grandpa", + "CurrentSetId", 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, + 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 = " Proposal indices that have been approved but not yet awarded."] - pub fn approvals( + #[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, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::approvals::Approvals, + types::set_id_session::SetIdSession, + (), + (), + ::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, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::set_id_session::SetIdSession, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Grandpa", + "SetIdSession", + 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, + ], + ) + } + } + } + pub mod constants { + 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> { + ::subxt::constants::Address::new_static( + "Grandpa", + "MaxAuthorities", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[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( + "Grandpa", + "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, + ], + ) + } + #[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::constants::Address<::core::primitive::u64> { + ::subxt::constants::Address::new_static( + "Grandpa", + "MaxSetIdSessionEntries", + [ + 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 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")] + #[doc = "See [`Pallet::heartbeat`]."] + 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( - "Treasury", - "Approvals", + "ImOnline", + "HeartbeatAfter", 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, + 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 count of spends that have been made."] - pub fn spend_count( + #[doc = " The current set of keys that may issue a heartbeat."] + pub fn keys( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::spend_count::SpendCount, + types::keys::Keys, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( - "Treasury", - "SpendCount", + "ImOnline", + "Keys", vec![], [ - 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, + 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 = " Spends that have been approved and being processed."] - pub fn spends_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, - types::spends::Spends, + types::received_heartbeats::ReceivedHeartbeats, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Treasury", - "Spends", + "ImOnline", + "ReceivedHeartbeats", vec![], [ - 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, + 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 = " Spends that have been approved and being processed."] - pub fn spends( + #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`."] + pub fn received_heartbeats_iter1( &self, - _0: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::spends::Spends, - ::subxt::storage::address::Yes, + types::received_heartbeats::ReceivedHeartbeats, (), (), + ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Treasury", - "Spends", + "ImOnline", + "ReceivedHeartbeats", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 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, + 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, ], ) } - } - } - 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( + #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`."] + pub fn received_heartbeats( &self, - ) -> ::subxt::constants::Address - { - ::subxt::constants::Address::new_static( - "Treasury", - "ProposalBond", - [ - 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, + _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()), ], - ) - } - #[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> { - ::subxt::constants::Address::new_static( - "Treasury", - "ProposalBondMinimum", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + 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 = " Maximum amount of funds that should be placed in a deposit for making a proposal."] - pub fn proposal_bond_maximum( + #[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::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", + ) -> ::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![], [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, + 123u8, 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 = " Percentage of spare funds (if any) that are burnt per spend period."] - pub fn burn( + #[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, - ) -> ::subxt::constants::Address - { - ::subxt::constants::Address::new_static( - "Treasury", - "Burn", + _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(), + )], [ - 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, + 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 = " The treasury's pallet id, used for deriving its sovereign account ID."] - pub fn pallet_id( + #[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, - ) -> ::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, + _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()), ], - ) - } - #[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, + 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 = " The period during which an approved treasury spend has to be claimed."] - pub fn payout_period(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + } + } + 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( - "Treasury", - "PayoutPeriod", + "ImOnline", + "UnsignedPriority", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, + 128u8, 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 conviction_voting { + pub mod authority_discovery { 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 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_conviction_voting::pallet::Call; + pub type Call = runtime_types::pallet_treasury::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; @@ -19805,22 +9867,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")] - #[doc = "See [`Pallet::vote`]."] - pub struct Vote { + #[doc = "See [`Pallet::propose_spend`]."] + pub struct ProposeSpend { #[codec(compact)] - pub poll_index: vote::PollIndex, - pub vote: vote::Vote, + pub value: propose_spend::Value, + pub beneficiary: propose_spend::Beneficiary, } - pub mod vote { + pub mod propose_spend { use super::runtime_types; - pub type PollIndex = ::core::primitive::u32; - pub type Vote = runtime_types::pallet_conviction_voting::vote::AccountVote< - ::core::primitive::u128, - >; + pub type Value = ::core::primitive::u128; + pub type Beneficiary = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; } - impl ::subxt::blocks::StaticExtrinsic for Vote { - const PALLET: &'static str = "ConvictionVoting"; - const CALL: &'static str = "vote"; + impl ::subxt::blocks::StaticExtrinsic for ProposeSpend { + const PALLET: &'static str = "Treasury"; + const CALL: &'static str = "propose_spend"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -19832,24 +9893,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 = "See [`Pallet::delegate`]."] - pub struct Delegate { - pub class: delegate::Class, - pub to: delegate::To, - pub conviction: delegate::Conviction, - pub balance: delegate::Balance, + #[doc = "See [`Pallet::reject_proposal`]."] + pub struct RejectProposal { + #[codec(compact)] + pub proposal_id: reject_proposal::ProposalId, } - pub mod delegate { + pub mod reject_proposal { 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 type ProposalId = ::core::primitive::u32; } - impl ::subxt::blocks::StaticExtrinsic for Delegate { - const PALLET: &'static str = "ConvictionVoting"; - const CALL: &'static str = "delegate"; + impl ::subxt::blocks::StaticExtrinsic for RejectProposal { + const PALLET: &'static str = "Treasury"; + const CALL: &'static str = "reject_proposal"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -19861,17 +9916,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 = "See [`Pallet::undelegate`]."] - pub struct Undelegate { - pub class: undelegate::Class, + #[doc = "See [`Pallet::approve_proposal`]."] + pub struct ApproveProposal { + #[codec(compact)] + pub proposal_id: approve_proposal::ProposalId, } - pub mod undelegate { + pub mod approve_proposal { use super::runtime_types; - pub type Class = ::core::primitive::u16; + pub type ProposalId = ::core::primitive::u32; } - impl ::subxt::blocks::StaticExtrinsic for Undelegate { - const PALLET: &'static str = "ConvictionVoting"; - const CALL: &'static str = "undelegate"; + impl ::subxt::blocks::StaticExtrinsic for ApproveProposal { + const PALLET: &'static str = "Treasury"; + const CALL: &'static str = "approve_proposal"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -19883,19 +9939,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")] - #[doc = "See [`Pallet::unlock`]."] - pub struct Unlock { - pub class: unlock::Class, - pub target: unlock::Target, + #[doc = "See [`Pallet::spend_local`]."] + pub struct SpendLocal { + #[codec(compact)] + pub amount: spend_local::Amount, + pub beneficiary: spend_local::Beneficiary, } - pub mod unlock { + pub mod spend_local { use super::runtime_types; - pub type Class = ::core::primitive::u16; - pub type Target = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Amount = ::core::primitive::u128; + pub type Beneficiary = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; } - impl ::subxt::blocks::StaticExtrinsic for Unlock { - const PALLET: &'static str = "ConvictionVoting"; - const CALL: &'static str = "unlock"; + impl ::subxt::blocks::StaticExtrinsic for SpendLocal { + const PALLET: &'static str = "Treasury"; + const CALL: &'static str = "spend_local"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -19907,19 +9965,70 @@ pub mod 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 = "See [`Pallet::remove_vote`]."] - pub struct RemoveVote { - pub class: remove_vote::Class, - pub index: remove_vote::Index, + #[doc = "See [`Pallet::remove_approval`]."] + pub struct RemoveApproval { + #[codec(compact)] + pub proposal_id: remove_approval::ProposalId, } - pub mod remove_vote { + 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"; + 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")] + #[doc = "See [`Pallet::spend`]."] + pub struct Spend { + pub asset_kind: ::std::boxed::Box, + #[codec(compact)] + 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"; + const CALL: &'static str = "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")] + #[doc = "See [`Pallet::payout`]."] + pub struct Payout { + pub index: payout::Index, + } + pub mod payout { 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"; - const CALL: &'static str = "remove_vote"; + impl ::subxt::blocks::StaticExtrinsic for Payout { + const PALLET: &'static str = "Treasury"; + const CALL: &'static str = "payout"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -19931,146 +10040,206 @@ pub mod 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 = "See [`Pallet::remove_other_vote`]."] - pub struct RemoveOtherVote { - pub target: remove_other_vote::Target, - pub class: remove_other_vote::Class, - pub index: remove_other_vote::Index, + #[doc = "See [`Pallet::check_status`]."] + pub struct CheckStatus { + pub index: check_status::Index, } - pub mod remove_other_vote { + pub mod check_status { 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"; - const CALL: &'static str = "remove_other_vote"; + impl ::subxt::blocks::StaticExtrinsic for CheckStatus { + const PALLET: &'static str = "Treasury"; + const CALL: &'static str = "check_status"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + 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 = "See [`Pallet::void_spend`]."] + pub struct VoidSpend { + 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"; + const CALL: &'static str = "void_spend"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::vote`]."] - pub fn vote( + #[doc = "See [`Pallet::propose_spend`]."] + pub fn propose_spend( &self, - poll_index: types::vote::PollIndex, - vote: types::vote::Vote, - ) -> ::subxt::tx::Payload { + value: types::propose_spend::Value, + beneficiary: types::propose_spend::Beneficiary, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "ConvictionVoting", - "vote", - types::Vote { poll_index, vote }, + "Treasury", + "propose_spend", + types::ProposeSpend { value, beneficiary }, [ - 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, + 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 = "See [`Pallet::delegate`]."] - pub fn delegate( + #[doc = "See [`Pallet::reject_proposal`]."] + pub fn reject_proposal( &self, - class: types::delegate::Class, - to: types::delegate::To, - conviction: types::delegate::Conviction, - balance: types::delegate::Balance, - ) -> ::subxt::tx::Payload { + proposal_id: types::reject_proposal::ProposalId, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "ConvictionVoting", - "delegate", - types::Delegate { - class, - to, - conviction, - balance, + "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, + ], + ) + } + #[doc = "See [`Pallet::approve_proposal`]."] + pub fn approve_proposal( + &self, + proposal_id: types::approve_proposal::ProposalId, + ) -> ::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, + ], + ) + } + #[doc = "See [`Pallet::spend_local`]."] + pub fn spend_local( + &self, + amount: types::spend_local::Amount, + beneficiary: types::spend_local::Beneficiary, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Treasury", + "spend_local", + types::SpendLocal { + amount, + beneficiary, }, [ - 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, + 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 = "See [`Pallet::undelegate`]."] - pub fn undelegate( + #[doc = "See [`Pallet::remove_approval`]."] + pub fn remove_approval( &self, - class: types::undelegate::Class, - ) -> ::subxt::tx::Payload { + proposal_id: types::remove_approval::ProposalId, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "ConvictionVoting", - "undelegate", - types::Undelegate { class }, + "Treasury", + "remove_approval", + types::RemoveApproval { proposal_id }, [ - 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, + 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 = "See [`Pallet::unlock`]."] - pub fn unlock( + #[doc = "See [`Pallet::spend`]."] + pub fn spend( &self, - class: types::unlock::Class, - target: types::unlock::Target, - ) -> ::subxt::tx::Payload { + 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( - "ConvictionVoting", - "unlock", - types::Unlock { class, target }, + "Treasury", + "spend", + types::Spend { + asset_kind: ::std::boxed::Box::new(asset_kind), + amount, + beneficiary: ::std::boxed::Box::new(beneficiary), + valid_from, + }, [ - 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, + 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 = "See [`Pallet::remove_vote`]."] - pub fn remove_vote( + #[doc = "See [`Pallet::payout`]."] + pub fn payout( &self, - class: types::remove_vote::Class, - index: types::remove_vote::Index, - ) -> ::subxt::tx::Payload { + index: types::payout::Index, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "ConvictionVoting", - "remove_vote", - types::RemoveVote { class, index }, + "Treasury", + "payout", + types::Payout { 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, + 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 = "See [`Pallet::remove_other_vote`]."] - pub fn remove_other_vote( + #[doc = "See [`Pallet::check_status`]."] + pub fn check_status( &self, - target: types::remove_other_vote::Target, - class: types::remove_other_vote::Class, - index: types::remove_other_vote::Index, - ) -> ::subxt::tx::Payload { + index: types::check_status::Index, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "ConvictionVoting", - "remove_other_vote", - types::RemoveOtherVote { - target, - class, - index, - }, + "Treasury", + "check_status", + types::CheckStatus { index }, [ - 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, + 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 = "See [`Pallet::void_spend`]."] + pub fn void_spend( + &self, + index: types::void_spend::Index, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Treasury", + "void_spend", + types::VoidSpend { index }, + [ + 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, ], ) } } } #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_conviction_voting::pallet::Event; + pub type Event = runtime_types::pallet_treasury::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -20083,16 +10252,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 = "An account has delegated their vote to another account. \\[who, target\\]"] - pub struct Delegated(pub delegated::Field0, pub delegated::Field1); - pub mod delegated { + #[doc = "New proposal."] + pub struct Proposed { + pub proposal_index: proposed::ProposalIndex, + } + pub mod proposed { use super::runtime_types; - pub type Field0 = ::subxt::utils::AccountId32; - pub type Field1 = ::subxt::utils::AccountId32; + pub type ProposalIndex = ::core::primitive::u32; } - impl ::subxt::events::StaticEvent for Delegated { - const PALLET: &'static str = "ConvictionVoting"; - const EVENT: &'static str = "Delegated"; + impl ::subxt::events::StaticEvent for Proposed { + const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "Proposed"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20104,164 +10274,533 @@ pub mod 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 undelegated::Field0); - pub mod undelegated { + #[doc = "We have ended a spend period and will now allocate funds."] + pub struct Spending { + pub budget_remaining: spending::BudgetRemaining, + } + pub mod spending { use super::runtime_types; - pub type Field0 = ::subxt::utils::AccountId32; + pub type BudgetRemaining = ::core::primitive::u128; } - impl ::subxt::events::StaticEvent for Undelegated { - const PALLET: &'static str = "ConvictionVoting"; - const EVENT: &'static str = "Undelegated"; + impl ::subxt::events::StaticEvent for Spending { + const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "Spending"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + 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: 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"; + 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: 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"; + 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 = "Some of our funds have been burnt."] + pub struct Burnt { + 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"; + const EVENT: &'static str = "Burnt"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + 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: 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"; + const EVENT: &'static str = "Rollover"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + 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: 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"; + 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: 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"; + 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: 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"; + 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: 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"; + const EVENT: &'static str = "AssetSpendApproved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + 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: 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"; + 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: 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"; + 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: 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"; + const EVENT: &'static str = "PaymentFailed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + 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: 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"; + const EVENT: &'static str = "SpendProcessed"; } } pub mod storage { use super::runtime_types; pub mod types { use super::runtime_types; - pub mod voting_for { + pub mod proposal_count { use super::runtime_types; - pub type VotingFor = runtime_types::pallet_conviction_voting::vote::Voting< - ::core::primitive::u128, + 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::u32, - ::core::primitive::u32, + ::core::primitive::u128, >; - pub type Param0 = ::subxt::utils::AccountId32; - pub type Param1 = ::core::primitive::u16; + pub type Param0 = ::core::primitive::u32; } - pub mod class_locks_for { + pub mod deactivated { use super::runtime_types; - pub type ClassLocksFor = - runtime_types::bounded_collections::bounded_vec::BoundedVec<( - ::core::primitive::u16, - ::core::primitive::u128, - )>; - pub type Param0 = ::subxt::utils::AccountId32; + 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 type Param0 = ::core::primitive::u32; + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " Number of proposals that have been made."] + pub fn proposal_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::proposal_count::ProposalCount, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Treasury", + "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 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 = " Proposals that have been made."] + pub fn proposals_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::voting_for::VotingFor, + types::proposals::Proposals, + (), (), - ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "ConvictionVoting", - "VotingFor", + "Treasury", + "Proposals", 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, + 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 = " 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 = " Proposals that have been made."] + pub fn proposals( &self, - _0: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::voting_for::VotingFor, - (), - ::subxt::storage::address::Yes, + types::proposals::Proposals, ::subxt::storage::address::Yes, + (), + (), > { ::subxt::storage::address::Address::new_static( - "ConvictionVoting", - "VotingFor", + "Treasury", + "Proposals", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 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, + 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 = " 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 amount which has been reported as inactive to Currency."] + pub fn deactivated( &self, - _0: impl ::std::borrow::Borrow, - _1: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::voting_for::VotingFor, + types::deactivated::Deactivated, ::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()), - ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), - ], + "Treasury", + "Deactivated", + 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, + 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 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 = " Proposal indices that have been approved but not yet awarded."] + pub fn approvals( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::class_locks_for::ClassLocksFor, + types::approvals::Approvals, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, (), + > { + ::subxt::storage::address::Address::new_static( + "Treasury", + "Approvals", + 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, + ], + ) + } + #[doc = " The count of spends that have been made."] + pub fn spend_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::spend_count::SpendCount, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, + (), > { ::subxt::storage::address::Address::new_static( - "ConvictionVoting", - "ClassLocksFor", + "Treasury", + "SpendCount", 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, + 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 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 = " Spends that have been approved and being processed."] + pub fn spends_iter( &self, - _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::class_locks_for::ClassLocksFor, + types::spends::Spends, + (), + (), ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Treasury", + "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, + ], + ) + } + #[doc = " Spends that have been approved and being processed."] + pub fn spends( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::spends::Spends, ::subxt::storage::address::Yes, (), + (), > { ::subxt::storage::address::Address::new_static( - "ConvictionVoting", - "ClassLocksFor", + "Treasury", + "Spends", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 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, + 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, ], ) } @@ -20271,14 +10810,57 @@ 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 = " 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( - "ConvictionVoting", - "MaxVotes", + "Treasury", + "ProposalBond", + [ + 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 = " 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> { + ::subxt::constants::Address::new_static( + "Treasury", + "ProposalBondMinimum", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[doc = " Maximum amount of funds that should be placed in a deposit for making a proposal."] + pub fn proposal_bond_maximum( + &self, + ) -> ::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", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, @@ -20287,16 +10869,56 @@ 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 = " Percentage of spare funds (if any) that are burnt per spend period."] + pub fn burn( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address + { ::subxt::constants::Address::new_static( - "ConvictionVoting", - "VoteLockingPeriod", + "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, @@ -20308,13 +10930,13 @@ pub mod api { } } } - pub mod referenda { + 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_referenda::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_referenda::pallet::Call; + pub type Call = runtime_types::pallet_conviction_voting::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; @@ -20331,114 +10953,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 = "See [`Pallet::submit`]."] - pub struct Submit { - pub proposal_origin: ::std::boxed::Box, - pub proposal: submit::Proposal, - pub enactment_moment: submit::EnactmentMoment, + #[doc = "See [`Pallet::vote`]."] + pub struct Vote { + #[codec(compact)] + pub poll_index: vote::PollIndex, + pub vote: vote::Vote, } - pub mod submit { + pub mod vote { use super::runtime_types; - pub type ProposalOrigin = runtime_types::polkadot_runtime::OriginCaller; - pub type Proposal = runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::polkadot_runtime::RuntimeCall, + pub type PollIndex = ::core::primitive::u32; + pub type Vote = runtime_types::pallet_conviction_voting::vote::AccountVote< + ::core::primitive::u128, >; - pub type EnactmentMoment = - runtime_types::frame_support::traits::schedule::DispatchTime< - ::core::primitive::u32, - >; - } - impl ::subxt::blocks::StaticExtrinsic for Submit { - const PALLET: &'static str = "Referenda"; - 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")] - #[doc = "See [`Pallet::place_decision_deposit`]."] - pub struct PlaceDecisionDeposit { - 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"; - const CALL: &'static str = "place_decision_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 = "See [`Pallet::refund_decision_deposit`]."] - pub struct RefundDecisionDeposit { - 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"; - const CALL: &'static str = "refund_decision_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 = "See [`Pallet::cancel`]."] - pub struct Cancel { - 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"; - const CALL: &'static str = "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")] - #[doc = "See [`Pallet::kill`]."] - pub struct Kill { - 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"; - const CALL: &'static str = "kill"; + impl ::subxt::blocks::StaticExtrinsic for Vote { + const PALLET: &'static str = "ConvictionVoting"; + const CALL: &'static str = "vote"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20450,17 +10980,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")] - #[doc = "See [`Pallet::nudge_referendum`]."] - pub struct NudgeReferendum { - pub index: nudge_referendum::Index, + #[doc = "See [`Pallet::delegate`]."] + pub struct Delegate { + pub class: delegate::Class, + pub to: delegate::To, + pub conviction: delegate::Conviction, + pub balance: delegate::Balance, } - pub mod nudge_referendum { + pub mod delegate { use super::runtime_types; - pub type Index = ::core::primitive::u32; + 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 NudgeReferendum { - const PALLET: &'static str = "Referenda"; - const CALL: &'static str = "nudge_referendum"; + impl ::subxt::blocks::StaticExtrinsic for Delegate { + const PALLET: &'static str = "ConvictionVoting"; + const CALL: &'static str = "delegate"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20472,17 +11009,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 = "See [`Pallet::one_fewer_deciding`]."] - pub struct OneFewerDeciding { - pub track: one_fewer_deciding::Track, + #[doc = "See [`Pallet::undelegate`]."] + pub struct Undelegate { + pub class: undelegate::Class, } - pub mod one_fewer_deciding { + pub mod undelegate { use super::runtime_types; - pub type Track = ::core::primitive::u16; + pub type Class = ::core::primitive::u16; } - impl ::subxt::blocks::StaticExtrinsic for OneFewerDeciding { - const PALLET: &'static str = "Referenda"; - const CALL: &'static str = "one_fewer_deciding"; + impl ::subxt::blocks::StaticExtrinsic for Undelegate { + const PALLET: &'static str = "ConvictionVoting"; + const CALL: &'static str = "undelegate"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20494,17 +11031,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 = "See [`Pallet::refund_submission_deposit`]."] - pub struct RefundSubmissionDeposit { - pub index: refund_submission_deposit::Index, + #[doc = "See [`Pallet::unlock`]."] + pub struct Unlock { + pub class: unlock::Class, + pub target: unlock::Target, } - pub mod refund_submission_deposit { + pub mod unlock { use super::runtime_types; - pub type Index = ::core::primitive::u32; + pub type Class = ::core::primitive::u16; + pub type Target = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; } - impl ::subxt::blocks::StaticExtrinsic for RefundSubmissionDeposit { - const PALLET: &'static str = "Referenda"; - const CALL: &'static str = "refund_submission_deposit"; + impl ::subxt::blocks::StaticExtrinsic for Unlock { + const PALLET: &'static str = "ConvictionVoting"; + const CALL: &'static str = "unlock"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20515,533 +11054,173 @@ pub mod 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 = "See [`Pallet::set_metadata`]."] - pub struct SetMetadata { - 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"; - const CALL: &'static str = "set_metadata"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::submit`]."] - pub fn submit( - &self, - proposal_origin: types::submit::ProposalOrigin, - proposal: types::submit::Proposal, - enactment_moment: types::submit::EnactmentMoment, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Referenda", - "submit", - types::Submit { - proposal_origin: ::std::boxed::Box::new(proposal_origin), - proposal, - enactment_moment, - }, - [ - 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, - ], - ) - } - #[doc = "See [`Pallet::place_decision_deposit`]."] - pub fn place_decision_deposit( - &self, - index: 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: 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, - ], - ) + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::remove_vote`]."] + pub struct RemoveVote { + pub class: remove_vote::Class, + pub index: remove_vote::Index, } - #[doc = "See [`Pallet::cancel`]."] - pub fn cancel( - &self, - index: 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, - ], - ) + pub mod remove_vote { + use super::runtime_types; + pub type Class = ::core::option::Option<::core::primitive::u16>; + pub type Index = ::core::primitive::u32; } - #[doc = "See [`Pallet::kill`]."] - pub fn kill(&self, index: 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, - ], - ) + impl ::subxt::blocks::StaticExtrinsic for RemoveVote { + const PALLET: &'static str = "ConvictionVoting"; + const CALL: &'static str = "remove_vote"; } - #[doc = "See [`Pallet::nudge_referendum`]."] - pub fn nudge_referendum( - &self, - index: 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, - ], - ) + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + 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 = "See [`Pallet::remove_other_vote`]."] + pub struct RemoveOtherVote { + pub target: remove_other_vote::Target, + pub class: remove_other_vote::Class, + pub index: remove_other_vote::Index, } - #[doc = "See [`Pallet::one_fewer_deciding`]."] - pub fn one_fewer_deciding( + 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"; + const CALL: &'static str = "remove_other_vote"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::vote`]."] + pub fn vote( &self, - track: types::one_fewer_deciding::Track, - ) -> ::subxt::tx::Payload { + poll_index: types::vote::PollIndex, + vote: types::vote::Vote, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Referenda", - "one_fewer_deciding", - types::OneFewerDeciding { track }, + "ConvictionVoting", + "vote", + types::Vote { poll_index, vote }, [ - 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, + 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::refund_submission_deposit`]."] - pub fn refund_submission_deposit( + #[doc = "See [`Pallet::delegate`]."] + pub fn delegate( &self, - index: types::refund_submission_deposit::Index, - ) -> ::subxt::tx::Payload { + class: types::delegate::Class, + to: types::delegate::To, + conviction: types::delegate::Conviction, + balance: types::delegate::Balance, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Referenda", - "refund_submission_deposit", - types::RefundSubmissionDeposit { index }, + "ConvictionVoting", + "delegate", + types::Delegate { + class, + to, + conviction, + balance, + }, [ - 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, + 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::set_metadata`]."] - pub fn set_metadata( + #[doc = "See [`Pallet::undelegate`]."] + pub fn undelegate( &self, - index: types::set_metadata::Index, - maybe_hash: types::set_metadata::MaybeHash, - ) -> ::subxt::tx::Payload { + class: types::undelegate::Class, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Referenda", - "set_metadata", - types::SetMetadata { index, maybe_hash }, + "ConvictionVoting", + "undelegate", + types::Undelegate { class }, [ - 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_referenda::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 referendum has been submitted."] - pub struct Submitted { - 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::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: 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"; - 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: 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"; - 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: 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"; - 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: 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::polkadot_runtime::RuntimeCall, - >; - pub type 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 :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (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: 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"; - const EVENT: &'static str = "ConfirmStarted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (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: 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"; - 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: 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"; - const EVENT: &'static str = "Confirmed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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: 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"; - 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: 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"; - 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: 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"; - 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: 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"; - 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: 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"; - 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: 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"; - const EVENT: &'static str = "SubmissionDepositRefunded"; + 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: types::unlock::Class, + target: 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: types::remove_vote::Class, + index: 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: 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", + "remove_other_vote", + types::RemoveOtherVote { + target, + class, + index, + }, + [ + 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_conviction_voting::pallet::Event; + pub mod events { + use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -21052,19 +11231,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 = "Metadata for a referendum has been set."] - pub struct MetadataSet { - pub index: metadata_set::Index, - pub hash: metadata_set::Hash, - } - pub mod metadata_set { + #[doc = "An account has delegated their vote to another account. \\[who, target\\]"] + pub struct Delegated(pub delegated::Field0, pub delegated::Field1); + pub mod delegated { use super::runtime_types; - pub type Index = ::core::primitive::u32; - pub type Hash = ::subxt::utils::H256; + pub type Field0 = ::subxt::utils::AccountId32; + pub type Field1 = ::subxt::utils::AccountId32; } - impl ::subxt::events::StaticEvent for MetadataSet { - const PALLET: &'static str = "Referenda"; - const EVENT: &'static str = "MetadataSet"; + impl ::subxt::events::StaticEvent for Delegated { + const PALLET: &'static str = "ConvictionVoting"; + const EVENT: &'static str = "Delegated"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -21076,292 +11252,164 @@ pub mod 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: metadata_cleared::Index, - pub hash: metadata_cleared::Hash, - } - pub mod metadata_cleared { + #[doc = "An \\[account\\] has cancelled a previous delegation operation."] + pub struct Undelegated(pub undelegated::Field0); + pub mod undelegated { use super::runtime_types; - pub type Index = ::core::primitive::u32; - pub type Hash = ::subxt::utils::H256; + pub type Field0 = ::subxt::utils::AccountId32; } - impl ::subxt::events::StaticEvent for MetadataCleared { - const PALLET: &'static str = "Referenda"; - const EVENT: &'static str = "MetadataCleared"; + 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 types { use super::runtime_types; - pub mod referendum_count { - use super::runtime_types; - pub type ReferendumCount = ::core::primitive::u32; - } - pub mod referendum_info_for { + pub mod voting_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 type Param0 = ::core::primitive::u32; + pub type VotingFor = runtime_types::pallet_conviction_voting::vote::Voting< + ::core::primitive::u128, + ::subxt::utils::AccountId32, + ::core::primitive::u32, + ::core::primitive::u32, + >; + pub type Param0 = ::subxt::utils::AccountId32; + pub type Param1 = ::core::primitive::u16; } - pub mod track_queue { + pub mod class_locks_for { use super::runtime_types; - pub type TrackQueue = + pub type ClassLocksFor = runtime_types::bounded_collections::bounded_vec::BoundedVec<( - ::core::primitive::u32, + ::core::primitive::u16, ::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 type Param0 = ::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( + #[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, - types::referendum_count::ReferendumCount, + types::voting_for::VotingFor, + (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, - (), > { ::subxt::storage::address::Address::new_static( - "Referenda", - "ReferendumCount", + "ConvictionVoting", + "VotingFor", 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, + 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 = " Information concerning any given referendum."] - pub fn referendum_info_for_iter( + #[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::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::referendum_info_for::ReferendumInfoFor, - (), + types::voting_for::VotingFor, (), ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Referenda", - "ReferendumInfoFor", - vec![], - [ - 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, - ], - ) - } - #[doc = " Information concerning any given referendum."] - pub fn referendum_info_for( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::referendum_info_for::ReferendumInfoFor, ::subxt::storage::address::Yes, - (), - (), > { ::subxt::storage::address::Address::new_static( - "Referenda", - "ReferendumInfoFor", + "ConvictionVoting", + "VotingFor", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 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, - ], - ) - } - #[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, - types::track_queue::TrackQueue, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Referenda", - "TrackQueue", - 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, + 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 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( + #[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, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::track_queue::TrackQueue, + types::voting_for::VotingFor, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( - "Referenda", - "TrackQueue", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], + "ConvictionVoting", + "VotingFor", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.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, + 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 referenda being decided currently."] - pub fn deciding_count_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_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::deciding_count::DecidingCount, + types::class_locks_for::ClassLocksFor, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Referenda", - "DecidingCount", + "ConvictionVoting", + "ClassLocksFor", vec![], [ - 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 number of referenda being decided currently."] - pub fn deciding_count( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::deciding_count::DecidingCount, - ::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, + 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 = " 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( + #[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::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::metadata_of::MetadataOf, - (), - (), + types::class_locks_for::ClassLocksFor, ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Referenda", - "MetadataOf", - 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, - ], - ) - } - #[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, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::metadata_of::MetadataOf, ::subxt::storage::address::Yes, (), - (), > { ::subxt::storage::address::Address::new_static( - "Referenda", - "MetadataOf", + "ConvictionVoting", + "ClassLocksFor", 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, + 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, ], ) } @@ -21371,25 +11419,14 @@ 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( - &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> { + #[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( - "Referenda", - "MaxQueued", + "ConvictionVoting", + "MaxVotes", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, @@ -21398,14 +11435,16 @@ pub mod api { ], ) } - #[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 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( - "Referenda", - "UndecidingTimeout", + "ConvictionVoting", + "VoteLockingPeriod", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, @@ -21414,62 +11453,98 @@ pub mod api { ], ) } - #[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, - ], - ) + } + } + } + pub mod referenda { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Error` enum of this pallet."] + 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_referenda::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")] + #[doc = "See [`Pallet::submit`]."] + pub struct Submit { + pub proposal_origin: ::std::boxed::Box, + pub proposal: submit::Proposal, + pub enactment_moment: submit::EnactmentMoment, } - #[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, + 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, - >, - )>, - > { - ::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, - ], - ) + >; + } + impl ::subxt::blocks::StaticExtrinsic for Submit { + const PALLET: &'static str = "Referenda"; + 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")] + #[doc = "See [`Pallet::place_decision_deposit`]."] + pub struct PlaceDecisionDeposit { + 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"; + const CALL: &'static str = "place_decision_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 = "See [`Pallet::refund_decision_deposit`]."] + pub struct RefundDecisionDeposit { + 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"; + const CALL: &'static str = "refund_decision_deposit"; } - } - } - } - 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_ranked_collective::pallet::Error; - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - 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 { - use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -21480,16 +11555,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 AddMember { - pub who: add_member::Who, + #[doc = "See [`Pallet::cancel`]."] + pub struct Cancel { + pub index: cancel::Index, } - pub mod add_member { + pub mod cancel { use super::runtime_types; - pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Index = ::core::primitive::u32; } - impl ::subxt::blocks::StaticExtrinsic for AddMember { - const PALLET: &'static str = "FellowshipCollective"; - const CALL: &'static str = "add_member"; + impl ::subxt::blocks::StaticExtrinsic for Cancel { + const PALLET: &'static str = "Referenda"; + const CALL: &'static str = "cancel"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -21501,16 +11577,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 PromoteMember { - pub who: promote_member::Who, + #[doc = "See [`Pallet::kill`]."] + pub struct Kill { + pub index: kill::Index, } - pub mod promote_member { + pub mod kill { use super::runtime_types; - pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Index = ::core::primitive::u32; } - impl ::subxt::blocks::StaticExtrinsic for PromoteMember { - const PALLET: &'static str = "FellowshipCollective"; - const CALL: &'static str = "promote_member"; + impl ::subxt::blocks::StaticExtrinsic for Kill { + const PALLET: &'static str = "Referenda"; + const CALL: &'static str = "kill"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -21522,16 +11599,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 DemoteMember { - pub who: demote_member::Who, + #[doc = "See [`Pallet::nudge_referendum`]."] + pub struct NudgeReferendum { + pub index: nudge_referendum::Index, } - pub mod demote_member { + pub mod nudge_referendum { use super::runtime_types; - pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Index = ::core::primitive::u32; } - impl ::subxt::blocks::StaticExtrinsic for DemoteMember { - const PALLET: &'static str = "FellowshipCollective"; - const CALL: &'static str = "demote_member"; + impl ::subxt::blocks::StaticExtrinsic for NudgeReferendum { + const PALLET: &'static str = "Referenda"; + const CALL: &'static str = "nudge_referendum"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -21543,18 +11621,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 RemoveMember { - pub who: remove_member::Who, - pub min_rank: remove_member::MinRank, + #[doc = "See [`Pallet::one_fewer_deciding`]."] + pub struct OneFewerDeciding { + pub track: one_fewer_deciding::Track, } - pub mod remove_member { + pub mod one_fewer_deciding { use super::runtime_types; - pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type MinRank = ::core::primitive::u16; + pub type Track = ::core::primitive::u16; } - impl ::subxt::blocks::StaticExtrinsic for RemoveMember { - const PALLET: &'static str = "FellowshipCollective"; - const CALL: &'static str = "remove_member"; + impl ::subxt::blocks::StaticExtrinsic for OneFewerDeciding { + const PALLET: &'static str = "Referenda"; + const CALL: &'static str = "one_fewer_deciding"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -21566,18 +11643,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 Vote { - pub poll: vote::Poll, - pub aye: vote::Aye, + #[doc = "See [`Pallet::refund_submission_deposit`]."] + pub struct RefundSubmissionDeposit { + pub index: refund_submission_deposit::Index, } - pub mod vote { + pub mod refund_submission_deposit { use super::runtime_types; - pub type Poll = ::core::primitive::u32; - pub type Aye = ::core::primitive::bool; + pub type Index = ::core::primitive::u32; } - impl ::subxt::blocks::StaticExtrinsic for Vote { - const PALLET: &'static str = "FellowshipCollective"; - const CALL: &'static str = "vote"; + impl ::subxt::blocks::StaticExtrinsic for RefundSubmissionDeposit { + const PALLET: &'static str = "Referenda"; + const CALL: &'static str = "refund_submission_deposit"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -21589,131 +11665,434 @@ pub mod 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 CleanupPoll { - pub poll_index: cleanup_poll::PollIndex, - pub max: cleanup_poll::Max, + #[doc = "See [`Pallet::set_metadata`]."] + pub struct SetMetadata { + pub index: set_metadata::Index, + pub maybe_hash: set_metadata::MaybeHash, } - pub mod cleanup_poll { + pub mod set_metadata { use super::runtime_types; - pub type PollIndex = ::core::primitive::u32; - pub type Max = ::core::primitive::u32; + pub type Index = ::core::primitive::u32; + pub type MaybeHash = ::core::option::Option<::subxt::utils::H256>; } - impl ::subxt::blocks::StaticExtrinsic for CleanupPoll { - const PALLET: &'static str = "FellowshipCollective"; - const CALL: &'static str = "cleanup_poll"; + 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::submit`]."] + pub fn submit( + &self, + proposal_origin: types::submit::ProposalOrigin, + proposal: types::submit::Proposal, + enactment_moment: types::submit::EnactmentMoment, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Referenda", + "submit", + types::Submit { + proposal_origin: ::std::boxed::Box::new(proposal_origin), + proposal, + 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, + ], + ) + } + #[doc = "See [`Pallet::place_decision_deposit`]."] + pub fn place_decision_deposit( + &self, + index: 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: 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: 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: 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: 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: 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: 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: types::set_metadata::Index, + maybe_hash: 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, + ], + ) } } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::add_member`]."] - pub fn add_member( - &self, - who: types::add_member::Who, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "FellowshipCollective", - "add_member", - types::AddMember { who }, - [ - 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::promote_member`]."] - pub fn promote_member( - &self, - who: types::promote_member::Who, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "FellowshipCollective", - "promote_member", - types::PromoteMember { who }, - [ - 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::demote_member`]."] - pub fn demote_member( - &self, - who: types::demote_member::Who, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "FellowshipCollective", - "demote_member", - types::DemoteMember { who }, - [ - 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::remove_member`]."] - pub fn remove_member( - &self, - who: types::remove_member::Who, - min_rank: types::remove_member::MinRank, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "FellowshipCollective", - "remove_member", - types::RemoveMember { who, min_rank }, - [ - 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::vote`]."] - pub fn vote( - &self, - poll: types::vote::Poll, - aye: types::vote::Aye, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "FellowshipCollective", - "vote", - types::Vote { poll, aye }, - [ - 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::cleanup_poll`]."] - pub fn cleanup_poll( - &self, - poll_index: types::cleanup_poll::PollIndex, - max: types::cleanup_poll::Max, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "FellowshipCollective", - "cleanup_poll", - types::CleanupPoll { poll_index, max }, - [ - 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 = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_referenda::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 referendum has been submitted."] + pub struct Submitted { + 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"; + 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: 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"; + 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: 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"; + 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: 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"; + 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: 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 type 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 :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (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: 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"; + const EVENT: &'static str = "ConfirmStarted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (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: 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"; + 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: 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"; + const EVENT: &'static str = "Confirmed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + 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: 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"; + 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: 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"; + const EVENT: &'static str = "Rejected"; } - } - #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_ranked_collective::pallet::Event; - pub mod events { - use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -21724,17 +12103,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")] - #[doc = "A member `who` has been added."] - pub struct MemberAdded { - pub who: member_added::Who, + #[doc = "A referendum has been timed out without being decided."] + pub struct TimedOut { + pub index: timed_out::Index, + pub tally: timed_out::Tally, } - pub mod member_added { + pub mod timed_out { use super::runtime_types; - pub type Who = ::subxt::utils::AccountId32; + pub type Index = ::core::primitive::u32; + pub type Tally = + runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>; } - impl ::subxt::events::StaticEvent for MemberAdded { - const PALLET: &'static str = "FellowshipCollective"; - const EVENT: &'static str = "MemberAdded"; + impl ::subxt::events::StaticEvent for TimedOut { + const PALLET: &'static str = "Referenda"; + const EVENT: &'static str = "TimedOut"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -21746,19 +12128,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")] - #[doc = "The member `who`se rank has been changed to the given `rank`."] - pub struct RankChanged { - pub who: rank_changed::Who, - pub rank: rank_changed::Rank, + #[doc = "A referendum has been cancelled."] + pub struct Cancelled { + pub index: cancelled::Index, + pub tally: cancelled::Tally, } - pub mod rank_changed { + pub mod cancelled { use super::runtime_types; - pub type Who = ::subxt::utils::AccountId32; - pub type Rank = ::core::primitive::u16; + pub type Index = ::core::primitive::u32; + pub type Tally = + runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>; } - impl ::subxt::events::StaticEvent for RankChanged { - const PALLET: &'static str = "FellowshipCollective"; - const EVENT: &'static str = "RankChanged"; + impl ::subxt::events::StaticEvent for Cancelled { + const PALLET: &'static str = "Referenda"; + const EVENT: &'static str = "Cancelled"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -21770,19 +12153,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")] - #[doc = "The member `who` of given `rank` has been removed from the collective."] - pub struct MemberRemoved { - pub who: member_removed::Who, - pub rank: member_removed::Rank, + #[doc = "A referendum has been killed."] + pub struct Killed { + pub index: killed::Index, + pub tally: killed::Tally, } - pub mod member_removed { + pub mod killed { use super::runtime_types; - pub type Who = ::subxt::utils::AccountId32; - pub type Rank = ::core::primitive::u16; + pub type Index = ::core::primitive::u32; + pub type Tally = + runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>; } - impl ::subxt::events::StaticEvent for MemberRemoved { - const PALLET: &'static str = "FellowshipCollective"; - const EVENT: &'static str = "MemberRemoved"; + impl ::subxt::events::StaticEvent for Killed { + const PALLET: &'static str = "Referenda"; + const EVENT: &'static str = "Killed"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -21794,438 +12178,442 @@ pub mod 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 member `who` has voted for the `poll` with the given `vote` leading to an updated"] - #[doc = "`tally`."] - pub struct Voted { - pub who: voted::Who, - pub poll: voted::Poll, - pub vote: voted::Vote, - pub tally: voted::Tally, + #[doc = "The submission deposit has been refunded."] + pub struct SubmissionDepositRefunded { + pub index: submission_deposit_refunded::Index, + pub who: submission_deposit_refunded::Who, + pub amount: submission_deposit_refunded::Amount, } - pub mod voted { + pub mod submission_deposit_refunded { use super::runtime_types; + pub type Index = ::core::primitive::u32; 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; + pub type Amount = ::core::primitive::u128; } - impl ::subxt::events::StaticEvent for Voted { - const PALLET: &'static str = "FellowshipCollective"; - const EVENT: &'static str = "Voted"; + 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: 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"; + 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: 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"; + const EVENT: &'static str = "MetadataCleared"; } } pub mod storage { use super::runtime_types; pub mod types { use super::runtime_types; - pub mod member_count { + pub mod referendum_count { use super::runtime_types; - pub type MemberCount = ::core::primitive::u32; - pub type Param0 = ::core::primitive::u16; + pub type ReferendumCount = ::core::primitive::u32; } - pub mod members { + pub mod referendum_info_for { use super::runtime_types; - pub type Members = runtime_types::pallet_ranked_collective::MemberRecord; - pub type Param0 = ::subxt::utils::AccountId32; + 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 type Param0 = ::core::primitive::u32; } - pub mod id_to_index { + pub mod track_queue { use super::runtime_types; - pub type IdToIndex = ::core::primitive::u32; + pub type TrackQueue = + runtime_types::bounded_collections::bounded_vec::BoundedVec<( + ::core::primitive::u32, + ::core::primitive::u128, + )>; pub type Param0 = ::core::primitive::u16; - pub type Param1 = ::subxt::utils::AccountId32; } - pub mod index_to_id { + pub mod deciding_count { use super::runtime_types; - pub type IndexToId = ::subxt::utils::AccountId32; + pub type DecidingCount = ::core::primitive::u32; 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 { + pub mod metadata_of { use super::runtime_types; - pub type VotingCleanup = - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u8, - >; + pub type MetadataOf = ::subxt::utils::H256; pub type Param0 = ::core::primitive::u32; } } pub struct StorageApi; impl StorageApi { - #[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, - types::member_count::MemberCount, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "FellowshipCollective", - "MemberCount", - vec![], - [ - 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 number of members in the collective who have at least the rank according to the index"] - #[doc = " of the vec."] - pub fn member_count( + #[doc = " The next free referendum index, aka the number of referenda started so far."] + pub fn referendum_count( &self, - _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::member_count::MemberCount, + types::referendum_count::ReferendumCount, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( - "FellowshipCollective", - "MemberCount", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], + "Referenda", + "ReferendumCount", + vec![], [ - 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, + 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 members of the collective."] - pub fn members_iter( + #[doc = " Information concerning any given referendum."] + pub fn referendum_info_for_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::members::Members, + types::referendum_info_for::ReferendumInfoFor, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "FellowshipCollective", - "Members", + "Referenda", + "ReferendumInfoFor", vec![], [ - 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, + 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 = " The current members of the collective."] - pub fn members( + #[doc = " Information concerning any given referendum."] + pub fn referendum_info_for( &self, - _0: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::members::Members, + types::referendum_info_for::ReferendumInfoFor, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( - "FellowshipCollective", - "Members", + "Referenda", + "ReferendumInfoFor", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 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, + 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 = " The index of each ranks's member into the group of members who have at least that rank."] - pub fn id_to_index_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, - types::id_to_index::IdToIndex, - (), + types::track_queue::TrackQueue, (), ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "FellowshipCollective", - "IdToIndex", + "Referenda", + "TrackQueue", vec![], [ - 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, + 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 = " The index of each ranks's member into the group of members who have at least that rank."] - pub fn id_to_index_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( &self, - _0: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::id_to_index::IdToIndex, - (), - (), + types::track_queue::TrackQueue, + ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, + (), > { ::subxt::storage::address::Address::new_static( - "FellowshipCollective", - "IdToIndex", + "Referenda", + "TrackQueue", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 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 = " 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, - _1: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::id_to_index::IdToIndex, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "FellowshipCollective", - "IdToIndex", - vec![ - ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), - ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), - ], - [ - 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, + 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 = " 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( + #[doc = " The number of referenda being decided currently."] + pub fn deciding_count_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::index_to_id::IndexToId, - (), + types::deciding_count::DecidingCount, (), ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "FellowshipCollective", - "IndexToId", - vec![], - [ - 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 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::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::index_to_id::IndexToId, - (), - (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "FellowshipCollective", - "IndexToId", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], + "Referenda", + "DecidingCount", + vec![], [ - 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, + 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 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( + #[doc = " The number of referenda being decided currently."] + pub fn deciding_count( &self, - _0: impl ::std::borrow::Borrow, - _1: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::index_to_id::IndexToId, + types::deciding_count::DecidingCount, + ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, - (), (), > { ::subxt::storage::address::Address::new_static( - "FellowshipCollective", - "IndexToId", - vec![ - ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), - ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), - ], + "Referenda", + "DecidingCount", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], [ - 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, + 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 = " Votes on a given proposal, if it is ongoing."] - pub fn voting_iter( + #[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, - types::voting::Voting, + types::metadata_of::MetadataOf, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "FellowshipCollective", - "Voting", + "Referenda", + "MetadataOf", vec![], [ - 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, + 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 = " Votes on a given proposal, if it is ongoing."] - pub fn voting_iter1( + #[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, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::voting::Voting, + types::metadata_of::MetadataOf, + ::subxt::storage::address::Yes, (), (), - ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "FellowshipCollective", - "Voting", + "Referenda", + "MetadataOf", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 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, + 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 = " Votes on a given proposal, if it is ongoing."] - pub fn voting( + } + } + 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, - _0: impl ::std::borrow::Borrow, - _1: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::voting::Voting, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "FellowshipCollective", - "Voting", - 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::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", [ - 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, + 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 voting_cleanup_iter( + #[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::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::voting_cleanup::VotingCleanup, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "FellowshipCollective", - "VotingCleanup", - vec![], + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Referenda", + "UndecidingTimeout", [ - 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, + 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 voting_cleanup( + #[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, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::voting_cleanup::VotingCleanup, - ::subxt::storage::address::Yes, - (), - (), + ) -> ::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::storage::address::Address::new_static( - "FellowshipCollective", - "VotingCleanup", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], + ::subxt::constants::Address::new_static( + "Referenda", + "Tracks", [ - 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, + 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 fellowship_referenda { + 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_referenda::pallet::Error2; + 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_referenda::pallet::Call2; + pub type Call = runtime_types::pallet_ranked_collective::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; @@ -22242,95 +12630,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 Submit { - 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 type EnactmentMoment = - runtime_types::frame_support::traits::schedule::DispatchTime< - ::core::primitive::u32, - >; - } - 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, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (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: 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"; - 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: 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"; - 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: cancel::Index, + #[doc = "See [`Pallet::add_member`]."] + pub struct AddMember { + pub who: add_member::Who, } - pub mod cancel { + pub mod add_member { use super::runtime_types; - pub type Index = ::core::primitive::u32; + pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; } - impl ::subxt::blocks::StaticExtrinsic for Cancel { - const PALLET: &'static str = "FellowshipReferenda"; - const CALL: &'static str = "cancel"; + 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, @@ -22340,19 +12652,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 Kill { - pub index: kill::Index, + #[doc = "See [`Pallet::promote_member`]."] + pub struct PromoteMember { + pub who: promote_member::Who, } - pub mod kill { + pub mod promote_member { use super::runtime_types; - pub type Index = ::core::primitive::u32; + pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; } - impl ::subxt::blocks::StaticExtrinsic for Kill { - const PALLET: &'static str = "FellowshipReferenda"; - const CALL: &'static str = "kill"; + impl ::subxt::blocks::StaticExtrinsic for PromoteMember { + const PALLET: &'static str = "FellowshipCollective"; + const CALL: &'static str = "promote_member"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -22362,19 +12674,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 NudgeReferendum { - pub index: nudge_referendum::Index, + #[doc = "See [`Pallet::demote_member`]."] + pub struct DemoteMember { + pub who: demote_member::Who, } - pub mod nudge_referendum { + pub mod demote_member { use super::runtime_types; - pub type Index = ::core::primitive::u32; + pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; } - impl ::subxt::blocks::StaticExtrinsic for NudgeReferendum { - const PALLET: &'static str = "FellowshipReferenda"; - const CALL: &'static str = "nudge_referendum"; + impl ::subxt::blocks::StaticExtrinsic for DemoteMember { + const PALLET: &'static str = "FellowshipCollective"; + const CALL: &'static str = "demote_member"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -22384,19 +12696,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 OneFewerDeciding { - pub track: one_fewer_deciding::Track, + #[doc = "See [`Pallet::remove_member`]."] + pub struct RemoveMember { + pub who: remove_member::Who, + pub min_rank: remove_member::MinRank, } - pub mod one_fewer_deciding { + pub mod remove_member { use super::runtime_types; - pub type Track = ::core::primitive::u16; + pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type MinRank = ::core::primitive::u16; } - impl ::subxt::blocks::StaticExtrinsic for OneFewerDeciding { - const PALLET: &'static str = "FellowshipReferenda"; - const CALL: &'static str = "one_fewer_deciding"; + impl ::subxt::blocks::StaticExtrinsic for RemoveMember { + const PALLET: &'static str = "FellowshipCollective"; + const CALL: &'static str = "remove_member"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -22406,16 +12720,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 RefundSubmissionDeposit { - pub index: refund_submission_deposit::Index, + #[doc = "See [`Pallet::vote`]."] + pub struct Vote { + pub poll: vote::Poll, + pub aye: vote::Aye, } - pub mod refund_submission_deposit { + pub mod vote { use super::runtime_types; - pub type Index = ::core::primitive::u32; + pub type Poll = ::core::primitive::u32; + pub type Aye = ::core::primitive::bool; } - impl ::subxt::blocks::StaticExtrinsic for RefundSubmissionDeposit { - const PALLET: &'static str = "FellowshipReferenda"; - const CALL: &'static str = "refund_submission_deposit"; + impl ::subxt::blocks::StaticExtrinsic for Vote { + const PALLET: &'static str = "FellowshipCollective"; + const CALL: &'static str = "vote"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22427,179 +12744,130 @@ pub mod 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: set_metadata::Index, - pub maybe_hash: set_metadata::MaybeHash, + #[doc = "See [`Pallet::cleanup_poll`]."] + pub struct CleanupPoll { + pub poll_index: cleanup_poll::PollIndex, + pub max: cleanup_poll::Max, } - pub mod set_metadata { + pub mod cleanup_poll { use super::runtime_types; - pub type Index = ::core::primitive::u32; - pub type MaybeHash = ::core::option::Option<::subxt::utils::H256>; + pub type PollIndex = ::core::primitive::u32; + pub type Max = ::core::primitive::u32; } - impl ::subxt::blocks::StaticExtrinsic for SetMetadata { - const PALLET: &'static str = "FellowshipReferenda"; - 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::submit`]."] - pub fn submit( - &self, - proposal_origin: types::submit::ProposalOrigin, - proposal: types::submit::Proposal, - enactment_moment: 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, - }, - [ - 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, - ], - ) - } - #[doc = "See [`Pallet::place_decision_deposit`]."] - pub fn place_decision_deposit( - &self, - index: types::place_decision_deposit::Index, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "FellowshipReferenda", - "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( + #[doc = "See [`Pallet::add_member`]."] + pub fn add_member( &self, - index: types::refund_decision_deposit::Index, - ) -> ::subxt::tx::Payload { + who: types::add_member::Who, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "FellowshipReferenda", - "refund_decision_deposit", - types::RefundDecisionDeposit { index }, + "FellowshipCollective", + "add_member", + types::AddMember { who }, [ - 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, + 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::cancel`]."] - pub fn cancel( + #[doc = "See [`Pallet::promote_member`]."] + pub fn promote_member( &self, - index: types::cancel::Index, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "FellowshipReferenda", - "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: types::kill::Index) -> ::subxt::tx::Payload { + who: types::promote_member::Who, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "FellowshipReferenda", - "kill", - types::Kill { index }, + "FellowshipCollective", + "promote_member", + types::PromoteMember { who }, [ - 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, + 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::nudge_referendum`]."] - pub fn nudge_referendum( + #[doc = "See [`Pallet::demote_member`]."] + pub fn demote_member( &self, - index: types::nudge_referendum::Index, - ) -> ::subxt::tx::Payload { + who: types::demote_member::Who, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "FellowshipReferenda", - "nudge_referendum", - types::NudgeReferendum { index }, + "FellowshipCollective", + "demote_member", + types::DemoteMember { who }, [ - 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, + 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::one_fewer_deciding`]."] - pub fn one_fewer_deciding( - &self, - track: types::one_fewer_deciding::Track, - ) -> ::subxt::tx::Payload { + #[doc = "See [`Pallet::remove_member`]."] + pub fn remove_member( + &self, + who: types::remove_member::Who, + min_rank: types::remove_member::MinRank, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "FellowshipReferenda", - "one_fewer_deciding", - types::OneFewerDeciding { track }, + "FellowshipCollective", + "remove_member", + types::RemoveMember { who, min_rank }, [ - 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, + 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::refund_submission_deposit`]."] - pub fn refund_submission_deposit( + #[doc = "See [`Pallet::vote`]."] + pub fn vote( &self, - index: types::refund_submission_deposit::Index, - ) -> ::subxt::tx::Payload { + poll: types::vote::Poll, + aye: types::vote::Aye, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "FellowshipReferenda", - "refund_submission_deposit", - types::RefundSubmissionDeposit { index }, + "FellowshipCollective", + "vote", + types::Vote { poll, aye }, [ - 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, + 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::set_metadata`]."] - pub fn set_metadata( + #[doc = "See [`Pallet::cleanup_poll`]."] + pub fn cleanup_poll( &self, - index: types::set_metadata::Index, - maybe_hash: types::set_metadata::MaybeHash, - ) -> ::subxt::tx::Payload { + poll_index: types::cleanup_poll::PollIndex, + max: types::cleanup_poll::Max, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "FellowshipReferenda", - "set_metadata", - types::SetMetadata { index, maybe_hash }, + "FellowshipCollective", + "cleanup_poll", + types::CleanupPoll { poll_index, max }, [ - 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, + 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 = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_referenda::pallet::Event2; + pub type Event = runtime_types::pallet_ranked_collective::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -22612,50 +12880,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 referendum has been submitted."] - pub struct Submitted { - 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"; - 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: decision_deposit_placed::Index, - pub who: decision_deposit_placed::Who, - pub amount: decision_deposit_placed::Amount, + #[doc = "A member `who` has been added."] + pub struct MemberAdded { + pub who: member_added::Who, } - pub mod decision_deposit_placed { + pub mod member_added { 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"; - const EVENT: &'static str = "DecisionDepositPlaced"; + impl ::subxt::events::StaticEvent for MemberAdded { + const PALLET: &'static str = "FellowshipCollective"; + const EVENT: &'static str = "MemberAdded"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22667,21 +12902,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 = "The decision deposit has been refunded."] - pub struct DecisionDepositRefunded { - pub index: decision_deposit_refunded::Index, - pub who: decision_deposit_refunded::Who, - pub amount: decision_deposit_refunded::Amount, + #[doc = "The member `who`se rank has been changed to the given `rank`."] + pub struct RankChanged { + pub who: rank_changed::Who, + pub rank: rank_changed::Rank, } - pub mod decision_deposit_refunded { + pub mod rank_changed { use super::runtime_types; - pub type Index = ::core::primitive::u32; pub type Who = ::subxt::utils::AccountId32; - pub type Amount = ::core::primitive::u128; + pub type Rank = ::core::primitive::u16; } - impl ::subxt::events::StaticEvent for DecisionDepositRefunded { - const PALLET: &'static str = "FellowshipReferenda"; - const EVENT: &'static str = "DecisionDepositRefunded"; + impl ::subxt::events::StaticEvent for RankChanged { + const PALLET: &'static str = "FellowshipCollective"; + const EVENT: &'static str = "RankChanged"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22693,237 +12926,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 deposit has been slashed."] - pub struct DepositSlashed { - pub who: deposit_slashed::Who, - pub amount: deposit_slashed::Amount, + #[doc = "The member `who` of given `rank` has been removed from the collective."] + pub struct MemberRemoved { + pub who: member_removed::Who, + pub rank: member_removed::Rank, } - pub mod deposit_slashed { + pub mod member_removed { 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"; - 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: 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 type 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: 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"; - 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: 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"; - 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: 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"; - 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: 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"; - 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: 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"; - 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: 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"; - 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: 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"; - 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: 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; + pub type Rank = ::core::primitive::u16; } - impl ::subxt::events::StaticEvent for Killed { - const PALLET: &'static str = "FellowshipReferenda"; - const EVENT: &'static str = "Killed"; + impl ::subxt::events::StaticEvent for MemberRemoved { + const PALLET: &'static str = "FellowshipCollective"; + const EVENT: &'static str = "MemberRemoved"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22935,442 +12950,438 @@ pub mod 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: submission_deposit_refunded::Index, - pub who: submission_deposit_refunded::Who, - pub amount: submission_deposit_refunded::Amount, + #[doc = "The member `who` has voted for the `poll` with the given `vote` leading to an updated"] + #[doc = "`tally`."] + pub struct Voted { + pub who: voted::Who, + pub poll: voted::Poll, + pub vote: voted::Vote, + pub tally: voted::Tally, } - pub mod submission_deposit_refunded { + pub mod voted { 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"; - 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: 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"; - 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: 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; + 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 MetadataCleared { - const PALLET: &'static str = "FellowshipReferenda"; - const EVENT: &'static str = "MetadataCleared"; + 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 types { use super::runtime_types; - pub mod referendum_count { + pub mod member_count { use super::runtime_types; - pub type ReferendumCount = ::core::primitive::u32; + pub type MemberCount = ::core::primitive::u32; + pub type Param0 = ::core::primitive::u16; } - pub mod referendum_info_for { + pub mod members { 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 type Param0 = ::core::primitive::u32; + pub type Members = runtime_types::pallet_ranked_collective::MemberRecord; + pub type Param0 = ::subxt::utils::AccountId32; } - pub mod track_queue { + pub mod id_to_index { use super::runtime_types; - pub type TrackQueue = - runtime_types::bounded_collections::bounded_vec::BoundedVec<( - ::core::primitive::u32, - ::core::primitive::u32, - )>; + pub type IdToIndex = ::core::primitive::u32; pub type Param0 = ::core::primitive::u16; + pub type Param1 = ::subxt::utils::AccountId32; } - pub mod deciding_count { + pub mod index_to_id { use super::runtime_types; - pub type DecidingCount = ::core::primitive::u32; + pub type IndexToId = ::subxt::utils::AccountId32; pub type Param0 = ::core::primitive::u16; + pub type Param1 = ::core::primitive::u32; } - pub mod metadata_of { + pub mod voting { use super::runtime_types; - pub type MetadataOf = ::subxt::utils::H256; + 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; + pub type VotingCleanup = + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; pub type Param0 = ::core::primitive::u32; } - } - pub struct StorageApi; - impl StorageApi { - #[doc = " The next free referendum index, aka the number of referenda started so far."] - pub fn referendum_count( + } + pub struct StorageApi; + impl StorageApi { + #[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, + types::member_count::MemberCount, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "FellowshipCollective", + "MemberCount", + vec![], + [ + 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 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, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::referendum_count::ReferendumCount, + types::member_count::MemberCount, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( - "FellowshipReferenda", - "ReferendumCount", - vec![], + "FellowshipCollective", + "MemberCount", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], [ - 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, + 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 = " Information concerning any given referendum."] - pub fn referendum_info_for_iter( + #[doc = " The current members of the collective."] + pub fn members_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::referendum_info_for::ReferendumInfoFor, + types::members::Members, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "FellowshipReferenda", - "ReferendumInfoFor", + "FellowshipCollective", + "Members", vec![], [ - 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, + 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 = " Information concerning any given referendum."] - pub fn referendum_info_for( + #[doc = " The current members of the collective."] + pub fn members( &self, - _0: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::referendum_info_for::ReferendumInfoFor, + types::members::Members, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( - "FellowshipReferenda", - "ReferendumInfoFor", + "FellowshipCollective", + "Members", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 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, + 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 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( + #[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, - types::track_queue::TrackQueue, + types::id_to_index::IdToIndex, + (), (), - ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "FellowshipReferenda", - "TrackQueue", + "FellowshipCollective", + "IdToIndex", vec![], [ - 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, + 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 = " 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( + #[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, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::track_queue::TrackQueue, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, + types::id_to_index::IdToIndex, (), + (), + ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "FellowshipReferenda", - "TrackQueue", + "FellowshipCollective", + "IdToIndex", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 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, + 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 = " The number of referenda being decided currently."] - pub fn deciding_count_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( &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::deciding_count::DecidingCount, - (), - ::subxt::storage::address::Yes, + types::id_to_index::IdToIndex, ::subxt::storage::address::Yes, + (), + (), > { ::subxt::storage::address::Address::new_static( - "FellowshipReferenda", - "DecidingCount", - vec![], + "FellowshipCollective", + "IdToIndex", + 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, + 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 = " The number of referenda being decided currently."] - pub fn deciding_count( + #[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, - _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::deciding_count::DecidingCount, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, + types::index_to_id::IndexToId, + (), (), + ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "FellowshipReferenda", - "DecidingCount", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], + "FellowshipCollective", + "IndexToId", + vec![], [ - 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, + 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 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( + #[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::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::metadata_of::MetadataOf, + types::index_to_id::IndexToId, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "FellowshipReferenda", - "MetadataOf", - vec![], + "FellowshipCollective", + "IndexToId", + 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, + 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 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( + #[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, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::metadata_of::MetadataOf, + types::index_to_id::IndexToId, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( - "FellowshipReferenda", - "MetadataOf", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], + "FellowshipCollective", + "IndexToId", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.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, + 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, ], ) } - } - } - 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( + #[doc = " Votes on a given proposal, if it is ongoing."] + pub fn voting_iter( &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "FellowshipReferenda", - "SubmissionDeposit", + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::voting::Voting, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "FellowshipCollective", + "Voting", + vec![], [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + 180u8, 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 = " 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", + #[doc = " Votes on a given proposal, if it is ongoing."] + pub fn voting_iter1( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::voting::Voting, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "FellowshipCollective", + "Voting", + 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, + 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 = " 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 = " Votes on a given proposal, if it is ongoing."] + pub fn voting( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "FellowshipReferenda", - "UndecidingTimeout", + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::voting::Voting, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "FellowshipCollective", + "Voting", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.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, + 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 = " 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( + pub fn voting_cleanup_iter( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "FellowshipReferenda", - "AlarmInterval", + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::voting_cleanup::VotingCleanup, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "FellowshipCollective", + "VotingCleanup", + 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, + 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 = " Information concerning the different referendum tracks."] - pub fn tracks( + pub fn voting_cleanup( &self, - ) -> ::subxt::constants::Address< - ::std::vec::Vec<( - ::core::primitive::u16, - runtime_types::pallet_referenda::types::TrackInfo< - ::core::primitive::u128, - ::core::primitive::u32, - >, - )>, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::voting_cleanup::VotingCleanup, + ::subxt::storage::address::Yes, + (), + (), > { - ::subxt::constants::Address::new_static( - "FellowshipReferenda", - "Tracks", + ::subxt::storage::address::Address::new_static( + "FellowshipCollective", + "VotingCleanup", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], [ - 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, + 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 whitelist { + 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_whitelist::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_whitelist::pallet::Call; + pub type Call = runtime_types::pallet_referenda::pallet::Call2; pub mod calls { use super::root_mod; use super::runtime_types; @@ -23387,17 +13398,137 @@ pub mod 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 = "See [`Pallet::whitelist_call`]."] - pub struct WhitelistCall { - pub call_hash: whitelist_call::CallHash, + #[doc = "See [`Pallet::submit`]."] + pub struct Submit { + 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 type EnactmentMoment = + runtime_types::frame_support::traits::schedule::DispatchTime< + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for Submit { + const PALLET: &'static str = "FellowshipReferenda"; + 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")] + #[doc = "See [`Pallet::place_decision_deposit`]."] + pub struct PlaceDecisionDeposit { + 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"; + const CALL: &'static str = "place_decision_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 = "See [`Pallet::refund_decision_deposit`]."] + pub struct RefundDecisionDeposit { + 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"; + const CALL: &'static str = "refund_decision_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 = "See [`Pallet::cancel`]."] + pub struct Cancel { + 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"; + const CALL: &'static str = "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")] + #[doc = "See [`Pallet::kill`]."] + pub struct Kill { + 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"; + const CALL: &'static str = "kill"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + 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 = "See [`Pallet::nudge_referendum`]."] + pub struct NudgeReferendum { + pub index: nudge_referendum::Index, } - pub mod whitelist_call { + pub mod nudge_referendum { use super::runtime_types; - pub type CallHash = ::subxt::utils::H256; + pub type Index = ::core::primitive::u32; } - impl ::subxt::blocks::StaticExtrinsic for WhitelistCall { - const PALLET: &'static str = "Whitelist"; - const CALL: &'static str = "whitelist_call"; + impl ::subxt::blocks::StaticExtrinsic for NudgeReferendum { + const PALLET: &'static str = "FellowshipReferenda"; + const CALL: &'static str = "nudge_referendum"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -23409,17 +13540,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 = "See [`Pallet::remove_whitelisted_call`]."] - pub struct RemoveWhitelistedCall { - pub call_hash: remove_whitelisted_call::CallHash, + #[doc = "See [`Pallet::one_fewer_deciding`]."] + pub struct OneFewerDeciding { + pub track: one_fewer_deciding::Track, } - pub mod remove_whitelisted_call { + pub mod one_fewer_deciding { use super::runtime_types; - pub type CallHash = ::subxt::utils::H256; + pub type Track = ::core::primitive::u16; } - impl ::subxt::blocks::StaticExtrinsic for RemoveWhitelistedCall { - const PALLET: &'static str = "Whitelist"; - const CALL: &'static str = "remove_whitelisted_call"; + impl ::subxt::blocks::StaticExtrinsic for OneFewerDeciding { + const PALLET: &'static str = "FellowshipReferenda"; + const CALL: &'static str = "one_fewer_deciding"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -23431,21 +13562,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 = "See [`Pallet::dispatch_whitelisted_call`]."] - pub struct DispatchWhitelistedCall { - pub call_hash: dispatch_whitelisted_call::CallHash, - pub call_encoded_len: dispatch_whitelisted_call::CallEncodedLen, - pub call_weight_witness: dispatch_whitelisted_call::CallWeightWitness, + #[doc = "See [`Pallet::refund_submission_deposit`]."] + pub struct RefundSubmissionDeposit { + pub index: refund_submission_deposit::Index, } - pub mod dispatch_whitelisted_call { + pub mod refund_submission_deposit { 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 type Index = ::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 RefundSubmissionDeposit { + const PALLET: &'static str = "FellowshipReferenda"; + const CALL: &'static str = "refund_submission_deposit"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -23457,103 +13584,455 @@ pub mod 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 = "See [`Pallet::dispatch_whitelisted_call_with_preimage`]."] - pub struct DispatchWhitelistedCallWithPreimage { - pub call: ::std::boxed::Box, + #[doc = "See [`Pallet::set_metadata`]."] + pub struct SetMetadata { + pub index: set_metadata::Index, + pub maybe_hash: set_metadata::MaybeHash, } - pub mod dispatch_whitelisted_call_with_preimage { + pub mod set_metadata { use super::runtime_types; - pub type Call = runtime_types::polkadot_runtime::RuntimeCall; + pub type Index = ::core::primitive::u32; + pub type MaybeHash = ::core::option::Option<::subxt::utils::H256>; } - 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 SetMetadata { + const PALLET: &'static str = "FellowshipReferenda"; + const CALL: &'static str = "set_metadata"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::whitelist_call`]."] - pub fn whitelist_call( + #[doc = "See [`Pallet::submit`]."] + pub fn submit( &self, - call_hash: types::whitelist_call::CallHash, - ) -> ::subxt::tx::Payload { + proposal_origin: types::submit::ProposalOrigin, + proposal: types::submit::Proposal, + enactment_moment: types::submit::EnactmentMoment, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Whitelist", - "whitelist_call", - types::WhitelistCall { call_hash }, + "FellowshipReferenda", + "submit", + types::Submit { + proposal_origin: ::std::boxed::Box::new(proposal_origin), + proposal, + enactment_moment, + }, [ - 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, + 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::remove_whitelisted_call`]."] - pub fn remove_whitelisted_call( + #[doc = "See [`Pallet::place_decision_deposit`]."] + pub fn place_decision_deposit( &self, - call_hash: types::remove_whitelisted_call::CallHash, - ) -> ::subxt::tx::Payload { + index: types::place_decision_deposit::Index, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Whitelist", - "remove_whitelisted_call", - types::RemoveWhitelistedCall { call_hash }, + "FellowshipReferenda", + "place_decision_deposit", + types::PlaceDecisionDeposit { index }, [ - 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, + 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::dispatch_whitelisted_call`]."] - pub fn dispatch_whitelisted_call( + #[doc = "See [`Pallet::refund_decision_deposit`]."] + pub fn refund_decision_deposit( &self, - 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 { + index: types::refund_decision_deposit::Index, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Whitelist", - "dispatch_whitelisted_call", - types::DispatchWhitelistedCall { - call_hash, - call_encoded_len, - call_weight_witness, - }, + "FellowshipReferenda", + "refund_decision_deposit", + types::RefundDecisionDeposit { index }, [ - 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, + 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::dispatch_whitelisted_call_with_preimage`]."] - pub fn dispatch_whitelisted_call_with_preimage( + #[doc = "See [`Pallet::cancel`]."] + pub fn cancel( &self, - call: types::dispatch_whitelisted_call_with_preimage::Call, - ) -> ::subxt::tx::Payload - { + index: types::cancel::Index, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Whitelist", - "dispatch_whitelisted_call_with_preimage", - types::DispatchWhitelistedCallWithPreimage { - call: ::std::boxed::Box::new(call), - }, + "FellowshipReferenda", + "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: types::kill::Index) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "FellowshipReferenda", + "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: 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: 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: 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: types::set_metadata::Index, + maybe_hash: types::set_metadata::MaybeHash, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "FellowshipReferenda", + "set_metadata", + types::SetMetadata { index, maybe_hash }, [ - 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, + 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_whitelist::pallet::Event; - pub mod events { - use super::runtime_types; + } + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_referenda::pallet::Event2; + 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 referendum has been submitted."] + pub struct Submitted { + 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"; + 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: 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"; + 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: 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"; + 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: 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"; + 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: 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 type 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 :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (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: 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"; + const EVENT: &'static str = "ConfirmStarted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (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: 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"; + 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: 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"; + const EVENT: &'static str = "Confirmed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + 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: 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"; + 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: 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"; + 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: 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"; + const EVENT: &'static str = "TimedOut"; + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -23564,16 +14043,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 CallWhitelisted { - pub call_hash: call_whitelisted::CallHash, + #[doc = "A referendum has been cancelled."] + pub struct Cancelled { + pub index: cancelled::Index, + pub tally: cancelled::Tally, } - pub mod call_whitelisted { + pub mod cancelled { use super::runtime_types; - pub type CallHash = ::subxt::utils::H256; + pub type Index = ::core::primitive::u32; + pub type Tally = runtime_types::pallet_ranked_collective::Tally; } - impl ::subxt::events::StaticEvent for CallWhitelisted { - const PALLET: &'static str = "Whitelist"; - const EVENT: &'static str = "CallWhitelisted"; + impl ::subxt::events::StaticEvent for Cancelled { + const PALLET: &'static str = "FellowshipReferenda"; + const EVENT: &'static str = "Cancelled"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -23585,16 +14067,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 WhitelistedCallRemoved { - pub call_hash: whitelisted_call_removed::CallHash, + #[doc = "A referendum has been killed."] + pub struct Killed { + pub index: killed::Index, + pub tally: killed::Tally, } - pub mod whitelisted_call_removed { + pub mod killed { use super::runtime_types; - pub type CallHash = ::subxt::utils::H256; + pub type Index = ::core::primitive::u32; + pub type Tally = runtime_types::pallet_ranked_collective::Tally; } - impl ::subxt::events::StaticEvent for WhitelistedCallRemoved { - const PALLET: &'static str = "Whitelist"; - const EVENT: &'static str = "WhitelistedCallRemoved"; + impl ::subxt::events::StaticEvent for Killed { + const PALLET: &'static str = "FellowshipReferenda"; + const EVENT: &'static str = "Killed"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -23606,346 +14091,46 @@ pub mod 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: whitelisted_call_dispatched::CallHash, - pub result: whitelisted_call_dispatched::Result, + #[doc = "The submission deposit has been refunded."] + pub struct SubmissionDepositRefunded { + pub index: submission_deposit_refunded::Index, + pub who: submission_deposit_refunded::Who, + pub amount: submission_deposit_refunded::Amount, } - pub mod whitelisted_call_dispatched { + pub mod submission_deposit_refunded { 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"; - const EVENT: &'static str = "WhitelistedCallDispatched"; + pub type Index = ::core::primitive::u32; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } - } - pub mod storage { - use super::runtime_types; - pub mod types { - use super::runtime_types; - pub mod whitelisted_call { - use super::runtime_types; - pub type WhitelistedCall = (); - pub type Param0 = ::subxt::utils::H256; - } + impl ::subxt::events::StaticEvent for SubmissionDepositRefunded { + const PALLET: &'static str = "FellowshipReferenda"; + const EVENT: &'static str = "SubmissionDepositRefunded"; } - pub struct StorageApi; - impl StorageApi { - pub fn whitelisted_call_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::whitelisted_call::WhitelistedCall, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Whitelist", - "WhitelistedCall", - 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, - ], - ) - } - pub fn whitelisted_call( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::whitelisted_call::WhitelistedCall, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Whitelist", - "WhitelistedCall", - 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, - ], - ) - } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + 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: metadata_set::Index, + pub hash: metadata_set::Hash, } - } - } - 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 types { + pub mod metadata_set { 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 = "See [`Pallet::claim`]."] - pub struct Claim { - 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"; - 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")] - #[doc = "See [`Pallet::mint_claim`]."] - pub struct MintClaim { - 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 type Statement = ::core::option::Option< - runtime_types::polkadot_runtime_common::claims::StatementKind, - >; - } - impl ::subxt::blocks::StaticExtrinsic for MintClaim { - const PALLET: &'static str = "Claims"; - const CALL: &'static str = "mint_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")] - #[doc = "See [`Pallet::claim_attest`]."] - pub struct ClaimAttest { - 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"; - const CALL: &'static str = "claim_attest"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 = "See [`Pallet::attest`]."] - pub struct Attest { - 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"; - const CALL: &'static str = "attest"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 = "See [`Pallet::move_claim`]."] - pub struct MoveClaim { - 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"; - const CALL: &'static str = "move_claim"; - } + pub type Index = ::core::primitive::u32; + pub type Hash = ::subxt::utils::H256; } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::claim`]."] - pub fn claim( - &self, - dest: types::claim::Dest, - ethereum_signature: types::claim::EthereumSignature, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Claims", - "claim", - types::Claim { - dest, - ethereum_signature, - }, - [ - 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::mint_claim`]."] - pub fn mint_claim( - &self, - 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", - "mint_claim", - types::MintClaim { - who, - value, - vesting_schedule, - statement, - }, - [ - 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::claim_attest`]."] - pub fn claim_attest( - &self, - 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", - "claim_attest", - types::ClaimAttest { - dest, - ethereum_signature, - statement, - }, - [ - 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::attest`]."] - pub fn attest( - &self, - statement: types::attest::Statement, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Claims", - "attest", - types::Attest { statement }, - [ - 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::move_claim`]."] - pub fn move_claim( - &self, - 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", - "move_claim", - types::MoveClaim { - old, - new, - maybe_preclaim, - }, - [ - 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, - ], - ) - } + impl ::subxt::events::StaticEvent for MetadataSet { + const PALLET: &'static str = "FellowshipReferenda"; + const EVENT: &'static str = "MetadataSet"; } - } - #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::polkadot_runtime_common::claims::pallet::Event; - pub mod events { - use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -23956,272 +14141,290 @@ pub mod 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: claimed::Who, - pub ethereum_address: claimed::EthereumAddress, - pub amount: claimed::Amount, + #[doc = "Metadata for a referendum has been cleared."] + pub struct MetadataCleared { + pub index: metadata_cleared::Index, + pub hash: metadata_cleared::Hash, } - pub mod claimed { + pub mod metadata_cleared { 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; + pub type Index = ::core::primitive::u32; + pub type Hash = ::subxt::utils::H256; } - impl ::subxt::events::StaticEvent for Claimed { - const PALLET: &'static str = "Claims"; - const EVENT: &'static str = "Claimed"; + 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 types { use super::runtime_types; - pub mod claims { + pub mod referendum_count { use super::runtime_types; - pub type Claims = ::core::primitive::u128; - pub type Param0 = - runtime_types::polkadot_runtime_common::claims::EthereumAddress; + pub type ReferendumCount = ::core::primitive::u32; } - pub mod total { + pub mod referendum_info_for { use super::runtime_types; - pub type Total = ::core::primitive::u128; + 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 type Param0 = ::core::primitive::u32; } - pub mod vesting { + pub mod track_queue { use super::runtime_types; - pub type Vesting = ( - ::core::primitive::u128, - ::core::primitive::u128, - ::core::primitive::u32, - ); - pub type Param0 = - runtime_types::polkadot_runtime_common::claims::EthereumAddress; + pub type TrackQueue = + runtime_types::bounded_collections::bounded_vec::BoundedVec<( + ::core::primitive::u32, + ::core::primitive::u32, + )>; + pub type Param0 = ::core::primitive::u16; } - pub mod signing { + pub mod deciding_count { 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 type DecidingCount = ::core::primitive::u32; + pub type Param0 = ::core::primitive::u16; } - pub mod preclaims { + pub mod metadata_of { use super::runtime_types; - pub type Preclaims = - runtime_types::polkadot_runtime_common::claims::EthereumAddress; - pub type Param0 = ::subxt::utils::AccountId32; + pub type MetadataOf = ::subxt::utils::H256; + pub type Param0 = ::core::primitive::u32; } } pub struct StorageApi; impl StorageApi { - pub fn claims_iter( + #[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, - types::claims::Claims, - (), - (), + types::referendum_count::ReferendumCount, ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), > { ::subxt::storage::address::Address::new_static( - "Claims", - "Claims", + "FellowshipReferenda", + "ReferendumCount", 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, + 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, ], ) } - pub fn claims( + #[doc = " Information concerning any given referendum."] + pub fn referendum_info_for_iter( &self, - _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::claims::Claims, - ::subxt::storage::address::Yes, + types::referendum_info_for::ReferendumInfoFor, (), (), + ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Claims", - "Claims", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], + "FellowshipReferenda", + "ReferendumInfoFor", + 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, + 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, ], ) } - pub fn total( + #[doc = " Information concerning any given referendum."] + pub fn referendum_info_for( &self, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::total::Total, - ::subxt::storage::address::Yes, + types::referendum_info_for::ReferendumInfoFor, ::subxt::storage::address::Yes, (), + (), > { ::subxt::storage::address::Address::new_static( - "Claims", - "Total", - vec![], + "FellowshipReferenda", + "ReferendumInfoFor", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], [ - 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, + 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 = " 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 = " 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, - types::vesting::Vesting, - (), + types::track_queue::TrackQueue, (), ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Claims", - "Vesting", + "FellowshipReferenda", + "TrackQueue", 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, + 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 = " 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( + #[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, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::vesting::Vesting, + types::track_queue::TrackQueue, + ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, - (), (), > { ::subxt::storage::address::Address::new_static( - "Claims", - "Vesting", + "FellowshipReferenda", + "TrackQueue", 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, + 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 = " The statement kind that must be signed, if any."] - pub fn signing_iter( + #[doc = " The number of referenda being decided currently."] + pub fn deciding_count_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::signing::Signing, - (), + types::deciding_count::DecidingCount, (), ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Claims", - "Signing", + "FellowshipReferenda", + "DecidingCount", 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, + 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 statement kind that must be signed, if any."] - pub fn signing( + #[doc = " The number of referenda being decided currently."] + pub fn deciding_count( &self, - _0: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::signing::Signing, + types::deciding_count::DecidingCount, + ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, - (), (), > { ::subxt::storage::address::Address::new_static( - "Claims", - "Signing", + "FellowshipReferenda", + "DecidingCount", 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, + 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 = " Pre-claimed Ethereum accounts, by the Account ID that they are claimed to."] - pub fn preclaims_iter( + #[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, - types::preclaims::Preclaims, + types::metadata_of::MetadataOf, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Claims", - "Preclaims", + "FellowshipReferenda", + "MetadataOf", 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, + 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 = " Pre-claimed Ethereum accounts, by the Account ID that they are claimed to."] - pub fn preclaims( + #[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, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::preclaims::Preclaims, + types::metadata_of::MetadataOf, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( - "Claims", - "Preclaims", + "FellowshipReferenda", + "MetadataOf", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 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, + 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, ], ) } @@ -24231,31 +14434,99 @@ pub mod api { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - pub fn prefix( + #[doc = " The minimum amount to be used as a deposit for a public referendum proposal."] + pub fn submission_deposit( &self, - ) -> ::subxt::constants::Address<::std::vec::Vec<::core::primitive::u8>> - { + ) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( - "Claims", - "Prefix", + "FellowshipReferenda", + "SubmissionDeposit", [ - 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, + 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 vesting { + pub mod whitelist { 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_whitelist::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_whitelist::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; @@ -24272,33 +14543,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 = "See [`Pallet::vest`]."] - pub struct Vest; - impl ::subxt::blocks::StaticExtrinsic for Vest { - const PALLET: &'static str = "Vesting"; - const CALL: &'static str = "vest"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 = "See [`Pallet::vest_other`]."] - pub struct VestOther { - pub target: vest_other::Target, + #[doc = "See [`Pallet::whitelist_call`]."] + pub struct WhitelistCall { + pub call_hash: whitelist_call::CallHash, } - pub mod vest_other { + pub mod whitelist_call { use super::runtime_types; - pub type Target = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type CallHash = ::subxt::utils::H256; } - impl ::subxt::blocks::StaticExtrinsic for VestOther { - const PALLET: &'static str = "Vesting"; - const CALL: &'static str = "vest_other"; + impl ::subxt::blocks::StaticExtrinsic for WhitelistCall { + const PALLET: &'static str = "Whitelist"; + const CALL: &'static str = "whitelist_call"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -24310,22 +14565,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 = "See [`Pallet::vested_transfer`]."] - pub struct VestedTransfer { - pub target: vested_transfer::Target, - pub schedule: vested_transfer::Schedule, + #[doc = "See [`Pallet::remove_whitelisted_call`]."] + pub struct RemoveWhitelistedCall { + pub call_hash: remove_whitelisted_call::CallHash, } - pub mod vested_transfer { + pub mod remove_whitelisted_call { 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 type CallHash = ::subxt::utils::H256; } - impl ::subxt::blocks::StaticExtrinsic for VestedTransfer { - const PALLET: &'static str = "Vesting"; - const CALL: &'static str = "vested_transfer"; + impl ::subxt::blocks::StaticExtrinsic for RemoveWhitelistedCall { + const PALLET: &'static str = "Whitelist"; + const CALL: &'static str = "remove_whitelisted_call"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -24337,24 +14587,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")] - #[doc = "See [`Pallet::force_vested_transfer`]."] - pub struct ForceVestedTransfer { - pub source: force_vested_transfer::Source, - pub target: force_vested_transfer::Target, - pub schedule: force_vested_transfer::Schedule, + #[doc = "See [`Pallet::dispatch_whitelisted_call`]."] + pub struct DispatchWhitelistedCall { + 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 force_vested_transfer { + pub mod dispatch_whitelisted_call { 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 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 ForceVestedTransfer { - const PALLET: &'static str = "Vesting"; - const CALL: &'static str = "force_vested_transfer"; + impl ::subxt::blocks::StaticExtrinsic for DispatchWhitelistedCall { + const PALLET: &'static str = "Whitelist"; + const CALL: &'static str = "dispatch_whitelisted_call"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -24366,117 +14613,102 @@ pub mod 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 = "See [`Pallet::merge_schedules`]."] - pub struct MergeSchedules { - pub schedule1_index: merge_schedules::Schedule1Index, - pub schedule2_index: merge_schedules::Schedule2Index, + #[doc = "See [`Pallet::dispatch_whitelisted_call_with_preimage`]."] + pub struct DispatchWhitelistedCallWithPreimage { + pub call: ::std::boxed::Box, } - pub mod merge_schedules { + pub mod dispatch_whitelisted_call_with_preimage { use super::runtime_types; - pub type Schedule1Index = ::core::primitive::u32; - pub type Schedule2Index = ::core::primitive::u32; + pub type Call = runtime_types::rococo_runtime::RuntimeCall; } - impl ::subxt::blocks::StaticExtrinsic for MergeSchedules { - const PALLET: &'static str = "Vesting"; - const CALL: &'static str = "merge_schedules"; + 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::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( + #[doc = "See [`Pallet::whitelist_call`]."] + pub fn whitelist_call( &self, - target: types::vest_other::Target, - ) -> ::subxt::tx::Payload { + call_hash: types::whitelist_call::CallHash, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Vesting", - "vest_other", - types::VestOther { target }, + "Whitelist", + "whitelist_call", + types::WhitelistCall { call_hash }, [ - 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, + 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::vested_transfer`]."] - pub fn vested_transfer( + #[doc = "See [`Pallet::remove_whitelisted_call`]."] + pub fn remove_whitelisted_call( &self, - target: types::vested_transfer::Target, - schedule: types::vested_transfer::Schedule, - ) -> ::subxt::tx::Payload { + call_hash: types::remove_whitelisted_call::CallHash, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Vesting", - "vested_transfer", - types::VestedTransfer { target, schedule }, + "Whitelist", + "remove_whitelisted_call", + types::RemoveWhitelistedCall { call_hash }, [ - 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, + 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::force_vested_transfer`]."] - pub fn force_vested_transfer( + #[doc = "See [`Pallet::dispatch_whitelisted_call`]."] + pub fn dispatch_whitelisted_call( &self, - source: types::force_vested_transfer::Source, - target: types::force_vested_transfer::Target, - schedule: types::force_vested_transfer::Schedule, - ) -> ::subxt::tx::Payload { + 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( - "Vesting", - "force_vested_transfer", - types::ForceVestedTransfer { - source, - target, - schedule, + "Whitelist", + "dispatch_whitelisted_call", + types::DispatchWhitelistedCall { + call_hash, + call_encoded_len, + call_weight_witness, }, [ - 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, + 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::merge_schedules`]."] - pub fn merge_schedules( + #[doc = "See [`Pallet::dispatch_whitelisted_call_with_preimage`]."] + pub fn dispatch_whitelisted_call_with_preimage( &self, - schedule1_index: types::merge_schedules::Schedule1Index, - schedule2_index: types::merge_schedules::Schedule2Index, - ) -> ::subxt::tx::Payload { + call: types::dispatch_whitelisted_call_with_preimage::Call, + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( - "Vesting", - "merge_schedules", - types::MergeSchedules { - schedule1_index, - schedule2_index, + "Whitelist", + "dispatch_whitelisted_call_with_preimage", + types::DispatchWhitelistedCallWithPreimage { + call: ::std::boxed::Box::new(call), }, [ - 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, + 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_vesting::pallet::Event; + pub type Event = runtime_types::pallet_whitelist::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -24489,20 +14721,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 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: vesting_updated::Account, - pub unvested: vesting_updated::Unvested, + pub struct CallWhitelisted { + 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"; + 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: whitelisted_call_removed::CallHash, } - pub mod vesting_updated { + pub mod whitelisted_call_removed { use super::runtime_types; - pub type Account = ::subxt::utils::AccountId32; - pub type Unvested = ::core::primitive::u128; + pub type CallHash = ::subxt::utils::H256; } - impl ::subxt::events::StaticEvent for VestingUpdated { - const PALLET: &'static str = "Vesting"; - const EVENT: &'static str = "VestingUpdated"; + impl ::subxt::events::StaticEvent for WhitelistedCallRemoved { + const PALLET: &'static str = "Whitelist"; + const EVENT: &'static str = "WhitelistedCallRemoved"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -24514,147 +14763,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")] - #[doc = "An \\[account\\] has become fully vested."] - pub struct VestingCompleted { - pub account: vesting_completed::Account, + pub struct WhitelistedCallDispatched { + pub call_hash: whitelisted_call_dispatched::CallHash, + pub result: whitelisted_call_dispatched::Result, } - pub mod vesting_completed { + pub mod whitelisted_call_dispatched { use super::runtime_types; - pub type Account = ::subxt::utils::AccountId32; + 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 VestingCompleted { - const PALLET: &'static str = "Vesting"; - const EVENT: &'static str = "VestingCompleted"; + 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 types { + use super::runtime_types; + pub mod whitelisted_call { + use super::runtime_types; + pub type WhitelistedCall = (); + pub type Param0 = ::subxt::utils::H256; + } + } pub struct StorageApi; impl StorageApi { - #[doc = " Information regarding the vesting of a given account."] - pub fn vesting_iter( + pub fn whitelisted_call_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, - >, - >, + types::whitelisted_call::WhitelistedCall, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Vesting", - "Vesting", + "Whitelist", + "WhitelistedCall", 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, + 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 = " Information regarding the vesting of a given account."] - pub fn vesting( + pub fn whitelisted_call( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _0: impl ::std::borrow::Borrow, ) -> ::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, - >, - >, + types::whitelisted_call::WhitelistedCall, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( - "Vesting", - "Vesting", + "Whitelist", + "WhitelistedCall", 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, + 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, ], ) } } } } - pub mod utility { + pub mod claims { use super::root_mod; use super::runtime_types; #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_utility::pallet::Error; + 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::pallet_utility::pallet::Call; + pub type Call = runtime_types::polkadot_runtime_common::claims::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; @@ -24671,17 +14863,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")] - #[doc = "See [`Pallet::batch`]."] - pub struct Batch { - pub calls: batch::Calls, + #[doc = "See [`Pallet::claim`]."] + pub struct Claim { + pub dest: claim::Dest, + pub ethereum_signature: claim::EthereumSignature, } - pub mod batch { + pub mod claim { use super::runtime_types; - pub type Calls = ::std::vec::Vec; + pub type Dest = ::subxt::utils::AccountId32; + pub type EthereumSignature = + runtime_types::polkadot_runtime_common::claims::EcdsaSignature; } - impl ::subxt::blocks::StaticExtrinsic for Batch { - const PALLET: &'static str = "Utility"; - const CALL: &'static str = "batch"; + impl ::subxt::blocks::StaticExtrinsic for Claim { + const PALLET: &'static str = "Claims"; + const CALL: &'static str = "claim"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -24693,19 +14888,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")] - #[doc = "See [`Pallet::as_derivative`]."] - pub struct AsDerivative { - pub index: as_derivative::Index, - pub call: ::std::boxed::Box, + #[doc = "See [`Pallet::mint_claim`]."] + pub struct MintClaim { + pub who: mint_claim::Who, + pub value: mint_claim::Value, + pub vesting_schedule: mint_claim::VestingSchedule, + pub statement: mint_claim::Statement, } - pub mod as_derivative { + pub mod mint_claim { use super::runtime_types; - pub type Index = ::core::primitive::u16; - pub type Call = runtime_types::polkadot_runtime::RuntimeCall; + 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, + >; } - impl ::subxt::blocks::StaticExtrinsic for AsDerivative { - const PALLET: &'static str = "Utility"; - const CALL: &'static str = "as_derivative"; + impl ::subxt::blocks::StaticExtrinsic for MintClaim { + const PALLET: &'static str = "Claims"; + const CALL: &'static str = "mint_claim"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -24717,17 +14922,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 = "See [`Pallet::batch_all`]."] - pub struct BatchAll { - pub calls: batch_all::Calls, + #[doc = "See [`Pallet::claim_attest`]."] + pub struct ClaimAttest { + pub dest: claim_attest::Dest, + pub ethereum_signature: claim_attest::EthereumSignature, + pub statement: claim_attest::Statement, } - pub mod batch_all { + pub mod claim_attest { use super::runtime_types; - pub type Calls = ::std::vec::Vec; + 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 BatchAll { - const PALLET: &'static str = "Utility"; - const CALL: &'static str = "batch_all"; + impl ::subxt::blocks::StaticExtrinsic for ClaimAttest { + const PALLET: &'static str = "Claims"; + const CALL: &'static str = "claim_attest"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -24739,19 +14949,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 = "See [`Pallet::dispatch_as`]."] - pub struct DispatchAs { - pub as_origin: ::std::boxed::Box, - pub call: ::std::boxed::Box, + #[doc = "See [`Pallet::attest`]."] + pub struct Attest { + pub statement: attest::Statement, } - pub mod dispatch_as { + pub mod attest { use super::runtime_types; - pub type AsOrigin = runtime_types::polkadot_runtime::OriginCaller; - pub type Call = runtime_types::polkadot_runtime::RuntimeCall; + pub type Statement = ::std::vec::Vec<::core::primitive::u8>; } - impl ::subxt::blocks::StaticExtrinsic for DispatchAs { - const PALLET: &'static str = "Utility"; - const CALL: &'static str = "dispatch_as"; + impl ::subxt::blocks::StaticExtrinsic for Attest { + const PALLET: &'static str = "Claims"; + const CALL: &'static str = "attest"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -24763,499 +14971,454 @@ pub mod 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 = "See [`Pallet::force_batch`]."] - pub struct ForceBatch { - pub calls: force_batch::Calls, + #[doc = "See [`Pallet::move_claim`]."] + pub struct MoveClaim { + pub old: move_claim::Old, + pub new: move_claim::New, + pub maybe_preclaim: move_claim::MaybePreclaim, } - pub mod force_batch { + pub mod move_claim { use super::runtime_types; - pub type Calls = ::std::vec::Vec; + 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 ForceBatch { - const PALLET: &'static str = "Utility"; - const CALL: &'static str = "force_batch"; + impl ::subxt::blocks::StaticExtrinsic for MoveClaim { + const PALLET: &'static str = "Claims"; + const CALL: &'static str = "move_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")] - #[doc = "See [`Pallet::with_weight`]."] - pub struct WithWeight { - pub call: ::std::boxed::Box, - pub weight: with_weight::Weight, + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::claim`]."] + pub fn claim( + &self, + dest: types::claim::Dest, + ethereum_signature: types::claim::EthereumSignature, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Claims", + "claim", + types::Claim { + dest, + ethereum_signature, + }, + [ + 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, + ], + ) } - pub mod with_weight { + #[doc = "See [`Pallet::mint_claim`]."] + pub fn mint_claim( + &self, + 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", + "mint_claim", + types::MintClaim { + who, + value, + vesting_schedule, + statement, + }, + [ + 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::claim_attest`]."] + pub fn claim_attest( + &self, + 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", + "claim_attest", + types::ClaimAttest { + dest, + ethereum_signature, + statement, + }, + [ + 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::attest`]."] + pub fn attest( + &self, + statement: types::attest::Statement, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Claims", + "attest", + types::Attest { statement }, + [ + 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::move_claim`]."] + pub fn move_claim( + &self, + 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", + "move_claim", + types::MoveClaim { + old, + new, + maybe_preclaim, + }, + [ + 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::polkadot_runtime_common::claims::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 = "Someone claimed some DOTs."] + pub struct Claimed { + 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"; + const EVENT: &'static str = "Claimed"; + } + } + pub mod storage { + use super::runtime_types; + pub mod types { + use super::runtime_types; + pub mod claims { use super::runtime_types; - pub type Call = runtime_types::polkadot_runtime::RuntimeCall; - pub type Weight = runtime_types::sp_weights::weight_v2::Weight; + pub type Claims = ::core::primitive::u128; + pub type Param0 = + runtime_types::polkadot_runtime_common::claims::EthereumAddress; } - impl ::subxt::blocks::StaticExtrinsic for WithWeight { - const PALLET: &'static str = "Utility"; - const CALL: &'static str = "with_weight"; + 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 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 TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::batch`]."] - pub fn batch( + pub struct StorageApi; + impl StorageApi { + pub fn claims_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + 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, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::claims::Claims, + ::subxt::storage::address::Yes, + (), + (), + > { + ::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, + types::total::Total, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Claims", + "Total", + 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, + ], + ) + } + #[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, - calls: types::batch::Calls, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Utility", - "batch", - types::Batch { calls }, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::vesting::Vesting, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Claims", + "Vesting", + vec![], [ - 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, + 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 = "See [`Pallet::as_derivative`]."] - pub fn as_derivative( + #[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, - index: types::as_derivative::Index, - call: types::as_derivative::Call, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Utility", - "as_derivative", - types::AsDerivative { - index, - call: ::std::boxed::Box::new(call), - }, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::vesting::Vesting, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Claims", + "Vesting", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], [ - 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, + 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 = "See [`Pallet::batch_all`]."] - pub fn batch_all( + #[doc = " The statement kind that must be signed, if any."] + pub fn signing_iter( &self, - calls: types::batch_all::Calls, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Utility", - "batch_all", - types::BatchAll { calls }, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::signing::Signing, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Claims", + "Signing", + vec![], [ - 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, + 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 = "See [`Pallet::dispatch_as`]."] - pub fn dispatch_as( + #[doc = " The statement kind that must be signed, if any."] + pub fn signing( &self, - as_origin: types::dispatch_as::AsOrigin, - call: types::dispatch_as::Call, - ) -> ::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), - }, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::signing::Signing, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Claims", + "Signing", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], [ - 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, + 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 = "See [`Pallet::force_batch`]."] - pub fn force_batch( + #[doc = " Pre-claimed Ethereum accounts, by the Account ID that they are claimed to."] + pub fn preclaims_iter( &self, - calls: types::force_batch::Calls, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Utility", - "force_batch", - types::ForceBatch { calls }, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::preclaims::Preclaims, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Claims", + "Preclaims", + vec![], [ - 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, + 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 = "See [`Pallet::with_weight`]."] - pub fn with_weight( + #[doc = " Pre-claimed Ethereum accounts, by the Account ID that they are claimed to."] + pub fn preclaims( &self, - call: types::with_weight::Call, - weight: types::with_weight::Weight, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Utility", - "with_weight", - types::WithWeight { - call: ::std::boxed::Box::new(call), - weight, - }, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::preclaims::Preclaims, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Claims", + "Preclaims", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], [ - 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, + 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 = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_utility::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 = "Batch of dispatches did not complete fully. Index of first failing dispatch given, as"] - #[doc = "well as the error."] - pub struct BatchInterrupted { - 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"; - const EVENT: &'static str = "BatchInterrupted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 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, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 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, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 single item within a Batch of dispatches has completed with error."] - pub struct ItemFailed { - 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"; - const EVENT: &'static str = "ItemFailed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 call was dispatched."] - pub struct DispatchedAs { - 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"; - const EVENT: &'static str = "DispatchedAs"; - } - } 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( + pub fn prefix( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::std::vec::Vec<::core::primitive::u8>> + { ::subxt::constants::Address::new_static( - "Utility", - "batched_calls_limit", + "Claims", + "Prefix", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, + 64u8, 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, ], ) } } } } - pub mod identity { + pub mod utility { 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 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")] - #[doc = "See [`Pallet::add_registrar`]."] - pub struct AddRegistrar { - 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"; - const CALL: &'static str = "add_registrar"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 = "See [`Pallet::set_identity`]."] - pub struct SetIdentity { - pub info: ::std::boxed::Box, - } - pub mod set_identity { - use super::runtime_types; - pub type Info = runtime_types::pallet_identity::types::IdentityInfo; - } - impl ::subxt::blocks::StaticExtrinsic for SetIdentity { - const PALLET: &'static str = "Identity"; - const CALL: &'static str = "set_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")] - #[doc = "See [`Pallet::set_subs`]."] - pub struct SetSubs { - 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"; - 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")] - #[doc = "See [`Pallet::clear_identity`]."] - 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")] - #[doc = "See [`Pallet::request_judgement`]."] - pub struct RequestJudgement { - #[codec(compact)] - pub reg_index: request_judgement::RegIndex, - #[codec(compact)] - 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"; - const CALL: &'static str = "request_judgement"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 = "See [`Pallet::cancel_request`]."] - pub struct CancelRequest { - 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"; - 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")] - #[doc = "See [`Pallet::set_fee`]."] - pub struct SetFee { - #[codec(compact)] - pub index: set_fee::Index, - #[codec(compact)] - 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"; - const CALL: &'static str = "set_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")] - #[doc = "See [`Pallet::set_account_id`]."] - pub struct SetAccountId { - #[codec(compact)] - 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"; - const CALL: &'static str = "set_account_id"; - } + 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, @@ -25266,22 +15429,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 = "See [`Pallet::set_fields`]."] - pub struct SetFields { - #[codec(compact)] - pub index: set_fields::Index, - pub fields: set_fields::Fields, + #[doc = "See [`Pallet::batch`]."] + pub struct Batch { + pub calls: batch::Calls, } - pub mod set_fields { + pub mod batch { use super::runtime_types; - pub type Index = ::core::primitive::u32; - pub type Fields = runtime_types::pallet_identity::types::BitFlags< - runtime_types::pallet_identity::types::IdentityField, - >; + pub type Calls = ::std::vec::Vec; } - impl ::subxt::blocks::StaticExtrinsic for SetFields { - const PALLET: &'static str = "Identity"; - const CALL: &'static str = "set_fields"; + impl ::subxt::blocks::StaticExtrinsic for Batch { + const PALLET: &'static str = "Utility"; + const CALL: &'static str = "batch"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -25293,25 +15451,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 = "See [`Pallet::provide_judgement`]."] - pub struct ProvideJudgement { - #[codec(compact)] - pub reg_index: provide_judgement::RegIndex, - pub target: provide_judgement::Target, - pub judgement: provide_judgement::Judgement, - pub identity: provide_judgement::Identity, + #[doc = "See [`Pallet::as_derivative`]."] + pub struct AsDerivative { + pub index: as_derivative::Index, + pub call: ::std::boxed::Box, } - pub mod provide_judgement { + pub mod as_derivative { 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 type Index = ::core::primitive::u16; + pub type Call = runtime_types::rococo_runtime::RuntimeCall; } - impl ::subxt::blocks::StaticExtrinsic for ProvideJudgement { - const PALLET: &'static str = "Identity"; - const CALL: &'static str = "provide_judgement"; + impl ::subxt::blocks::StaticExtrinsic for AsDerivative { + const PALLET: &'static str = "Utility"; + const CALL: &'static str = "as_derivative"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -25323,17 +15475,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 = "See [`Pallet::kill_identity`]."] - pub struct KillIdentity { - pub target: kill_identity::Target, + #[doc = "See [`Pallet::batch_all`]."] + pub struct BatchAll { + pub calls: batch_all::Calls, } - pub mod kill_identity { + pub mod batch_all { use super::runtime_types; - pub type Target = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Calls = ::std::vec::Vec; } - impl ::subxt::blocks::StaticExtrinsic for KillIdentity { - const PALLET: &'static str = "Identity"; - const CALL: &'static str = "kill_identity"; + impl ::subxt::blocks::StaticExtrinsic for BatchAll { + const PALLET: &'static str = "Utility"; + const CALL: &'static str = "batch_all"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -25345,19 +15497,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 = "See [`Pallet::add_sub`]."] - pub struct AddSub { - pub sub: add_sub::Sub, - pub data: add_sub::Data, + #[doc = "See [`Pallet::dispatch_as`]."] + pub struct DispatchAs { + pub as_origin: ::std::boxed::Box, + pub call: ::std::boxed::Box, } - pub mod add_sub { + pub mod dispatch_as { use super::runtime_types; - pub type Sub = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Data = runtime_types::pallet_identity::types::Data; + pub type AsOrigin = runtime_types::rococo_runtime::OriginCaller; + pub type Call = runtime_types::rococo_runtime::RuntimeCall; } - impl ::subxt::blocks::StaticExtrinsic for AddSub { - const PALLET: &'static str = "Identity"; - const CALL: &'static str = "add_sub"; + impl ::subxt::blocks::StaticExtrinsic for DispatchAs { + const PALLET: &'static str = "Utility"; + const CALL: &'static str = "dispatch_as"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -25369,19 +15521,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 = "See [`Pallet::rename_sub`]."] - pub struct RenameSub { - pub sub: rename_sub::Sub, - pub data: rename_sub::Data, + #[doc = "See [`Pallet::force_batch`]."] + pub struct ForceBatch { + pub calls: force_batch::Calls, } - pub mod rename_sub { + pub mod force_batch { use super::runtime_types; - pub type Sub = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Data = runtime_types::pallet_identity::types::Data; + pub type Calls = ::std::vec::Vec; } - impl ::subxt::blocks::StaticExtrinsic for RenameSub { - const PALLET: &'static str = "Identity"; - const CALL: &'static str = "rename_sub"; + impl ::subxt::blocks::StaticExtrinsic for ForceBatch { + const PALLET: &'static str = "Utility"; + const CALL: &'static str = "force_batch"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -25393,398 +15543,142 @@ pub mod 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 = "See [`Pallet::remove_sub`]."] - pub struct RemoveSub { - pub sub: remove_sub::Sub, + #[doc = "See [`Pallet::with_weight`]."] + pub struct WithWeight { + pub call: ::std::boxed::Box, + pub weight: with_weight::Weight, } - pub mod remove_sub { + pub mod with_weight { use super::runtime_types; - pub type Sub = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - } - impl ::subxt::blocks::StaticExtrinsic for RemoveSub { - const PALLET: &'static str = "Identity"; - const CALL: &'static str = "remove_sub"; + pub type Call = runtime_types::rococo_runtime::RuntimeCall; + pub type 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")] - #[doc = "See [`Pallet::quit_sub`]."] - pub struct QuitSub; - impl ::subxt::blocks::StaticExtrinsic for QuitSub { - const PALLET: &'static str = "Identity"; - const CALL: &'static str = "quit_sub"; + 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_registrar`]."] - pub fn add_registrar( + #[doc = "See [`Pallet::batch`]."] + pub fn batch( &self, - account: types::add_registrar::Account, - ) -> ::subxt::tx::Payload { + calls: types::batch::Calls, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Identity", - "add_registrar", - types::AddRegistrar { account }, + "Utility", + "batch", + types::Batch { calls }, [ - 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, + 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::set_identity`]."] - pub fn set_identity( + #[doc = "See [`Pallet::as_derivative`]."] + pub fn as_derivative( &self, - info: types::set_identity::Info, - ) -> ::subxt::tx::Payload { + index: types::as_derivative::Index, + call: types::as_derivative::Call, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Identity", - "set_identity", - types::SetIdentity { - info: ::std::boxed::Box::new(info), + "Utility", + "as_derivative", + types::AsDerivative { + index, + call: ::std::boxed::Box::new(call), }, [ - 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: 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: types::request_judgement::RegIndex, - max_fee: 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: 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: types::set_fee::Index, - fee: 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: types::set_account_id::Index, - new: 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, + 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::set_fields`]."] - pub fn set_fields( + #[doc = "See [`Pallet::batch_all`]."] + pub fn batch_all( &self, - index: types::set_fields::Index, - fields: types::set_fields::Fields, - ) -> ::subxt::tx::Payload { + calls: types::batch_all::Calls, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Identity", - "set_fields", - types::SetFields { index, fields }, + "Utility", + "batch_all", + types::BatchAll { calls }, [ - 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, + 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::provide_judgement`]."] - pub fn provide_judgement( + #[doc = "See [`Pallet::dispatch_as`]."] + pub fn dispatch_as( &self, - reg_index: types::provide_judgement::RegIndex, - target: types::provide_judgement::Target, - judgement: types::provide_judgement::Judgement, - identity: types::provide_judgement::Identity, - ) -> ::subxt::tx::Payload { + as_origin: types::dispatch_as::AsOrigin, + call: types::dispatch_as::Call, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Identity", - "provide_judgement", - types::ProvideJudgement { - reg_index, - target, - judgement, - identity, + "Utility", + "dispatch_as", + types::DispatchAs { + as_origin: ::std::boxed::Box::new(as_origin), + call: ::std::boxed::Box::new(call), }, [ - 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: 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: types::add_sub::Sub, - data: 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: types::rename_sub::Sub, - data: 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, + 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::remove_sub`]."] - pub fn remove_sub( + #[doc = "See [`Pallet::force_batch`]."] + pub fn force_batch( &self, - sub: 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 { + calls: types::force_batch::Calls, + ) -> ::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_identity::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 name was set or reset (which will remove all judgements)."] - pub struct IdentitySet { - 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"; - 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: 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"; - 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: 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"; - 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: 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"; - const EVENT: &'static str = "JudgementRequested"; + "Utility", + "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, + ], + ) + } + #[doc = "See [`Pallet::with_weight`]."] + pub fn with_weight( + &self, + call: types::with_weight::Call, + weight: types::with_weight::Weight, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Utility", + "with_weight", + types::WithWeight { + call: ::std::boxed::Box::new(call), + 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, + ], + ) + } } + } + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_utility::pallet::Event; + pub mod events { + use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -25795,19 +15689,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")] - #[doc = "A judgement request was retracted."] - pub struct JudgementUnrequested { - pub who: judgement_unrequested::Who, - pub registrar_index: judgement_unrequested::RegistrarIndex, + #[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: batch_interrupted::Index, + pub error: batch_interrupted::Error, } - pub mod judgement_unrequested { + pub mod batch_interrupted { use super::runtime_types; - pub type Who = ::subxt::utils::AccountId32; - pub type RegistrarIndex = ::core::primitive::u32; + pub type Index = ::core::primitive::u32; + pub type Error = runtime_types::sp_runtime::DispatchError; } - impl ::subxt::events::StaticEvent for JudgementUnrequested { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "JudgementUnrequested"; + impl ::subxt::events::StaticEvent for BatchInterrupted { + const PALLET: &'static str = "Utility"; + const EVENT: &'static str = "BatchInterrupted"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -25819,19 +15714,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 judgement was given by a registrar."] - pub struct JudgementGiven { - 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"; - const EVENT: &'static str = "JudgementGiven"; + #[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, @@ -25843,17 +15730,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 registrar was added."] - pub struct RegistrarAdded { - 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"; - const EVENT: &'static str = "RegistrarAdded"; + #[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, @@ -25865,21 +15746,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 sub-identity was added to an identity and the deposit paid."] - pub struct SubIdentityAdded { - 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"; - const EVENT: &'static str = "SubIdentityAdded"; + #[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, @@ -25891,21 +15762,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 sub-identity was removed from an identity and the deposit freed."] - pub struct SubIdentityRemoved { - pub sub: sub_identity_removed::Sub, - pub main: sub_identity_removed::Main, - pub deposit: sub_identity_removed::Deposit, + #[doc = "A single item within a Batch of dispatches has completed with error."] + pub struct ItemFailed { + pub error: item_failed::Error, } - pub mod sub_identity_removed { + pub mod item_failed { use super::runtime_types; - pub type Sub = ::subxt::utils::AccountId32; - pub type Main = ::subxt::utils::AccountId32; - pub type Deposit = ::core::primitive::u128; + pub type Error = runtime_types::sp_runtime::DispatchError; } - impl ::subxt::events::StaticEvent for SubIdentityRemoved { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "SubIdentityRemoved"; + impl ::subxt::events::StaticEvent for ItemFailed { + const PALLET: &'static str = "Utility"; + const EVENT: &'static str = "ItemFailed"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -25917,317 +15784,31 @@ pub mod 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: 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"; - const EVENT: &'static str = "SubIdentityRevoked"; + #[doc = "A call was dispatched."] + pub struct DispatchedAs { + pub result: dispatched_as::Result, } - } - pub mod storage { - use super::runtime_types; - pub mod types { + pub mod dispatched_as { 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 type Param0 = ::subxt::utils::AccountId32; - } - pub mod super_of { - use super::runtime_types; - pub type SuperOf = ( - ::subxt::utils::AccountId32, - runtime_types::pallet_identity::types::Data, - ); - pub type Param0 = ::subxt::utils::AccountId32; - } - 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 type Param0 = ::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 type Result = + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>; } - 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( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::identity_of::IdentityOf, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Identity", - "IdentityOf", - 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, - ], - ) - } - #[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::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - 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, - types::super_of::SuperOf, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Identity", - "SuperOf", - 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, - ], - ) - } - #[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, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::super_of::SuperOf, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Identity", - "SuperOf", - 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, - ], - ) - } - #[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, - types::subs_of::SubsOf, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Identity", - "SubsOf", - 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( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::subs_of::SubsOf, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "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, - types::registrars::Registrars, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Identity", - "Registrars", - vec![], - [ - 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, - ], - ) - } + impl ::subxt::events::StaticEvent for DispatchedAs { + const PALLET: &'static str = "Utility"; + const EVENT: &'static str = "DispatchedAs"; } } pub mod constants { 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, - ], - ) - } - #[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( - "Identity", - "ByteDeposit", - [ - 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 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::primitive::u128> { - ::subxt::constants::Address::new_static( - "Identity", - "SubAccountDeposit", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ], - ) - } - #[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( - "Identity", - "MaxSubAccounts", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[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 = " The limit on the number of batched calls."] + pub fn batched_calls_limit( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( - "Identity", - "MaxRegistrars", + "Utility", + "batched_calls_limit", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, @@ -26239,81 +15820,19 @@ pub mod api { } } } - pub mod society { - use super::root_mod; - use super::runtime_types; - #[doc = "The `Error` enum of this pallet."] - 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_society::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, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (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: 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"; - 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: 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"; - const CALL: &'static str = "vouch"; - } + pub mod identity { + 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 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, @@ -26324,10 +15843,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 Unvouch; - impl ::subxt::blocks::StaticExtrinsic for Unvouch { - const PALLET: &'static str = "Society"; - const CALL: &'static str = "unvouch"; + #[doc = "See [`Pallet::add_registrar`]."] + pub struct AddRegistrar { + 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"; + const CALL: &'static str = "add_registrar"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -26339,19 +15866,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 Vote { - pub candidate: vote::Candidate, - pub approve: vote::Approve, + #[doc = "See [`Pallet::set_identity`]."] + pub struct SetIdentity { + pub info: ::std::boxed::Box, } - pub mod vote { + pub mod set_identity { use super::runtime_types; - pub type Candidate = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Approve = ::core::primitive::bool; + pub type Info = runtime_types::pallet_identity::legacy::IdentityInfo; } - impl ::subxt::blocks::StaticExtrinsic for Vote { - const PALLET: &'static str = "Society"; - const CALL: &'static str = "vote"; + impl ::subxt::blocks::StaticExtrinsic for SetIdentity { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "set_identity"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -26363,16 +15888,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 DefenderVote { - pub approve: defender_vote::Approve, + #[doc = "See [`Pallet::set_subs`]."] + pub struct SetSubs { + pub subs: set_subs::Subs, } - pub mod defender_vote { + pub mod set_subs { use super::runtime_types; - pub type Approve = ::core::primitive::bool; + pub type Subs = ::std::vec::Vec<( + ::subxt::utils::AccountId32, + runtime_types::pallet_identity::types::Data, + )>; } - impl ::subxt::blocks::StaticExtrinsic for DefenderVote { - const PALLET: &'static str = "Society"; - const CALL: &'static str = "defender_vote"; + impl ::subxt::blocks::StaticExtrinsic for SetSubs { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "set_subs"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -26384,13 +15913,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 Payout; - impl ::subxt::blocks::StaticExtrinsic for Payout { - const PALLET: &'static str = "Society"; - const CALL: &'static str = "payout"; + #[doc = "See [`Pallet::clear_identity`]."] + pub struct ClearIdentity; + impl ::subxt::blocks::StaticExtrinsic for ClearIdentity { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "clear_identity"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -26400,16 +15929,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 WaiveRepay { - pub amount: waive_repay::Amount, + #[doc = "See [`Pallet::request_judgement`]."] + pub struct RequestJudgement { + #[codec(compact)] + pub reg_index: request_judgement::RegIndex, + #[codec(compact)] + pub max_fee: request_judgement::MaxFee, } - pub mod waive_repay { + pub mod request_judgement { use super::runtime_types; - pub type Amount = ::core::primitive::u128; + pub type RegIndex = ::core::primitive::u32; + pub type MaxFee = ::core::primitive::u128; } - impl ::subxt::blocks::StaticExtrinsic for WaiveRepay { - const PALLET: &'static str = "Society"; - const CALL: &'static str = "waive_repay"; + impl ::subxt::blocks::StaticExtrinsic for RequestJudgement { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "request_judgement"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -26421,42 +15955,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 FoundSociety { - 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, + #[doc = "See [`Pallet::cancel_request`]."] + pub struct CancelRequest { + pub reg_index: cancel_request::RegIndex, } - pub mod found_society { + pub mod cancel_request { 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"; - const CALL: &'static str = "found_society"; + pub type RegIndex = ::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 Dissolve; - impl ::subxt::blocks::StaticExtrinsic for Dissolve { - const PALLET: &'static str = "Society"; - const CALL: &'static str = "dissolve"; + impl ::subxt::blocks::StaticExtrinsic for CancelRequest { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "cancel_request"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -26468,18 +15977,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 JudgeSuspendedMember { - pub who: judge_suspended_member::Who, - pub forgive: judge_suspended_member::Forgive, + #[doc = "See [`Pallet::set_fee`]."] + pub struct SetFee { + #[codec(compact)] + pub index: set_fee::Index, + #[codec(compact)] + pub fee: set_fee::Fee, } - pub mod judge_suspended_member { + pub mod set_fee { use super::runtime_types; - pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Forgive = ::core::primitive::bool; + pub type Index = ::core::primitive::u32; + pub type Fee = ::core::primitive::u128; } - impl ::subxt::blocks::StaticExtrinsic for JudgeSuspendedMember { - const PALLET: &'static str = "Society"; - const CALL: &'static str = "judge_suspended_member"; + impl ::subxt::blocks::StaticExtrinsic for SetFee { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "set_fee"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -26491,22 +16003,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 SetParameters { - pub max_members: set_parameters::MaxMembers, - pub max_intake: set_parameters::MaxIntake, - pub max_strikes: set_parameters::MaxStrikes, - pub candidate_deposit: set_parameters::CandidateDeposit, + #[doc = "See [`Pallet::set_account_id`]."] + pub struct SetAccountId { + #[codec(compact)] + pub index: set_account_id::Index, + pub new: set_account_id::New, } - pub mod set_parameters { + pub mod set_account_id { 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 type Index = ::core::primitive::u32; + pub type New = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; } - impl ::subxt::blocks::StaticExtrinsic for SetParameters { - const PALLET: &'static str = "Society"; - const CALL: &'static str = "set_parameters"; + impl ::subxt::blocks::StaticExtrinsic for SetAccountId { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "set_account_id"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -26518,25 +16028,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 PunishSkeptic; - impl ::subxt::blocks::StaticExtrinsic for PunishSkeptic { - const PALLET: &'static str = "Society"; - const CALL: &'static str = "punish_skeptic"; + #[doc = "See [`Pallet::set_fields`]."] + pub struct SetFields { + #[codec(compact)] + pub index: set_fields::Index, + pub fields: set_fields::Fields, } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (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"; + 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"; + const CALL: &'static str = "set_fields"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -26548,16 +16053,25 @@ pub mod 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 BestowMembership { - pub candidate: bestow_membership::Candidate, + #[doc = "See [`Pallet::provide_judgement`]."] + pub struct ProvideJudgement { + #[codec(compact)] + pub reg_index: provide_judgement::RegIndex, + pub target: provide_judgement::Target, + pub judgement: provide_judgement::Judgement, + pub identity: provide_judgement::Identity, } - pub mod bestow_membership { + pub mod provide_judgement { use super::runtime_types; - pub type Candidate = ::subxt::utils::AccountId32; + 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 BestowMembership { - const PALLET: &'static str = "Society"; - const CALL: &'static str = "bestow_membership"; + impl ::subxt::blocks::StaticExtrinsic for ProvideJudgement { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "provide_judgement"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -26569,16 +16083,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 KickCandidate { - pub candidate: kick_candidate::Candidate, + #[doc = "See [`Pallet::kill_identity`]."] + pub struct KillIdentity { + pub target: kill_identity::Target, } - pub mod kick_candidate { + pub mod kill_identity { use super::runtime_types; - pub type Candidate = ::subxt::utils::AccountId32; + pub type Target = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; } - impl ::subxt::blocks::StaticExtrinsic for KickCandidate { - const PALLET: &'static str = "Society"; - const CALL: &'static str = "kick_candidate"; + impl ::subxt::blocks::StaticExtrinsic for KillIdentity { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "kill_identity"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -26590,10 +16105,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 ResignCandidacy; - impl ::subxt::blocks::StaticExtrinsic for ResignCandidacy { - const PALLET: &'static str = "Society"; - const CALL: &'static str = "resign_candidacy"; + #[doc = "See [`Pallet::add_sub`]."] + pub struct AddSub { + 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"; + const CALL: &'static str = "add_sub"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -26605,16 +16129,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 DropCandidate { - pub candidate: drop_candidate::Candidate, + #[doc = "See [`Pallet::rename_sub`]."] + pub struct RenameSub { + pub sub: rename_sub::Sub, + pub data: rename_sub::Data, } - pub mod drop_candidate { + pub mod rename_sub { use super::runtime_types; - pub type Candidate = ::subxt::utils::AccountId32; + pub type Sub = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Data = runtime_types::pallet_identity::types::Data; } - impl ::subxt::blocks::StaticExtrinsic for DropCandidate { - const PALLET: &'static str = "Society"; - const CALL: &'static str = "drop_candidate"; + impl ::subxt::blocks::StaticExtrinsic for RenameSub { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "rename_sub"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -26626,18 +16153,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 CleanupCandidacy { - pub candidate: cleanup_candidacy::Candidate, - pub max: cleanup_candidacy::Max, + #[doc = "See [`Pallet::remove_sub`]."] + pub struct RemoveSub { + pub sub: remove_sub::Sub, } - pub mod cleanup_candidacy { + pub mod remove_sub { use super::runtime_types; - pub type Candidate = ::subxt::utils::AccountId32; - pub type Max = ::core::primitive::u32; + pub type Sub = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; } - impl ::subxt::blocks::StaticExtrinsic for CleanupCandidacy { - const PALLET: &'static str = "Society"; - const CALL: &'static str = "cleanup_candidacy"; + impl ::subxt::blocks::StaticExtrinsic for RemoveSub { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "remove_sub"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -26649,361 +16175,280 @@ pub mod 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 CleanupChallenge { - 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"; - const CALL: &'static str = "cleanup_challenge"; + #[doc = "See [`Pallet::quit_sub`]."] + 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::bid`]."] - pub fn bid(&self, value: types::bid::Value) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Society", - "bid", - types::Bid { value }, - [ - 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::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( + #[doc = "See [`Pallet::add_registrar`]."] + pub fn add_registrar( &self, - who: types::vouch::Who, - value: types::vouch::Value, - tip: types::vouch::Tip, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "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 { + account: types::add_registrar::Account, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Society", - "unvouch", - types::Unvouch {}, + "Identity", + "add_registrar", + types::AddRegistrar { account }, [ - 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, + 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::vote`]."] - pub fn vote( + #[doc = "See [`Pallet::set_identity`]."] + pub fn set_identity( &self, - candidate: types::vote::Candidate, - approve: types::vote::Approve, - ) -> ::subxt::tx::Payload { + info: types::set_identity::Info, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Society", - "vote", - types::Vote { candidate, approve }, + "Identity", + "set_identity", + types::SetIdentity { + info: ::std::boxed::Box::new(info), + }, [ - 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, + 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::defender_vote`]."] - pub fn defender_vote( + #[doc = "See [`Pallet::set_subs`]."] + pub fn set_subs( &self, - approve: 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 { + subs: types::set_subs::Subs, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Society", - "payout", - types::Payout {}, + "Identity", + "set_subs", + types::SetSubs { subs }, [ - 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, + 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::waive_repay`]."] - pub fn waive_repay( - &self, - amount: types::waive_repay::Amount, - ) -> ::subxt::tx::Payload { + #[doc = "See [`Pallet::clear_identity`]."] + pub fn clear_identity(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Society", - "waive_repay", - types::WaiveRepay { amount }, + "Identity", + "clear_identity", + types::ClearIdentity {}, [ - 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, + 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::found_society`]."] - pub fn found_society( + #[doc = "See [`Pallet::request_judgement`]."] + pub fn request_judgement( &self, - 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", - "found_society", - types::FoundSociety { - founder, - max_members, - max_intake, - max_strikes, - candidate_deposit, - rules, - }, - [ - 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::dissolve`]."] - pub fn dissolve(&self) -> ::subxt::tx::Payload { + reg_index: types::request_judgement::RegIndex, + max_fee: types::request_judgement::MaxFee, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Society", - "dissolve", - types::Dissolve {}, + "Identity", + "request_judgement", + types::RequestJudgement { reg_index, max_fee }, [ - 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, + 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::judge_suspended_member`]."] - pub fn judge_suspended_member( - &self, - who: types::judge_suspended_member::Who, - forgive: types::judge_suspended_member::Forgive, - ) -> ::subxt::tx::Payload { + #[doc = "See [`Pallet::cancel_request`]."] + pub fn cancel_request( + &self, + reg_index: types::cancel_request::RegIndex, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Society", - "judge_suspended_member", - types::JudgeSuspendedMember { who, forgive }, + "Identity", + "cancel_request", + types::CancelRequest { reg_index }, [ - 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, + 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_parameters`]."] - pub fn set_parameters( + #[doc = "See [`Pallet::set_fee`]."] + pub fn set_fee( &self, - 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 { + index: types::set_fee::Index, + fee: types::set_fee::Fee, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Society", - "set_parameters", - types::SetParameters { - max_members, - max_intake, - max_strikes, - candidate_deposit, - }, + "Identity", + "set_fee", + types::SetFee { index, fee }, [ - 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, + 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::punish_skeptic`]."] - pub fn punish_skeptic(&self) -> ::subxt::tx::Payload { + #[doc = "See [`Pallet::set_account_id`]."] + pub fn set_account_id( + &self, + index: types::set_account_id::Index, + new: types::set_account_id::New, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Society", - "punish_skeptic", - types::PunishSkeptic {}, + "Identity", + "set_account_id", + types::SetAccountId { index, new }, [ - 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, + 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::claim_membership`]."] - pub fn claim_membership(&self) -> ::subxt::tx::Payload { + #[doc = "See [`Pallet::set_fields`]."] + pub fn set_fields( + &self, + index: types::set_fields::Index, + fields: types::set_fields::Fields, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Society", - "claim_membership", - types::ClaimMembership {}, + "Identity", + "set_fields", + types::SetFields { index, fields }, [ - 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, + 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::bestow_membership`]."] - pub fn bestow_membership( + #[doc = "See [`Pallet::provide_judgement`]."] + pub fn provide_judgement( &self, - candidate: types::bestow_membership::Candidate, - ) -> ::subxt::tx::Payload { + 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( - "Society", - "bestow_membership", - types::BestowMembership { candidate }, + "Identity", + "provide_judgement", + types::ProvideJudgement { + reg_index, + target, + judgement, + identity, + }, [ - 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, + 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::kick_candidate`]."] - pub fn kick_candidate( + #[doc = "See [`Pallet::kill_identity`]."] + pub fn kill_identity( &self, - candidate: types::kick_candidate::Candidate, - ) -> ::subxt::tx::Payload { + target: types::kill_identity::Target, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Society", - "kick_candidate", - types::KickCandidate { candidate }, + "Identity", + "kill_identity", + types::KillIdentity { target }, [ - 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, + 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::resign_candidacy`]."] - pub fn resign_candidacy(&self) -> ::subxt::tx::Payload { + #[doc = "See [`Pallet::add_sub`]."] + pub fn add_sub( + &self, + sub: types::add_sub::Sub, + data: types::add_sub::Data, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Society", - "resign_candidacy", - types::ResignCandidacy {}, + "Identity", + "add_sub", + types::AddSub { sub, data }, [ - 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, + 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::drop_candidate`]."] - pub fn drop_candidate( + #[doc = "See [`Pallet::rename_sub`]."] + pub fn rename_sub( &self, - candidate: types::drop_candidate::Candidate, - ) -> ::subxt::tx::Payload { + sub: types::rename_sub::Sub, + data: types::rename_sub::Data, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Society", - "drop_candidate", - types::DropCandidate { candidate }, + "Identity", + "rename_sub", + types::RenameSub { sub, data }, [ - 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, + 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::cleanup_candidacy`]."] - pub fn cleanup_candidacy( + #[doc = "See [`Pallet::remove_sub`]."] + pub fn remove_sub( &self, - candidate: types::cleanup_candidacy::Candidate, - max: types::cleanup_candidacy::Max, - ) -> ::subxt::tx::Payload { + sub: types::remove_sub::Sub, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Society", - "cleanup_candidacy", - types::CleanupCandidacy { candidate, max }, + "Identity", + "remove_sub", + types::RemoveSub { sub }, [ - 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, + 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::cleanup_challenge`]."] - pub fn cleanup_challenge( - &self, - challenge_round: types::cleanup_challenge::ChallengeRound, - max: types::cleanup_challenge::Max, - ) -> ::subxt::tx::Payload { + #[doc = "See [`Pallet::quit_sub`]."] + pub fn quit_sub(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Society", - "cleanup_challenge", - types::CleanupChallenge { - challenge_round, - max, - }, + "Identity", + "quit_sub", + types::QuitSub {}, [ - 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, + 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_society::pallet::Event; + pub type Event = runtime_types::pallet_identity::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -27016,206 +16461,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 society is founded by the given identity."] - pub struct Founded { - 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"; - const EVENT: &'static str = "Founded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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. The given account is the candidate's ID and their offer"] - #[doc = "is the second."] - pub struct Bid { - 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"; - 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: 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"; - 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: 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"; - 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: 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"; - 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: 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"; - 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: 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"; - 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: suspended_member_judgement::Who, - pub judged: suspended_member_judgement::Judged, + #[doc = "A name was set or reset (which will remove all judgements)."] + pub struct IdentitySet { + pub who: identity_set::Who, } - pub mod suspended_member_judgement { + pub mod identity_set { 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"; - 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: 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"; - const EVENT: &'static str = "CandidateSuspended"; + impl ::subxt::events::StaticEvent for IdentitySet { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "IdentitySet"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -27227,17 +16483,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 member has been suspended"] - pub struct MemberSuspended { - pub member: member_suspended::Member, + #[doc = "A name was cleared, and the given balance returned."] + pub struct IdentityCleared { + pub who: identity_cleared::Who, + pub deposit: identity_cleared::Deposit, } - pub mod member_suspended { + pub mod identity_cleared { use super::runtime_types; - pub type Member = ::subxt::utils::AccountId32; + pub type Who = ::subxt::utils::AccountId32; + pub type Deposit = ::core::primitive::u128; } - impl ::subxt::events::StaticEvent for MemberSuspended { - const PALLET: &'static str = "Society"; - const EVENT: &'static str = "MemberSuspended"; + impl ::subxt::events::StaticEvent for IdentityCleared { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "IdentityCleared"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -27249,17 +16507,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 member has been challenged"] - pub struct Challenged { - pub member: challenged::Member, + #[doc = "A name was removed and the given balance slashed."] + pub struct IdentityKilled { + pub who: identity_killed::Who, + pub deposit: identity_killed::Deposit, } - pub mod challenged { + pub mod identity_killed { use super::runtime_types; - pub type Member = ::subxt::utils::AccountId32; + pub type Who = ::subxt::utils::AccountId32; + pub type Deposit = ::core::primitive::u128; } - impl ::subxt::events::StaticEvent for Challenged { - const PALLET: &'static str = "Society"; - const EVENT: &'static str = "Challenged"; + impl ::subxt::events::StaticEvent for IdentityKilled { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "IdentityKilled"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -27271,21 +16531,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 vote has been placed"] - pub struct Vote { - pub candidate: vote::Candidate, - pub voter: vote::Voter, - pub vote: vote::Vote, + #[doc = "A judgement was asked from a registrar."] + pub struct JudgementRequested { + pub who: judgement_requested::Who, + pub registrar_index: judgement_requested::RegistrarIndex, } - pub mod vote { + pub mod judgement_requested { use super::runtime_types; - pub type Candidate = ::subxt::utils::AccountId32; - pub type Voter = ::subxt::utils::AccountId32; - pub type Vote = ::core::primitive::bool; + pub type Who = ::subxt::utils::AccountId32; + pub type RegistrarIndex = ::core::primitive::u32; } - impl ::subxt::events::StaticEvent for Vote { - const PALLET: &'static str = "Society"; - const EVENT: &'static str = "Vote"; + impl ::subxt::events::StaticEvent for JudgementRequested { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "JudgementRequested"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -27297,19 +16555,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 vote has been placed for a defending member"] - pub struct DefenderVote { - pub voter: defender_vote::Voter, - pub vote: defender_vote::Vote, + #[doc = "A judgement request was retracted."] + pub struct JudgementUnrequested { + pub who: judgement_unrequested::Who, + pub registrar_index: judgement_unrequested::RegistrarIndex, } - pub mod defender_vote { + pub mod judgement_unrequested { use super::runtime_types; - pub type Voter = ::subxt::utils::AccountId32; - pub type Vote = ::core::primitive::bool; + pub type Who = ::subxt::utils::AccountId32; + pub type RegistrarIndex = ::core::primitive::u32; } - impl ::subxt::events::StaticEvent for DefenderVote { - const PALLET: &'static str = "Society"; - const EVENT: &'static str = "DefenderVote"; + impl ::subxt::events::StaticEvent for JudgementUnrequested { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "JudgementUnrequested"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -27321,18 +16579,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 new set of \\[params\\] has been set for the group."] - pub struct NewParams { - pub params: new_params::Params, + #[doc = "A judgement was given by a registrar."] + pub struct JudgementGiven { + pub target: judgement_given::Target, + pub registrar_index: judgement_given::RegistrarIndex, } - pub mod new_params { + pub mod judgement_given { use super::runtime_types; - pub type Params = - runtime_types::pallet_society::GroupParams<::core::primitive::u128>; + pub type Target = ::subxt::utils::AccountId32; + pub type RegistrarIndex = ::core::primitive::u32; } - impl ::subxt::events::StaticEvent for NewParams { - const PALLET: &'static str = "Society"; - const EVENT: &'static str = "NewParams"; + impl ::subxt::events::StaticEvent for JudgementGiven { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "JudgementGiven"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -27344,20 +16603,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 = "Society is unfounded."] - pub struct Unfounded { - pub founder: unfounded::Founder, + #[doc = "A registrar was added."] + pub struct RegistrarAdded { + pub registrar_index: registrar_added::RegistrarIndex, } - pub mod unfounded { + pub mod registrar_added { use super::runtime_types; - pub type Founder = ::subxt::utils::AccountId32; + pub type RegistrarIndex = ::core::primitive::u32; } - impl ::subxt::events::StaticEvent for Unfounded { - const PALLET: &'static str = "Society"; - const EVENT: &'static str = "Unfounded"; + impl ::subxt::events::StaticEvent for RegistrarAdded { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "RegistrarAdded"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -27367,17 +16625,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")] - #[doc = "Some funds were deposited into the society account."] - pub struct Deposit { - pub value: deposit::Value, + #[doc = "A sub-identity was added to an identity and the deposit paid."] + pub struct SubIdentityAdded { + pub sub: sub_identity_added::Sub, + pub main: sub_identity_added::Main, + pub deposit: sub_identity_added::Deposit, } - pub mod deposit { + pub mod sub_identity_added { use super::runtime_types; - pub type Value = ::core::primitive::u128; + pub type Sub = ::subxt::utils::AccountId32; + pub type Main = ::subxt::utils::AccountId32; + pub type Deposit = ::core::primitive::u128; } - impl ::subxt::events::StaticEvent for Deposit { - const PALLET: &'static str = "Society"; - const EVENT: &'static str = "Deposit"; + impl ::subxt::events::StaticEvent for SubIdentityAdded { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "SubIdentityAdded"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -27389,824 +16651,269 @@ pub mod 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 \\[member\\] got elevated to \\[rank\\]."] - pub struct Elevated { - 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"; - const EVENT: &'static str = "Elevated"; - } - } - pub mod storage { - use super::runtime_types; - pub mod 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 type Param0 = ::subxt::utils::AccountId32; - } - 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 type Param0 = ::subxt::utils::AccountId32; - } - 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 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; - 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 type Param0 = ::subxt::utils::AccountId32; - } - 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 type Param0 = ::subxt::utils::AccountId32; - pub type Param1 = ::subxt::utils::AccountId32; - } - pub mod vote_clear_cursor { - use super::runtime_types; - pub type VoteClearCursor = - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u8, - >; - pub type Param0 = ::subxt::utils::AccountId32; - } - 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 type Param0 = ::core::primitive::u32; - pub type Param1 = ::subxt::utils::AccountId32; - } - } - pub struct StorageApi; - impl StorageApi { - #[doc = " The max number of members for the society at one time."] - pub fn parameters( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::parameters::Parameters, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Society", - "Parameters", - vec![], - [ - 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 = " Amount of our account balance that is specifically for the next round's bid(s)."] - pub fn pot( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::pot::Pot, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Society", - "Pot", - vec![], - [ - 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 = " The first member."] - pub fn founder( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::founder::Founder, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Society", - "Founder", - vec![], - [ - 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 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, - types::head::Head, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Society", - "Head", - vec![], - [ - 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 = " 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, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::rules::Rules, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Society", - "Rules", - vec![], - [ - 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, - 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::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - 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, - 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::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - 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, - 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, - 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, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - 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, - 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::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - 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 = "A sub-identity was removed from an identity and the deposit freed."] + pub struct SubIdentityRemoved { + 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"; + 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: 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"; + const EVENT: &'static str = "SubIdentityRevoked"; + } + } + pub mod storage { + use super::runtime_types; + pub mod 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 type Param0 = ::subxt::utils::AccountId32; } - #[doc = " The number of rounds which have passed."] - pub fn round_count( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - 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, - ], - ) + pub mod super_of { + use super::runtime_types; + pub type SuperOf = ( + ::subxt::utils::AccountId32, + runtime_types::pallet_identity::types::Data, + ); + pub type Param0 = ::subxt::utils::AccountId32; } - #[doc = " The current bids, stored ordered by the value of the bid."] - pub fn bids( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - 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 mod subs_of { + use super::runtime_types; + pub type SubsOf = ( + ::core::primitive::u128, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::subxt::utils::AccountId32, + >, + ); + pub type Param0 = ::subxt::utils::AccountId32; } - pub fn candidates_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - 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 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 fn candidates( + } + 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( &self, - _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::candidates::Candidates, - ::subxt::storage::address::Yes, + types::identity_of::IdentityOf, (), (), - > { - ::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, - types::skeptic::Skeptic, ::subxt::storage::address::Yes, - (), - (), > { ::subxt::storage::address::Address::new_static( - "Society", - "Skeptic", + "Identity", + "IdentityOf", 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, + 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 = " Double map from Candidate -> Voter -> (Maybe) Vote."] - pub fn votes_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::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::votes::Votes, - (), - (), + types::identity_of::IdentityOf, ::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::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::votes::Votes, (), (), - ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Society", - "Votes", + "Identity", + "IdentityOf", 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, - _1: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - 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, + 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 = " Clear-cursor for Vote, map from Candidate -> (Maybe) Cursor."] - pub fn vote_clear_cursor_iter( + #[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, - types::vote_clear_cursor::VoteClearCursor, + types::super_of::SuperOf, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Society", - "VoteClearCursor", + "Identity", + "SuperOf", 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, + 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 = " Clear-cursor for Vote, map from Candidate -> (Maybe) Cursor."] - pub fn vote_clear_cursor( + #[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, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::vote_clear_cursor::VoteClearCursor, + types::super_of::SuperOf, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( - "Society", - "VoteClearCursor", + "Identity", + "SuperOf", 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, + 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 = " 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( + #[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, - types::next_head::NextHead, - ::subxt::storage::address::Yes, - (), + types::subs_of::SubsOf, (), - > { - ::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, - types::challenge_round_count::ChallengeRoundCount, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, - (), > { ::subxt::storage::address::Address::new_static( - "Society", - "ChallengeRoundCount", + "Identity", + "SubsOf", 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, + 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 defending member currently being challenged, along with a running tally of votes."] - pub fn defending( + #[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::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::defending::Defending, + types::subs_of::SubsOf, ::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, - 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, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::defender_votes::DefenderVotes, (), - (), - ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Society", - "DefenderVotes", + "Identity", + "SubsOf", 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, + 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 = " Votes for the defender, keyed by challenge round."] - pub fn defender_votes( + #[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, - _0: impl ::std::borrow::Borrow, - _1: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::defender_votes::DefenderVotes, + types::registrars::Registrars, + ::subxt::storage::address::Yes, ::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()), - ], + "Identity", + "Registrars", + 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, + 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, ], ) } @@ -28216,39 +16923,13 @@ pub mod api { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - #[doc = " The societies's pallet id"] - pub fn pallet_id( + #[doc = " The amount held on deposit for a registered identity"] + pub fn basic_deposit( &self, - ) -> ::subxt::constants::Address - { - ::subxt::constants::Address::new_static( - "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, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[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<::core::primitive::u128> { ::subxt::constants::Address::new_static( - "Society", - "PeriodSpend", + "Identity", + "BasicDeposit", [ 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, @@ -28256,69 +16937,41 @@ pub mod api { ], ) } - #[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> { + #[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( - "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, + "Identity", + "ByteDeposit", + [ + 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 between membership challenges."] - pub fn challenge_period( + #[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::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( - "Society", - "ChallengePeriod", + "Identity", + "SubAccountDeposit", [ - 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 = " The maximum number of payouts a member may have waiting unclaimed."] - pub fn max_payouts(&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( - "Society", - "MaxPayouts", + "Identity", + "MaxSubAccounts", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, @@ -28327,11 +16980,14 @@ pub mod api { ], ) } - #[doc = " The maximum number of bids at once."] - pub fn max_bids(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + #[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<::core::primitive::u32> { ::subxt::constants::Address::new_static( - "Society", - "MaxBids", + "Identity", + "MaxRegistrars", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, @@ -28343,13 +16999,13 @@ pub mod api { } } } - pub mod recovery { + pub mod society { use super::root_mod; use super::runtime_types; #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_recovery::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_recovery::pallet::Call; + pub type Call = runtime_types::pallet_society::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; @@ -28366,19 +17022,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 AsRecovered { - pub account: as_recovered::Account, - pub call: ::std::boxed::Box, + #[doc = "See [`Pallet::bid`]."] + pub struct Bid { + pub value: bid::Value, } - pub mod as_recovered { + pub mod bid { use super::runtime_types; - pub type Account = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Call = runtime_types::rococo_runtime::RuntimeCall; + pub type Value = ::core::primitive::u128; } - impl ::subxt::blocks::StaticExtrinsic for AsRecovered { - const PALLET: &'static str = "Recovery"; - const CALL: &'static str = "as_recovered"; + impl ::subxt::blocks::StaticExtrinsic for Bid { + const PALLET: &'static str = "Society"; + const CALL: &'static str = "bid"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -28390,19 +17044,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 SetRecovered { - pub lost: set_recovered::Lost, - pub rescuer: set_recovered::Rescuer, + #[doc = "See [`Pallet::unbid`]."] + pub struct Unbid; + impl ::subxt::blocks::StaticExtrinsic for Unbid { + const PALLET: &'static str = "Society"; + const CALL: &'static str = "unbid"; } - pub mod set_recovered { + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + 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 = "See [`Pallet::vouch`]."] + pub struct Vouch { + pub who: vouch::Who, + pub value: vouch::Value, + pub tip: vouch::Tip, + } + pub mod vouch { use super::runtime_types; - pub type Lost = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Rescuer = + 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"; + 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")] + #[doc = "See [`Pallet::unvouch`]."] + 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, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + 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 = "See [`Pallet::vote`]."] + pub struct Vote { + 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 SetRecovered { - const PALLET: &'static str = "Recovery"; - const CALL: &'static str = "set_recovered"; + impl ::subxt::blocks::StaticExtrinsic for Vote { + const PALLET: &'static str = "Society"; + const CALL: &'static str = "vote"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -28414,20 +17127,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 CreateRecovery { - pub friends: create_recovery::Friends, - pub threshold: create_recovery::Threshold, - pub delay_period: create_recovery::DelayPeriod, + #[doc = "See [`Pallet::defender_vote`]."] + pub struct DefenderVote { + pub approve: defender_vote::Approve, } - pub mod create_recovery { + pub mod defender_vote { 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 type Approve = ::core::primitive::bool; } - impl ::subxt::blocks::StaticExtrinsic for CreateRecovery { - const PALLET: &'static str = "Recovery"; - const CALL: &'static str = "create_recovery"; + impl ::subxt::blocks::StaticExtrinsic for DefenderVote { + const PALLET: &'static str = "Society"; + const CALL: &'static str = "defender_vote"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -28439,17 +17149,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 InitiateRecovery { - pub account: initiate_recovery::Account, + #[doc = "See [`Pallet::payout`]."] + pub struct Payout; + impl ::subxt::blocks::StaticExtrinsic for Payout { + const PALLET: &'static str = "Society"; + const CALL: &'static str = "payout"; } - pub mod initiate_recovery { + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + 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 = "See [`Pallet::waive_repay`]."] + pub struct WaiveRepay { + pub amount: waive_repay::Amount, + } + pub mod waive_repay { use super::runtime_types; - pub type Account = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Amount = ::core::primitive::u128; } - impl ::subxt::blocks::StaticExtrinsic for InitiateRecovery { - const PALLET: &'static str = "Recovery"; - const CALL: &'static str = "initiate_recovery"; + impl ::subxt::blocks::StaticExtrinsic for WaiveRepay { + const PALLET: &'static str = "Society"; + const CALL: &'static str = "waive_repay"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -28461,19 +17187,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 VouchRecovery { - pub lost: vouch_recovery::Lost, - pub rescuer: vouch_recovery::Rescuer, + #[doc = "See [`Pallet::found_society`]."] + pub struct FoundSociety { + 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 vouch_recovery { + pub mod found_society { use super::runtime_types; - pub type Lost = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Rescuer = + 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 VouchRecovery { - const PALLET: &'static str = "Recovery"; - const CALL: &'static str = "vouch_recovery"; + impl ::subxt::blocks::StaticExtrinsic for FoundSociety { + const PALLET: &'static str = "Society"; + const CALL: &'static str = "found_society"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -28485,17 +17220,35 @@ pub mod 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 ClaimRecovery { - pub account: claim_recovery::Account, + #[doc = "See [`Pallet::dissolve`]."] + pub struct Dissolve; + impl ::subxt::blocks::StaticExtrinsic for Dissolve { + const PALLET: &'static str = "Society"; + const CALL: &'static str = "dissolve"; } - pub mod claim_recovery { + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + 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 = "See [`Pallet::judge_suspended_member`]."] + pub struct JudgeSuspendedMember { + pub who: judge_suspended_member::Who, + pub forgive: judge_suspended_member::Forgive, + } + pub mod judge_suspended_member { use super::runtime_types; - pub type Account = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Forgive = ::core::primitive::bool; } - impl ::subxt::blocks::StaticExtrinsic for ClaimRecovery { - const PALLET: &'static str = "Recovery"; - const CALL: &'static str = "claim_recovery"; + impl ::subxt::blocks::StaticExtrinsic for JudgeSuspendedMember { + const PALLET: &'static str = "Society"; + const CALL: &'static str = "judge_suspended_member"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -28507,17 +17260,23 @@ pub mod 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 CloseRecovery { - pub rescuer: close_recovery::Rescuer, + #[doc = "See [`Pallet::set_parameters`]."] + pub struct SetParameters { + 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 close_recovery { + pub mod set_parameters { use super::runtime_types; - pub type Rescuer = - ::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; } - impl ::subxt::blocks::StaticExtrinsic for CloseRecovery { - const PALLET: &'static str = "Recovery"; - const CALL: &'static str = "close_recovery"; + impl ::subxt::blocks::StaticExtrinsic for SetParameters { + const PALLET: &'static str = "Society"; + const CALL: &'static str = "set_parameters"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -28529,10 +17288,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 RemoveRecovery; - impl ::subxt::blocks::StaticExtrinsic for RemoveRecovery { - const PALLET: &'static str = "Recovery"; - const CALL: &'static str = "remove_recovery"; + #[doc = "See [`Pallet::punish_skeptic`]."] + 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, @@ -28544,185 +17304,697 @@ pub mod 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 CancelRecovered { - pub account: cancel_recovered::Account, + #[doc = "See [`Pallet::claim_membership`]."] + 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")] + #[doc = "See [`Pallet::bestow_membership`]."] + pub struct BestowMembership { + 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"; + 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")] + #[doc = "See [`Pallet::kick_candidate`]."] + pub struct KickCandidate { + 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"; + 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")] + #[doc = "See [`Pallet::resign_candidacy`]."] + 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")] + #[doc = "See [`Pallet::drop_candidate`]."] + pub struct DropCandidate { + 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"; + 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")] + #[doc = "See [`Pallet::cleanup_candidacy`]."] + pub struct CleanupCandidacy { + 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"; + 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")] + #[doc = "See [`Pallet::cleanup_challenge`]."] + pub struct CleanupChallenge { + 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"; + const CALL: &'static str = "cleanup_challenge"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::bid`]."] + pub fn bid(&self, value: types::bid::Value) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Society", + "bid", + types::Bid { value }, + [ + 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::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, + who: types::vouch::Who, + value: types::vouch::Value, + tip: types::vouch::Tip, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "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: types::vote::Candidate, + approve: 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: 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, + ], + ) } - pub mod cancel_recovered { - use super::runtime_types; - pub type Account = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + #[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, + ], + ) } - impl ::subxt::blocks::StaticExtrinsic for CancelRecovered { - const PALLET: &'static str = "Recovery"; - const CALL: &'static str = "cancel_recovered"; + #[doc = "See [`Pallet::waive_repay`]."] + pub fn waive_repay( + &self, + amount: 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, + ], + ) } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::as_recovered`]."] - pub fn as_recovered( + #[doc = "See [`Pallet::found_society`]."] + pub fn found_society( &self, - account: types::as_recovered::Account, - call: types::as_recovered::Call, - ) -> ::subxt::tx::Payload { + 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( - "Recovery", - "as_recovered", - types::AsRecovered { - account, - call: ::std::boxed::Box::new(call), + "Society", + "found_society", + types::FoundSociety { + founder, + max_members, + max_intake, + max_strikes, + candidate_deposit, + rules, }, [ - 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, + 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::set_recovered`]."] - pub fn set_recovered( + #[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, - lost: types::set_recovered::Lost, - rescuer: types::set_recovered::Rescuer, - ) -> ::subxt::tx::Payload { + who: types::judge_suspended_member::Who, + forgive: types::judge_suspended_member::Forgive, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Recovery", - "set_recovered", - types::SetRecovered { lost, rescuer }, + "Society", + "judge_suspended_member", + types::JudgeSuspendedMember { who, forgive }, [ - 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, + 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::create_recovery`]."] - pub fn create_recovery( + #[doc = "See [`Pallet::set_parameters`]."] + pub fn set_parameters( &self, - friends: types::create_recovery::Friends, - threshold: types::create_recovery::Threshold, - delay_period: types::create_recovery::DelayPeriod, - ) -> ::subxt::tx::Payload { + 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( - "Recovery", - "create_recovery", - types::CreateRecovery { - friends, - threshold, - delay_period, + "Society", + "set_parameters", + types::SetParameters { + max_members, + max_intake, + max_strikes, + candidate_deposit, }, [ - 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, + 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::initiate_recovery`]."] - pub fn initiate_recovery( - &self, - account: types::initiate_recovery::Account, - ) -> ::subxt::tx::Payload { + #[doc = "See [`Pallet::punish_skeptic`]."] + pub fn punish_skeptic(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Recovery", - "initiate_recovery", - types::InitiateRecovery { account }, + "Society", + "punish_skeptic", + types::PunishSkeptic {}, [ - 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, + 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::vouch_recovery`]."] - pub fn vouch_recovery( + #[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, - lost: types::vouch_recovery::Lost, - rescuer: types::vouch_recovery::Rescuer, - ) -> ::subxt::tx::Payload { + candidate: types::bestow_membership::Candidate, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Recovery", - "vouch_recovery", - types::VouchRecovery { lost, rescuer }, + "Society", + "bestow_membership", + types::BestowMembership { candidate }, [ - 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, + 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::claim_recovery`]."] - pub fn claim_recovery( + #[doc = "See [`Pallet::kick_candidate`]."] + pub fn kick_candidate( &self, - account: types::claim_recovery::Account, - ) -> ::subxt::tx::Payload { + candidate: types::kick_candidate::Candidate, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Recovery", - "claim_recovery", - types::ClaimRecovery { account }, + "Society", + "kick_candidate", + types::KickCandidate { candidate }, [ - 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, + 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::close_recovery`]."] - pub fn close_recovery( + #[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, - rescuer: types::close_recovery::Rescuer, - ) -> ::subxt::tx::Payload { + candidate: types::drop_candidate::Candidate, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Recovery", - "close_recovery", - types::CloseRecovery { rescuer }, + "Society", + "drop_candidate", + types::DropCandidate { candidate }, [ - 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, + 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::remove_recovery`]."] - pub fn remove_recovery(&self) -> ::subxt::tx::Payload { + #[doc = "See [`Pallet::cleanup_candidacy`]."] + pub fn cleanup_candidacy( + &self, + candidate: types::cleanup_candidacy::Candidate, + max: types::cleanup_candidacy::Max, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Recovery", - "remove_recovery", - types::RemoveRecovery {}, + "Society", + "cleanup_candidacy", + types::CleanupCandidacy { candidate, max }, [ - 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, + 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::cancel_recovered`]."] - pub fn cancel_recovered( + #[doc = "See [`Pallet::cleanup_challenge`]."] + pub fn cleanup_challenge( &self, - account: types::cancel_recovered::Account, - ) -> ::subxt::tx::Payload { + challenge_round: types::cleanup_challenge::ChallengeRound, + max: types::cleanup_challenge::Max, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Recovery", - "cancel_recovered", - types::CancelRecovered { account }, + "Society", + "cleanup_challenge", + types::CleanupChallenge { + challenge_round, + max, + }, [ - 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, + 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 = "Events type."] - pub type Event = runtime_types::pallet_recovery::pallet::Event; - pub mod events { - use super::runtime_types; + } + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_society::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 society is founded by the given identity."] + pub struct Founded { + 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"; + const EVENT: &'static str = "Founded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + 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. The given account is the candidate's ID and their offer"] + #[doc = "is the second."] + pub struct Bid { + 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"; + 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: 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"; + 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: 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"; + 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: 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"; + 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: 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"; + 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: 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"; + 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: 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"; + 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: 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"; + const EVENT: &'static str = "CandidateSuspended"; + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -28733,17 +18005,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 recovery process has been set up for an account."] - pub struct RecoveryCreated { - pub account: recovery_created::Account, + #[doc = "A member has been suspended"] + pub struct MemberSuspended { + pub member: member_suspended::Member, } - pub mod recovery_created { + pub mod member_suspended { use super::runtime_types; - pub type Account = ::subxt::utils::AccountId32; + pub type Member = ::subxt::utils::AccountId32; } - impl ::subxt::events::StaticEvent for RecoveryCreated { - const PALLET: &'static str = "Recovery"; - const EVENT: &'static str = "RecoveryCreated"; + impl ::subxt::events::StaticEvent for MemberSuspended { + const PALLET: &'static str = "Society"; + const EVENT: &'static str = "MemberSuspended"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -28755,19 +18027,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 recovery process has been initiated for lost account by rescuer account."] - pub struct RecoveryInitiated { - pub lost_account: recovery_initiated::LostAccount, - pub rescuer_account: recovery_initiated::RescuerAccount, + #[doc = "A member has been challenged"] + pub struct Challenged { + pub member: challenged::Member, } - pub mod recovery_initiated { + pub mod challenged { use super::runtime_types; - pub type LostAccount = ::subxt::utils::AccountId32; - pub type RescuerAccount = ::subxt::utils::AccountId32; + pub type Member = ::subxt::utils::AccountId32; } - impl ::subxt::events::StaticEvent for RecoveryInitiated { - const PALLET: &'static str = "Recovery"; - const EVENT: &'static str = "RecoveryInitiated"; + impl ::subxt::events::StaticEvent for Challenged { + const PALLET: &'static str = "Society"; + const EVENT: &'static str = "Challenged"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -28779,21 +18049,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")] - #[doc = "A recovery process for lost account by rescuer account has been vouched for by sender."] - pub struct RecoveryVouched { - pub lost_account: recovery_vouched::LostAccount, - pub rescuer_account: recovery_vouched::RescuerAccount, - pub sender: recovery_vouched::Sender, + #[doc = "A vote has been placed"] + pub struct Vote { + pub candidate: vote::Candidate, + pub voter: vote::Voter, + pub vote: vote::Vote, } - pub mod recovery_vouched { + pub mod vote { use super::runtime_types; - pub type LostAccount = ::subxt::utils::AccountId32; - pub type RescuerAccount = ::subxt::utils::AccountId32; - pub type Sender = ::subxt::utils::AccountId32; + pub type Candidate = ::subxt::utils::AccountId32; + pub type Voter = ::subxt::utils::AccountId32; + pub type Vote = ::core::primitive::bool; } - impl ::subxt::events::StaticEvent for RecoveryVouched { - const PALLET: &'static str = "Recovery"; - const EVENT: &'static str = "RecoveryVouched"; + impl ::subxt::events::StaticEvent for Vote { + const PALLET: &'static str = "Society"; + const EVENT: &'static str = "Vote"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -28805,19 +18075,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 recovery process for lost account by rescuer account has been closed."] - pub struct RecoveryClosed { - pub lost_account: recovery_closed::LostAccount, - pub rescuer_account: recovery_closed::RescuerAccount, + #[doc = "A vote has been placed for a defending member"] + pub struct DefenderVote { + pub voter: defender_vote::Voter, + pub vote: defender_vote::Vote, } - pub mod recovery_closed { + pub mod defender_vote { use super::runtime_types; - pub type LostAccount = ::subxt::utils::AccountId32; - pub type RescuerAccount = ::subxt::utils::AccountId32; + pub type Voter = ::subxt::utils::AccountId32; + pub type Vote = ::core::primitive::bool; } - impl ::subxt::events::StaticEvent for RecoveryClosed { - const PALLET: &'static str = "Recovery"; - const EVENT: &'static str = "RecoveryClosed"; + impl ::subxt::events::StaticEvent for DefenderVote { + const PALLET: &'static str = "Society"; + const EVENT: &'static str = "DefenderVote"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -28829,19 +18099,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 = "Lost account has been successfully recovered by rescuer account."] - pub struct AccountRecovered { - pub lost_account: account_recovered::LostAccount, - pub rescuer_account: account_recovered::RescuerAccount, + #[doc = "A new set of \\[params\\] has been set for the group."] + pub struct NewParams { + pub params: new_params::Params, } - pub mod account_recovered { + pub mod new_params { use super::runtime_types; - pub type LostAccount = ::subxt::utils::AccountId32; - pub type RescuerAccount = ::subxt::utils::AccountId32; + pub type Params = + runtime_types::pallet_society::GroupParams<::core::primitive::u128>; } - impl ::subxt::events::StaticEvent for AccountRecovered { - const PALLET: &'static str = "Recovery"; - const EVENT: &'static str = "AccountRecovered"; + impl ::subxt::events::StaticEvent for NewParams { + const PALLET: &'static str = "Society"; + const EVENT: &'static str = "NewParams"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -28853,717 +18122,868 @@ pub mod 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 recovery process has been removed for an account."] - pub struct RecoveryRemoved { - pub lost_account: recovery_removed::LostAccount, + #[doc = "Society is unfounded."] + pub struct Unfounded { + pub founder: unfounded::Founder, } - pub mod recovery_removed { + pub mod unfounded { use super::runtime_types; - pub type LostAccount = ::subxt::utils::AccountId32; + pub type Founder = ::subxt::utils::AccountId32; } - impl ::subxt::events::StaticEvent for RecoveryRemoved { - const PALLET: &'static str = "Recovery"; - const EVENT: &'static str = "RecoveryRemoved"; + impl ::subxt::events::StaticEvent for Unfounded { + const PALLET: &'static str = "Society"; + const EVENT: &'static str = "Unfounded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + 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: 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"; + 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: 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"; + const EVENT: &'static str = "Elevated"; } } pub mod storage { use super::runtime_types; pub mod types { use super::runtime_types; - pub mod recoverable { + pub mod parameters { use super::runtime_types; - pub type Recoverable = runtime_types::pallet_recovery::RecoveryConfig< - ::core::primitive::u32, + 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 type Param0 = ::subxt::utils::AccountId32; + } + 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< - ::subxt::utils::AccountId32, - >, + runtime_types::bounded_collections::bounded_vec::BoundedVec<( + ::core::primitive::u32, + ::core::primitive::u128, + )>, >; pub type Param0 = ::subxt::utils::AccountId32; } - pub mod active_recoveries { + pub mod member_count { 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< + pub type MemberCount = ::core::primitive::u32; + } + 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; + 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 type Param0 = ::subxt::utils::AccountId32; + } + 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 type Param0 = ::subxt::utils::AccountId32; pub type Param1 = ::subxt::utils::AccountId32; } - pub mod proxy { + pub mod vote_clear_cursor { use super::runtime_types; - pub type Proxy = ::subxt::utils::AccountId32; + pub type VoteClearCursor = + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; pub type Param0 = ::subxt::utils::AccountId32; } + 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 type Param0 = ::core::primitive::u32; + pub type Param1 = ::subxt::utils::AccountId32; + } } pub struct StorageApi; impl StorageApi { - #[doc = " The set of recoverable accounts and their recovery configuration."] - pub fn recoverable_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, + types::parameters::Parameters, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Society", + "Parameters", + vec![], + [ + 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 = " Amount of our account balance that is specifically for the next round's bid(s)."] + pub fn pot( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::pot::Pot, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Society", + "Pot", + vec![], + [ + 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 = " The first member."] + pub fn founder( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::founder::Founder, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Society", + "Founder", + vec![], + [ + 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 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, + types::head::Head, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Society", + "Head", + vec![], + [ + 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 = " 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, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::rules::Rules, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Society", + "Rules", + vec![], + [ + 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, + 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::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + 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, + 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::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + 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, + 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, - types::recoverable::Recoverable, + types::member_by_index::MemberByIndex, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Recovery", - "Recoverable", + "Society", + "MemberByIndex", vec![], [ - 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, + 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 recoverable accounts and their recovery configuration."] - pub fn recoverable( + #[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, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::recoverable::Recoverable, + types::member_by_index::MemberByIndex, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( - "Recovery", - "Recoverable", + "Society", + "MemberByIndex", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 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, + 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 = " 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_iter( + #[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, - types::active_recoveries::ActiveRecoveries, + types::suspended_members::SuspendedMembers, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Recovery", - "ActiveRecoveries", + "Society", + "SuspendedMembers", vec![], [ - 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, + 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 = " 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_iter1( + #[doc = " The set of suspended members, with their old membership record."] + pub fn suspended_members( &self, - _0: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::active_recoveries::ActiveRecoveries, + types::suspended_members::SuspendedMembers, + ::subxt::storage::address::Yes, (), (), - ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Recovery", - "ActiveRecoveries", + "Society", + "SuspendedMembers", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 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, + 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 = " 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( + #[doc = " The number of rounds which have passed."] + pub fn round_count( &self, - _0: impl ::std::borrow::Borrow, - _1: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::active_recoveries::ActiveRecoveries, + types::round_count::RoundCount, + ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, - (), (), > { ::subxt::storage::address::Address::new_static( - "Recovery", - "ActiveRecoveries", - vec![ - ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), - ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + "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, + types::bids::Bids, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Society", + "Bids", + vec![], [ - 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, + 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, ], ) } - #[doc = " The list of allowed proxy accounts."] - #[doc = ""] - #[doc = " Map from the user who can access it to the recovered account."] - pub fn proxy_iter( + pub fn candidates_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::proxy::Proxy, + types::candidates::Candidates, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Recovery", - "Proxy", + "Society", + "Candidates", vec![], [ - 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, + 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 list of allowed proxy accounts."] - #[doc = ""] - #[doc = " Map from the user who can access it to the recovered account."] - pub fn proxy( + pub fn candidates( &self, - _0: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::proxy::Proxy, + types::candidates::Candidates, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( - "Recovery", - "Proxy", + "Society", + "Candidates", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 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, + 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 mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[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( + #[doc = " The current skeptic."] + pub fn skeptic( &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "Recovery", - "ConfigDepositBase", + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::skeptic::Skeptic, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Society", + "Skeptic", + vec![], [ - 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, + 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 = " 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( + #[doc = " Double map from Candidate -> Voter -> (Maybe) Vote."] + pub fn votes_iter( &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "Recovery", - "FriendDepositFactor", - [ - 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 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( - "Recovery", - "MaxFriends", + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::votes::Votes, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Society", + "Votes", + 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, + 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 = " 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( + #[doc = " Double map from Candidate -> Voter -> (Maybe) Vote."] + pub fn votes_iter1( &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "Recovery", - "RecoveryDeposit", - [ - 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 vesting { - use super::root_mod; - use super::runtime_types; - #[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_vesting::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 Vest; - impl ::subxt::blocks::StaticExtrinsic for Vest { - const PALLET: &'static str = "Vesting"; - const CALL: &'static str = "vest"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (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: 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"; - const CALL: &'static str = "vest_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 VestedTransfer { - 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"; - const CALL: &'static str = "vested_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 ForceVestedTransfer { - 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"; - const CALL: &'static str = "force_vested_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 MergeSchedules { - 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"; - 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: 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"; - const CALL: &'static str = "force_remove_vesting_schedule"; - } - } - 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 {}, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + 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(), + )], [ - 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, + 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 = "See [`Pallet::vest_other`]."] - pub fn vest_other( + #[doc = " Double map from Candidate -> Voter -> (Maybe) Vote."] + pub fn votes( &self, - target: types::vest_other::Target, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Vesting", - "vest_other", - types::VestOther { target }, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + 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()), + ], [ - 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, + 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 = "See [`Pallet::vested_transfer`]."] - pub fn vested_transfer( + #[doc = " Clear-cursor for Vote, map from Candidate -> (Maybe) Cursor."] + pub fn vote_clear_cursor_iter( &self, - target: types::vested_transfer::Target, - schedule: types::vested_transfer::Schedule, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Vesting", - "vested_transfer", - types::VestedTransfer { target, schedule }, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::vote_clear_cursor::VoteClearCursor, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Society", + "VoteClearCursor", + vec![], [ - 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, + 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 = "See [`Pallet::force_vested_transfer`]."] - pub fn force_vested_transfer( + #[doc = " Clear-cursor for Vote, map from Candidate -> (Maybe) Cursor."] + pub fn vote_clear_cursor( &self, - 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", - "force_vested_transfer", - types::ForceVestedTransfer { - source, - target, - schedule, - }, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + 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(), + )], [ - 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, + 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 = "See [`Pallet::merge_schedules`]."] - pub fn merge_schedules( + #[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, - schedule1_index: types::merge_schedules::Schedule1Index, - schedule2_index: types::merge_schedules::Schedule2Index, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Vesting", - "merge_schedules", - types::MergeSchedules { - schedule1_index, - schedule2_index, - }, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::next_head::NextHead, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Society", + "NextHead", + vec![], [ - 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, + 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 = "See [`Pallet::force_remove_vesting_schedule`]."] - pub fn force_remove_vesting_schedule( + #[doc = " The number of challenge rounds there have been. Used to identify stale DefenderVotes."] + pub fn challenge_round_count( &self, - target: types::force_remove_vesting_schedule::Target, - schedule_index: types::force_remove_vesting_schedule::ScheduleIndex, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Vesting", - "force_remove_vesting_schedule", - types::ForceRemoveVestingSchedule { - target, - schedule_index, - }, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::challenge_round_count::ChallengeRoundCount, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Society", + "ChallengeRoundCount", + vec![], [ - 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, + 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 `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: 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"; - 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: 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"; - const EVENT: &'static str = "VestingCompleted"; - } - } - pub mod storage { - use super::runtime_types; - pub mod 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 type Param0 = ::subxt::utils::AccountId32; - } - pub mod storage_version { - use super::runtime_types; - pub type StorageVersion = runtime_types::pallet_vesting::Releases; + #[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, + 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, + ], + ) } - } - pub struct StorageApi; - impl StorageApi { - #[doc = " Information regarding the vesting of a given account."] - pub fn vesting_iter( + #[doc = " Votes for the defender, keyed by challenge round."] + pub fn defender_votes_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::vesting::Vesting, + types::defender_votes::DefenderVotes, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Vesting", - "Vesting", + "Society", + "DefenderVotes", 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, + 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 = " Information regarding the vesting of a given account."] - pub fn vesting( + #[doc = " Votes for the defender, keyed by challenge round."] + pub fn defender_votes_iter1( &self, - _0: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::vesting::Vesting, - ::subxt::storage::address::Yes, + types::defender_votes::DefenderVotes, (), (), + ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Vesting", - "Vesting", + "Society", + "DefenderVotes", 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, + 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 = " Storage version of the pallet."] - #[doc = ""] - #[doc = " New networks start with latest version, as determined by the genesis build."] - pub fn storage_version( + #[doc = " Votes for the defender, keyed by challenge round."] + pub fn defender_votes( &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::storage_version::StorageVersion, - ::subxt::storage::address::Yes, + types::defender_votes::DefenderVotes, ::subxt::storage::address::Yes, (), + (), > { ::subxt::storage::address::Address::new_static( - "Vesting", - "StorageVersion", - vec![], + "Society", + "DefenderVotes", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], [ - 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, + 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, ], ) } @@ -29573,13 +18993,39 @@ pub mod api { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - #[doc = " The minimum amount transferred to call `vested_transfer`."] - pub fn min_vested_transfer( + #[doc = " The societies's pallet id"] + pub fn pallet_id( &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { + ) -> ::subxt::constants::Address + { ::subxt::constants::Address::new_static( - "Vesting", - "MinVestedTransfer", + "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, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[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, @@ -29587,12 +19033,82 @@ pub mod api { ], ) } - pub fn max_vesting_schedules( + #[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( - "Vesting", - "MaxVestingSchedules", + "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, @@ -29604,13 +19120,13 @@ pub mod api { } } } - pub mod scheduler { + pub mod recovery { 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_recovery::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_recovery::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; @@ -29627,23 +19143,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 Schedule { - pub when: schedule::When, - pub maybe_periodic: schedule::MaybePeriodic, - pub priority: schedule::Priority, - pub call: ::std::boxed::Box, + #[doc = "See [`Pallet::as_recovered`]."] + pub struct AsRecovered { + pub account: as_recovered::Account, + pub call: ::std::boxed::Box, } - pub mod schedule { + pub mod as_recovered { 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 Account = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; pub type Call = runtime_types::rococo_runtime::RuntimeCall; } - impl ::subxt::blocks::StaticExtrinsic for Schedule { - const PALLET: &'static str = "Scheduler"; - const CALL: &'static str = "schedule"; + impl ::subxt::blocks::StaticExtrinsic for AsRecovered { + const PALLET: &'static str = "Recovery"; + const CALL: &'static str = "as_recovered"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -29655,18 +19168,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 Cancel { - pub when: cancel::When, - pub index: cancel::Index, + #[doc = "See [`Pallet::set_recovered`]."] + pub struct SetRecovered { + pub lost: set_recovered::Lost, + pub rescuer: set_recovered::Rescuer, } - pub mod cancel { + pub mod set_recovered { use super::runtime_types; - pub type When = ::core::primitive::u32; - pub type Index = ::core::primitive::u32; + pub type Lost = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Rescuer = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; } - impl ::subxt::blocks::StaticExtrinsic for Cancel { - const PALLET: &'static str = "Scheduler"; - const CALL: &'static str = "cancel"; + impl ::subxt::blocks::StaticExtrinsic for SetRecovered { + const PALLET: &'static str = "Recovery"; + const CALL: &'static str = "set_recovered"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -29678,25 +19193,92 @@ pub mod 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 ScheduleNamed { - 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, + #[doc = "See [`Pallet::create_recovery`]."] + pub struct CreateRecovery { + pub friends: create_recovery::Friends, + pub threshold: create_recovery::Threshold, + pub delay_period: create_recovery::DelayPeriod, } - pub mod schedule_named { + pub mod create_recovery { 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 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"; + const CALL: &'static str = "create_recovery"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + 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 = "See [`Pallet::initiate_recovery`]."] + pub struct InitiateRecovery { + 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"; + const CALL: &'static str = "initiate_recovery"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + 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 = "See [`Pallet::vouch_recovery`]."] + pub struct VouchRecovery { + 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"; + const CALL: &'static str = "vouch_recovery"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + 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 = "See [`Pallet::claim_recovery`]."] + pub struct ClaimRecovery { + pub account: claim_recovery::Account, } - impl ::subxt::blocks::StaticExtrinsic for ScheduleNamed { - const PALLET: &'static str = "Scheduler"; - const CALL: &'static str = "schedule_named"; + 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"; + const CALL: &'static str = "claim_recovery"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -29708,16 +19290,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 CancelNamed { - pub id: cancel_named::Id, + #[doc = "See [`Pallet::close_recovery`]."] + pub struct CloseRecovery { + pub rescuer: close_recovery::Rescuer, } - pub mod cancel_named { + pub mod close_recovery { use super::runtime_types; - pub type Id = [::core::primitive::u8; 32usize]; + pub type Rescuer = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; } - impl ::subxt::blocks::StaticExtrinsic for CancelNamed { - const PALLET: &'static str = "Scheduler"; - const CALL: &'static str = "cancel_named"; + impl ::subxt::blocks::StaticExtrinsic for CloseRecovery { + const PALLET: &'static str = "Recovery"; + const CALL: &'static str = "close_recovery"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -29729,23 +19313,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 ScheduleAfter { - 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"; - const CALL: &'static str = "schedule_after"; + #[doc = "See [`Pallet::remove_recovery`]."] + 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, @@ -29757,170 +19329,184 @@ pub mod 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: 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, + #[doc = "See [`Pallet::cancel_recovered`]."] + pub struct CancelRecovered { + pub account: cancel_recovered::Account, } - pub mod schedule_named_after { + pub mod cancel_recovered { 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 type Account = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; } - impl ::subxt::blocks::StaticExtrinsic for ScheduleNamedAfter { - const PALLET: &'static str = "Scheduler"; - const CALL: &'static str = "schedule_named_after"; + 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::schedule`]."] - pub fn schedule( + #[doc = "See [`Pallet::as_recovered`]."] + pub fn as_recovered( &self, - when: types::schedule::When, - maybe_periodic: types::schedule::MaybePeriodic, - priority: types::schedule::Priority, - call: types::schedule::Call, - ) -> ::subxt::tx::Payload { + account: types::as_recovered::Account, + call: types::as_recovered::Call, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Scheduler", - "schedule", - types::Schedule { - when, - maybe_periodic, - priority, + "Recovery", + "as_recovered", + types::AsRecovered { + account, call: ::std::boxed::Box::new(call), }, [ - 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, + 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::cancel`]."] - pub fn cancel( + #[doc = "See [`Pallet::set_recovered`]."] + pub fn set_recovered( &self, - when: types::cancel::When, - index: types::cancel::Index, - ) -> ::subxt::tx::Payload { + lost: types::set_recovered::Lost, + rescuer: types::set_recovered::Rescuer, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Scheduler", - "cancel", - types::Cancel { when, index }, + "Recovery", + "set_recovered", + types::SetRecovered { lost, rescuer }, [ - 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, + 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::schedule_named`]."] - pub fn schedule_named( + #[doc = "See [`Pallet::create_recovery`]."] + pub fn create_recovery( &self, - 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 { + friends: types::create_recovery::Friends, + threshold: types::create_recovery::Threshold, + delay_period: types::create_recovery::DelayPeriod, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Scheduler", - "schedule_named", - types::ScheduleNamed { - id, - when, - maybe_periodic, - priority, - call: ::std::boxed::Box::new(call), + "Recovery", + "create_recovery", + types::CreateRecovery { + friends, + threshold, + delay_period, }, [ - 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, + 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_named`]."] - pub fn cancel_named( + #[doc = "See [`Pallet::initiate_recovery`]."] + pub fn initiate_recovery( &self, - id: types::cancel_named::Id, - ) -> ::subxt::tx::Payload { + account: types::initiate_recovery::Account, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Scheduler", - "cancel_named", - types::CancelNamed { id }, + "Recovery", + "initiate_recovery", + types::InitiateRecovery { account }, [ - 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, + 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::schedule_after`]."] - pub fn schedule_after( + #[doc = "See [`Pallet::vouch_recovery`]."] + pub fn vouch_recovery( &self, - after: types::schedule_after::After, - maybe_periodic: types::schedule_after::MaybePeriodic, - priority: types::schedule_after::Priority, - call: types::schedule_after::Call, - ) -> ::subxt::tx::Payload { + lost: types::vouch_recovery::Lost, + rescuer: types::vouch_recovery::Rescuer, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Scheduler", - "schedule_after", - types::ScheduleAfter { - after, - maybe_periodic, - priority, - call: ::std::boxed::Box::new(call), - }, + "Recovery", + "vouch_recovery", + types::VouchRecovery { lost, rescuer }, [ - 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, + 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::schedule_named_after`]."] - pub fn schedule_named_after( + #[doc = "See [`Pallet::claim_recovery`]."] + pub fn claim_recovery( &self, - 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 { + account: types::claim_recovery::Account, + ) -> ::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), - }, + "Recovery", + "claim_recovery", + types::ClaimRecovery { account }, + [ + 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::close_recovery`]."] + pub fn close_recovery( + &self, + rescuer: types::close_recovery::Rescuer, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Recovery", + "close_recovery", + types::CloseRecovery { rescuer }, + [ + 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::remove_recovery`]."] + pub fn remove_recovery(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Recovery", + "remove_recovery", + types::RemoveRecovery {}, + [ + 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::cancel_recovered`]."] + pub fn cancel_recovered( + &self, + account: types::cancel_recovered::Account, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Recovery", + "cancel_recovered", + types::CancelRecovered { account }, [ - 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, + 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 = "Events type."] - pub type Event = runtime_types::pallet_scheduler::pallet::Event; + pub type Event = runtime_types::pallet_recovery::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -29933,19 +19519,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 = "Scheduled some task."] - pub struct Scheduled { - pub when: scheduled::When, - pub index: scheduled::Index, + #[doc = "A recovery process has been set up for an account."] + pub struct RecoveryCreated { + pub account: recovery_created::Account, } - pub mod scheduled { + pub mod recovery_created { use super::runtime_types; - pub type When = ::core::primitive::u32; - pub type Index = ::core::primitive::u32; + pub type Account = ::subxt::utils::AccountId32; } - impl ::subxt::events::StaticEvent for Scheduled { - const PALLET: &'static str = "Scheduler"; - const EVENT: &'static str = "Scheduled"; + impl ::subxt::events::StaticEvent for RecoveryCreated { + const PALLET: &'static str = "Recovery"; + const EVENT: &'static str = "RecoveryCreated"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -29957,19 +19541,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 = "Canceled some task."] - pub struct Canceled { - pub when: canceled::When, - pub index: canceled::Index, + #[doc = "A recovery process has been initiated for lost account by rescuer account."] + pub struct RecoveryInitiated { + pub lost_account: recovery_initiated::LostAccount, + pub rescuer_account: recovery_initiated::RescuerAccount, } - pub mod canceled { + pub mod recovery_initiated { use super::runtime_types; - pub type When = ::core::primitive::u32; - pub type Index = ::core::primitive::u32; + pub type LostAccount = ::subxt::utils::AccountId32; + pub type RescuerAccount = ::subxt::utils::AccountId32; } - impl ::subxt::events::StaticEvent for Canceled { - const PALLET: &'static str = "Scheduler"; - const EVENT: &'static str = "Canceled"; + impl ::subxt::events::StaticEvent for RecoveryInitiated { + const PALLET: &'static str = "Recovery"; + const EVENT: &'static str = "RecoveryInitiated"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -29981,22 +19565,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")] - #[doc = "Dispatched some task."] - pub struct Dispatched { - pub task: dispatched::Task, - pub id: dispatched::Id, - pub result: dispatched::Result, + #[doc = "A recovery process for lost account by rescuer account has been vouched for by sender."] + pub struct RecoveryVouched { + pub lost_account: recovery_vouched::LostAccount, + pub rescuer_account: recovery_vouched::RescuerAccount, + pub sender: recovery_vouched::Sender, } - pub mod dispatched { + pub mod recovery_vouched { 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>; + pub type LostAccount = ::subxt::utils::AccountId32; + pub type RescuerAccount = ::subxt::utils::AccountId32; + pub type Sender = ::subxt::utils::AccountId32; } - impl ::subxt::events::StaticEvent for Dispatched { - const PALLET: &'static str = "Scheduler"; - const EVENT: &'static str = "Dispatched"; + impl ::subxt::events::StaticEvent for RecoveryVouched { + const PALLET: &'static str = "Recovery"; + const EVENT: &'static str = "RecoveryVouched"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -30008,19 +19591,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 = "The call for the provided hash was not found so the task has been aborted."] - pub struct CallUnavailable { - pub task: call_unavailable::Task, - pub id: call_unavailable::Id, + #[doc = "A recovery process for lost account by rescuer account has been closed."] + pub struct RecoveryClosed { + pub lost_account: recovery_closed::LostAccount, + pub rescuer_account: recovery_closed::RescuerAccount, } - pub mod call_unavailable { + pub mod recovery_closed { 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 LostAccount = ::subxt::utils::AccountId32; + pub type RescuerAccount = ::subxt::utils::AccountId32; } - impl ::subxt::events::StaticEvent for CallUnavailable { - const PALLET: &'static str = "Scheduler"; - const EVENT: &'static str = "CallUnavailable"; + impl ::subxt::events::StaticEvent for RecoveryClosed { + const PALLET: &'static str = "Recovery"; + const EVENT: &'static str = "RecoveryClosed"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -30032,19 +19615,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 = "The given task was unable to be renewed since the agenda is full at that block."] - pub struct PeriodicFailed { - pub task: periodic_failed::Task, - pub id: periodic_failed::Id, + #[doc = "Lost account has been successfully recovered by rescuer account."] + pub struct AccountRecovered { + pub lost_account: account_recovered::LostAccount, + pub rescuer_account: account_recovered::RescuerAccount, } - pub mod periodic_failed { + pub mod account_recovered { 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 LostAccount = ::subxt::utils::AccountId32; + pub type RescuerAccount = ::subxt::utils::AccountId32; } - impl ::subxt::events::StaticEvent for PeriodicFailed { - const PALLET: &'static str = "Scheduler"; - const EVENT: &'static str = "PeriodicFailed"; + impl ::subxt::events::StaticEvent for AccountRecovered { + const PALLET: &'static str = "Recovery"; + const EVENT: &'static str = "AccountRecovered"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -30056,168 +19639,228 @@ pub mod 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 task can never be executed since it is overweight."] - pub struct PermanentlyOverweight { - pub task: permanently_overweight::Task, - pub id: permanently_overweight::Id, + #[doc = "A recovery process has been removed for an account."] + pub struct RecoveryRemoved { + pub lost_account: recovery_removed::LostAccount, } - pub mod permanently_overweight { + pub mod recovery_removed { 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 LostAccount = ::subxt::utils::AccountId32; } - impl ::subxt::events::StaticEvent for PermanentlyOverweight { - const PALLET: &'static str = "Scheduler"; - const EVENT: &'static str = "PermanentlyOverweight"; + 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 types { use super::runtime_types; - pub mod incomplete_since { + pub mod recoverable { use super::runtime_types; - pub type IncompleteSince = ::core::primitive::u32; + 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 type Param0 = ::subxt::utils::AccountId32; } - pub mod agenda { + pub mod active_recoveries { 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 type ActiveRecoveries = runtime_types::pallet_recovery::ActiveRecovery< + ::core::primitive::u32, + ::core::primitive::u128, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::subxt::utils::AccountId32, >, >; - pub type Param0 = ::core::primitive::u32; + pub type Param0 = ::subxt::utils::AccountId32; + pub type Param1 = ::subxt::utils::AccountId32; } - pub mod lookup { + pub mod proxy { use super::runtime_types; - pub type Lookup = (::core::primitive::u32, ::core::primitive::u32); - pub type Param0 = [::core::primitive::u8; 32usize]; + pub type Proxy = ::subxt::utils::AccountId32; + pub type Param0 = ::subxt::utils::AccountId32; } } pub struct StorageApi; impl StorageApi { - pub fn incomplete_since( + #[doc = " The set of recoverable accounts and their recovery configuration."] + pub fn recoverable_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::incomplete_since::IncompleteSince, + types::recoverable::Recoverable, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Recovery", + "Recoverable", + vec![], + [ + 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 set of recoverable accounts and their recovery configuration."] + pub fn recoverable( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::recoverable::Recoverable, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( - "Scheduler", - "IncompleteSince", + "Recovery", + "Recoverable", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 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 = " 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_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::active_recoveries::ActiveRecoveries, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Recovery", + "ActiveRecoveries", 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, + 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 = " Items to be executed, indexed by the block number that they should be executed on."] - pub fn agenda_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_iter1( &self, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::agenda::Agenda, + types::active_recoveries::ActiveRecoveries, + (), (), - ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Scheduler", - "Agenda", - vec![], + "Recovery", + "ActiveRecoveries", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], [ - 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, + 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 = " Items to be executed, indexed by the block number that they should be executed on."] - pub fn agenda( + #[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, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::agenda::Agenda, - ::subxt::storage::address::Yes, + types::active_recoveries::ActiveRecoveries, ::subxt::storage::address::Yes, (), + (), > { ::subxt::storage::address::Address::new_static( - "Scheduler", - "Agenda", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], + "Recovery", + "ActiveRecoveries", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], [ - 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, + 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 = " Lookup from a name to the block number and index of the task."] + #[doc = " The list of allowed proxy accounts."] #[doc = ""] - #[doc = " For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4"] - #[doc = " identities."] - pub fn lookup_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, - types::lookup::Lookup, + types::proxy::Proxy, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Scheduler", - "Lookup", + "Recovery", + "Proxy", 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, + 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 = " Lookup from a name to the block number and index of the task."] + #[doc = " The list of allowed proxy accounts."] #[doc = ""] - #[doc = " For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4"] - #[doc = " identities."] - pub fn lookup( + #[doc = " Map from the user who can access it to the recovered account."] + pub fn proxy( &self, - _0: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::lookup::Lookup, + types::proxy::Proxy, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( - "Scheduler", - "Lookup", + "Recovery", + "Proxy", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 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, + 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, ], ) } @@ -30227,33 +19870,51 @@ pub mod api { 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 = " 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 - { + ) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( - "Scheduler", - "MaximumWeight", + "Recovery", + "ConfigDepositBase", [ - 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 = " The maximum number of scheduled calls in the queue for a single block."] + #[doc = " The amount of currency needed per additional user when creating a recovery"] + #[doc = " configuration."] #[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 = " 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( - "Scheduler", - "MaxScheduledPerBlock", + "Recovery", + "FriendDepositFactor", + [ + 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 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( + "Recovery", + "MaxFriends", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, @@ -30262,16 +19923,36 @@ pub mod api { ], ) } + #[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<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Recovery", + "RecoveryDeposit", + [ + 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 proxy { + pub mod vesting { use super::root_mod; use super::runtime_types; - #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_proxy::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_proxy::pallet::Call; + pub type Call = runtime_types::pallet_vesting::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; @@ -30288,118 +19969,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 = "See [`Pallet::proxy`]."] - pub struct Proxy { - 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::polkadot_runtime::RuntimeCall; - } - impl ::subxt::blocks::StaticExtrinsic for Proxy { - const PALLET: &'static str = "Proxy"; - const CALL: &'static str = "proxy"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 = "See [`Pallet::add_proxy`]."] - pub struct AddProxy { - 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::polkadot_runtime::ProxyType; - pub type Delay = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for AddProxy { - const PALLET: &'static str = "Proxy"; - const CALL: &'static str = "add_proxy"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 = "See [`Pallet::remove_proxy`]."] - pub struct RemoveProxy { - 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::polkadot_runtime::ProxyType; - pub type Delay = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for RemoveProxy { - const PALLET: &'static str = "Proxy"; - const CALL: &'static str = "remove_proxy"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 = "See [`Pallet::remove_proxies`]."] - pub struct RemoveProxies; - impl ::subxt::blocks::StaticExtrinsic for RemoveProxies { - const PALLET: &'static str = "Proxy"; - const CALL: &'static str = "remove_proxies"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 = "See [`Pallet::create_pure`]."] - pub struct CreatePure { - 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::polkadot_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"; - const CALL: &'static str = "create_pure"; + #[doc = "See [`Pallet::vest`]."] + pub struct Vest; + impl ::subxt::blocks::StaticExtrinsic for Vest { + const PALLET: &'static str = "Vesting"; + const CALL: &'static str = "vest"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -30411,28 +19985,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 = "See [`Pallet::kill_pure`]."] - pub struct KillPure { - pub spawner: kill_pure::Spawner, - pub proxy_type: kill_pure::ProxyType, - pub index: kill_pure::Index, - #[codec(compact)] - pub height: kill_pure::Height, - #[codec(compact)] - pub ext_index: kill_pure::ExtIndex, + #[doc = "See [`Pallet::vest_other`]."] + pub struct VestOther { + pub target: vest_other::Target, } - pub mod kill_pure { + pub mod vest_other { use super::runtime_types; - pub type Spawner = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type ProxyType = runtime_types::polkadot_runtime::ProxyType; - pub type Index = ::core::primitive::u16; - pub type Height = ::core::primitive::u32; - pub type ExtIndex = ::core::primitive::u32; + pub type Target = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; } - impl ::subxt::blocks::StaticExtrinsic for KillPure { - const PALLET: &'static str = "Proxy"; - const CALL: &'static str = "kill_pure"; + impl ::subxt::blocks::StaticExtrinsic for VestOther { + const PALLET: &'static str = "Vesting"; + const CALL: &'static str = "vest_other"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -30444,19 +20007,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 = "See [`Pallet::announce`]."] - pub struct Announce { - pub real: announce::Real, - pub call_hash: announce::CallHash, + #[doc = "See [`Pallet::vested_transfer`]."] + pub struct VestedTransfer { + pub target: vested_transfer::Target, + pub schedule: vested_transfer::Schedule, } - pub mod announce { + pub mod vested_transfer { use super::runtime_types; - pub type Real = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type CallHash = ::subxt::utils::H256; + 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 Announce { - const PALLET: &'static str = "Proxy"; - const CALL: &'static str = "announce"; + impl ::subxt::blocks::StaticExtrinsic for VestedTransfer { + const PALLET: &'static str = "Vesting"; + const CALL: &'static str = "vested_transfer"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -30468,19 +20034,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")] - #[doc = "See [`Pallet::remove_announcement`]."] - pub struct RemoveAnnouncement { - pub real: remove_announcement::Real, - pub call_hash: remove_announcement::CallHash, + #[doc = "See [`Pallet::force_vested_transfer`]."] + pub struct ForceVestedTransfer { + pub source: force_vested_transfer::Source, + pub target: force_vested_transfer::Target, + pub schedule: force_vested_transfer::Schedule, } - pub mod remove_announcement { + pub mod force_vested_transfer { use super::runtime_types; - pub type Real = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type CallHash = ::subxt::utils::H256; + 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 RemoveAnnouncement { - const PALLET: &'static str = "Proxy"; - const CALL: &'static str = "remove_announcement"; + impl ::subxt::blocks::StaticExtrinsic for ForceVestedTransfer { + const PALLET: &'static str = "Vesting"; + const CALL: &'static str = "force_vested_transfer"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -30492,20 +20063,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 = "See [`Pallet::reject_announcement`]."] - pub struct RejectAnnouncement { - pub delegate: reject_announcement::Delegate, - pub call_hash: reject_announcement::CallHash, + #[doc = "See [`Pallet::merge_schedules`]."] + pub struct MergeSchedules { + pub schedule1_index: merge_schedules::Schedule1Index, + pub schedule2_index: merge_schedules::Schedule2Index, } - pub mod reject_announcement { + pub mod merge_schedules { use super::runtime_types; - pub type Delegate = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type CallHash = ::subxt::utils::H256; + pub type Schedule1Index = ::core::primitive::u32; + pub type Schedule2Index = ::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 MergeSchedules { + const PALLET: &'static str = "Vesting"; + const CALL: &'static str = "merge_schedules"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -30517,243 +20087,137 @@ pub mod 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 = "See [`Pallet::proxy_announced`]."] - pub struct ProxyAnnounced { - pub delegate: proxy_announced::Delegate, - pub real: proxy_announced::Real, - pub force_proxy_type: proxy_announced::ForceProxyType, - pub call: ::std::boxed::Box, + #[doc = "See [`Pallet::force_remove_vesting_schedule`]."] + pub struct ForceRemoveVestingSchedule { + pub target: force_remove_vesting_schedule::Target, + pub schedule_index: force_remove_vesting_schedule::ScheduleIndex, } - pub mod proxy_announced { + pub mod force_remove_vesting_schedule { 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::polkadot_runtime::RuntimeCall; + pub type Target = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type ScheduleIndex = ::core::primitive::u32; } - impl ::subxt::blocks::StaticExtrinsic for ProxyAnnounced { - const PALLET: &'static str = "Proxy"; - const CALL: &'static str = "proxy_announced"; + 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::proxy`]."] - pub fn proxy( - &self, - real: types::proxy::Real, - force_proxy_type: types::proxy::ForceProxyType, - call: types::proxy::Call, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Proxy", - "proxy", - types::Proxy { - real, - force_proxy_type, - call: ::std::boxed::Box::new(call), - }, - [ - 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, - ], - ) - } - #[doc = "See [`Pallet::add_proxy`]."] - pub fn add_proxy( - &self, - 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", - "add_proxy", - types::AddProxy { - delegate, - proxy_type, - delay, - }, - [ - 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::remove_proxy`]."] - pub fn remove_proxy( - &self, - 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", - "remove_proxy", - types::RemoveProxy { - delegate, - proxy_type, - delay, - }, - [ - 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::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, - proxy_type: types::create_pure::ProxyType, - delay: types::create_pure::Delay, - index: types::create_pure::Index, - ) -> ::subxt::tx::Payload { + #[doc = "See [`Pallet::vest`]."] + pub fn vest(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Proxy", - "create_pure", - types::CreatePure { - proxy_type, - delay, - index, - }, + "Vesting", + "vest", + types::Vest {}, [ - 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, + 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::kill_pure`]."] - pub fn kill_pure( - &self, - 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 { + } + #[doc = "See [`Pallet::vest_other`]."] + pub fn vest_other( + &self, + target: types::vest_other::Target, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Proxy", - "kill_pure", - types::KillPure { - spawner, - proxy_type, - index, - height, - ext_index, - }, + "Vesting", + "vest_other", + types::VestOther { target }, [ - 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, + 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::announce`]."] - pub fn announce( + #[doc = "See [`Pallet::vested_transfer`]."] + pub fn vested_transfer( &self, - real: types::announce::Real, - call_hash: types::announce::CallHash, - ) -> ::subxt::tx::Payload { + target: types::vested_transfer::Target, + schedule: types::vested_transfer::Schedule, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Proxy", - "announce", - types::Announce { real, call_hash }, + "Vesting", + "vested_transfer", + types::VestedTransfer { target, schedule }, [ - 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, + 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::remove_announcement`]."] - pub fn remove_announcement( + #[doc = "See [`Pallet::force_vested_transfer`]."] + pub fn force_vested_transfer( &self, - real: types::remove_announcement::Real, - call_hash: types::remove_announcement::CallHash, - ) -> ::subxt::tx::Payload { + 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( - "Proxy", - "remove_announcement", - types::RemoveAnnouncement { real, call_hash }, + "Vesting", + "force_vested_transfer", + types::ForceVestedTransfer { + source, + target, + schedule, + }, [ - 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, + 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::reject_announcement`]."] - pub fn reject_announcement( + #[doc = "See [`Pallet::merge_schedules`]."] + pub fn merge_schedules( &self, - delegate: types::reject_announcement::Delegate, - call_hash: types::reject_announcement::CallHash, - ) -> ::subxt::tx::Payload { + schedule1_index: types::merge_schedules::Schedule1Index, + schedule2_index: types::merge_schedules::Schedule2Index, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Proxy", - "reject_announcement", - types::RejectAnnouncement { - delegate, - call_hash, + "Vesting", + "merge_schedules", + types::MergeSchedules { + schedule1_index, + schedule2_index, }, [ - 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, + 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::proxy_announced`]."] - pub fn proxy_announced( + #[doc = "See [`Pallet::force_remove_vesting_schedule`]."] + pub fn force_remove_vesting_schedule( &self, - 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 { + target: types::force_remove_vesting_schedule::Target, + schedule_index: types::force_remove_vesting_schedule::ScheduleIndex, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Proxy", - "proxy_announced", - types::ProxyAnnounced { - delegate, - real, - force_proxy_type, - call: ::std::boxed::Box::new(call), + "Vesting", + "force_remove_vesting_schedule", + types::ForceRemoveVestingSchedule { + target, + schedule_index, }, [ - 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, + 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_proxy::pallet::Event; + pub type Event = runtime_types::pallet_vesting::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -30766,101 +20230,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")] - #[doc = "A proxy was executed correctly, with the given."] - pub struct ProxyExecuted { - 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"; - const EVENT: &'static str = "ProxyExecuted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 pure account has been created by new proxy with given"] - #[doc = "disambiguation index and proxy type."] - pub struct PureCreated { - 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::polkadot_runtime::ProxyType; - pub type DisambiguationIndex = ::core::primitive::u16; - } - impl ::subxt::events::StaticEvent for PureCreated { - const PALLET: &'static str = "Proxy"; - const EVENT: &'static str = "PureCreated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 announcement was placed to make a call in the future."] - pub struct Announced { - 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"; - const EVENT: &'static str = "Announced"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 proxy was added."] - pub struct ProxyAdded { - pub delegator: proxy_added::Delegator, - pub delegatee: proxy_added::Delegatee, - pub proxy_type: proxy_added::ProxyType, - pub delay: proxy_added::Delay, + #[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: vesting_updated::Account, + pub unvested: vesting_updated::Unvested, } - pub mod proxy_added { + pub mod vesting_updated { use super::runtime_types; - pub type Delegator = ::subxt::utils::AccountId32; - pub type Delegatee = ::subxt::utils::AccountId32; - pub type ProxyType = runtime_types::polkadot_runtime::ProxyType; - pub type Delay = ::core::primitive::u32; + pub type Account = ::subxt::utils::AccountId32; + pub type Unvested = ::core::primitive::u128; } - impl ::subxt::events::StaticEvent for ProxyAdded { - const PALLET: &'static str = "Proxy"; - const EVENT: &'static str = "ProxyAdded"; + impl ::subxt::events::StaticEvent for VestingUpdated { + const PALLET: &'static str = "Vesting"; + const EVENT: &'static str = "VestingUpdated"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -30872,151 +20255,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")] - #[doc = "A proxy was removed."] - pub struct ProxyRemoved { - pub delegator: proxy_removed::Delegator, - pub delegatee: proxy_removed::Delegatee, - pub proxy_type: proxy_removed::ProxyType, - pub delay: proxy_removed::Delay, + #[doc = "An \\[account\\] has become fully vested."] + pub struct VestingCompleted { + pub account: vesting_completed::Account, } - pub mod proxy_removed { + pub mod vesting_completed { use super::runtime_types; - pub type Delegator = ::subxt::utils::AccountId32; - pub type Delegatee = ::subxt::utils::AccountId32; - pub type ProxyType = runtime_types::polkadot_runtime::ProxyType; - pub type Delay = ::core::primitive::u32; + pub type Account = ::subxt::utils::AccountId32; } - impl ::subxt::events::StaticEvent for ProxyRemoved { - const PALLET: &'static str = "Proxy"; - const EVENT: &'static str = "ProxyRemoved"; + 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 types { use super::runtime_types; - pub mod proxies { + pub mod vesting { 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, - >, + pub type Vesting = runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_vesting::vesting_info::VestingInfo< + ::core::primitive::u128, + ::core::primitive::u32, >, - ::core::primitive::u128, - ); + >; pub type Param0 = ::subxt::utils::AccountId32; } - pub mod announcements { + pub mod storage_version { 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 type Param0 = ::subxt::utils::AccountId32; + pub type StorageVersion = runtime_types::pallet_vesting::Releases; } } 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 = " Information regarding the vesting of a given account."] + pub fn vesting_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::proxies::Proxies, + types::vesting::Vesting, + (), (), - ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Proxy", - "Proxies", + "Vesting", + "Vesting", 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, + 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 = " 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 = " Information regarding the vesting of a given account."] + pub fn vesting( &self, - _0: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::proxies::Proxies, - ::subxt::storage::address::Yes, + types::vesting::Vesting, ::subxt::storage::address::Yes, (), + (), > { ::subxt::storage::address::Address::new_static( - "Proxy", - "Proxies", + "Vesting", + "Vesting", 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, - 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, + 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 = " The announcements made by the proxy (key)."] - pub fn announcements( + #[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, - _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::announcements::Announcements, + types::storage_version::StorageVersion, ::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(), - )], + "Vesting", + "StorageVersion", + 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, + 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, ], ) } @@ -31026,16 +20365,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 minimum amount transferred to call `vested_transfer`."] + pub fn min_vested_transfer( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( - "Proxy", - "ProxyDepositBase", + "Vesting", + "MinVestedTransfer", [ 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, @@ -31043,29 +20379,12 @@ 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( + pub fn max_vesting_schedules( &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", + "Vesting", + "MaxVestingSchedules", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, @@ -31074,69 +20393,75 @@ 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> { - ::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, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) + } + } + } + pub mod scheduler { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Error` enum of this pallet."] + 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::pallet_scheduler::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")] + #[doc = "See [`Pallet::schedule`]."] + pub struct Schedule { + pub when: schedule::When, + pub maybe_periodic: schedule::MaybePeriodic, + pub priority: schedule::Priority, + pub call: ::std::boxed::Box, } - #[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, - ], - ) + 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; } - #[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, - ], - ) + 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")] + #[doc = "See [`Pallet::cancel`]."] + pub struct Cancel { + 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"; + const CALL: &'static str = "cancel"; } - } - } - } - pub mod multisig { - use super::root_mod; - use super::runtime_types; - #[doc = "The `Error` enum of this pallet."] - 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 { - use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -31147,19 +20472,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")] - #[doc = "See [`Pallet::as_multi_threshold_1`]."] - pub struct AsMultiThreshold1 { - pub other_signatories: as_multi_threshold1::OtherSignatories, - pub call: ::std::boxed::Box, + #[doc = "See [`Pallet::schedule_named`]."] + pub struct ScheduleNamed { + 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 as_multi_threshold1 { + pub mod schedule_named { use super::runtime_types; - pub type OtherSignatories = ::std::vec::Vec<::subxt::utils::AccountId32>; - pub type Call = runtime_types::polkadot_runtime::RuntimeCall; + 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 AsMultiThreshold1 { - const PALLET: &'static str = "Multisig"; - const CALL: &'static str = "as_multi_threshold_1"; + impl ::subxt::blocks::StaticExtrinsic for ScheduleNamed { + const PALLET: &'static str = "Scheduler"; + const CALL: &'static str = "schedule_named"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -31171,27 +20503,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 = "See [`Pallet::as_multi`]."] - pub struct AsMulti { - 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, + #[doc = "See [`Pallet::cancel_named`]."] + pub struct CancelNamed { + pub id: cancel_named::Id, } - pub mod as_multi { + pub mod cancel_named { 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::polkadot_runtime::RuntimeCall; - pub type MaxWeight = runtime_types::sp_weights::weight_v2::Weight; + pub type Id = [::core::primitive::u8; 32usize]; } - impl ::subxt::blocks::StaticExtrinsic for AsMulti { - const PALLET: &'static str = "Multisig"; - const CALL: &'static str = "as_multi"; + impl ::subxt::blocks::StaticExtrinsic for CancelNamed { + const PALLET: &'static str = "Scheduler"; + const CALL: &'static str = "cancel_named"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -31203,27 +20525,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")] - #[doc = "See [`Pallet::approve_as_multi`]."] - pub struct ApproveAsMulti { - 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, + #[doc = "See [`Pallet::schedule_after`]."] + pub struct ScheduleAfter { + pub after: schedule_after::After, + pub maybe_periodic: schedule_after::MaybePeriodic, + pub priority: schedule_after::Priority, + pub call: ::std::boxed::Box, } - pub mod approve_as_multi { + pub mod schedule_after { 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 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 ApproveAsMulti { - const PALLET: &'static str = "Multisig"; - const CALL: &'static str = "approve_as_multi"; + impl ::subxt::blocks::StaticExtrinsic for ScheduleAfter { + const PALLET: &'static str = "Scheduler"; + const CALL: &'static str = "schedule_after"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -31235,129 +20554,168 @@ pub mod 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 = "See [`Pallet::cancel_as_multi`]."] - pub struct CancelAsMulti { - 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, + #[doc = "See [`Pallet::schedule_named_after`]."] + pub struct ScheduleNamedAfter { + 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 cancel_as_multi { + pub mod schedule_named_after { 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 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 CancelAsMulti { - const PALLET: &'static str = "Multisig"; - const CALL: &'static str = "cancel_as_multi"; + 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::as_multi_threshold_1`]."] - pub fn as_multi_threshold_1( + #[doc = "See [`Pallet::schedule`]."] + pub fn schedule( &self, - other_signatories: types::as_multi_threshold1::OtherSignatories, - call: types::as_multi_threshold1::Call, - ) -> ::subxt::tx::Payload { + 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( - "Multisig", - "as_multi_threshold_1", - types::AsMultiThreshold1 { - other_signatories, + "Scheduler", + "schedule", + types::Schedule { + when, + maybe_periodic, + priority, call: ::std::boxed::Box::new(call), }, [ - 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, + 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::as_multi`]."] - pub fn as_multi( + #[doc = "See [`Pallet::cancel`]."] + pub fn cancel( &self, - 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 { + when: types::cancel::When, + index: types::cancel::Index, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Multisig", - "as_multi", - types::AsMulti { - threshold, - other_signatories, - maybe_timepoint, + "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, + ], + ) + } + #[doc = "See [`Pallet::schedule_named`]."] + pub fn schedule_named( + &self, + 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", + "schedule_named", + types::ScheduleNamed { + id, + when, + maybe_periodic, + priority, call: ::std::boxed::Box::new(call), - max_weight, }, [ - 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, + 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::approve_as_multi`]."] - pub fn approve_as_multi( + #[doc = "See [`Pallet::cancel_named`]."] + pub fn cancel_named( &self, - 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 { + id: types::cancel_named::Id, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Multisig", - "approve_as_multi", - types::ApproveAsMulti { - threshold, - other_signatories, - maybe_timepoint, - call_hash, - max_weight, + "Scheduler", + "cancel_named", + types::CancelNamed { id }, + [ + 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::schedule_after`]."] + pub fn schedule_after( + &self, + 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", + "schedule_after", + types::ScheduleAfter { + after, + maybe_periodic, + priority, + call: ::std::boxed::Box::new(call), }, [ - 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, + 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::cancel_as_multi`]."] - pub fn cancel_as_multi( + #[doc = "See [`Pallet::schedule_named_after`]."] + pub fn schedule_named_after( &self, - 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 { + 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( - "Multisig", - "cancel_as_multi", - types::CancelAsMulti { - threshold, - other_signatories, - timepoint, - call_hash, + "Scheduler", + "schedule_named_after", + types::ScheduleNamedAfter { + id, + after, + maybe_periodic, + priority, + call: ::std::boxed::Box::new(call), }, [ - 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, + 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::pallet_multisig::pallet::Event; + #[doc = "Events type."] + pub type Event = runtime_types::pallet_scheduler::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -31370,21 +20728,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 new multisig operation has begun."] - pub struct NewMultisig { - pub approving: new_multisig::Approving, - pub multisig: new_multisig::Multisig, - pub call_hash: new_multisig::CallHash, + #[doc = "Scheduled some task."] + pub struct Scheduled { + pub when: scheduled::When, + pub index: scheduled::Index, } - pub mod new_multisig { + pub mod scheduled { use super::runtime_types; - pub type Approving = ::subxt::utils::AccountId32; - pub type Multisig = ::subxt::utils::AccountId32; - pub type CallHash = [::core::primitive::u8; 32usize]; + pub type When = ::core::primitive::u32; + pub type 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 Scheduled { + const PALLET: &'static str = "Scheduler"; + const EVENT: &'static str = "Scheduled"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -31396,24 +20752,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 multisig operation has been approved by someone."] - pub struct MultisigApproval { - pub approving: multisig_approval::Approving, - pub timepoint: multisig_approval::Timepoint, - pub multisig: multisig_approval::Multisig, - pub call_hash: multisig_approval::CallHash, + #[doc = "Canceled some task."] + pub struct Canceled { + pub when: canceled::When, + pub index: canceled::Index, } - pub mod multisig_approval { + pub mod canceled { 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 When = ::core::primitive::u32; + pub type Index = ::core::primitive::u32; } - impl ::subxt::events::StaticEvent for MultisigApproval { - const PALLET: &'static str = "Multisig"; - const EVENT: &'static str = "MultisigApproval"; + impl ::subxt::events::StaticEvent for Canceled { + const PALLET: &'static str = "Scheduler"; + const EVENT: &'static str = "Canceled"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -31425,27 +20776,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 = "A multisig operation has been executed."] - pub struct MultisigExecuted { - 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, + #[doc = "Dispatched some task."] + pub struct Dispatched { + pub task: dispatched::Task, + pub id: dispatched::Id, + pub result: dispatched::Result, } - pub mod multisig_executed { + pub mod dispatched { 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 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 MultisigExecuted { - const PALLET: &'static str = "Multisig"; - const EVENT: &'static str = "MultisigExecuted"; + impl ::subxt::events::StaticEvent for Dispatched { + const PALLET: &'static str = "Scheduler"; + const EVENT: &'static str = "Dispatched"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -31457,111 +20803,216 @@ pub mod 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: multisig_cancelled::Cancelling, - pub timepoint: multisig_cancelled::Timepoint, - pub multisig: multisig_cancelled::Multisig, - pub call_hash: multisig_cancelled::CallHash, + #[doc = "The call for the provided hash was not found so the task has been aborted."] + pub struct CallUnavailable { + pub task: call_unavailable::Task, + pub id: call_unavailable::Id, } - pub mod multisig_cancelled { + pub mod call_unavailable { 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]; + pub type Task = (::core::primitive::u32, ::core::primitive::u32); + pub type Id = ::core::option::Option<[::core::primitive::u8; 32usize]>; } - impl ::subxt::events::StaticEvent for MultisigCancelled { - const PALLET: &'static str = "Multisig"; - const EVENT: &'static str = "MultisigCancelled"; + 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: 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"; + 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: 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"; + const EVENT: &'static str = "PermanentlyOverweight"; } } pub mod storage { use super::runtime_types; pub mod types { use super::runtime_types; - pub mod multisigs { + pub mod incomplete_since { use super::runtime_types; - pub type Multisigs = runtime_types::pallet_multisig::Multisig< - ::core::primitive::u32, - ::core::primitive::u128, - ::subxt::utils::AccountId32, + 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 type Param0 = ::subxt::utils::AccountId32; - pub type Param1 = [::core::primitive::u8; 32usize]; + 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; impl StorageApi { - #[doc = " The set of open multisig operations."] - pub fn multisigs_iter( + pub fn incomplete_since( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::multisigs::Multisigs, + types::incomplete_since::IncompleteSince, + ::subxt::storage::address::Yes, (), (), + > { + ::subxt::storage::address::Address::new_static( + "Scheduler", + "IncompleteSince", + 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, + ], + ) + } + #[doc = " Items to be executed, indexed by the block number that they should be executed on."] + pub fn agenda_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::agenda::Agenda, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Scheduler", + "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, + ], + ) + } + #[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, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::agenda::Agenda, + ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, + (), > { ::subxt::storage::address::Address::new_static( - "Multisig", - "Multisigs", - vec![], + "Scheduler", + "Agenda", + 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, + 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 set of open multisig operations."] - pub fn multisigs_iter1( + #[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, - _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::multisigs::Multisigs, + types::lookup::Lookup, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Multisig", - "Multisigs", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], + "Scheduler", + "Lookup", + 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, + 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 set of open multisig operations."] - pub fn multisigs( + #[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, - _1: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::multisigs::Multisigs, + types::lookup::Lookup, ::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()), - ], + "Scheduler", + "Lookup", + 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, + 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, ], ) } @@ -31571,46 +21022,33 @@ 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> { - ::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, - ], - ) - } - #[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 = " The maximum weight that may be scheduled per block for any dispatchables."] + pub fn maximum_weight( &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { + ) -> ::subxt::constants::Address + { ::subxt::constants::Address::new_static( - "Multisig", - "DepositFactor", + "Scheduler", + "MaximumWeight", [ - 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, + 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 signatories allowed in the multisig."] - pub fn max_signatories( + #[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<::core::primitive::u32> { ::subxt::constants::Address::new_static( - "Multisig", - "MaxSignatories", + "Scheduler", + "MaxScheduledPerBlock", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, @@ -31622,13 +21060,13 @@ pub mod api { } } } - pub mod preimage { + pub mod proxy { use super::root_mod; use super::runtime_types; #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_preimage::pallet::Error; + 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_preimage::pallet::Call; + pub type Call = runtime_types::pallet_proxy::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; @@ -31645,16 +21083,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 NotePreimage { - pub bytes: note_preimage::Bytes, + #[doc = "See [`Pallet::proxy`]."] + pub struct Proxy { + pub real: proxy::Real, + pub force_proxy_type: proxy::ForceProxyType, + pub call: ::std::boxed::Box, } - pub mod note_preimage { + pub mod proxy { use super::runtime_types; - pub type Bytes = ::std::vec::Vec<::core::primitive::u8>; + 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 NotePreimage { - const PALLET: &'static str = "Preimage"; - const CALL: &'static str = "note_preimage"; + impl ::subxt::blocks::StaticExtrinsic for Proxy { + const PALLET: &'static str = "Proxy"; + const CALL: &'static str = "proxy"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -31666,16 +21110,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 UnnotePreimage { - pub hash: unnote_preimage::Hash, + #[doc = "See [`Pallet::add_proxy`]."] + pub struct AddProxy { + pub delegate: add_proxy::Delegate, + pub proxy_type: add_proxy::ProxyType, + pub delay: add_proxy::Delay, } - pub mod unnote_preimage { + pub mod add_proxy { use super::runtime_types; - pub type Hash = ::subxt::utils::H256; + 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 UnnotePreimage { - const PALLET: &'static str = "Preimage"; - const CALL: &'static str = "unnote_preimage"; + impl ::subxt::blocks::StaticExtrinsic for AddProxy { + const PALLET: &'static str = "Proxy"; + const CALL: &'static str = "add_proxy"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -31687,16 +21137,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 RequestPreimage { - pub hash: request_preimage::Hash, + #[doc = "See [`Pallet::remove_proxy`]."] + pub struct RemoveProxy { + pub delegate: remove_proxy::Delegate, + pub proxy_type: remove_proxy::ProxyType, + pub delay: remove_proxy::Delay, } - pub mod request_preimage { + pub mod remove_proxy { use super::runtime_types; - pub type Hash = ::subxt::utils::H256; + 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 RequestPreimage { - const PALLET: &'static str = "Preimage"; - const CALL: &'static str = "request_preimage"; + impl ::subxt::blocks::StaticExtrinsic for RemoveProxy { + const PALLET: &'static str = "Proxy"; + const CALL: &'static str = "remove_proxy"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -31708,16 +21164,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 UnrequestPreimage { - 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"; - const CALL: &'static str = "unrequest_preimage"; + #[doc = "See [`Pallet::remove_proxies`]."] + pub struct RemoveProxies; + impl ::subxt::blocks::StaticExtrinsic for RemoveProxies { + const PALLET: &'static str = "Proxy"; + const CALL: &'static str = "remove_proxies"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -31729,387 +21180,79 @@ pub mod 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 EnsureUpdated { - 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"; - const CALL: &'static str = "ensure_updated"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::note_preimage`]."] - pub fn note_preimage( - &self, - bytes: types::note_preimage::Bytes, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Preimage", - "note_preimage", - types::NotePreimage { bytes }, - [ - 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::unnote_preimage`]."] - pub fn unnote_preimage( - &self, - hash: types::unnote_preimage::Hash, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Preimage", - "unnote_preimage", - types::UnnotePreimage { hash }, - [ - 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::request_preimage`]."] - pub fn request_preimage( - &self, - hash: types::request_preimage::Hash, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Preimage", - "request_preimage", - types::RequestPreimage { hash }, - [ - 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::unrequest_preimage`]."] - pub fn unrequest_preimage( - &self, - hash: types::unrequest_preimage::Hash, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Preimage", - "unrequest_preimage", - types::UnrequestPreimage { hash }, - [ - 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::ensure_updated`]."] - pub fn ensure_updated( - &self, - hashes: types::ensure_updated::Hashes, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Preimage", - "ensure_updated", - types::EnsureUpdated { hashes }, - [ - 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_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: 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"; - 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: 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"; - 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: 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"; - const EVENT: &'static str = "Cleared"; - } - } - pub mod storage { - use super::runtime_types; - pub mod 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 type Param0 = ::subxt::utils::H256; - } - 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 type Param0 = ::subxt::utils::H256; + #[doc = "See [`Pallet::create_pure`]."] + pub struct CreatePure { + pub proxy_type: create_pure::ProxyType, + pub delay: create_pure::Delay, + pub index: create_pure::Index, } - pub mod preimage_for { + pub mod create_pure { use super::runtime_types; - pub type PreimageFor = - 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; - impl StorageApi { - #[doc = " The request status of a given hash."] - pub fn status_for_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::status_for::StatusFor, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Preimage", - "StatusFor", - 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, - ], - ) + pub type ProxyType = runtime_types::rococo_runtime::ProxyType; + pub type Delay = ::core::primitive::u32; + pub type Index = ::core::primitive::u16; } - #[doc = " The request status of a given hash."] - pub fn status_for( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::status_for::StatusFor, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Preimage", - "StatusFor", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 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, - ], - ) + impl ::subxt::blocks::StaticExtrinsic for CreatePure { + const PALLET: &'static str = "Proxy"; + const CALL: &'static str = "create_pure"; } - #[doc = " The request status of a given hash."] - pub fn request_status_for_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::request_status_for::RequestStatusFor, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Preimage", - "RequestStatusFor", - vec![], - [ - 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, - ], - ) + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + 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 = "See [`Pallet::kill_pure`]."] + pub struct KillPure { + pub spawner: kill_pure::Spawner, + pub proxy_type: kill_pure::ProxyType, + pub index: kill_pure::Index, + #[codec(compact)] + pub height: kill_pure::Height, + #[codec(compact)] + pub ext_index: kill_pure::ExtIndex, } - #[doc = " The request status of a given hash."] - pub fn request_status_for( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::request_status_for::RequestStatusFor, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Preimage", - "RequestStatusFor", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 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, - ], - ) + 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 fn preimage_for_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::preimage_for::PreimageFor, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Preimage", - "PreimageFor", - 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, - ], - ) + impl ::subxt::blocks::StaticExtrinsic for KillPure { + const PALLET: &'static str = "Proxy"; + const CALL: &'static str = "kill_pure"; } - pub fn preimage_for_iter1( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::preimage_for::PreimageFor, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Preimage", - "PreimageFor", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 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, - ], - ) + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + 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 = "See [`Pallet::announce`]."] + pub struct Announce { + pub real: announce::Real, + pub call_hash: announce::CallHash, } - pub fn preimage_for( - &self, - _0: impl ::std::borrow::Borrow, - _1: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::preimage_for::PreimageFor, - ::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()), - ], - [ - 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 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"; + const CALL: &'static str = "announce"; } - } - } - } - 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; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -32120,19 +21263,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 Create { - pub asset_kind: ::std::boxed::Box, - pub rate: create::Rate, + #[doc = "See [`Pallet::remove_announcement`]."] + pub struct RemoveAnnouncement { + pub real: remove_announcement::Real, + pub call_hash: remove_announcement::CallHash, } - pub mod create { + pub mod remove_announcement { 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 type Real = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type CallHash = ::subxt::utils::H256; } - impl ::subxt::blocks::StaticExtrinsic for Create { - const PALLET: &'static str = "AssetRate"; - const CALL: &'static str = "create"; + impl ::subxt::blocks::StaticExtrinsic for RemoveAnnouncement { + const PALLET: &'static str = "Proxy"; + const CALL: &'static str = "remove_announcement"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -32144,19 +21287,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 Update { - pub asset_kind: ::std::boxed::Box, - pub rate: update::Rate, + #[doc = "See [`Pallet::reject_announcement`]."] + pub struct RejectAnnouncement { + pub delegate: reject_announcement::Delegate, + pub call_hash: reject_announcement::CallHash, } - pub mod update { + pub mod reject_announcement { 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 type Delegate = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type CallHash = ::subxt::utils::H256; } - impl ::subxt::blocks::StaticExtrinsic for Update { - const PALLET: &'static str = "AssetRate"; - const CALL: &'static str = "update"; + impl ::subxt::blocks::StaticExtrinsic for RejectAnnouncement { + const PALLET: &'static str = "Proxy"; + const CALL: &'static str = "reject_announcement"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -32168,85 +21312,242 @@ pub mod 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 Remove { - pub asset_kind: ::std::boxed::Box, + #[doc = "See [`Pallet::proxy_announced`]."] + pub struct ProxyAnnounced { + pub delegate: proxy_announced::Delegate, + pub real: proxy_announced::Real, + pub force_proxy_type: proxy_announced::ForceProxyType, + pub call: ::std::boxed::Box, } - pub mod remove { + pub mod proxy_announced { use super::runtime_types; - pub type AssetKind = - runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset; + 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 Remove { - const PALLET: &'static str = "AssetRate"; - const CALL: &'static str = "remove"; + 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::create`]."] - pub fn create( + #[doc = "See [`Pallet::proxy`]."] + pub fn proxy( &self, - asset_kind: types::create::AssetKind, - rate: types::create::Rate, - ) -> ::subxt::tx::Payload { + real: types::proxy::Real, + force_proxy_type: types::proxy::ForceProxyType, + call: types::proxy::Call, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "AssetRate", - "create", - types::Create { - asset_kind: ::std::boxed::Box::new(asset_kind), - rate, + "Proxy", + "proxy", + types::Proxy { + real, + force_proxy_type, + call: ::std::boxed::Box::new(call), }, [ - 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, + 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::update`]."] - pub fn update( + #[doc = "See [`Pallet::add_proxy`]."] + pub fn add_proxy( &self, - asset_kind: types::update::AssetKind, - rate: types::update::Rate, - ) -> ::subxt::tx::Payload { + delegate: types::add_proxy::Delegate, + proxy_type: types::add_proxy::ProxyType, + delay: types::add_proxy::Delay, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "AssetRate", - "update", - types::Update { - asset_kind: ::std::boxed::Box::new(asset_kind), - rate, + "Proxy", + "add_proxy", + types::AddProxy { + delegate, + proxy_type, + delay, }, [ - 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, + 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::remove`]."] - pub fn remove( + #[doc = "See [`Pallet::remove_proxy`]."] + pub fn remove_proxy( &self, - asset_kind: types::remove::AssetKind, - ) -> ::subxt::tx::Payload { + delegate: types::remove_proxy::Delegate, + proxy_type: types::remove_proxy::ProxyType, + delay: types::remove_proxy::Delay, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "AssetRate", - "remove", - types::Remove { - asset_kind: ::std::boxed::Box::new(asset_kind), + "Proxy", + "remove_proxy", + types::RemoveProxy { + delegate, + proxy_type, + delay, + }, + [ + 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::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, + 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", + "create_pure", + types::CreatePure { + proxy_type, + delay, + index, + }, + [ + 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::kill_pure`]."] + pub fn kill_pure( + &self, + 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", + "kill_pure", + types::KillPure { + spawner, + proxy_type, + index, + height, + ext_index, + }, + [ + 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::announce`]."] + pub fn announce( + &self, + real: types::announce::Real, + call_hash: types::announce::CallHash, + ) -> ::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, + ], + ) + } + #[doc = "See [`Pallet::remove_announcement`]."] + pub fn remove_announcement( + &self, + real: types::remove_announcement::Real, + call_hash: 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: types::reject_announcement::Delegate, + call_hash: 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: 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", + "proxy_announced", + types::ProxyAnnounced { + delegate, + real, + force_proxy_type, + call: ::std::boxed::Box::new(call), }, [ - 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, + 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_asset_rate::pallet::Event; + pub type Event = runtime_types::pallet_proxy::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -32259,19 +21560,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 AssetRateCreated { - pub asset_kind: asset_rate_created::AssetKind, - pub rate: asset_rate_created::Rate, + #[doc = "A proxy was executed correctly, with the given."] + pub struct ProxyExecuted { + pub result: proxy_executed::Result, } - pub mod asset_rate_created { + pub mod proxy_executed { 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 type Result = + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>; } - impl ::subxt::events::StaticEvent for AssetRateCreated { - const PALLET: &'static str = "AssetRate"; - const EVENT: &'static str = "AssetRateCreated"; + impl ::subxt::events::StaticEvent for ProxyExecuted { + const PALLET: &'static str = "Proxy"; + const EVENT: &'static str = "ProxyExecuted"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -32283,17 +21583,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 AssetRateRemoved { - pub asset_kind: asset_rate_removed::AssetKind, + #[doc = "A pure account has been created by new proxy with given"] + #[doc = "disambiguation index and proxy type."] + pub struct PureCreated { + pub pure: pure_created::Pure, + pub who: pure_created::Who, + pub proxy_type: pure_created::ProxyType, + pub disambiguation_index: pure_created::DisambiguationIndex, } - pub mod asset_rate_removed { + pub mod pure_created { use super::runtime_types; - pub type AssetKind = - runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset; + 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 AssetRateRemoved { - const PALLET: &'static str = "AssetRate"; - const EVENT: &'static str = "AssetRateRemoved"; + impl ::subxt::events::StaticEvent for PureCreated { + const PALLET: &'static str = "Proxy"; + const EVENT: &'static str = "PureCreated"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -32305,98 +21612,319 @@ pub mod 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 AssetRateUpdated { - pub asset_kind: asset_rate_updated::AssetKind, - pub old: asset_rate_updated::Old, - pub new: asset_rate_updated::New, + #[doc = "An announcement was placed to make a call in the future."] + pub struct Announced { + pub real: announced::Real, + pub proxy: announced::Proxy, + pub call_hash: announced::CallHash, } - pub mod asset_rate_updated { + pub mod announced { 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; + pub type Real = ::subxt::utils::AccountId32; + pub type Proxy = ::subxt::utils::AccountId32; + pub type CallHash = ::subxt::utils::H256; } - impl ::subxt::events::StaticEvent for AssetRateUpdated { - const PALLET: &'static str = "AssetRate"; - const EVENT: &'static str = "AssetRateUpdated"; + impl ::subxt::events::StaticEvent for Announced { + const PALLET: &'static str = "Proxy"; + const EVENT: &'static str = "Announced"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + 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 proxy was added."] + pub struct ProxyAdded { + 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"; + const EVENT: &'static str = "ProxyAdded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + 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 proxy was removed."] + pub struct ProxyRemoved { + 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"; + const EVENT: &'static str = "ProxyRemoved"; } } pub mod storage { use super::runtime_types; pub mod types { use super::runtime_types; - pub mod conversion_rate_to_native { + pub mod proxies { 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 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 type Param0 = ::subxt::utils::AccountId32; + } + 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 type Param0 = ::subxt::utils::AccountId32; } } 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( + #[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, - types::conversion_rate_to_native::ConversionRateToNative, - (), + types::proxies::Proxies, (), ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "AssetRate", - "ConversionRateToNative", + "Proxy", + "Proxies", vec![], [ - 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, + 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 = " 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( + #[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, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::conversion_rate_to_native::ConversionRateToNative, + 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, + 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::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::announcements::Announcements, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( - "AssetRate", - "ConversionRateToNative", + "Proxy", + "Announcements", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 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, + 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 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::u128> { + ::subxt::constants::Address::new_static( + "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, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[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 bounties { + pub mod multisig { 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_multisig::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_multisig::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; @@ -32413,144 +21941,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 = "See [`Pallet::propose_bounty`]."] - pub struct ProposeBounty { - #[codec(compact)] - 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"; - const CALL: &'static str = "propose_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")] - #[doc = "See [`Pallet::approve_bounty`]."] - pub struct ApproveBounty { - #[codec(compact)] - 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"; - const CALL: &'static str = "approve_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")] - #[doc = "See [`Pallet::propose_curator`]."] - pub struct ProposeCurator { - #[codec(compact)] - pub bounty_id: propose_curator::BountyId, - pub curator: propose_curator::Curator, - #[codec(compact)] - 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"; - const CALL: &'static str = "propose_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")] - #[doc = "See [`Pallet::unassign_curator`]."] - pub struct UnassignCurator { - #[codec(compact)] - 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"; - 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")] - #[doc = "See [`Pallet::accept_curator`]."] - pub struct AcceptCurator { - #[codec(compact)] - 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"; - const CALL: &'static str = "accept_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")] - #[doc = "See [`Pallet::award_bounty`]."] - pub struct AwardBounty { - #[codec(compact)] - pub bounty_id: award_bounty::BountyId, - pub beneficiary: award_bounty::Beneficiary, + #[doc = "See [`Pallet::as_multi_threshold_1`]."] + pub struct AsMultiThreshold1 { + pub other_signatories: as_multi_threshold1::OtherSignatories, + pub call: ::std::boxed::Box, } - pub mod award_bounty { + pub mod as_multi_threshold1 { use super::runtime_types; - pub type BountyId = ::core::primitive::u32; - pub type Beneficiary = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type OtherSignatories = ::std::vec::Vec<::subxt::utils::AccountId32>; + pub type Call = runtime_types::rococo_runtime::RuntimeCall; } - impl ::subxt::blocks::StaticExtrinsic for AwardBounty { - const PALLET: &'static str = "Bounties"; - const CALL: &'static str = "award_bounty"; + impl ::subxt::blocks::StaticExtrinsic for AsMultiThreshold1 { + const PALLET: &'static str = "Multisig"; + const CALL: &'static str = "as_multi_threshold_1"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -32562,18 +21965,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")] - #[doc = "See [`Pallet::claim_bounty`]."] - pub struct ClaimBounty { - #[codec(compact)] - pub bounty_id: claim_bounty::BountyId, + #[doc = "See [`Pallet::as_multi`]."] + pub struct AsMulti { + 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 claim_bounty { + pub mod as_multi { use super::runtime_types; - pub type BountyId = ::core::primitive::u32; + 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; } - impl ::subxt::blocks::StaticExtrinsic for ClaimBounty { - const PALLET: &'static str = "Bounties"; - const CALL: &'static str = "claim_bounty"; + impl ::subxt::blocks::StaticExtrinsic for AsMulti { + const PALLET: &'static str = "Multisig"; + const CALL: &'static str = "as_multi"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -32585,18 +21997,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")] - #[doc = "See [`Pallet::close_bounty`]."] - pub struct CloseBounty { - #[codec(compact)] - pub bounty_id: close_bounty::BountyId, + #[doc = "See [`Pallet::approve_as_multi`]."] + pub struct ApproveAsMulti { + 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 close_bounty { + pub mod approve_as_multi { use super::runtime_types; - pub type BountyId = ::core::primitive::u32; + 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; } - impl ::subxt::blocks::StaticExtrinsic for CloseBounty { - const PALLET: &'static str = "Bounties"; - const CALL: &'static str = "close_bounty"; + impl ::subxt::blocks::StaticExtrinsic for ApproveAsMulti { + const PALLET: &'static str = "Multisig"; + const CALL: &'static str = "approve_as_multi"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -32608,189 +22029,130 @@ pub mod 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 = "See [`Pallet::extend_bounty_expiry`]."] - pub struct ExtendBountyExpiry { - #[codec(compact)] - 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"; - const CALL: &'static str = "extend_bounty_expiry"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::propose_bounty`]."] - pub fn propose_bounty( - &self, - value: types::propose_bounty::Value, - description: types::propose_bounty::Description, - ) -> ::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: types::approve_bounty::BountyId, - ) -> ::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( - &self, - 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", - "propose_curator", - types::ProposeCurator { - bounty_id, - curator, - fee, - }, - [ - 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::unassign_curator`]."] - pub fn unassign_curator( - &self, - bounty_id: types::unassign_curator::BountyId, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Bounties", - "unassign_curator", - types::UnassignCurator { bounty_id }, - [ - 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::cancel_as_multi`]."] + pub struct CancelAsMulti { + 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, } - #[doc = "See [`Pallet::accept_curator`]."] - pub fn accept_curator( - &self, - bounty_id: types::accept_curator::BountyId, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Bounties", - "accept_curator", - types::AcceptCurator { bounty_id }, - [ - 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, - ], - ) + 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]; } - #[doc = "See [`Pallet::award_bounty`]."] - pub fn award_bounty( + impl ::subxt::blocks::StaticExtrinsic for CancelAsMulti { + const PALLET: &'static str = "Multisig"; + const CALL: &'static str = "cancel_as_multi"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::as_multi_threshold_1`]."] + pub fn as_multi_threshold_1( &self, - bounty_id: types::award_bounty::BountyId, - beneficiary: types::award_bounty::Beneficiary, - ) -> ::subxt::tx::Payload { + other_signatories: types::as_multi_threshold1::OtherSignatories, + call: types::as_multi_threshold1::Call, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Bounties", - "award_bounty", - types::AwardBounty { - bounty_id, - beneficiary, + "Multisig", + "as_multi_threshold_1", + types::AsMultiThreshold1 { + other_signatories, + call: ::std::boxed::Box::new(call), }, [ - 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, + 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, ], ) } - #[doc = "See [`Pallet::claim_bounty`]."] - pub fn claim_bounty( + #[doc = "See [`Pallet::as_multi`]."] + pub fn as_multi( &self, - bounty_id: types::claim_bounty::BountyId, - ) -> ::subxt::tx::Payload { + 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( - "Bounties", - "claim_bounty", - types::ClaimBounty { bounty_id }, + "Multisig", + "as_multi", + types::AsMulti { + threshold, + other_signatories, + maybe_timepoint, + call: ::std::boxed::Box::new(call), + max_weight, + }, [ - 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, + 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, ], ) } - #[doc = "See [`Pallet::close_bounty`]."] - pub fn close_bounty( + #[doc = "See [`Pallet::approve_as_multi`]."] + pub fn approve_as_multi( &self, - bounty_id: types::close_bounty::BountyId, - ) -> ::subxt::tx::Payload { + 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( - "Bounties", - "close_bounty", - types::CloseBounty { bounty_id }, + "Multisig", + "approve_as_multi", + types::ApproveAsMulti { + threshold, + other_signatories, + maybe_timepoint, + call_hash, + max_weight, + }, [ - 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, + 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, ], ) } - #[doc = "See [`Pallet::extend_bounty_expiry`]."] - pub fn extend_bounty_expiry( + #[doc = "See [`Pallet::cancel_as_multi`]."] + pub fn cancel_as_multi( &self, - bounty_id: types::extend_bounty_expiry::BountyId, - remark: types::extend_bounty_expiry::Remark, - ) -> ::subxt::tx::Payload { + 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( - "Bounties", - "extend_bounty_expiry", - types::ExtendBountyExpiry { bounty_id, remark }, + "Multisig", + "cancel_as_multi", + types::CancelAsMulti { + threshold, + other_signatories, + timepoint, + call_hash, + }, [ - 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, + 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, ], ) } } } #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_bounties::pallet::Event; + pub type Event = runtime_types::pallet_multisig::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -32803,180 +22165,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")] - #[doc = "New bounty proposal."] - pub struct BountyProposed { - 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"; - const EVENT: &'static str = "BountyProposed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 proposal was rejected; funds were slashed."] - pub struct BountyRejected { - 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"; - const EVENT: &'static str = "BountyRejected"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 proposal is funded and became active."] - pub struct BountyBecameActive { - 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"; - const EVENT: &'static str = "BountyBecameActive"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 awarded to a beneficiary."] - pub struct BountyAwarded { - 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"; - const EVENT: &'static str = "BountyAwarded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 claimed by beneficiary."] - pub struct BountyClaimed { - 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"; - const EVENT: &'static str = "BountyClaimed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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: 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"; - const EVENT: &'static str = "BountyCanceled"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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: 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"; - 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: bounty_approved::Index, + #[doc = "A new multisig operation has begun."] + pub struct NewMultisig { + pub approving: new_multisig::Approving, + pub multisig: new_multisig::Multisig, + pub call_hash: new_multisig::CallHash, } - pub mod bounty_approved { + pub mod new_multisig { use super::runtime_types; - pub type Index = ::core::primitive::u32; + pub type Approving = ::subxt::utils::AccountId32; + pub type Multisig = ::subxt::utils::AccountId32; + pub type CallHash = [::core::primitive::u8; 32usize]; } - impl ::subxt::events::StaticEvent for BountyApproved { - const PALLET: &'static str = "Bounties"; - const EVENT: &'static str = "BountyApproved"; + impl ::subxt::events::StaticEvent for NewMultisig { + const PALLET: &'static str = "Multisig"; + const EVENT: &'static str = "NewMultisig"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -32988,22 +22191,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")] - #[doc = "A bounty curator is proposed."] - pub struct CuratorProposed { - pub bounty_id: curator_proposed::BountyId, - pub curator: curator_proposed::Curator, + #[doc = "A multisig operation has been approved by someone."] + pub struct MultisigApproval { + pub approving: multisig_approval::Approving, + pub timepoint: multisig_approval::Timepoint, + pub multisig: multisig_approval::Multisig, + pub call_hash: multisig_approval::CallHash, } - pub mod curator_proposed { + pub mod multisig_approval { use super::runtime_types; - pub type BountyId = ::core::primitive::u32; - pub type Curator = ::subxt::utils::AccountId32; + 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 CuratorProposed { - const PALLET: &'static str = "Bounties"; - const EVENT: &'static str = "CuratorProposed"; + impl ::subxt::events::StaticEvent for MultisigApproval { + const PALLET: &'static str = "Multisig"; + const EVENT: &'static str = "MultisigApproval"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -33013,17 +22220,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")] - #[doc = "A bounty curator is unassigned."] - pub struct CuratorUnassigned { - pub bounty_id: curator_unassigned::BountyId, + #[doc = "A multisig operation has been executed."] + pub struct MultisigExecuted { + 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 curator_unassigned { + pub mod multisig_executed { use super::runtime_types; - pub type BountyId = ::core::primitive::u32; + 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 CuratorUnassigned { - const PALLET: &'static str = "Bounties"; - const EVENT: &'static str = "CuratorUnassigned"; + impl ::subxt::events::StaticEvent for MultisigExecuted { + const PALLET: &'static str = "Multisig"; + const EVENT: &'static str = "MultisigExecuted"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -33035,188 +22252,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")] - #[doc = "A bounty curator is accepted."] - pub struct CuratorAccepted { - pub bounty_id: curator_accepted::BountyId, - pub curator: curator_accepted::Curator, + #[doc = "A multisig operation has been cancelled."] + pub struct MultisigCancelled { + pub cancelling: multisig_cancelled::Cancelling, + pub timepoint: multisig_cancelled::Timepoint, + pub multisig: multisig_cancelled::Multisig, + pub call_hash: multisig_cancelled::CallHash, } - pub mod curator_accepted { + pub mod multisig_cancelled { use super::runtime_types; - pub type BountyId = ::core::primitive::u32; - pub type Curator = ::subxt::utils::AccountId32; + 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 CuratorAccepted { - const PALLET: &'static str = "Bounties"; - const EVENT: &'static str = "CuratorAccepted"; + 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 types { use super::runtime_types; - pub mod bounty_count { - use super::runtime_types; - pub type BountyCount = ::core::primitive::u32; - } - pub mod bounties { + pub mod multisigs { use super::runtime_types; - pub type Bounties = runtime_types::pallet_bounties::Bounty< - ::subxt::utils::AccountId32, - ::core::primitive::u128, + pub type Multisigs = runtime_types::pallet_multisig::Multisig< ::core::primitive::u32, + ::core::primitive::u128, + ::subxt::utils::AccountId32, >; - pub type Param0 = ::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 type Param0 = ::core::primitive::u32; - } - pub mod bounty_approvals { - use super::runtime_types; - pub type BountyApprovals = - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u32, - >; + pub type Param0 = ::subxt::utils::AccountId32; + pub type Param1 = [::core::primitive::u8; 32usize]; } } pub struct StorageApi; impl StorageApi { - #[doc = " Number of bounty proposals that have been made."] - pub fn bounty_count( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::bounty_count::BountyCount, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Bounties", - "BountyCount", - 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, - ], - ) - } - #[doc = " Bounties that have been made."] - pub fn bounties_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - 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, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::bounties::Bounties, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Bounties", - "Bounties", - 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, - ], - ) - } - #[doc = " The description of each bounty."] - pub fn bounty_descriptions_iter( + #[doc = " The set of open multisig operations."] + pub fn multisigs_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::bounty_descriptions::BountyDescriptions, + types::multisigs::Multisigs, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Bounties", - "BountyDescriptions", + "Multisig", + "Multisigs", 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, + 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, ], ) } - #[doc = " The description of each bounty."] - pub fn bounty_descriptions( + #[doc = " The set of open multisig operations."] + pub fn multisigs_iter1( &self, - _0: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::bounty_descriptions::BountyDescriptions, - ::subxt::storage::address::Yes, + types::multisigs::Multisigs, (), (), + ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Bounties", - "BountyDescriptions", + "Multisig", + "Multisigs", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 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, + 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, ], ) } - #[doc = " Bounty indices that have been approved but not yet funded."] - pub fn bounty_approvals( + #[doc = " The set of open multisig operations."] + pub fn multisigs( &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::bounty_approvals::BountyApprovals, - ::subxt::storage::address::Yes, + types::multisigs::Multisigs, ::subxt::storage::address::Yes, (), + (), > { ::subxt::storage::address::Address::new_static( - "Bounties", - "BountyApprovals", - vec![], + "Multisig", + "Multisigs", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.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, + 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, ], ) } @@ -33226,107 +22366,16 @@ 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( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "Bounties", - "BountyDepositBase", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ], - ) - } - #[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> { - ::subxt::constants::Address::new_static( - "Bounties", - "BountyDepositPayoutDelay", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " Bounty duration in blocks."] - pub fn bounty_update_period( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Bounties", - "BountyUpdatePeriod", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The curator deposit is calculated as a percentage of the curator fee."] + #[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 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( - &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> { + #[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( - "Bounties", - "BountyValueMinimum", + "Multisig", + "DepositBase", [ 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, @@ -33334,13 +22383,15 @@ 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 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( - "Bounties", - "DataDepositPerByte", + "Multisig", + "DepositFactor", [ 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, @@ -33348,15 +22399,13 @@ 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( + #[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( - "Bounties", - "MaximumReasonLength", + "Multisig", + "MaxSignatories", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, @@ -33368,13 +22417,13 @@ pub mod api { } } } - pub mod child_bounties { + pub mod preimage { 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_preimage::pallet::Error; #[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_preimage::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; @@ -33391,81 +22440,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 = "See [`Pallet::add_child_bounty`]."] - pub struct AddChildBounty { - #[codec(compact)] - pub parent_bounty_id: add_child_bounty::ParentBountyId, - #[codec(compact)] - 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"; - const CALL: &'static str = "add_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")] - #[doc = "See [`Pallet::propose_curator`]."] - pub struct ProposeCurator { - #[codec(compact)] - pub parent_bounty_id: propose_curator::ParentBountyId, - #[codec(compact)] - pub child_bounty_id: propose_curator::ChildBountyId, - pub curator: propose_curator::Curator, - #[codec(compact)] - 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"; - const CALL: &'static str = "propose_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")] - #[doc = "See [`Pallet::accept_curator`]."] - pub struct AcceptCurator { - #[codec(compact)] - pub parent_bounty_id: accept_curator::ParentBountyId, - #[codec(compact)] - pub child_bounty_id: accept_curator::ChildBountyId, + #[doc = "See [`Pallet::note_preimage`]."] + pub struct NotePreimage { + pub bytes: note_preimage::Bytes, } - pub mod accept_curator { + pub mod note_preimage { use super::runtime_types; - pub type ParentBountyId = ::core::primitive::u32; - pub type ChildBountyId = ::core::primitive::u32; + pub type Bytes = ::std::vec::Vec<::core::primitive::u8>; } - impl ::subxt::blocks::StaticExtrinsic for AcceptCurator { - const PALLET: &'static str = "ChildBounties"; - const CALL: &'static str = "accept_curator"; + impl ::subxt::blocks::StaticExtrinsic for NotePreimage { + const PALLET: &'static str = "Preimage"; + const CALL: &'static str = "note_preimage"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -33477,21 +22462,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 = "See [`Pallet::unassign_curator`]."] - pub struct UnassignCurator { - #[codec(compact)] - pub parent_bounty_id: unassign_curator::ParentBountyId, - #[codec(compact)] - pub child_bounty_id: unassign_curator::ChildBountyId, + #[doc = "See [`Pallet::unnote_preimage`]."] + pub struct UnnotePreimage { + pub hash: unnote_preimage::Hash, } - pub mod unassign_curator { + pub mod unnote_preimage { use super::runtime_types; - pub type ParentBountyId = ::core::primitive::u32; - pub type ChildBountyId = ::core::primitive::u32; + pub type Hash = ::subxt::utils::H256; } - impl ::subxt::blocks::StaticExtrinsic for UnassignCurator { - const PALLET: &'static str = "ChildBounties"; - const CALL: &'static str = "unassign_curator"; + impl ::subxt::blocks::StaticExtrinsic for UnnotePreimage { + const PALLET: &'static str = "Preimage"; + const CALL: &'static str = "unnote_preimage"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -33503,24 +22484,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 = "See [`Pallet::award_child_bounty`]."] - pub struct AwardChildBounty { - #[codec(compact)] - pub parent_bounty_id: award_child_bounty::ParentBountyId, - #[codec(compact)] - pub child_bounty_id: award_child_bounty::ChildBountyId, - pub beneficiary: award_child_bounty::Beneficiary, + #[doc = "See [`Pallet::request_preimage`]."] + pub struct RequestPreimage { + pub hash: request_preimage::Hash, } - pub mod award_child_bounty { + pub mod request_preimage { 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 type Hash = ::subxt::utils::H256; } - impl ::subxt::blocks::StaticExtrinsic for AwardChildBounty { - const PALLET: &'static str = "ChildBounties"; - const CALL: &'static str = "award_child_bounty"; + impl ::subxt::blocks::StaticExtrinsic for RequestPreimage { + const PALLET: &'static str = "Preimage"; + const CALL: &'static str = "request_preimage"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -33532,21 +22506,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 = "See [`Pallet::claim_child_bounty`]."] - pub struct ClaimChildBounty { - #[codec(compact)] - pub parent_bounty_id: claim_child_bounty::ParentBountyId, - #[codec(compact)] - pub child_bounty_id: claim_child_bounty::ChildBountyId, + #[doc = "See [`Pallet::unrequest_preimage`]."] + pub struct UnrequestPreimage { + pub hash: unrequest_preimage::Hash, } - pub mod claim_child_bounty { + pub mod unrequest_preimage { use super::runtime_types; - pub type ParentBountyId = ::core::primitive::u32; - pub type ChildBountyId = ::core::primitive::u32; + pub type Hash = ::subxt::utils::H256; } - impl ::subxt::blocks::StaticExtrinsic for ClaimChildBounty { - const PALLET: &'static str = "ChildBounties"; - const CALL: &'static str = "claim_child_bounty"; + impl ::subxt::blocks::StaticExtrinsic for UnrequestPreimage { + const PALLET: &'static str = "Preimage"; + const CALL: &'static str = "unrequest_preimage"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -33558,180 +22528,108 @@ pub mod 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 = "See [`Pallet::close_child_bounty`]."] - pub struct CloseChildBounty { - #[codec(compact)] - pub parent_bounty_id: close_child_bounty::ParentBountyId, - #[codec(compact)] - pub child_bounty_id: close_child_bounty::ChildBountyId, + #[doc = "See [`Pallet::ensure_updated`]."] + pub struct EnsureUpdated { + pub hashes: ensure_updated::Hashes, } - pub mod close_child_bounty { + pub mod ensure_updated { use super::runtime_types; - pub type ParentBountyId = ::core::primitive::u32; - pub type ChildBountyId = ::core::primitive::u32; + pub type Hashes = ::std::vec::Vec<::subxt::utils::H256>; } - impl ::subxt::blocks::StaticExtrinsic for CloseChildBounty { - const PALLET: &'static str = "ChildBounties"; - const CALL: &'static str = "close_child_bounty"; + 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_child_bounty`]."] - pub fn add_child_bounty( - &self, - 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", - "add_child_bounty", - types::AddChildBounty { - parent_bounty_id, - value, - description, - }, - [ - 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::propose_curator`]."] - pub fn propose_curator( - &self, - 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", - "propose_curator", - types::ProposeCurator { - parent_bounty_id, - child_bounty_id, - curator, - fee, - }, - [ - 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::accept_curator`]."] - pub fn accept_curator( + #[doc = "See [`Pallet::note_preimage`]."] + pub fn note_preimage( &self, - parent_bounty_id: types::accept_curator::ParentBountyId, - child_bounty_id: types::accept_curator::ChildBountyId, - ) -> ::subxt::tx::Payload { + bytes: types::note_preimage::Bytes, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "ChildBounties", - "accept_curator", - types::AcceptCurator { - parent_bounty_id, - child_bounty_id, - }, + "Preimage", + "note_preimage", + types::NotePreimage { bytes }, [ - 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, + 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::unassign_curator`]."] - pub fn unassign_curator( + #[doc = "See [`Pallet::unnote_preimage`]."] + pub fn unnote_preimage( &self, - parent_bounty_id: types::unassign_curator::ParentBountyId, - child_bounty_id: types::unassign_curator::ChildBountyId, - ) -> ::subxt::tx::Payload { + hash: types::unnote_preimage::Hash, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "ChildBounties", - "unassign_curator", - types::UnassignCurator { - parent_bounty_id, - child_bounty_id, - }, + "Preimage", + "unnote_preimage", + types::UnnotePreimage { hash }, [ - 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, + 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::award_child_bounty`]."] - pub fn award_child_bounty( + #[doc = "See [`Pallet::request_preimage`]."] + pub fn request_preimage( &self, - 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 { + hash: types::request_preimage::Hash, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "ChildBounties", - "award_child_bounty", - types::AwardChildBounty { - parent_bounty_id, - child_bounty_id, - beneficiary, - }, + "Preimage", + "request_preimage", + types::RequestPreimage { hash }, [ - 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, + 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::claim_child_bounty`]."] - pub fn claim_child_bounty( + #[doc = "See [`Pallet::unrequest_preimage`]."] + pub fn unrequest_preimage( &self, - parent_bounty_id: types::claim_child_bounty::ParentBountyId, - child_bounty_id: types::claim_child_bounty::ChildBountyId, - ) -> ::subxt::tx::Payload { + hash: types::unrequest_preimage::Hash, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "ChildBounties", - "claim_child_bounty", - types::ClaimChildBounty { - parent_bounty_id, - child_bounty_id, - }, + "Preimage", + "unrequest_preimage", + types::UnrequestPreimage { hash }, [ - 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, + 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::close_child_bounty`]."] - pub fn close_child_bounty( + #[doc = "See [`Pallet::ensure_updated`]."] + pub fn ensure_updated( &self, - parent_bounty_id: types::close_child_bounty::ParentBountyId, - child_bounty_id: types::close_child_bounty::ChildBountyId, - ) -> ::subxt::tx::Payload { + hashes: types::ensure_updated::Hashes, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "ChildBounties", - "close_child_bounty", - types::CloseChildBounty { - parent_bounty_id, - child_bounty_id, - }, + "Preimage", + "ensure_updated", + types::EnsureUpdated { hashes }, [ - 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, + 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_child_bounties::pallet::Event; + pub type Event = runtime_types::pallet_preimage::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -33744,45 +22642,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 child-bounty is added."] - pub struct Added { - 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"; - const EVENT: &'static str = "Added"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 child-bounty is awarded to a beneficiary."] - pub struct Awarded { - pub index: awarded::Index, - pub child_index: awarded::ChildIndex, - pub beneficiary: awarded::Beneficiary, + #[doc = "A preimage has been noted."] + pub struct Noted { + pub hash: noted::Hash, } - pub mod awarded { + pub mod noted { use super::runtime_types; - pub type Index = ::core::primitive::u32; - pub type ChildIndex = ::core::primitive::u32; - pub type Beneficiary = ::subxt::utils::AccountId32; + pub type Hash = ::subxt::utils::H256; } - impl ::subxt::events::StaticEvent for Awarded { - const PALLET: &'static str = "ChildBounties"; - const EVENT: &'static str = "Awarded"; + impl ::subxt::events::StaticEvent for Noted { + const PALLET: &'static str = "Preimage"; + const EVENT: &'static str = "Noted"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -33794,23 +22664,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 child-bounty is claimed by beneficiary."] - pub struct Claimed { - pub index: claimed::Index, - pub child_index: claimed::ChildIndex, - pub payout: claimed::Payout, - pub beneficiary: claimed::Beneficiary, + #[doc = "A preimage has been requested."] + pub struct Requested { + pub hash: requested::Hash, } - pub mod claimed { + pub mod requested { 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; + pub type Hash = ::subxt::utils::H256; } - impl ::subxt::events::StaticEvent for Claimed { - const PALLET: &'static str = "ChildBounties"; - const EVENT: &'static str = "Claimed"; + impl ::subxt::events::StaticEvent for Requested { + const PALLET: &'static str = "Preimage"; + const EVENT: &'static str = "Requested"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -33822,337 +22686,519 @@ pub mod 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: canceled::Index, - pub child_index: canceled::ChildIndex, + #[doc = "A preimage has ben cleared."] + pub struct Cleared { + pub hash: cleared::Hash, } - pub mod canceled { + pub mod cleared { use super::runtime_types; - pub type Index = ::core::primitive::u32; - pub type ChildIndex = ::core::primitive::u32; + pub type Hash = ::subxt::utils::H256; } - impl ::subxt::events::StaticEvent for Canceled { - const PALLET: &'static str = "ChildBounties"; - const EVENT: &'static str = "Canceled"; + 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 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 { + pub mod status_for { use super::runtime_types; - pub type ParentChildBounties = ::core::primitive::u32; - pub type Param0 = ::core::primitive::u32; + pub type StatusFor = runtime_types::pallet_preimage::OldRequestStatus< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >; + pub type Param0 = ::subxt::utils::H256; } - pub mod child_bounties { + pub mod request_status_for { use super::runtime_types; - pub type ChildBounties = runtime_types::pallet_child_bounties::ChildBounty< + pub type RequestStatusFor = runtime_types::pallet_preimage::RequestStatus< ::subxt::utils::AccountId32, - ::core::primitive::u128, - ::core::primitive::u32, + runtime_types::frame_support::traits::tokens::fungible::HoldConsideration, >; - pub type Param0 = ::core::primitive::u32; - pub type Param1 = ::core::primitive::u32; + pub type Param0 = ::subxt::utils::H256; } - pub mod child_bounty_descriptions { + pub mod preimage_for { use super::runtime_types; - pub type ChildBountyDescriptions = + pub type PreimageFor = 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 type Param0 = ::subxt::utils::H256; + pub type Param1 = ::core::primitive::u32; } } pub struct StorageApi; impl StorageApi { - #[doc = " Number of total child bounties."] - pub fn child_bounty_count( + #[doc = " The request status of a given hash."] + pub fn status_for_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::child_bounty_count::ChildBountyCount, + types::status_for::StatusFor, + (), + (), ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Preimage", + "StatusFor", + 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, + ], + ) + } + #[doc = " The request status of a given hash."] + pub fn status_for( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::status_for::StatusFor, ::subxt::storage::address::Yes, (), + (), > { ::subxt::storage::address::Address::new_static( - "ChildBounties", - "ChildBountyCount", - vec![], + "Preimage", + "StatusFor", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], [ - 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, + 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 = " Number of child bounties per parent bounty."] - #[doc = " Map of parent bounty index to number of child bounties."] - pub fn parent_child_bounties_iter( + #[doc = " The request status of a given hash."] + pub fn request_status_for_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::parent_child_bounties::ParentChildBounties, + types::request_status_for::RequestStatusFor, + (), (), - ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "ChildBounties", - "ParentChildBounties", + "Preimage", + "RequestStatusFor", 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, + 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 = " Number of child bounties per parent bounty."] - #[doc = " Map of parent bounty index to number of child bounties."] - pub fn parent_child_bounties( + #[doc = " The request status of a given hash."] + pub fn request_status_for( &self, - _0: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::parent_child_bounties::ParentChildBounties, - ::subxt::storage::address::Yes, + types::request_status_for::RequestStatusFor, ::subxt::storage::address::Yes, (), + (), > { ::subxt::storage::address::Address::new_static( - "ChildBounties", - "ParentChildBounties", + "Preimage", + "RequestStatusFor", 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, + 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 = " Child bounties that have been added."] - pub fn child_bounties_iter( + pub fn preimage_for_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::child_bounties::ChildBounties, + types::preimage_for::PreimageFor, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "ChildBounties", - "ChildBounties", + "Preimage", + "PreimageFor", 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, + 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 = " Child bounties that have been added."] - pub fn child_bounties_iter1( + pub fn preimage_for_iter1( &self, - _0: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::child_bounties::ChildBounties, + types::preimage_for::PreimageFor, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "ChildBounties", - "ChildBounties", + "Preimage", + "PreimageFor", 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, + 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 = " Child bounties that have been added."] - pub fn child_bounties( + pub fn preimage_for( &self, - _0: impl ::std::borrow::Borrow, - _1: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::child_bounties::ChildBounties, + types::preimage_for::PreimageFor, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( - "ChildBounties", - "ChildBounties", + "Preimage", + "PreimageFor", 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, + 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 description of each child-bounty."] - pub fn child_bounty_descriptions_iter( + } + } + } + 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; + 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")] + #[doc = "See [`Pallet::create`]."] + pub struct Create { + 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"; + 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")] + #[doc = "See [`Pallet::update`]."] + pub struct Update { + 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"; + 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")] + #[doc = "See [`Pallet::remove`]."] + pub struct Remove { + 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"; + const CALL: &'static str = "remove"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::create`]."] + pub fn create( &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::child_bounty_descriptions::ChildBountyDescriptions, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "ChildBounties", - "ChildBountyDescriptions", - vec![], + asset_kind: types::create::AssetKind, + rate: types::create::Rate, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "AssetRate", + "create", + types::Create { + asset_kind: ::std::boxed::Box::new(asset_kind), + rate, + }, [ - 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, + 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 = "See [`Pallet::update`]."] + pub fn update( + &self, + asset_kind: types::update::AssetKind, + rate: types::update::Rate, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "AssetRate", + "update", + types::Update { + asset_kind: ::std::boxed::Box::new(asset_kind), + 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, ], ) } - #[doc = " The description of each child-bounty."] - pub fn child_bounty_descriptions( + #[doc = "See [`Pallet::remove`]."] + pub fn remove( + &self, + asset_kind: types::remove::AssetKind, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "AssetRate", + "remove", + types::Remove { + 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, + ], + ) + } + } + } + #[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: 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"; + 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: 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"; + 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: 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"; + const EVENT: &'static str = "AssetRateUpdated"; + } + } + pub mod storage { + use super::runtime_types; + pub mod 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 type Param0 = + runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset; + } + } + 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, - _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::child_bounty_descriptions::ChildBountyDescriptions, - ::subxt::storage::address::Yes, - (), + types::conversion_rate_to_native::ConversionRateToNative, (), - > { - ::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, - types::children_curator_fees::ChildrenCuratorFees, (), ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "ChildBounties", - "ChildrenCuratorFees", + "AssetRate", + "ConversionRateToNative", 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, + 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 = " The cumulative child-bounty curator fee for each parent bounty."] - pub fn children_curator_fees( + #[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, - _0: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::children_curator_fees::ChildrenCuratorFees, - ::subxt::storage::address::Yes, + types::conversion_rate_to_native::ConversionRateToNative, ::subxt::storage::address::Yes, (), + (), > { ::subxt::storage::address::Address::new_static( - "ChildBounties", - "ChildrenCuratorFees", + "AssetRate", + "ConversionRateToNative", 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, - ], - ) - } - } - } - 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, + 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 nis { + pub mod bounties { use super::root_mod; use super::runtime_types; #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_nis::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_nis::pallet::Call; + pub type Call = runtime_types::pallet_bounties::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; @@ -34169,19 +23215,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")] - #[doc = "See [`Pallet::report_awesome`]."] - pub struct ReportAwesome { - pub reason: report_awesome::Reason, - pub who: report_awesome::Who, + #[doc = "See [`Pallet::propose_bounty`]."] + pub struct ProposeBounty { + #[codec(compact)] + pub value: propose_bounty::Value, + pub description: propose_bounty::Description, } - pub mod report_awesome { + pub mod propose_bounty { use super::runtime_types; - pub type Reason = ::std::vec::Vec<::core::primitive::u8>; - pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Value = ::core::primitive::u128; + pub type Description = ::std::vec::Vec<::core::primitive::u8>; } - impl ::subxt::blocks::StaticExtrinsic for ReportAwesome { - const PALLET: &'static str = "Tips"; - const CALL: &'static str = "report_awesome"; + impl ::subxt::blocks::StaticExtrinsic for ProposeBounty { + const PALLET: &'static str = "Bounties"; + const CALL: &'static str = "propose_bounty"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -34193,17 +23240,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 = "See [`Pallet::retract_tip`]."] - pub struct RetractTip { - pub hash: retract_tip::Hash, + #[doc = "See [`Pallet::approve_bounty`]."] + pub struct ApproveBounty { + #[codec(compact)] + pub bounty_id: approve_bounty::BountyId, } - pub mod retract_tip { + pub mod approve_bounty { use super::runtime_types; - pub type Hash = ::subxt::utils::H256; + pub type BountyId = ::core::primitive::u32; } - impl ::subxt::blocks::StaticExtrinsic for RetractTip { - const PALLET: &'static str = "Tips"; - const CALL: &'static str = "retract_tip"; + impl ::subxt::blocks::StaticExtrinsic for ApproveBounty { + const PALLET: &'static str = "Bounties"; + const CALL: &'static str = "approve_bounty"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -34215,27 +23263,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")] - #[doc = "See [`Pallet::tip_new`]."] - pub struct TipNew { - pub reason: tip_new::Reason, - pub who: tip_new::Who, + #[doc = "See [`Pallet::propose_curator`]."] + pub struct ProposeCurator { #[codec(compact)] - pub tip_value: tip_new::TipValue, - } - pub mod tip_new { - use super::runtime_types; - pub type Reason = ::std::vec::Vec<::core::primitive::u8>; - pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type TipValue = ::core::primitive::u128; + pub bounty_id: propose_curator::BountyId, + pub curator: propose_curator::Curator, + #[codec(compact)] + pub fee: propose_curator::Fee, } - pub mod place_bid { + pub mod propose_curator { use super::runtime_types; - pub type Amount = ::core::primitive::u128; - pub type Duration = ::core::primitive::u32; + 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 PlaceBid { - const PALLET: &'static str = "Nis"; - const CALL: &'static str = "place_bid"; + impl ::subxt::blocks::StaticExtrinsic for ProposeCurator { + const PALLET: &'static str = "Bounties"; + const CALL: &'static str = "propose_curator"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -34247,25 +23292,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 = "See [`Pallet::tip`]."] - pub struct Tip { - pub hash: tip::Hash, + #[doc = "See [`Pallet::unassign_curator`]."] + pub struct UnassignCurator { #[codec(compact)] - pub tip_value: tip::TipValue, - } - pub mod tip { - use super::runtime_types; - pub type Hash = ::subxt::utils::H256; - pub type TipValue = ::core::primitive::u128; + pub bounty_id: unassign_curator::BountyId, } - pub mod retract_bid { + pub mod unassign_curator { use super::runtime_types; - pub type Amount = ::core::primitive::u128; - pub type Duration = ::core::primitive::u32; + pub type BountyId = ::core::primitive::u32; } - impl ::subxt::blocks::StaticExtrinsic for RetractBid { - const PALLET: &'static str = "Nis"; - const CALL: &'static str = "retract_bid"; + impl ::subxt::blocks::StaticExtrinsic for UnassignCurator { + const PALLET: &'static str = "Bounties"; + const CALL: &'static str = "unassign_curator"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -34277,17 +23315,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 = "See [`Pallet::close_tip`]."] - pub struct CloseTip { - pub hash: close_tip::Hash, + #[doc = "See [`Pallet::accept_curator`]."] + pub struct AcceptCurator { + #[codec(compact)] + pub bounty_id: accept_curator::BountyId, } - pub mod close_tip { + pub mod accept_curator { use super::runtime_types; - pub type Hash = ::subxt::utils::H256; + pub type BountyId = ::core::primitive::u32; } - impl ::subxt::blocks::StaticExtrinsic for CloseTip { - const PALLET: &'static str = "Tips"; - const CALL: &'static str = "close_tip"; + impl ::subxt::blocks::StaticExtrinsic for AcceptCurator { + const PALLET: &'static str = "Bounties"; + const CALL: &'static str = "accept_curator"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -34299,24 +23338,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")] - #[doc = "See [`Pallet::slash_tip`]."] - pub struct SlashTip { - pub hash: slash_tip::Hash, - } - pub mod slash_tip { - use super::runtime_types; - pub type Hash = ::subxt::utils::H256; + #[doc = "See [`Pallet::award_bounty`]."] + pub struct AwardBounty { + #[codec(compact)] + pub bounty_id: award_bounty::BountyId, + pub beneficiary: award_bounty::Beneficiary, } - pub mod thaw_private { + pub mod award_bounty { use super::runtime_types; - pub type Index = ::core::primitive::u32; - pub type MaybeProportion = ::core::option::Option< - runtime_types::sp_arithmetic::per_things::Perquintill, - >; + pub type BountyId = ::core::primitive::u32; + pub type Beneficiary = + ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; } - impl ::subxt::blocks::StaticExtrinsic for ThawPrivate { - const PALLET: &'static str = "Nis"; - const CALL: &'static str = "thaw_private"; + impl ::subxt::blocks::StaticExtrinsic for AwardBounty { + const PALLET: &'static str = "Bounties"; + const CALL: &'static str = "award_bounty"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -34328,17 +23364,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 ThawCommunal { + #[doc = "See [`Pallet::claim_bounty`]."] + pub struct ClaimBounty { #[codec(compact)] - pub index: thaw_communal::Index, + pub bounty_id: claim_bounty::BountyId, } - pub mod thaw_communal { + pub mod claim_bounty { use super::runtime_types; - pub type Index = ::core::primitive::u32; + pub type BountyId = ::core::primitive::u32; } - impl ::subxt::blocks::StaticExtrinsic for ThawCommunal { - const PALLET: &'static str = "Nis"; - const CALL: &'static str = "thaw_communal"; + impl ::subxt::blocks::StaticExtrinsic for ClaimBounty { + const PALLET: &'static str = "Bounties"; + const CALL: &'static str = "claim_bounty"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -34350,17 +23387,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 Communify { + #[doc = "See [`Pallet::close_bounty`]."] + pub struct CloseBounty { #[codec(compact)] - pub index: communify::Index, + pub bounty_id: close_bounty::BountyId, } - pub mod communify { + pub mod close_bounty { use super::runtime_types; - pub type Index = ::core::primitive::u32; + pub type BountyId = ::core::primitive::u32; } - impl ::subxt::blocks::StaticExtrinsic for Communify { - const PALLET: &'static str = "Nis"; - const CALL: &'static str = "communify"; + impl ::subxt::blocks::StaticExtrinsic for CloseBounty { + const PALLET: &'static str = "Bounties"; + const CALL: &'static str = "close_bounty"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -34372,167 +23410,283 @@ pub mod 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 Privatize { + #[doc = "See [`Pallet::extend_bounty_expiry`]."] + pub struct ExtendBountyExpiry { #[codec(compact)] - pub index: privatize::Index, + pub bounty_id: extend_bounty_expiry::BountyId, + pub remark: extend_bounty_expiry::Remark, } - pub mod privatize { + pub mod extend_bounty_expiry { use super::runtime_types; - pub type Index = ::core::primitive::u32; + pub type BountyId = ::core::primitive::u32; + pub type Remark = ::std::vec::Vec<::core::primitive::u8>; } - impl ::subxt::blocks::StaticExtrinsic for Privatize { - const PALLET: &'static str = "Nis"; - const CALL: &'static str = "privatize"; + 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::place_bid`]."] - pub fn place_bid( + #[doc = "See [`Pallet::propose_bounty`]."] + pub fn propose_bounty( &self, - reason: types::report_awesome::Reason, - who: types::report_awesome::Who, - ) -> ::subxt::tx::Payload { + value: types::propose_bounty::Value, + description: types::propose_bounty::Description, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Nis", - "place_bid", - types::PlaceBid { amount, duration }, + "Bounties", + "propose_bounty", + types::ProposeBounty { value, description }, [ - 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, + 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::retract_bid`]."] - pub fn retract_bid( + #[doc = "See [`Pallet::approve_bounty`]."] + pub fn approve_bounty( &self, - hash: types::retract_tip::Hash, - ) -> ::subxt::tx::Payload { + bounty_id: types::approve_bounty::BountyId, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Nis", - "retract_bid", - types::RetractBid { amount, duration }, + "Bounties", + "approve_bounty", + types::ApproveBounty { bounty_id }, [ - 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, + 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::tip_new`]."] - pub fn tip_new( + #[doc = "See [`Pallet::propose_curator`]."] + pub fn propose_curator( &self, - reason: types::tip_new::Reason, - who: types::tip_new::Who, - tip_value: types::tip_new::TipValue, - ) -> ::subxt::tx::Payload { + bounty_id: types::propose_curator::BountyId, + curator: types::propose_curator::Curator, + fee: types::propose_curator::Fee, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Nis", - "fund_deficit", - types::FundDeficit {}, + "Bounties", + "propose_curator", + types::ProposeCurator { + bounty_id, + curator, + fee, + }, [ - 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, + 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::tip`]."] - pub fn tip( + #[doc = "See [`Pallet::unassign_curator`]."] + pub fn unassign_curator( &self, - hash: types::tip::Hash, - tip_value: types::tip::TipValue, - ) -> ::subxt::tx::Payload { + bounty_id: types::unassign_curator::BountyId, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Tips", - "tip", - types::Tip { hash, tip_value }, + "Bounties", + "unassign_curator", + types::UnassignCurator { bounty_id }, [ - 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, + 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::thaw_private`]."] - pub fn thaw_private( + #[doc = "See [`Pallet::accept_curator`]."] + pub fn accept_curator( &self, - hash: types::close_tip::Hash, - ) -> ::subxt::tx::Payload { + bounty_id: types::accept_curator::BountyId, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Nis", - "thaw_private", - types::ThawPrivate { - index, - maybe_proportion, + "Bounties", + "accept_curator", + types::AcceptCurator { bounty_id }, + [ + 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::award_bounty`]."] + pub fn award_bounty( + &self, + bounty_id: types::award_bounty::BountyId, + beneficiary: types::award_bounty::Beneficiary, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Bounties", + "award_bounty", + types::AwardBounty { + bounty_id, + beneficiary, }, [ - 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, + 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::thaw_communal`]."] - pub fn thaw_communal( + #[doc = "See [`Pallet::claim_bounty`]."] + pub fn claim_bounty( &self, - hash: types::slash_tip::Hash, - ) -> ::subxt::tx::Payload { + bounty_id: types::claim_bounty::BountyId, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Nis", - "thaw_communal", - types::ThawCommunal { index }, + "Bounties", + "claim_bounty", + types::ClaimBounty { bounty_id }, [ - 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, + 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::communify`]."] - pub fn communify( + #[doc = "See [`Pallet::close_bounty`]."] + pub fn close_bounty( &self, - index: types::communify::Index, - ) -> ::subxt::tx::Payload { + bounty_id: types::close_bounty::BountyId, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Nis", - "communify", - types::Communify { index }, + "Bounties", + "close_bounty", + types::CloseBounty { bounty_id }, [ - 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, + 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::privatize`]."] - pub fn privatize( + #[doc = "See [`Pallet::extend_bounty_expiry`]."] + pub fn extend_bounty_expiry( &self, - index: types::privatize::Index, - ) -> ::subxt::tx::Payload { + bounty_id: types::extend_bounty_expiry::BountyId, + remark: types::extend_bounty_expiry::Remark, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Nis", - "privatize", - types::Privatize { index }, + "Bounties", + "extend_bounty_expiry", + types::ExtendBountyExpiry { bounty_id, remark }, [ - 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, + 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_nis::pallet::Event; - pub mod events { - use super::runtime_types; + } + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_bounties::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 bounty proposal."] + pub struct BountyProposed { + 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"; + const EVENT: &'static str = "BountyProposed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + 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 proposal was rejected; funds were slashed."] + pub struct BountyRejected { + 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"; + const EVENT: &'static str = "BountyRejected"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + 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 proposal is funded and became active."] + pub struct BountyBecameActive { + 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"; + const EVENT: &'static str = "BountyBecameActive"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + 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 awarded to a beneficiary."] + pub struct BountyAwarded { + 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"; + const EVENT: &'static str = "BountyAwarded"; + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -34543,17 +23697,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")] - #[doc = "A new tip suggestion has been opened."] - pub struct NewTip { - pub tip_hash: new_tip::TipHash, + #[doc = "A bounty is claimed by beneficiary."] + pub struct BountyClaimed { + pub index: bounty_claimed::Index, + pub payout: bounty_claimed::Payout, + pub beneficiary: bounty_claimed::Beneficiary, } - pub mod new_tip { + pub mod bounty_claimed { use super::runtime_types; - pub type TipHash = ::subxt::utils::H256; + pub type Index = ::core::primitive::u32; + pub type Payout = ::core::primitive::u128; + pub type Beneficiary = ::subxt::utils::AccountId32; } - impl ::subxt::events::StaticEvent for NewTip { - const PALLET: &'static str = "Tips"; - const EVENT: &'static str = "NewTip"; + impl ::subxt::events::StaticEvent for BountyClaimed { + const PALLET: &'static str = "Bounties"; + const EVENT: &'static str = "BountyClaimed"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -34565,17 +23723,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 tip suggestion has reached threshold and is closing."] - pub struct TipClosing { - pub tip_hash: tip_closing::TipHash, + #[doc = "A bounty is cancelled."] + pub struct BountyCanceled { + pub index: bounty_canceled::Index, } - pub mod tip_closing { + pub mod bounty_canceled { use super::runtime_types; - pub type TipHash = ::subxt::utils::H256; + pub type Index = ::core::primitive::u32; } - impl ::subxt::events::StaticEvent for TipClosing { - const PALLET: &'static str = "Tips"; - const EVENT: &'static str = "TipClosing"; + impl ::subxt::events::StaticEvent for BountyCanceled { + const PALLET: &'static str = "Bounties"; + const EVENT: &'static str = "BountyCanceled"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -34587,21 +23745,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 tip suggestion has been closed."] - pub struct TipClosed { - pub tip_hash: tip_closed::TipHash, - pub who: tip_closed::Who, - pub payout: tip_closed::Payout, + #[doc = "A bounty expiry is extended."] + pub struct BountyExtended { + pub index: bounty_extended::Index, } - pub mod tip_closed { + pub mod bounty_extended { use super::runtime_types; - pub type TipHash = ::subxt::utils::H256; - pub type Who = ::subxt::utils::AccountId32; - pub type Payout = ::core::primitive::u128; + pub type Index = ::core::primitive::u32; } - impl ::subxt::events::StaticEvent for TipClosed { - const PALLET: &'static str = "Tips"; - const EVENT: &'static str = "TipClosed"; + impl ::subxt::events::StaticEvent for BountyExtended { + const PALLET: &'static str = "Bounties"; + const EVENT: &'static str = "BountyExtended"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -34613,17 +23767,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 tip suggestion has been retracted."] - pub struct TipRetracted { - pub tip_hash: tip_retracted::TipHash, + #[doc = "A bounty is approved."] + pub struct BountyApproved { + pub index: bounty_approved::Index, } - pub mod tip_retracted { + pub mod bounty_approved { use super::runtime_types; - pub type TipHash = ::subxt::utils::H256; + pub type Index = ::core::primitive::u32; } - impl ::subxt::events::StaticEvent for TipRetracted { - const PALLET: &'static str = "Tips"; - const EVENT: &'static str = "TipRetracted"; + impl ::subxt::events::StaticEvent for BountyApproved { + const PALLET: &'static str = "Bounties"; + const EVENT: &'static str = "BountyApproved"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -34635,132 +23789,234 @@ pub mod 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: tip_slashed::TipHash, - pub finder: tip_slashed::Finder, - pub deposit: tip_slashed::Deposit, + #[doc = "A bounty curator is proposed."] + pub struct CuratorProposed { + pub bounty_id: curator_proposed::BountyId, + pub curator: curator_proposed::Curator, } - pub mod tip_slashed { + pub mod curator_proposed { use super::runtime_types; - pub type TipHash = ::subxt::utils::H256; - pub type Finder = ::subxt::utils::AccountId32; - pub type Deposit = ::core::primitive::u128; + pub type BountyId = ::core::primitive::u32; + pub type Curator = ::subxt::utils::AccountId32; } - impl ::subxt::events::StaticEvent for TipSlashed { - const PALLET: &'static str = "Tips"; - const EVENT: &'static str = "TipSlashed"; + impl ::subxt::events::StaticEvent for CuratorProposed { + const PALLET: &'static str = "Bounties"; + const EVENT: &'static str = "CuratorProposed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + 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: 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"; + 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: 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"; + const EVENT: &'static str = "CuratorAccepted"; } } pub mod storage { use super::runtime_types; + pub mod 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 type Param0 = ::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 type Param0 = ::core::primitive::u32; + } + 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 = " 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( + #[doc = " Number of bounty proposals that have been made."] + pub fn bounty_count( &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, - >, + types::bounty_count::BountyCount, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Bounties", + "BountyCount", + 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, + ], + ) + } + #[doc = " Bounties that have been made."] + pub fn bounties_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::bounties::Bounties, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Tips", - "Tips", + "Bounties", + "Bounties", 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, + 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 = " 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( + #[doc = " Bounties that have been made."] + pub fn bounties( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, + _0: impl ::std::borrow::Borrow, ) -> ::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, - >, + types::bounties::Bounties, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( - "Tips", - "Tips", + "Bounties", + "Bounties", 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, + 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 = " 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( + #[doc = " The description of each bounty."] + pub fn bounty_descriptions_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<::core::primitive::u8>, + types::bounty_descriptions::BountyDescriptions, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Tips", - "Reasons", + "Bounties", + "BountyDescriptions", 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, + 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 = " 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( + #[doc = " The description of each bounty."] + pub fn bounty_descriptions( &self, - _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<::core::primitive::u8>, + types::bounty_descriptions::BountyDescriptions, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( - "Tips", - "Reasons", + "Bounties", + "BountyDescriptions", 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, + 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, + 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, ], ) } @@ -34770,15 +24026,27 @@ pub mod api { 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( + #[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( + "Bounties", + "BountyDepositBase", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[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> { ::subxt::constants::Address::new_static( - "Tips", - "MaximumReasonLength", + "Bounties", + "BountyDepositPayoutDelay", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, @@ -34787,56 +24055,92 @@ 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 = " Bounty duration in blocks."] + pub fn bounty_update_period( &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { + ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( - "Tips", - "DataDepositPerByte", + "Bounties", + "BountyUpdatePeriod", [ - 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 period for which a tip remains open after is has achieved threshold tippers."] - pub fn tip_countdown(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + #[doc = " The curator deposit is calculated as a percentage of the curator fee."] + #[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( - "Tips", - "TipCountdown", + "Bounties", + "CuratorDepositMultiplier", [ - 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, + 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 percent of the final tip which goes to the original reporter of the tip."] - pub fn tip_finders_fee( + #[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 + ) -> ::subxt::constants::Address<::core::option::Option<::core::primitive::u128>> { ::subxt::constants::Address::new_static( - "Tips", - "TipFindersFee", + "Bounties", + "CuratorDepositMax", [ - 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, + 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, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, ], ) } - #[doc = " The amount held on deposit for placing a tip report."] - pub fn tip_report_deposit_base( + #[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", - "TipReportDepositBase", + "Bounties", + "DataDepositPerByte", [ 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, @@ -34844,16 +24148,33 @@ 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 election_provider_multi_phase { + pub mod child_bounties { 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 = "The `Error` enum of this pallet."] + 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_election_provider_multi_phase::pallet::Call; + pub type Call = runtime_types::pallet_child_bounties::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; @@ -34870,23 +24191,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")] - #[doc = "See [`Pallet::submit_unsigned`]."] - pub struct SubmitUnsigned { - pub raw_solution: ::std::boxed::Box, - pub witness: submit_unsigned::Witness, + #[doc = "See [`Pallet::add_child_bounty`]."] + pub struct AddChildBounty { + #[codec(compact)] + pub parent_bounty_id: add_child_bounty::ParentBountyId, + #[codec(compact)] + pub value: add_child_bounty::Value, + pub description: add_child_bounty::Description, } - pub mod submit_unsigned { + pub mod add_child_bounty { use super::runtime_types; - pub type RawSolution = - runtime_types::pallet_election_provider_multi_phase::RawSolution< - runtime_types::polkadot_runtime::NposCompactSolution16, - >; - pub type Witness = - runtime_types::pallet_election_provider_multi_phase::SolutionOrSnapshotSize; + 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"; + const CALL: &'static str = "add_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")] + #[doc = "See [`Pallet::propose_curator`]."] + pub struct ProposeCurator { + #[codec(compact)] + pub parent_bounty_id: propose_curator::ParentBountyId, + #[codec(compact)] + pub child_bounty_id: propose_curator::ChildBountyId, + pub curator: propose_curator::Curator, + #[codec(compact)] + 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 SubmitUnsigned { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const CALL: &'static str = "submit_unsigned"; + impl ::subxt::blocks::StaticExtrinsic for ProposeCurator { + const PALLET: &'static str = "ChildBounties"; + const CALL: &'static str = "propose_curator"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -34898,18 +24251,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")] - #[doc = "See [`Pallet::set_minimum_untrusted_score`]."] - pub struct SetMinimumUntrustedScore { - pub maybe_next_score: set_minimum_untrusted_score::MaybeNextScore, + #[doc = "See [`Pallet::accept_curator`]."] + pub struct AcceptCurator { + #[codec(compact)] + pub parent_bounty_id: accept_curator::ParentBountyId, + #[codec(compact)] + pub child_bounty_id: accept_curator::ChildBountyId, } - pub mod set_minimum_untrusted_score { + pub mod accept_curator { use super::runtime_types; - pub type MaybeNextScore = - ::core::option::Option; + pub type ParentBountyId = ::core::primitive::u32; + pub type ChildBountyId = ::core::primitive::u32; } - impl ::subxt::blocks::StaticExtrinsic for SetMinimumUntrustedScore { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const CALL: &'static str = "set_minimum_untrusted_score"; + impl ::subxt::blocks::StaticExtrinsic for AcceptCurator { + const PALLET: &'static str = "ChildBounties"; + const CALL: &'static str = "accept_curator"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -34921,20 +24277,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")] - #[doc = "See [`Pallet::set_emergency_election_result`]."] - pub struct SetEmergencyElectionResult { - pub supports: set_emergency_election_result::Supports, + #[doc = "See [`Pallet::unassign_curator`]."] + pub struct UnassignCurator { + #[codec(compact)] + pub parent_bounty_id: unassign_curator::ParentBountyId, + #[codec(compact)] + pub child_bounty_id: unassign_curator::ChildBountyId, } - pub mod set_emergency_election_result { + pub mod unassign_curator { use super::runtime_types; - pub type Supports = ::std::vec::Vec<( - ::subxt::utils::AccountId32, - runtime_types::sp_npos_elections::Support<::subxt::utils::AccountId32>, - )>; + pub type ParentBountyId = ::core::primitive::u32; + pub type ChildBountyId = ::core::primitive::u32; } - impl ::subxt::blocks::StaticExtrinsic for SetEmergencyElectionResult { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const CALL: &'static str = "set_emergency_election_result"; + impl ::subxt::blocks::StaticExtrinsic for UnassignCurator { + const PALLET: &'static str = "ChildBounties"; + const CALL: &'static str = "unassign_curator"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -34946,20 +24303,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")] - #[doc = "See [`Pallet::submit`]."] - pub struct Submit { - pub raw_solution: ::std::boxed::Box, + #[doc = "See [`Pallet::award_child_bounty`]."] + pub struct AwardChildBounty { + #[codec(compact)] + pub parent_bounty_id: award_child_bounty::ParentBountyId, + #[codec(compact)] + pub child_bounty_id: award_child_bounty::ChildBountyId, + pub beneficiary: award_child_bounty::Beneficiary, } - pub mod submit { + pub mod award_child_bounty { use super::runtime_types; - pub type RawSolution = - runtime_types::pallet_election_provider_multi_phase::RawSolution< - runtime_types::polkadot_runtime::NposCompactSolution16, - >; + 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 Submit { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const CALL: &'static str = "submit"; + impl ::subxt::blocks::StaticExtrinsic for AwardChildBounty { + const PALLET: &'static str = "ChildBounties"; + const CALL: &'static str = "award_child_bounty"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -34971,119 +24332,206 @@ pub mod 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 = "See [`Pallet::governance_fallback`]."] - pub struct GovernanceFallback { - pub maybe_max_voters: governance_fallback::MaybeMaxVoters, - pub maybe_max_targets: governance_fallback::MaybeMaxTargets, + #[doc = "See [`Pallet::claim_child_bounty`]."] + pub struct ClaimChildBounty { + #[codec(compact)] + pub parent_bounty_id: claim_child_bounty::ParentBountyId, + #[codec(compact)] + 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"; + 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")] + #[doc = "See [`Pallet::close_child_bounty`]."] + pub struct CloseChildBounty { + #[codec(compact)] + pub parent_bounty_id: close_child_bounty::ParentBountyId, + #[codec(compact)] + pub child_bounty_id: close_child_bounty::ChildBountyId, } - pub mod governance_fallback { + pub mod close_child_bounty { use super::runtime_types; - pub type MaybeMaxVoters = ::core::option::Option<::core::primitive::u32>; - pub type MaybeMaxTargets = ::core::option::Option<::core::primitive::u32>; + pub type ParentBountyId = ::core::primitive::u32; + pub type ChildBountyId = ::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::add_child_bounty`]."] + pub fn add_child_bounty( + &self, + 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", + "add_child_bounty", + types::AddChildBounty { + parent_bounty_id, + value, + description, + }, + [ + 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, + ], + ) } - impl ::subxt::blocks::StaticExtrinsic for GovernanceFallback { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const CALL: &'static str = "governance_fallback"; + #[doc = "See [`Pallet::propose_curator`]."] + pub fn propose_curator( + &self, + 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", + "propose_curator", + types::ProposeCurator { + parent_bounty_id, + child_bounty_id, + curator, + fee, + }, + [ + 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, + ], + ) } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::submit_unsigned`]."] - pub fn submit_unsigned( + #[doc = "See [`Pallet::accept_curator`]."] + pub fn accept_curator( &self, - raw_solution: types::submit_unsigned::RawSolution, - witness: types::submit_unsigned::Witness, - ) -> ::subxt::tx::Payload { + parent_bounty_id: types::accept_curator::ParentBountyId, + child_bounty_id: types::accept_curator::ChildBountyId, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "ElectionProviderMultiPhase", - "submit_unsigned", - types::SubmitUnsigned { - raw_solution: ::std::boxed::Box::new(raw_solution), - witness, + "ChildBounties", + "accept_curator", + types::AcceptCurator { + parent_bounty_id, + child_bounty_id, }, [ - 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, + 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::set_minimum_untrusted_score`]."] - pub fn set_minimum_untrusted_score( + #[doc = "See [`Pallet::unassign_curator`]."] + pub fn unassign_curator( &self, - maybe_next_score: types::set_minimum_untrusted_score::MaybeNextScore, - ) -> ::subxt::tx::Payload { + parent_bounty_id: types::unassign_curator::ParentBountyId, + child_bounty_id: types::unassign_curator::ChildBountyId, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "ElectionProviderMultiPhase", - "set_minimum_untrusted_score", - types::SetMinimumUntrustedScore { maybe_next_score }, + "ChildBounties", + "unassign_curator", + types::UnassignCurator { + parent_bounty_id, + child_bounty_id, + }, [ - 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, + 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::set_emergency_election_result`]."] - pub fn set_emergency_election_result( + #[doc = "See [`Pallet::award_child_bounty`]."] + pub fn award_child_bounty( &self, - supports: types::set_emergency_election_result::Supports, - ) -> ::subxt::tx::Payload { + 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( - "ElectionProviderMultiPhase", - "set_emergency_election_result", - types::SetEmergencyElectionResult { supports }, + "ChildBounties", + "award_child_bounty", + types::AwardChildBounty { + parent_bounty_id, + child_bounty_id, + beneficiary, + }, [ - 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, + 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::submit`]."] - pub fn submit( + #[doc = "See [`Pallet::claim_child_bounty`]."] + pub fn claim_child_bounty( &self, - raw_solution: types::submit::RawSolution, - ) -> ::subxt::tx::Payload { + parent_bounty_id: types::claim_child_bounty::ParentBountyId, + child_bounty_id: types::claim_child_bounty::ChildBountyId, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "ElectionProviderMultiPhase", - "submit", - types::Submit { - raw_solution: ::std::boxed::Box::new(raw_solution), + "ChildBounties", + "claim_child_bounty", + types::ClaimChildBounty { + parent_bounty_id, + child_bounty_id, }, [ - 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, + 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::governance_fallback`]."] - pub fn governance_fallback( + #[doc = "See [`Pallet::close_child_bounty`]."] + pub fn close_child_bounty( &self, - maybe_max_voters: types::governance_fallback::MaybeMaxVoters, - maybe_max_targets: types::governance_fallback::MaybeMaxTargets, - ) -> ::subxt::tx::Payload { + parent_bounty_id: types::close_child_bounty::ParentBountyId, + child_bounty_id: types::close_child_bounty::ChildBountyId, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "ElectionProviderMultiPhase", - "governance_fallback", - types::GovernanceFallback { - maybe_max_voters, - maybe_max_targets, + "ChildBounties", + "close_child_bounty", + types::CloseChildBounty { + parent_bounty_id, + child_bounty_id, }, [ - 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, + 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_election_provider_multi_phase::pallet::Event; + pub type Event = runtime_types::pallet_child_bounties::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -35096,71 +24544,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 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: solution_stored::Compute, - pub origin: solution_stored::Origin, - pub prev_ejected: solution_stored::PrevEjected, - } - pub mod solution_stored { - use super::runtime_types; - pub type Compute = - runtime_types::pallet_election_provider_multi_phase::ElectionCompute; - pub type Origin = ::core::option::Option<::subxt::utils::AccountId32>; - pub type PrevEjected = ::core::primitive::bool; - } - impl ::subxt::events::StaticEvent for SolutionStored { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "SolutionStored"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 has been finalized, with the given computation and score."] - pub struct ElectionFinalized { - pub compute: election_finalized::Compute, - pub score: election_finalized::Score, + #[doc = "A child-bounty is added."] + pub struct Added { + pub index: added::Index, + pub child_index: added::ChildIndex, } - pub mod election_finalized { + pub mod added { use super::runtime_types; - pub type Compute = - runtime_types::pallet_election_provider_multi_phase::ElectionCompute; - pub type Score = runtime_types::sp_npos_elections::ElectionScore; - } - impl ::subxt::events::StaticEvent for ElectionFinalized { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "ElectionFinalized"; + pub type Index = ::core::primitive::u32; + pub type ChildIndex = ::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 = "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"; + impl ::subxt::events::StaticEvent for Added { + const PALLET: &'static str = "ChildBounties"; + const EVENT: &'static str = "Added"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -35172,19 +24568,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")] - #[doc = "An account has been rewarded for their signed submission being finalized."] - pub struct Rewarded { - pub account: rewarded::Account, - pub value: rewarded::Value, + #[doc = "A child-bounty is awarded to a beneficiary."] + pub struct Awarded { + pub index: awarded::Index, + pub child_index: awarded::ChildIndex, + pub beneficiary: awarded::Beneficiary, } - pub mod rewarded { + pub mod awarded { use super::runtime_types; - pub type Account = ::subxt::utils::AccountId32; - pub type Value = ::core::primitive::u128; + pub type Index = ::core::primitive::u32; + pub type ChildIndex = ::core::primitive::u32; + pub type Beneficiary = ::subxt::utils::AccountId32; } - impl ::subxt::events::StaticEvent for Rewarded { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "Rewarded"; + impl ::subxt::events::StaticEvent for Awarded { + const PALLET: &'static str = "ChildBounties"; + const EVENT: &'static str = "Awarded"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -35196,19 +24594,23 @@ pub mod 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: slashed::Account, - pub value: slashed::Value, + #[doc = "A child-bounty is claimed by beneficiary."] + pub struct Claimed { + pub index: claimed::Index, + pub child_index: claimed::ChildIndex, + pub payout: claimed::Payout, + pub beneficiary: claimed::Beneficiary, } - pub mod slashed { + pub mod claimed { use super::runtime_types; - pub type Account = ::subxt::utils::AccountId32; - pub type Value = ::core::primitive::u128; + 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 Slashed { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "Slashed"; + impl ::subxt::events::StaticEvent for Claimed { + const PALLET: &'static str = "ChildBounties"; + const EVENT: &'static str = "Claimed"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -35220,624 +24622,305 @@ pub mod 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: phase_transitioned::From, - pub to: phase_transitioned::To, - pub round: phase_transitioned::Round, + #[doc = "A child-bounty is cancelled."] + pub struct Canceled { + pub index: canceled::Index, + pub child_index: canceled::ChildIndex, } - pub mod phase_transitioned { + pub mod canceled { use super::runtime_types; - pub type From = runtime_types::pallet_election_provider_multi_phase::Phase< - ::core::primitive::u32, - >; - pub type To = runtime_types::pallet_election_provider_multi_phase::Phase< - ::core::primitive::u32, - >; - pub type Round = ::core::primitive::u32; + pub type Index = ::core::primitive::u32; + pub type ChildIndex = ::core::primitive::u32; } - impl ::subxt::events::StaticEvent for PhaseTransitioned { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "PhaseTransitioned"; + 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 = " 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( - &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", - "Round", - 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, - ], - ) - } - #[doc = " Current phase."] - pub fn current_phase( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_election_provider_multi_phase::Phase< - ::core::primitive::u32, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "ElectionProviderMultiPhase", - "CurrentPhase", - 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, - ], - ) + pub mod types { + use super::runtime_types; + pub mod child_bounty_count { + use super::runtime_types; + pub type ChildBountyCount = ::core::primitive::u32; } - #[doc = " Current best solution, signed or unsigned, queued to be returned upon `elect`."] - #[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, - ], - ) + pub mod parent_child_bounties { + use super::runtime_types; + pub type ParentChildBounties = ::core::primitive::u32; + pub type Param0 = ::core::primitive::u32; } - #[doc = " Snapshot data of the round."] - #[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< + pub mod child_bounties { + use super::runtime_types; + pub type ChildBounties = runtime_types::pallet_child_bounties::ChildBounty< ::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, - ], - ) + ::core::primitive::u128, + ::core::primitive::u32, + >; + pub type Param0 = ::core::primitive::u32; + pub type Param1 = ::core::primitive::u32; } - #[doc = " Desired number of targets to elect for this round."] - #[doc = ""] - #[doc = " Only exists when [`Snapshot`] is present."] - pub fn desired_targets( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::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, - ], - ) + pub mod child_bounty_descriptions { + use super::runtime_types; + pub type ChildBountyDescriptions = + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; + pub type Param0 = ::core::primitive::u32; } - #[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, - ], - ) + pub mod children_curator_fees { + use super::runtime_types; + pub type ChildrenCuratorFees = ::core::primitive::u128; + pub type Param0 = ::core::primitive::u32; } - #[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( + } + 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, + types::child_bounty_count::ChildBountyCount, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( - "ElectionProviderMultiPhase", - "SignedSubmissionNextIndex", + "ChildBounties", + "ChildBountyCount", 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, + 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 = " 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( + #[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, - runtime_types::bounded_collections::bounded_vec::BoundedVec<( - runtime_types::sp_npos_elections::ElectionScore, - ::core::primitive::u32, - ::core::primitive::u32, - )>, + types::parent_child_bounties::ParentChildBounties, + (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, - (), > { ::subxt::storage::address::Address::new_static( - "ElectionProviderMultiPhase", - "SignedSubmissionIndices", + "ChildBounties", + "ParentChildBounties", 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, + 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 = " 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( + #[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, ) -> ::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, - >, - (), - (), + types::parent_child_bounties::ParentChildBounties, ::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", + "ChildBounties", + "ParentChildBounties", 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, + [ + 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 = " Per-byte deposit for a signed solution."] - pub fn signed_deposit_byte( + #[doc = " Child bounties that have been added."] + pub fn child_bounties_iter( &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "SignedDepositByte", + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::child_bounties::ChildBounties, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "ChildBounties", + "ChildBounties", + vec![], [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + 165u8, 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 = " Per-weight deposit for a signed solution."] - pub fn signed_deposit_weight( + #[doc = " Child bounties that have been added."] + pub fn child_bounties_iter1( &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "SignedDepositWeight", + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + 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(), + )], [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + 165u8, 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 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( + #[doc = " Child bounties that have been added."] + pub fn child_bounties( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "MaxElectingVoters", + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + 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()), + ::subxt::storage::address::make_static_storage_map_key(_1.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, + 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 maximum number of electable targets to put in the snapshot."] - pub fn max_electable_targets( + #[doc = " The description of each child-bounty."] + pub fn child_bounty_descriptions_iter( &self, - ) -> ::subxt::constants::Address<::core::primitive::u16> { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "MaxElectableTargets", + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::child_bounty_descriptions::ChildBountyDescriptions, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "ChildBounties", + "ChildBountyDescriptions", + vec![], [ - 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, + 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 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", + #[doc = " The description of each child-bounty."] + pub fn child_bounty_descriptions( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + 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(), + )], [ - 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, + 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, ], ) } - pub fn miner_max_length( + #[doc = " The cumulative child-bounty curator fee for each parent bounty."] + pub fn children_curator_fees_iter( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "MinerMaxLength", + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::children_curator_fees::ChildrenCuratorFees, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "ChildBounties", + "ChildrenCuratorFees", + 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, + 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, ], ) } - pub fn miner_max_weight( + #[doc = " The cumulative child-bounty curator fee for each parent bounty."] + pub fn children_curator_fees( &self, - ) -> ::subxt::constants::Address - { - ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "MinerMaxWeight", + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + 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(), + )], [ - 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, + 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, ], ) } - pub fn miner_max_votes_per_voter( + } + } + 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( - "ElectionProviderMultiPhase", - "MinerMaxVotesPerVoter", + "ChildBounties", + "MaxActiveChildBountyCount", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, @@ -35846,541 +24929,36 @@ pub mod api { ], ) } - pub fn miner_max_winners( + #[doc = " Minimum value for a child-bounty."] + pub fn child_bounty_value_minimum( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( - "ElectionProviderMultiPhase", - "MinerMaxWinners", + "ChildBounties", + "ChildBountyValueMinimum", [ - 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, ], ) } } } } - 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")] - #[doc = "See [`Pallet::rebag`]."] - pub struct Rebag { - pub dislocated: rebag::Dislocated, - } - pub mod rebag { - use super::runtime_types; - pub type 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")] - #[doc = "See [`Pallet::put_in_front_of`]."] - pub struct PutInFrontOf { - pub lighter: put_in_front_of::Lighter, - } - pub mod put_in_front_of { - use super::runtime_types; - pub type 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: types::rebag::Dislocated, - ) -> ::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: types::put_in_front_of::Lighter, - ) -> ::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: rebagged::Who, - pub from: rebagged::From, - pub to: rebagged::To, - } - pub mod rebagged { - use super::runtime_types; - pub type Who = ::subxt::utils::AccountId32; - pub type From = ::core::primitive::u64; - pub type 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: score_updated::Who, - pub new_score: score_updated::NewScore, - } - pub mod score_updated { - use super::runtime_types; - pub type Who = ::subxt::utils::AccountId32; - pub type NewScore = ::core::primitive::u64; - } - pub mod bid_dropped { - 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 = "See [`Pallet::join`]."] - pub struct Join { - #[codec(compact)] - pub amount: join::Amount, - pub pool_id: join::PoolId, - } - pub mod join { - use super::runtime_types; - pub type Amount = ::core::primitive::u128; - pub type PoolId = ::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")] - #[doc = "See [`Pallet::bond_extra`]."] - pub struct BondExtra { - pub extra: bond_extra::Extra, - } - pub mod bond_extra { - use super::runtime_types; - pub type 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")] - #[doc = "See [`Pallet::claim_payout`]."] - 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")] - #[doc = "See [`Pallet::unbond`]."] - pub struct Unbond { - pub member_account: unbond::MemberAccount, - #[codec(compact)] - pub unbonding_points: unbond::UnbondingPoints, - } - pub mod unbond { - use super::runtime_types; - pub type MemberAccount = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type UnbondingPoints = ::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")] - #[doc = "See [`Pallet::pool_withdraw_unbonded`]."] - pub struct PoolWithdrawUnbonded { - pub pool_id: pool_withdraw_unbonded::PoolId, - pub num_slashing_spans: pool_withdraw_unbonded::NumSlashingSpans, - } - pub mod pool_withdraw_unbonded { - use super::runtime_types; - pub type PoolId = ::core::primitive::u32; - pub type NumSlashingSpans = ::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")] - #[doc = "See [`Pallet::withdraw_unbonded`]."] - pub struct WithdrawUnbonded { - pub member_account: withdraw_unbonded::MemberAccount, - pub num_slashing_spans: withdraw_unbonded::NumSlashingSpans, - } - pub mod withdraw_unbonded { - use super::runtime_types; - pub type MemberAccount = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type NumSlashingSpans = ::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")] - #[doc = "See [`Pallet::create`]."] - pub struct Create { - #[codec(compact)] - pub amount: create::Amount, - pub root: create::Root, - pub nominator: create::Nominator, - pub bouncer: create::Bouncer, - } - pub mod create { - use super::runtime_types; - pub type Amount = ::core::primitive::u128; - pub type Root = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Nominator = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type 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")] - #[doc = "See [`Pallet::create_with_pool_id`]."] - pub struct CreateWithPoolId { - #[codec(compact)] - pub amount: create_with_pool_id::Amount, - pub root: create_with_pool_id::Root, - pub nominator: create_with_pool_id::Nominator, - pub bouncer: create_with_pool_id::Bouncer, - pub pool_id: create_with_pool_id::PoolId, - } - pub mod create_with_pool_id { - use super::runtime_types; - pub type Amount = ::core::primitive::u128; - pub type Root = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Nominator = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Bouncer = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type PoolId = ::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")] - #[doc = "See [`Pallet::nominate`]."] - pub struct Nominate { - pub pool_id: nominate::PoolId, - pub validators: nominate::Validators, - } - pub mod nominate { - use super::runtime_types; - pub type PoolId = ::core::primitive::u32; - pub type 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")] - #[doc = "See [`Pallet::set_state`]."] - pub struct SetState { - pub pool_id: set_state::PoolId, - pub state: set_state::State, - } - pub mod set_state { - use super::runtime_types; - pub type PoolId = ::core::primitive::u32; - pub type 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")] - #[doc = "See [`Pallet::set_metadata`]."] - pub struct SetMetadata { - pub pool_id: set_metadata::PoolId, - pub metadata: set_metadata::Metadata, - } - pub mod set_metadata { - use super::runtime_types; - pub type PoolId = ::core::primitive::u32; - pub type 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")] - #[doc = "See [`Pallet::set_configs`]."] - pub struct SetConfigs { - pub min_join_bond: set_configs::MinJoinBond, - pub min_create_bond: set_configs::MinCreateBond, - pub max_pools: set_configs::MaxPools, - pub max_members: set_configs::MaxMembers, - pub max_members_per_pool: set_configs::MaxMembersPerPool, - pub global_max_commission: set_configs::GlobalMaxCommission, - } - pub mod set_configs { - use super::runtime_types; - pub type MinJoinBond = - runtime_types::pallet_nomination_pools::ConfigOp<::core::primitive::u128>; - pub type MinCreateBond = - runtime_types::pallet_nomination_pools::ConfigOp<::core::primitive::u128>; - pub type MaxPools = - runtime_types::pallet_nomination_pools::ConfigOp<::core::primitive::u32>; - pub type MaxMembers = - runtime_types::pallet_nomination_pools::ConfigOp<::core::primitive::u32>; - pub type MaxMembersPerPool = - runtime_types::pallet_nomination_pools::ConfigOp<::core::primitive::u32>; - pub type GlobalMaxCommission = 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")] - #[doc = "See [`Pallet::update_roles`]."] - pub struct UpdateRoles { - pub pool_id: update_roles::PoolId, - pub new_root: update_roles::NewRoot, - pub new_nominator: update_roles::NewNominator, - pub new_bouncer: update_roles::NewBouncer, - } - pub mod update_roles { - use super::runtime_types; - pub type PoolId = ::core::primitive::u32; - pub type NewRoot = runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::utils::AccountId32, - >; - pub type NewNominator = runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::utils::AccountId32, - >; - pub type NewBouncer = 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 :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 = "See [`Pallet::chill`]."] - pub struct Chill { - pub pool_id: chill::PoolId, - } - pub mod chill { - use super::runtime_types; - pub type PoolId = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for Chill { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "chill"; - } + pub mod nis { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Error` enum of this pallet."] + 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_nis::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, @@ -36391,20 +24969,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")] - #[doc = "See [`Pallet::bond_extra_other`]."] - pub struct BondExtraOther { - pub member: bond_extra_other::Member, - pub extra: bond_extra_other::Extra, + #[doc = "See [`Pallet::place_bid`]."] + pub struct PlaceBid { + #[codec(compact)] + pub amount: place_bid::Amount, + pub duration: place_bid::Duration, } - pub mod bond_extra_other { + pub mod place_bid { use super::runtime_types; - pub type Member = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Extra = - runtime_types::pallet_nomination_pools::BondExtra<::core::primitive::u128>; + pub type Amount = ::core::primitive::u128; + pub type Duration = ::core::primitive::u32; } - impl ::subxt::blocks::StaticExtrinsic for BondExtraOther { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "bond_extra_other"; + impl ::subxt::blocks::StaticExtrinsic for PlaceBid { + const PALLET: &'static str = "Nis"; + const CALL: &'static str = "place_bid"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -36416,17 +24994,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")] - #[doc = "See [`Pallet::set_claim_permission`]."] - pub struct SetClaimPermission { - pub permission: set_claim_permission::Permission, + #[doc = "See [`Pallet::retract_bid`]."] + pub struct RetractBid { + #[codec(compact)] + pub amount: retract_bid::Amount, + pub duration: retract_bid::Duration, } - pub mod set_claim_permission { + pub mod retract_bid { use super::runtime_types; - pub type Permission = runtime_types::pallet_nomination_pools::ClaimPermission; + pub type Amount = ::core::primitive::u128; + pub type Duration = ::core::primitive::u32; } - impl ::subxt::blocks::StaticExtrinsic for SetClaimPermission { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "set_claim_permission"; + impl ::subxt::blocks::StaticExtrinsic for RetractBid { + const PALLET: &'static str = "Nis"; + const CALL: &'static str = "retract_bid"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -36438,17 +25019,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 = "See [`Pallet::claim_payout_other`]."] - pub struct ClaimPayoutOther { - pub other: claim_payout_other::Other, - } - pub mod claim_payout_other { - use super::runtime_types; - pub type Other = ::subxt::utils::AccountId32; - } - impl ::subxt::blocks::StaticExtrinsic for ClaimPayoutOther { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "claim_payout_other"; + #[doc = "See [`Pallet::fund_deficit`]."] + 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, @@ -36460,22 +25035,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 = "See [`Pallet::set_commission`]."] - pub struct SetCommission { - pub pool_id: set_commission::PoolId, - pub new_commission: set_commission::NewCommission, + #[doc = "See [`Pallet::thaw_private`]."] + pub struct ThawPrivate { + #[codec(compact)] + pub index: thaw_private::Index, + pub maybe_proportion: thaw_private::MaybeProportion, } - pub mod set_commission { + pub mod thaw_private { use super::runtime_types; - pub type PoolId = ::core::primitive::u32; - pub type NewCommission = ::core::option::Option<( - runtime_types::sp_arithmetic::per_things::Perbill, - ::subxt::utils::AccountId32, - )>; + pub type Index = ::core::primitive::u32; + pub type MaybeProportion = ::core::option::Option< + runtime_types::sp_arithmetic::per_things::Perquintill, + >; } - impl ::subxt::blocks::StaticExtrinsic for SetCommission { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "set_commission"; + impl ::subxt::blocks::StaticExtrinsic for ThawPrivate { + const PALLET: &'static str = "Nis"; + const CALL: &'static str = "thaw_private"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -36487,19 +25062,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 = "See [`Pallet::set_commission_max`]."] - pub struct SetCommissionMax { - pub pool_id: set_commission_max::PoolId, - pub max_commission: set_commission_max::MaxCommission, + #[doc = "See [`Pallet::thaw_communal`]."] + pub struct ThawCommunal { + #[codec(compact)] + pub index: thaw_communal::Index, } - pub mod set_commission_max { + pub mod thaw_communal { use super::runtime_types; - pub type PoolId = ::core::primitive::u32; - pub type MaxCommission = runtime_types::sp_arithmetic::per_things::Perbill; + pub type Index = ::core::primitive::u32; } - impl ::subxt::blocks::StaticExtrinsic for SetCommissionMax { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "set_commission_max"; + impl ::subxt::blocks::StaticExtrinsic for ThawCommunal { + const PALLET: &'static str = "Nis"; + const CALL: &'static str = "thaw_communal"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -36511,22 +25085,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 = "See [`Pallet::set_commission_change_rate`]."] - pub struct SetCommissionChangeRate { - pub pool_id: set_commission_change_rate::PoolId, - pub change_rate: set_commission_change_rate::ChangeRate, + #[doc = "See [`Pallet::communify`]."] + pub struct Communify { + #[codec(compact)] + pub index: communify::Index, } - pub mod set_commission_change_rate { + pub mod communify { use super::runtime_types; - pub type PoolId = ::core::primitive::u32; - pub type ChangeRate = - runtime_types::pallet_nomination_pools::CommissionChangeRate< - ::core::primitive::u32, - >; + pub type Index = ::core::primitive::u32; } - impl ::subxt::blocks::StaticExtrinsic for SetCommissionChangeRate { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "set_commission_change_rate"; + impl ::subxt::blocks::StaticExtrinsic for Communify { + const PALLET: &'static str = "Nis"; + const CALL: &'static str = "communify"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -36538,436 +25108,146 @@ pub mod 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 = "See [`Pallet::claim_commission`]."] - pub struct ClaimCommission { - pub pool_id: claim_commission::PoolId, + #[doc = "See [`Pallet::privatize`]."] + pub struct Privatize { + #[codec(compact)] + pub index: privatize::Index, } - pub mod claim_commission { + pub mod privatize { use super::runtime_types; - pub type PoolId = ::core::primitive::u32; + pub type Index = ::core::primitive::u32; } - impl ::subxt::blocks::StaticExtrinsic for ClaimCommission { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "claim_commission"; + impl ::subxt::blocks::StaticExtrinsic for Privatize { + const PALLET: &'static str = "Nis"; + const CALL: &'static str = "privatize"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::join`]."] - pub fn join( - &self, - amount: types::join::Amount, - pool_id: types::join::PoolId, - ) -> ::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: types::bond_extra::Extra, - ) -> ::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: types::unbond::MemberAccount, - unbonding_points: types::unbond::UnbondingPoints, - ) -> ::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: types::pool_withdraw_unbonded::PoolId, - num_slashing_spans: types::pool_withdraw_unbonded::NumSlashingSpans, - ) -> ::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: types::withdraw_unbonded::MemberAccount, - num_slashing_spans: types::withdraw_unbonded::NumSlashingSpans, - ) -> ::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: types::create::Amount, - root: types::create::Root, - nominator: types::create::Nominator, - bouncer: types::create::Bouncer, - ) -> ::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: types::create_with_pool_id::Amount, - root: types::create_with_pool_id::Root, - nominator: types::create_with_pool_id::Nominator, - bouncer: types::create_with_pool_id::Bouncer, - pool_id: types::create_with_pool_id::PoolId, - ) -> ::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: types::nominate::PoolId, - validators: types::nominate::Validators, - ) -> ::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: types::set_state::PoolId, - state: types::set_state::State, - ) -> ::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: types::set_metadata::PoolId, - metadata: types::set_metadata::Metadata, - ) -> ::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: types::set_configs::MinJoinBond, - min_create_bond: types::set_configs::MinCreateBond, - max_pools: types::set_configs::MaxPools, - max_members: types::set_configs::MaxMembers, - max_members_per_pool: types::set_configs::MaxMembersPerPool, - global_max_commission: types::set_configs::GlobalMaxCommission, - ) -> ::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: types::update_roles::PoolId, - new_root: types::update_roles::NewRoot, - new_nominator: types::update_roles::NewNominator, - new_bouncer: types::update_roles::NewBouncer, - ) -> ::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: types::chill::PoolId, - ) -> ::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( + #[doc = "See [`Pallet::place_bid`]."] + pub fn place_bid( &self, - member: types::bond_extra_other::Member, - extra: types::bond_extra_other::Extra, - ) -> ::subxt::tx::Payload { + amount: types::place_bid::Amount, + duration: types::place_bid::Duration, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "NominationPools", - "bond_extra_other", - types::BondExtraOther { member, extra }, + "Nis", + "place_bid", + types::PlaceBid { amount, duration }, [ - 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, + 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::set_claim_permission`]."] - pub fn set_claim_permission( + #[doc = "See [`Pallet::retract_bid`]."] + pub fn retract_bid( &self, - permission: types::set_claim_permission::Permission, - ) -> ::subxt::tx::Payload { + amount: types::retract_bid::Amount, + duration: types::retract_bid::Duration, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "NominationPools", - "set_claim_permission", - types::SetClaimPermission { permission }, + "Nis", + "retract_bid", + types::RetractBid { amount, duration }, [ - 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, + 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::claim_payout_other`]."] - pub fn claim_payout_other( - &self, - other: types::claim_payout_other::Other, - ) -> ::subxt::tx::Payload { + #[doc = "See [`Pallet::fund_deficit`]."] + pub fn fund_deficit(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "NominationPools", - "claim_payout_other", - types::ClaimPayoutOther { other }, + "Nis", + "fund_deficit", + types::FundDeficit {}, [ - 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, + 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::set_commission`]."] - pub fn set_commission( + #[doc = "See [`Pallet::thaw_private`]."] + pub fn thaw_private( &self, - pool_id: types::set_commission::PoolId, - new_commission: types::set_commission::NewCommission, - ) -> ::subxt::tx::Payload { + index: types::thaw_private::Index, + maybe_proportion: types::thaw_private::MaybeProportion, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "NominationPools", - "set_commission", - types::SetCommission { - pool_id, - new_commission, + "Nis", + "thaw_private", + types::ThawPrivate { + index, + maybe_proportion, }, [ - 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, + 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::set_commission_max`]."] - pub fn set_commission_max( + #[doc = "See [`Pallet::thaw_communal`]."] + pub fn thaw_communal( &self, - pool_id: types::set_commission_max::PoolId, - max_commission: types::set_commission_max::MaxCommission, - ) -> ::subxt::tx::Payload { + index: types::thaw_communal::Index, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "NominationPools", - "set_commission_max", - types::SetCommissionMax { - pool_id, - max_commission, - }, + "Nis", + "thaw_communal", + types::ThawCommunal { index }, [ - 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, + 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::set_commission_change_rate`]."] - pub fn set_commission_change_rate( + #[doc = "See [`Pallet::communify`]."] + pub fn communify( &self, - pool_id: types::set_commission_change_rate::PoolId, - change_rate: types::set_commission_change_rate::ChangeRate, - ) -> ::subxt::tx::Payload { + index: types::communify::Index, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "NominationPools", - "set_commission_change_rate", - types::SetCommissionChangeRate { - pool_id, - change_rate, - }, + "Nis", + "communify", + types::Communify { index }, [ - 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, + 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::claim_commission`]."] - pub fn claim_commission( + #[doc = "See [`Pallet::privatize`]."] + pub fn privatize( &self, - pool_id: types::claim_commission::PoolId, - ) -> ::subxt::tx::Payload { + index: types::privatize::Index, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "NominationPools", - "claim_commission", - types::ClaimCommission { pool_id }, + "Nis", + "privatize", + types::Privatize { index }, [ - 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, + 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 = "Events of this pallet."] - pub type Event = runtime_types::pallet_nomination_pools::pallet::Event; + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_nis::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -36980,19 +25260,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")] - #[doc = "A pool has been created."] - pub struct Created { - pub depositor: created::Depositor, - pub pool_id: created::PoolId, + #[doc = "A bid was successfully placed."] + pub struct BidPlaced { + pub who: bid_placed::Who, + pub amount: bid_placed::Amount, + pub duration: bid_placed::Duration, } - pub mod created { + pub mod bid_placed { use super::runtime_types; - pub type Depositor = ::subxt::utils::AccountId32; - pub type PoolId = ::core::primitive::u32; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; + pub type Duration = ::core::primitive::u32; } - impl ::subxt::events::StaticEvent for Created { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "Created"; + impl ::subxt::events::StaticEvent for BidPlaced { + const PALLET: &'static str = "Nis"; + const EVENT: &'static str = "BidPlaced"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -37004,31 +25286,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")] - #[doc = "A member has became bonded in a pool."] - pub struct Bonded { - pub member: bonded::Member, - pub pool_id: bonded::PoolId, - pub bonded: bonded::Bonded, - pub joined: bonded::Joined, - } - pub mod bonded { - use super::runtime_types; - pub type Member = ::subxt::utils::AccountId32; - pub type PoolId = ::core::primitive::u32; - pub type Bonded = ::core::primitive::u128; - pub type Joined = ::core::primitive::bool; + #[doc = "A bid was successfully removed (before being accepted)."] + pub struct BidRetracted { + pub who: bid_retracted::Who, + pub amount: bid_retracted::Amount, + pub duration: bid_retracted::Duration, } - pub mod issued { + pub mod bid_retracted { 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; + pub type Duration = ::core::primitive::u32; } - impl ::subxt::events::StaticEvent for Issued { + impl ::subxt::events::StaticEvent for BidRetracted { const PALLET: &'static str = "Nis"; - const EVENT: &'static str = "Issued"; + const EVENT: &'static str = "BidRetracted"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -37040,25 +25312,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")] - #[doc = "A payout has been made to a member."] - pub struct PaidOut { - pub member: paid_out::Member, - pub pool_id: paid_out::PoolId, - pub payout: paid_out::Payout, - } - pub mod paid_out { - use super::runtime_types; - pub type Member = ::subxt::utils::AccountId32; - pub type PoolId = ::core::primitive::u32; - pub type Payout = ::core::primitive::u128; + #[doc = "A bid was dropped from a queue because of another, more substantial, bid was present."] + pub struct BidDropped { + pub who: bid_dropped::Who, + pub amount: bid_dropped::Amount, + pub duration: bid_dropped::Duration, } - pub mod thawed { + pub mod bid_dropped { 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; + pub type Duration = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for BidDropped { + const PALLET: &'static str = "Nis"; + const EVENT: &'static str = "BidDropped"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -37070,35 +25338,25 @@ pub mod 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 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: unbonded::Member, - pub pool_id: unbonded::PoolId, - pub balance: unbonded::Balance, - pub points: unbonded::Points, - pub era: unbonded::Era, - } - pub mod unbonded { + #[doc = "A bid was accepted. The balance may not be released until expiry."] + pub struct Issued { + 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 Member = ::subxt::utils::AccountId32; - pub type PoolId = ::core::primitive::u32; - pub type Balance = ::core::primitive::u128; - pub type Points = ::core::primitive::u128; - pub type Era = ::core::primitive::u32; + 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 Unbonded { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "Unbonded"; + impl ::subxt::events::StaticEvent for Issued { + const PALLET: &'static str = "Nis"; + const EVENT: &'static str = "Issued"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -37110,28 +25368,25 @@ pub mod 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 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: withdrawn::Member, - pub pool_id: withdrawn::PoolId, - pub balance: withdrawn::Balance, - pub points: withdrawn::Points, - } - pub mod withdrawn { + #[doc = "An receipt has been (at least partially) thawed."] + pub struct Thawed { + 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 Member = ::subxt::utils::AccountId32; - pub type PoolId = ::core::primitive::u32; - pub type Balance = ::core::primitive::u128; - pub type Points = ::core::primitive::u128; + 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 Withdrawn { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "Withdrawn"; + impl ::subxt::events::StaticEvent for Thawed { + const PALLET: &'static str = "Nis"; + const EVENT: &'static str = "Thawed"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -37143,13 +25398,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 = "A pool has been destroyed."] - pub struct Destroyed { - pub pool_id: destroyed::PoolId, - } - pub mod destroyed { - use super::runtime_types; - pub type PoolId = ::core::primitive::u32; + #[doc = "An automatic funding of the deficit was made."] + pub struct Funded { + pub deficit: funded::Deficit, } pub mod funded { use super::runtime_types; @@ -37169,15 +25420,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 state of a pool has changed"] - pub struct StateChanged { - pub pool_id: state_changed::PoolId, - pub new_state: state_changed::NewState, - } - pub mod state_changed { - use super::runtime_types; - pub type PoolId = ::core::primitive::u32; - pub type NewState = runtime_types::pallet_nomination_pools::PoolState; + #[doc = "A receipt was transfered."] + pub struct Transferred { + pub from: transferred::From, + pub to: transferred::To, + pub index: transferred::Index, } pub mod transferred { use super::runtime_types; @@ -37185,209 +25432,9 @@ pub mod api { pub type To = ::subxt::utils::AccountId32; pub type 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 = "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: member_removed::PoolId, - pub member: member_removed::Member, - } - pub mod member_removed { - use super::runtime_types; - pub type PoolId = ::core::primitive::u32; - pub type 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: roles_updated::Root, - pub bouncer: roles_updated::Bouncer, - pub nominator: roles_updated::Nominator, - } - pub mod roles_updated { - use super::runtime_types; - pub type Root = ::core::option::Option<::subxt::utils::AccountId32>; - pub type Bouncer = ::core::option::Option<::subxt::utils::AccountId32>; - pub type 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: pool_slashed::PoolId, - pub balance: pool_slashed::Balance, - } - pub mod pool_slashed { - use super::runtime_types; - pub type PoolId = ::core::primitive::u32; - pub type 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: unbonding_pool_slashed::PoolId, - pub era: unbonding_pool_slashed::Era, - pub balance: unbonding_pool_slashed::Balance, - } - pub mod unbonding_pool_slashed { - use super::runtime_types; - pub type PoolId = ::core::primitive::u32; - pub type Era = ::core::primitive::u32; - pub type 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: pool_commission_updated::PoolId, - pub current: pool_commission_updated::Current, - } - pub mod pool_commission_updated { - use super::runtime_types; - pub type PoolId = ::core::primitive::u32; - pub type 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: pool_max_commission_updated::PoolId, - pub max_commission: pool_max_commission_updated::MaxCommission, - } - pub mod pool_max_commission_updated { - use super::runtime_types; - pub type PoolId = ::core::primitive::u32; - pub type MaxCommission = 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: pool_commission_change_rate_updated::PoolId, - pub change_rate: pool_commission_change_rate_updated::ChangeRate, - } - pub mod pool_commission_change_rate_updated { - use super::runtime_types; - pub type PoolId = ::core::primitive::u32; - pub type ChangeRate = 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: pool_commission_claimed::PoolId, - pub commission: pool_commission_claimed::Commission, - } - pub mod pool_commission_claimed { - use super::runtime_types; - pub type PoolId = ::core::primitive::u32; - pub type Commission = ::core::primitive::u128; - } - impl ::subxt::events::StaticEvent for PoolCommissionClaimed { - const PALLET: &'static str = "NominationPools"; - const EVENT: &'static str = "PoolCommissionClaimed"; + impl ::subxt::events::StaticEvent for Transferred { + const PALLET: &'static str = "Nis"; + const EVENT: &'static str = "Transferred"; } } pub mod storage { @@ -37764,11 +25811,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")] - #[doc = "See [`Pallet::register_fast_unstake`]."] - pub struct RegisterFastUnstake; - impl ::subxt::blocks::StaticExtrinsic for RegisterFastUnstake { - const PALLET: &'static str = "FastUnstake"; - const CALL: &'static str = "register_fast_unstake"; + #[doc = "See [`Pallet::transfer_allow_death`]."] + pub struct TransferAllowDeath { + pub dest: transfer_allow_death::Dest, + #[codec(compact)] + 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"; + const CALL: &'static str = "transfer_allow_death"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -37780,11 +25836,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 = "See [`Pallet::deregister`]."] - pub struct Deregister; - impl ::subxt::blocks::StaticExtrinsic for Deregister { - const PALLET: &'static str = "FastUnstake"; - const CALL: &'static str = "deregister"; + #[doc = "See [`Pallet::force_transfer`]."] + pub struct ForceTransfer { + pub source: force_transfer::Source, + pub dest: force_transfer::Dest, + #[codec(compact)] + 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"; + const CALL: &'static str = "force_transfer"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -37796,13 +25863,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 = "See [`Pallet::control`]."] - pub struct Control { - pub eras_to_check: control::ErasToCheck, - } - pub mod control { - use super::runtime_types; - pub type ErasToCheck = ::core::primitive::u32; + #[doc = "See [`Pallet::transfer_keep_alive`]."] + pub struct TransferKeepAlive { + pub dest: transfer_keep_alive::Dest, + #[codec(compact)] + pub value: transfer_keep_alive::Value, } pub mod transfer_keep_alive { use super::runtime_types; @@ -37823,6 +25888,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")] + #[doc = "See [`Pallet::transfer_all`]."] pub struct TransferAll { pub dest: transfer_all::Dest, pub keep_alive: transfer_all::KeepAlive, @@ -37846,6 +25912,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")] + #[doc = "See [`Pallet::force_unreserve`]."] pub struct ForceUnreserve { pub who: force_unreserve::Who, pub amount: force_unreserve::Amount, @@ -37869,6 +25936,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")] + #[doc = "See [`Pallet::upgrade_accounts`]."] pub struct UpgradeAccounts { pub who: upgrade_accounts::Who, } @@ -37890,6 +25958,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")] + #[doc = "See [`Pallet::force_set_balance`]."] pub struct ForceSetBalance { pub who: force_set_balance::Who, #[codec(compact)] @@ -37950,8 +26019,9 @@ pub mod api { #[doc = "See [`Pallet::transfer_keep_alive`]."] pub fn transfer_keep_alive( &self, - eras_to_check: types::control::ErasToCheck, - ) -> ::subxt::tx::Payload { + dest: types::transfer_keep_alive::Dest, + value: types::transfer_keep_alive::Value, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NisCounterpartBalances", "transfer_keep_alive", @@ -38047,16 +26117,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 = "A staker was unstaked."] - pub struct Unstaked { - pub stash: unstaked::Stash, - pub result: unstaked::Result, - } - pub mod unstaked { - use super::runtime_types; - pub type Stash = ::subxt::utils::AccountId32; - pub type Result = - ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>; + #[doc = "An account was created with some free balance."] + pub struct Endowed { + pub account: endowed::Account, + pub free_balance: endowed::FreeBalance, } pub mod endowed { use super::runtime_types; @@ -38280,12 +26344,12 @@ 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 stash: slashed::Stash, + pub who: slashed::Who, pub amount: slashed::Amount, } pub mod slashed { use super::runtime_types; - pub type Stash = ::subxt::utils::AccountId32; + pub type Who = ::subxt::utils::AccountId32; pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Slashed { @@ -38302,13 +26366,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 = "A batch was partially checked for the given eras, but the process did not finish."] - pub struct BatchChecked { - pub eras: batch_checked::Eras, - } - pub mod batch_checked { - use super::runtime_types; - pub type Eras = ::std::vec::Vec<::core::primitive::u32>; + #[doc = "Some amount was minted into an account."] + pub struct Minted { + pub who: minted::Who, + pub amount: minted::Amount, } pub mod minted { use super::runtime_types; @@ -38423,16 +26484,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 = "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: batch_finished::Size, - } - pub mod batch_finished { - use super::runtime_types; - pub type Size = ::core::primitive::u32; + #[doc = "Total issuance was increased by `amount`, creating a credit to be balanced."] + pub struct Issued { + pub amount: issued::Amount, } pub mod issued { use super::runtime_types; @@ -38443,7 +26497,6 @@ pub mod api { const EVENT: &'static str = "Issued"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -39183,13 +27236,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 = "See [`Pallet::set_parathread_cores`]."] - pub struct SetParathreadCores { - pub new: set_parathread_cores::New, - } - pub mod set_parathread_cores { - use super::runtime_types; - pub type New = ::core::primitive::u32; + #[doc = "See [`Pallet::set_on_demand_cores`]."] + pub struct SetOnDemandCores { + pub new: set_on_demand_cores::New, } pub mod set_on_demand_cores { use super::runtime_types; @@ -39209,13 +27258,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 = "See [`Pallet::set_parathread_retries`]."] - pub struct SetParathreadRetries { - pub new: set_parathread_retries::New, - } - pub mod set_parathread_retries { - use super::runtime_types; - pub type New = ::core::primitive::u32; + #[doc = "See [`Pallet::set_on_demand_retries`]."] + pub struct SetOnDemandRetries { + pub new: set_on_demand_retries::New, } pub mod set_on_demand_retries { use super::runtime_types; @@ -39257,13 +27302,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 = "See [`Pallet::set_chain_availability_period`]."] - pub struct SetChainAvailabilityPeriod { - pub new: set_chain_availability_period::New, - } - pub mod set_chain_availability_period { - use super::runtime_types; - pub type New = ::core::primitive::u32; + #[doc = "See [`Pallet::set_paras_availability_period`]."] + pub struct SetParasAvailabilityPeriod { + pub new: set_paras_availability_period::New, } pub mod set_paras_availability_period { use super::runtime_types; @@ -39271,29 +27312,7 @@ pub mod api { } impl ::subxt::blocks::StaticExtrinsic for SetParasAvailabilityPeriod { const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_chain_availability_period"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 = "See [`Pallet::set_thread_availability_period`]."] - pub struct SetThreadAvailabilityPeriod { - pub new: set_thread_availability_period::New, - } - pub mod set_thread_availability_period { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for SetThreadAvailabilityPeriod { - 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 :: Decode, @@ -39767,28 +27786,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")] - #[doc = "See [`Pallet::set_hrmp_max_parathread_inbound_channels`]."] - pub struct SetHrmpMaxParathreadInboundChannels { - pub new: set_hrmp_max_parathread_inbound_channels::New, - } - pub mod set_hrmp_max_parathread_inbound_channels { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for SetHrmpMaxParathreadInboundChannels { - const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_hrmp_max_parathread_inbound_channels"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 = "See [`Pallet::set_hrmp_channel_max_message_size`]."] pub struct SetHrmpChannelMaxMessageSize { pub new: set_hrmp_channel_max_message_size::New, @@ -39833,28 +27830,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")] - #[doc = "See [`Pallet::set_hrmp_max_parathread_outbound_channels`]."] - pub struct SetHrmpMaxParathreadOutboundChannels { - pub new: set_hrmp_max_parathread_outbound_channels::New, - } - pub mod set_hrmp_max_parathread_outbound_channels { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for SetHrmpMaxParathreadOutboundChannels { - const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_hrmp_max_parathread_outbound_channels"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 = "See [`Pallet::set_hrmp_max_message_num_per_candidate`]."] pub struct SetHrmpMaxMessageNumPerCandidate { pub new: set_hrmp_max_message_num_per_candidate::New, @@ -39877,28 +27852,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")] - #[doc = "See [`Pallet::set_pvf_checking_enabled`]."] - pub struct SetPvfCheckingEnabled { - pub new: set_pvf_checking_enabled::New, - } - pub mod set_pvf_checking_enabled { - use super::runtime_types; - pub type New = ::core::primitive::bool; - } - impl ::subxt::blocks::StaticExtrinsic for SetPvfCheckingEnabled { - const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_pvf_checking_enabled"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 = "See [`Pallet::set_pvf_voting_ttl`]."] pub struct SetPvfVotingTtl { pub new: set_pvf_voting_ttl::New, @@ -39971,7 +27924,8 @@ pub mod api { } pub mod set_async_backing_params { use super::runtime_types; - pub type New = runtime_types::polkadot_primitives::vstaging::AsyncBackingParams; + pub type New = + runtime_types::polkadot_primitives::v6::async_backing::AsyncBackingParams; } impl ::subxt::blocks::StaticExtrinsic for SetAsyncBackingParams { const PALLET: &'static str = "Configuration"; @@ -39994,14 +27948,13 @@ pub mod api { pub mod set_executor_params { use super::runtime_types; pub type New = - runtime_types::polkadot_primitives::v5::executor_params::ExecutorParams; + runtime_types::polkadot_primitives::v6::executor_params::ExecutorParams; } impl ::subxt::blocks::StaticExtrinsic for SetExecutorParams { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_executor_params"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -40011,6 +27964,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")] + #[doc = "See [`Pallet::set_on_demand_base_fee`]."] pub struct SetOnDemandBaseFee { pub new: set_on_demand_base_fee::New, } @@ -40032,6 +27986,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")] + #[doc = "See [`Pallet::set_on_demand_fee_variability`]."] pub struct SetOnDemandFeeVariability { pub new: set_on_demand_fee_variability::New, } @@ -40044,7 +27999,6 @@ pub mod api { const CALL: &'static str = "set_on_demand_fee_variability"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -40054,6 +28008,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")] + #[doc = "See [`Pallet::set_on_demand_queue_max_size`]."] pub struct SetOnDemandQueueMaxSize { pub new: set_on_demand_queue_max_size::New, } @@ -40075,6 +28030,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")] + #[doc = "See [`Pallet::set_on_demand_target_queue_utilization`]."] pub struct SetOnDemandTargetQueueUtilization { pub new: set_on_demand_target_queue_utilization::New, } @@ -40087,7 +28043,6 @@ pub mod api { 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, @@ -40097,6 +28052,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")] + #[doc = "See [`Pallet::set_on_demand_ttl`]."] pub struct SetOnDemandTtl { pub new: set_on_demand_ttl::New, } @@ -40109,7 +28065,6 @@ pub mod api { 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, @@ -40119,6 +28074,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")] + #[doc = "See [`Pallet::set_minimum_backing_votes`]."] pub struct SetMinimumBackingVotes { pub new: set_minimum_backing_votes::New, } @@ -40130,29 +28086,6 @@ 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 { @@ -40259,8 +28192,8 @@ pub mod api { #[doc = "See [`Pallet::set_on_demand_cores`]."] pub fn set_on_demand_cores( &self, - new: types::set_parathread_cores::New, - ) -> ::subxt::tx::Payload { + new: types::set_on_demand_cores::New, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", "set_on_demand_cores", @@ -40276,8 +28209,8 @@ pub mod api { #[doc = "See [`Pallet::set_on_demand_retries`]."] pub fn set_on_demand_retries( &self, - new: types::set_parathread_retries::New, - ) -> ::subxt::tx::Payload { + new: types::set_on_demand_retries::New, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", "set_on_demand_retries", @@ -40309,34 +28242,16 @@ pub mod api { #[doc = "See [`Pallet::set_paras_availability_period`]."] pub fn set_paras_availability_period( &self, - new: types::set_chain_availability_period::New, - ) -> ::subxt::tx::Payload { + new: types::set_paras_availability_period::New, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", "set_paras_availability_period", types::SetParasAvailabilityPeriod { 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( - &self, - new: types::set_thread_availability_period::New, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_thread_availability_period", - types::SetThreadAvailabilityPeriod { 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, ], ) } @@ -40691,23 +28606,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_hrmp_max_parathread_inbound_channels`]."] - pub fn set_hrmp_max_parathread_inbound_channels( - &self, - new: types::set_hrmp_max_parathread_inbound_channels::New, - ) -> ::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, @@ -40742,24 +28640,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_hrmp_max_parathread_outbound_channels`]."] - pub fn set_hrmp_max_parathread_outbound_channels( - &self, - new: types::set_hrmp_max_parathread_outbound_channels::New, - ) -> ::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, @@ -40776,23 +28656,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_pvf_checking_enabled`]."] - pub fn set_pvf_checking_enabled( - &self, - new: types::set_pvf_checking_enabled::New, - ) -> ::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, @@ -40871,9 +28734,9 @@ pub mod api { "set_executor_params", types::SetExecutorParams { new }, [ - 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, + 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, ], ) } @@ -40977,23 +28840,6 @@ 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 { @@ -41030,10 +28876,10 @@ pub mod api { "ActiveConfig", vec![], [ - 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, + 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, ], ) } @@ -41058,9 +28904,10 @@ pub mod api { "PendingConfigs", vec![], [ - 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, + 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, ], ) } @@ -41264,10 +29111,11 @@ pub mod api { pub mod candidate_backed { use super::runtime_types; pub type Field0 = - runtime_types::polkadot_primitives::v5::CandidateReceipt<::subxt::utils::H256>; - pub type Field1 = runtime_types::polkadot_parachain::primitives::HeadData; - pub type Field2 = runtime_types::polkadot_primitives::v5::CoreIndex; - pub type Field3 = runtime_types::polkadot_primitives::v5::GroupIndex; + 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"; @@ -41293,10 +29141,11 @@ pub mod api { pub mod candidate_included { use super::runtime_types; pub type Field0 = - runtime_types::polkadot_primitives::v5::CandidateReceipt<::subxt::utils::H256>; - pub type Field1 = runtime_types::polkadot_parachain::primitives::HeadData; - pub type Field2 = runtime_types::polkadot_primitives::v5::CoreIndex; - pub type Field3 = runtime_types::polkadot_primitives::v5::GroupIndex; + 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"; @@ -41321,9 +29170,10 @@ pub mod api { pub mod candidate_timed_out { use super::runtime_types; pub type Field0 = - runtime_types::polkadot_primitives::v5::CandidateReceipt<::subxt::utils::H256>; - pub type Field1 = runtime_types::polkadot_parachain::primitives::HeadData; - pub type Field2 = runtime_types::polkadot_primitives::v5::CoreIndex; + 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"; @@ -41346,7 +29196,7 @@ pub mod api { } pub mod upward_messages_received { use super::runtime_types; - pub type From = runtime_types::polkadot_parachain::primitives::Id; + pub type From = runtime_types::polkadot_parachain_primitives::primitives::Id; pub type Count = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for UpwardMessagesReceived { @@ -41546,11 +29396,8 @@ pub mod api { } pub mod enter { use super::runtime_types; - pub type Data = runtime_types::polkadot_primitives::v5::InherentData< - runtime_types::sp_runtime::generic::header::Header< - ::core::primitive::u32, - runtime_types::sp_runtime::traits::BlakeTwo256, - >, + 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 { @@ -41819,9 +29666,9 @@ pub mod api { } pub mod force_set_current_code { use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain::primitives::Id; + pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; pub type NewCode = - runtime_types::polkadot_parachain::primitives::ValidationCode; + runtime_types::polkadot_parachain_primitives::primitives::ValidationCode; } impl ::subxt::blocks::StaticExtrinsic for ForceSetCurrentCode { const PALLET: &'static str = "Paras"; @@ -41844,8 +29691,9 @@ pub mod api { } pub mod force_set_current_head { use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain::primitives::Id; - pub type NewHead = runtime_types::polkadot_parachain::primitives::HeadData; + 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"; @@ -41869,9 +29717,9 @@ pub mod api { } pub mod force_schedule_code_upgrade { use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain::primitives::Id; + pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; pub type NewCode = - runtime_types::polkadot_parachain::primitives::ValidationCode; + runtime_types::polkadot_parachain_primitives::primitives::ValidationCode; pub type RelayParentNumber = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for ForceScheduleCodeUpgrade { @@ -41895,8 +29743,9 @@ pub mod api { } pub mod force_note_new_head { use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain::primitives::Id; - pub type NewHead = runtime_types::polkadot_parachain::primitives::HeadData; + 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"; @@ -41918,7 +29767,7 @@ pub mod api { } pub mod force_queue_action { use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain::primitives::Id; + pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::blocks::StaticExtrinsic for ForceQueueAction { const PALLET: &'static str = "Paras"; @@ -41941,7 +29790,7 @@ pub mod api { pub mod add_trusted_validation_code { use super::runtime_types; pub type ValidationCode = - runtime_types::polkadot_parachain::primitives::ValidationCode; + runtime_types::polkadot_parachain_primitives::primitives::ValidationCode; } impl ::subxt::blocks::StaticExtrinsic for AddTrustedValidationCode { const PALLET: &'static str = "Paras"; @@ -41963,8 +29812,7 @@ pub mod api { } pub mod poke_unused_validation_code { use super::runtime_types; - pub type ValidationCodeHash = - runtime_types::polkadot_parachain::primitives::ValidationCodeHash; + pub type ValidationCodeHash = runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash ; } impl ::subxt::blocks::StaticExtrinsic for PokeUnusedValidationCode { const PALLET: &'static str = "Paras"; @@ -41987,9 +29835,9 @@ pub mod api { } pub mod include_pvf_check_statement { use super::runtime_types; - pub type Stmt = runtime_types::polkadot_primitives::v5::PvfCheckStatement; + pub type Stmt = runtime_types::polkadot_primitives::v6::PvfCheckStatement; pub type Signature = - runtime_types::polkadot_primitives::v5::validator_app::Signature; + runtime_types::polkadot_primitives::v6::validator_app::Signature; } impl ::subxt::blocks::StaticExtrinsic for IncludePvfCheckStatement { const PALLET: &'static str = "Paras"; @@ -42005,6 +29853,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")] + #[doc = "See [`Pallet::force_set_most_recent_context`]."] pub struct ForceSetMostRecentContext { pub para: force_set_most_recent_context::Para, pub context: force_set_most_recent_context::Context, @@ -42204,7 +30053,7 @@ pub mod api { 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::Id; + pub type Field0 = runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::events::StaticEvent for CurrentCodeUpdated { const PALLET: &'static str = "Paras"; @@ -42224,7 +30073,7 @@ pub mod api { 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::Id; + pub type Field0 = runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::events::StaticEvent for CurrentHeadUpdated { const PALLET: &'static str = "Paras"; @@ -42244,7 +30093,7 @@ pub mod api { 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::Id; + pub type Field0 = runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::events::StaticEvent for CodeUpgradeScheduled { const PALLET: &'static str = "Paras"; @@ -42264,7 +30113,7 @@ pub mod api { 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::Id; + pub type Field0 = runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::events::StaticEvent for NewHeadNoted { const PALLET: &'static str = "Paras"; @@ -42284,7 +30133,7 @@ pub mod api { 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::Id; + pub type Field0 = runtime_types::polkadot_parachain_primitives::primitives::Id; pub type Field1 = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for ActionQueued { @@ -42309,8 +30158,9 @@ pub mod api { ); pub mod pvf_check_started { use super::runtime_types; - pub type Field0 = runtime_types::polkadot_parachain::primitives::ValidationCodeHash; - pub type Field1 = runtime_types::polkadot_parachain::primitives::Id; + 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"; @@ -42334,8 +30184,9 @@ pub mod api { ); pub mod pvf_check_accepted { use super::runtime_types; - pub type Field0 = runtime_types::polkadot_parachain::primitives::ValidationCodeHash; - pub type Field1 = runtime_types::polkadot_parachain::primitives::Id; + 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"; @@ -42359,8 +30210,9 @@ pub mod api { ); pub mod pvf_check_rejected { use super::runtime_types; - pub type Field0 = runtime_types::polkadot_parachain::primitives::ValidationCodeHash; - pub type Field1 = runtime_types::polkadot_parachain::primitives::Id; + 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"; @@ -43769,7 +31621,8 @@ pub mod api { } pub mod hrmp_init_open_channel { use super::runtime_types; - pub type Recipient = runtime_types::polkadot_parachain::primitives::Id; + pub type Recipient = + runtime_types::polkadot_parachain_primitives::primitives::Id; pub type ProposedMaxCapacity = ::core::primitive::u32; pub type ProposedMaxMessageSize = ::core::primitive::u32; } @@ -43793,7 +31646,7 @@ pub mod api { } pub mod hrmp_accept_open_channel { use super::runtime_types; - pub type Sender = runtime_types::polkadot_parachain::primitives::Id; + pub type Sender = runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::blocks::StaticExtrinsic for HrmpAcceptOpenChannel { const PALLET: &'static str = "Hrmp"; @@ -43816,7 +31669,7 @@ pub mod api { pub mod hrmp_close_channel { use super::runtime_types; pub type ChannelId = - runtime_types::polkadot_parachain::primitives::HrmpChannelId; + runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId; } impl ::subxt::blocks::StaticExtrinsic for HrmpCloseChannel { const PALLET: &'static str = "Hrmp"; @@ -43835,14 +31688,14 @@ pub mod api { #[doc = "See [`Pallet::force_clean_hrmp`]."] pub struct ForceCleanHrmp { pub para: force_clean_hrmp::Para, - pub inbound: force_clean_hrmp::Inbound, - pub outbound: force_clean_hrmp::Outbound, + 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::Id; - pub type Inbound = ::core::primitive::u32; - pub type Outbound = ::core::primitive::u32; + 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"; @@ -43910,7 +31763,7 @@ pub mod api { pub mod hrmp_cancel_open_request { use super::runtime_types; pub type ChannelId = - runtime_types::polkadot_parachain::primitives::HrmpChannelId; + runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId; pub type OpenRequests = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for HrmpCancelOpenRequest { @@ -43936,8 +31789,9 @@ pub mod api { } pub mod force_open_hrmp_channel { use super::runtime_types; - pub type Sender = runtime_types::polkadot_parachain::primitives::Id; - pub type Recipient = runtime_types::polkadot_parachain::primitives::Id; + 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; } @@ -43955,6 +31809,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")] + #[doc = "See [`Pallet::establish_system_channel`]."] pub struct EstablishSystemChannel { pub sender: establish_system_channel::Sender, pub recipient: establish_system_channel::Recipient, @@ -43979,6 +31834,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")] + #[doc = "See [`Pallet::poke_channel_deposits`]."] pub struct PokeChannelDeposits { pub sender: poke_channel_deposits::Sender, pub recipient: poke_channel_deposits::Recipient, @@ -44056,8 +31912,8 @@ pub mod api { pub fn force_clean_hrmp( &self, para: types::force_clean_hrmp::Para, - inbound: types::force_clean_hrmp::Inbound, - outbound: types::force_clean_hrmp::Outbound, + num_inbound: types::force_clean_hrmp::NumInbound, + num_outbound: types::force_clean_hrmp::NumOutbound, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Hrmp", @@ -44203,19 +32059,18 @@ 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 open_channel_requested::Field0, - pub open_channel_requested::Field1, - pub open_channel_requested::Field2, - pub open_channel_requested::Field3, - ); + pub struct OpenChannelRequested { + 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 Field0 = runtime_types::polkadot_parachain::primitives::Id; - pub type Field1 = runtime_types::polkadot_parachain::primitives::Id; - pub type Field2 = ::core::primitive::u32; - pub type Field3 = ::core::primitive::u32; + 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"; @@ -44232,15 +32087,15 @@ 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 open_channel_canceled::Field0, - pub open_channel_canceled::Field1, - ); + pub struct OpenChannelCanceled { + 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 Field0 = runtime_types::polkadot_parachain::primitives::Id; - pub type Field1 = runtime_types::polkadot_parachain::primitives::HrmpChannelId; + 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"; @@ -44256,15 +32111,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 = "Open HRMP channel accepted. `[sender, recipient]`"] - pub struct OpenChannelAccepted( - pub open_channel_accepted::Field0, - pub open_channel_accepted::Field1, - ); + #[doc = "Open HRMP channel accepted."] + pub struct OpenChannelAccepted { + pub sender: open_channel_accepted::Sender, + pub recipient: open_channel_accepted::Recipient, + } pub mod open_channel_accepted { use super::runtime_types; - pub type Field0 = runtime_types::polkadot_parachain::primitives::Id; - pub type Field1 = runtime_types::polkadot_parachain::primitives::Id; + 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"; @@ -44280,12 +32135,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 = "HRMP channel closed. `[by_parachain, channel_id]`"] - pub struct ChannelClosed(pub channel_closed::Field0, pub channel_closed::Field1); + #[doc = "HRMP channel closed."] + pub struct ChannelClosed { + pub by_parachain: channel_closed::ByParachain, + pub channel_id: channel_closed::ChannelId, + } pub mod channel_closed { use super::runtime_types; - pub type Field0 = runtime_types::polkadot_parachain::primitives::Id; - pub type Field1 = runtime_types::polkadot_parachain::primitives::HrmpChannelId; + 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"; @@ -44302,19 +32161,18 @@ 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 hrmp_channel_force_opened::Field0, - pub hrmp_channel_force_opened::Field1, - pub hrmp_channel_force_opened::Field2, - pub hrmp_channel_force_opened::Field3, - ); + pub struct HrmpChannelForceOpened { + 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 Field0 = runtime_types::polkadot_parachain::primitives::Id; - pub type Field1 = runtime_types::polkadot_parachain::primitives::Id; - pub type Field2 = ::core::primitive::u32; - pub type Field3 = ::core::primitive::u32; + 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"; @@ -45236,9 +33094,10 @@ pub mod api { "SessionExecutorParams", vec![], [ - 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, + 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, ], ) } @@ -45260,9 +33119,10 @@ pub mod api { _0.borrow(), )], [ - 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, + 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, ], ) } @@ -45743,7 +33603,7 @@ pub mod api { pub mod report_dispute_lost_unsigned { use super::runtime_types; pub type DisputeProof = - runtime_types::polkadot_primitives::v5::slashing::DisputeProof; + runtime_types::polkadot_primitives::v6::slashing::DisputeProof; pub type KeyOwnerProof = runtime_types::sp_session::MembershipProof; } impl ::subxt::blocks::StaticExtrinsic for ReportDisputeLostUnsigned { @@ -45940,6 +33800,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")] + #[doc = "See [`Pallet::reap_page`]."] pub struct ReapPage { pub message_origin: reap_page::MessageOrigin, pub page_index: reap_page::PageIndex, @@ -45963,6 +33824,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")] + #[doc = "See [`Pallet::execute_overweight`]."] pub struct ExecuteOverweight { pub message_origin: execute_overweight::MessageOrigin, pub page: execute_overweight::Page, @@ -46410,6 +34272,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")] + #[doc = "See [`Pallet::place_order_allow_death`]."] pub struct PlaceOrderAllowDeath { pub max_amount: place_order_allow_death::MaxAmount, pub para_id: place_order_allow_death::ParaId, @@ -46433,6 +34296,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")] + #[doc = "See [`Pallet::place_order_keep_alive`]."] pub struct PlaceOrderKeepAlive { pub max_amount: place_order_keep_alive::MaxAmount, pub para_id: place_order_keep_alive::ParaId, @@ -46720,10 +34584,11 @@ pub mod api { } pub mod register { use super::runtime_types; - pub type Id = runtime_types::polkadot_parachain::primitives::Id; - pub type GenesisHead = runtime_types::polkadot_parachain::primitives::HeadData; + 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::ValidationCode; + runtime_types::polkadot_parachain_primitives::primitives::ValidationCode; } impl ::subxt::blocks::StaticExtrinsic for Register { const PALLET: &'static str = "Registrar"; @@ -46751,10 +34616,11 @@ pub mod api { use super::runtime_types; pub type Who = ::subxt::utils::AccountId32; pub type Deposit = ::core::primitive::u128; - pub type Id = runtime_types::polkadot_parachain::primitives::Id; - pub type GenesisHead = runtime_types::polkadot_parachain::primitives::HeadData; + 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::ValidationCode; + runtime_types::polkadot_parachain_primitives::primitives::ValidationCode; } impl ::subxt::blocks::StaticExtrinsic for ForceRegister { const PALLET: &'static str = "Registrar"; @@ -46776,7 +34642,7 @@ pub mod api { } pub mod deregister { use super::runtime_types; - pub type Id = runtime_types::polkadot_parachain::primitives::Id; + pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::blocks::StaticExtrinsic for Deregister { const PALLET: &'static str = "Registrar"; @@ -46799,8 +34665,8 @@ pub mod api { } pub mod swap { use super::runtime_types; - pub type Id = runtime_types::polkadot_parachain::primitives::Id; - pub type Other = runtime_types::polkadot_parachain::primitives::Id; + 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"; @@ -46822,7 +34688,7 @@ pub mod api { } pub mod remove_lock { use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain::primitives::Id; + pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::blocks::StaticExtrinsic for RemoveLock { const PALLET: &'static str = "Registrar"; @@ -46860,7 +34726,7 @@ pub mod api { } pub mod add_lock { use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain::primitives::Id; + pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::blocks::StaticExtrinsic for AddLock { const PALLET: &'static str = "Registrar"; @@ -46883,9 +34749,9 @@ pub mod api { } pub mod schedule_code_upgrade { use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain::primitives::Id; + pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; pub type NewCode = - runtime_types::polkadot_parachain::primitives::ValidationCode; + runtime_types::polkadot_parachain_primitives::primitives::ValidationCode; } impl ::subxt::blocks::StaticExtrinsic for ScheduleCodeUpgrade { const PALLET: &'static str = "Registrar"; @@ -46908,8 +34774,9 @@ pub mod api { } pub mod set_current_head { use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain::primitives::Id; - pub type NewHead = runtime_types::polkadot_parachain::primitives::HeadData; + 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"; @@ -47104,7 +34971,7 @@ pub mod api { } pub mod registered { use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain::primitives::Id; + pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; pub type Manager = ::subxt::utils::AccountId32; } impl ::subxt::events::StaticEvent for Registered { @@ -47126,7 +34993,7 @@ pub mod api { } pub mod deregistered { use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain::primitives::Id; + pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::events::StaticEvent for Deregistered { const PALLET: &'static str = "Registrar"; @@ -47148,7 +35015,7 @@ pub mod api { } pub mod reserved { use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain::primitives::Id; + pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; pub type Who = ::subxt::utils::AccountId32; } impl ::subxt::events::StaticEvent for Reserved { @@ -47171,8 +35038,8 @@ pub mod api { } pub mod swapped { use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain::primitives::Id; - pub type OtherId = runtime_types::polkadot_parachain::primitives::Id; + 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"; @@ -47395,7 +35262,7 @@ pub mod api { } pub mod force_lease { use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain::primitives::Id; + 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; @@ -47421,7 +35288,7 @@ pub mod api { } pub mod clear_all_leases { use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain::primitives::Id; + pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::blocks::StaticExtrinsic for ClearAllLeases { const PALLET: &'static str = "Slots"; @@ -47443,7 +35310,7 @@ pub mod api { } pub mod trigger_onboard { use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain::primitives::Id; + pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::blocks::StaticExtrinsic for TriggerOnboard { const PALLET: &'static str = "Slots"; @@ -47562,7 +35429,7 @@ pub mod api { } pub mod leased { use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain::primitives::Id; + 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; @@ -47767,7 +35634,7 @@ pub mod api { } pub mod bid { use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain::primitives::Id; + 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; @@ -47981,7 +35848,7 @@ pub mod api { } pub mod reserve_confiscated { use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain::primitives::Id; + pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; pub type Leaser = ::subxt::utils::AccountId32; pub type Amount = ::core::primitive::u128; } @@ -48010,7 +35877,7 @@ pub mod api { pub mod bid_accepted { use super::runtime_types; pub type Bidder = ::subxt::utils::AccountId32; - pub type ParaId = runtime_types::polkadot_parachain::primitives::Id; + 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; @@ -48351,7 +36218,7 @@ pub mod api { } pub mod create { use super::runtime_types; - pub type Index = runtime_types::polkadot_parachain::primitives::Id; + 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; @@ -48383,7 +36250,7 @@ pub mod api { } pub mod contribute { use super::runtime_types; - pub type Index = runtime_types::polkadot_parachain::primitives::Id; + pub type Index = runtime_types::polkadot_parachain_primitives::primitives::Id; pub type Value = ::core::primitive::u128; pub type Signature = ::core::option::Option; @@ -48411,7 +36278,7 @@ pub mod api { pub mod withdraw { use super::runtime_types; pub type Who = ::subxt::utils::AccountId32; - pub type Index = runtime_types::polkadot_parachain::primitives::Id; + pub type Index = runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::blocks::StaticExtrinsic for Withdraw { const PALLET: &'static str = "Crowdloan"; @@ -48434,7 +36301,7 @@ pub mod api { } pub mod refund { use super::runtime_types; - pub type Index = runtime_types::polkadot_parachain::primitives::Id; + pub type Index = runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::blocks::StaticExtrinsic for Refund { const PALLET: &'static str = "Crowdloan"; @@ -48457,7 +36324,7 @@ pub mod api { } pub mod dissolve { use super::runtime_types; - pub type Index = runtime_types::polkadot_parachain::primitives::Id; + pub type Index = runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::blocks::StaticExtrinsic for Dissolve { const PALLET: &'static str = "Crowdloan"; @@ -48489,7 +36356,7 @@ pub mod api { } pub mod edit { use super::runtime_types; - pub type Index = runtime_types::polkadot_parachain::primitives::Id; + 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; @@ -48518,7 +36385,7 @@ pub mod api { } pub mod add_memo { use super::runtime_types; - pub type Index = runtime_types::polkadot_parachain::primitives::Id; + 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 { @@ -48541,7 +36408,7 @@ pub mod api { } pub mod poke { use super::runtime_types; - pub type Index = runtime_types::polkadot_parachain::primitives::Id; + pub type Index = runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::blocks::StaticExtrinsic for Poke { const PALLET: &'static str = "Crowdloan"; @@ -48565,7 +36432,7 @@ pub mod api { } pub mod contribute_all { use super::runtime_types; - pub type Index = runtime_types::polkadot_parachain::primitives::Id; + pub type Index = runtime_types::polkadot_parachain_primitives::primitives::Id; pub type Signature = ::core::option::Option; } @@ -48778,7 +36645,7 @@ pub mod api { } pub mod created { use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain::primitives::Id; + pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::events::StaticEvent for Created { const PALLET: &'static str = "Crowdloan"; @@ -48803,7 +36670,7 @@ pub mod api { pub mod contributed { use super::runtime_types; pub type Who = ::subxt::utils::AccountId32; - pub type FundIndex = runtime_types::polkadot_parachain::primitives::Id; + pub type FundIndex = runtime_types::polkadot_parachain_primitives::primitives::Id; pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Contributed { @@ -48829,7 +36696,7 @@ pub mod api { pub mod withdrew { use super::runtime_types; pub type Who = ::subxt::utils::AccountId32; - pub type FundIndex = runtime_types::polkadot_parachain::primitives::Id; + pub type FundIndex = runtime_types::polkadot_parachain_primitives::primitives::Id; pub type Amount = ::core::primitive::u128; } impl ::subxt::events::StaticEvent for Withdrew { @@ -48853,7 +36720,7 @@ pub mod api { } pub mod partially_refunded { use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain::primitives::Id; + pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::events::StaticEvent for PartiallyRefunded { const PALLET: &'static str = "Crowdloan"; @@ -48875,7 +36742,7 @@ pub mod api { } pub mod all_refunded { use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain::primitives::Id; + pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::events::StaticEvent for AllRefunded { const PALLET: &'static str = "Crowdloan"; @@ -48897,7 +36764,7 @@ pub mod api { } pub mod dissolved { use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain::primitives::Id; + pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::events::StaticEvent for Dissolved { const PALLET: &'static str = "Crowdloan"; @@ -48920,7 +36787,7 @@ pub mod api { } pub mod handle_bid_result { use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain::primitives::Id; + pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; pub type Result = ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>; } @@ -48944,7 +36811,7 @@ pub mod api { } pub mod edited { use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain::primitives::Id; + pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::events::StaticEvent for Edited { const PALLET: &'static str = "Crowdloan"; @@ -48969,7 +36836,7 @@ pub mod api { pub mod memo_updated { use super::runtime_types; pub type Who = ::subxt::utils::AccountId32; - pub type ParaId = runtime_types::polkadot_parachain::primitives::Id; + 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 { @@ -48992,7 +36859,7 @@ pub mod api { } pub mod added_to_new_raise { use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain::primitives::Id; + pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; } impl ::subxt::events::StaticEvent for AddedToNewRaise { const PALLET: &'static str = "Crowdloan"; @@ -49332,7 +37199,8 @@ pub mod api { } pub mod force_xcm_version { use super::runtime_types; - pub type Location = runtime_types::xcm::v3::multilocation::MultiLocation; + pub type Location = + runtime_types::staging_xcm::v3::multilocation::MultiLocation; pub type Version = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for ForceXcmVersion { @@ -49488,35 +37356,6 @@ 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 { @@ -49534,10 +37373,9 @@ pub mod api { message: ::std::boxed::Box::new(message), }, [ - 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, + 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, ], ) } @@ -49559,10 +37397,9 @@ pub mod api { fee_asset_item, }, [ - 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, + 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, ], ) } @@ -49584,9 +37421,9 @@ pub mod api { fee_asset_item, }, [ - 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, + 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, ], ) } @@ -49604,9 +37441,9 @@ pub mod api { max_weight, }, [ - 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, + 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, ], ) } @@ -49624,10 +37461,9 @@ pub mod api { version, }, [ - 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, + 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, ], ) } @@ -49660,9 +37496,9 @@ pub mod api { location: ::std::boxed::Box::new(location), }, [ - 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, + 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, ], ) } @@ -49678,10 +37514,10 @@ pub mod api { location: ::std::boxed::Box::new(location), }, [ - 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, + 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, ], ) } @@ -49705,10 +37541,10 @@ pub mod api { weight_limit, }, [ - 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, + 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, ], ) } @@ -49732,9 +37568,10 @@ pub mod api { weight_limit, }, [ - 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, + 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, ], ) } @@ -49743,40 +37580,14 @@ pub mod api { &self, suspended: types::force_suspension::Suspended, ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "XcmPallet", - "force_suspension", - types::ForceSuspension { suspended }, - [ - 78u8, 125u8, 93u8, 55u8, 129u8, 44u8, 36u8, 227u8, 75u8, 46u8, 68u8, - 202u8, 81u8, 127u8, 111u8, 92u8, 149u8, 38u8, 225u8, 185u8, 183u8, - 154u8, 89u8, 159u8, 79u8, 10u8, 229u8, 1u8, 226u8, 243u8, 65u8, 238u8, - ], - ) - } - #[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, - }, + ::subxt::tx::Payload::new_static( + "XcmPallet", + "force_suspension", + types::ForceSuspension { suspended }, [ - 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, + 78u8, 125u8, 93u8, 55u8, 129u8, 44u8, 36u8, 227u8, 75u8, 46u8, 68u8, + 202u8, 81u8, 127u8, 111u8, 92u8, 149u8, 38u8, 225u8, 185u8, 183u8, + 154u8, 89u8, 159u8, 79u8, 10u8, 229u8, 1u8, 226u8, 243u8, 65u8, 238u8, ], ) } @@ -49827,8 +37638,8 @@ pub mod api { } pub mod sent { use super::runtime_types; - pub type Origin = runtime_types::xcm::v3::multilocation::MultiLocation; - pub type Destination = runtime_types::xcm::v3::multilocation::MultiLocation; + 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]; } @@ -49855,7 +37666,7 @@ pub mod api { } pub mod unexpected_response { use super::runtime_types; - pub type Origin = runtime_types::xcm::v3::multilocation::MultiLocation; + pub type Origin = runtime_types::staging_xcm::v3::multilocation::MultiLocation; pub type QueryId = ::core::primitive::u64; } impl ::subxt::events::StaticEvent for UnexpectedResponse { @@ -50021,10 +37832,11 @@ pub mod api { } pub mod invalid_responder { use super::runtime_types; - pub type Origin = runtime_types::xcm::v3::multilocation::MultiLocation; + pub type Origin = runtime_types::staging_xcm::v3::multilocation::MultiLocation; pub type QueryId = ::core::primitive::u64; - pub type ExpectedLocation = - ::core::option::Option; + pub type ExpectedLocation = ::core::option::Option< + runtime_types::staging_xcm::v3::multilocation::MultiLocation, + >; } impl ::subxt::events::StaticEvent for InvalidResponder { const PALLET: &'static str = "XcmPallet"; @@ -50053,7 +37865,7 @@ pub mod api { } pub mod invalid_responder_version { use super::runtime_types; - pub type Origin = runtime_types::xcm::v3::multilocation::MultiLocation; + pub type Origin = runtime_types::staging_xcm::v3::multilocation::MultiLocation; pub type QueryId = ::core::primitive::u64; } impl ::subxt::events::StaticEvent for InvalidResponderVersion { @@ -50101,7 +37913,7 @@ pub mod api { pub mod assets_trapped { use super::runtime_types; pub type Hash = ::subxt::utils::H256; - pub type Origin = runtime_types::xcm::v3::multilocation::MultiLocation; + pub type Origin = runtime_types::staging_xcm::v3::multilocation::MultiLocation; pub type Assets = runtime_types::xcm::VersionedMultiAssets; } impl ::subxt::events::StaticEvent for AssetsTrapped { @@ -50129,7 +37941,7 @@ pub mod api { } pub mod version_change_notified { use super::runtime_types; - pub type Destination = runtime_types::xcm::v3::multilocation::MultiLocation; + 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]; @@ -50156,7 +37968,7 @@ pub mod api { } pub mod supported_version_changed { use super::runtime_types; - pub type Location = runtime_types::xcm::v3::multilocation::MultiLocation; + pub type Location = runtime_types::staging_xcm::v3::multilocation::MultiLocation; pub type Version = ::core::primitive::u32; } impl ::subxt::events::StaticEvent for SupportedVersionChanged { @@ -50182,7 +37994,7 @@ pub mod api { } pub mod notify_target_send_fail { use super::runtime_types; - pub type Location = runtime_types::xcm::v3::multilocation::MultiLocation; + 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; } @@ -50238,7 +38050,7 @@ pub mod api { } pub mod invalid_querier_version { use super::runtime_types; - pub type Origin = runtime_types::xcm::v3::multilocation::MultiLocation; + pub type Origin = runtime_types::staging_xcm::v3::multilocation::MultiLocation; pub type QueryId = ::core::primitive::u64; } impl ::subxt::events::StaticEvent for InvalidQuerierVersion { @@ -50266,11 +38078,13 @@ pub mod api { } pub mod invalid_querier { use super::runtime_types; - pub type Origin = runtime_types::xcm::v3::multilocation::MultiLocation; + pub type Origin = runtime_types::staging_xcm::v3::multilocation::MultiLocation; pub type QueryId = ::core::primitive::u64; - pub type ExpectedQuerier = runtime_types::xcm::v3::multilocation::MultiLocation; - pub type MaybeActualQuerier = - ::core::option::Option; + 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"; @@ -50295,7 +38109,7 @@ pub mod api { } pub mod version_notify_started { use super::runtime_types; - pub type Destination = runtime_types::xcm::v3::multilocation::MultiLocation; + 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]; } @@ -50321,7 +38135,7 @@ pub mod api { } pub mod version_notify_requested { use super::runtime_types; - pub type Destination = runtime_types::xcm::v3::multilocation::MultiLocation; + 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]; } @@ -50348,7 +38162,7 @@ pub mod api { } pub mod version_notify_unrequested { use super::runtime_types; - pub type Destination = runtime_types::xcm::v3::multilocation::MultiLocation; + 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]; } @@ -50373,7 +38187,7 @@ pub mod api { } pub mod fees_paid { use super::runtime_types; - pub type Paying = runtime_types::xcm::v3::multilocation::MultiLocation; + 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 { @@ -50399,7 +38213,7 @@ pub mod api { pub mod assets_claimed { use super::runtime_types; pub type Hash = ::subxt::utils::H256; - pub type Origin = runtime_types::xcm::v3::multilocation::MultiLocation; + pub type Origin = runtime_types::staging_xcm::v3::multilocation::MultiLocation; pub type Assets = runtime_types::xcm::VersionedMultiAssets; } impl ::subxt::events::StaticEvent for AssetsClaimed { @@ -50526,9 +38340,9 @@ pub mod api { "Queries", vec![], [ - 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, + 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, ], ) } @@ -50550,9 +38364,9 @@ pub mod api { _0.borrow(), )], [ - 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, + 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, ], ) } @@ -50645,10 +38459,9 @@ pub mod api { "SupportedVersion", vec![], [ - 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, + 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, ], ) } @@ -50670,10 +38483,9 @@ pub mod api { _0.borrow(), )], [ - 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, + 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, ], ) } @@ -50697,10 +38509,9 @@ pub mod api { ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), ], [ - 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, + 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, ], ) } @@ -50719,9 +38530,9 @@ pub mod api { "VersionNotifiers", vec![], [ - 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, + 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, ], ) } @@ -50733,749 +38544,333 @@ pub mod api { ::subxt::storage::address::StaticStorageMapKey, types::version_notifiers::VersionNotifiers, (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "XcmPallet", - "VersionNotifiers", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 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, - ], - ) - } - #[doc = " All locations that we have requested version notifications from."] - pub fn version_notifiers( - &self, - _0: impl ::std::borrow::Borrow, - _1: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::version_notifiers::VersionNotifiers, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "XcmPallet", - "VersionNotifiers", - vec![ - ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), - ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), - ], - [ - 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, - ], - ) - } - #[doc = " The target locations that are subscribed to our version changes, as well as the most recent"] - #[doc = " of our versions we informed them of."] - pub fn version_notify_targets_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::version_notify_targets::VersionNotifyTargets, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "XcmPallet", - "VersionNotifyTargets", - vec![], - [ - 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, - ], - ) - } - #[doc = " The target locations that are subscribed to our version changes, as well as the most recent"] - #[doc = " of our versions we informed them of."] - pub fn version_notify_targets_iter1( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::version_notify_targets::VersionNotifyTargets, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "XcmPallet", - "VersionNotifyTargets", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 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, - ], - ) - } - #[doc = " The target locations that are subscribed to our version changes, as well as the most recent"] - #[doc = " of our versions we informed them of."] - pub fn version_notify_targets( - &self, - _0: impl ::std::borrow::Borrow, - _1: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::version_notify_targets::VersionNotifyTargets, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "XcmPallet", - "VersionNotifyTargets", - vec![ - ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), - ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), - ], - [ - 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, - ], - ) - } - #[doc = " Destinations whose latest XCM version we would like to know. Duplicates not allowed, and"] - #[doc = " the `u32` counter is the number of times that a send to the destination has been attempted,"] - #[doc = " which is used as a prioritization."] - pub fn version_discovery_queue( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::version_discovery_queue::VersionDiscoveryQueue, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "XcmPallet", - "VersionDiscoveryQueue", - vec![], - [ - 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, - ], - ) - } - #[doc = " The current migration's stage, if any."] - pub fn current_migration( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::current_migration::CurrentMigration, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "XcmPallet", - "CurrentMigration", - vec![], - [ - 74u8, 138u8, 181u8, 162u8, 59u8, 251u8, 37u8, 28u8, 232u8, 51u8, 30u8, - 152u8, 252u8, 133u8, 95u8, 195u8, 47u8, 127u8, 21u8, 44u8, 62u8, 143u8, - 170u8, 234u8, 160u8, 37u8, 131u8, 179u8, 57u8, 241u8, 140u8, 124u8, - ], - ) - } - #[doc = " Fungible assets which we know are locked on a remote chain."] - pub fn remote_locked_fungibles_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::remote_locked_fungibles::RemoteLockedFungibles, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "XcmPallet", - "RemoteLockedFungibles", - vec![], - [ - 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, - ], - ) - } - #[doc = " Fungible assets which we know are locked on a remote chain."] - pub fn remote_locked_fungibles_iter1( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::remote_locked_fungibles::RemoteLockedFungibles, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "XcmPallet", - "RemoteLockedFungibles", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 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, - ], - ) - } - #[doc = " Fungible assets which we know are locked on a remote chain."] - pub fn remote_locked_fungibles_iter2( - &self, - _0: impl ::std::borrow::Borrow, - _1: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::remote_locked_fungibles::RemoteLockedFungibles, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "XcmPallet", - "RemoteLockedFungibles", - vec![ - ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), - ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), - ], - [ - 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, - ], - ) - } - #[doc = " Fungible assets which we know are locked on a remote chain."] - pub fn remote_locked_fungibles( - &self, - _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, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "XcmPallet", - "RemoteLockedFungibles", - vec![ - ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), - ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), - ::subxt::storage::address::make_static_storage_map_key(_2.borrow()), - ], - [ - 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, - ], - ) - } - #[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, - types::locked_fungibles::LockedFungibles, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "XcmPallet", - "LockedFungibles", - vec![], - [ - 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, - ], - ) - } - #[doc = " Fungible assets which we know are locked on this chain."] - pub fn locked_fungibles( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::locked_fungibles::LockedFungibles, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "XcmPallet", - "LockedFungibles", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 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, - ], - ) - } - #[doc = " Global suspension state of the XCM executor."] - pub fn xcm_execution_suspended( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::xcm_execution_suspended::XcmExecutionSuspended, - ::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 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")] - #[doc = "See [`Pallet::reap_page`]."] - 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"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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 = "See [`Pallet::execute_overweight`]."] - 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"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::reap_identity`]."] - pub fn reap_identity( - &self, - message_origin: types::reap_page::MessageOrigin, - page_index: types::reap_page::PageIndex, - ) -> ::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, - 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( - "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 = "Message discarded due to an error in the `MessageProcessor` (usually a format error)."] - pub struct ProcessingFailed { - 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; - } - 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 = "Message is processed."] - pub struct Processed { - 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; - } - 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; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - 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: 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"; - 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: 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"; - 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::Yes, + > { ::subxt::storage::address::Address::new_static( - "MessageQueue", - "BookStateFor", + "XcmPallet", + "VersionNotifiers", + vec![::subxt::storage::address::make_static_storage_map_key( + _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, + ], + ) + } + #[doc = " All locations that we have requested version notifications from."] + pub fn version_notifiers( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::version_notifiers::VersionNotifiers, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "XcmPallet", + "VersionNotifiers", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::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, + ], + ) + } + #[doc = " The target locations that are subscribed to our version changes, as well as the most recent"] + #[doc = " of our versions we informed them of."] + pub fn version_notify_targets_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::version_notify_targets::VersionNotifyTargets, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "XcmPallet", + "VersionNotifyTargets", 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, + 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, ], ) } - #[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 , () >{ + #[doc = " The target locations that are subscribed to our version changes, as well as the most recent"] + #[doc = " of our versions we informed them of."] + pub fn version_notify_targets_iter1( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::version_notify_targets::VersionNotifyTargets, + (), + (), + ::subxt::storage::address::Yes, + > { ::subxt::storage::address::Address::new_static( - "MessageQueue", - "BookStateFor", + "XcmPallet", + "VersionNotifyTargets", 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, + 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, ], ) } - #[doc = " The origin at which we should begin servicing."] - pub fn service_head( + #[doc = " The target locations that are subscribed to our version changes, as well as the most recent"] + #[doc = " of our versions we informed them of."] + pub fn version_notify_targets( &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_runtime_parachains::inclusion::AggregateMessageOrigin, + types::version_notify_targets::VersionNotifyTargets, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( - "MessageQueue", - "ServiceHead", + "XcmPallet", + "VersionNotifyTargets", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::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, + ], + ) + } + #[doc = " Destinations whose latest XCM version we would like to know. Duplicates not allowed, and"] + #[doc = " the `u32` counter is the number of times that a send to the destination has been attempted,"] + #[doc = " which is used as a prioritization."] + pub fn version_discovery_queue( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::version_discovery_queue::VersionDiscoveryQueue, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "XcmPallet", + "VersionDiscoveryQueue", 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, + 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, ], ) } - #[doc = " The map of page indices to pages."] - pub fn pages_iter( + #[doc = " The current migration's stage, if any."] + pub fn current_migration( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::current_migration::CurrentMigration, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "XcmPallet", + "CurrentMigration", + vec![], + [ + 74u8, 138u8, 181u8, 162u8, 59u8, 251u8, 37u8, 28u8, 232u8, 51u8, 30u8, + 152u8, 252u8, 133u8, 95u8, 195u8, 47u8, 127u8, 21u8, 44u8, 62u8, 143u8, + 170u8, 234u8, 160u8, 37u8, 131u8, 179u8, 57u8, 241u8, 140u8, 124u8, + ], + ) + } + #[doc = " Fungible assets which we know are locked on a remote chain."] + pub fn remote_locked_fungibles_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_message_queue::Page<::core::primitive::u32>, + types::remote_locked_fungibles::RemoteLockedFungibles, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "MessageQueue", - "Pages", + "XcmPallet", + "RemoteLockedFungibles", 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, + 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, ], ) } - #[doc = " The map of page indices to pages."] - pub fn pages_iter1( + #[doc = " Fungible assets which we know are locked on a remote chain."] + pub fn remote_locked_fungibles_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, - runtime_types::pallet_message_queue::Page<::core::primitive::u32>, + types::remote_locked_fungibles::RemoteLockedFungibles, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "MessageQueue", - "Pages", + "XcmPallet", + "RemoteLockedFungibles", 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, + 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, ], ) } - #[doc = " The map of page indices to pages."] - pub fn pages( + #[doc = " Fungible assets which we know are locked on a remote chain."] + pub fn remote_locked_fungibles_iter2( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::remote_locked_fungibles::RemoteLockedFungibles, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "XcmPallet", + "RemoteLockedFungibles", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::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, + ], + ) + } + #[doc = " Fungible assets which we know are locked on a remote chain."] + pub fn remote_locked_fungibles( &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, + _2: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_message_queue::Page<::core::primitive::u32>, + types::remote_locked_fungibles::RemoteLockedFungibles, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( - "MessageQueue", - "Pages", + "XcmPallet", + "RemoteLockedFungibles", vec![ ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_2.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, + 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, ], ) } - } - } - 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", + #[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, + types::locked_fungibles::LockedFungibles, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "XcmPallet", + "LockedFungibles", + 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, + 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 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", + #[doc = " Fungible assets which we know are locked on this chain."] + pub fn locked_fungibles( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::locked_fungibles::LockedFungibles, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "XcmPallet", + "LockedFungibles", + 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, + 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 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( + #[doc = " Global suspension state of the XCM executor."] + pub fn xcm_execution_suspended( &self, - ) -> ::subxt::constants::Address< - ::core::option::Option, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::xcm_execution_suspended::XcmExecutionSuspended, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), > { - ::subxt::constants::Address::new_static( - "MessageQueue", - "ServiceWeight", + ::subxt::storage::address::Address::new_static( + "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, ], ) } @@ -51505,6 +38900,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")] + #[doc = "See [`Pallet::sudo_schedule_para_initialize`]."] pub struct SudoScheduleParaInitialize { pub id: sudo_schedule_para_initialize::Id, pub genesis: sudo_schedule_para_initialize::Genesis, @@ -51529,6 +38925,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")] + #[doc = "See [`Pallet::sudo_schedule_para_cleanup`]."] pub struct SudoScheduleParaCleanup { pub id: sudo_schedule_para_cleanup::Id, } @@ -51550,6 +38947,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")] + #[doc = "See [`Pallet::sudo_schedule_parathread_upgrade`]."] pub struct SudoScheduleParathreadUpgrade { pub id: sudo_schedule_parathread_upgrade::Id, } @@ -51571,6 +38969,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")] + #[doc = "See [`Pallet::sudo_schedule_parachain_downgrade`]."] pub struct SudoScheduleParachainDowngrade { pub id: sudo_schedule_parachain_downgrade::Id, } @@ -51592,6 +38991,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")] + #[doc = "See [`Pallet::sudo_queue_downward_xcm`]."] pub struct SudoQueueDownwardXcm { pub id: sudo_queue_downward_xcm::Id, pub xcm: ::std::boxed::Box, @@ -51615,6 +39015,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")] + #[doc = "See [`Pallet::sudo_establish_hrmp_channel`]."] pub struct SudoEstablishHrmpChannel { pub sender: sudo_establish_hrmp_channel::Sender, pub recipient: sudo_establish_hrmp_channel::Recipient, @@ -51717,9 +39118,10 @@ pub mod api { xcm: ::std::boxed::Box::new(xcm), }, [ - 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, + 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, ], ) } @@ -51773,6 +39175,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")] + #[doc = "See [`Pallet::assign_perm_parachain_slot`]."] pub struct AssignPermParachainSlot { pub id: assign_perm_parachain_slot::Id, } @@ -51794,6 +39197,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")] + #[doc = "See [`Pallet::assign_temp_parachain_slot`]."] pub struct AssignTempParachainSlot { pub id: assign_temp_parachain_slot::Id, pub lease_period_start: assign_temp_parachain_slot::LeasePeriodStart, @@ -51817,6 +39221,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")] + #[doc = "See [`Pallet::unassign_parachain_slot`]."] pub struct UnassignParachainSlot { pub id: unassign_parachain_slot::Id, } @@ -51829,7 +39234,6 @@ pub mod api { 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, @@ -51839,6 +39243,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")] + #[doc = "See [`Pallet::set_max_permanent_slots`]."] pub struct SetMaxPermanentSlots { pub slots: set_max_permanent_slots::Slots, } @@ -51851,7 +39256,6 @@ pub mod api { 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, @@ -51861,6 +39265,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")] + #[doc = "See [`Pallet::set_max_temporary_slots`]."] pub struct SetMaxTemporarySlots { pub slots: set_max_temporary_slots::Slots, } @@ -52009,7 +39414,6 @@ pub mod api { const EVENT: &'static str = "TemporarySlotAssigned"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -52032,7 +39436,6 @@ pub mod api { const EVENT: &'static str = "MaxPermanentSlotsChanged"; } #[derive( - :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, @@ -52369,6 +39772,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")] + #[doc = "See [`Pallet::register_validators`]."] pub struct RegisterValidators { pub validators: register_validators::Validators, } @@ -52390,6 +39794,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")] + #[doc = "See [`Pallet::deregister_validators`]."] pub struct DeregisterValidators { pub validators: deregister_validators::Validators, } @@ -52569,6 +39974,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")] + #[doc = "See [`Pallet::control_auto_migration`]."] pub struct ControlAutoMigration { pub maybe_config: control_auto_migration::MaybeConfig, } @@ -52592,6 +39998,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")] + #[doc = "See [`Pallet::continue_migrate`]."] pub struct ContinueMigrate { pub limits: continue_migrate::Limits, pub real_size_upper: continue_migrate::RealSizeUpper, @@ -52619,6 +40026,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")] + #[doc = "See [`Pallet::migrate_custom_top`]."] pub struct MigrateCustomTop { pub keys: migrate_custom_top::Keys, pub witness_size: migrate_custom_top::WitnessSize, @@ -52642,6 +40050,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")] + #[doc = "See [`Pallet::migrate_custom_child`]."] pub struct MigrateCustomChild { pub root: migrate_custom_child::Root, pub child_keys: migrate_custom_child::ChildKeys, @@ -52667,6 +40076,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")] + #[doc = "See [`Pallet::set_signed_max_limits`]."] pub struct SetSignedMaxLimits { pub limits: set_signed_max_limits::Limits, } @@ -52689,6 +40099,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")] + #[doc = "See [`Pallet::force_set_progress`]."] pub struct ForceSetProgress { pub progress_top: force_set_progress::ProgressTop, pub progress_child: force_set_progress::ProgressChild, @@ -53076,6 +40487,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")] + #[doc = "See `Pallet::fill_block`."] pub struct FillBlock { pub ratio: fill_block::Ratio, } @@ -53097,6 +40509,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")] + #[doc = "See `Pallet::trigger_defensive`."] pub struct TriggerDefensive; impl ::subxt::blocks::StaticExtrinsic for TriggerDefensive { const PALLET: &'static str = "RootTesting"; @@ -53170,7 +40583,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; @@ -53190,6 +40603,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")] + #[doc = "See [`Pallet::sudo`]."] pub struct Sudo { pub call: ::std::boxed::Box, } @@ -53211,6 +40625,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")] + #[doc = "See [`Pallet::sudo_unchecked_weight`]."] pub struct SudoUncheckedWeight { pub call: ::std::boxed::Box, pub weight: sudo_unchecked_weight::Weight, @@ -53234,6 +40649,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")] + #[doc = "See [`Pallet::set_key`]."] pub struct SetKey { pub new: set_key::New, } @@ -53255,6 +40671,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")] + #[doc = "See [`Pallet::sudo_as`]."] pub struct SudoAs { pub who: sudo_as::Who, pub call: ::std::boxed::Box, @@ -53268,21 +40685,6 @@ 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 { @@ -53295,10 +40697,10 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 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, + 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, ], ) } @@ -53316,10 +40718,10 @@ pub mod api { weight, }, [ - 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, + 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, ], ) } @@ -53353,24 +40755,9 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 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, + 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, ], ) } @@ -53415,13 +40802,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: key_changed::Old, - pub new: key_changed::New, + pub old_sudoer: key_changed::OldSudoer, } pub mod key_changed { use super::runtime_types; - pub type Old = ::core::option::Option<::subxt::utils::AccountId32>; - pub type New = ::subxt::utils::AccountId32; + pub type OldSudoer = ::core::option::Option<::subxt::utils::AccountId32>; } impl ::subxt::events::StaticEvent for KeyChanged { const PALLET: &'static str = "Sudo"; @@ -53437,22 +40822,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")] - #[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, @@ -56268,6 +43637,121 @@ 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 { @@ -59337,9 +46821,6 @@ 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, @@ -59351,10 +46832,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( @@ -59378,13 +46859,9 @@ pub mod api { #[codec(index = 1)] #[doc = "The sudo key has been updated."] KeyChanged { - old: ::core::option::Option<::subxt::utils::AccountId32>, - new: ::subxt::utils::AccountId32, + old_sudoer: ::core::option::Option<::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: @@ -60220,15 +47697,6 @@ 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, @@ -60285,8 +47753,8 @@ pub mod api { #[doc = "The location is invalid since it already has a subscription from us."] AlreadySubscribed, #[codec(index = 13)] - #[doc = "Could not check-out the assets for teleportation to the destination chain."] - CannotCheckOutTeleport, + #[doc = "Invalid asset for the operation."] + InvalidAsset, #[codec(index = 14)] #[doc = "The owner does not own (all) of the asset that they wish to do the operation on."] LowBalance, @@ -60305,21 +47773,6 @@ 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, @@ -60886,12 +48339,12 @@ pub mod api { PrecheckingMaxMemory(::core::primitive::u64), #[codec(index = 5)] PvfPrepTimeout( - runtime_types::polkadot_primitives::v6::PvfPrepKind, + runtime_types::polkadot_primitives::v6::PvfPrepTimeoutKind, ::core::primitive::u64, ), #[codec(index = 6)] PvfExecTimeout( - runtime_types::polkadot_primitives::v6::PvfExecKind, + runtime_types::polkadot_primitives::v6::PvfExecTimeoutKind, ::core::primitive::u64, ), #[codec(index = 7)] @@ -61432,7 +48885,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 PvfExecKind { + pub enum PvfExecTimeoutKind { #[codec(index = 0)] Backing, #[codec(index = 1)] @@ -61448,11 +48901,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 PvfPrepKind { + pub enum PvfPrepTimeoutKind { #[codec(index = 0)] Precheck, #[codec(index = 1)] - Prepare, + Lenient, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -62323,55 +49776,6 @@ 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( @@ -62811,7 +50215,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 = 53)] # [doc = "See [`Pallet::set_node_feature`]."] set_node_feature { index : :: core :: primitive :: u8 , value : :: core :: primitive :: bool , } , } + # [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, @@ -62887,10 +50291,6 @@ 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 { @@ -64077,6 +51477,8 @@ 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)] @@ -64159,10 +51561,6 @@ 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, @@ -64203,6 +51601,8 @@ 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)] @@ -64319,6 +51719,8 @@ 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)] @@ -64385,10 +51787,6 @@ 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, @@ -64431,6 +51829,7 @@ 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, @@ -65056,7 +52455,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 pre_output: [::core::primitive::u8; 32usize], + pub output: [::core::primitive::u8; 32usize], pub proof: [::core::primitive::u8; 64usize], } } @@ -65816,8 +53215,6 @@ pub mod api { pub state_root: ::subxt::utils::H256, pub extrinsics_root: ::subxt::utils::H256, pub digest: runtime_types::sp_runtime::generic::digest::Digest, - #[codec(skip)] - pub __ignore: ::core::marker::PhantomData<_1>, } } } @@ -67239,8 +54636,6 @@ pub mod api { BitcoinCore, #[codec(index = 9)] BitcoinCash, - #[codec(index = 10)] - PolkadotBulletin, } } pub mod junctions { From e54cb732eaad0bafbe1bf6317637602718b7e52c Mon Sep 17 00:00:00 2001 From: Tadeo hepperle Date: Fri, 5 Jan 2024 13:26:53 +0100 Subject: [PATCH 26/30] bump scale-typgen to fix substitution --- Cargo.lock | 4 ++-- Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b59a5a37b7..b995435bf3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3490,9 +3490,9 @@ dependencies = [ [[package]] name = "scale-typegen" -version = "0.1.0" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0c99a8ba597db382b1245aa098732e95f35fd835070c61eef0583a1d1e7fcc8" +checksum = "00860983481ac590ac87972062909bef0d6a658013b592ccc0f2feb272feab11" dependencies = [ "proc-macro2", "quote", diff --git a/Cargo.toml b/Cargo.toml index c73c797c8a..f5076c0316 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -94,7 +94,7 @@ wabt = "0.10.0" wasm-bindgen-test = "0.3.24" which = "5.0.0" scale-typegen-description = "0.1.0" -scale-typegen = "0.1.0" +scale-typegen = "0.1.1" # Light client support: smoldot = { version = "0.14.0", default-features = false } From 3d1fdec975d5f5e60d6d1b376e416577e5c22f30 Mon Sep 17 00:00:00 2001 From: Tadeo hepperle Date: Tue, 9 Jan 2024 14:53:29 +0100 Subject: [PATCH 27/30] implemented Alex suggestions, regenerated polkadot.rs (did not change) --- codegen/src/api/calls.rs | 5 ++--- codegen/src/api/constants.rs | 7 +++---- codegen/src/api/errors.rs | 5 +++-- codegen/src/api/events.rs | 4 ++-- codegen/src/api/mod.rs | 2 +- codegen/src/api/storage.rs | 7 +++---- codegen/src/lib.rs | 14 ++++++-------- 7 files changed, 20 insertions(+), 24 deletions(-) diff --git a/codegen/src/api/calls.rs b/codegen/src/api/calls.rs index 0db84b0e81..1eaf6fac9a 100644 --- a/codegen/src/api/calls.rs +++ b/codegen/src/api/calls.rs @@ -14,10 +14,9 @@ use subxt_metadata::PalletMetadata; /// /// # Arguments /// -/// - `metadata` - Runtime metadata from which the calls are generated. -/// - `type_gen` - The type generator containing all types defined by metadata. +/// - `type_gen` - [`scale_typegen::TypeGenerator`] that contains settings and all types from the runtime metadata. /// - `pallet` - Pallet metadata from which the calls are generated. -/// - `types_mod_ident` - The ident of the base module that we can use to access the generated types from. +/// - `crate_path` - The crate path under which subxt is located, e.g. `::subxt` when using subxt as a dependency. pub fn generate_calls( type_gen: &TypeGenerator, pallet: &PalletMetadata, diff --git a/codegen/src/api/constants.rs b/codegen/src/api/constants.rs index f71824d56c..30bd93484e 100644 --- a/codegen/src/api/constants.rs +++ b/codegen/src/api/constants.rs @@ -29,10 +29,9 @@ use super::CodegenError; /// /// # Arguments /// -/// - `metadata` - Runtime metadata from which the calls are generated. -/// - `type_gen` - The type generator containing all types defined by metadata -/// - `pallet` - Pallet metadata from which the calls are generated. -/// - `types_mod_ident` - The ident of the base module that we can use to access the generated types from. +/// - `type_gen` - [`scale_typegen::TypeGenerator`] that contains settings and all types from the runtime metadata. +/// - `pallet` - Pallet metadata from which the constants are generated. +/// - `crate_path` - The crate path under which subxt is located, e.g. `::subxt` when using subxt as a dependency. pub fn generate_constants( type_gen: &TypeGenerator, pallet: &PalletMetadata, diff --git a/codegen/src/api/errors.rs b/codegen/src/api/errors.rs index e8bba090cb..38cbca7479 100644 --- a/codegen/src/api/errors.rs +++ b/codegen/src/api/errors.rs @@ -13,7 +13,6 @@ use super::CodegenError; pub fn generate_error_type_alias( type_gen: &TypeGenerator, pallet: &PalletMetadata, - should_gen_docs: bool, ) -> Result { let Some(error_ty) = pallet.error_ty_id() else { return Ok(quote!()); @@ -22,7 +21,9 @@ pub fn generate_error_type_alias( let error_type = type_gen.resolve_type_path(error_ty)?; let error_ty = type_gen.resolve_type(error_ty)?; let docs = &error_ty.docs; - let docs = should_gen_docs + let docs = type_gen + .settings() + .should_gen_docs .then_some(quote! { #( #[doc = #docs ] )* }) .unwrap_or_default(); Ok(quote! { diff --git a/codegen/src/api/events.rs b/codegen/src/api/events.rs index 13ae6e0be6..445d66424c 100644 --- a/codegen/src/api/events.rs +++ b/codegen/src/api/events.rs @@ -35,9 +35,9 @@ use super::CodegenError; /// /// # Arguments /// -/// - `type_gen` - The type generator containing all types defined by metadata. +/// - `type_gen` - [`scale_typegen::TypeGenerator`] that contains settings and all types from the runtime metadata. /// - `pallet` - Pallet metadata from which the events are generated. -/// - `types_mod_ident` - The ident of the base module that we can use to access the generated types from. +/// - `crate_path` - The crate path under which subxt is located, e.g. `::subxt` when using subxt as a dependency. pub fn generate_events( type_gen: &TypeGenerator, pallet: &PalletMetadata, diff --git a/codegen/src/api/mod.rs b/codegen/src/api/mod.rs index f71eab6fb3..cef5f77016 100644 --- a/codegen/src/api/mod.rs +++ b/codegen/src/api/mod.rs @@ -164,7 +164,7 @@ impl RuntimeGenerator { let constants_mod = constants::generate_constants(&type_gen, pallet, &crate_path)?; - let errors = errors::generate_error_type_alias(&type_gen, pallet, should_gen_docs)?; + let errors = errors::generate_error_type_alias(&type_gen, pallet)?; Ok(quote! { pub mod #mod_name { diff --git a/codegen/src/api/storage.rs b/codegen/src/api/storage.rs index 31f2e00c94..20dc7331b4 100644 --- a/codegen/src/api/storage.rs +++ b/codegen/src/api/storage.rs @@ -18,10 +18,9 @@ use super::CodegenError; /// /// # Arguments /// -/// - `metadata` - Runtime metadata from which the storages are generated. -/// - `type_gen` - The type generator containing all types defined by metadata. -/// - `pallet` - Pallet metadata from which the storages are generated. -/// - `types_mod_ident` - The ident of the base module that we can use to access the generated types from. +/// - `type_gen` - [`scale_typegen::TypeGenerator`] that contains settings and all types from the runtime metadata. +/// - `pallet` - Pallet metadata from which the storage items are generated. +/// - `crate_path` - The crate path under which subxt is located, e.g. `::subxt` when using subxt as a dependency. pub fn generate_storage( type_gen: &TypeGenerator, pallet: &PalletMetadata, diff --git a/codegen/src/lib.rs b/codegen/src/lib.rs index 4ade3a1298..ceae4152f3 100644 --- a/codegen/src/lib.rs +++ b/codegen/src/lib.rs @@ -159,10 +159,10 @@ impl CodegenBuilder { /// Set additional derives for a specific type at the path given. /// - /// # Warning - /// - /// For composite types, you may also need to set the same additional derives on all of - /// the contained types as well to avoid compile errors in the generated code. + /// If you want to set the additional derives on all contained types recursively as well, + /// you can set the `recursive` argument to `true`. If you don't do that, + /// there might be compile errors in the generated code, if the derived trait + /// relies on the fact that contained types also implement that trait. pub fn add_derives_for_type( &mut self, ty: syn::TypePath, @@ -181,10 +181,8 @@ impl CodegenBuilder { /// Set additional attributes for a specific type at the path given. /// - /// # Warning - /// - /// For composite types, you may also need to consider contained types and whether they need - /// similar attributes setting. + /// Setting the `recursive` argument to `true` will additionally add the specified + /// attributes to all contained types recursively. pub fn add_attributes_for_type( &mut self, ty: syn::TypePath, From a96c90f8cee5debec530fdd08cb981c9d1c55291 Mon Sep 17 00:00:00 2001 From: Tadeo hepperle Date: Wed, 10 Jan 2024 11:36:20 +0100 Subject: [PATCH 28/30] resolve conflicts in Cargo.lock --- Cargo.lock | 344 ++++++++++++++++++++++++----------------------------- 1 file changed, 158 insertions(+), 186 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index f0b14ad078..b55770eece 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -52,19 +52,19 @@ version = "0.7.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5a824f2aa7e75a0c98c5a504fceb80649e9c35265d44525b5f94de4771a395cd" dependencies = [ - "getrandom 0.2.11", + "getrandom 0.2.12", "once_cell", "version_check", ] [[package]] name = "ahash" -version = "0.8.6" +version = "0.8.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91429305e9f0a25f6205c5b8e0d2db09e0708a7a6df0f42212bb56c32c8ac97a" +checksum = "77c3a9648d43b9cd48db467b3f87fdd6e146bcc88ab0180006cef2179fe11d01" dependencies = [ "cfg-if", - "getrandom 0.2.11", + "getrandom 0.2.12", "once_cell", "version_check", "zerocopy", @@ -117,9 +117,9 @@ dependencies = [ [[package]] name = "anstream" -version = "0.6.4" +version = "0.6.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2ab91ebe16eb252986481c5b62f6098f3b698a45e34b5b98200cf20dd2484a44" +checksum = "d664a92ecae85fd0a7392615844904654d1d5f5514837f471ddef4a057aba1b6" dependencies = [ "anstyle", "anstyle-parse", @@ -146,9 +146,9 @@ dependencies = [ [[package]] name = "anstyle-query" -version = "1.0.1" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a3a318f1f38d2418400f8209655bfd825785afd25aa30bb7ba6cc792e4596748" +checksum = "e28923312444cdd728e4738b3f9c9cac739500909bb3d3c94b43551b16517648" dependencies = [ "windows-sys 0.52.0", ] @@ -165,9 +165,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.75" +version = "1.0.79" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4668cab20f66d8d020e1fbc0ebe47217433c1b6c8f2040faf858554e394ace6" +checksum = "080e9890a082662b09c1ad45f567faeeb47f22b5fb23895fbe1e651e718e25ca" [[package]] name = "ark-bls12-377" @@ -344,7 +344,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1ca33f4bc4ed1babef42cad36cc1f51fa88be00420404e5b1e80ab1b18f7678c" dependencies = [ "concurrent-queue", - "event-listener 4.0.0", + "event-listener 4.0.3", "event-listener-strategy", "futures-core", "pin-project-lite", @@ -356,7 +356,7 @@ version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "17ae5ebefcc48e7452b4987947920dac9450be1110cadf34d1b8c116bdbaf97c" dependencies = [ - "async-lock 3.1.2", + "async-lock 3.3.0", "async-task", "concurrent-queue", "fastrand", @@ -370,25 +370,25 @@ version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dd1f344136bad34df1f83a47f3fd7f2ab85d75cb8a940af4ccf6d482a84ea01b" dependencies = [ - "async-lock 3.2.0", + "async-lock 3.3.0", "blocking", "futures-lite", ] [[package]] name = "async-io" -version = "2.2.1" +version = "2.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6d3b15875ba253d1110c740755e246537483f152fa334f91abd7fe84c88b3ff" +checksum = "6afaa937395a620e33dc6a742c593c01aced20aa376ffb0f628121198578ccc7" dependencies = [ - "async-lock 3.1.2", + "async-lock 3.3.0", "cfg-if", "concurrent-queue", "futures-io", "futures-lite", "parking", "polling", - "rustix 0.38.26", + "rustix 0.38.28", "slab", "tracing", "windows-sys 0.52.0", @@ -405,11 +405,11 @@ dependencies = [ [[package]] name = "async-lock" -version = "3.1.2" +version = "3.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dea8b3453dd7cc96711834b75400d671b73e3656975fa68d9f277163b7f7e316" +checksum = "d034b430882f8381900d3fe6f0aaa3ad94f2cb4ac519b429692a1bc2dda4ae7b" dependencies = [ - "event-listener 4.0.0", + "event-listener 4.0.3", "event-listener-strategy", "pin-project-lite", ] @@ -433,13 +433,13 @@ checksum = "15c1cd5d253ecac3d3cf15e390fd96bd92a13b1d14497d81abf077304794fb04" dependencies = [ "async-channel", "async-io", - "async-lock 3.2.0", + "async-lock 3.3.0", "async-signal", "blocking", "cfg-if", - "event-listener 4.0.0", + "event-listener 4.0.3", "futures-lite", - "rustix 0.38.26", + "rustix 0.38.28", "windows-sys 0.52.0", ] @@ -455,7 +455,7 @@ dependencies = [ "cfg-if", "futures-core", "futures-io", - "rustix 0.38.25", + "rustix 0.38.28", "signal-hook-registry", "slab", "windows-sys 0.48.0", @@ -463,15 +463,15 @@ dependencies = [ [[package]] name = "async-task" -version = "4.5.0" +version = "4.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4eb2cdb97421e01129ccb49169d8279ed21e829929144f4a22a6e54ac549ca1" +checksum = "fbb36e985947064623dbd357f727af08ffd077f93d696782f3c56365fa2e2799" [[package]] name = "async-trait" -version = "0.1.74" +version = "0.1.77" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a66537f1bb974b254c98ed142ff995236e81b9d0fe4db0575f46612cb15eb0f9" +checksum = "c980ee35e870bd1a4d2c8294d4c04d0499e67bca1e4b5cefcc693c2fa00caea9" dependencies = [ "proc-macro2", "quote", @@ -518,7 +518,7 @@ dependencies = [ "cfg-if", "libc", "miniz_oxide", - "object 0.32.1", + "object 0.32.2", "rustc-demangle", ] @@ -536,9 +536,9 @@ checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8" [[package]] name = "base64" -version = "0.21.5" +version = "0.21.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "35636a1494ede3b646cc98f74f8e62c773a38a659ebc777a2cf26b9b74171df9" +checksum = "c79fed4cdb43e993fcdadc7e58a09fd0e3e649c4436fa11da71c9f1f3ee7feb9" [[package]] name = "base64ct" @@ -548,9 +548,9 @@ checksum = "8c3c1a368f70d6cf7302d78f8f7093da241fb8e8807c05cc9e51a125895a6d5b" [[package]] name = "basic-toml" -version = "0.1.7" +version = "0.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f2139706359229bfa8f19142ac1155b4b80beafb7a60471ac5dd109d4a19778" +checksum = "2db21524cad41c5591204d22d75e1970a2d1f71060214ca931dc7d5afe2c14e5" dependencies = [ "serde", ] @@ -692,7 +692,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6a37913e8dc4ddcc604f0c6d3bf2887c995153af3611de9e23c352b44c1b9118" dependencies = [ "async-channel", - "async-lock 3.2.0", + "async-lock 3.3.0", "async-task", "fastrand", "futures-io", @@ -847,9 +847,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.4.13" +version = "4.4.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "52bdc885e4cacc7f7c9eedc1ef6da641603180c783c41a15c264944deeaab642" +checksum = "33e92c5c1a78c62968ec57dbc2440366a2d6e5a23faf829970ff1585dc6b18e2" dependencies = [ "clap_builder", "clap_derive", @@ -857,9 +857,9 @@ dependencies = [ [[package]] name = "clap_builder" -version = "4.4.12" +version = "4.4.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb7fb5e4e979aec3be7791562fcba452f94ad85e954da024396433e0e25a79e9" +checksum = "f4323769dc8a61e2c39ad7dc26f6f2800524691a44d74fe3d1071a5c24db6370" dependencies = [ "anstream", "anstyle", @@ -947,9 +947,9 @@ dependencies = [ [[package]] name = "const-oid" -version = "0.9.5" +version = "0.9.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28c122c3980598d243d63d9a704629a2d748d101f278052ff068be5a4423ab6f" +checksum = "c2459377285ad874054d797f3ccebf984978aa39129f6eafde5cdc8315b612f8" [[package]] name = "constant_time_eq" @@ -1002,9 +1002,9 @@ dependencies = [ [[package]] name = "cpufeatures" -version = "0.2.11" +version = "0.2.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce420fe07aecd3e67c5f910618fe65e94158f6dcc0adf44e00d69ce2bdfe0fd0" +checksum = "53fe5e26ff1b7aef8bca9c6080520cfb8d9333c7568e1829cef191a9723e5504" dependencies = [ "libc", ] @@ -1065,46 +1065,37 @@ dependencies = [ [[package]] name = "crossbeam-deque" -version = "0.8.3" +version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce6fd6f855243022dcecf8702fef0c297d4338e226845fe067f6341ad9fa0cef" +checksum = "613f8cc01fe9cf1a3eb3d7f488fd2fa8388403e97039e2f73692932e291a770d" dependencies = [ - "cfg-if", "crossbeam-epoch", "crossbeam-utils", ] [[package]] name = "crossbeam-epoch" -version = "0.9.15" +version = "0.9.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae211234986c545741a7dc064309f67ee1e5ad243d0e48335adc0484d960bcc7" +checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e" dependencies = [ - "autocfg", - "cfg-if", "crossbeam-utils", - "memoffset 0.9.0", - "scopeguard", ] [[package]] name = "crossbeam-queue" -version = "0.3.8" +version = "0.3.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d1cfb3ea8a53f37c40dea2c7bedcbd88bdfae54f5e2175d6ecaff1c988353add" +checksum = "df0346b5d5e76ac2fe4e327c5fd1118d6be7c51dfb18f9b7922923f287471e35" dependencies = [ - "cfg-if", "crossbeam-utils", ] [[package]] name = "crossbeam-utils" -version = "0.8.16" +version = "0.8.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a22b2d63d4d1dc0b7f1b6b2747dd0088008a9be28b6ddf0b1e7d335e3037294" -dependencies = [ - "cfg-if", -] +checksum = "248e3bacc7dc6baa3b21e405ee045c3047101a49145e7e9eca583ab4c2ca5345" [[package]] name = "crunchy" @@ -1452,9 +1443,9 @@ checksum = "0206175f82b8d6bf6652ff7d71a1e27fd2e4efde587fd368662814d6ec1d9ce0" [[package]] name = "event-listener" -version = "4.0.0" +version = "4.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "770d968249b5d99410d61f5bf89057f3199a077a04d087092f58e7d10692baae" +checksum = "67b215c49b2b248c855fb73579eb1f4f26c38ffdc12973e20e07b91d78d5646e" dependencies = [ "concurrent-queue", "parking", @@ -1467,15 +1458,15 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "958e4d70b6d5e81971bebec42271ec641e7ff4e170a6fa605f2b8a8b65cb97d3" dependencies = [ - "event-listener 4.0.0", + "event-listener 4.0.3", "pin-project-lite", ] [[package]] name = "eyre" -version = "0.6.9" +version = "0.6.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "80f656be11ddf91bd709454d15d5bd896fbaf4cc3314e69349e4d1569f5b46cd" +checksum = "b6267a1fa6f59179ea4afc8e50fd8612a3cc60bc858f786ff877a4a8cb042799" dependencies = [ "indenter", "once_cell", @@ -1612,14 +1603,13 @@ checksum = "a44623e20b9681a318efdd71c299b6b222ed6f231972bfe2f224ebad6311f0c1" [[package]] name = "futures-lite" -version = "2.1.0" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3831c2651acb5177cbd83943f3d9c8912c5ad03c76afcc0e9511ba568ec5ebb" +checksum = "445ba825b27408685aaecefd65178908c36c6e96aaf6d8599419d46e624192ba" dependencies = [ "fastrand", "futures-core", "futures-io", - "memchr", "parking", "pin-project-lite", ] @@ -1716,9 +1706,9 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.2.11" +version = "0.2.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fe9006bed769170c11f845cf00c7c1e9092aeb3f268e007c3e760ac68008070f" +checksum = "190092ea657667030ac6a35e305e62fc4dd69fd98ac98631e5d3a2b1575a12b5" dependencies = [ "cfg-if", "js-sys", @@ -1867,7 +1857,7 @@ version = "0.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "43a3c133739dddd0d2990f9a4bdf8eb4b21ef50e4851ca85ab661199821d510e" dependencies = [ - "ahash 0.8.6", + "ahash 0.8.7", ] [[package]] @@ -1876,7 +1866,7 @@ version = "0.14.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "290f1a1d9242c78d09ce40a5e87e7554ee637af1351968159f4952f028f75604" dependencies = [ - "ahash 0.8.6", + "ahash 0.8.7", "allocator-api2", "serde", ] @@ -1950,11 +1940,11 @@ dependencies = [ [[package]] name = "home" -version = "0.5.5" +version = "0.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5444c27eef6923071f7ebcc33e3444508466a76f7a2b93da00ed6e19f30c1ddb" +checksum = "e3d1354bf6b7235cb4a0576c2619fd4ed18183f689b12b006a0ee7329eeff9a5" dependencies = [ - "windows-sys 0.48.0", + "windows-sys 0.52.0", ] [[package]] @@ -1970,9 +1960,9 @@ dependencies = [ [[package]] name = "http-body" -version = "0.4.5" +version = "0.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d5f38f16d184e36f2408a55281cd658ecbd3ca05cce6d6510a176eca393e26d1" +checksum = "7ceab25649e9960c0311ea418d17bee82c0dcec1bd053b5f9a66e265a693bed2" dependencies = [ "bytes", "http", @@ -1993,9 +1983,9 @@ checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" [[package]] name = "hyper" -version = "0.14.27" +version = "0.14.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ffb1cfd654a8219eaef89881fdb3bb3b1cdc5fa75ded05d6933b2b382e395468" +checksum = "bf96e135eb83a2a8ddf766e426a841d8ddd7449d5f00d34ea02b41d2f19eef80" dependencies = [ "bytes", "futures-channel", @@ -2008,7 +1998,7 @@ dependencies = [ "httpdate", "itoa", "pin-project-lite", - "socket2 0.4.10", + "socket2", "tokio", "tower-service", "tracing", @@ -2033,9 +2023,9 @@ dependencies = [ [[package]] name = "iana-time-zone" -version = "0.1.58" +version = "0.1.59" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8326b86b6cff230b97d0d312a6c40a60726df3332e721f72a1b035f451663b20" +checksum = "b6a67363e2aa4443928ce15e57ebae94fd8949958fd1223c4cfc0cd473ad7539" dependencies = [ "android_system_properties", "core-foundation-sys", @@ -2219,9 +2209,9 @@ dependencies = [ [[package]] name = "itoa" -version = "1.0.9" +version = "1.0.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af150ab688ff2122fcef229be89cb50dd66af9e01a4ff320cc137eecc9bacc38" +checksum = "b1a46d1a171d865aa5f83f92695765caa047a9b4cbae2cbf37dbd613a793fd4c" [[package]] name = "js-sys" @@ -2340,9 +2330,9 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "libc" -version = "0.2.150" +version = "0.2.152" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89d92a4743f9a61002fae18374ed11e7973f530cb3a3255fb354818118b2203c" +checksum = "13e3bf6590cbc649f4d1a3eefc9d5d6eb746f5200ffb04e5e142700b8faa56e7" [[package]] name = "libm" @@ -2408,7 +2398,7 @@ checksum = "f051f77a7c8e6957c0696eac88f26b0117e54f52d3fc682ab19397a8812846a4" name = "linux-raw-sys" version = "0.4.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "969488b55f8ac402214f3f5fd243ebb7206cf82de60d3172994707a4bcc2b829" +checksum = "c4cd1a83af159aa67994778be9070f0ae1bd732942279cabb14f86f986a21456" [[package]] name = "lock_api" @@ -2455,9 +2445,9 @@ dependencies = [ [[package]] name = "memchr" -version = "2.6.4" +version = "2.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f665ee40bc4a3c5590afb1e9677db74a508659dfd71e126420da8274909a0167" +checksum = "523dc4f511e55ab87b694dc30d0f820d60906ef06413f93d4d7a1385599cc149" [[package]] name = "memfd" @@ -2465,7 +2455,7 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b2cffa4ad52c6f791f4f8b15f0c05f9824b2ced1160e88cc393d64fff9a8ac64" dependencies = [ - "rustix 0.38.25", + "rustix 0.38.28", ] [[package]] @@ -2477,15 +2467,6 @@ dependencies = [ "autocfg", ] -[[package]] -name = "memoffset" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a634b1c61a95585bd15607c6ab0c4e5b226e695ff2800ba0cdccddf208c406c" -dependencies = [ - "autocfg", -] - [[package]] name = "memory-db" version = "0.32.0" @@ -2659,18 +2640,18 @@ dependencies = [ [[package]] name = "object" -version = "0.32.1" +version = "0.32.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9cf5f9dd3933bd50a9e1f149ec995f39ae2c496d31fd772c1fd45ebc27e902b0" +checksum = "a6a622008b6e321afc04970976f62ee297fdbaa6f95318ca343e3eebb9648441" dependencies = [ "memchr", ] [[package]] name = "once_cell" -version = "1.18.0" +version = "1.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d" +checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" [[package]] name = "oorandom" @@ -2735,7 +2716,7 @@ version = "3.6.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "be30eaf4b0a9fba5336683b38de57bb86d179a35862ba6bfcf57625d006bde5b" dependencies = [ - "proc-macro-crate 2.0.0", + "proc-macro-crate 2.0.1", "proc-macro2", "quote", "syn 1.0.109", @@ -2855,9 +2836,9 @@ dependencies = [ [[package]] name = "platforms" -version = "3.2.0" +version = "3.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14e6ab3f592e6fb464fc9712d8d6e6912de6473954635fd76a589d832cffcbb0" +checksum = "626dec3cac7cc0e1577a2ec3fc496277ec2baa084bebad95bb6fdbfae235f84c" [[package]] name = "plotters" @@ -2896,7 +2877,7 @@ dependencies = [ "cfg-if", "concurrent-queue", "pin-project-lite", - "rustix 0.38.25", + "rustix 0.38.28", "tracing", "windows-sys 0.52.0", ] @@ -2943,11 +2924,12 @@ dependencies = [ [[package]] name = "proc-macro-crate" -version = "2.0.0" +version = "2.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e8366a6159044a37876a2b9817124296703c586a5c92e2c53751fa06d8d43e8" +checksum = "97dc5fea232fc28d2f597b37c4876b348a40e33f3b02cc975c8d006d78d94b1a" dependencies = [ - "toml_edit 0.20.7", + "toml_datetime", + "toml_edit 0.20.2", ] [[package]] @@ -3066,7 +3048,7 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" dependencies = [ - "getrandom 0.2.11", + "getrandom 0.2.12", ] [[package]] @@ -3109,18 +3091,18 @@ dependencies = [ [[package]] name = "ref-cast" -version = "1.0.20" +version = "1.0.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "acde58d073e9c79da00f2b5b84eed919c8326832648a5b109b3fce1bb1175280" +checksum = "c4846d4c50d1721b1a3bef8af76924eef20d5e723647333798c1b519b3a9473f" dependencies = [ "ref-cast-impl", ] [[package]] name = "ref-cast-impl" -version = "1.0.20" +version = "1.0.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f7473c2cfcf90008193dd0e3e16599455cb601a9fce322b5bb55de799664925" +checksum = "5fddb4f8d99b0a2ebafc65a87a69a7b9875e4b1ae1f00db265d300ef7f28bccc" dependencies = [ "proc-macro2", "quote", @@ -3173,12 +3155,12 @@ checksum = "c08c74e62047bb2de4ff487b251e4a92e24f48745648451635cec7d591162d9f" [[package]] name = "ring" -version = "0.17.6" +version = "0.17.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "684d5e6e18f669ccebf64a92236bb7db9a34f07be010e3627368182027180866" +checksum = "688c63d65483050968b2a8937f7995f443e27041a0f7700aa59b0822aedebb74" dependencies = [ "cc", - "getrandom 0.2.11", + "getrandom 0.2.12", "libc", "spin", "untrusted", @@ -3228,22 +3210,22 @@ dependencies = [ [[package]] name = "rustix" -version = "0.38.26" +version = "0.38.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc99bc2d4f1fed22595588a013687477aedf3cdcfb26558c559edb67b4d9b22e" +checksum = "72e572a5e8ca657d7366229cdde4bd14c4eb5499a9573d4d366fe1b599daa316" dependencies = [ "bitflags 2.4.1", "errno", "libc", - "linux-raw-sys 0.4.11", - "windows-sys 0.48.0", + "linux-raw-sys 0.4.12", + "windows-sys 0.52.0", ] [[package]] name = "rustls" -version = "0.21.9" +version = "0.21.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "629648aced5775d558af50b2b4c7b02983a04b312126d45eeead26e7caa498b9" +checksum = "f9d5a6813c0759e4609cd494e8e725babae6a2ca7b62a5536a13daaec6fcb7ba" dependencies = [ "log", "ring", @@ -3269,7 +3251,7 @@ version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1c74cae0a4cf6ccbbf5f359f08efdf8ee7e1dc532573bf0db71968cb56b1448c" dependencies = [ - "base64 0.21.5", + "base64 0.21.6", ] [[package]] @@ -3301,9 +3283,9 @@ dependencies = [ [[package]] name = "ryu" -version = "1.0.15" +version = "1.0.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ad4cc8da4ef723ed60bced201181d83791ad433213d8c24efffda1eec85d741" +checksum = "f98d2aa92eebf49b69786be48e4477826b256916e84a57ff2a4f21923b48eb4c" [[package]] name = "same-file" @@ -3416,7 +3398,7 @@ dependencies = [ "proc-macro2", "quote", "scale-info", - "syn 2.0.39", + "syn 2.0.48", "thiserror", ] @@ -3442,11 +3424,11 @@ dependencies = [ [[package]] name = "schannel" -version = "0.1.22" +version = "0.1.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c3733bf4cf7ea0880754e19cb5a462007c4a8c1914bff372ccc95b464f1df88" +checksum = "fbc91545643bcf3a0bbb6569265615222618bdf33ce4ffbbd13c4bbd4c093534" dependencies = [ - "windows-sys 0.48.0", + "windows-sys 0.52.0", ] [[package]] @@ -3455,7 +3437,7 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "772575a524feeb803e5b0fcbc6dd9f367e579488197c94c6e4023aad2305774d" dependencies = [ - "ahash 0.8.6", + "ahash 0.8.7", "cfg-if", "hashbrown 0.13.2", ] @@ -3583,9 +3565,9 @@ dependencies = [ [[package]] name = "semver" -version = "1.0.20" +version = "1.0.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "836fa6a3e1e547f9a2c4040802ec865b5d85f4014efe00555d7090a3dcaa1090" +checksum = "b97ed7a9823b74f99c7742f5336af7be5ecd3eeafcb1507d1fa93347b1d589b0" [[package]] name = "send_wrapper" @@ -3610,9 +3592,9 @@ dependencies = [ [[package]] name = "serde_bytes" -version = "0.11.12" +version = "0.11.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab33ec92f677585af6d88c65593ae2375adde54efdbf16d597f2cbc7a6d368ff" +checksum = "8b8497c313fd43ab992087548117643f6fcd935cbf36f176ffda0aacf9591734" dependencies = [ "serde", ] @@ -3630,9 +3612,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.108" +version = "1.0.111" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d1c7e3eac408d115102c4c24ad393e0821bb3a5df4d506a80f85f7a742a526b" +checksum = "176e46fa42316f18edd598015a5166857fc835ec732f5215eac6b7bdbf0a84f4" dependencies = [ "itoa", "ryu", @@ -3756,7 +3738,7 @@ dependencies = [ "async-executor", "async-fs", "async-io", - "async-lock 3.2.0", + "async-lock 3.3.0", "async-net", "async-process", "blocking", @@ -3770,9 +3752,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e6d1eaa97d77be4d026a1e7ffad1bb3b78448763b357ea6f8188d3e6f736a9b9" dependencies = [ "arrayvec 0.7.4", - "async-lock 3.1.2", + "async-lock 3.3.0", "atomic-take", - "base64 0.21.5", + "base64 0.21.6", "bip39", "blake2-rfc", "bs58", @@ -3781,7 +3763,7 @@ dependencies = [ "derive_more", "ed25519-zebra 4.0.3", "either", - "event-listener 4.0.0", + "event-listener 4.0.3", "fnv", "futures-lite", "futures-util", @@ -3825,12 +3807,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5496f2d116b7019a526b1039ec2247dd172b8670633b1a64a614c9ea12c9d8c7" dependencies = [ "async-channel", - "async-lock 3.2.0", - "base64 0.21.5", + "async-lock 3.3.0", + "base64 0.21.6", "blake2-rfc", "derive_more", "either", - "event-listener 4.0.0", + "event-listener 4.0.3", "fnv", "futures-channel", "futures-lite", @@ -3854,16 +3836,6 @@ dependencies = [ "zeroize", ] -[[package]] -name = "socket2" -version = "0.4.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f7916fc008ca5542385b89a3d3ce689953c143e9304a9bf8beec1de48994c0d" -dependencies = [ - "libc", - "winapi", -] - [[package]] name = "socket2" version = "0.5.5" @@ -4180,7 +4152,7 @@ version = "27.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a9c4bf89a5bd74f696cd1f23d83bb6abe6bd0abad1f3c70d4b0d7ebec4098cfe" dependencies = [ - "ahash 0.8.6", + "ahash 0.8.7", "hash-db", "hashbrown 0.13.2", "lazy_static", @@ -4247,9 +4219,9 @@ dependencies = [ [[package]] name = "ss58-registry" -version = "1.44.0" +version = "1.45.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "35935738370302d5e33963665b77541e4b990a3e919ec904c837a56cfc891de1" +checksum = "3c0c74081753a8ce1c8eb10b9f262ab6f7017e5ad3317c17a54c7ab65fcb3c6e" dependencies = [ "Inflector", "num-format", @@ -4336,7 +4308,7 @@ dependencies = [ "either", "frame-metadata 16.0.0", "futures", - "getrandom 0.2.11", + "getrandom 0.2.12", "hex", "impl-serde", "jsonrpsee", @@ -4369,7 +4341,7 @@ dependencies = [ name = "subxt-cli" version = "0.33.0" dependencies = [ - "clap 4.4.13", + "clap 4.4.14", "color-eyre", "frame-metadata 16.0.0", "hex", @@ -4393,7 +4365,7 @@ name = "subxt-codegen" version = "0.33.0" dependencies = [ "frame-metadata 16.0.0", - "getrandom 0.2.11", + "getrandom 0.2.12", "heck", "hex", "jsonrpsee", @@ -4416,7 +4388,7 @@ dependencies = [ "futures", "futures-timer", "futures-util", - "getrandom 0.2.11", + "getrandom 0.2.12", "instant", "js-sys", "pin-project", @@ -4464,7 +4436,7 @@ name = "subxt-signer" version = "0.33.0" dependencies = [ "bip39", - "getrandom 0.2.11", + "getrandom 0.2.12", "hex", "hmac 0.12.1", "parity-scale-codec", @@ -4512,9 +4484,9 @@ checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" [[package]] name = "target-lexicon" -version = "0.12.12" +version = "0.12.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14c39fd04924ca3a864207c66fc2cd7d22d7c016007f9ce846cbb9326331930a" +checksum = "69758bda2e78f098e4ccb393021a0963bb3442eac05f135c30f61b7370bbafae" [[package]] name = "termcolor" @@ -4548,18 +4520,18 @@ checksum = "222a222a5bfe1bba4a77b45ec488a741b3cb8872e5e499451fd7d0129c9c7c3d" [[package]] name = "thiserror" -version = "1.0.53" +version = "1.0.56" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2cd5904763bad08ad5513ddbb12cf2ae273ca53fa9f68e843e236ec6dfccc09" +checksum = "d54378c645627613241d077a3a79db965db602882668f9136ac42af9ecb730ad" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.53" +version = "1.0.56" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3dcf4a824cce0aeacd6f38ae6f24234c8e80d68632338ebaa1443b5df9e29e19" +checksum = "fa0faa943b50f3db30a20aa7e265dbc66076993efed8463e8de414e5d06d3471" dependencies = [ "proc-macro2", "quote", @@ -4613,7 +4585,7 @@ dependencies = [ "mio", "num_cpus", "pin-project-lite", - "socket2 0.5.5", + "socket2", "tokio-macros", "windows-sys 0.48.0", ] @@ -4667,9 +4639,9 @@ dependencies = [ [[package]] name = "toml_datetime" -version = "0.6.5" +version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3550f4e9685620ac18a50ed434eb3aec30db8ba93b0287467bca5826ea25baf1" +checksum = "7cda73e2f1397b1262d6dfdcef8aafae14d1de7748d66822d3bfeeb6d03e5e4b" [[package]] name = "toml_edit" @@ -4684,9 +4656,9 @@ dependencies = [ [[package]] name = "toml_edit" -version = "0.20.7" +version = "0.20.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "70f427fce4d84c72b5b732388bf4a9f4531b53f74e2887e3ecb2481f68f66d81" +checksum = "396e4d48bbb2b7554c944bde63101b5ae446cff6ec4a24227428f15eb72ef338" dependencies = [ "indexmap 2.1.0", "toml_datetime", @@ -4855,15 +4827,15 @@ dependencies = [ [[package]] name = "try-lock" -version = "0.2.4" +version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3528ecfd12c466c6f163363caf2d02a71161dd5e1cc6ae7b34207ea2d42d81ed" +checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" [[package]] name = "trybuild" -version = "1.0.86" +version = "1.0.88" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8419ecd263363827c5730386f418715766f584e2f874d32c23c5b00bd9727e7e" +checksum = "76de4f783e610194f6c98bfd53f9fc52bb2e0d02c947621e8a0f4ecc799b2880" dependencies = [ "basic-toml", "glob 0.3.1", @@ -4920,9 +4892,9 @@ dependencies = [ [[package]] name = "unicode-bidi" -version = "0.3.13" +version = "0.3.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "92888ba5573ff080736b3648696b70cafad7d250551175acbaa4e0385b3e1460" +checksum = "6f2528f27a9eb2b21e69c95319b30bd0efd85d09c379741b0f78ea1d86be2416" [[package]] name = "unicode-ident" @@ -5294,7 +5266,7 @@ dependencies = [ "log", "mach", "memfd", - "memoffset 0.8.0", + "memoffset", "paste", "rand 0.8.5", "rustix 0.36.17", @@ -5335,7 +5307,7 @@ dependencies = [ "either", "home", "once_cell", - "rustix 0.38.25", + "rustix 0.38.28", "windows-sys 0.48.0", ] @@ -5372,11 +5344,11 @@ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" [[package]] name = "windows-core" -version = "0.51.1" +version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1f8cf84f35d2db49a46868f947758c7a1138116f7fac3bc844f43ade1292e64" +checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9" dependencies = [ - "windows-targets 0.48.5", + "windows-targets 0.52.0", ] [[package]] @@ -5579,9 +5551,9 @@ checksum = "dff9641d1cd4be8d1a070daf9e3773c5f67e78b4d9d42263020c057706765c04" [[package]] name = "winnow" -version = "0.5.19" +version = "0.5.33" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "829846f3e3db426d4cee4510841b71a8e58aa2a76b1132579487ae430ccd9c7b" +checksum = "b7520bbdec7211caa7c4e682eb1fbe07abe20cee6756b6e00f537c82c11816aa" dependencies = [ "memchr", ] From 70d3de02522634617163f9b6bdccb96e002354ed Mon Sep 17 00:00:00 2001 From: Tadeo hepperle Date: Thu, 11 Jan 2024 10:07:15 +0100 Subject: [PATCH 29/30] make expect messages more clear --- cli/src/commands/diff.rs | 20 ++++++++++---------- cli/src/commands/explore/mod.rs | 2 +- codegen/src/api/custom_values.rs | 2 +- codegen/src/api/mod.rs | 2 +- codegen/src/api/runtime_apis.rs | 2 +- codegen/src/api/storage.rs | 4 ++-- codegen/src/lib.rs | 4 ++-- subxt/src/error/dispatch_error.rs | 2 +- subxt/src/lib.rs | 2 +- 9 files changed, 20 insertions(+), 20 deletions(-) diff --git a/cli/src/commands/diff.rs b/cli/src/commands/diff.rs index 02dd50d1be..3087673d11 100644 --- a/cli/src/commands/diff.rs +++ b/cli/src/commands/diff.rs @@ -228,11 +228,11 @@ impl StorageEntryDiff { let value_1_ty_id = storage_entry_1.entry_type().value_ty(); let value_1_hash = metadata_1 .type_hash(value_1_ty_id) - .expect("type should be present"); + .expect("type is in metadata; qed"); let value_2_ty_id = storage_entry_2.entry_type().value_ty(); let value_2_hash = metadata_1 .type_hash(value_2_ty_id) - .expect("type should be present"); + .expect("type is in metadata; qed"); let value_different = value_1_hash != value_2_hash; let key_1_hash = storage_entry_1 @@ -241,7 +241,7 @@ impl StorageEntryDiff { .map(|key_ty| { metadata_1 .type_hash(key_ty) - .expect("type should be present") + .expect("type is in metadata; qed") }) .unwrap_or_default(); let key_2_hash = storage_entry_2 @@ -250,7 +250,7 @@ impl StorageEntryDiff { .map(|key_ty| { metadata_2 .type_hash(key_ty) - .expect("type should be present") + .expect("type is in metadata; qed") }) .unwrap_or_default(); let key_different = key_1_hash != key_2_hash; @@ -309,12 +309,12 @@ fn storage_differences<'a>( |e| { pallet_metadata_1 .storage_hash(e.name()) - .expect("storage entry should be present") + .expect("storage entry is in medadata; qed") }, |e| { pallet_metadata_2 .storage_hash(e.name()) - .expect("storage entry should be present") + .expect("storage entry is in medadata; qed") }, |e| e.name(), ) @@ -330,12 +330,12 @@ fn calls_differences<'a>( |e| { pallet_metadata_1 .call_hash(&e.name) - .expect("call should be present") + .expect("call is in metadata; qed") }, |e| { pallet_metadata_2 .call_hash(&e.name) - .expect("call should be present") + .expect("call is in metadata; qed") }, |e| &e.name, ); @@ -351,12 +351,12 @@ fn constants_differences<'a>( |e| { pallet_metadata_1 .constant_hash(e.name()) - .expect("constant should be present") + .expect("constant is in metadata; qed") }, |e| { pallet_metadata_2 .constant_hash(e.name()) - .expect("constant should be present") + .expect("constant is in metadata; qed") }, |e| e.name(), ) diff --git a/cli/src/commands/explore/mod.rs b/cli/src/commands/explore/mod.rs index 31fd365ce0..cd033f3dc7 100644 --- a/cli/src/commands/explore/mod.rs +++ b/cli/src/commands/explore/mod.rs @@ -142,7 +142,7 @@ pub async fn run(opts: Opts, output: &mut impl std::io::Write) -> color_eyre::Re explore_constants(command, &metadata, pallet_metadata, output) } PalletSubcommand::Storage(command) => { - // if the metadata came from some url, we use that same url to make storage calls against. + // if the metadata is in some url, we use that same url to make storage calls against. let node_url = opts.file_or_url.url.map(|url| url.to_string()); explore_storage(command, &metadata, pallet_metadata, node_url, output).await } diff --git a/codegen/src/api/custom_values.rs b/codegen/src/api/custom_values.rs index 35e2b554a1..a528071474 100644 --- a/codegen/src/api/custom_values.rs +++ b/codegen/src/api/custom_values.rs @@ -59,7 +59,7 @@ fn generate_custom_value_fn( let (return_ty, decodable) = if type_is_valid { let return_ty = type_gen .resolve_type_path(custom_value.type_id()) - .expect("expected to contain type id") + .expect("type is in metadata; qed") .to_token_stream(); let decodable = quote!(#crate_path::custom_values::Yes); (return_ty, decodable) diff --git a/codegen/src/api/mod.rs b/codegen/src/api/mod.rs index cef5f77016..df6c43b0a1 100644 --- a/codegen/src/api/mod.rs +++ b/codegen/src/api/mod.rs @@ -347,7 +347,7 @@ where type_gen.create_composite_ir_kind(&var.fields, &mut type_params)?; let struct_name = variant_to_struct_name(&var.name); let mut composite = CompositeIR::new( - syn::parse_str(&struct_name).expect("enum variant name is valid ident"), + syn::parse_str(&struct_name).expect("enum variant is a valid ident; qed"), composite_ir_kind, type_gen.docs_from_scale_info(&var.docs), ); diff --git a/codegen/src/api/runtime_apis.rs b/codegen/src/api/runtime_apis.rs index 57b185fb8e..e340102e31 100644 --- a/codegen/src/api/runtime_apis.rs +++ b/codegen/src/api/runtime_apis.rs @@ -77,7 +77,7 @@ fn generate_runtime_api( // Generate alias for runtime type. let ty = type_gen .resolve_type_path(input.ty) - .expect("type should be present"); + .expect("runtime api input type is in medadata; qed"); let aliased_param = quote!( pub type #alias_name = #ty; ); // Structures are placed on the same level as the alias module. diff --git a/codegen/src/api/storage.rs b/codegen/src/api/storage.rs index 20dc7331b4..2bf3b05ae7 100644 --- a/codegen/src/api/storage.rs +++ b/codegen/src/api/storage.rs @@ -69,7 +69,7 @@ fn generate_storage_entry_fns( let storage_entry_ty = storage_entry.entry_type().value_ty(); let storage_entry_value_ty = type_gen .resolve_type_path(storage_entry_ty) - .expect("type should be present"); + .expect("storage type is in medadata; qed"); let alias_name = format_ident!("{}", storage_entry.name().to_upper_camel_case()); let alias_module_name = format_ident!("{snake_case_name}"); @@ -79,7 +79,7 @@ fn generate_storage_entry_fns( let ident: Ident = format_ident!("_{}", idx); let ty_path = type_gen .resolve_type_path(id) - .expect("type should be present"); + .expect("type is in medadata; qed"); let alias_name = format_ident!("Param{}", idx); let alias_type = primitive_type_alias(&ty_path); diff --git a/codegen/src/lib.rs b/codegen/src/lib.rs index ceae4152f3..1baa7aa61d 100644 --- a/codegen/src/lib.rs +++ b/codegen/src/lib.rs @@ -401,11 +401,11 @@ fn default_substitutes(crate_path: &syn::Path) -> TypeSubstitutes { let defaults = defaults.into_iter().map(|(from, to)| { ( from, - absolute_path(to).expect("default substitutes should be all absolute paths"), + absolute_path(to).expect("default substitutes above are absolute paths; qed"), ) }); type_substitutes .extend(defaults) - .expect("default substitutes should never error"); + .expect("default substitutes can always be parsed; qed"); type_substitutes } diff --git a/subxt/src/error/dispatch_error.rs b/subxt/src/error/dispatch_error.rs index 9df8ff860b..817a441dd6 100644 --- a/subxt/src/error/dispatch_error.rs +++ b/subxt/src/error/dispatch_error.rs @@ -213,7 +213,7 @@ impl ModuleError { /// Details about the module error. pub struct ModuleErrorDetails<'a> { - /// The pallet that the error came from + /// The pallet that the error is in pub pallet: crate::metadata::types::PalletMetadata<'a>, /// The variant representing the error pub variant: &'a scale_info::Variant, diff --git a/subxt/src/lib.rs b/subxt/src/lib.rs index 16c23d6a8f..34f5b8ffe5 100644 --- a/subxt/src/lib.rs +++ b/subxt/src/lib.rs @@ -107,7 +107,7 @@ pub mod ext { /// ``` /// /// The `subxt` macro will populate the annotated module with all of the methods and types required -/// for interacting with the runtime that the metadata came from via Subxt. +/// for interacting with the runtime that the metadata is in via Subxt. /// /// # Configuration /// From 00aee3de65bd58b1950f75bda858d1f74b38e665 Mon Sep 17 00:00:00 2001 From: Tadeo hepperle Date: Thu, 11 Jan 2024 10:41:36 +0100 Subject: [PATCH 30/30] correct typos --- cli/src/commands/diff.rs | 4 ++-- codegen/src/api/runtime_apis.rs | 2 +- codegen/src/api/storage.rs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cli/src/commands/diff.rs b/cli/src/commands/diff.rs index 3087673d11..bc7f4c79ea 100644 --- a/cli/src/commands/diff.rs +++ b/cli/src/commands/diff.rs @@ -309,12 +309,12 @@ fn storage_differences<'a>( |e| { pallet_metadata_1 .storage_hash(e.name()) - .expect("storage entry is in medadata; qed") + .expect("storage entry is in metadata; qed") }, |e| { pallet_metadata_2 .storage_hash(e.name()) - .expect("storage entry is in medadata; qed") + .expect("storage entry is in metadata; qed") }, |e| e.name(), ) diff --git a/codegen/src/api/runtime_apis.rs b/codegen/src/api/runtime_apis.rs index e340102e31..31af5ea5be 100644 --- a/codegen/src/api/runtime_apis.rs +++ b/codegen/src/api/runtime_apis.rs @@ -77,7 +77,7 @@ fn generate_runtime_api( // Generate alias for runtime type. let ty = type_gen .resolve_type_path(input.ty) - .expect("runtime api input type is in medadata; qed"); + .expect("runtime api input type is in metadata; qed"); let aliased_param = quote!( pub type #alias_name = #ty; ); // Structures are placed on the same level as the alias module. diff --git a/codegen/src/api/storage.rs b/codegen/src/api/storage.rs index 2bf3b05ae7..9ea3832e94 100644 --- a/codegen/src/api/storage.rs +++ b/codegen/src/api/storage.rs @@ -69,7 +69,7 @@ fn generate_storage_entry_fns( let storage_entry_ty = storage_entry.entry_type().value_ty(); let storage_entry_value_ty = type_gen .resolve_type_path(storage_entry_ty) - .expect("storage type is in medadata; qed"); + .expect("storage type is in metadata; qed"); let alias_name = format_ident!("{}", storage_entry.name().to_upper_camel_case()); let alias_module_name = format_ident!("{snake_case_name}"); @@ -79,7 +79,7 @@ fn generate_storage_entry_fns( let ident: Ident = format_ident!("_{}", idx); let ty_path = type_gen .resolve_type_path(id) - .expect("type is in medadata; qed"); + .expect("type is in metadata; qed"); let alias_name = format_ident!("Param{}", idx); let alias_type = primitive_type_alias(&ty_path);