diff --git a/cli/src/main.rs b/cli/src/main.rs index 9c91434a63..35f21aa533 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -151,7 +151,7 @@ fn codegen(encoded: &mut I) -> color_eyre::Result<()> { let item_mod = syn::parse_quote!( pub mod api {} ); - let runtime_api = generator.generate_runtime(item_mod); + let runtime_api = generator.generate_runtime(item_mod, Default::default()); println!("{}", runtime_api); Ok(()) } diff --git a/codegen/src/api/mod.rs b/codegen/src/api/mod.rs index 3f07f01b64..f993639b04 100644 --- a/codegen/src/api/mod.rs +++ b/codegen/src/api/mod.rs @@ -18,6 +18,7 @@ mod calls; mod events; mod storage; +use super::GeneratedTypeDerives; use crate::{ ir, struct_def::StructDef, @@ -43,9 +44,16 @@ use std::{ path, string::ToString, }; -use syn::parse_quote; +use syn::{ + parse_quote, + punctuated::Punctuated, +}; -pub fn generate_runtime_api

(item_mod: syn::ItemMod, path: P) -> TokenStream2 +pub fn generate_runtime_api

( + item_mod: syn::ItemMod, + path: P, + generated_type_derives: Option>, +) -> TokenStream2 where P: AsRef, { @@ -60,8 +68,13 @@ where let metadata = frame_metadata::RuntimeMetadataPrefixed::decode(&mut &bytes[..]) .unwrap_or_else(|e| abort_call_site!("Failed to decode metadata: {}", e)); + let mut derives = GeneratedTypeDerives::default(); + if let Some(user_derives) = generated_type_derives { + derives.append(user_derives.iter().cloned()) + } + let generator = RuntimeGenerator::new(metadata); - generator.generate_runtime(item_mod) + generator.generate_runtime(item_mod, derives) } pub struct RuntimeGenerator { @@ -76,7 +89,11 @@ impl RuntimeGenerator { } } - pub fn generate_runtime(&self, item_mod: syn::ItemMod) -> TokenStream2 { + pub fn generate_runtime( + &self, + item_mod: syn::ItemMod, + derives: GeneratedTypeDerives, + ) -> TokenStream2 { let item_mod_ir = ir::ItemMod::from(item_mod); // some hardcoded default type substitutes, can be overridden by user @@ -121,8 +138,12 @@ impl RuntimeGenerator { type_substitutes.insert(path.to_string(), substitute.clone()); } - let type_gen = - TypeGenerator::new(&self.metadata.types, "runtime_types", type_substitutes); + let type_gen = TypeGenerator::new( + &self.metadata.types, + "runtime_types", + type_substitutes, + derives.clone(), + ); let types_mod = type_gen.generate_types_mod(); let types_mod_ident = types_mod.ident(); let pallets_with_mod_names = self @@ -179,7 +200,7 @@ impl RuntimeGenerator { }); let outer_event = quote! { - #[derive(Debug, Eq, PartialEq, ::codec::Encode, ::codec::Decode)] + #derives pub enum Event { #( #outer_event_variants )* } diff --git a/codegen/src/derives.rs b/codegen/src/derives.rs new file mode 100644 index 0000000000..a27319b923 --- /dev/null +++ b/codegen/src/derives.rs @@ -0,0 +1,52 @@ +// Copyright 2019-2021 Parity Technologies (UK) Ltd. +// This file is part of subxt. +// +// subxt is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// subxt is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with subxt. If not, see . + +use syn::punctuated::Punctuated; + +#[derive(Debug, Clone)] +pub struct GeneratedTypeDerives { + derives: Punctuated, +} + +impl GeneratedTypeDerives { + pub fn new(derives: Punctuated) -> Self { + Self { derives } + } + + pub fn append(&mut self, derives: impl Iterator) { + for derive in derives { + self.derives.push(derive) + } + } +} + +impl Default for GeneratedTypeDerives { + fn default() -> Self { + let mut derives = Punctuated::new(); + derives.push(syn::parse_quote!(::subxt::codec::Encode)); + derives.push(syn::parse_quote!(::subxt::codec::Decode)); + Self::new(derives) + } +} + +impl quote::ToTokens for GeneratedTypeDerives { + fn to_tokens(&self, tokens: &mut proc_macro2::TokenStream) { + let derives = &self.derives; + tokens.extend(quote::quote! { + #[derive(#derives)] + }) + } +} diff --git a/codegen/src/lib.rs b/codegen/src/lib.rs index 88cb18c787..7c65ecdf5a 100644 --- a/codegen/src/lib.rs +++ b/codegen/src/lib.rs @@ -17,11 +17,15 @@ //! Library to generate an API for a Substrate runtime from its metadata. mod api; +mod derives; mod ir; mod struct_def; mod types; -pub use self::api::{ - generate_runtime_api, - RuntimeGenerator, +pub use self::{ + api::{ + generate_runtime_api, + RuntimeGenerator, + }, + derives::GeneratedTypeDerives, }; diff --git a/codegen/src/struct_def.rs b/codegen/src/struct_def.rs index b48927dcd9..1db6c02b13 100644 --- a/codegen/src/struct_def.rs +++ b/codegen/src/struct_def.rs @@ -14,6 +14,7 @@ // You should have received a copy of the GNU General Public License // along with subxt. If not, see . +use super::GeneratedTypeDerives; use crate::types::{ TypeGenerator, TypePath, @@ -32,6 +33,7 @@ pub struct StructDef { pub name: syn::Ident, pub fields: StructDefFields, pub field_visibility: Option, + pub derives: GeneratedTypeDerives, } #[derive(Debug)] @@ -83,10 +85,13 @@ impl StructDef { ) }; + let derives = type_gen.derives().clone(); + Self { name, fields, field_visibility, + derives, } } @@ -102,6 +107,7 @@ impl StructDef { impl quote::ToTokens for StructDef { fn to_tokens(&self, tokens: &mut TokenStream2) { let visibility = &self.field_visibility; + let derives = &self.derives; tokens.extend(match self.fields { StructDefFields::Named(ref named_fields) => { let fields = named_fields.iter().map(|(name, ty)| { @@ -111,7 +117,7 @@ impl quote::ToTokens for StructDef { }); let name = &self.name; quote! { - #[derive(Debug, Eq, PartialEq, ::codec::Encode, ::codec::Decode)] + #derives pub struct #name { #( #fields ),* } @@ -125,7 +131,7 @@ impl quote::ToTokens for StructDef { }); let name = &self.name; quote! { - #[derive(Debug, Eq, PartialEq, ::codec::Encode, ::codec::Decode)] + #derives pub struct #name ( #( #fields ),* ); diff --git a/codegen/src/types.rs b/codegen/src/types.rs index 3c4e1fe506..45a65ce85e 100644 --- a/codegen/src/types.rs +++ b/codegen/src/types.rs @@ -14,6 +14,7 @@ // You should have received a copy of the GNU General Public License // along with subxt. If not, see . +use super::GeneratedTypeDerives; use proc_macro2::{ Ident, Span, @@ -44,6 +45,7 @@ pub struct TypeGenerator<'a> { root_mod_ident: Ident, type_registry: &'a PortableRegistry, type_substitutes: HashMap, + derives: GeneratedTypeDerives, } impl<'a> TypeGenerator<'a> { @@ -52,12 +54,14 @@ impl<'a> TypeGenerator<'a> { type_registry: &'a PortableRegistry, root_mod: &'static str, type_substitutes: HashMap, + derives: GeneratedTypeDerives, ) -> Self { let root_mod_ident = Ident::new(root_mod, Span::call_site()); Self { root_mod_ident, type_registry, type_substitutes, + derives, } } @@ -185,6 +189,11 @@ impl<'a> TypeGenerator<'a> { }) } } + + /// Returns the derives with which all generated type will be decorated. + pub fn derives(&self) -> &GeneratedTypeDerives { + &self.derives + } } #[derive(Debug)] @@ -267,6 +276,8 @@ impl<'a> quote::ToTokens for ModuleType<'a> { syn::Type::Path(path) }); + let derives = self.type_gen.derives(); + match self.ty.type_def() { TypeDef::Composite(composite) => { let type_name = type_name.expect("structs should have a name"); @@ -293,7 +304,7 @@ impl<'a> quote::ToTokens for ModuleType<'a> { | TypeDefPrimitive::U128 ) ) { - Some(quote!( , ::codec::CompactAs )) + Some(quote!( #[derive(::codec::CompactAs)] )) } else { None } @@ -303,8 +314,10 @@ impl<'a> quote::ToTokens for ModuleType<'a> { } else { None }; + let ty_toks = quote! { - #[derive(Debug, Eq, PartialEq, ::codec::Encode, ::codec::Decode #derive_as_compact)] + #derive_as_compact + #derives pub struct #type_name #fields }; tokens.extend(ty_toks); @@ -344,7 +357,7 @@ impl<'a> quote::ToTokens for ModuleType<'a> { } let ty_toks = quote! { - #[derive(Debug, Eq, PartialEq, ::codec::Encode, ::codec::Decode)] + #derives pub enum #type_name { #( #variants, )* } @@ -759,7 +772,12 @@ mod tests { registry.register_type(&meta_type::()); let portable_types: PortableRegistry = registry.into(); - let type_gen = TypeGenerator::new(&portable_types, "root", Default::default()); + let type_gen = TypeGenerator::new( + &portable_types, + "root", + Default::default(), + Default::default(), + ); let types = type_gen.generate_types_mod(); let tests_mod = get_mod(&types, MOD_PATH).unwrap(); @@ -769,7 +787,7 @@ mod tests { pub mod tests { use super::root; - #[derive(Debug, Eq, PartialEq, ::codec::Encode, ::codec::Decode)] + #[derive(::codec::Encode, ::codec::Decode)] pub struct S { pub a: bool, pub b: u32, @@ -800,7 +818,12 @@ mod tests { registry.register_type(&meta_type::()); let portable_types: PortableRegistry = registry.into(); - let type_gen = TypeGenerator::new(&portable_types, "root", Default::default()); + let type_gen = TypeGenerator::new( + &portable_types, + "root", + Default::default(), + Default::default(), + ); let types = type_gen.generate_types_mod(); let tests_mod = get_mod(&types, MOD_PATH).unwrap(); @@ -810,12 +833,12 @@ mod tests { pub mod tests { use super::root; - #[derive(Debug, Eq, PartialEq, ::codec::Encode, ::codec::Decode)] + #[derive(::codec::Encode, ::codec::Decode)] pub struct Child { pub a: i32, } - #[derive(Debug, Eq, PartialEq, ::codec::Encode, ::codec::Decode)] + #[derive(::codec::Encode, ::codec::Decode)] pub struct Parent { pub a: bool, pub b: root::subxt_codegen::types::tests::Child, @@ -840,7 +863,12 @@ mod tests { registry.register_type(&meta_type::()); let portable_types: PortableRegistry = registry.into(); - let type_gen = TypeGenerator::new(&portable_types, "root", Default::default()); + let type_gen = TypeGenerator::new( + &portable_types, + "root", + Default::default(), + Default::default(), + ); let types = type_gen.generate_types_mod(); let tests_mod = get_mod(&types, MOD_PATH).unwrap(); @@ -850,10 +878,10 @@ mod tests { pub mod tests { use super::root; - #[derive(Debug, Eq, PartialEq, ::codec::Encode, ::codec::Decode)] + #[derive(::codec::Encode, ::codec::Decode)] pub struct Child(pub i32,); - #[derive(Debug, Eq, PartialEq, ::codec::Encode, ::codec::Decode)] + #[derive(::codec::Encode, ::codec::Decode)] pub struct Parent(pub bool, pub root::subxt_codegen::types::tests::Child,); } } @@ -917,7 +945,12 @@ mod tests { registry.register_type(&meta_type::()); let portable_types: PortableRegistry = registry.into(); - let type_gen = TypeGenerator::new(&portable_types, "root", Default::default()); + let type_gen = TypeGenerator::new( + &portable_types, + "root", + Default::default(), + Default::default(), + ); let types = type_gen.generate_types_mod(); let tests_mod = get_mod(&types, MOD_PATH).unwrap(); @@ -976,7 +1009,12 @@ mod tests { registry.register_type(&meta_type::()); let portable_types: PortableRegistry = registry.into(); - let type_gen = TypeGenerator::new(&portable_types, "root", Default::default()); + let type_gen = TypeGenerator::new( + &portable_types, + "root", + Default::default(), + Default::default(), + ); let types = type_gen.generate_types_mod(); let tests_mod = get_mod(&types, MOD_PATH).unwrap(); @@ -985,7 +1023,7 @@ mod tests { quote! { pub mod tests { use super::root; - #[derive(Debug, Eq, PartialEq, ::codec::Encode, ::codec::Decode)] + #[derive(::codec::Encode, ::codec::Decode)] pub enum E { A, B (bool,), @@ -1009,7 +1047,12 @@ mod tests { registry.register_type(&meta_type::()); let portable_types: PortableRegistry = registry.into(); - let type_gen = TypeGenerator::new(&portable_types, "root", Default::default()); + let type_gen = TypeGenerator::new( + &portable_types, + "root", + Default::default(), + Default::default(), + ); let types = type_gen.generate_types_mod(); let tests_mod = get_mod(&types, MOD_PATH).unwrap(); @@ -1018,7 +1061,7 @@ mod tests { quote! { pub mod tests { use super::root; - #[derive(Debug, Eq, PartialEq, ::codec::Encode, ::codec::Decode)] + #[derive(::codec::Encode, ::codec::Decode)] pub struct S { pub a: [u8; 32usize], } @@ -1041,7 +1084,12 @@ mod tests { registry.register_type(&meta_type::()); let portable_types: PortableRegistry = registry.into(); - let type_gen = TypeGenerator::new(&portable_types, "root", Default::default()); + let type_gen = TypeGenerator::new( + &portable_types, + "root", + Default::default(), + Default::default(), + ); let types = type_gen.generate_types_mod(); let tests_mod = get_mod(&types, MOD_PATH).unwrap(); @@ -1050,7 +1098,7 @@ mod tests { quote! { pub mod tests { use super::root; - #[derive(Debug, Eq, PartialEq, ::codec::Encode, ::codec::Decode)] + #[derive(::codec::Encode, ::codec::Decode)] pub struct S { pub a: Option, pub b: Option, @@ -1078,7 +1126,12 @@ mod tests { registry.register_type(&meta_type::()); let portable_types: PortableRegistry = registry.into(); - let type_gen = TypeGenerator::new(&portable_types, "root", Default::default()); + let type_gen = TypeGenerator::new( + &portable_types, + "root", + Default::default(), + Default::default(), + ); let types = type_gen.generate_types_mod(); let tests_mod = get_mod(&types, MOD_PATH).unwrap(); @@ -1087,7 +1140,7 @@ mod tests { quote! { pub mod tests { use super::root; - #[derive(Debug, Eq, PartialEq, ::codec::Encode, ::codec::Decode)] + #[derive(::codec::Encode, ::codec::Decode)] pub struct S { pub a: std::boxed::Box, pub b: std::boxed::Box, @@ -1113,7 +1166,12 @@ mod tests { registry.register_type(&meta_type::()); let portable_types: PortableRegistry = registry.into(); - let type_gen = TypeGenerator::new(&portable_types, "root", Default::default()); + let type_gen = TypeGenerator::new( + &portable_types, + "root", + Default::default(), + Default::default(), + ); let types = type_gen.generate_types_mod(); let tests_mod = get_mod(&types, MOD_PATH).unwrap(); @@ -1122,7 +1180,7 @@ mod tests { quote! { pub mod tests { use super::root; - #[derive(Debug, Eq, PartialEq, ::codec::Encode, ::codec::Decode)] + #[derive(::codec::Encode, ::codec::Decode)] pub enum E { A(std::boxed::Box,), B { a: std::boxed::Box, }, @@ -1146,7 +1204,12 @@ mod tests { registry.register_type(&meta_type::()); let portable_types: PortableRegistry = registry.into(); - let type_gen = TypeGenerator::new(&portable_types, "root", Default::default()); + let type_gen = TypeGenerator::new( + &portable_types, + "root", + Default::default(), + Default::default(), + ); let types = type_gen.generate_types_mod(); let tests_mod = get_mod(&types, MOD_PATH).unwrap(); @@ -1155,7 +1218,7 @@ mod tests { quote! { pub mod tests { use super::root; - #[derive(Debug, Eq, PartialEq, ::codec::Encode, ::codec::Decode)] + #[derive(::codec::Encode, ::codec::Decode)] pub struct S { pub a: ::core::ops::Range, pub b: ::core::ops::RangeInclusive, @@ -1185,7 +1248,12 @@ mod tests { registry.register_type(&meta_type::()); let portable_types: PortableRegistry = registry.into(); - let type_gen = TypeGenerator::new(&portable_types, "root", Default::default()); + let type_gen = TypeGenerator::new( + &portable_types, + "root", + Default::default(), + Default::default(), + ); let types = type_gen.generate_types_mod(); let tests_mod = get_mod(&types, MOD_PATH).unwrap(); @@ -1194,12 +1262,12 @@ mod tests { quote! { pub mod tests { use super::root; - #[derive(Debug, Eq, PartialEq, ::codec::Encode, ::codec::Decode)] + #[derive(::codec::Encode, ::codec::Decode)] pub struct Bar { pub b: root::subxt_codegen::types::tests::Foo, pub c: root::subxt_codegen::types::tests::Foo, } - #[derive(Debug, Eq, PartialEq, ::codec::Encode, ::codec::Decode)] + #[derive(::codec::Encode, ::codec::Decode)] pub struct Foo<_0> { pub a: _0, } @@ -1228,7 +1296,12 @@ mod tests { registry.register_type(&meta_type::>()); let portable_types: PortableRegistry = registry.into(); - let type_gen = TypeGenerator::new(&portable_types, "root", Default::default()); + let type_gen = TypeGenerator::new( + &portable_types, + "root", + Default::default(), + Default::default(), + ); let types = type_gen.generate_types_mod(); let tests_mod = get_mod(&types, MOD_PATH).unwrap(); @@ -1237,12 +1310,12 @@ mod tests { quote! { pub mod tests { use super::root; - #[derive(Debug, Eq, PartialEq, ::codec::Encode, ::codec::Decode)] + #[derive(::codec::Encode, ::codec::Decode)] pub struct Bar<_0> { pub b: root::subxt_codegen::types::tests::Foo<_0, u32>, } - #[derive(Debug, Eq, PartialEq, ::codec::Encode, ::codec::Decode)] + #[derive(::codec::Encode, ::codec::Decode)] pub struct Foo<_0, _1> { pub a: _0, pub b: Option<(_0, _1,)>, @@ -1274,7 +1347,12 @@ mod tests { registry.register_type(&meta_type::()); let portable_types: PortableRegistry = registry.into(); - let type_gen = TypeGenerator::new(&portable_types, "root", Default::default()); + let type_gen = TypeGenerator::new( + &portable_types, + "root", + Default::default(), + Default::default(), + ); let types = type_gen.generate_types_mod(); let tests_mod = get_mod(&types, MOD_PATH).unwrap(); @@ -1283,7 +1361,7 @@ mod tests { quote! { pub mod tests { use super::root; - #[derive(Debug, Eq, PartialEq, ::codec::Encode, ::codec::Decode)] + #[derive(::codec::Encode, ::codec::Decode)] pub struct S { pub lsb: ::subxt::bitvec::vec::BitVec, pub msb: ::subxt::bitvec::vec::BitVec, @@ -1322,7 +1400,12 @@ mod tests { registry.register_type(&meta_type::>()); let portable_types: PortableRegistry = registry.into(); - let type_gen = TypeGenerator::new(&portable_types, "root", Default::default()); + let type_gen = TypeGenerator::new( + &portable_types, + "root", + Default::default(), + Default::default(), + ); let types = type_gen.generate_types_mod(); let tests_mod = get_mod(&types, MOD_PATH).unwrap(); @@ -1336,7 +1419,7 @@ mod tests { pub b: u32, #[codec(skip)] pub __subxt_unused_type_params: ::core::marker::PhantomData<_0>, } - #[derive(Debug, Eq, PartialEq, ::codec::Encode, ::codec::Decode)] + #[derive(::codec::Encode, ::codec::Decode)] pub struct UnnamedFields<_0, _1> ( pub (u32, u32,), #[codec(skip)] pub ::core::marker::PhantomData<(_0, _1)>, @@ -1377,7 +1460,12 @@ mod tests { registry.register_type(&meta_type::()); let portable_types: PortableRegistry = registry.into(); - let type_gen = TypeGenerator::new(&portable_types, "root", Default::default()); + let type_gen = TypeGenerator::new( + &portable_types, + "root", + Default::default(), + Default::default(), + ); let types = type_gen.generate_types_mod(); let tests_mod = get_mod(&types, MOD_PATH).unwrap(); @@ -1394,20 +1482,20 @@ mod tests { pub mod b { use super::root; - #[derive(Debug, Eq, PartialEq, ::codec::Encode, ::codec::Decode)] + #[derive(::codec::Encode, ::codec::Decode)] pub struct Bar { pub a: root::subxt_codegen::types::tests::modules::a::Foo, } } - #[derive(Debug, Eq, PartialEq, ::codec::Encode, ::codec::Decode)] + #[derive(::codec::Encode, ::codec::Decode)] pub struct Foo {} } pub mod c { use super::root; - #[derive(Debug, Eq, PartialEq, ::codec::Encode, ::codec::Decode)] + #[derive(::codec::Encode, ::codec::Decode)] pub struct Foo { pub a: root::subxt_codegen::types::tests::modules::a::b::Bar, } diff --git a/examples/custom_type_derives.rs b/examples/custom_type_derives.rs new file mode 100644 index 0000000000..ee3d25788f --- /dev/null +++ b/examples/custom_type_derives.rs @@ -0,0 +1,30 @@ +// Copyright 2019-2021 Parity Technologies (UK) Ltd. +// This file is part of subxt. +// +// subxt is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// subxt is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with subxt. If not, see . + +#[subxt::subxt( + runtime_metadata_path = "examples/polkadot_metadata.scale", + generated_type_derives = "Clone, Debug" +)] +pub mod polkadot {} + +use polkadot::runtime_types::frame_support::PalletId; + +#[async_std::main] +async fn main() -> Result<(), Box> { + let pallet_id = PalletId([1u8; 8]); + let _ = ::clone(&pallet_id); + Ok(()) +} diff --git a/macro/src/lib.rs b/macro/src/lib.rs index bff0b7ba3d..41706634cf 100644 --- a/macro/src/lib.rs +++ b/macro/src/lib.rs @@ -19,13 +19,21 @@ extern crate proc_macro; use darling::FromMeta; use proc_macro::TokenStream; use proc_macro_error::proc_macro_error; -use syn::parse_macro_input; +use syn::{ + parse_macro_input, + punctuated::Punctuated, +}; #[derive(Debug, FromMeta)] struct RuntimeMetadataArgs { runtime_metadata_path: String, + #[darling(default)] + generated_type_derives: Option, } +#[derive(Debug, FromMeta)] +struct GeneratedTypeDerives(Punctuated); + #[proc_macro_attribute] #[proc_macro_error] pub fn subxt(args: TokenStream, input: TokenStream) -> TokenStream { @@ -41,5 +49,7 @@ pub fn subxt(args: TokenStream, input: TokenStream) -> TokenStream { let root_path = std::path::Path::new(&root); let path = root_path.join(args.runtime_metadata_path); - subxt_codegen::generate_runtime_api(item_mod, &path).into() + let generated_type_derives = args.generated_type_derives.map(|derives| derives.0); + + subxt_codegen::generate_runtime_api(item_mod, &path, generated_type_derives).into() } diff --git a/src/lib.rs b/src/lib.rs index 925e8917fe..e55c0bcbb0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -44,6 +44,7 @@ pub use frame_metadata::StorageHasher; pub use subxt_macro::subxt; pub use bitvec; +pub use codec; pub use sp_arithmetic; pub use sp_core; pub use sp_runtime; diff --git a/tests/integration/codegen/polkadot.rs b/tests/integration/codegen/polkadot.rs index 241f2a65b7..aa45e82c68 100644 --- a/tests/integration/codegen/polkadot.rs +++ b/tests/integration/codegen/polkadot.rs @@ -1,77 +1,95 @@ +// Copyright 2019-2021 Parity Technologies (UK) Ltd. +// This file is part of subxt. +// +// subxt is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// subxt is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with subxt. If not, see . + #[allow(dead_code, unused_imports, non_camel_case_types)] pub mod api { - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub enum Event { #[codec(index = 0)] System(system::Event), #[codec(index = 1)] - Scheduler(scheduler::Event), - #[codec(index = 4)] - Indices(indices::Event), + Utility(utility::Event), #[codec(index = 5)] + Indices(indices::Event), + #[codec(index = 6)] Balances(balances::Event), - #[codec(index = 7)] - Staking(staking::Event), #[codec(index = 8)] - Offences(offences::Event), + ElectionProviderMultiPhase(election_provider_multi_phase::Event), #[codec(index = 9)] + Staking(staking::Event), + #[codec(index = 10)] Session(session::Event), #[codec(index = 11)] - Grandpa(grandpa::Event), + Democracy(democracy::Event), #[codec(index = 12)] - ImOnline(im_online::Event), + Council(council::Event), + #[codec(index = 13)] + TechnicalCommittee(technical_committee::Event), #[codec(index = 14)] - Democracy(democracy::Event), + Elections(elections::Event), #[codec(index = 15)] - Council(council::Event), + TechnicalMembership(technical_membership::Event), #[codec(index = 16)] - TechnicalCommittee(technical_committee::Event), + Grandpa(grandpa::Event), #[codec(index = 17)] - PhragmenElection(phragmen_election::Event), + Treasury(treasury::Event), #[codec(index = 18)] - TechnicalMembership(technical_membership::Event), + Contracts(contracts::Event), #[codec(index = 19)] - Treasury(treasury::Event), - #[codec(index = 24)] - Claims(claims::Event), + Sudo(sudo::Event), + #[codec(index = 20)] + ImOnline(im_online::Event), + #[codec(index = 22)] + Offences(offences::Event), #[codec(index = 25)] - Vesting(vesting::Event), + Identity(identity::Event), #[codec(index = 26)] - Utility(utility::Event), + Society(society::Event), + #[codec(index = 27)] + Recovery(recovery::Event), #[codec(index = 28)] - Identity(identity::Event), + Vesting(vesting::Event), #[codec(index = 29)] - Proxy(proxy::Event), + Scheduler(scheduler::Event), #[codec(index = 30)] + Proxy(proxy::Event), + #[codec(index = 31)] Multisig(multisig::Event), - #[codec(index = 34)] + #[codec(index = 32)] Bounties(bounties::Event), - #[codec(index = 35)] + #[codec(index = 33)] Tips(tips::Event), + #[codec(index = 34)] + Assets(assets::Event), #[codec(index = 36)] - ElectionProviderMultiPhase(election_provider_multi_phase::Event), - #[codec(index = 53)] - ParaInclusion(para_inclusion::Event), - #[codec(index = 56)] - Paras(paras::Event), - #[codec(index = 59)] - Ump(ump::Event), - #[codec(index = 60)] - Hrmp(hrmp::Event), - #[codec(index = 70)] - Registrar(registrar::Event), - #[codec(index = 71)] - Slots(slots::Event), - #[codec(index = 72)] - Auctions(auctions::Event), - #[codec(index = 73)] - Crowdloan(crowdloan::Event), + Lottery(lottery::Event), + #[codec(index = 37)] + Gilt(gilt::Event), + #[codec(index = 38)] + Uniques(uniques::Event), + #[codec(index = 39)] + TransactionStorage(transaction_storage::Event), + #[codec(index = 40)] + BagsList(bags_list::Event), } pub mod system { use super::runtime_types; pub mod calls { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct FillBlock { pub ratio: ::subxt::sp_arithmetic::per_things::Perbill, } @@ -79,7 +97,7 @@ pub mod api { const PALLET: &'static str = "System"; const FUNCTION: &'static str = "fill_block"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Remark { pub remark: Vec, } @@ -87,7 +105,7 @@ pub mod api { const PALLET: &'static str = "System"; const FUNCTION: &'static str = "remark"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct SetHeapPages { pub pages: u64, } @@ -95,7 +113,7 @@ pub mod api { const PALLET: &'static str = "System"; const FUNCTION: &'static str = "set_heap_pages"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct SetCode { pub code: Vec, } @@ -103,7 +121,7 @@ pub mod api { const PALLET: &'static str = "System"; const FUNCTION: &'static str = "set_code"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct SetCodeWithoutChecks { pub code: Vec, } @@ -111,7 +129,7 @@ pub mod api { const PALLET: &'static str = "System"; const FUNCTION: &'static str = "set_code_without_checks"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct SetChangesTrieConfig { pub changes_trie_config: Option< runtime_types::sp_core::changes_trie::ChangesTrieConfiguration, @@ -121,7 +139,7 @@ pub mod api { const PALLET: &'static str = "System"; const FUNCTION: &'static str = "set_changes_trie_config"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct SetStorage { pub items: Vec<(Vec, Vec)>, } @@ -129,7 +147,7 @@ pub mod api { const PALLET: &'static str = "System"; const FUNCTION: &'static str = "set_storage"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct KillStorage { pub keys: Vec>, } @@ -137,7 +155,7 @@ pub mod api { const PALLET: &'static str = "System"; const FUNCTION: &'static str = "kill_storage"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct KillPrefix { pub prefix: Vec, pub subkeys: u32, @@ -146,7 +164,7 @@ pub mod api { const PALLET: &'static str = "System"; const FUNCTION: &'static str = "kill_prefix"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct RemarkWithEvent { pub remark: Vec, } @@ -249,7 +267,7 @@ pub mod api { pub type Event = runtime_types::frame_system::pallet::Event; pub mod events { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct ExtrinsicSuccess( pub runtime_types::frame_support::weights::DispatchInfo, ); @@ -257,7 +275,7 @@ pub mod api { const PALLET: &'static str = "System"; const EVENT: &'static str = "ExtrinsicSuccess"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct ExtrinsicFailed( pub runtime_types::sp_runtime::DispatchError, pub runtime_types::frame_support::weights::DispatchInfo, @@ -266,25 +284,25 @@ pub mod api { const PALLET: &'static str = "System"; const EVENT: &'static str = "ExtrinsicFailed"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct CodeUpdated {} impl ::subxt::Event for CodeUpdated { const PALLET: &'static str = "System"; const EVENT: &'static str = "CodeUpdated"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct NewAccount(pub ::subxt::sp_core::crypto::AccountId32); impl ::subxt::Event for NewAccount { const PALLET: &'static str = "System"; const EVENT: &'static str = "NewAccount"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct KilledAccount(pub ::subxt::sp_core::crypto::AccountId32); impl ::subxt::Event for KilledAccount { const PALLET: &'static str = "System"; const EVENT: &'static str = "KilledAccount"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Remarked( pub ::subxt::sp_core::crypto::AccountId32, pub ::subxt::sp_core::H256, @@ -397,7 +415,7 @@ pub mod api { const STORAGE: &'static str = "Events"; type Value = Vec< runtime_types::frame_system::EventRecord< - runtime_types::polkadot_runtime::Event, + runtime_types::node_runtime::Event, ::subxt::sp_core::H256, >, >; @@ -483,6 +501,15 @@ pub mod api { let entry = Account(_0); self.client.storage().fetch_or_default(&entry, hash).await } + pub async fn account_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, Account>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } pub async fn extrinsic_count( &self, hash: ::core::option::Option, @@ -518,6 +545,15 @@ pub mod api { let entry = BlockHash(_0); self.client.storage().fetch_or_default(&entry, hash).await } + pub async fn block_hash_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, BlockHash>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } pub async fn extrinsic_data( &self, _0: u32, @@ -526,6 +562,15 @@ pub mod api { let entry = ExtrinsicData(_0); self.client.storage().fetch_or_default(&entry, hash).await } + pub async fn extrinsic_data_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, ExtrinsicData>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } pub async fn number( &self, hash: ::core::option::Option, @@ -559,7 +604,7 @@ pub mod api { ) -> ::core::result::Result< Vec< runtime_types::frame_system::EventRecord< - runtime_types::polkadot_runtime::Event, + runtime_types::node_runtime::Event, ::subxt::sp_core::H256, >, >, @@ -584,6 +629,15 @@ pub mod api { let entry = EventTopics(_0); self.client.storage().fetch_or_default(&entry, hash).await } + pub async fn event_topics_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, EventTopics>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } pub async fn last_runtime_upgrade( &self, hash: ::core::option::Option, @@ -623,72 +677,34 @@ pub mod api { } } } - pub mod scheduler { + pub mod utility { use super::runtime_types; pub mod calls { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Schedule { - pub when: u32, - pub maybe_periodic: Option<(u32, u32)>, - pub priority: u8, - pub call: runtime_types::polkadot_runtime::Call, - } - impl ::subxt::Call for Schedule { - const PALLET: &'static str = "Scheduler"; - const FUNCTION: &'static str = "schedule"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Cancel { - pub when: u32, - pub index: u32, - } - impl ::subxt::Call for Cancel { - const PALLET: &'static str = "Scheduler"; - const FUNCTION: &'static str = "cancel"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ScheduleNamed { - pub id: Vec, - pub when: u32, - pub maybe_periodic: Option<(u32, u32)>, - pub priority: u8, - pub call: runtime_types::polkadot_runtime::Call, - } - impl ::subxt::Call for ScheduleNamed { - const PALLET: &'static str = "Scheduler"; - const FUNCTION: &'static str = "schedule_named"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct CancelNamed { - pub id: Vec, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Batch { + pub calls: Vec, } - impl ::subxt::Call for CancelNamed { - const PALLET: &'static str = "Scheduler"; - const FUNCTION: &'static str = "cancel_named"; + impl ::subxt::Call for Batch { + const PALLET: &'static str = "Utility"; + const FUNCTION: &'static str = "batch"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ScheduleAfter { - pub after: u32, - pub maybe_periodic: Option<(u32, u32)>, - pub priority: u8, - pub call: runtime_types::polkadot_runtime::Call, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct AsDerivative { + pub index: u16, + pub call: runtime_types::node_runtime::Call, } - impl ::subxt::Call for ScheduleAfter { - const PALLET: &'static str = "Scheduler"; - const FUNCTION: &'static str = "schedule_after"; + impl ::subxt::Call for AsDerivative { + const PALLET: &'static str = "Utility"; + const FUNCTION: &'static str = "as_derivative"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ScheduleNamedAfter { - pub id: Vec, - pub after: u32, - pub maybe_periodic: Option<(u32, u32)>, - pub priority: u8, - pub call: runtime_types::polkadot_runtime::Call, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct BatchAll { + pub calls: Vec, } - impl ::subxt::Call for ScheduleNamedAfter { - const PALLET: &'static str = "Scheduler"; - const FUNCTION: &'static str = "schedule_named_after"; + impl ::subxt::Call for BatchAll { + const PALLET: &'static str = "Utility"; + const FUNCTION: &'static str = "batch_all"; } pub struct TransactionApi< 'a, @@ -703,222 +719,69 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub fn schedule( - &self, - when: u32, - maybe_periodic: Option<(u32, u32)>, - priority: u8, - call: runtime_types::polkadot_runtime::Call, - ) -> ::subxt::SubmittableExtrinsic { - let call = Schedule { - when, - maybe_periodic, - priority, - call, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn cancel( - &self, - when: u32, - index: u32, - ) -> ::subxt::SubmittableExtrinsic { - let call = Cancel { when, index }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn schedule_named( - &self, - id: Vec, - when: u32, - maybe_periodic: Option<(u32, u32)>, - priority: u8, - call: runtime_types::polkadot_runtime::Call, - ) -> ::subxt::SubmittableExtrinsic { - let call = ScheduleNamed { - id, - when, - maybe_periodic, - priority, - call, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn cancel_named( + pub fn batch( &self, - id: Vec, - ) -> ::subxt::SubmittableExtrinsic { - let call = CancelNamed { id }; + calls: Vec, + ) -> ::subxt::SubmittableExtrinsic { + let call = Batch { calls }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn schedule_after( + pub fn as_derivative( &self, - after: u32, - maybe_periodic: Option<(u32, u32)>, - priority: u8, - call: runtime_types::polkadot_runtime::Call, - ) -> ::subxt::SubmittableExtrinsic { - let call = ScheduleAfter { - after, - maybe_periodic, - priority, - call, - }; + index: u16, + call: runtime_types::node_runtime::Call, + ) -> ::subxt::SubmittableExtrinsic { + let call = AsDerivative { index, call }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn schedule_named_after( + pub fn batch_all( &self, - id: Vec, - after: u32, - maybe_periodic: Option<(u32, u32)>, - priority: u8, - call: runtime_types::polkadot_runtime::Call, - ) -> ::subxt::SubmittableExtrinsic - { - let call = ScheduleNamedAfter { - id, - after, - maybe_periodic, - priority, - call, - }; + calls: Vec, + ) -> ::subxt::SubmittableExtrinsic { + let call = BatchAll { calls }; ::subxt::SubmittableExtrinsic::new(self.client, call) } } } - pub type Event = runtime_types::pallet_scheduler::pallet::Event; + pub type Event = runtime_types::pallet_utility::pallet::Event; pub mod events { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Scheduled(pub u32, pub u32); - impl ::subxt::Event for Scheduled { - const PALLET: &'static str = "Scheduler"; - const EVENT: &'static str = "Scheduled"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct BatchInterrupted( + pub u32, + pub runtime_types::sp_runtime::DispatchError, + ); + impl ::subxt::Event for BatchInterrupted { + const PALLET: &'static str = "Utility"; + const EVENT: &'static str = "BatchInterrupted"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Canceled(pub u32, pub u32); - impl ::subxt::Event for Canceled { - const PALLET: &'static str = "Scheduler"; - const EVENT: &'static str = "Canceled"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct BatchCompleted {} + impl ::subxt::Event for BatchCompleted { + const PALLET: &'static str = "Utility"; + const EVENT: &'static str = "BatchCompleted"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Dispatched( - pub (u32, u32), - pub Option>, - pub Result<(), runtime_types::sp_runtime::DispatchError>, - ); - impl ::subxt::Event for Dispatched { - const PALLET: &'static str = "Scheduler"; - const EVENT: &'static str = "Dispatched"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ItemCompleted {} + impl ::subxt::Event for ItemCompleted { + const PALLET: &'static str = "Utility"; + const EVENT: &'static str = "ItemCompleted"; } } - pub mod storage { + } + pub mod babe { + use super::runtime_types; + pub mod calls { use super::runtime_types; - pub struct Agenda(pub u32); - impl ::subxt::StorageEntry for Agenda { - const PALLET: &'static str = "Scheduler"; - const STORAGE: &'static str = "Agenda"; - type Value = Vec< - Option< - runtime_types::pallet_scheduler::ScheduledV2< - runtime_types::polkadot_runtime::Call, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ReportEquivocation { + pub equivocation_proof: + runtime_types::sp_consensus_slots::EquivocationProof< + runtime_types::sp_runtime::generic::header::Header< u32, - runtime_types::polkadot_runtime::OriginCaller, - ::subxt::sp_core::crypto::AccountId32, + runtime_types::sp_runtime::traits::BlakeTwo256, >, - >, - >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct Lookup(pub Vec); - impl ::subxt::StorageEntry for Lookup { - const PALLET: &'static str = "Scheduler"; - const STORAGE: &'static str = "Lookup"; - type Value = (u32, u32); - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct StorageVersion; - impl ::subxt::StorageEntry for StorageVersion { - const PALLET: &'static str = "Scheduler"; - const STORAGE: &'static str = "StorageVersion"; - type Value = runtime_types::pallet_scheduler::Releases; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct StorageApi<'a, T: ::subxt::Config> { - client: &'a ::subxt::Client, - } - impl<'a, T: ::subxt::Config> StorageApi<'a, T> { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { client } - } - pub async fn agenda( - &self, - _0: u32, - hash: ::core::option::Option, - ) -> ::core::result::Result< - Vec< - Option< - runtime_types::pallet_scheduler::ScheduledV2< - runtime_types::polkadot_runtime::Call, - u32, - runtime_types::polkadot_runtime::OriginCaller, - ::subxt::sp_core::crypto::AccountId32, - >, - >, - >, - ::subxt::Error, - > { - let entry = Agenda(_0); - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn lookup( - &self, - _0: Vec, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option<(u32, u32)>, - ::subxt::Error, - > { - let entry = Lookup(_0); - self.client.storage().fetch(&entry, hash).await - } - pub async fn storage_version( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - runtime_types::pallet_scheduler::Releases, - ::subxt::Error, - > { - let entry = StorageVersion; - self.client.storage().fetch_or_default(&entry, hash).await - } - } - } - } - pub mod babe { - use super::runtime_types; - pub mod calls { - use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ReportEquivocation { - pub equivocation_proof: - runtime_types::sp_consensus_slots::EquivocationProof< - runtime_types::sp_runtime::generic::header::Header< - u32, - runtime_types::sp_runtime::traits::BlakeTwo256, - >, - runtime_types::sp_consensus_babe::app::Public, + runtime_types::sp_consensus_babe::app::Public, >, pub key_owner_proof: runtime_types::sp_session::MembershipProof, } @@ -926,7 +789,7 @@ pub mod api { const PALLET: &'static str = "Babe"; const FUNCTION: &'static str = "report_equivocation"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct ReportEquivocationUnsigned { pub equivocation_proof: runtime_types::sp_consensus_slots::EquivocationProof< @@ -942,7 +805,7 @@ pub mod api { const PALLET: &'static str = "Babe"; const FUNCTION: &'static str = "report_equivocation_unsigned"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct PlanConfigChange { pub config: runtime_types::sp_consensus_babe::digests::NextConfigDescriptor, @@ -1238,6 +1101,15 @@ pub mod api { let entry = UnderConstruction(_0); self.client.storage().fetch_or_default(&entry, hash).await } + pub async fn under_construction_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, UnderConstruction>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } pub async fn initialized( &self, hash: ::core::option::Option, @@ -1301,7 +1173,7 @@ pub mod api { use super::runtime_types; pub mod calls { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Set { #[codec(compact)] pub now: u64, @@ -1373,11 +1245,133 @@ pub mod api { } } } + pub mod authorship { + use super::runtime_types; + pub mod calls { + use super::runtime_types; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct SetUncles { + pub new_uncles: Vec< + runtime_types::sp_runtime::generic::header::Header< + u32, + runtime_types::sp_runtime::traits::BlakeTwo256, + >, + >, + } + impl ::subxt::Call for SetUncles { + const PALLET: &'static str = "Authorship"; + const FUNCTION: &'static str = "set_uncles"; + } + pub struct TransactionApi< + 'a, + T: ::subxt::Config + ::subxt::ExtrinsicExtraData, + > { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> TransactionApi<'a, T> + where + T: ::subxt::Config + ::subxt::ExtrinsicExtraData, + { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } + pub fn set_uncles( + &self, + new_uncles: Vec< + runtime_types::sp_runtime::generic::header::Header< + u32, + runtime_types::sp_runtime::traits::BlakeTwo256, + >, + >, + ) -> ::subxt::SubmittableExtrinsic { + let call = SetUncles { new_uncles }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + } + } + pub mod storage { + use super::runtime_types; + pub struct Uncles; + impl ::subxt::StorageEntry for Uncles { + const PALLET: &'static str = "Authorship"; + const STORAGE: &'static str = "Uncles"; + type Value = Vec< + runtime_types::pallet_authorship::UncleEntryItem< + u32, + ::subxt::sp_core::H256, + ::subxt::sp_core::crypto::AccountId32, + >, + >; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct Author; + impl ::subxt::StorageEntry for Author { + const PALLET: &'static str = "Authorship"; + const STORAGE: &'static str = "Author"; + type Value = ::subxt::sp_core::crypto::AccountId32; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct DidSetUncles; + impl ::subxt::StorageEntry for DidSetUncles { + const PALLET: &'static str = "Authorship"; + const STORAGE: &'static str = "DidSetUncles"; + type Value = bool; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct StorageApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> StorageApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } + pub async fn uncles( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + Vec< + runtime_types::pallet_authorship::UncleEntryItem< + u32, + ::subxt::sp_core::H256, + ::subxt::sp_core::crypto::AccountId32, + >, + >, + ::subxt::Error, + > { + let entry = Uncles; + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn author( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, + ::subxt::Error, + > { + let entry = Author; + self.client.storage().fetch(&entry, hash).await + } + pub async fn did_set_uncles( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result { + let entry = DidSetUncles; + self.client.storage().fetch_or_default(&entry, hash).await + } + } + } + } pub mod indices { use super::runtime_types; pub mod calls { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Claim { pub index: u32, } @@ -1385,7 +1379,7 @@ pub mod api { const PALLET: &'static str = "Indices"; const FUNCTION: &'static str = "claim"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Transfer { pub new: ::subxt::sp_core::crypto::AccountId32, pub index: u32, @@ -1394,7 +1388,7 @@ pub mod api { const PALLET: &'static str = "Indices"; const FUNCTION: &'static str = "transfer"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Free { pub index: u32, } @@ -1402,7 +1396,7 @@ pub mod api { const PALLET: &'static str = "Indices"; const FUNCTION: &'static str = "free"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct ForceTransfer { pub new: ::subxt::sp_core::crypto::AccountId32, pub index: u32, @@ -1412,7 +1406,7 @@ pub mod api { const PALLET: &'static str = "Indices"; const FUNCTION: &'static str = "force_transfer"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Freeze { pub index: u32, } @@ -1473,19 +1467,19 @@ pub mod api { pub type Event = runtime_types::pallet_indices::pallet::Event; pub mod events { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct IndexAssigned(pub ::subxt::sp_core::crypto::AccountId32, pub u32); impl ::subxt::Event for IndexAssigned { const PALLET: &'static str = "Indices"; const EVENT: &'static str = "IndexAssigned"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct IndexFreed(pub u32); impl ::subxt::Event for IndexFreed { const PALLET: &'static str = "Indices"; const EVENT: &'static str = "IndexFreed"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct IndexFrozen(pub u32, pub ::subxt::sp_core::crypto::AccountId32); impl ::subxt::Event for IndexFrozen { const PALLET: &'static str = "Indices"; @@ -1528,6 +1522,15 @@ pub mod api { let entry = Accounts(_0); self.client.storage().fetch(&entry, hash).await } + pub async fn accounts_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, Accounts>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } } } } @@ -1535,11 +1538,11 @@ pub mod api { use super::runtime_types; pub mod calls { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Transfer { pub dest: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, - (), + u32, >, #[codec(compact)] pub value: u128, @@ -1548,11 +1551,11 @@ pub mod api { const PALLET: &'static str = "Balances"; const FUNCTION: &'static str = "transfer"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct SetBalance { pub who: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, - (), + u32, >, #[codec(compact)] pub new_free: u128, @@ -1563,15 +1566,15 @@ pub mod api { const PALLET: &'static str = "Balances"; const FUNCTION: &'static str = "set_balance"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct ForceTransfer { pub source: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, - (), + u32, >, pub dest: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, - (), + u32, >, #[codec(compact)] pub value: u128, @@ -1580,11 +1583,11 @@ pub mod api { const PALLET: &'static str = "Balances"; const FUNCTION: &'static str = "force_transfer"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct TransferKeepAlive { pub dest: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, - (), + u32, >, #[codec(compact)] pub value: u128, @@ -1593,11 +1596,11 @@ pub mod api { const PALLET: &'static str = "Balances"; const FUNCTION: &'static str = "transfer_keep_alive"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct TransferAll { pub dest: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, - (), + u32, >, pub keep_alive: bool, } @@ -1605,11 +1608,11 @@ pub mod api { const PALLET: &'static str = "Balances"; const FUNCTION: &'static str = "transfer_all"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct ForceUnreserve { pub who: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, - (), + u32, >, pub amount: u128, } @@ -1634,7 +1637,7 @@ pub mod api { &self, dest: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, - (), + u32, >, value: u128, ) -> ::subxt::SubmittableExtrinsic { @@ -1645,7 +1648,7 @@ pub mod api { &self, who: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, - (), + u32, >, new_free: u128, new_reserved: u128, @@ -1661,11 +1664,11 @@ pub mod api { &self, source: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, - (), + u32, >, dest: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, - (), + u32, >, value: u128, ) -> ::subxt::SubmittableExtrinsic { @@ -1680,7 +1683,7 @@ pub mod api { &self, dest: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, - (), + u32, >, value: u128, ) -> ::subxt::SubmittableExtrinsic { @@ -1691,7 +1694,7 @@ pub mod api { &self, dest: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, - (), + u32, >, keep_alive: bool, ) -> ::subxt::SubmittableExtrinsic { @@ -1702,7 +1705,7 @@ pub mod api { &self, who: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, - (), + u32, >, amount: u128, ) -> ::subxt::SubmittableExtrinsic { @@ -1714,19 +1717,19 @@ pub mod api { pub type Event = runtime_types::pallet_balances::pallet::Event; pub mod events { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Endowed(pub ::subxt::sp_core::crypto::AccountId32, pub u128); impl ::subxt::Event for Endowed { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Endowed"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct DustLost(pub ::subxt::sp_core::crypto::AccountId32, pub u128); impl ::subxt::Event for DustLost { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "DustLost"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Transfer( pub ::subxt::sp_core::crypto::AccountId32, pub ::subxt::sp_core::crypto::AccountId32, @@ -1736,7 +1739,7 @@ pub mod api { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Transfer"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct BalanceSet( pub ::subxt::sp_core::crypto::AccountId32, pub u128, @@ -1746,25 +1749,19 @@ pub mod api { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "BalanceSet"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Deposit(pub ::subxt::sp_core::crypto::AccountId32, pub u128); - impl ::subxt::Event for Deposit { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "Deposit"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Reserved(pub ::subxt::sp_core::crypto::AccountId32, pub u128); impl ::subxt::Event for Reserved { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Reserved"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Unreserved(pub ::subxt::sp_core::crypto::AccountId32, pub u128); impl ::subxt::Event for Unreserved { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Unreserved"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct ReserveRepatriated( pub ::subxt::sp_core::crypto::AccountId32, pub ::subxt::sp_core::crypto::AccountId32, @@ -1775,6 +1772,24 @@ pub mod api { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "ReserveRepatriated"; } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Deposit(pub ::subxt::sp_core::crypto::AccountId32, pub u128); + impl ::subxt::Event for Deposit { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Deposit"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Withdraw(pub ::subxt::sp_core::crypto::AccountId32, pub u128); + impl ::subxt::Event for Withdraw { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Withdraw"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Slashed(pub ::subxt::sp_core::crypto::AccountId32, pub u128); + impl ::subxt::Event for Slashed { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Slashed"; + } } pub mod storage { use super::runtime_types; @@ -1859,23 +1874,48 @@ pub mod api { > { let entry = Account(_0); self.client.storage().fetch_or_default(&entry, hash).await - } pub async fn locks (& self , _0 : :: subxt :: sp_core :: crypto :: AccountId32 , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_balances :: BalanceLock < u128 > > , :: subxt :: Error >{ - let entry = Locks(_0); - self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn reserves( + pub async fn account_iter( &self, - _0: ::subxt::sp_core::crypto::AccountId32, hash: ::core::option::Option, ) -> ::core::result::Result< - runtime_types::frame_support::storage::bounded_vec::BoundedVec< - runtime_types::pallet_balances::ReserveData<[u8; 8usize], u128>, - >, + ::subxt::KeyIter<'a, T, Account>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } pub async fn locks (& self , _0 : :: subxt :: sp_core :: crypto :: AccountId32 , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_balances :: BalanceLock < u128 > > , :: subxt :: Error >{ + let entry = Locks(_0); + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn locks_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result<::subxt::KeyIter<'a, T, Locks>, ::subxt::Error> + { + self.client.storage().iter(hash).await + } + pub async fn reserves( + &self, + _0: ::subxt::sp_core::crypto::AccountId32, + hash: ::core::option::Option, + ) -> ::core::result::Result< + runtime_types::frame_support::storage::bounded_vec::BoundedVec< + runtime_types::pallet_balances::ReserveData<[u8; 8usize], u128>, + >, ::subxt::Error, > { let entry = Reserves(_0); self.client.storage().fetch_or_default(&entry, hash).await } + pub async fn reserves_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, Reserves>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } pub async fn storage_version( &self, hash: ::core::option::Option, @@ -1941,22 +1981,48 @@ pub mod api { } } } - pub mod authorship { + pub mod election_provider_multi_phase { use super::runtime_types; pub mod calls { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SetUncles { - pub new_uncles: Vec< - runtime_types::sp_runtime::generic::header::Header< - u32, - runtime_types::sp_runtime::traits::BlakeTwo256, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct SubmitUnsigned { pub raw_solution : runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: node_runtime :: NposSolution16 > , pub witness : runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize } + impl ::subxt::Call for SubmitUnsigned { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const FUNCTION: &'static str = "submit_unsigned"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct SetMinimumUntrustedScore { + pub maybe_next_score: Option<[u128; 3usize]>, + } + impl ::subxt::Call for SetMinimumUntrustedScore { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const FUNCTION: &'static str = "set_minimum_untrusted_score"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct SetEmergencyElectionResult { + pub supports: Vec<( + ::subxt::sp_core::crypto::AccountId32, + runtime_types::sp_npos_elections::Support< + ::subxt::sp_core::crypto::AccountId32, >, - >, + )>, } - impl ::subxt::Call for SetUncles { - const PALLET: &'static str = "Authorship"; - const FUNCTION: &'static str = "set_uncles"; + impl ::subxt::Call for SetEmergencyElectionResult { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const FUNCTION: &'static str = "set_emergency_election_result"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Submit { + pub raw_solution: + runtime_types::pallet_election_provider_multi_phase::RawSolution< + runtime_types::node_runtime::NposSolution16, + >, + pub num_signed_submissions: u32, + } + impl ::subxt::Call for Submit { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const FUNCTION: &'static str = "submit"; } pub struct TransactionApi< 'a, @@ -1971,107 +2037,286 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub fn set_uncles( + pub fn submit_unsigned( &self, - new_uncles: Vec< - runtime_types::sp_runtime::generic::header::Header< - u32, - runtime_types::sp_runtime::traits::BlakeTwo256, + raw_solution : runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: node_runtime :: NposSolution16 >, + witness : runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize, + ) -> ::subxt::SubmittableExtrinsic { + let call = SubmitUnsigned { + raw_solution, + witness, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn set_minimum_untrusted_score( + &self, + maybe_next_score: Option<[u128; 3usize]>, + ) -> ::subxt::SubmittableExtrinsic + { + let call = SetMinimumUntrustedScore { maybe_next_score }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn set_emergency_election_result( + &self, + supports: Vec<( + ::subxt::sp_core::crypto::AccountId32, + runtime_types::sp_npos_elections::Support< + ::subxt::sp_core::crypto::AccountId32, >, - >, - ) -> ::subxt::SubmittableExtrinsic { - let call = SetUncles { new_uncles }; + )>, + ) -> ::subxt::SubmittableExtrinsic + { + let call = SetEmergencyElectionResult { supports }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn submit( + &self, + raw_solution : runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: node_runtime :: NposSolution16 >, + num_signed_submissions: u32, + ) -> ::subxt::SubmittableExtrinsic { + let call = Submit { + raw_solution, + num_signed_submissions, + }; ::subxt::SubmittableExtrinsic::new(self.client, call) } } } + pub type Event = + runtime_types::pallet_election_provider_multi_phase::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct SolutionStored( + pub runtime_types::pallet_election_provider_multi_phase::ElectionCompute, + pub bool, + ); + impl ::subxt::Event for SolutionStored { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const EVENT: &'static str = "SolutionStored"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ElectionFinalized( + pub Option< + runtime_types::pallet_election_provider_multi_phase::ElectionCompute, + >, + ); + impl ::subxt::Event for ElectionFinalized { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const EVENT: &'static str = "ElectionFinalized"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Rewarded(pub ::subxt::sp_core::crypto::AccountId32, pub u128); + impl ::subxt::Event for Rewarded { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const EVENT: &'static str = "Rewarded"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Slashed(pub ::subxt::sp_core::crypto::AccountId32, pub u128); + impl ::subxt::Event for Slashed { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const EVENT: &'static str = "Slashed"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct SignedPhaseStarted(pub u32); + impl ::subxt::Event for SignedPhaseStarted { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const EVENT: &'static str = "SignedPhaseStarted"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct UnsignedPhaseStarted(pub u32); + impl ::subxt::Event for UnsignedPhaseStarted { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const EVENT: &'static str = "UnsignedPhaseStarted"; + } + } pub mod storage { use super::runtime_types; - pub struct Uncles; - impl ::subxt::StorageEntry for Uncles { - const PALLET: &'static str = "Authorship"; - const STORAGE: &'static str = "Uncles"; - type Value = Vec< - runtime_types::pallet_authorship::UncleEntryItem< - u32, - ::subxt::sp_core::H256, - ::subxt::sp_core::crypto::AccountId32, - >, - >; + pub struct Round; + impl ::subxt::StorageEntry for Round { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const STORAGE: &'static str = "Round"; + type Value = u32; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Plain } } - pub struct Author; - impl ::subxt::StorageEntry for Author { - const PALLET: &'static str = "Authorship"; - const STORAGE: &'static str = "Author"; - type Value = ::subxt::sp_core::crypto::AccountId32; + pub struct CurrentPhase; + impl ::subxt::StorageEntry for CurrentPhase { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const STORAGE: &'static str = "CurrentPhase"; + type Value = + runtime_types::pallet_election_provider_multi_phase::Phase; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Plain } } - pub struct DidSetUncles; - impl ::subxt::StorageEntry for DidSetUncles { - const PALLET: &'static str = "Authorship"; - const STORAGE: &'static str = "DidSetUncles"; - type Value = bool; + pub struct QueuedSolution; + impl ::subxt::StorageEntry for QueuedSolution { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const STORAGE: &'static str = "QueuedSolution"; + type Value = + runtime_types::pallet_election_provider_multi_phase::ReadySolution< + ::subxt::sp_core::crypto::AccountId32, + >; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Plain } } - pub struct StorageApi<'a, T: ::subxt::Config> { - client: &'a ::subxt::Client, - } - impl<'a, T: ::subxt::Config> StorageApi<'a, T> { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { client } - } - pub async fn uncles( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - Vec< - runtime_types::pallet_authorship::UncleEntryItem< - u32, - ::subxt::sp_core::H256, - ::subxt::sp_core::crypto::AccountId32, - >, - >, - ::subxt::Error, - > { - let entry = Uncles; - self.client.storage().fetch_or_default(&entry, hash).await + pub struct Snapshot; + impl ::subxt::StorageEntry for Snapshot { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const STORAGE: &'static str = "Snapshot"; + type Value = + runtime_types::pallet_election_provider_multi_phase::RoundSnapshot< + ::subxt::sp_core::crypto::AccountId32, + >; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain } - pub async fn author( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, - ::subxt::Error, - > { - let entry = Author; - self.client.storage().fetch(&entry, hash).await + } + pub struct DesiredTargets; + impl ::subxt::StorageEntry for DesiredTargets { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const STORAGE: &'static str = "DesiredTargets"; + type Value = u32; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain } - pub async fn did_set_uncles( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result { - let entry = DidSetUncles; - self.client.storage().fetch_or_default(&entry, hash).await + } + pub struct SnapshotMetadata; + impl ::subxt::StorageEntry for SnapshotMetadata { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const STORAGE: &'static str = "SnapshotMetadata"; + type Value = runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize ; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain } } - } + pub struct SignedSubmissionNextIndex; + impl ::subxt::StorageEntry for SignedSubmissionNextIndex { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const STORAGE: &'static str = "SignedSubmissionNextIndex"; + type Value = u32; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct SignedSubmissionIndices; + impl ::subxt::StorageEntry for SignedSubmissionIndices { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const STORAGE: &'static str = "SignedSubmissionIndices"; + type Value = runtime_types :: frame_support :: storage :: bounded_btree_map :: BoundedBTreeMap < [u128 ; 3usize] , u32 > ; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct SignedSubmissionsMap(pub u32); + impl ::subxt::StorageEntry for SignedSubmissionsMap { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const STORAGE: &'static str = "SignedSubmissionsMap"; + type Value = runtime_types :: pallet_election_provider_multi_phase :: signed :: SignedSubmission < :: subxt :: sp_core :: crypto :: AccountId32 , u128 , runtime_types :: node_runtime :: NposSolution16 > ; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) + } + } + pub struct MinimumUntrustedScore; + impl ::subxt::StorageEntry for MinimumUntrustedScore { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const STORAGE: &'static str = "MinimumUntrustedScore"; + type Value = [u128; 3usize]; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct StorageApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> StorageApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } + pub async fn round( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result { + let entry = Round; + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn current_phase( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + runtime_types::pallet_election_provider_multi_phase::Phase, + ::subxt::Error, + > { + let entry = CurrentPhase; + self.client.storage().fetch_or_default(&entry, hash).await + } pub async fn queued_solution (& self , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: pallet_election_provider_multi_phase :: ReadySolution < :: subxt :: sp_core :: crypto :: AccountId32 > > , :: subxt :: Error >{ + let entry = QueuedSolution; + self.client.storage().fetch(&entry, hash).await + } pub async fn snapshot (& self , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: pallet_election_provider_multi_phase :: RoundSnapshot < :: subxt :: sp_core :: crypto :: AccountId32 > > , :: subxt :: Error >{ + let entry = Snapshot; + self.client.storage().fetch(&entry, hash).await + } + pub async fn desired_targets( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result<::core::option::Option, ::subxt::Error> + { + let entry = DesiredTargets; + self.client.storage().fetch(&entry, hash).await + } pub async fn snapshot_metadata (& self , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize > , :: subxt :: Error >{ + let entry = SnapshotMetadata; + self.client.storage().fetch(&entry, hash).await + } + pub async fn signed_submission_next_index( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result { + let entry = SignedSubmissionNextIndex; + self.client.storage().fetch_or_default(&entry, hash).await + } pub async fn signed_submission_indices (& self , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: frame_support :: storage :: bounded_btree_map :: BoundedBTreeMap < [u128 ; 3usize] , u32 > , :: subxt :: Error >{ + let entry = SignedSubmissionIndices; + self.client.storage().fetch_or_default(&entry, hash).await + } pub async fn signed_submissions_map (& self , _0 : u32 , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: pallet_election_provider_multi_phase :: signed :: SignedSubmission < :: subxt :: sp_core :: crypto :: AccountId32 , u128 , runtime_types :: node_runtime :: NposSolution16 > , :: subxt :: Error >{ + let entry = SignedSubmissionsMap(_0); + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn signed_submissions_map_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, SignedSubmissionsMap>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } + pub async fn minimum_untrusted_score( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option<[u128; 3usize]>, + ::subxt::Error, + > { + let entry = MinimumUntrustedScore; + self.client.storage().fetch(&entry, hash).await + } + } + } } pub mod staking { use super::runtime_types; pub mod calls { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Bond { pub controller: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, - (), + u32, >, #[codec(compact)] pub value: u128, @@ -2083,7 +2328,7 @@ pub mod api { const PALLET: &'static str = "Staking"; const FUNCTION: &'static str = "bond"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct BondExtra { #[codec(compact)] pub max_additional: u128, @@ -2092,7 +2337,7 @@ pub mod api { const PALLET: &'static str = "Staking"; const FUNCTION: &'static str = "bond_extra"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Unbond { #[codec(compact)] pub value: u128, @@ -2101,7 +2346,7 @@ pub mod api { const PALLET: &'static str = "Staking"; const FUNCTION: &'static str = "unbond"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct WithdrawUnbonded { pub num_slashing_spans: u32, } @@ -2109,7 +2354,7 @@ pub mod api { const PALLET: &'static str = "Staking"; const FUNCTION: &'static str = "withdraw_unbonded"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Validate { pub prefs: runtime_types::pallet_staking::ValidatorPrefs, } @@ -2117,12 +2362,12 @@ pub mod api { const PALLET: &'static str = "Staking"; const FUNCTION: &'static str = "validate"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Nominate { pub targets: Vec< ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, - (), + u32, >, >, } @@ -2130,13 +2375,13 @@ pub mod api { const PALLET: &'static str = "Staking"; const FUNCTION: &'static str = "nominate"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Chill {} impl ::subxt::Call for Chill { const PALLET: &'static str = "Staking"; const FUNCTION: &'static str = "chill"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct SetPayee { pub payee: runtime_types::pallet_staking::RewardDestination< ::subxt::sp_core::crypto::AccountId32, @@ -2146,18 +2391,18 @@ pub mod api { const PALLET: &'static str = "Staking"; const FUNCTION: &'static str = "set_payee"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct SetController { pub controller: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, - (), + u32, >, } impl ::subxt::Call for SetController { const PALLET: &'static str = "Staking"; const FUNCTION: &'static str = "set_controller"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct SetValidatorCount { #[codec(compact)] pub new: u32, @@ -2166,7 +2411,7 @@ pub mod api { const PALLET: &'static str = "Staking"; const FUNCTION: &'static str = "set_validator_count"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct IncreaseValidatorCount { #[codec(compact)] pub additional: u32, @@ -2175,7 +2420,7 @@ pub mod api { const PALLET: &'static str = "Staking"; const FUNCTION: &'static str = "increase_validator_count"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct ScaleValidatorCount { pub factor: runtime_types::sp_arithmetic::per_things::Percent, } @@ -2183,19 +2428,19 @@ pub mod api { const PALLET: &'static str = "Staking"; const FUNCTION: &'static str = "scale_validator_count"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct ForceNoEras {} impl ::subxt::Call for ForceNoEras { const PALLET: &'static str = "Staking"; const FUNCTION: &'static str = "force_no_eras"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct ForceNewEra {} impl ::subxt::Call for ForceNewEra { const PALLET: &'static str = "Staking"; const FUNCTION: &'static str = "force_new_era"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct SetInvulnerables { pub invulnerables: Vec<::subxt::sp_core::crypto::AccountId32>, } @@ -2203,7 +2448,7 @@ pub mod api { const PALLET: &'static str = "Staking"; const FUNCTION: &'static str = "set_invulnerables"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct ForceUnstake { pub stash: ::subxt::sp_core::crypto::AccountId32, pub num_slashing_spans: u32, @@ -2212,13 +2457,13 @@ pub mod api { const PALLET: &'static str = "Staking"; const FUNCTION: &'static str = "force_unstake"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct ForceNewEraAlways {} impl ::subxt::Call for ForceNewEraAlways { const PALLET: &'static str = "Staking"; const FUNCTION: &'static str = "force_new_era_always"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct CancelDeferredSlash { pub era: u32, pub slash_indices: Vec, @@ -2227,7 +2472,7 @@ pub mod api { const PALLET: &'static str = "Staking"; const FUNCTION: &'static str = "cancel_deferred_slash"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct PayoutStakers { pub validator_stash: ::subxt::sp_core::crypto::AccountId32, pub era: u32, @@ -2236,7 +2481,7 @@ pub mod api { const PALLET: &'static str = "Staking"; const FUNCTION: &'static str = "payout_stakers"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Rebond { #[codec(compact)] pub value: u128, @@ -2245,7 +2490,7 @@ pub mod api { const PALLET: &'static str = "Staking"; const FUNCTION: &'static str = "rebond"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct SetHistoryDepth { #[codec(compact)] pub new_history_depth: u32, @@ -2256,7 +2501,7 @@ pub mod api { const PALLET: &'static str = "Staking"; const FUNCTION: &'static str = "set_history_depth"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct ReapStash { pub stash: ::subxt::sp_core::crypto::AccountId32, pub num_slashing_spans: u32, @@ -2265,12 +2510,12 @@ pub mod api { const PALLET: &'static str = "Staking"; const FUNCTION: &'static str = "reap_stash"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Kick { pub who: Vec< ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, - (), + u32, >, >, } @@ -2278,7 +2523,7 @@ pub mod api { const PALLET: &'static str = "Staking"; const FUNCTION: &'static str = "kick"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct SetStakingLimits { pub min_nominator_bond: u128, pub min_validator_bond: u128, @@ -2290,7 +2535,7 @@ pub mod api { const PALLET: &'static str = "Staking"; const FUNCTION: &'static str = "set_staking_limits"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct ChillOther { pub controller: ::subxt::sp_core::crypto::AccountId32, } @@ -2315,7 +2560,7 @@ pub mod api { &self, controller: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, - (), + u32, >, value: u128, payee: runtime_types::pallet_staking::RewardDestination< @@ -2362,7 +2607,7 @@ pub mod api { targets: Vec< ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, - (), + u32, >, >, ) -> ::subxt::SubmittableExtrinsic { @@ -2386,7 +2631,7 @@ pub mod api { &self, controller: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, - (), + u32, >, ) -> ::subxt::SubmittableExtrinsic { let call = SetController { controller }; @@ -2505,7 +2750,7 @@ pub mod api { who: Vec< ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, - (), + u32, >, >, ) -> ::subxt::SubmittableExtrinsic { @@ -2541,55 +2786,55 @@ pub mod api { pub type Event = runtime_types::pallet_staking::pallet::pallet::Event; pub mod events { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct EraPaid(pub u32, pub u128, pub u128); impl ::subxt::Event for EraPaid { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "EraPaid"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Rewarded(pub ::subxt::sp_core::crypto::AccountId32, pub u128); impl ::subxt::Event for Rewarded { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "Rewarded"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Slashed(pub ::subxt::sp_core::crypto::AccountId32, pub u128); impl ::subxt::Event for Slashed { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "Slashed"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct OldSlashingReportDiscarded(pub u32); impl ::subxt::Event for OldSlashingReportDiscarded { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "OldSlashingReportDiscarded"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct StakersElected {} impl ::subxt::Event for StakersElected { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "StakersElected"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Bonded(pub ::subxt::sp_core::crypto::AccountId32, pub u128); impl ::subxt::Event for Bonded { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "Bonded"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Unbonded(pub ::subxt::sp_core::crypto::AccountId32, pub u128); impl ::subxt::Event for Unbonded { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "Unbonded"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Withdrawn(pub ::subxt::sp_core::crypto::AccountId32, pub u128); impl ::subxt::Event for Withdrawn { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "Withdrawn"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Kicked( pub ::subxt::sp_core::crypto::AccountId32, pub ::subxt::sp_core::crypto::AccountId32, @@ -2598,19 +2843,19 @@ pub mod api { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "Kicked"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct StakingElectionFailed {} impl ::subxt::Event for StakingElectionFailed { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "StakingElectionFailed"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Chilled(pub ::subxt::sp_core::crypto::AccountId32); impl ::subxt::Event for Chilled { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "Chilled"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct PayoutStarted(pub u32, pub ::subxt::sp_core::crypto::AccountId32); impl ::subxt::Event for PayoutStarted { const PALLET: &'static str = "Staking"; @@ -3035,6 +3280,15 @@ pub mod api { ::subxt::StorageEntryKey::Plain } } + pub struct OffendingValidators; + impl ::subxt::StorageEntry for OffendingValidators { + const PALLET: &'static str = "Staking"; + const STORAGE: &'static str = "OffendingValidators"; + type Value = Vec<(u32, bool)>; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } pub struct StorageVersion; impl ::subxt::StorageEntry for StorageVersion { const PALLET: &'static str = "Staking"; @@ -3102,6 +3356,13 @@ pub mod api { let entry = Bonded(_0); self.client.storage().fetch(&entry, hash).await } + pub async fn bonded_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result<::subxt::KeyIter<'a, T, Bonded>, ::subxt::Error> + { + self.client.storage().iter(hash).await + } pub async fn min_nominator_bond( &self, hash: ::core::option::Option, @@ -3132,6 +3393,13 @@ pub mod api { let entry = Ledger(_0); self.client.storage().fetch(&entry, hash).await } + pub async fn ledger_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result<::subxt::KeyIter<'a, T, Ledger>, ::subxt::Error> + { + self.client.storage().iter(hash).await + } pub async fn payee( &self, _0: ::subxt::sp_core::crypto::AccountId32, @@ -3145,6 +3413,13 @@ pub mod api { let entry = Payee(_0); self.client.storage().fetch_or_default(&entry, hash).await } + pub async fn payee_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result<::subxt::KeyIter<'a, T, Payee>, ::subxt::Error> + { + self.client.storage().iter(hash).await + } pub async fn validators( &self, _0: ::subxt::sp_core::crypto::AccountId32, @@ -3156,6 +3431,15 @@ pub mod api { let entry = Validators(_0); self.client.storage().fetch_or_default(&entry, hash).await } + pub async fn validators_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, Validators>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } pub async fn counter_for_validators( &self, hash: ::core::option::Option, @@ -3186,6 +3470,15 @@ pub mod api { let entry = Nominators(_0); self.client.storage().fetch(&entry, hash).await } + pub async fn nominators_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, Nominators>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } pub async fn counter_for_nominators( &self, hash: ::core::option::Option, @@ -3228,6 +3521,15 @@ pub mod api { let entry = ErasStartSessionIndex(_0); self.client.storage().fetch(&entry, hash).await } + pub async fn eras_start_session_index_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, ErasStartSessionIndex>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } pub async fn eras_stakers( &self, _0: u32, @@ -3243,6 +3545,15 @@ pub mod api { let entry = ErasStakers(_0, _1); self.client.storage().fetch_or_default(&entry, hash).await } + pub async fn eras_stakers_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, ErasStakers>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } pub async fn eras_stakers_clipped( &self, _0: u32, @@ -3258,6 +3569,15 @@ pub mod api { let entry = ErasStakersClipped(_0, _1); self.client.storage().fetch_or_default(&entry, hash).await } + pub async fn eras_stakers_clipped_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, ErasStakersClipped>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } pub async fn eras_validator_prefs( &self, _0: u32, @@ -3270,6 +3590,15 @@ pub mod api { let entry = ErasValidatorPrefs(_0, _1); self.client.storage().fetch_or_default(&entry, hash).await } + pub async fn eras_validator_prefs_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, ErasValidatorPrefs>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } pub async fn eras_validator_reward( &self, _0: u32, @@ -3279,6 +3608,15 @@ pub mod api { let entry = ErasValidatorReward(_0); self.client.storage().fetch(&entry, hash).await } + pub async fn eras_validator_reward_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, ErasValidatorReward>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } pub async fn eras_reward_points( &self, _0: u32, @@ -3292,6 +3630,15 @@ pub mod api { let entry = ErasRewardPoints(_0); self.client.storage().fetch_or_default(&entry, hash).await } + pub async fn eras_reward_points_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, ErasRewardPoints>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } pub async fn eras_total_stake( &self, _0: u32, @@ -3300,6 +3647,15 @@ pub mod api { let entry = ErasTotalStake(_0); self.client.storage().fetch_or_default(&entry, hash).await } + pub async fn eras_total_stake_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, ErasTotalStake>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } pub async fn force_era( &self, hash: ::core::option::Option, @@ -3343,6 +3699,15 @@ pub mod api { let entry = UnappliedSlashes(_0); self.client.storage().fetch_or_default(&entry, hash).await } + pub async fn unapplied_slashes_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, UnappliedSlashes>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } pub async fn bonded_eras( &self, hash: ::core::option::Option, @@ -3366,6 +3731,15 @@ pub mod api { let entry = ValidatorSlashInEra(_0, _1); self.client.storage().fetch(&entry, hash).await } + pub async fn validator_slash_in_era_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, ValidatorSlashInEra>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } pub async fn nominator_slash_in_era( &self, _0: u32, @@ -3376,6 +3750,15 @@ pub mod api { let entry = NominatorSlashInEra(_0, _1); self.client.storage().fetch(&entry, hash).await } + pub async fn nominator_slash_in_era_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, NominatorSlashInEra>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } pub async fn slashing_spans( &self, _0: ::subxt::sp_core::crypto::AccountId32, @@ -3389,6 +3772,15 @@ pub mod api { let entry = SlashingSpans(_0); self.client.storage().fetch(&entry, hash).await } + pub async fn slashing_spans_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, SlashingSpans>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } pub async fn span_slash( &self, _0: ::subxt::sp_core::crypto::AccountId32, @@ -3401,6 +3793,15 @@ pub mod api { let entry = SpanSlash(_0, _1); self.client.storage().fetch_or_default(&entry, hash).await } + pub async fn span_slash_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, SpanSlash>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } pub async fn earliest_unapplied_slash( &self, hash: ::core::option::Option, @@ -3416,6 +3817,14 @@ pub mod api { let entry = CurrentPlannedSession; self.client.storage().fetch_or_default(&entry, hash).await } + pub async fn offending_validators( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result, ::subxt::Error> + { + let entry = OffendingValidators; + self.client.storage().fetch_or_default(&entry, hash).await + } pub async fn storage_version( &self, hash: ::core::option::Option, @@ -3441,138 +3850,20 @@ pub mod api { } } } - pub mod offences { + pub mod session { use super::runtime_types; - pub type Event = runtime_types::pallet_offences::pallet::Event; - pub mod events { + pub mod calls { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Offence(pub [u8; 16usize], pub Vec); - impl ::subxt::Event for Offence { - const PALLET: &'static str = "Offences"; - const EVENT: &'static str = "Offence"; - } - } - pub mod storage { - use super::runtime_types; - pub struct Reports(pub ::subxt::sp_core::H256); - impl ::subxt::StorageEntry for Reports { - const PALLET: &'static str = "Offences"; - const STORAGE: &'static str = "Reports"; - type Value = runtime_types::sp_staking::offence::OffenceDetails< - ::subxt::sp_core::crypto::AccountId32, - ( - ::subxt::sp_core::crypto::AccountId32, - runtime_types::pallet_staking::Exposure< - ::subxt::sp_core::crypto::AccountId32, - u128, - >, - ), - >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct ConcurrentReportsIndex([u8; 16usize], Vec); - impl ::subxt::StorageEntry for ConcurrentReportsIndex { - const PALLET: &'static str = "Offences"; - const STORAGE: &'static str = "ConcurrentReportsIndex"; - type Value = Vec<::subxt::sp_core::H256>; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![ - ::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - ), - ::subxt::StorageMapKey::new( - &self.1, - ::subxt::StorageHasher::Twox64Concat, - ), - ]) - } - } - pub struct ReportsByKindIndex(pub [u8; 16usize]); - impl ::subxt::StorageEntry for ReportsByKindIndex { - const PALLET: &'static str = "Offences"; - const STORAGE: &'static str = "ReportsByKindIndex"; - type Value = Vec; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct StorageApi<'a, T: ::subxt::Config> { - client: &'a ::subxt::Client, - } - impl<'a, T: ::subxt::Config> StorageApi<'a, T> { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { client } - } - pub async fn reports( - &self, - _0: ::subxt::sp_core::H256, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::sp_staking::offence::OffenceDetails< - ::subxt::sp_core::crypto::AccountId32, - ( - ::subxt::sp_core::crypto::AccountId32, - runtime_types::pallet_staking::Exposure< - ::subxt::sp_core::crypto::AccountId32, - u128, - >, - ), - >, - >, - ::subxt::Error, - > { - let entry = Reports(_0); - self.client.storage().fetch(&entry, hash).await - } - pub async fn concurrent_reports_index( - &self, - _0: [u8; 16usize], - _1: Vec, - hash: ::core::option::Option, - ) -> ::core::result::Result, ::subxt::Error> - { - let entry = ConcurrentReportsIndex(_0, _1); - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn reports_by_kind_index( - &self, - _0: [u8; 16usize], - hash: ::core::option::Option, - ) -> ::core::result::Result, ::subxt::Error> { - let entry = ReportsByKindIndex(_0); - self.client.storage().fetch_or_default(&entry, hash).await - } - } - } - } - pub mod historical { - use super::runtime_types; - } - pub mod session { - use super::runtime_types; - pub mod calls { - use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SetKeys { - pub keys: runtime_types::polkadot_runtime::SessionKeys, - pub proof: Vec, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct SetKeys { + pub keys: runtime_types::node_runtime::SessionKeys, + pub proof: Vec, } impl ::subxt::Call for SetKeys { const PALLET: &'static str = "Session"; const FUNCTION: &'static str = "set_keys"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct PurgeKeys {} impl ::subxt::Call for PurgeKeys { const PALLET: &'static str = "Session"; @@ -3593,7 +3884,7 @@ pub mod api { } pub fn set_keys( &self, - keys: runtime_types::polkadot_runtime::SessionKeys, + keys: runtime_types::node_runtime::SessionKeys, proof: Vec, ) -> ::subxt::SubmittableExtrinsic { let call = SetKeys { keys, proof }; @@ -3608,7 +3899,7 @@ pub mod api { pub type Event = runtime_types::pallet_session::pallet::Event; pub mod events { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct NewSession(pub u32); impl ::subxt::Event for NewSession { const PALLET: &'static str = "Session"; @@ -3650,7 +3941,7 @@ pub mod api { const STORAGE: &'static str = "QueuedKeys"; type Value = Vec<( ::subxt::sp_core::crypto::AccountId32, - runtime_types::polkadot_runtime::SessionKeys, + runtime_types::node_runtime::SessionKeys, )>; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Plain @@ -3669,7 +3960,7 @@ pub mod api { impl ::subxt::StorageEntry for NextKeys { const PALLET: &'static str = "Session"; const STORAGE: &'static str = "NextKeys"; - type Value = runtime_types::polkadot_runtime::SessionKeys; + type Value = runtime_types::node_runtime::SessionKeys; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( &self.0, @@ -3726,7 +4017,7 @@ pub mod api { ) -> ::core::result::Result< Vec<( ::subxt::sp_core::crypto::AccountId32, - runtime_types::polkadot_runtime::SessionKeys, + runtime_types::node_runtime::SessionKeys, )>, ::subxt::Error, > { @@ -3745,12 +4036,21 @@ pub mod api { _0: ::subxt::sp_core::crypto::AccountId32, hash: ::core::option::Option, ) -> ::core::result::Result< - ::core::option::Option, + ::core::option::Option, ::subxt::Error, > { let entry = NextKeys(_0); self.client.storage().fetch(&entry, hash).await } + pub async fn next_keys_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, NextKeys>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } pub async fn key_owner( &self, _0: runtime_types::sp_core::crypto::KeyTypeId, @@ -3763,260 +4063,235 @@ pub mod api { let entry = KeyOwner(_0, _1); self.client.storage().fetch(&entry, hash).await } + pub async fn key_owner_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, KeyOwner>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } } } } - pub mod grandpa { + pub mod democracy { use super::runtime_types; pub mod calls { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ReportEquivocation { - pub equivocation_proof: - runtime_types::sp_finality_grandpa::EquivocationProof< - ::subxt::sp_core::H256, - u32, - >, - pub key_owner_proof: runtime_types::sp_session::MembershipProof, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Propose { + pub proposal_hash: ::subxt::sp_core::H256, + #[codec(compact)] + pub value: u128, } - impl ::subxt::Call for ReportEquivocation { - const PALLET: &'static str = "Grandpa"; - const FUNCTION: &'static str = "report_equivocation"; + impl ::subxt::Call for Propose { + const PALLET: &'static str = "Democracy"; + const FUNCTION: &'static str = "propose"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ReportEquivocationUnsigned { - pub equivocation_proof: - runtime_types::sp_finality_grandpa::EquivocationProof< - ::subxt::sp_core::H256, - u32, - >, - pub key_owner_proof: runtime_types::sp_session::MembershipProof, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Second { + #[codec(compact)] + pub proposal: u32, + #[codec(compact)] + pub seconds_upper_bound: u32, } - impl ::subxt::Call for ReportEquivocationUnsigned { - const PALLET: &'static str = "Grandpa"; - const FUNCTION: &'static str = "report_equivocation_unsigned"; + impl ::subxt::Call for Second { + const PALLET: &'static str = "Democracy"; + const FUNCTION: &'static str = "second"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct NoteStalled { - pub delay: u32, - pub best_finalized_block_number: u32, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Vote { + #[codec(compact)] + pub ref_index: u32, + pub vote: runtime_types::pallet_democracy::vote::AccountVote, } - impl ::subxt::Call for NoteStalled { - const PALLET: &'static str = "Grandpa"; - const FUNCTION: &'static str = "note_stalled"; + impl ::subxt::Call for Vote { + const PALLET: &'static str = "Democracy"; + const FUNCTION: &'static str = "vote"; } - pub struct TransactionApi< - 'a, - T: ::subxt::Config + ::subxt::ExtrinsicExtraData, - > { - client: &'a ::subxt::Client, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct EmergencyCancel { + pub ref_index: u32, } - impl<'a, T: ::subxt::Config> TransactionApi<'a, T> - where - T: ::subxt::Config + ::subxt::ExtrinsicExtraData, - { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { client } - } - pub fn report_equivocation( - &self, - equivocation_proof : runtime_types :: sp_finality_grandpa :: EquivocationProof < :: subxt :: sp_core :: H256 , u32 >, - key_owner_proof: runtime_types::sp_session::MembershipProof, - ) -> ::subxt::SubmittableExtrinsic - { - let call = ReportEquivocation { - equivocation_proof, - key_owner_proof, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn report_equivocation_unsigned( - &self, - equivocation_proof : runtime_types :: sp_finality_grandpa :: EquivocationProof < :: subxt :: sp_core :: H256 , u32 >, - key_owner_proof: runtime_types::sp_session::MembershipProof, - ) -> ::subxt::SubmittableExtrinsic - { - let call = ReportEquivocationUnsigned { - equivocation_proof, - key_owner_proof, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn note_stalled( - &self, - delay: u32, - best_finalized_block_number: u32, - ) -> ::subxt::SubmittableExtrinsic { - let call = NoteStalled { - delay, - best_finalized_block_number, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } + impl ::subxt::Call for EmergencyCancel { + const PALLET: &'static str = "Democracy"; + const FUNCTION: &'static str = "emergency_cancel"; } - } - pub type Event = runtime_types::pallet_grandpa::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct NewAuthorities( - pub Vec<(runtime_types::sp_finality_grandpa::app::Public, u64)>, - ); - impl ::subxt::Event for NewAuthorities { - const PALLET: &'static str = "Grandpa"; - const EVENT: &'static str = "NewAuthorities"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ExternalPropose { + pub proposal_hash: ::subxt::sp_core::H256, } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Paused {} - impl ::subxt::Event for Paused { - const PALLET: &'static str = "Grandpa"; - const EVENT: &'static str = "Paused"; + impl ::subxt::Call for ExternalPropose { + const PALLET: &'static str = "Democracy"; + const FUNCTION: &'static str = "external_propose"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Resumed {} - impl ::subxt::Event for Resumed { - const PALLET: &'static str = "Grandpa"; - const EVENT: &'static str = "Resumed"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ExternalProposeMajority { + pub proposal_hash: ::subxt::sp_core::H256, } - } - pub mod storage { - use super::runtime_types; - pub struct State; - impl ::subxt::StorageEntry for State { - const PALLET: &'static str = "Grandpa"; - const STORAGE: &'static str = "State"; - type Value = runtime_types::pallet_grandpa::StoredState; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } + impl ::subxt::Call for ExternalProposeMajority { + const PALLET: &'static str = "Democracy"; + const FUNCTION: &'static str = "external_propose_majority"; } - pub struct PendingChange; - impl ::subxt::StorageEntry for PendingChange { - const PALLET: &'static str = "Grandpa"; - const STORAGE: &'static str = "PendingChange"; - type Value = runtime_types::pallet_grandpa::StoredPendingChange; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ExternalProposeDefault { + pub proposal_hash: ::subxt::sp_core::H256, } - pub struct NextForced; - impl ::subxt::StorageEntry for NextForced { - const PALLET: &'static str = "Grandpa"; - const STORAGE: &'static str = "NextForced"; - type Value = u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } + impl ::subxt::Call for ExternalProposeDefault { + const PALLET: &'static str = "Democracy"; + const FUNCTION: &'static str = "external_propose_default"; } - pub struct Stalled; - impl ::subxt::StorageEntry for Stalled { - const PALLET: &'static str = "Grandpa"; - const STORAGE: &'static str = "Stalled"; - type Value = (u32, u32); - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct FastTrack { + pub proposal_hash: ::subxt::sp_core::H256, + pub voting_period: u32, + pub delay: u32, } - pub struct CurrentSetId; - impl ::subxt::StorageEntry for CurrentSetId { - const PALLET: &'static str = "Grandpa"; - const STORAGE: &'static str = "CurrentSetId"; - type Value = u64; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } + impl ::subxt::Call for FastTrack { + const PALLET: &'static str = "Democracy"; + const FUNCTION: &'static str = "fast_track"; } - pub struct SetIdSession(pub u64); - impl ::subxt::StorageEntry for SetIdSession { - const PALLET: &'static str = "Grandpa"; - const STORAGE: &'static str = "SetIdSession"; - type Value = u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct VetoExternal { + pub proposal_hash: ::subxt::sp_core::H256, } - pub struct StorageApi<'a, T: ::subxt::Config> { - client: &'a ::subxt::Client, + impl ::subxt::Call for VetoExternal { + const PALLET: &'static str = "Democracy"; + const FUNCTION: &'static str = "veto_external"; } - impl<'a, T: ::subxt::Config> StorageApi<'a, T> { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { client } - } - pub async fn state( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - runtime_types::pallet_grandpa::StoredState, - ::subxt::Error, - > { - let entry = State; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn pending_change( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::pallet_grandpa::StoredPendingChange, - >, - ::subxt::Error, - > { - let entry = PendingChange; - self.client.storage().fetch(&entry, hash).await - } - pub async fn next_forced( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result<::core::option::Option, ::subxt::Error> - { - let entry = NextForced; - self.client.storage().fetch(&entry, hash).await - } - pub async fn stalled( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option<(u32, u32)>, - ::subxt::Error, - > { - let entry = Stalled; - self.client.storage().fetch(&entry, hash).await - } - pub async fn current_set_id( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result { - let entry = CurrentSetId; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn set_id_session( - &self, - _0: u64, - hash: ::core::option::Option, - ) -> ::core::result::Result<::core::option::Option, ::subxt::Error> - { - let entry = SetIdSession(_0); - self.client.storage().fetch(&entry, hash).await - } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct CancelReferendum { + #[codec(compact)] + pub ref_index: u32, } - } - } - pub mod im_online { - use super::runtime_types; - pub mod calls { - use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Heartbeat { - pub heartbeat: runtime_types::pallet_im_online::Heartbeat, - pub signature: - runtime_types::pallet_im_online::sr25519::app_sr25519::Signature, + impl ::subxt::Call for CancelReferendum { + const PALLET: &'static str = "Democracy"; + const FUNCTION: &'static str = "cancel_referendum"; } - impl ::subxt::Call for Heartbeat { - const PALLET: &'static str = "ImOnline"; - const FUNCTION: &'static str = "heartbeat"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct CancelQueued { + pub which: u32, + } + impl ::subxt::Call for CancelQueued { + const PALLET: &'static str = "Democracy"; + const FUNCTION: &'static str = "cancel_queued"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Delegate { + pub to: ::subxt::sp_core::crypto::AccountId32, + pub conviction: runtime_types::pallet_democracy::conviction::Conviction, + pub balance: u128, + } + impl ::subxt::Call for Delegate { + const PALLET: &'static str = "Democracy"; + const FUNCTION: &'static str = "delegate"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Undelegate {} + impl ::subxt::Call for Undelegate { + const PALLET: &'static str = "Democracy"; + const FUNCTION: &'static str = "undelegate"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ClearPublicProposals {} + impl ::subxt::Call for ClearPublicProposals { + const PALLET: &'static str = "Democracy"; + const FUNCTION: &'static str = "clear_public_proposals"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct NotePreimage { + pub encoded_proposal: Vec, + } + impl ::subxt::Call for NotePreimage { + const PALLET: &'static str = "Democracy"; + const FUNCTION: &'static str = "note_preimage"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct NotePreimageOperational { + pub encoded_proposal: Vec, + } + impl ::subxt::Call for NotePreimageOperational { + const PALLET: &'static str = "Democracy"; + const FUNCTION: &'static str = "note_preimage_operational"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct NoteImminentPreimage { + pub encoded_proposal: Vec, + } + impl ::subxt::Call for NoteImminentPreimage { + const PALLET: &'static str = "Democracy"; + const FUNCTION: &'static str = "note_imminent_preimage"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct NoteImminentPreimageOperational { + pub encoded_proposal: Vec, + } + impl ::subxt::Call for NoteImminentPreimageOperational { + const PALLET: &'static str = "Democracy"; + const FUNCTION: &'static str = "note_imminent_preimage_operational"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ReapPreimage { + pub proposal_hash: ::subxt::sp_core::H256, + #[codec(compact)] + pub proposal_len_upper_bound: u32, + } + impl ::subxt::Call for ReapPreimage { + const PALLET: &'static str = "Democracy"; + const FUNCTION: &'static str = "reap_preimage"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Unlock { + pub target: ::subxt::sp_core::crypto::AccountId32, + } + impl ::subxt::Call for Unlock { + const PALLET: &'static str = "Democracy"; + const FUNCTION: &'static str = "unlock"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct RemoveVote { + pub index: u32, + } + impl ::subxt::Call for RemoveVote { + const PALLET: &'static str = "Democracy"; + const FUNCTION: &'static str = "remove_vote"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct RemoveOtherVote { + pub target: ::subxt::sp_core::crypto::AccountId32, + pub index: u32, + } + impl ::subxt::Call for RemoveOtherVote { + const PALLET: &'static str = "Democracy"; + const FUNCTION: &'static str = "remove_other_vote"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct EnactProposal { + pub proposal_hash: ::subxt::sp_core::H256, + pub index: u32, + } + impl ::subxt::Call for EnactProposal { + const PALLET: &'static str = "Democracy"; + const FUNCTION: &'static str = "enact_proposal"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Blacklist { + pub proposal_hash: ::subxt::sp_core::H256, + pub maybe_ref_index: Option, + } + impl ::subxt::Call for Blacklist { + const PALLET: &'static str = "Democracy"; + const FUNCTION: &'static str = "blacklist"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct CancelProposal { + #[codec(compact)] + pub prop_index: u32, + } + impl ::subxt::Call for CancelProposal { + const PALLET: &'static str = "Democracy"; + const FUNCTION: &'static str = "cancel_proposal"; } pub struct TransactionApi< 'a, @@ -4031,467 +4306,85 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub fn heartbeat( + pub fn propose( &self, - heartbeat: runtime_types::pallet_im_online::Heartbeat, - signature : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Signature, - ) -> ::subxt::SubmittableExtrinsic { - let call = Heartbeat { - heartbeat, - signature, + proposal_hash: ::subxt::sp_core::H256, + value: u128, + ) -> ::subxt::SubmittableExtrinsic { + let call = Propose { + proposal_hash, + value, }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - } - } - pub type Event = runtime_types::pallet_im_online::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct HeartbeatReceived( - pub runtime_types::pallet_im_online::sr25519::app_sr25519::Public, - ); - impl ::subxt::Event for HeartbeatReceived { - const PALLET: &'static str = "ImOnline"; - const EVENT: &'static str = "HeartbeatReceived"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct AllGood {} - impl ::subxt::Event for AllGood { - const PALLET: &'static str = "ImOnline"; - const EVENT: &'static str = "AllGood"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SomeOffline( - pub Vec<( - ::subxt::sp_core::crypto::AccountId32, - runtime_types::pallet_staking::Exposure< - ::subxt::sp_core::crypto::AccountId32, - u128, - >, - )>, - ); - impl ::subxt::Event for SomeOffline { - const PALLET: &'static str = "ImOnline"; - const EVENT: &'static str = "SomeOffline"; - } - } - pub mod storage { - use super::runtime_types; - pub struct HeartbeatAfter; - impl ::subxt::StorageEntry for HeartbeatAfter { - const PALLET: &'static str = "ImOnline"; - const STORAGE: &'static str = "HeartbeatAfter"; - type Value = u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain + pub fn second( + &self, + proposal: u32, + seconds_upper_bound: u32, + ) -> ::subxt::SubmittableExtrinsic { + let call = Second { + proposal, + seconds_upper_bound, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - } - pub struct Keys; - impl ::subxt::StorageEntry for Keys { - const PALLET: &'static str = "ImOnline"; - const STORAGE: &'static str = "Keys"; - type Value = runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Public > ; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain + pub fn vote( + &self, + ref_index: u32, + vote: runtime_types::pallet_democracy::vote::AccountVote, + ) -> ::subxt::SubmittableExtrinsic { + let call = Vote { ref_index, vote }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - } - pub struct ReceivedHeartbeats(u32, u32); - impl ::subxt::StorageEntry for ReceivedHeartbeats { - const PALLET: &'static str = "ImOnline"; - const STORAGE: &'static str = "ReceivedHeartbeats"; - type Value = runtime_types::frame_support::traits::misc::WrapperOpaque< - runtime_types::pallet_im_online::BoundedOpaqueNetworkState, - >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![ - ::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - ), - ::subxt::StorageMapKey::new( - &self.1, - ::subxt::StorageHasher::Twox64Concat, - ), - ]) + pub fn emergency_cancel( + &self, + ref_index: u32, + ) -> ::subxt::SubmittableExtrinsic { + let call = EmergencyCancel { ref_index }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - } - pub struct AuthoredBlocks(u32, ::subxt::sp_core::crypto::AccountId32); - impl ::subxt::StorageEntry for AuthoredBlocks { - const PALLET: &'static str = "ImOnline"; - const STORAGE: &'static str = "AuthoredBlocks"; - type Value = u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![ - ::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - ), - ::subxt::StorageMapKey::new( - &self.1, - ::subxt::StorageHasher::Twox64Concat, - ), - ]) + pub fn external_propose( + &self, + proposal_hash: ::subxt::sp_core::H256, + ) -> ::subxt::SubmittableExtrinsic { + let call = ExternalPropose { proposal_hash }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - } - pub struct StorageApi<'a, T: ::subxt::Config> { - client: &'a ::subxt::Client, - } - impl<'a, T: ::subxt::Config> StorageApi<'a, T> { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { client } + pub fn external_propose_majority( + &self, + proposal_hash: ::subxt::sp_core::H256, + ) -> ::subxt::SubmittableExtrinsic + { + let call = ExternalProposeMajority { proposal_hash }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub async fn heartbeat_after( + pub fn external_propose_default( &self, - hash: ::core::option::Option, - ) -> ::core::result::Result { - let entry = HeartbeatAfter; - self.client.storage().fetch_or_default(&entry, hash).await - } pub async fn keys (& self , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Public > , :: subxt :: Error >{ - let entry = Keys; - self.client.storage().fetch_or_default(&entry, hash).await + proposal_hash: ::subxt::sp_core::H256, + ) -> ::subxt::SubmittableExtrinsic + { + let call = ExternalProposeDefault { proposal_hash }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub async fn received_heartbeats( + pub fn fast_track( &self, - _0: u32, - _1: u32, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::frame_support::traits::misc::WrapperOpaque< - runtime_types::pallet_im_online::BoundedOpaqueNetworkState, - >, - >, - ::subxt::Error, - > { - let entry = ReceivedHeartbeats(_0, _1); - self.client.storage().fetch(&entry, hash).await + proposal_hash: ::subxt::sp_core::H256, + voting_period: u32, + delay: u32, + ) -> ::subxt::SubmittableExtrinsic { + let call = FastTrack { + proposal_hash, + voting_period, + delay, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub async fn authored_blocks( + pub fn veto_external( &self, - _0: u32, - _1: ::subxt::sp_core::crypto::AccountId32, - hash: ::core::option::Option, - ) -> ::core::result::Result { - let entry = AuthoredBlocks(_0, _1); - self.client.storage().fetch_or_default(&entry, hash).await - } - } - } - } - pub mod authority_discovery { - use super::runtime_types; - } - pub mod democracy { - use super::runtime_types; - pub mod calls { - use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Propose { - pub proposal_hash: ::subxt::sp_core::H256, - #[codec(compact)] - pub value: u128, - } - impl ::subxt::Call for Propose { - const PALLET: &'static str = "Democracy"; - const FUNCTION: &'static str = "propose"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Second { - #[codec(compact)] - pub proposal: u32, - #[codec(compact)] - pub seconds_upper_bound: u32, - } - impl ::subxt::Call for Second { - const PALLET: &'static str = "Democracy"; - const FUNCTION: &'static str = "second"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Vote { - #[codec(compact)] - pub ref_index: u32, - pub vote: runtime_types::pallet_democracy::vote::AccountVote, - } - impl ::subxt::Call for Vote { - const PALLET: &'static str = "Democracy"; - const FUNCTION: &'static str = "vote"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct EmergencyCancel { - pub ref_index: u32, - } - impl ::subxt::Call for EmergencyCancel { - const PALLET: &'static str = "Democracy"; - const FUNCTION: &'static str = "emergency_cancel"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ExternalPropose { - pub proposal_hash: ::subxt::sp_core::H256, - } - impl ::subxt::Call for ExternalPropose { - const PALLET: &'static str = "Democracy"; - const FUNCTION: &'static str = "external_propose"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ExternalProposeMajority { - pub proposal_hash: ::subxt::sp_core::H256, - } - impl ::subxt::Call for ExternalProposeMajority { - const PALLET: &'static str = "Democracy"; - const FUNCTION: &'static str = "external_propose_majority"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ExternalProposeDefault { - pub proposal_hash: ::subxt::sp_core::H256, - } - impl ::subxt::Call for ExternalProposeDefault { - const PALLET: &'static str = "Democracy"; - const FUNCTION: &'static str = "external_propose_default"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct FastTrack { - pub proposal_hash: ::subxt::sp_core::H256, - pub voting_period: u32, - pub delay: u32, - } - impl ::subxt::Call for FastTrack { - const PALLET: &'static str = "Democracy"; - const FUNCTION: &'static str = "fast_track"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct VetoExternal { - pub proposal_hash: ::subxt::sp_core::H256, - } - impl ::subxt::Call for VetoExternal { - const PALLET: &'static str = "Democracy"; - const FUNCTION: &'static str = "veto_external"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct CancelReferendum { - #[codec(compact)] - pub ref_index: u32, - } - impl ::subxt::Call for CancelReferendum { - const PALLET: &'static str = "Democracy"; - const FUNCTION: &'static str = "cancel_referendum"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct CancelQueued { - pub which: u32, - } - impl ::subxt::Call for CancelQueued { - const PALLET: &'static str = "Democracy"; - const FUNCTION: &'static str = "cancel_queued"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Delegate { - pub to: ::subxt::sp_core::crypto::AccountId32, - pub conviction: runtime_types::pallet_democracy::conviction::Conviction, - pub balance: u128, - } - impl ::subxt::Call for Delegate { - const PALLET: &'static str = "Democracy"; - const FUNCTION: &'static str = "delegate"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Undelegate {} - impl ::subxt::Call for Undelegate { - const PALLET: &'static str = "Democracy"; - const FUNCTION: &'static str = "undelegate"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ClearPublicProposals {} - impl ::subxt::Call for ClearPublicProposals { - const PALLET: &'static str = "Democracy"; - const FUNCTION: &'static str = "clear_public_proposals"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct NotePreimage { - pub encoded_proposal: Vec, - } - impl ::subxt::Call for NotePreimage { - const PALLET: &'static str = "Democracy"; - const FUNCTION: &'static str = "note_preimage"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct NotePreimageOperational { - pub encoded_proposal: Vec, - } - impl ::subxt::Call for NotePreimageOperational { - const PALLET: &'static str = "Democracy"; - const FUNCTION: &'static str = "note_preimage_operational"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct NoteImminentPreimage { - pub encoded_proposal: Vec, - } - impl ::subxt::Call for NoteImminentPreimage { - const PALLET: &'static str = "Democracy"; - const FUNCTION: &'static str = "note_imminent_preimage"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct NoteImminentPreimageOperational { - pub encoded_proposal: Vec, - } - impl ::subxt::Call for NoteImminentPreimageOperational { - const PALLET: &'static str = "Democracy"; - const FUNCTION: &'static str = "note_imminent_preimage_operational"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ReapPreimage { - pub proposal_hash: ::subxt::sp_core::H256, - #[codec(compact)] - pub proposal_len_upper_bound: u32, - } - impl ::subxt::Call for ReapPreimage { - const PALLET: &'static str = "Democracy"; - const FUNCTION: &'static str = "reap_preimage"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Unlock { - pub target: ::subxt::sp_core::crypto::AccountId32, - } - impl ::subxt::Call for Unlock { - const PALLET: &'static str = "Democracy"; - const FUNCTION: &'static str = "unlock"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct RemoveVote { - pub index: u32, - } - impl ::subxt::Call for RemoveVote { - const PALLET: &'static str = "Democracy"; - const FUNCTION: &'static str = "remove_vote"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct RemoveOtherVote { - pub target: ::subxt::sp_core::crypto::AccountId32, - pub index: u32, - } - impl ::subxt::Call for RemoveOtherVote { - const PALLET: &'static str = "Democracy"; - const FUNCTION: &'static str = "remove_other_vote"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct EnactProposal { - pub proposal_hash: ::subxt::sp_core::H256, - pub index: u32, - } - impl ::subxt::Call for EnactProposal { - const PALLET: &'static str = "Democracy"; - const FUNCTION: &'static str = "enact_proposal"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Blacklist { - pub proposal_hash: ::subxt::sp_core::H256, - pub maybe_ref_index: Option, - } - impl ::subxt::Call for Blacklist { - const PALLET: &'static str = "Democracy"; - const FUNCTION: &'static str = "blacklist"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct CancelProposal { - #[codec(compact)] - pub prop_index: u32, - } - impl ::subxt::Call for CancelProposal { - const PALLET: &'static str = "Democracy"; - const FUNCTION: &'static str = "cancel_proposal"; - } - pub struct TransactionApi< - 'a, - T: ::subxt::Config + ::subxt::ExtrinsicExtraData, - > { - client: &'a ::subxt::Client, - } - impl<'a, T: ::subxt::Config> TransactionApi<'a, T> - where - T: ::subxt::Config + ::subxt::ExtrinsicExtraData, - { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { client } - } - pub fn propose( - &self, - proposal_hash: ::subxt::sp_core::H256, - value: u128, - ) -> ::subxt::SubmittableExtrinsic { - let call = Propose { - proposal_hash, - value, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn second( - &self, - proposal: u32, - seconds_upper_bound: u32, - ) -> ::subxt::SubmittableExtrinsic { - let call = Second { - proposal, - seconds_upper_bound, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn vote( - &self, - ref_index: u32, - vote: runtime_types::pallet_democracy::vote::AccountVote, - ) -> ::subxt::SubmittableExtrinsic { - let call = Vote { ref_index, vote }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn emergency_cancel( - &self, - ref_index: u32, - ) -> ::subxt::SubmittableExtrinsic { - let call = EmergencyCancel { ref_index }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn external_propose( - &self, - proposal_hash: ::subxt::sp_core::H256, - ) -> ::subxt::SubmittableExtrinsic { - let call = ExternalPropose { proposal_hash }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn external_propose_majority( - &self, - proposal_hash: ::subxt::sp_core::H256, - ) -> ::subxt::SubmittableExtrinsic - { - let call = ExternalProposeMajority { proposal_hash }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn external_propose_default( - &self, - proposal_hash: ::subxt::sp_core::H256, - ) -> ::subxt::SubmittableExtrinsic - { - let call = ExternalProposeDefault { proposal_hash }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn fast_track( - &self, - proposal_hash: ::subxt::sp_core::H256, - voting_period: u32, - delay: u32, - ) -> ::subxt::SubmittableExtrinsic { - let call = FastTrack { - proposal_hash, - voting_period, - delay, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn veto_external( - &self, - proposal_hash: ::subxt::sp_core::H256, - ) -> ::subxt::SubmittableExtrinsic { - let call = VetoExternal { proposal_hash }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + proposal_hash: ::subxt::sp_core::H256, + ) -> ::subxt::SubmittableExtrinsic { + let call = VetoExternal { proposal_hash }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } pub fn cancel_referendum( &self, @@ -4629,13 +4522,13 @@ pub mod api { pub type Event = runtime_types::pallet_democracy::pallet::Event; pub mod events { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Proposed(pub u32, pub u128); impl ::subxt::Event for Proposed { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Proposed"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Tabled( pub u32, pub u128, @@ -4645,13 +4538,13 @@ pub mod api { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Tabled"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct ExternalTabled {} impl ::subxt::Event for ExternalTabled { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "ExternalTabled"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Started( pub u32, pub runtime_types::pallet_democracy::vote_threshold::VoteThreshold, @@ -4660,25 +4553,25 @@ pub mod api { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Started"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Passed(pub u32); impl ::subxt::Event for Passed { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Passed"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct NotPassed(pub u32); impl ::subxt::Event for NotPassed { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "NotPassed"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Cancelled(pub u32); impl ::subxt::Event for Cancelled { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Cancelled"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Executed( pub u32, pub Result<(), runtime_types::sp_runtime::DispatchError>, @@ -4687,7 +4580,7 @@ pub mod api { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Executed"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Delegated( pub ::subxt::sp_core::crypto::AccountId32, pub ::subxt::sp_core::crypto::AccountId32, @@ -4696,13 +4589,13 @@ pub mod api { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Delegated"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Undelegated(pub ::subxt::sp_core::crypto::AccountId32); impl ::subxt::Event for Undelegated { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Undelegated"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Vetoed( pub ::subxt::sp_core::crypto::AccountId32, pub ::subxt::sp_core::H256, @@ -4712,7 +4605,7 @@ pub mod api { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Vetoed"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct PreimageNoted( pub ::subxt::sp_core::H256, pub ::subxt::sp_core::crypto::AccountId32, @@ -4722,7 +4615,7 @@ pub mod api { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "PreimageNoted"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct PreimageUsed( pub ::subxt::sp_core::H256, pub ::subxt::sp_core::crypto::AccountId32, @@ -4732,19 +4625,19 @@ pub mod api { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "PreimageUsed"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct PreimageInvalid(pub ::subxt::sp_core::H256, pub u32); impl ::subxt::Event for PreimageInvalid { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "PreimageInvalid"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct PreimageMissing(pub ::subxt::sp_core::H256, pub u32); impl ::subxt::Event for PreimageMissing { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "PreimageMissing"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct PreimageReaped( pub ::subxt::sp_core::H256, pub ::subxt::sp_core::crypto::AccountId32, @@ -4755,7 +4648,7 @@ pub mod api { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "PreimageReaped"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Blacklisted(pub ::subxt::sp_core::H256); impl ::subxt::Event for Blacklisted { const PALLET: &'static str = "Democracy"; @@ -4972,6 +4865,15 @@ pub mod api { let entry = DepositOf(_0); self.client.storage().fetch(&entry, hash).await } + pub async fn deposit_of_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, DepositOf>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } pub async fn preimages( &self, _0: ::subxt::sp_core::H256, @@ -4989,6 +4891,15 @@ pub mod api { let entry = Preimages(_0); self.client.storage().fetch(&entry, hash).await } + pub async fn preimages_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, Preimages>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } pub async fn referendum_count( &self, hash: ::core::option::Option, @@ -5020,6 +4931,15 @@ pub mod api { let entry = ReferendumInfoOf(_0); self.client.storage().fetch(&entry, hash).await } + pub async fn referendum_info_of_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, ReferendumInfoOf>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } pub async fn voting_of( &self, _0: ::subxt::sp_core::crypto::AccountId32, @@ -5035,6 +4955,15 @@ pub mod api { let entry = VotingOf(_0); self.client.storage().fetch_or_default(&entry, hash).await } + pub async fn voting_of_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, VotingOf>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } pub async fn locks( &self, _0: ::subxt::sp_core::crypto::AccountId32, @@ -5044,6 +4973,13 @@ pub mod api { let entry = Locks(_0); self.client.storage().fetch(&entry, hash).await } + pub async fn locks_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result<::subxt::KeyIter<'a, T, Locks>, ::subxt::Error> + { + self.client.storage().iter(hash).await + } pub async fn last_tabled_was_external( &self, hash: ::core::option::Option, @@ -5078,6 +5014,15 @@ pub mod api { let entry = Blacklist(_0); self.client.storage().fetch(&entry, hash).await } + pub async fn blacklist_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, Blacklist>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } pub async fn cancellations( &self, _0: ::subxt::sp_core::H256, @@ -5086,6 +5031,15 @@ pub mod api { let entry = Cancellations(_0); self.client.storage().fetch_or_default(&entry, hash).await } + pub async fn cancellations_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, Cancellations>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } pub async fn storage_version( &self, hash: ::core::option::Option, @@ -5103,7 +5057,7 @@ pub mod api { use super::runtime_types; pub mod calls { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct SetMembers { pub new_members: Vec<::subxt::sp_core::crypto::AccountId32>, pub prime: Option<::subxt::sp_core::crypto::AccountId32>, @@ -5113,9 +5067,9 @@ pub mod api { const PALLET: &'static str = "Council"; const FUNCTION: &'static str = "set_members"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Execute { - pub proposal: runtime_types::polkadot_runtime::Call, + pub proposal: runtime_types::node_runtime::Call, #[codec(compact)] pub length_bound: u32, } @@ -5123,11 +5077,11 @@ pub mod api { const PALLET: &'static str = "Council"; const FUNCTION: &'static str = "execute"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Propose { #[codec(compact)] pub threshold: u32, - pub proposal: runtime_types::polkadot_runtime::Call, + pub proposal: runtime_types::node_runtime::Call, #[codec(compact)] pub length_bound: u32, } @@ -5135,7 +5089,7 @@ pub mod api { const PALLET: &'static str = "Council"; const FUNCTION: &'static str = "propose"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Vote { pub proposal: ::subxt::sp_core::H256, #[codec(compact)] @@ -5146,7 +5100,7 @@ pub mod api { const PALLET: &'static str = "Council"; const FUNCTION: &'static str = "vote"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Close { pub proposal_hash: ::subxt::sp_core::H256, #[codec(compact)] @@ -5160,7 +5114,7 @@ pub mod api { const PALLET: &'static str = "Council"; const FUNCTION: &'static str = "close"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct DisapproveProposal { pub proposal_hash: ::subxt::sp_core::H256, } @@ -5196,7 +5150,7 @@ pub mod api { } pub fn execute( &self, - proposal: runtime_types::polkadot_runtime::Call, + proposal: runtime_types::node_runtime::Call, length_bound: u32, ) -> ::subxt::SubmittableExtrinsic { let call = Execute { @@ -5208,7 +5162,7 @@ pub mod api { pub fn propose( &self, threshold: u32, - proposal: runtime_types::polkadot_runtime::Call, + proposal: runtime_types::node_runtime::Call, length_bound: u32, ) -> ::subxt::SubmittableExtrinsic { let call = Propose { @@ -5259,7 +5213,7 @@ pub mod api { pub type Event = runtime_types::pallet_collective::pallet::Event; pub mod events { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Proposed( pub ::subxt::sp_core::crypto::AccountId32, pub u32, @@ -5270,7 +5224,7 @@ pub mod api { const PALLET: &'static str = "Council"; const EVENT: &'static str = "Proposed"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Voted( pub ::subxt::sp_core::crypto::AccountId32, pub ::subxt::sp_core::H256, @@ -5282,19 +5236,19 @@ pub mod api { const PALLET: &'static str = "Council"; const EVENT: &'static str = "Voted"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Approved(pub ::subxt::sp_core::H256); impl ::subxt::Event for Approved { const PALLET: &'static str = "Council"; const EVENT: &'static str = "Approved"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Disapproved(pub ::subxt::sp_core::H256); impl ::subxt::Event for Disapproved { const PALLET: &'static str = "Council"; const EVENT: &'static str = "Disapproved"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Executed( pub ::subxt::sp_core::H256, pub Result<(), runtime_types::sp_runtime::DispatchError>, @@ -5303,7 +5257,7 @@ pub mod api { const PALLET: &'static str = "Council"; const EVENT: &'static str = "Executed"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct MemberExecuted( pub ::subxt::sp_core::H256, pub Result<(), runtime_types::sp_runtime::DispatchError>, @@ -5312,7 +5266,7 @@ pub mod api { const PALLET: &'static str = "Council"; const EVENT: &'static str = "MemberExecuted"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Closed(pub ::subxt::sp_core::H256, pub u32, pub u32); impl ::subxt::Event for Closed { const PALLET: &'static str = "Council"; @@ -5337,7 +5291,7 @@ pub mod api { impl ::subxt::StorageEntry for ProposalOf { const PALLET: &'static str = "Council"; const STORAGE: &'static str = "ProposalOf"; - type Value = runtime_types::polkadot_runtime::Call; + type Value = runtime_types::node_runtime::Call; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( &self.0, @@ -5411,12 +5365,21 @@ pub mod api { _0: ::subxt::sp_core::H256, hash: ::core::option::Option, ) -> ::core::result::Result< - ::core::option::Option, + ::core::option::Option, ::subxt::Error, > { let entry = ProposalOf(_0); self.client.storage().fetch(&entry, hash).await } + pub async fn proposal_of_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, ProposalOf>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } pub async fn voting( &self, _0: ::subxt::sp_core::H256, @@ -5433,6 +5396,13 @@ pub mod api { let entry = Voting(_0); self.client.storage().fetch(&entry, hash).await } + pub async fn voting_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result<::subxt::KeyIter<'a, T, Voting>, ::subxt::Error> + { + self.client.storage().iter(hash).await + } pub async fn proposal_count( &self, hash: ::core::option::Option, @@ -5467,7 +5437,7 @@ pub mod api { use super::runtime_types; pub mod calls { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct SetMembers { pub new_members: Vec<::subxt::sp_core::crypto::AccountId32>, pub prime: Option<::subxt::sp_core::crypto::AccountId32>, @@ -5477,9 +5447,9 @@ pub mod api { const PALLET: &'static str = "TechnicalCommittee"; const FUNCTION: &'static str = "set_members"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Execute { - pub proposal: runtime_types::polkadot_runtime::Call, + pub proposal: runtime_types::node_runtime::Call, #[codec(compact)] pub length_bound: u32, } @@ -5487,11 +5457,11 @@ pub mod api { const PALLET: &'static str = "TechnicalCommittee"; const FUNCTION: &'static str = "execute"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Propose { #[codec(compact)] pub threshold: u32, - pub proposal: runtime_types::polkadot_runtime::Call, + pub proposal: runtime_types::node_runtime::Call, #[codec(compact)] pub length_bound: u32, } @@ -5499,7 +5469,7 @@ pub mod api { const PALLET: &'static str = "TechnicalCommittee"; const FUNCTION: &'static str = "propose"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Vote { pub proposal: ::subxt::sp_core::H256, #[codec(compact)] @@ -5510,7 +5480,7 @@ pub mod api { const PALLET: &'static str = "TechnicalCommittee"; const FUNCTION: &'static str = "vote"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Close { pub proposal_hash: ::subxt::sp_core::H256, #[codec(compact)] @@ -5524,7 +5494,7 @@ pub mod api { const PALLET: &'static str = "TechnicalCommittee"; const FUNCTION: &'static str = "close"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct DisapproveProposal { pub proposal_hash: ::subxt::sp_core::H256, } @@ -5560,7 +5530,7 @@ pub mod api { } pub fn execute( &self, - proposal: runtime_types::polkadot_runtime::Call, + proposal: runtime_types::node_runtime::Call, length_bound: u32, ) -> ::subxt::SubmittableExtrinsic { let call = Execute { @@ -5572,7 +5542,7 @@ pub mod api { pub fn propose( &self, threshold: u32, - proposal: runtime_types::polkadot_runtime::Call, + proposal: runtime_types::node_runtime::Call, length_bound: u32, ) -> ::subxt::SubmittableExtrinsic { let call = Propose { @@ -5623,7 +5593,7 @@ pub mod api { pub type Event = runtime_types::pallet_collective::pallet::Event; pub mod events { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Proposed( pub ::subxt::sp_core::crypto::AccountId32, pub u32, @@ -5634,7 +5604,7 @@ pub mod api { const PALLET: &'static str = "TechnicalCommittee"; const EVENT: &'static str = "Proposed"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Voted( pub ::subxt::sp_core::crypto::AccountId32, pub ::subxt::sp_core::H256, @@ -5646,19 +5616,19 @@ pub mod api { const PALLET: &'static str = "TechnicalCommittee"; const EVENT: &'static str = "Voted"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Approved(pub ::subxt::sp_core::H256); impl ::subxt::Event for Approved { const PALLET: &'static str = "TechnicalCommittee"; const EVENT: &'static str = "Approved"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Disapproved(pub ::subxt::sp_core::H256); impl ::subxt::Event for Disapproved { const PALLET: &'static str = "TechnicalCommittee"; const EVENT: &'static str = "Disapproved"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Executed( pub ::subxt::sp_core::H256, pub Result<(), runtime_types::sp_runtime::DispatchError>, @@ -5667,7 +5637,7 @@ pub mod api { const PALLET: &'static str = "TechnicalCommittee"; const EVENT: &'static str = "Executed"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct MemberExecuted( pub ::subxt::sp_core::H256, pub Result<(), runtime_types::sp_runtime::DispatchError>, @@ -5676,7 +5646,7 @@ pub mod api { const PALLET: &'static str = "TechnicalCommittee"; const EVENT: &'static str = "MemberExecuted"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Closed(pub ::subxt::sp_core::H256, pub u32, pub u32); impl ::subxt::Event for Closed { const PALLET: &'static str = "TechnicalCommittee"; @@ -5701,7 +5671,7 @@ pub mod api { impl ::subxt::StorageEntry for ProposalOf { const PALLET: &'static str = "TechnicalCommittee"; const STORAGE: &'static str = "ProposalOf"; - type Value = runtime_types::polkadot_runtime::Call; + type Value = runtime_types::node_runtime::Call; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( &self.0, @@ -5775,12 +5745,21 @@ pub mod api { _0: ::subxt::sp_core::H256, hash: ::core::option::Option, ) -> ::core::result::Result< - ::core::option::Option, + ::core::option::Option, ::subxt::Error, > { let entry = ProposalOf(_0); self.client.storage().fetch(&entry, hash).await } + pub async fn proposal_of_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, ProposalOf>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } pub async fn voting( &self, _0: ::subxt::sp_core::H256, @@ -5797,6 +5776,13 @@ pub mod api { let entry = Voting(_0); self.client.storage().fetch(&entry, hash).await } + pub async fn voting_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result<::subxt::KeyIter<'a, T, Voting>, ::subxt::Error> + { + self.client.storage().iter(hash).await + } pub async fn proposal_count( &self, hash: ::core::option::Option, @@ -5827,62 +5813,62 @@ pub mod api { } } } - pub mod phragmen_election { + pub mod elections { use super::runtime_types; pub mod calls { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Vote { pub votes: Vec<::subxt::sp_core::crypto::AccountId32>, #[codec(compact)] pub value: u128, } impl ::subxt::Call for Vote { - const PALLET: &'static str = "PhragmenElection"; + const PALLET: &'static str = "Elections"; const FUNCTION: &'static str = "vote"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct RemoveVoter {} impl ::subxt::Call for RemoveVoter { - const PALLET: &'static str = "PhragmenElection"; + const PALLET: &'static str = "Elections"; const FUNCTION: &'static str = "remove_voter"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct SubmitCandidacy { #[codec(compact)] pub candidate_count: u32, } impl ::subxt::Call for SubmitCandidacy { - const PALLET: &'static str = "PhragmenElection"; + const PALLET: &'static str = "Elections"; const FUNCTION: &'static str = "submit_candidacy"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct RenounceCandidacy { pub renouncing: runtime_types::pallet_elections_phragmen::Renouncing, } impl ::subxt::Call for RenounceCandidacy { - const PALLET: &'static str = "PhragmenElection"; + const PALLET: &'static str = "Elections"; const FUNCTION: &'static str = "renounce_candidacy"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct RemoveMember { pub who: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, - (), + u32, >, pub has_replacement: bool, } impl ::subxt::Call for RemoveMember { - const PALLET: &'static str = "PhragmenElection"; + const PALLET: &'static str = "Elections"; const FUNCTION: &'static str = "remove_member"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct CleanDefunctVoters { pub num_voters: u32, pub num_defunct: u32, } impl ::subxt::Call for CleanDefunctVoters { - const PALLET: &'static str = "PhragmenElection"; + const PALLET: &'static str = "Elections"; const FUNCTION: &'static str = "clean_defunct_voters"; } pub struct TransactionApi< @@ -5930,7 +5916,7 @@ pub mod api { &self, who: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, - (), + u32, >, has_replacement: bool, ) -> ::subxt::SubmittableExtrinsic { @@ -5957,52 +5943,52 @@ pub mod api { pub type Event = runtime_types::pallet_elections_phragmen::pallet::Event; pub mod events { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct NewTerm(pub Vec<(::subxt::sp_core::crypto::AccountId32, u128)>); impl ::subxt::Event for NewTerm { - const PALLET: &'static str = "PhragmenElection"; + const PALLET: &'static str = "Elections"; const EVENT: &'static str = "NewTerm"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct EmptyTerm {} impl ::subxt::Event for EmptyTerm { - const PALLET: &'static str = "PhragmenElection"; + const PALLET: &'static str = "Elections"; const EVENT: &'static str = "EmptyTerm"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct ElectionError {} impl ::subxt::Event for ElectionError { - const PALLET: &'static str = "PhragmenElection"; + const PALLET: &'static str = "Elections"; const EVENT: &'static str = "ElectionError"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct MemberKicked(pub ::subxt::sp_core::crypto::AccountId32); impl ::subxt::Event for MemberKicked { - const PALLET: &'static str = "PhragmenElection"; + const PALLET: &'static str = "Elections"; const EVENT: &'static str = "MemberKicked"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Renounced(pub ::subxt::sp_core::crypto::AccountId32); impl ::subxt::Event for Renounced { - const PALLET: &'static str = "PhragmenElection"; + const PALLET: &'static str = "Elections"; const EVENT: &'static str = "Renounced"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct CandidateSlashed( pub ::subxt::sp_core::crypto::AccountId32, pub u128, ); impl ::subxt::Event for CandidateSlashed { - const PALLET: &'static str = "PhragmenElection"; + const PALLET: &'static str = "Elections"; const EVENT: &'static str = "CandidateSlashed"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct SeatHolderSlashed( pub ::subxt::sp_core::crypto::AccountId32, pub u128, ); impl ::subxt::Event for SeatHolderSlashed { - const PALLET: &'static str = "PhragmenElection"; + const PALLET: &'static str = "Elections"; const EVENT: &'static str = "SeatHolderSlashed"; } } @@ -6010,7 +5996,7 @@ pub mod api { use super::runtime_types; pub struct Members; impl ::subxt::StorageEntry for Members { - const PALLET: &'static str = "PhragmenElection"; + const PALLET: &'static str = "Elections"; const STORAGE: &'static str = "Members"; type Value = Vec< runtime_types::pallet_elections_phragmen::SeatHolder< @@ -6024,7 +6010,7 @@ pub mod api { } pub struct RunnersUp; impl ::subxt::StorageEntry for RunnersUp { - const PALLET: &'static str = "PhragmenElection"; + const PALLET: &'static str = "Elections"; const STORAGE: &'static str = "RunnersUp"; type Value = Vec< runtime_types::pallet_elections_phragmen::SeatHolder< @@ -6038,7 +6024,7 @@ pub mod api { } pub struct Candidates; impl ::subxt::StorageEntry for Candidates { - const PALLET: &'static str = "PhragmenElection"; + const PALLET: &'static str = "Elections"; const STORAGE: &'static str = "Candidates"; type Value = Vec<(::subxt::sp_core::crypto::AccountId32, u128)>; fn key(&self) -> ::subxt::StorageEntryKey { @@ -6047,7 +6033,7 @@ pub mod api { } pub struct ElectionRounds; impl ::subxt::StorageEntry for ElectionRounds { - const PALLET: &'static str = "PhragmenElection"; + const PALLET: &'static str = "Elections"; const STORAGE: &'static str = "ElectionRounds"; type Value = u32; fn key(&self) -> ::subxt::StorageEntryKey { @@ -6056,7 +6042,7 @@ pub mod api { } pub struct Voting(pub ::subxt::sp_core::crypto::AccountId32); impl ::subxt::StorageEntry for Voting { - const PALLET: &'static str = "PhragmenElection"; + const PALLET: &'static str = "Elections"; const STORAGE: &'static str = "Voting"; type Value = runtime_types::pallet_elections_phragmen::Voter< ::subxt::sp_core::crypto::AccountId32, @@ -6137,6 +6123,13 @@ pub mod api { let entry = Voting(_0); self.client.storage().fetch_or_default(&entry, hash).await } + pub async fn voting_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result<::subxt::KeyIter<'a, T, Voting>, ::subxt::Error> + { + self.client.storage().iter(hash).await + } } } } @@ -6144,7 +6137,7 @@ pub mod api { use super::runtime_types; pub mod calls { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct AddMember { pub who: ::subxt::sp_core::crypto::AccountId32, } @@ -6152,7 +6145,7 @@ pub mod api { const PALLET: &'static str = "TechnicalMembership"; const FUNCTION: &'static str = "add_member"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct RemoveMember { pub who: ::subxt::sp_core::crypto::AccountId32, } @@ -6160,7 +6153,7 @@ pub mod api { const PALLET: &'static str = "TechnicalMembership"; const FUNCTION: &'static str = "remove_member"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct SwapMember { pub remove: ::subxt::sp_core::crypto::AccountId32, pub add: ::subxt::sp_core::crypto::AccountId32, @@ -6169,7 +6162,7 @@ pub mod api { const PALLET: &'static str = "TechnicalMembership"; const FUNCTION: &'static str = "swap_member"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct ResetMembers { pub members: Vec<::subxt::sp_core::crypto::AccountId32>, } @@ -6177,7 +6170,7 @@ pub mod api { const PALLET: &'static str = "TechnicalMembership"; const FUNCTION: &'static str = "reset_members"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct ChangeKey { pub new: ::subxt::sp_core::crypto::AccountId32, } @@ -6185,7 +6178,7 @@ pub mod api { const PALLET: &'static str = "TechnicalMembership"; const FUNCTION: &'static str = "change_key"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct SetPrime { pub who: ::subxt::sp_core::crypto::AccountId32, } @@ -6193,7 +6186,7 @@ pub mod api { const PALLET: &'static str = "TechnicalMembership"; const FUNCTION: &'static str = "set_prime"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct ClearPrime {} impl ::subxt::Call for ClearPrime { const PALLET: &'static str = "TechnicalMembership"; @@ -6266,37 +6259,37 @@ pub mod api { pub type Event = runtime_types::pallet_membership::pallet::Event; pub mod events { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct MemberAdded {} impl ::subxt::Event for MemberAdded { const PALLET: &'static str = "TechnicalMembership"; const EVENT: &'static str = "MemberAdded"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct MemberRemoved {} impl ::subxt::Event for MemberRemoved { const PALLET: &'static str = "TechnicalMembership"; const EVENT: &'static str = "MemberRemoved"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct MembersSwapped {} impl ::subxt::Event for MembersSwapped { const PALLET: &'static str = "TechnicalMembership"; const EVENT: &'static str = "MembersSwapped"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct MembersReset {} impl ::subxt::Event for MembersReset { const PALLET: &'static str = "TechnicalMembership"; const EVENT: &'static str = "MembersReset"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct KeyChanged {} impl ::subxt::Event for KeyChanged { const PALLET: &'static str = "TechnicalMembership"; const EVENT: &'static str = "KeyChanged"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Dummy {} impl ::subxt::Event for Dummy { const PALLET: &'static str = "TechnicalMembership"; @@ -6353,40 +6346,44 @@ pub mod api { } } } - pub mod treasury { + pub mod grandpa { use super::runtime_types; pub mod calls { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ProposeSpend { - #[codec(compact)] - pub value: u128, - pub beneficiary: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ReportEquivocation { + pub equivocation_proof: + runtime_types::sp_finality_grandpa::EquivocationProof< + ::subxt::sp_core::H256, + u32, + >, + pub key_owner_proof: runtime_types::sp_session::MembershipProof, } - impl ::subxt::Call for ProposeSpend { - const PALLET: &'static str = "Treasury"; - const FUNCTION: &'static str = "propose_spend"; + impl ::subxt::Call for ReportEquivocation { + const PALLET: &'static str = "Grandpa"; + const FUNCTION: &'static str = "report_equivocation"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct RejectProposal { - #[codec(compact)] - pub proposal_id: u32, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ReportEquivocationUnsigned { + pub equivocation_proof: + runtime_types::sp_finality_grandpa::EquivocationProof< + ::subxt::sp_core::H256, + u32, + >, + pub key_owner_proof: runtime_types::sp_session::MembershipProof, } - impl ::subxt::Call for RejectProposal { - const PALLET: &'static str = "Treasury"; - const FUNCTION: &'static str = "reject_proposal"; + impl ::subxt::Call for ReportEquivocationUnsigned { + const PALLET: &'static str = "Grandpa"; + const FUNCTION: &'static str = "report_equivocation_unsigned"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ApproveProposal { - #[codec(compact)] - pub proposal_id: u32, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct NoteStalled { + pub delay: u32, + pub best_finalized_block_number: u32, } - impl ::subxt::Call for ApproveProposal { - const PALLET: &'static str = "Treasury"; - const FUNCTION: &'static str = "approve_proposal"; + impl ::subxt::Call for NoteStalled { + const PALLET: &'static str = "Grandpa"; + const FUNCTION: &'static str = "note_stalled"; } pub struct TransactionApi< 'a, @@ -6401,119 +6398,126 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub fn propose_spend( + pub fn report_equivocation( &self, - value: u128, - beneficiary: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - ) -> ::subxt::SubmittableExtrinsic { - let call = ProposeSpend { value, beneficiary }; + equivocation_proof : runtime_types :: sp_finality_grandpa :: EquivocationProof < :: subxt :: sp_core :: H256 , u32 >, + key_owner_proof: runtime_types::sp_session::MembershipProof, + ) -> ::subxt::SubmittableExtrinsic + { + let call = ReportEquivocation { + equivocation_proof, + key_owner_proof, + }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn reject_proposal( + pub fn report_equivocation_unsigned( &self, - proposal_id: u32, - ) -> ::subxt::SubmittableExtrinsic { - let call = RejectProposal { proposal_id }; + equivocation_proof : runtime_types :: sp_finality_grandpa :: EquivocationProof < :: subxt :: sp_core :: H256 , u32 >, + key_owner_proof: runtime_types::sp_session::MembershipProof, + ) -> ::subxt::SubmittableExtrinsic + { + let call = ReportEquivocationUnsigned { + equivocation_proof, + key_owner_proof, + }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn approve_proposal( + pub fn note_stalled( &self, - proposal_id: u32, - ) -> ::subxt::SubmittableExtrinsic { - let call = ApproveProposal { proposal_id }; + delay: u32, + best_finalized_block_number: u32, + ) -> ::subxt::SubmittableExtrinsic { + let call = NoteStalled { + delay, + best_finalized_block_number, + }; ::subxt::SubmittableExtrinsic::new(self.client, call) } } } - pub type Event = runtime_types::pallet_treasury::pallet::Event; + pub type Event = runtime_types::pallet_grandpa::pallet::Event; pub mod events { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Proposed(pub u32); - impl ::subxt::Event for Proposed { - const PALLET: &'static str = "Treasury"; - const EVENT: &'static str = "Proposed"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Spending(pub u128); - impl ::subxt::Event for Spending { - const PALLET: &'static str = "Treasury"; - const EVENT: &'static str = "Spending"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Awarded( - pub u32, - pub u128, - pub ::subxt::sp_core::crypto::AccountId32, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct NewAuthorities( + pub Vec<(runtime_types::sp_finality_grandpa::app::Public, u64)>, ); - impl ::subxt::Event for Awarded { - const PALLET: &'static str = "Treasury"; - const EVENT: &'static str = "Awarded"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Rejected(pub u32, pub u128); - impl ::subxt::Event for Rejected { - const PALLET: &'static str = "Treasury"; - const EVENT: &'static str = "Rejected"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Burnt(pub u128); - impl ::subxt::Event for Burnt { - const PALLET: &'static str = "Treasury"; - const EVENT: &'static str = "Burnt"; + impl ::subxt::Event for NewAuthorities { + const PALLET: &'static str = "Grandpa"; + const EVENT: &'static str = "NewAuthorities"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Rollover(pub u128); - impl ::subxt::Event for Rollover { - const PALLET: &'static str = "Treasury"; - const EVENT: &'static str = "Rollover"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Paused {} + impl ::subxt::Event for Paused { + const PALLET: &'static str = "Grandpa"; + const EVENT: &'static str = "Paused"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Deposit(pub u128); - impl ::subxt::Event for Deposit { - const PALLET: &'static str = "Treasury"; - const EVENT: &'static str = "Deposit"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Resumed {} + impl ::subxt::Event for Resumed { + const PALLET: &'static str = "Grandpa"; + const EVENT: &'static str = "Resumed"; } } pub mod storage { use super::runtime_types; - pub struct ProposalCount; - impl ::subxt::StorageEntry for ProposalCount { - const PALLET: &'static str = "Treasury"; - const STORAGE: &'static str = "ProposalCount"; + pub struct State; + impl ::subxt::StorageEntry for State { + const PALLET: &'static str = "Grandpa"; + const STORAGE: &'static str = "State"; + type Value = runtime_types::pallet_grandpa::StoredState; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct PendingChange; + impl ::subxt::StorageEntry for PendingChange { + const PALLET: &'static str = "Grandpa"; + const STORAGE: &'static str = "PendingChange"; + type Value = runtime_types::pallet_grandpa::StoredPendingChange; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct NextForced; + impl ::subxt::StorageEntry for NextForced { + const PALLET: &'static str = "Grandpa"; + const STORAGE: &'static str = "NextForced"; type Value = u32; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Plain } } - pub struct Proposals(pub u32); - impl ::subxt::StorageEntry for Proposals { - const PALLET: &'static str = "Treasury"; - const STORAGE: &'static str = "Proposals"; - type Value = runtime_types::pallet_treasury::Proposal< - ::subxt::sp_core::crypto::AccountId32, - u128, - >; + pub struct Stalled; + impl ::subxt::StorageEntry for Stalled { + const PALLET: &'static str = "Grandpa"; + const STORAGE: &'static str = "Stalled"; + type Value = (u32, u32); fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) + ::subxt::StorageEntryKey::Plain } } - pub struct Approvals; - impl ::subxt::StorageEntry for Approvals { - const PALLET: &'static str = "Treasury"; - const STORAGE: &'static str = "Approvals"; - type Value = - runtime_types::frame_support::storage::bounded_vec::BoundedVec; + pub struct CurrentSetId; + impl ::subxt::StorageEntry for CurrentSetId { + const PALLET: &'static str = "Grandpa"; + const STORAGE: &'static str = "CurrentSetId"; + type Value = u64; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Plain } } + pub struct SetIdSession(pub u64); + impl ::subxt::StorageEntry for SetIdSession { + const PALLET: &'static str = "Grandpa"; + const STORAGE: &'static str = "SetIdSession"; + type Value = u32; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) + } + } pub struct StorageApi<'a, T: ::subxt::Config> { client: &'a ::subxt::Client, } @@ -6521,96 +6525,108 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub async fn proposal_count( + pub async fn state( &self, hash: ::core::option::Option, - ) -> ::core::result::Result { - let entry = ProposalCount; + ) -> ::core::result::Result< + runtime_types::pallet_grandpa::StoredState, + ::subxt::Error, + > { + let entry = State; self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn proposals( + pub async fn pending_change( &self, - _0: u32, hash: ::core::option::Option, ) -> ::core::result::Result< ::core::option::Option< - runtime_types::pallet_treasury::Proposal< - ::subxt::sp_core::crypto::AccountId32, - u128, - >, + runtime_types::pallet_grandpa::StoredPendingChange, >, ::subxt::Error, > { - let entry = Proposals(_0); + let entry = PendingChange; self.client.storage().fetch(&entry, hash).await } - pub async fn approvals( + pub async fn next_forced( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result<::core::option::Option, ::subxt::Error> + { + let entry = NextForced; + self.client.storage().fetch(&entry, hash).await + } + pub async fn stalled( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - runtime_types::frame_support::storage::bounded_vec::BoundedVec, + ::core::option::Option<(u32, u32)>, ::subxt::Error, > { - let entry = Approvals; + let entry = Stalled; + self.client.storage().fetch(&entry, hash).await + } + pub async fn current_set_id( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result { + let entry = CurrentSetId; self.client.storage().fetch_or_default(&entry, hash).await } + pub async fn set_id_session( + &self, + _0: u64, + hash: ::core::option::Option, + ) -> ::core::result::Result<::core::option::Option, ::subxt::Error> + { + let entry = SetIdSession(_0); + self.client.storage().fetch(&entry, hash).await + } + pub async fn set_id_session_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, SetIdSession>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } } } } - pub mod claims { + pub mod treasury { use super::runtime_types; pub mod calls { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Claim { - pub dest: ::subxt::sp_core::crypto::AccountId32, - pub ethereum_signature: - runtime_types::polkadot_runtime_common::claims::EcdsaSignature, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ProposeSpend { + #[codec(compact)] + pub value: u128, + pub beneficiary: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, } - impl ::subxt::Call for Claim { - const PALLET: &'static str = "Claims"; - const FUNCTION: &'static str = "claim"; + impl ::subxt::Call for ProposeSpend { + const PALLET: &'static str = "Treasury"; + const FUNCTION: &'static str = "propose_spend"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct MintClaim { - pub who: runtime_types::polkadot_runtime_common::claims::EthereumAddress, - pub value: u128, - pub vesting_schedule: Option<(u128, u128, u32)>, - pub statement: - Option, - } - impl ::subxt::Call for MintClaim { - const PALLET: &'static str = "Claims"; - const FUNCTION: &'static str = "mint_claim"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ClaimAttest { - pub dest: ::subxt::sp_core::crypto::AccountId32, - pub ethereum_signature: - runtime_types::polkadot_runtime_common::claims::EcdsaSignature, - pub statement: Vec, - } - impl ::subxt::Call for ClaimAttest { - const PALLET: &'static str = "Claims"; - const FUNCTION: &'static str = "claim_attest"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Attest { - pub statement: Vec, - } - impl ::subxt::Call for Attest { - const PALLET: &'static str = "Claims"; - const FUNCTION: &'static str = "attest"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct MoveClaim { - pub old: runtime_types::polkadot_runtime_common::claims::EthereumAddress, - pub new: runtime_types::polkadot_runtime_common::claims::EthereumAddress, - pub maybe_preclaim: Option<::subxt::sp_core::crypto::AccountId32>, - } - impl ::subxt::Call for MoveClaim { - const PALLET: &'static str = "Claims"; - const FUNCTION: &'static str = "move_claim"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct RejectProposal { + #[codec(compact)] + pub proposal_id: u32, + } + impl ::subxt::Call for RejectProposal { + const PALLET: &'static str = "Treasury"; + const FUNCTION: &'static str = "reject_proposal"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ApproveProposal { + #[codec(compact)] + pub proposal_id: u32, + } + impl ::subxt::Call for ApproveProposal { + const PALLET: &'static str = "Treasury"; + const FUNCTION: &'static str = "approve_proposal"; } pub struct TransactionApi< 'a, @@ -6625,148 +6641,117 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub fn claim( - &self, - dest: ::subxt::sp_core::crypto::AccountId32, - ethereum_signature : runtime_types :: polkadot_runtime_common :: claims :: EcdsaSignature, - ) -> ::subxt::SubmittableExtrinsic { - let call = Claim { - dest, - ethereum_signature, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn mint_claim( + pub fn propose_spend( &self, - who: runtime_types::polkadot_runtime_common::claims::EthereumAddress, value: u128, - vesting_schedule: Option<(u128, u128, u32)>, - statement: Option< - runtime_types::polkadot_runtime_common::claims::StatementKind, + beneficiary: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, >, - ) -> ::subxt::SubmittableExtrinsic { - let call = MintClaim { - who, - value, - vesting_schedule, - statement, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn claim_attest( - &self, - dest: ::subxt::sp_core::crypto::AccountId32, - ethereum_signature : runtime_types :: polkadot_runtime_common :: claims :: EcdsaSignature, - statement: Vec, - ) -> ::subxt::SubmittableExtrinsic { - let call = ClaimAttest { - dest, - ethereum_signature, - statement, - }; + ) -> ::subxt::SubmittableExtrinsic { + let call = ProposeSpend { value, beneficiary }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn attest( + pub fn reject_proposal( &self, - statement: Vec, - ) -> ::subxt::SubmittableExtrinsic { - let call = Attest { statement }; + proposal_id: u32, + ) -> ::subxt::SubmittableExtrinsic { + let call = RejectProposal { proposal_id }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn move_claim( + pub fn approve_proposal( &self, - old: runtime_types::polkadot_runtime_common::claims::EthereumAddress, - new: runtime_types::polkadot_runtime_common::claims::EthereumAddress, - maybe_preclaim: Option<::subxt::sp_core::crypto::AccountId32>, - ) -> ::subxt::SubmittableExtrinsic { - let call = MoveClaim { - old, - new, - maybe_preclaim, - }; + proposal_id: u32, + ) -> ::subxt::SubmittableExtrinsic { + let call = ApproveProposal { proposal_id }; ::subxt::SubmittableExtrinsic::new(self.client, call) } } } - pub type Event = runtime_types::polkadot_runtime_common::claims::pallet::Event; + pub type Event = runtime_types::pallet_treasury::pallet::Event; pub mod events { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Claimed( - pub ::subxt::sp_core::crypto::AccountId32, - pub runtime_types::polkadot_runtime_common::claims::EthereumAddress, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Proposed(pub u32); + impl ::subxt::Event for Proposed { + const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "Proposed"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Spending(pub u128); + impl ::subxt::Event for Spending { + const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "Spending"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Awarded( + pub u32, pub u128, + pub ::subxt::sp_core::crypto::AccountId32, ); - impl ::subxt::Event for Claimed { - const PALLET: &'static str = "Claims"; - const EVENT: &'static str = "Claimed"; + impl ::subxt::Event for Awarded { + const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "Awarded"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Rejected(pub u32, pub u128); + impl ::subxt::Event for Rejected { + const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "Rejected"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Burnt(pub u128); + impl ::subxt::Event for Burnt { + const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "Burnt"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Rollover(pub u128); + impl ::subxt::Event for Rollover { + const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "Rollover"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Deposit(pub u128); + impl ::subxt::Event for Deposit { + const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "Deposit"; } } pub mod storage { use super::runtime_types; - pub struct Claims( - pub runtime_types::polkadot_runtime_common::claims::EthereumAddress, - ); - impl ::subxt::StorageEntry for Claims { - const PALLET: &'static str = "Claims"; - const STORAGE: &'static str = "Claims"; - type Value = u128; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Identity, - )]) - } - } - pub struct Total; - impl ::subxt::StorageEntry for Total { - const PALLET: &'static str = "Claims"; - const STORAGE: &'static str = "Total"; - type Value = u128; + pub struct ProposalCount; + impl ::subxt::StorageEntry for ProposalCount { + const PALLET: &'static str = "Treasury"; + const STORAGE: &'static str = "ProposalCount"; + type Value = u32; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Plain } } - pub struct Vesting( - pub runtime_types::polkadot_runtime_common::claims::EthereumAddress, - ); - impl ::subxt::StorageEntry for Vesting { - const PALLET: &'static str = "Claims"; - const STORAGE: &'static str = "Vesting"; - type Value = (u128, u128, u32); - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Identity, - )]) - } - } - pub struct Signing( - pub runtime_types::polkadot_runtime_common::claims::EthereumAddress, - ); - impl ::subxt::StorageEntry for Signing { - const PALLET: &'static str = "Claims"; - const STORAGE: &'static str = "Signing"; - type Value = - runtime_types::polkadot_runtime_common::claims::StatementKind; + pub struct Proposals(pub u32); + impl ::subxt::StorageEntry for Proposals { + const PALLET: &'static str = "Treasury"; + const STORAGE: &'static str = "Proposals"; + type Value = runtime_types::pallet_treasury::Proposal< + ::subxt::sp_core::crypto::AccountId32, + u128, + >; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( &self.0, - ::subxt::StorageHasher::Identity, + ::subxt::StorageHasher::Twox64Concat, )]) } } - pub struct Preclaims(pub ::subxt::sp_core::crypto::AccountId32); - impl ::subxt::StorageEntry for Preclaims { - const PALLET: &'static str = "Claims"; - const STORAGE: &'static str = "Preclaims"; + pub struct Approvals; + impl ::subxt::StorageEntry for Approvals { + const PALLET: &'static str = "Treasury"; + const STORAGE: &'static str = "Approvals"; type Value = - runtime_types::polkadot_runtime_common::claims::EthereumAddress; + runtime_types::frame_support::storage::bounded_vec::BoundedVec; fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Identity, - )]) + ::subxt::StorageEntryKey::Plain } } pub struct StorageApi<'a, T: ::subxt::Config> { @@ -6776,121 +6761,98 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub async fn claims( - &self, - _0: runtime_types::polkadot_runtime_common::claims::EthereumAddress, - hash: ::core::option::Option, - ) -> ::core::result::Result<::core::option::Option, ::subxt::Error> - { - let entry = Claims(_0); - self.client.storage().fetch(&entry, hash).await - } - pub async fn total( + pub async fn proposal_count( &self, hash: ::core::option::Option, - ) -> ::core::result::Result { - let entry = Total; + ) -> ::core::result::Result { + let entry = ProposalCount; self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn vesting( + pub async fn proposals( &self, - _0: runtime_types::polkadot_runtime_common::claims::EthereumAddress, + _0: u32, hash: ::core::option::Option, ) -> ::core::result::Result< - ::core::option::Option<(u128, u128, u32)>, + ::core::option::Option< + runtime_types::pallet_treasury::Proposal< + ::subxt::sp_core::crypto::AccountId32, + u128, + >, + >, ::subxt::Error, > { - let entry = Vesting(_0); + let entry = Proposals(_0); self.client.storage().fetch(&entry, hash).await } - pub async fn signing( + pub async fn proposals_iter( &self, - _0: runtime_types::polkadot_runtime_common::claims::EthereumAddress, hash: ::core::option::Option, ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::polkadot_runtime_common::claims::StatementKind, - >, + ::subxt::KeyIter<'a, T, Proposals>, ::subxt::Error, > { - let entry = Signing(_0); - self.client.storage().fetch(&entry, hash).await + self.client.storage().iter(hash).await } - pub async fn preclaims( + pub async fn approvals( &self, - _0: ::subxt::sp_core::crypto::AccountId32, hash: ::core::option::Option, ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::polkadot_runtime_common::claims::EthereumAddress, - >, + runtime_types::frame_support::storage::bounded_vec::BoundedVec, ::subxt::Error, > { - let entry = Preclaims(_0); - self.client.storage().fetch(&entry, hash).await + let entry = Approvals; + self.client.storage().fetch_or_default(&entry, hash).await } } } } - pub mod vesting { + pub mod contracts { use super::runtime_types; pub mod calls { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Vest {} - impl ::subxt::Call for Vest { - const PALLET: &'static str = "Vesting"; - const FUNCTION: &'static str = "vest"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct VestOther { - pub target: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - } - impl ::subxt::Call for VestOther { - const PALLET: &'static str = "Vesting"; - const FUNCTION: &'static str = "vest_other"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct VestedTransfer { - pub target: ::subxt::sp_runtime::MultiAddress< + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Call { + pub dest: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, - (), + u32, >, - pub schedule: - runtime_types::pallet_vesting::vesting_info::VestingInfo, + #[codec(compact)] + pub value: u128, + #[codec(compact)] + pub gas_limit: u64, + pub data: Vec, } - impl ::subxt::Call for VestedTransfer { - const PALLET: &'static str = "Vesting"; - const FUNCTION: &'static str = "vested_transfer"; + impl ::subxt::Call for Call { + const PALLET: &'static str = "Contracts"; + const FUNCTION: &'static str = "call"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ForceVestedTransfer { - pub source: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - pub target: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - pub schedule: - runtime_types::pallet_vesting::vesting_info::VestingInfo, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct InstantiateWithCode { + #[codec(compact)] + pub endowment: u128, + #[codec(compact)] + pub gas_limit: u64, + pub code: Vec, + pub data: Vec, + pub salt: Vec, } - impl ::subxt::Call for ForceVestedTransfer { - const PALLET: &'static str = "Vesting"; - const FUNCTION: &'static str = "force_vested_transfer"; + impl ::subxt::Call for InstantiateWithCode { + const PALLET: &'static str = "Contracts"; + const FUNCTION: &'static str = "instantiate_with_code"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct MergeSchedules { - pub schedule1_index: u32, - pub schedule2_index: u32, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Instantiate { + #[codec(compact)] + pub endowment: u128, + #[codec(compact)] + pub gas_limit: u64, + pub code_hash: ::subxt::sp_core::H256, + pub data: Vec, + pub salt: Vec, } - impl ::subxt::Call for MergeSchedules { - const PALLET: &'static str = "Vesting"; - const FUNCTION: &'static str = "merge_schedules"; + impl ::subxt::Call for Instantiate { + const PALLET: &'static str = "Contracts"; + const FUNCTION: &'static str = "instantiate"; } pub struct TransactionApi< 'a, @@ -6905,114 +6867,171 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub fn vest(&self) -> ::subxt::SubmittableExtrinsic { - let call = Vest {}; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn vest_other( - &self, - target: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - ) -> ::subxt::SubmittableExtrinsic { - let call = VestOther { target }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn vested_transfer( + pub fn call( &self, - target: ::subxt::sp_runtime::MultiAddress< + dest: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, - (), - >, - schedule: runtime_types::pallet_vesting::vesting_info::VestingInfo< - u128, u32, >, - ) -> ::subxt::SubmittableExtrinsic { - let call = VestedTransfer { target, schedule }; + value: u128, + gas_limit: u64, + data: Vec, + ) -> ::subxt::SubmittableExtrinsic { + let call = Call { + dest, + value, + gas_limit, + data, + }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn force_vested_transfer( + pub fn instantiate_with_code( &self, - source: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - target: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - schedule: runtime_types::pallet_vesting::vesting_info::VestingInfo< - u128, - u32, - >, - ) -> ::subxt::SubmittableExtrinsic + endowment: u128, + gas_limit: u64, + code: Vec, + data: Vec, + salt: Vec, + ) -> ::subxt::SubmittableExtrinsic { - let call = ForceVestedTransfer { - source, - target, - schedule, + let call = InstantiateWithCode { + endowment, + gas_limit, + code, + data, + salt, }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn merge_schedules( + pub fn instantiate( &self, - schedule1_index: u32, - schedule2_index: u32, - ) -> ::subxt::SubmittableExtrinsic { - let call = MergeSchedules { - schedule1_index, - schedule2_index, + endowment: u128, + gas_limit: u64, + code_hash: ::subxt::sp_core::H256, + data: Vec, + salt: Vec, + ) -> ::subxt::SubmittableExtrinsic { + let call = Instantiate { + endowment, + gas_limit, + code_hash, + data, + salt, }; ::subxt::SubmittableExtrinsic::new(self.client, call) } } } - pub type Event = runtime_types::pallet_vesting::pallet::Event; + pub type Event = runtime_types::pallet_contracts::pallet::Event; pub mod events { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct VestingUpdated( - pub ::subxt::sp_core::crypto::AccountId32, - pub u128, - ); - impl ::subxt::Event for VestingUpdated { - const PALLET: &'static str = "Vesting"; - const EVENT: &'static str = "VestingUpdated"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Instantiated { + pub deployer: ::subxt::sp_core::crypto::AccountId32, + pub contract: ::subxt::sp_core::crypto::AccountId32, + } + impl ::subxt::Event for Instantiated { + const PALLET: &'static str = "Contracts"; + const EVENT: &'static str = "Instantiated"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Terminated { + pub contract: ::subxt::sp_core::crypto::AccountId32, + pub beneficiary: ::subxt::sp_core::crypto::AccountId32, + } + impl ::subxt::Event for Terminated { + const PALLET: &'static str = "Contracts"; + const EVENT: &'static str = "Terminated"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct CodeStored { + pub code_hash: ::subxt::sp_core::H256, + } + impl ::subxt::Event for CodeStored { + const PALLET: &'static str = "Contracts"; + const EVENT: &'static str = "CodeStored"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ScheduleUpdated { + pub version: u32, + } + impl ::subxt::Event for ScheduleUpdated { + const PALLET: &'static str = "Contracts"; + const EVENT: &'static str = "ScheduleUpdated"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ContractEmitted { + pub contract: ::subxt::sp_core::crypto::AccountId32, + pub data: Vec, } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct VestingCompleted(pub ::subxt::sp_core::crypto::AccountId32); - impl ::subxt::Event for VestingCompleted { - const PALLET: &'static str = "Vesting"; - const EVENT: &'static str = "VestingCompleted"; + impl ::subxt::Event for ContractEmitted { + const PALLET: &'static str = "Contracts"; + const EVENT: &'static str = "ContractEmitted"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct CodeRemoved { + pub code_hash: ::subxt::sp_core::H256, + } + impl ::subxt::Event for CodeRemoved { + const PALLET: &'static str = "Contracts"; + const EVENT: &'static str = "CodeRemoved"; } } pub mod storage { use super::runtime_types; - pub struct Vesting(pub ::subxt::sp_core::crypto::AccountId32); - impl ::subxt::StorageEntry for Vesting { - const PALLET: &'static str = "Vesting"; - const STORAGE: &'static str = "Vesting"; - type Value = - runtime_types::frame_support::storage::bounded_vec::BoundedVec< - runtime_types::pallet_vesting::vesting_info::VestingInfo< - u128, - u32, - >, - >; + pub struct PristineCode(pub ::subxt::sp_core::H256); + impl ::subxt::StorageEntry for PristineCode { + const PALLET: &'static str = "Contracts"; + const STORAGE: &'static str = "PristineCode"; + type Value = Vec; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( &self.0, - ::subxt::StorageHasher::Blake2_128Concat, + ::subxt::StorageHasher::Identity, )]) } } - pub struct StorageVersion; - impl ::subxt::StorageEntry for StorageVersion { - const PALLET: &'static str = "Vesting"; - const STORAGE: &'static str = "StorageVersion"; - type Value = runtime_types::pallet_vesting::Releases; + pub struct CodeStorage(pub ::subxt::sp_core::H256); + impl ::subxt::StorageEntry for CodeStorage { + const PALLET: &'static str = "Contracts"; + const STORAGE: &'static str = "CodeStorage"; + type Value = runtime_types::pallet_contracts::wasm::PrefabWasmModule; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Identity, + )]) + } + } + pub struct AccountCounter; + impl ::subxt::StorageEntry for AccountCounter { + const PALLET: &'static str = "Contracts"; + const STORAGE: &'static str = "AccountCounter"; + type Value = u64; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct ContractInfoOf(pub ::subxt::sp_core::crypto::AccountId32); + impl ::subxt::StorageEntry for ContractInfoOf { + const PALLET: &'static str = "Contracts"; + const STORAGE: &'static str = "ContractInfoOf"; + type Value = runtime_types::pallet_contracts::storage::RawContractInfo< + ::subxt::sp_core::H256, + >; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) + } + } + pub struct DeletionQueue; + impl ::subxt::StorageEntry for DeletionQueue { + const PALLET: &'static str = "Contracts"; + const STORAGE: &'static str = "DeletionQueue"; + type Value = + Vec; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Plain } @@ -7024,65 +7043,133 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub async fn vesting( + pub async fn pristine_code( + &self, + _0: ::subxt::sp_core::H256, + hash: ::core::option::Option, + ) -> ::core::result::Result<::core::option::Option>, ::subxt::Error> + { + let entry = PristineCode(_0); + self.client.storage().fetch(&entry, hash).await + } + pub async fn pristine_code_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, PristineCode>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } + pub async fn code_storage( + &self, + _0: ::subxt::sp_core::H256, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option< + runtime_types::pallet_contracts::wasm::PrefabWasmModule, + >, + ::subxt::Error, + > { + let entry = CodeStorage(_0); + self.client.storage().fetch(&entry, hash).await + } + pub async fn code_storage_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, CodeStorage>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } + pub async fn account_counter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result { + let entry = AccountCounter; + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn contract_info_of( &self, _0: ::subxt::sp_core::crypto::AccountId32, hash: ::core::option::Option, ) -> ::core::result::Result< ::core::option::Option< - runtime_types::frame_support::storage::bounded_vec::BoundedVec< - runtime_types::pallet_vesting::vesting_info::VestingInfo< - u128, - u32, - >, + runtime_types::pallet_contracts::storage::RawContractInfo< + ::subxt::sp_core::H256, >, >, ::subxt::Error, > { - let entry = Vesting(_0); + let entry = ContractInfoOf(_0); self.client.storage().fetch(&entry, hash).await } - pub async fn storage_version( + pub async fn contract_info_of_iter( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - runtime_types::pallet_vesting::Releases, + ::subxt::KeyIter<'a, T, ContractInfoOf>, ::subxt::Error, > { - let entry = StorageVersion; + self.client.storage().iter(hash).await + } + pub async fn deletion_queue( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + Vec, + ::subxt::Error, + > { + let entry = DeletionQueue; self.client.storage().fetch_or_default(&entry, hash).await } } } } - pub mod utility { + pub mod sudo { use super::runtime_types; pub mod calls { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Batch { - pub calls: Vec, - } - impl ::subxt::Call for Batch { - const PALLET: &'static str = "Utility"; - const FUNCTION: &'static str = "batch"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct AsDerivative { - pub index: u16, - pub call: runtime_types::polkadot_runtime::Call, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Sudo { + pub call: runtime_types::node_runtime::Call, + } + impl ::subxt::Call for Sudo { + const PALLET: &'static str = "Sudo"; + const FUNCTION: &'static str = "sudo"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct SudoUncheckedWeight { + pub call: runtime_types::node_runtime::Call, + pub weight: u64, + } + impl ::subxt::Call for SudoUncheckedWeight { + const PALLET: &'static str = "Sudo"; + const FUNCTION: &'static str = "sudo_unchecked_weight"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct SetKey { + pub new: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, } - impl ::subxt::Call for AsDerivative { - const PALLET: &'static str = "Utility"; - const FUNCTION: &'static str = "as_derivative"; + impl ::subxt::Call for SetKey { + const PALLET: &'static str = "Sudo"; + const FUNCTION: &'static str = "set_key"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct BatchAll { - pub calls: Vec, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct SudoAs { + pub who: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + pub call: runtime_types::node_runtime::Call, } - impl ::subxt::Call for BatchAll { - const PALLET: &'static str = "Utility"; - const FUNCTION: &'static str = "batch_all"; + impl ::subxt::Call for SudoAs { + const PALLET: &'static str = "Sudo"; + const FUNCTION: &'static str = "sudo_as"; } pub struct TransactionApi< 'a, @@ -7097,210 +7184,113 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub fn batch( + pub fn sudo( &self, - calls: Vec, - ) -> ::subxt::SubmittableExtrinsic { - let call = Batch { calls }; + call: runtime_types::node_runtime::Call, + ) -> ::subxt::SubmittableExtrinsic { + let call = Sudo { call }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn as_derivative( + pub fn sudo_unchecked_weight( &self, - index: u16, - call: runtime_types::polkadot_runtime::Call, - ) -> ::subxt::SubmittableExtrinsic { - let call = AsDerivative { index, call }; + call: runtime_types::node_runtime::Call, + weight: u64, + ) -> ::subxt::SubmittableExtrinsic + { + let call = SudoUncheckedWeight { call, weight }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn batch_all( + pub fn set_key( &self, - calls: Vec, - ) -> ::subxt::SubmittableExtrinsic { - let call = BatchAll { calls }; + new: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + ) -> ::subxt::SubmittableExtrinsic { + let call = SetKey { new }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn sudo_as( + &self, + who: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + call: runtime_types::node_runtime::Call, + ) -> ::subxt::SubmittableExtrinsic { + let call = SudoAs { who, call }; ::subxt::SubmittableExtrinsic::new(self.client, call) } } } - pub type Event = runtime_types::pallet_utility::pallet::Event; + pub type Event = runtime_types::pallet_sudo::pallet::Event; pub mod events { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct BatchInterrupted( - pub u32, - pub runtime_types::sp_runtime::DispatchError, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Sudid(pub Result<(), runtime_types::sp_runtime::DispatchError>); + impl ::subxt::Event for Sudid { + const PALLET: &'static str = "Sudo"; + const EVENT: &'static str = "Sudid"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct KeyChanged(pub ::subxt::sp_core::crypto::AccountId32); + impl ::subxt::Event for KeyChanged { + const PALLET: &'static str = "Sudo"; + const EVENT: &'static str = "KeyChanged"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct SudoAsDone( + pub Result<(), runtime_types::sp_runtime::DispatchError>, ); - impl ::subxt::Event for BatchInterrupted { - const PALLET: &'static str = "Utility"; - const EVENT: &'static str = "BatchInterrupted"; + impl ::subxt::Event for SudoAsDone { + const PALLET: &'static str = "Sudo"; + const EVENT: &'static str = "SudoAsDone"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct BatchCompleted {} - impl ::subxt::Event for BatchCompleted { - const PALLET: &'static str = "Utility"; - const EVENT: &'static str = "BatchCompleted"; + } + pub mod storage { + use super::runtime_types; + pub struct Key; + impl ::subxt::StorageEntry for Key { + const PALLET: &'static str = "Sudo"; + const STORAGE: &'static str = "Key"; + type Value = ::subxt::sp_core::crypto::AccountId32; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ItemCompleted {} - impl ::subxt::Event for ItemCompleted { - const PALLET: &'static str = "Utility"; - const EVENT: &'static str = "ItemCompleted"; + pub struct StorageApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> StorageApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } + pub async fn key( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::sp_core::crypto::AccountId32, + ::subxt::Error, + > { + let entry = Key; + self.client.storage().fetch_or_default(&entry, hash).await + } } } } - pub mod identity { + pub mod im_online { use super::runtime_types; pub mod calls { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct AddRegistrar { - pub account: ::subxt::sp_core::crypto::AccountId32, - } - impl ::subxt::Call for AddRegistrar { - const PALLET: &'static str = "Identity"; - const FUNCTION: &'static str = "add_registrar"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Heartbeat { + pub heartbeat: runtime_types::pallet_im_online::Heartbeat, + pub signature: + runtime_types::pallet_im_online::sr25519::app_sr25519::Signature, } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SetIdentity { - pub info: runtime_types::pallet_identity::types::IdentityInfo, - } - impl ::subxt::Call for SetIdentity { - const PALLET: &'static str = "Identity"; - const FUNCTION: &'static str = "set_identity"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SetSubs { - pub subs: Vec<( - ::subxt::sp_core::crypto::AccountId32, - runtime_types::pallet_identity::types::Data, - )>, - } - impl ::subxt::Call for SetSubs { - const PALLET: &'static str = "Identity"; - const FUNCTION: &'static str = "set_subs"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ClearIdentity {} - impl ::subxt::Call for ClearIdentity { - const PALLET: &'static str = "Identity"; - const FUNCTION: &'static str = "clear_identity"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct RequestJudgement { - #[codec(compact)] - pub reg_index: u32, - #[codec(compact)] - pub max_fee: u128, - } - impl ::subxt::Call for RequestJudgement { - const PALLET: &'static str = "Identity"; - const FUNCTION: &'static str = "request_judgement"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct CancelRequest { - pub reg_index: u32, - } - impl ::subxt::Call for CancelRequest { - const PALLET: &'static str = "Identity"; - const FUNCTION: &'static str = "cancel_request"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SetFee { - #[codec(compact)] - pub index: u32, - #[codec(compact)] - pub fee: u128, - } - impl ::subxt::Call for SetFee { - const PALLET: &'static str = "Identity"; - const FUNCTION: &'static str = "set_fee"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SetAccountId { - #[codec(compact)] - pub index: u32, - pub new: ::subxt::sp_core::crypto::AccountId32, - } - impl ::subxt::Call for SetAccountId { - const PALLET: &'static str = "Identity"; - const FUNCTION: &'static str = "set_account_id"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SetFields { - #[codec(compact)] - pub index: u32, - pub fields: runtime_types::pallet_identity::types::BitFlags< - runtime_types::pallet_identity::types::IdentityField, - >, - } - impl ::subxt::Call for SetFields { - const PALLET: &'static str = "Identity"; - const FUNCTION: &'static str = "set_fields"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ProvideJudgement { - #[codec(compact)] - pub reg_index: u32, - pub target: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - pub judgement: runtime_types::pallet_identity::types::Judgement, - } - impl ::subxt::Call for ProvideJudgement { - const PALLET: &'static str = "Identity"; - const FUNCTION: &'static str = "provide_judgement"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct KillIdentity { - pub target: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - } - impl ::subxt::Call for KillIdentity { - const PALLET: &'static str = "Identity"; - const FUNCTION: &'static str = "kill_identity"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct AddSub { - pub sub: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - pub data: runtime_types::pallet_identity::types::Data, - } - impl ::subxt::Call for AddSub { - const PALLET: &'static str = "Identity"; - const FUNCTION: &'static str = "add_sub"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct RenameSub { - pub sub: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - pub data: runtime_types::pallet_identity::types::Data, - } - impl ::subxt::Call for RenameSub { - const PALLET: &'static str = "Identity"; - const FUNCTION: &'static str = "rename_sub"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct RemoveSub { - pub sub: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - } - impl ::subxt::Call for RemoveSub { - const PALLET: &'static str = "Identity"; - const FUNCTION: &'static str = "remove_sub"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct QuitSub {} - impl ::subxt::Call for QuitSub { - const PALLET: &'static str = "Identity"; - const FUNCTION: &'static str = "quit_sub"; + impl ::subxt::Call for Heartbeat { + const PALLET: &'static str = "ImOnline"; + const FUNCTION: &'static str = "heartbeat"; } pub struct TransactionApi< 'a, @@ -7315,236 +7305,203 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub fn add_registrar( - &self, - account: ::subxt::sp_core::crypto::AccountId32, - ) -> ::subxt::SubmittableExtrinsic { - let call = AddRegistrar { account }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn set_identity( + pub fn heartbeat( &self, - info: runtime_types::pallet_identity::types::IdentityInfo, - ) -> ::subxt::SubmittableExtrinsic { - let call = SetIdentity { info }; + heartbeat: runtime_types::pallet_im_online::Heartbeat, + signature : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Signature, + ) -> ::subxt::SubmittableExtrinsic { + let call = Heartbeat { + heartbeat, + signature, + }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn set_subs( - &self, - subs: Vec<( + } + } + pub type Event = runtime_types::pallet_im_online::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct HeartbeatReceived( + pub runtime_types::pallet_im_online::sr25519::app_sr25519::Public, + ); + impl ::subxt::Event for HeartbeatReceived { + const PALLET: &'static str = "ImOnline"; + const EVENT: &'static str = "HeartbeatReceived"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct AllGood {} + impl ::subxt::Event for AllGood { + const PALLET: &'static str = "ImOnline"; + const EVENT: &'static str = "AllGood"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct SomeOffline( + pub Vec<( + ::subxt::sp_core::crypto::AccountId32, + runtime_types::pallet_staking::Exposure< ::subxt::sp_core::crypto::AccountId32, - runtime_types::pallet_identity::types::Data, - )>, - ) -> ::subxt::SubmittableExtrinsic { - let call = SetSubs { subs }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + u128, + >, + )>, + ); + impl ::subxt::Event for SomeOffline { + const PALLET: &'static str = "ImOnline"; + const EVENT: &'static str = "SomeOffline"; + } + } + pub mod storage { + use super::runtime_types; + pub struct HeartbeatAfter; + impl ::subxt::StorageEntry for HeartbeatAfter { + const PALLET: &'static str = "ImOnline"; + const STORAGE: &'static str = "HeartbeatAfter"; + type Value = u32; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain } - pub fn clear_identity( - &self, - ) -> ::subxt::SubmittableExtrinsic { - let call = ClearIdentity {}; - ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub struct Keys; + impl ::subxt::StorageEntry for Keys { + const PALLET: &'static str = "ImOnline"; + const STORAGE: &'static str = "Keys"; + type Value = runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Public > ; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain } - pub fn request_judgement( - &self, - reg_index: u32, - max_fee: u128, - ) -> ::subxt::SubmittableExtrinsic { - let call = RequestJudgement { reg_index, max_fee }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub struct ReceivedHeartbeats(u32, u32); + impl ::subxt::StorageEntry for ReceivedHeartbeats { + const PALLET: &'static str = "ImOnline"; + const STORAGE: &'static str = "ReceivedHeartbeats"; + type Value = runtime_types::frame_support::traits::misc::WrapperOpaque< + runtime_types::pallet_im_online::BoundedOpaqueNetworkState, + >; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![ + ::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + ), + ::subxt::StorageMapKey::new( + &self.1, + ::subxt::StorageHasher::Twox64Concat, + ), + ]) } - pub fn cancel_request( - &self, - reg_index: u32, - ) -> ::subxt::SubmittableExtrinsic { - let call = CancelRequest { reg_index }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub struct AuthoredBlocks(u32, ::subxt::sp_core::crypto::AccountId32); + impl ::subxt::StorageEntry for AuthoredBlocks { + const PALLET: &'static str = "ImOnline"; + const STORAGE: &'static str = "AuthoredBlocks"; + type Value = u32; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![ + ::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + ), + ::subxt::StorageMapKey::new( + &self.1, + ::subxt::StorageHasher::Twox64Concat, + ), + ]) } - pub fn set_fee( - &self, - index: u32, - fee: u128, - ) -> ::subxt::SubmittableExtrinsic { - let call = SetFee { index, fee }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn set_account_id( - &self, - index: u32, - new: ::subxt::sp_core::crypto::AccountId32, - ) -> ::subxt::SubmittableExtrinsic { - let call = SetAccountId { index, new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn set_fields( - &self, - index: u32, - fields: runtime_types::pallet_identity::types::BitFlags< - runtime_types::pallet_identity::types::IdentityField, - >, - ) -> ::subxt::SubmittableExtrinsic { - let call = SetFields { index, fields }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub struct StorageApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> StorageApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } } - pub fn provide_judgement( + pub async fn heartbeat_after( &self, - reg_index: u32, - target: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - judgement: runtime_types::pallet_identity::types::Judgement, - ) -> ::subxt::SubmittableExtrinsic { - let call = ProvideJudgement { - reg_index, - target, - judgement, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + hash: ::core::option::Option, + ) -> ::core::result::Result { + let entry = HeartbeatAfter; + self.client.storage().fetch_or_default(&entry, hash).await + } pub async fn keys (& self , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Public > , :: subxt :: Error >{ + let entry = Keys; + self.client.storage().fetch_or_default(&entry, hash).await } - pub fn kill_identity( + pub async fn received_heartbeats( &self, - target: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), + _0: u32, + _1: u32, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option< + runtime_types::frame_support::traits::misc::WrapperOpaque< + runtime_types::pallet_im_online::BoundedOpaqueNetworkState, + >, >, - ) -> ::subxt::SubmittableExtrinsic { - let call = KillIdentity { target }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + ::subxt::Error, + > { + let entry = ReceivedHeartbeats(_0, _1); + self.client.storage().fetch(&entry, hash).await } - pub fn add_sub( + pub async fn received_heartbeats_iter( &self, - sub: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - data: runtime_types::pallet_identity::types::Data, - ) -> ::subxt::SubmittableExtrinsic { - let call = AddSub { sub, data }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, ReceivedHeartbeats>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await } - pub fn rename_sub( + pub async fn authored_blocks( &self, - sub: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - data: runtime_types::pallet_identity::types::Data, - ) -> ::subxt::SubmittableExtrinsic { - let call = RenameSub { sub, data }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + _0: u32, + _1: ::subxt::sp_core::crypto::AccountId32, + hash: ::core::option::Option, + ) -> ::core::result::Result { + let entry = AuthoredBlocks(_0, _1); + self.client.storage().fetch_or_default(&entry, hash).await } - pub fn remove_sub( + pub async fn authored_blocks_iter( &self, - sub: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - ) -> ::subxt::SubmittableExtrinsic { - let call = RemoveSub { sub }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn quit_sub(&self) -> ::subxt::SubmittableExtrinsic { - let call = QuitSub {}; - ::subxt::SubmittableExtrinsic::new(self.client, call) + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, AuthoredBlocks>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await } } } - pub type Event = runtime_types::pallet_identity::pallet::Event; + } + pub mod authority_discovery { + use super::runtime_types; + } + pub mod offences { + use super::runtime_types; + pub type Event = runtime_types::pallet_offences::pallet::Event; pub mod events { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct IdentitySet(pub ::subxt::sp_core::crypto::AccountId32); - impl ::subxt::Event for IdentitySet { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "IdentitySet"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct IdentityCleared( - pub ::subxt::sp_core::crypto::AccountId32, - pub u128, - ); - impl ::subxt::Event for IdentityCleared { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "IdentityCleared"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct IdentityKilled( - pub ::subxt::sp_core::crypto::AccountId32, - pub u128, - ); - impl ::subxt::Event for IdentityKilled { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "IdentityKilled"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct JudgementRequested( - pub ::subxt::sp_core::crypto::AccountId32, - pub u32, - ); - impl ::subxt::Event for JudgementRequested { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "JudgementRequested"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct JudgementUnrequested( - pub ::subxt::sp_core::crypto::AccountId32, - pub u32, - ); - impl ::subxt::Event for JudgementUnrequested { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "JudgementUnrequested"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct JudgementGiven(pub ::subxt::sp_core::crypto::AccountId32, pub u32); - impl ::subxt::Event for JudgementGiven { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "JudgementGiven"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct RegistrarAdded(pub u32); - impl ::subxt::Event for RegistrarAdded { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "RegistrarAdded"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SubIdentityAdded( - pub ::subxt::sp_core::crypto::AccountId32, - pub ::subxt::sp_core::crypto::AccountId32, - pub u128, - ); - impl ::subxt::Event for SubIdentityAdded { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "SubIdentityAdded"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SubIdentityRemoved( - pub ::subxt::sp_core::crypto::AccountId32, - pub ::subxt::sp_core::crypto::AccountId32, - pub u128, - ); - impl ::subxt::Event for SubIdentityRemoved { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "SubIdentityRemoved"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SubIdentityRevoked( - pub ::subxt::sp_core::crypto::AccountId32, - pub ::subxt::sp_core::crypto::AccountId32, - pub u128, - ); - impl ::subxt::Event for SubIdentityRevoked { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "SubIdentityRevoked"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Offence(pub [u8; 16usize], pub Vec); + impl ::subxt::Event for Offence { + const PALLET: &'static str = "Offences"; + const EVENT: &'static str = "Offence"; } } pub mod storage { use super::runtime_types; - pub struct IdentityOf(pub ::subxt::sp_core::crypto::AccountId32); - impl ::subxt::StorageEntry for IdentityOf { - const PALLET: &'static str = "Identity"; - const STORAGE: &'static str = "IdentityOf"; - type Value = runtime_types::pallet_identity::types::Registration; + pub struct Reports(pub ::subxt::sp_core::H256); + impl ::subxt::StorageEntry for Reports { + const PALLET: &'static str = "Offences"; + const STORAGE: &'static str = "Reports"; + type Value = runtime_types::sp_staking::offence::OffenceDetails< + ::subxt::sp_core::crypto::AccountId32, + ( + ::subxt::sp_core::crypto::AccountId32, + runtime_types::pallet_staking::Exposure< + ::subxt::sp_core::crypto::AccountId32, + u128, + >, + ), + >; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( &self.0, @@ -7552,55 +7509,36 @@ pub mod api { )]) } } - pub struct SuperOf(pub ::subxt::sp_core::crypto::AccountId32); - impl ::subxt::StorageEntry for SuperOf { - const PALLET: &'static str = "Identity"; - const STORAGE: &'static str = "SuperOf"; - type Value = ( - ::subxt::sp_core::crypto::AccountId32, - runtime_types::pallet_identity::types::Data, - ); + pub struct ConcurrentReportsIndex([u8; 16usize], Vec); + impl ::subxt::StorageEntry for ConcurrentReportsIndex { + const PALLET: &'static str = "Offences"; + const STORAGE: &'static str = "ConcurrentReportsIndex"; + type Value = Vec<::subxt::sp_core::H256>; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![ + ::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + ), + ::subxt::StorageMapKey::new( + &self.1, + ::subxt::StorageHasher::Twox64Concat, + ), + ]) + } + } + pub struct ReportsByKindIndex(pub [u8; 16usize]); + impl ::subxt::StorageEntry for ReportsByKindIndex { + const PALLET: &'static str = "Offences"; + const STORAGE: &'static str = "ReportsByKindIndex"; + type Value = Vec; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( &self.0, - ::subxt::StorageHasher::Blake2_128Concat, + ::subxt::StorageHasher::Twox64Concat, )]) } } - pub struct SubsOf(pub ::subxt::sp_core::crypto::AccountId32); - impl ::subxt::StorageEntry for SubsOf { - const PALLET: &'static str = "Identity"; - const STORAGE: &'static str = "SubsOf"; - type Value = ( - u128, - runtime_types::frame_support::storage::bounded_vec::BoundedVec< - ::subxt::sp_core::crypto::AccountId32, - >, - ); - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct Registrars; - impl ::subxt::StorageEntry for Registrars { - const PALLET: &'static str = "Identity"; - const STORAGE: &'static str = "Registrars"; - type Value = - runtime_types::frame_support::storage::bounded_vec::BoundedVec< - Option< - runtime_types::pallet_identity::types::RegistrarInfo< - u128, - ::subxt::sp_core::crypto::AccountId32, - >, - >, - >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } pub struct StorageApi<'a, T: ::subxt::Config> { client: &'a ::subxt::Client, } @@ -7608,174 +7546,268 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub async fn identity_of( + pub async fn reports( &self, - _0: ::subxt::sp_core::crypto::AccountId32, + _0: ::subxt::sp_core::H256, hash: ::core::option::Option, ) -> ::core::result::Result< ::core::option::Option< - runtime_types::pallet_identity::types::Registration, + runtime_types::sp_staking::offence::OffenceDetails< + ::subxt::sp_core::crypto::AccountId32, + ( + ::subxt::sp_core::crypto::AccountId32, + runtime_types::pallet_staking::Exposure< + ::subxt::sp_core::crypto::AccountId32, + u128, + >, + ), + >, >, ::subxt::Error, > { - let entry = IdentityOf(_0); + let entry = Reports(_0); self.client.storage().fetch(&entry, hash).await } - pub async fn super_of( + pub async fn reports_iter( &self, - _0: ::subxt::sp_core::crypto::AccountId32, hash: ::core::option::Option, ) -> ::core::result::Result< - ::core::option::Option<( - ::subxt::sp_core::crypto::AccountId32, - runtime_types::pallet_identity::types::Data, - )>, + ::subxt::KeyIter<'a, T, Reports>, ::subxt::Error, > { - let entry = SuperOf(_0); - self.client.storage().fetch(&entry, hash).await + self.client.storage().iter(hash).await } - pub async fn subs_of( + pub async fn concurrent_reports_index( + &self, + _0: [u8; 16usize], + _1: Vec, + hash: ::core::option::Option, + ) -> ::core::result::Result, ::subxt::Error> + { + let entry = ConcurrentReportsIndex(_0, _1); + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn concurrent_reports_index_iter( &self, - _0: ::subxt::sp_core::crypto::AccountId32, hash: ::core::option::Option, ) -> ::core::result::Result< - ( - u128, - runtime_types::frame_support::storage::bounded_vec::BoundedVec< - ::subxt::sp_core::crypto::AccountId32, - >, - ), + ::subxt::KeyIter<'a, T, ConcurrentReportsIndex>, ::subxt::Error, > { - let entry = SubsOf(_0); + self.client.storage().iter(hash).await + } + pub async fn reports_by_kind_index( + &self, + _0: [u8; 16usize], + hash: ::core::option::Option, + ) -> ::core::result::Result, ::subxt::Error> { + let entry = ReportsByKindIndex(_0); self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn registrars( + pub async fn reports_by_kind_index_iter( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - runtime_types::frame_support::storage::bounded_vec::BoundedVec< - Option< - runtime_types::pallet_identity::types::RegistrarInfo< - u128, - ::subxt::sp_core::crypto::AccountId32, - >, - >, - >, + ::subxt::KeyIter<'a, T, ReportsByKindIndex>, ::subxt::Error, > { - let entry = Registrars; + self.client.storage().iter(hash).await + } + } + } + } + pub mod historical { + use super::runtime_types; + } + pub mod randomness_collective_flip { + use super::runtime_types; + pub mod storage { + use super::runtime_types; + pub struct RandomMaterial; + impl ::subxt::StorageEntry for RandomMaterial { + const PALLET: &'static str = "RandomnessCollectiveFlip"; + const STORAGE: &'static str = "RandomMaterial"; + type Value = Vec<::subxt::sp_core::H256>; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct StorageApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> StorageApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } + pub async fn random_material( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result, ::subxt::Error> + { + let entry = RandomMaterial; self.client.storage().fetch_or_default(&entry, hash).await } } } } - pub mod proxy { + pub mod identity { use super::runtime_types; pub mod calls { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Proxy { - pub real: ::subxt::sp_core::crypto::AccountId32, - pub force_proxy_type: Option, - pub call: runtime_types::polkadot_runtime::Call, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct AddRegistrar { + pub account: ::subxt::sp_core::crypto::AccountId32, } - impl ::subxt::Call for Proxy { - const PALLET: &'static str = "Proxy"; - const FUNCTION: &'static str = "proxy"; + impl ::subxt::Call for AddRegistrar { + const PALLET: &'static str = "Identity"; + const FUNCTION: &'static str = "add_registrar"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct AddProxy { - pub delegate: ::subxt::sp_core::crypto::AccountId32, - pub proxy_type: runtime_types::polkadot_runtime::ProxyType, - pub delay: u32, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct SetIdentity { + pub info: runtime_types::pallet_identity::types::IdentityInfo, } - impl ::subxt::Call for AddProxy { - const PALLET: &'static str = "Proxy"; - const FUNCTION: &'static str = "add_proxy"; + impl ::subxt::Call for SetIdentity { + const PALLET: &'static str = "Identity"; + const FUNCTION: &'static str = "set_identity"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct RemoveProxy { - pub delegate: ::subxt::sp_core::crypto::AccountId32, - pub proxy_type: runtime_types::polkadot_runtime::ProxyType, - pub delay: u32, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct SetSubs { + pub subs: Vec<( + ::subxt::sp_core::crypto::AccountId32, + runtime_types::pallet_identity::types::Data, + )>, } - impl ::subxt::Call for RemoveProxy { - const PALLET: &'static str = "Proxy"; - const FUNCTION: &'static str = "remove_proxy"; + impl ::subxt::Call for SetSubs { + const PALLET: &'static str = "Identity"; + const FUNCTION: &'static str = "set_subs"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct RemoveProxies {} - impl ::subxt::Call for RemoveProxies { - const PALLET: &'static str = "Proxy"; - const FUNCTION: &'static str = "remove_proxies"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ClearIdentity {} + impl ::subxt::Call for ClearIdentity { + const PALLET: &'static str = "Identity"; + const FUNCTION: &'static str = "clear_identity"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Anonymous { - pub proxy_type: runtime_types::polkadot_runtime::ProxyType, - pub delay: u32, - pub index: u16, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct RequestJudgement { + #[codec(compact)] + pub reg_index: u32, + #[codec(compact)] + pub max_fee: u128, } - impl ::subxt::Call for Anonymous { - const PALLET: &'static str = "Proxy"; - const FUNCTION: &'static str = "anonymous"; + impl ::subxt::Call for RequestJudgement { + const PALLET: &'static str = "Identity"; + const FUNCTION: &'static str = "request_judgement"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct KillAnonymous { - pub spawner: ::subxt::sp_core::crypto::AccountId32, - pub proxy_type: runtime_types::polkadot_runtime::ProxyType, - pub index: u16, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct CancelRequest { + pub reg_index: u32, + } + impl ::subxt::Call for CancelRequest { + const PALLET: &'static str = "Identity"; + const FUNCTION: &'static str = "cancel_request"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct SetFee { #[codec(compact)] - pub height: u32, + pub index: u32, #[codec(compact)] - pub ext_index: u32, + pub fee: u128, } - impl ::subxt::Call for KillAnonymous { - const PALLET: &'static str = "Proxy"; - const FUNCTION: &'static str = "kill_anonymous"; + impl ::subxt::Call for SetFee { + const PALLET: &'static str = "Identity"; + const FUNCTION: &'static str = "set_fee"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Announce { - pub real: ::subxt::sp_core::crypto::AccountId32, - pub call_hash: ::subxt::sp_core::H256, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct SetAccountId { + #[codec(compact)] + pub index: u32, + pub new: ::subxt::sp_core::crypto::AccountId32, } - impl ::subxt::Call for Announce { - const PALLET: &'static str = "Proxy"; - const FUNCTION: &'static str = "announce"; + impl ::subxt::Call for SetAccountId { + const PALLET: &'static str = "Identity"; + const FUNCTION: &'static str = "set_account_id"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct RemoveAnnouncement { - pub real: ::subxt::sp_core::crypto::AccountId32, - pub call_hash: ::subxt::sp_core::H256, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct SetFields { + #[codec(compact)] + pub index: u32, + pub fields: runtime_types::pallet_identity::types::BitFlags< + runtime_types::pallet_identity::types::IdentityField, + >, } - impl ::subxt::Call for RemoveAnnouncement { - const PALLET: &'static str = "Proxy"; - const FUNCTION: &'static str = "remove_announcement"; + impl ::subxt::Call for SetFields { + const PALLET: &'static str = "Identity"; + const FUNCTION: &'static str = "set_fields"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct RejectAnnouncement { - pub delegate: ::subxt::sp_core::crypto::AccountId32, - pub call_hash: ::subxt::sp_core::H256, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ProvideJudgement { + #[codec(compact)] + pub reg_index: u32, + pub target: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + pub judgement: runtime_types::pallet_identity::types::Judgement, } - impl ::subxt::Call for RejectAnnouncement { - const PALLET: &'static str = "Proxy"; - const FUNCTION: &'static str = "reject_announcement"; + impl ::subxt::Call for ProvideJudgement { + const PALLET: &'static str = "Identity"; + const FUNCTION: &'static str = "provide_judgement"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ProxyAnnounced { - pub delegate: ::subxt::sp_core::crypto::AccountId32, - pub real: ::subxt::sp_core::crypto::AccountId32, - pub force_proxy_type: Option, - pub call: runtime_types::polkadot_runtime::Call, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct KillIdentity { + pub target: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, } - impl ::subxt::Call for ProxyAnnounced { - const PALLET: &'static str = "Proxy"; - const FUNCTION: &'static str = "proxy_announced"; + impl ::subxt::Call for KillIdentity { + const PALLET: &'static str = "Identity"; + const FUNCTION: &'static str = "kill_identity"; } - pub struct TransactionApi< - 'a, - T: ::subxt::Config + ::subxt::ExtrinsicExtraData, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct AddSub { + pub sub: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + pub data: runtime_types::pallet_identity::types::Data, + } + impl ::subxt::Call for AddSub { + const PALLET: &'static str = "Identity"; + const FUNCTION: &'static str = "add_sub"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct RenameSub { + pub sub: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + pub data: runtime_types::pallet_identity::types::Data, + } + impl ::subxt::Call for RenameSub { + const PALLET: &'static str = "Identity"; + const FUNCTION: &'static str = "rename_sub"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct RemoveSub { + pub sub: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + } + impl ::subxt::Call for RemoveSub { + const PALLET: &'static str = "Identity"; + const FUNCTION: &'static str = "remove_sub"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct QuitSub {} + impl ::subxt::Call for QuitSub { + const PALLET: &'static str = "Identity"; + const FUNCTION: &'static str = "quit_sub"; + } + pub struct TransactionApi< + 'a, + T: ::subxt::Config + ::subxt::ExtrinsicExtraData, > { client: &'a ::subxt::Client, } @@ -7786,207 +7818,267 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub fn proxy( + pub fn add_registrar( &self, - real: ::subxt::sp_core::crypto::AccountId32, - force_proxy_type: Option, - call: runtime_types::polkadot_runtime::Call, - ) -> ::subxt::SubmittableExtrinsic { - let call = Proxy { - real, - force_proxy_type, - call, - }; + account: ::subxt::sp_core::crypto::AccountId32, + ) -> ::subxt::SubmittableExtrinsic { + let call = AddRegistrar { account }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn add_proxy( + pub fn set_identity( &self, - delegate: ::subxt::sp_core::crypto::AccountId32, - proxy_type: runtime_types::polkadot_runtime::ProxyType, - delay: u32, - ) -> ::subxt::SubmittableExtrinsic { - let call = AddProxy { - delegate, - proxy_type, - delay, - }; + info: runtime_types::pallet_identity::types::IdentityInfo, + ) -> ::subxt::SubmittableExtrinsic { + let call = SetIdentity { info }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn remove_proxy( + pub fn set_subs( &self, - delegate: ::subxt::sp_core::crypto::AccountId32, - proxy_type: runtime_types::polkadot_runtime::ProxyType, - delay: u32, - ) -> ::subxt::SubmittableExtrinsic { - let call = RemoveProxy { - delegate, - proxy_type, - delay, - }; + subs: Vec<( + ::subxt::sp_core::crypto::AccountId32, + runtime_types::pallet_identity::types::Data, + )>, + ) -> ::subxt::SubmittableExtrinsic { + let call = SetSubs { subs }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn remove_proxies( + pub fn clear_identity( &self, - ) -> ::subxt::SubmittableExtrinsic { - let call = RemoveProxies {}; + ) -> ::subxt::SubmittableExtrinsic { + let call = ClearIdentity {}; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn anonymous( + pub fn request_judgement( &self, - proxy_type: runtime_types::polkadot_runtime::ProxyType, - delay: u32, - index: u16, - ) -> ::subxt::SubmittableExtrinsic { - let call = Anonymous { - proxy_type, - delay, - index, - }; + reg_index: u32, + max_fee: u128, + ) -> ::subxt::SubmittableExtrinsic { + let call = RequestJudgement { reg_index, max_fee }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn kill_anonymous( + pub fn cancel_request( &self, - spawner: ::subxt::sp_core::crypto::AccountId32, - proxy_type: runtime_types::polkadot_runtime::ProxyType, - index: u16, - height: u32, - ext_index: u32, - ) -> ::subxt::SubmittableExtrinsic { - let call = KillAnonymous { - spawner, - proxy_type, - index, - height, - ext_index, - }; + reg_index: u32, + ) -> ::subxt::SubmittableExtrinsic { + let call = CancelRequest { reg_index }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn announce( + pub fn set_fee( &self, - real: ::subxt::sp_core::crypto::AccountId32, - call_hash: ::subxt::sp_core::H256, - ) -> ::subxt::SubmittableExtrinsic { - let call = Announce { real, call_hash }; + index: u32, + fee: u128, + ) -> ::subxt::SubmittableExtrinsic { + let call = SetFee { index, fee }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn remove_announcement( + pub fn set_account_id( &self, - real: ::subxt::sp_core::crypto::AccountId32, - call_hash: ::subxt::sp_core::H256, - ) -> ::subxt::SubmittableExtrinsic - { - let call = RemoveAnnouncement { real, call_hash }; + index: u32, + new: ::subxt::sp_core::crypto::AccountId32, + ) -> ::subxt::SubmittableExtrinsic { + let call = SetAccountId { index, new }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn reject_announcement( + pub fn set_fields( &self, - delegate: ::subxt::sp_core::crypto::AccountId32, - call_hash: ::subxt::sp_core::H256, - ) -> ::subxt::SubmittableExtrinsic - { - let call = RejectAnnouncement { - delegate, - call_hash, - }; + index: u32, + fields: runtime_types::pallet_identity::types::BitFlags< + runtime_types::pallet_identity::types::IdentityField, + >, + ) -> ::subxt::SubmittableExtrinsic { + let call = SetFields { index, fields }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn proxy_announced( + pub fn provide_judgement( &self, - delegate: ::subxt::sp_core::crypto::AccountId32, - real: ::subxt::sp_core::crypto::AccountId32, - force_proxy_type: Option, - call: runtime_types::polkadot_runtime::Call, - ) -> ::subxt::SubmittableExtrinsic { - let call = ProxyAnnounced { - delegate, - real, - force_proxy_type, - call, + reg_index: u32, + target: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + judgement: runtime_types::pallet_identity::types::Judgement, + ) -> ::subxt::SubmittableExtrinsic { + let call = ProvideJudgement { + reg_index, + target, + judgement, }; ::subxt::SubmittableExtrinsic::new(self.client, call) } + pub fn kill_identity( + &self, + target: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + ) -> ::subxt::SubmittableExtrinsic { + let call = KillIdentity { target }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn add_sub( + &self, + sub: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + data: runtime_types::pallet_identity::types::Data, + ) -> ::subxt::SubmittableExtrinsic { + let call = AddSub { sub, data }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn rename_sub( + &self, + sub: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + data: runtime_types::pallet_identity::types::Data, + ) -> ::subxt::SubmittableExtrinsic { + let call = RenameSub { sub, data }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn remove_sub( + &self, + sub: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + ) -> ::subxt::SubmittableExtrinsic { + let call = RemoveSub { sub }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn quit_sub(&self) -> ::subxt::SubmittableExtrinsic { + let call = QuitSub {}; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } } } - pub type Event = runtime_types::pallet_proxy::pallet::Event; + pub type Event = runtime_types::pallet_identity::pallet::Event; pub mod events { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ProxyExecuted( - pub Result<(), runtime_types::sp_runtime::DispatchError>, - ); - impl ::subxt::Event for ProxyExecuted { - const PALLET: &'static str = "Proxy"; - const EVENT: &'static str = "ProxyExecuted"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct IdentitySet(pub ::subxt::sp_core::crypto::AccountId32); + impl ::subxt::Event for IdentitySet { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "IdentitySet"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct AnonymousCreated( - pub ::subxt::sp_core::crypto::AccountId32, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct IdentityCleared( pub ::subxt::sp_core::crypto::AccountId32, - pub runtime_types::polkadot_runtime::ProxyType, - pub u16, + pub u128, ); - impl ::subxt::Event for AnonymousCreated { - const PALLET: &'static str = "Proxy"; - const EVENT: &'static str = "AnonymousCreated"; + impl ::subxt::Event for IdentityCleared { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "IdentityCleared"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Announced( - pub ::subxt::sp_core::crypto::AccountId32, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct IdentityKilled( pub ::subxt::sp_core::crypto::AccountId32, - pub ::subxt::sp_core::H256, + pub u128, ); - impl ::subxt::Event for Announced { - const PALLET: &'static str = "Proxy"; - const EVENT: &'static str = "Announced"; + impl ::subxt::Event for IdentityKilled { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "IdentityKilled"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ProxyAdded( + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct JudgementRequested( pub ::subxt::sp_core::crypto::AccountId32, + pub u32, + ); + impl ::subxt::Event for JudgementRequested { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "JudgementRequested"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct JudgementUnrequested( pub ::subxt::sp_core::crypto::AccountId32, - pub runtime_types::polkadot_runtime::ProxyType, pub u32, ); - impl ::subxt::Event for ProxyAdded { - const PALLET: &'static str = "Proxy"; - const EVENT: &'static str = "ProxyAdded"; + impl ::subxt::Event for JudgementUnrequested { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "JudgementUnrequested"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct JudgementGiven(pub ::subxt::sp_core::crypto::AccountId32, pub u32); + impl ::subxt::Event for JudgementGiven { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "JudgementGiven"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct RegistrarAdded(pub u32); + impl ::subxt::Event for RegistrarAdded { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "RegistrarAdded"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct SubIdentityAdded( + pub ::subxt::sp_core::crypto::AccountId32, + pub ::subxt::sp_core::crypto::AccountId32, + pub u128, + ); + impl ::subxt::Event for SubIdentityAdded { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "SubIdentityAdded"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct SubIdentityRemoved( + pub ::subxt::sp_core::crypto::AccountId32, + pub ::subxt::sp_core::crypto::AccountId32, + pub u128, + ); + impl ::subxt::Event for SubIdentityRemoved { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "SubIdentityRemoved"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct SubIdentityRevoked( + pub ::subxt::sp_core::crypto::AccountId32, + pub ::subxt::sp_core::crypto::AccountId32, + pub u128, + ); + impl ::subxt::Event for SubIdentityRevoked { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "SubIdentityRevoked"; } } pub mod storage { use super::runtime_types; - pub struct Proxies(pub ::subxt::sp_core::crypto::AccountId32); - impl ::subxt::StorageEntry for Proxies { - const PALLET: &'static str = "Proxy"; - const STORAGE: &'static str = "Proxies"; + pub struct IdentityOf(pub ::subxt::sp_core::crypto::AccountId32); + impl ::subxt::StorageEntry for IdentityOf { + const PALLET: &'static str = "Identity"; + const STORAGE: &'static str = "IdentityOf"; + type Value = runtime_types::pallet_identity::types::Registration; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) + } + } + pub struct SuperOf(pub ::subxt::sp_core::crypto::AccountId32); + impl ::subxt::StorageEntry for SuperOf { + const PALLET: &'static str = "Identity"; + const STORAGE: &'static str = "SuperOf"; type Value = ( - runtime_types::frame_support::storage::bounded_vec::BoundedVec< - runtime_types::pallet_proxy::ProxyDefinition< - ::subxt::sp_core::crypto::AccountId32, - runtime_types::polkadot_runtime::ProxyType, - u32, - >, - >, - u128, + ::subxt::sp_core::crypto::AccountId32, + runtime_types::pallet_identity::types::Data, ); fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( &self.0, - ::subxt::StorageHasher::Twox64Concat, + ::subxt::StorageHasher::Blake2_128Concat, )]) } } - pub struct Announcements(pub ::subxt::sp_core::crypto::AccountId32); - impl ::subxt::StorageEntry for Announcements { - const PALLET: &'static str = "Proxy"; - const STORAGE: &'static str = "Announcements"; + pub struct SubsOf(pub ::subxt::sp_core::crypto::AccountId32); + impl ::subxt::StorageEntry for SubsOf { + const PALLET: &'static str = "Identity"; + const STORAGE: &'static str = "SubsOf"; type Value = ( + u128, runtime_types::frame_support::storage::bounded_vec::BoundedVec< - runtime_types::pallet_proxy::Announcement< - ::subxt::sp_core::crypto::AccountId32, - ::subxt::sp_core::H256, - u32, - >, + ::subxt::sp_core::crypto::AccountId32, >, - u128, ); fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( @@ -7995,6 +8087,23 @@ pub mod api { )]) } } + pub struct Registrars; + impl ::subxt::StorageEntry for Registrars { + const PALLET: &'static str = "Identity"; + const STORAGE: &'static str = "Registrars"; + type Value = + runtime_types::frame_support::storage::bounded_vec::BoundedVec< + Option< + runtime_types::pallet_identity::types::RegistrarInfo< + u128, + ::subxt::sp_core::crypto::AccountId32, + >, + >, + >; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } pub struct StorageApi<'a, T: ::subxt::Config> { client: &'a ::subxt::Client, } @@ -8002,99 +8111,199 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub async fn proxies( + pub async fn identity_of( + &self, + _0: ::subxt::sp_core::crypto::AccountId32, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option< + runtime_types::pallet_identity::types::Registration, + >, + ::subxt::Error, + > { + let entry = IdentityOf(_0); + self.client.storage().fetch(&entry, hash).await + } + pub async fn identity_of_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, IdentityOf>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } + pub async fn super_of( + &self, + _0: ::subxt::sp_core::crypto::AccountId32, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option<( + ::subxt::sp_core::crypto::AccountId32, + runtime_types::pallet_identity::types::Data, + )>, + ::subxt::Error, + > { + let entry = SuperOf(_0); + self.client.storage().fetch(&entry, hash).await + } + pub async fn super_of_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, SuperOf>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } + pub async fn subs_of( &self, _0: ::subxt::sp_core::crypto::AccountId32, hash: ::core::option::Option, ) -> ::core::result::Result< ( + u128, runtime_types::frame_support::storage::bounded_vec::BoundedVec< - runtime_types::pallet_proxy::ProxyDefinition< - ::subxt::sp_core::crypto::AccountId32, - runtime_types::polkadot_runtime::ProxyType, - u32, - >, + ::subxt::sp_core::crypto::AccountId32, >, - u128, ), ::subxt::Error, > { - let entry = Proxies(_0); + let entry = SubsOf(_0); self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn announcements( + pub async fn subs_of_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result<::subxt::KeyIter<'a, T, SubsOf>, ::subxt::Error> + { + self.client.storage().iter(hash).await + } + pub async fn registrars( &self, - _0: ::subxt::sp_core::crypto::AccountId32, hash: ::core::option::Option, ) -> ::core::result::Result< - ( - runtime_types::frame_support::storage::bounded_vec::BoundedVec< - runtime_types::pallet_proxy::Announcement< + runtime_types::frame_support::storage::bounded_vec::BoundedVec< + Option< + runtime_types::pallet_identity::types::RegistrarInfo< + u128, ::subxt::sp_core::crypto::AccountId32, - ::subxt::sp_core::H256, - u32, >, >, - u128, - ), + >, ::subxt::Error, > { - let entry = Announcements(_0); + let entry = Registrars; self.client.storage().fetch_or_default(&entry, hash).await } } } } - pub mod multisig { + pub mod society { use super::runtime_types; pub mod calls { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct AsMultiThreshold1 { - pub other_signatories: Vec<::subxt::sp_core::crypto::AccountId32>, - pub call: runtime_types::polkadot_runtime::Call, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Bid { + pub value: u128, } - impl ::subxt::Call for AsMultiThreshold1 { - const PALLET: &'static str = "Multisig"; - const FUNCTION: &'static str = "as_multi_threshold1"; + impl ::subxt::Call for Bid { + const PALLET: &'static str = "Society"; + const FUNCTION: &'static str = "bid"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct AsMulti { - pub threshold: u16, - pub other_signatories: Vec<::subxt::sp_core::crypto::AccountId32>, - pub maybe_timepoint: - Option>, - pub call: Vec, - pub store_call: bool, - pub max_weight: u64, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Unbid { + pub pos: u32, } - impl ::subxt::Call for AsMulti { - const PALLET: &'static str = "Multisig"; - const FUNCTION: &'static str = "as_multi"; + impl ::subxt::Call for Unbid { + const PALLET: &'static str = "Society"; + const FUNCTION: &'static str = "unbid"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ApproveAsMulti { - pub threshold: u16, - pub other_signatories: Vec<::subxt::sp_core::crypto::AccountId32>, - pub maybe_timepoint: - Option>, - pub call_hash: [u8; 32usize], - pub max_weight: u64, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Vouch { + pub who: ::subxt::sp_core::crypto::AccountId32, + pub value: u128, + pub tip: u128, } - impl ::subxt::Call for ApproveAsMulti { - const PALLET: &'static str = "Multisig"; - const FUNCTION: &'static str = "approve_as_multi"; + impl ::subxt::Call for Vouch { + const PALLET: &'static str = "Society"; + const FUNCTION: &'static str = "vouch"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct CancelAsMulti { - pub threshold: u16, - pub other_signatories: Vec<::subxt::sp_core::crypto::AccountId32>, - pub timepoint: runtime_types::pallet_multisig::Timepoint, - pub call_hash: [u8; 32usize], + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Unvouch { + pub pos: u32, } - impl ::subxt::Call for CancelAsMulti { - const PALLET: &'static str = "Multisig"; - const FUNCTION: &'static str = "cancel_as_multi"; + impl ::subxt::Call for Unvouch { + const PALLET: &'static str = "Society"; + const FUNCTION: &'static str = "unvouch"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Vote { + pub candidate: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + pub approve: bool, + } + impl ::subxt::Call for Vote { + const PALLET: &'static str = "Society"; + const FUNCTION: &'static str = "vote"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct DefenderVote { + pub approve: bool, + } + impl ::subxt::Call for DefenderVote { + const PALLET: &'static str = "Society"; + const FUNCTION: &'static str = "defender_vote"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Payout {} + impl ::subxt::Call for Payout { + const PALLET: &'static str = "Society"; + const FUNCTION: &'static str = "payout"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Found { + pub founder: ::subxt::sp_core::crypto::AccountId32, + pub max_members: u32, + pub rules: Vec, + } + impl ::subxt::Call for Found { + const PALLET: &'static str = "Society"; + const FUNCTION: &'static str = "found"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Unfound {} + impl ::subxt::Call for Unfound { + const PALLET: &'static str = "Society"; + const FUNCTION: &'static str = "unfound"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct JudgeSuspendedMember { + pub who: ::subxt::sp_core::crypto::AccountId32, + pub forgive: bool, + } + impl ::subxt::Call for JudgeSuspendedMember { + const PALLET: &'static str = "Society"; + const FUNCTION: &'static str = "judge_suspended_member"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct JudgeSuspendedCandidate { + pub who: ::subxt::sp_core::crypto::AccountId32, + pub judgement: runtime_types::pallet_society::Judgement, + } + impl ::subxt::Call for JudgeSuspendedCandidate { + const PALLET: &'static str = "Society"; + const FUNCTION: &'static str = "judge_suspended_candidate"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct SetMaxMembers { + pub max: u32, + } + impl ::subxt::Call for SetMaxMembers { + const PALLET: &'static str = "Society"; + const FUNCTION: &'static str = "set_max_members"; } pub struct TransactionApi< 'a, @@ -8109,133 +8318,359 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub fn as_multi_threshold1( - &self, - other_signatories: Vec<::subxt::sp_core::crypto::AccountId32>, - call: runtime_types::polkadot_runtime::Call, - ) -> ::subxt::SubmittableExtrinsic { - let call = AsMultiThreshold1 { - other_signatories, - call, - }; + pub fn bid(&self, value: u128) -> ::subxt::SubmittableExtrinsic { + let call = Bid { value }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn as_multi( - &self, - threshold: u16, - other_signatories: Vec<::subxt::sp_core::crypto::AccountId32>, - maybe_timepoint: Option< - runtime_types::pallet_multisig::Timepoint, - >, - call: Vec, - store_call: bool, - max_weight: u64, - ) -> ::subxt::SubmittableExtrinsic { - let call = AsMulti { - threshold, - other_signatories, - maybe_timepoint, - call, - store_call, - max_weight, - }; + pub fn unbid(&self, pos: u32) -> ::subxt::SubmittableExtrinsic { + let call = Unbid { pos }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn approve_as_multi( + pub fn vouch( &self, - threshold: u16, - other_signatories: Vec<::subxt::sp_core::crypto::AccountId32>, - maybe_timepoint: Option< - runtime_types::pallet_multisig::Timepoint, + who: ::subxt::sp_core::crypto::AccountId32, + value: u128, + tip: u128, + ) -> ::subxt::SubmittableExtrinsic { + let call = Vouch { who, value, tip }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn unvouch( + &self, + pos: u32, + ) -> ::subxt::SubmittableExtrinsic { + let call = Unvouch { pos }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn vote( + &self, + candidate: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, >, - call_hash: [u8; 32usize], - max_weight: u64, - ) -> ::subxt::SubmittableExtrinsic { - let call = ApproveAsMulti { - threshold, - other_signatories, - maybe_timepoint, - call_hash, - max_weight, - }; + approve: bool, + ) -> ::subxt::SubmittableExtrinsic { + let call = Vote { candidate, approve }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn cancel_as_multi( + pub fn defender_vote( &self, - threshold: u16, - other_signatories: Vec<::subxt::sp_core::crypto::AccountId32>, - timepoint: runtime_types::pallet_multisig::Timepoint, - call_hash: [u8; 32usize], - ) -> ::subxt::SubmittableExtrinsic { - let call = CancelAsMulti { - threshold, - other_signatories, - timepoint, - call_hash, + approve: bool, + ) -> ::subxt::SubmittableExtrinsic { + let call = DefenderVote { approve }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn payout(&self) -> ::subxt::SubmittableExtrinsic { + let call = Payout {}; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn found( + &self, + founder: ::subxt::sp_core::crypto::AccountId32, + max_members: u32, + rules: Vec, + ) -> ::subxt::SubmittableExtrinsic { + let call = Found { + founder, + max_members, + rules, }; ::subxt::SubmittableExtrinsic::new(self.client, call) } + pub fn unfound(&self) -> ::subxt::SubmittableExtrinsic { + let call = Unfound {}; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn judge_suspended_member( + &self, + who: ::subxt::sp_core::crypto::AccountId32, + forgive: bool, + ) -> ::subxt::SubmittableExtrinsic + { + let call = JudgeSuspendedMember { who, forgive }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn judge_suspended_candidate( + &self, + who: ::subxt::sp_core::crypto::AccountId32, + judgement: runtime_types::pallet_society::Judgement, + ) -> ::subxt::SubmittableExtrinsic + { + let call = JudgeSuspendedCandidate { who, judgement }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn set_max_members( + &self, + max: u32, + ) -> ::subxt::SubmittableExtrinsic { + let call = SetMaxMembers { max }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } } } - pub type Event = runtime_types::pallet_multisig::pallet::Event; + pub type Event = runtime_types::pallet_society::pallet::Event; pub mod events { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct NewMultisig( + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Founded(pub ::subxt::sp_core::crypto::AccountId32); + impl ::subxt::Event for Founded { + const PALLET: &'static str = "Society"; + const EVENT: &'static str = "Founded"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Bid(pub ::subxt::sp_core::crypto::AccountId32, pub u128); + impl ::subxt::Event for Bid { + const PALLET: &'static str = "Society"; + const EVENT: &'static str = "Bid"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Vouch( pub ::subxt::sp_core::crypto::AccountId32, + pub u128, pub ::subxt::sp_core::crypto::AccountId32, - pub [u8; 32usize], ); - impl ::subxt::Event for NewMultisig { - const PALLET: &'static str = "Multisig"; - const EVENT: &'static str = "NewMultisig"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct MultisigApproval( - pub ::subxt::sp_core::crypto::AccountId32, - pub runtime_types::pallet_multisig::Timepoint, + impl ::subxt::Event for Vouch { + const PALLET: &'static str = "Society"; + const EVENT: &'static str = "Vouch"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct AutoUnbid(pub ::subxt::sp_core::crypto::AccountId32); + impl ::subxt::Event for AutoUnbid { + const PALLET: &'static str = "Society"; + const EVENT: &'static str = "AutoUnbid"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Unbid(pub ::subxt::sp_core::crypto::AccountId32); + impl ::subxt::Event for Unbid { + const PALLET: &'static str = "Society"; + const EVENT: &'static str = "Unbid"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Unvouch(pub ::subxt::sp_core::crypto::AccountId32); + impl ::subxt::Event for Unvouch { + const PALLET: &'static str = "Society"; + const EVENT: &'static str = "Unvouch"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Inducted( pub ::subxt::sp_core::crypto::AccountId32, - pub [u8; 32usize], + pub Vec<::subxt::sp_core::crypto::AccountId32>, ); - impl ::subxt::Event for MultisigApproval { - const PALLET: &'static str = "Multisig"; - const EVENT: &'static str = "MultisigApproval"; + impl ::subxt::Event for Inducted { + const PALLET: &'static str = "Society"; + const EVENT: &'static str = "Inducted"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct MultisigExecuted( - pub ::subxt::sp_core::crypto::AccountId32, - pub runtime_types::pallet_multisig::Timepoint, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct SuspendedMemberJudgement( pub ::subxt::sp_core::crypto::AccountId32, - pub [u8; 32usize], - pub Result<(), runtime_types::sp_runtime::DispatchError>, + pub bool, ); - impl ::subxt::Event for MultisigExecuted { - const PALLET: &'static str = "Multisig"; - const EVENT: &'static str = "MultisigExecuted"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct MultisigCancelled( + impl ::subxt::Event for SuspendedMemberJudgement { + const PALLET: &'static str = "Society"; + const EVENT: &'static str = "SuspendedMemberJudgement"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct CandidateSuspended(pub ::subxt::sp_core::crypto::AccountId32); + impl ::subxt::Event for CandidateSuspended { + const PALLET: &'static str = "Society"; + const EVENT: &'static str = "CandidateSuspended"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct MemberSuspended(pub ::subxt::sp_core::crypto::AccountId32); + impl ::subxt::Event for MemberSuspended { + const PALLET: &'static str = "Society"; + const EVENT: &'static str = "MemberSuspended"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Challenged(pub ::subxt::sp_core::crypto::AccountId32); + impl ::subxt::Event for Challenged { + const PALLET: &'static str = "Society"; + const EVENT: &'static str = "Challenged"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Vote( pub ::subxt::sp_core::crypto::AccountId32, - pub runtime_types::pallet_multisig::Timepoint, pub ::subxt::sp_core::crypto::AccountId32, - pub [u8; 32usize], + pub bool, ); - impl ::subxt::Event for MultisigCancelled { - const PALLET: &'static str = "Multisig"; - const EVENT: &'static str = "MultisigCancelled"; + impl ::subxt::Event for Vote { + const PALLET: &'static str = "Society"; + const EVENT: &'static str = "Vote"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct DefenderVote(pub ::subxt::sp_core::crypto::AccountId32, pub bool); + impl ::subxt::Event for DefenderVote { + const PALLET: &'static str = "Society"; + const EVENT: &'static str = "DefenderVote"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct NewMaxMembers(pub u32); + impl ::subxt::Event for NewMaxMembers { + const PALLET: &'static str = "Society"; + const EVENT: &'static str = "NewMaxMembers"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Unfounded(pub ::subxt::sp_core::crypto::AccountId32); + impl ::subxt::Event for Unfounded { + const PALLET: &'static str = "Society"; + const EVENT: &'static str = "Unfounded"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Deposit(pub u128); + impl ::subxt::Event for Deposit { + const PALLET: &'static str = "Society"; + const EVENT: &'static str = "Deposit"; } } pub mod storage { use super::runtime_types; - pub struct Multisigs(::subxt::sp_core::crypto::AccountId32, [u8; 32usize]); - impl ::subxt::StorageEntry for Multisigs { - const PALLET: &'static str = "Multisig"; - const STORAGE: &'static str = "Multisigs"; - type Value = runtime_types::pallet_multisig::Multisig< - u32, + pub struct Founder; + impl ::subxt::StorageEntry for Founder { + const PALLET: &'static str = "Society"; + const STORAGE: &'static str = "Founder"; + type Value = ::subxt::sp_core::crypto::AccountId32; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct Rules; + impl ::subxt::StorageEntry for Rules { + const PALLET: &'static str = "Society"; + const STORAGE: &'static str = "Rules"; + type Value = ::subxt::sp_core::H256; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct Candidates; + impl ::subxt::StorageEntry for Candidates { + const PALLET: &'static str = "Society"; + const STORAGE: &'static str = "Candidates"; + type Value = Vec< + runtime_types::pallet_society::Bid< + ::subxt::sp_core::crypto::AccountId32, + u128, + >, + >; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct SuspendedCandidates(pub ::subxt::sp_core::crypto::AccountId32); + impl ::subxt::StorageEntry for SuspendedCandidates { + const PALLET: &'static str = "Society"; + const STORAGE: &'static str = "SuspendedCandidates"; + type Value = ( u128, - ::subxt::sp_core::crypto::AccountId32, + runtime_types::pallet_society::BidKind< + ::subxt::sp_core::crypto::AccountId32, + u128, + >, + ); + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) + } + } + pub struct Pot; + impl ::subxt::StorageEntry for Pot { + const PALLET: &'static str = "Society"; + const STORAGE: &'static str = "Pot"; + type Value = u128; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct Head; + impl ::subxt::StorageEntry for Head { + const PALLET: &'static str = "Society"; + const STORAGE: &'static str = "Head"; + type Value = ::subxt::sp_core::crypto::AccountId32; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct Members; + impl ::subxt::StorageEntry for Members { + const PALLET: &'static str = "Society"; + const STORAGE: &'static str = "Members"; + type Value = Vec<::subxt::sp_core::crypto::AccountId32>; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct SuspendedMembers(pub ::subxt::sp_core::crypto::AccountId32); + impl ::subxt::StorageEntry for SuspendedMembers { + const PALLET: &'static str = "Society"; + const STORAGE: &'static str = "SuspendedMembers"; + type Value = bool; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) + } + } + pub struct Bids; + impl ::subxt::StorageEntry for Bids { + const PALLET: &'static str = "Society"; + const STORAGE: &'static str = "Bids"; + type Value = Vec< + runtime_types::pallet_society::Bid< + ::subxt::sp_core::crypto::AccountId32, + u128, + >, >; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct Vouching(pub ::subxt::sp_core::crypto::AccountId32); + impl ::subxt::StorageEntry for Vouching { + const PALLET: &'static str = "Society"; + const STORAGE: &'static str = "Vouching"; + type Value = runtime_types::pallet_society::VouchingStatus; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) + } + } + pub struct Payouts(pub ::subxt::sp_core::crypto::AccountId32); + impl ::subxt::StorageEntry for Payouts { + const PALLET: &'static str = "Society"; + const STORAGE: &'static str = "Payouts"; + type Value = Vec<(u32, u128)>; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) + } + } + pub struct Strikes(pub ::subxt::sp_core::crypto::AccountId32); + impl ::subxt::StorageEntry for Strikes { + const PALLET: &'static str = "Society"; + const STORAGE: &'static str = "Strikes"; + type Value = u32; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) + } + } + pub struct Votes( + ::subxt::sp_core::crypto::AccountId32, + ::subxt::sp_core::crypto::AccountId32, + ); + impl ::subxt::StorageEntry for Votes { + const PALLET: &'static str = "Society"; + const STORAGE: &'static str = "Votes"; + type Value = runtime_types::pallet_society::Vote; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![ ::subxt::StorageMapKey::new( @@ -8244,23 +8679,41 @@ pub mod api { ), ::subxt::StorageMapKey::new( &self.1, - ::subxt::StorageHasher::Blake2_128Concat, + ::subxt::StorageHasher::Twox64Concat, ), ]) } } - pub struct Calls(pub [u8; 32usize]); - impl ::subxt::StorageEntry for Calls { - const PALLET: &'static str = "Multisig"; - const STORAGE: &'static str = "Calls"; - type Value = (Vec, ::subxt::sp_core::crypto::AccountId32, u128); + pub struct Defender; + impl ::subxt::StorageEntry for Defender { + const PALLET: &'static str = "Society"; + const STORAGE: &'static str = "Defender"; + type Value = ::subxt::sp_core::crypto::AccountId32; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct DefenderVotes(pub ::subxt::sp_core::crypto::AccountId32); + impl ::subxt::StorageEntry for DefenderVotes { + const PALLET: &'static str = "Society"; + const STORAGE: &'static str = "DefenderVotes"; + type Value = runtime_types::pallet_society::Vote; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( &self.0, - ::subxt::StorageHasher::Identity, + ::subxt::StorageHasher::Twox64Concat, )]) } } + pub struct MaxMembers; + impl ::subxt::StorageEntry for MaxMembers { + const PALLET: &'static str = "Society"; + const STORAGE: &'static str = "MaxMembers"; + type Value = u32; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } pub struct StorageApi<'a, T: ::subxt::Config> { client: &'a ::subxt::Client, } @@ -8268,138 +8721,318 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub async fn multisigs( + pub async fn founder( &self, - _0: ::subxt::sp_core::crypto::AccountId32, - _1: [u8; 32usize], hash: ::core::option::Option, ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::pallet_multisig::Multisig< - u32, - u128, - ::subxt::sp_core::crypto::AccountId32, - >, - >, + ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, ::subxt::Error, > { - let entry = Multisigs(_0, _1); + let entry = Founder; self.client.storage().fetch(&entry, hash).await } - pub async fn calls( + pub async fn rules( &self, - _0: [u8; 32usize], hash: ::core::option::Option, ) -> ::core::result::Result< - ::core::option::Option<( - Vec, - ::subxt::sp_core::crypto::AccountId32, - u128, - )>, + ::core::option::Option<::subxt::sp_core::H256>, ::subxt::Error, > { - let entry = Calls(_0); + let entry = Rules; self.client.storage().fetch(&entry, hash).await } + pub async fn candidates( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + Vec< + runtime_types::pallet_society::Bid< + ::subxt::sp_core::crypto::AccountId32, + u128, + >, + >, + ::subxt::Error, + > { + let entry = Candidates; + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn suspended_candidates( + &self, + _0: ::subxt::sp_core::crypto::AccountId32, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option<( + u128, + runtime_types::pallet_society::BidKind< + ::subxt::sp_core::crypto::AccountId32, + u128, + >, + )>, + ::subxt::Error, + > { + let entry = SuspendedCandidates(_0); + self.client.storage().fetch(&entry, hash).await + } + pub async fn suspended_candidates_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, SuspendedCandidates>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } + pub async fn pot( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result { + let entry = Pot; + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn head( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, + ::subxt::Error, + > { + let entry = Head; + self.client.storage().fetch(&entry, hash).await + } + pub async fn members( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + Vec<::subxt::sp_core::crypto::AccountId32>, + ::subxt::Error, + > { + let entry = Members; + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn suspended_members( + &self, + _0: ::subxt::sp_core::crypto::AccountId32, + hash: ::core::option::Option, + ) -> ::core::result::Result { + let entry = SuspendedMembers(_0); + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn suspended_members_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, SuspendedMembers>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } + pub async fn bids( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + Vec< + runtime_types::pallet_society::Bid< + ::subxt::sp_core::crypto::AccountId32, + u128, + >, + >, + ::subxt::Error, + > { + let entry = Bids; + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn vouching( + &self, + _0: ::subxt::sp_core::crypto::AccountId32, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option, + ::subxt::Error, + > { + let entry = Vouching(_0); + self.client.storage().fetch(&entry, hash).await + } + pub async fn vouching_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, Vouching>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } + pub async fn payouts( + &self, + _0: ::subxt::sp_core::crypto::AccountId32, + hash: ::core::option::Option, + ) -> ::core::result::Result, ::subxt::Error> + { + let entry = Payouts(_0); + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn payouts_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, Payouts>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } + pub async fn strikes( + &self, + _0: ::subxt::sp_core::crypto::AccountId32, + hash: ::core::option::Option, + ) -> ::core::result::Result { + let entry = Strikes(_0); + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn strikes_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, Strikes>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } + pub async fn votes( + &self, + _0: ::subxt::sp_core::crypto::AccountId32, + _1: ::subxt::sp_core::crypto::AccountId32, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option, + ::subxt::Error, + > { + let entry = Votes(_0, _1); + self.client.storage().fetch(&entry, hash).await + } + pub async fn votes_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result<::subxt::KeyIter<'a, T, Votes>, ::subxt::Error> + { + self.client.storage().iter(hash).await + } + pub async fn defender( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, + ::subxt::Error, + > { + let entry = Defender; + self.client.storage().fetch(&entry, hash).await + } + pub async fn defender_votes( + &self, + _0: ::subxt::sp_core::crypto::AccountId32, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option, + ::subxt::Error, + > { + let entry = DefenderVotes(_0); + self.client.storage().fetch(&entry, hash).await + } + pub async fn defender_votes_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, DefenderVotes>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } + pub async fn max_members( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result { + let entry = MaxMembers; + self.client.storage().fetch_or_default(&entry, hash).await + } } - } - } - pub mod bounties { - use super::runtime_types; - pub mod calls { - use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ProposeBounty { - #[codec(compact)] - pub value: u128, - pub description: Vec, - } - impl ::subxt::Call for ProposeBounty { - const PALLET: &'static str = "Bounties"; - const FUNCTION: &'static str = "propose_bounty"; + } + } + pub mod recovery { + use super::runtime_types; + pub mod calls { + use super::runtime_types; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct AsRecovered { + pub account: ::subxt::sp_core::crypto::AccountId32, + pub call: runtime_types::node_runtime::Call, } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ApproveBounty { - #[codec(compact)] - pub bounty_id: u32, + impl ::subxt::Call for AsRecovered { + const PALLET: &'static str = "Recovery"; + const FUNCTION: &'static str = "as_recovered"; } - impl ::subxt::Call for ApproveBounty { - const PALLET: &'static str = "Bounties"; - const FUNCTION: &'static str = "approve_bounty"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct SetRecovered { + pub lost: ::subxt::sp_core::crypto::AccountId32, + pub rescuer: ::subxt::sp_core::crypto::AccountId32, } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ProposeCurator { - #[codec(compact)] - pub bounty_id: u32, - pub curator: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - #[codec(compact)] - pub fee: u128, + impl ::subxt::Call for SetRecovered { + const PALLET: &'static str = "Recovery"; + const FUNCTION: &'static str = "set_recovered"; } - impl ::subxt::Call for ProposeCurator { - const PALLET: &'static str = "Bounties"; - const FUNCTION: &'static str = "propose_curator"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct CreateRecovery { + pub friends: Vec<::subxt::sp_core::crypto::AccountId32>, + pub threshold: u16, + pub delay_period: u32, } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct UnassignCurator { - #[codec(compact)] - pub bounty_id: u32, + impl ::subxt::Call for CreateRecovery { + const PALLET: &'static str = "Recovery"; + const FUNCTION: &'static str = "create_recovery"; } - impl ::subxt::Call for UnassignCurator { - const PALLET: &'static str = "Bounties"; - const FUNCTION: &'static str = "unassign_curator"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct InitiateRecovery { + pub account: ::subxt::sp_core::crypto::AccountId32, } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct AcceptCurator { - #[codec(compact)] - pub bounty_id: u32, + impl ::subxt::Call for InitiateRecovery { + const PALLET: &'static str = "Recovery"; + const FUNCTION: &'static str = "initiate_recovery"; } - impl ::subxt::Call for AcceptCurator { - const PALLET: &'static str = "Bounties"; - const FUNCTION: &'static str = "accept_curator"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct VouchRecovery { + pub lost: ::subxt::sp_core::crypto::AccountId32, + pub rescuer: ::subxt::sp_core::crypto::AccountId32, } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct AwardBounty { - #[codec(compact)] - pub bounty_id: u32, - pub beneficiary: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, + impl ::subxt::Call for VouchRecovery { + const PALLET: &'static str = "Recovery"; + const FUNCTION: &'static str = "vouch_recovery"; } - impl ::subxt::Call for AwardBounty { - const PALLET: &'static str = "Bounties"; - const FUNCTION: &'static str = "award_bounty"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ClaimRecovery { + pub account: ::subxt::sp_core::crypto::AccountId32, } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ClaimBounty { - #[codec(compact)] - pub bounty_id: u32, + impl ::subxt::Call for ClaimRecovery { + const PALLET: &'static str = "Recovery"; + const FUNCTION: &'static str = "claim_recovery"; } - impl ::subxt::Call for ClaimBounty { - const PALLET: &'static str = "Bounties"; - const FUNCTION: &'static str = "claim_bounty"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct CloseRecovery { + pub rescuer: ::subxt::sp_core::crypto::AccountId32, } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct CloseBounty { - #[codec(compact)] - pub bounty_id: u32, + impl ::subxt::Call for CloseRecovery { + const PALLET: &'static str = "Recovery"; + const FUNCTION: &'static str = "close_recovery"; } - impl ::subxt::Call for CloseBounty { - const PALLET: &'static str = "Bounties"; - const FUNCTION: &'static str = "close_bounty"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct RemoveRecovery {} + impl ::subxt::Call for RemoveRecovery { + const PALLET: &'static str = "Recovery"; + const FUNCTION: &'static str = "remove_recovery"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ExtendBountyExpiry { - #[codec(compact)] - pub bounty_id: u32, - pub remark: Vec, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct CancelRecovered { + pub account: ::subxt::sp_core::crypto::AccountId32, } - impl ::subxt::Call for ExtendBountyExpiry { - const PALLET: &'static str = "Bounties"; - const FUNCTION: &'static str = "extend_bounty_expiry"; + impl ::subxt::Call for CancelRecovered { + const PALLET: &'static str = "Recovery"; + const FUNCTION: &'static str = "cancel_recovered"; } pub struct TransactionApi< 'a, @@ -8414,159 +9047,142 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub fn propose_bounty( + pub fn as_recovered( &self, - value: u128, - description: Vec, - ) -> ::subxt::SubmittableExtrinsic { - let call = ProposeBounty { value, description }; + account: ::subxt::sp_core::crypto::AccountId32, + call: runtime_types::node_runtime::Call, + ) -> ::subxt::SubmittableExtrinsic { + let call = AsRecovered { account, call }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn approve_bounty( + pub fn set_recovered( &self, - bounty_id: u32, - ) -> ::subxt::SubmittableExtrinsic { - let call = ApproveBounty { bounty_id }; + lost: ::subxt::sp_core::crypto::AccountId32, + rescuer: ::subxt::sp_core::crypto::AccountId32, + ) -> ::subxt::SubmittableExtrinsic { + let call = SetRecovered { lost, rescuer }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn propose_curator( + pub fn create_recovery( &self, - bounty_id: u32, - curator: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - fee: u128, - ) -> ::subxt::SubmittableExtrinsic { - let call = ProposeCurator { - bounty_id, - curator, - fee, - }; + friends: Vec<::subxt::sp_core::crypto::AccountId32>, + threshold: u16, + delay_period: u32, + ) -> ::subxt::SubmittableExtrinsic { + let call = CreateRecovery { + friends, + threshold, + delay_period, + }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn unassign_curator( + pub fn initiate_recovery( &self, - bounty_id: u32, - ) -> ::subxt::SubmittableExtrinsic { - let call = UnassignCurator { bounty_id }; + account: ::subxt::sp_core::crypto::AccountId32, + ) -> ::subxt::SubmittableExtrinsic { + let call = InitiateRecovery { account }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn accept_curator( + pub fn vouch_recovery( &self, - bounty_id: u32, - ) -> ::subxt::SubmittableExtrinsic { - let call = AcceptCurator { bounty_id }; + lost: ::subxt::sp_core::crypto::AccountId32, + rescuer: ::subxt::sp_core::crypto::AccountId32, + ) -> ::subxt::SubmittableExtrinsic { + let call = VouchRecovery { lost, rescuer }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn award_bounty( + pub fn claim_recovery( &self, - bounty_id: u32, - beneficiary: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - ) -> ::subxt::SubmittableExtrinsic { - let call = AwardBounty { - bounty_id, - beneficiary, - }; + account: ::subxt::sp_core::crypto::AccountId32, + ) -> ::subxt::SubmittableExtrinsic { + let call = ClaimRecovery { account }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn claim_bounty( + pub fn close_recovery( &self, - bounty_id: u32, - ) -> ::subxt::SubmittableExtrinsic { - let call = ClaimBounty { bounty_id }; + rescuer: ::subxt::sp_core::crypto::AccountId32, + ) -> ::subxt::SubmittableExtrinsic { + let call = CloseRecovery { rescuer }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn close_bounty( + pub fn remove_recovery( &self, - bounty_id: u32, - ) -> ::subxt::SubmittableExtrinsic { - let call = CloseBounty { bounty_id }; + ) -> ::subxt::SubmittableExtrinsic { + let call = RemoveRecovery {}; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn extend_bounty_expiry( + pub fn cancel_recovered( &self, - bounty_id: u32, - remark: Vec, - ) -> ::subxt::SubmittableExtrinsic - { - let call = ExtendBountyExpiry { bounty_id, remark }; + account: ::subxt::sp_core::crypto::AccountId32, + ) -> ::subxt::SubmittableExtrinsic { + let call = CancelRecovered { account }; ::subxt::SubmittableExtrinsic::new(self.client, call) } } } - pub type Event = runtime_types::pallet_bounties::pallet::Event; + pub type Event = runtime_types::pallet_recovery::pallet::Event; pub mod events { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct BountyProposed(pub u32); - impl ::subxt::Event for BountyProposed { - const PALLET: &'static str = "Bounties"; - const EVENT: &'static str = "BountyProposed"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct BountyRejected(pub u32, pub u128); - impl ::subxt::Event for BountyRejected { - const PALLET: &'static str = "Bounties"; - const EVENT: &'static str = "BountyRejected"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct BountyBecameActive(pub u32); - impl ::subxt::Event for BountyBecameActive { - const PALLET: &'static str = "Bounties"; - const EVENT: &'static str = "BountyBecameActive"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct RecoveryCreated(pub ::subxt::sp_core::crypto::AccountId32); + impl ::subxt::Event for RecoveryCreated { + const PALLET: &'static str = "Recovery"; + const EVENT: &'static str = "RecoveryCreated"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct RecoveryInitiated( + pub ::subxt::sp_core::crypto::AccountId32, + pub ::subxt::sp_core::crypto::AccountId32, + ); + impl ::subxt::Event for RecoveryInitiated { + const PALLET: &'static str = "Recovery"; + const EVENT: &'static str = "RecoveryInitiated"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct BountyAwarded(pub u32, pub ::subxt::sp_core::crypto::AccountId32); - impl ::subxt::Event for BountyAwarded { - const PALLET: &'static str = "Bounties"; - const EVENT: &'static str = "BountyAwarded"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct RecoveryVouched( + pub ::subxt::sp_core::crypto::AccountId32, + pub ::subxt::sp_core::crypto::AccountId32, + pub ::subxt::sp_core::crypto::AccountId32, + ); + impl ::subxt::Event for RecoveryVouched { + const PALLET: &'static str = "Recovery"; + const EVENT: &'static str = "RecoveryVouched"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct BountyClaimed( - pub u32, - pub u128, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct RecoveryClosed( + pub ::subxt::sp_core::crypto::AccountId32, pub ::subxt::sp_core::crypto::AccountId32, ); - impl ::subxt::Event for BountyClaimed { - const PALLET: &'static str = "Bounties"; - const EVENT: &'static str = "BountyClaimed"; + impl ::subxt::Event for RecoveryClosed { + const PALLET: &'static str = "Recovery"; + const EVENT: &'static str = "RecoveryClosed"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct BountyCanceled(pub u32); - impl ::subxt::Event for BountyCanceled { - const PALLET: &'static str = "Bounties"; - const EVENT: &'static str = "BountyCanceled"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct AccountRecovered( + pub ::subxt::sp_core::crypto::AccountId32, + pub ::subxt::sp_core::crypto::AccountId32, + ); + impl ::subxt::Event for AccountRecovered { + const PALLET: &'static str = "Recovery"; + const EVENT: &'static str = "AccountRecovered"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct BountyExtended(pub u32); - impl ::subxt::Event for BountyExtended { - const PALLET: &'static str = "Bounties"; - const EVENT: &'static str = "BountyExtended"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct RecoveryRemoved(pub ::subxt::sp_core::crypto::AccountId32); + impl ::subxt::Event for RecoveryRemoved { + const PALLET: &'static str = "Recovery"; + const EVENT: &'static str = "RecoveryRemoved"; } } pub mod storage { use super::runtime_types; - pub struct BountyCount; - impl ::subxt::StorageEntry for BountyCount { - const PALLET: &'static str = "Bounties"; - const STORAGE: &'static str = "BountyCount"; - type Value = u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct Bounties(pub u32); - impl ::subxt::StorageEntry for Bounties { - const PALLET: &'static str = "Bounties"; - const STORAGE: &'static str = "Bounties"; - type Value = runtime_types::pallet_bounties::Bounty< - ::subxt::sp_core::crypto::AccountId32, - u128, + pub struct Recoverable(pub ::subxt::sp_core::crypto::AccountId32); + impl ::subxt::StorageEntry for Recoverable { + const PALLET: &'static str = "Recovery"; + const STORAGE: &'static str = "Recoverable"; + type Value = runtime_types::pallet_recovery::RecoveryConfig< u32, + u128, + ::subxt::sp_core::crypto::AccountId32, >; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( @@ -8575,25 +9191,41 @@ pub mod api { )]) } } - pub struct BountyDescriptions(pub u32); - impl ::subxt::StorageEntry for BountyDescriptions { - const PALLET: &'static str = "Bounties"; - const STORAGE: &'static str = "BountyDescriptions"; - type Value = Vec; + pub struct ActiveRecoveries( + ::subxt::sp_core::crypto::AccountId32, + ::subxt::sp_core::crypto::AccountId32, + ); + impl ::subxt::StorageEntry for ActiveRecoveries { + const PALLET: &'static str = "Recovery"; + const STORAGE: &'static str = "ActiveRecoveries"; + type Value = runtime_types::pallet_recovery::ActiveRecovery< + u32, + u128, + ::subxt::sp_core::crypto::AccountId32, + >; fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) + ::subxt::StorageEntryKey::Map(vec![ + ::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + ), + ::subxt::StorageMapKey::new( + &self.1, + ::subxt::StorageHasher::Twox64Concat, + ), + ]) } } - pub struct BountyApprovals; - impl ::subxt::StorageEntry for BountyApprovals { - const PALLET: &'static str = "Bounties"; - const STORAGE: &'static str = "BountyApprovals"; - type Value = Vec; + pub struct Proxy(pub ::subxt::sp_core::crypto::AccountId32); + impl ::subxt::StorageEntry for Proxy { + const PALLET: &'static str = "Recovery"; + const STORAGE: &'static str = "Proxy"; + type Value = ::subxt::sp_core::crypto::AccountId32; fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Blake2_128Concat, + )]) } } pub struct StorageApi<'a, T: ::subxt::Config> { @@ -8603,106 +9235,139 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub async fn bounty_count( + pub async fn recoverable( &self, + _0: ::subxt::sp_core::crypto::AccountId32, hash: ::core::option::Option, - ) -> ::core::result::Result { - let entry = BountyCount; - self.client.storage().fetch_or_default(&entry, hash).await + ) -> ::core::result::Result< + ::core::option::Option< + runtime_types::pallet_recovery::RecoveryConfig< + u32, + u128, + ::subxt::sp_core::crypto::AccountId32, + >, + >, + ::subxt::Error, + > { + let entry = Recoverable(_0); + self.client.storage().fetch(&entry, hash).await } - pub async fn bounties( + pub async fn recoverable_iter( &self, - _0: u32, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, Recoverable>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } + pub async fn active_recoveries( + &self, + _0: ::subxt::sp_core::crypto::AccountId32, + _1: ::subxt::sp_core::crypto::AccountId32, hash: ::core::option::Option, ) -> ::core::result::Result< ::core::option::Option< - runtime_types::pallet_bounties::Bounty< - ::subxt::sp_core::crypto::AccountId32, - u128, + runtime_types::pallet_recovery::ActiveRecovery< u32, + u128, + ::subxt::sp_core::crypto::AccountId32, >, >, ::subxt::Error, > { - let entry = Bounties(_0); + let entry = ActiveRecoveries(_0, _1); self.client.storage().fetch(&entry, hash).await } - pub async fn bounty_descriptions( + pub async fn active_recoveries_iter( &self, - _0: u32, hash: ::core::option::Option, - ) -> ::core::result::Result<::core::option::Option>, ::subxt::Error> - { - let entry = BountyDescriptions(_0); + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, ActiveRecoveries>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } + pub async fn proxy( + &self, + _0: ::subxt::sp_core::crypto::AccountId32, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, + ::subxt::Error, + > { + let entry = Proxy(_0); self.client.storage().fetch(&entry, hash).await } - pub async fn bounty_approvals( + pub async fn proxy_iter( &self, hash: ::core::option::Option, - ) -> ::core::result::Result, ::subxt::Error> { - let entry = BountyApprovals; - self.client.storage().fetch_or_default(&entry, hash).await + ) -> ::core::result::Result<::subxt::KeyIter<'a, T, Proxy>, ::subxt::Error> + { + self.client.storage().iter(hash).await } } } } - pub mod tips { + pub mod vesting { use super::runtime_types; pub mod calls { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ReportAwesome { - pub reason: Vec, - pub who: ::subxt::sp_core::crypto::AccountId32, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Vest {} + impl ::subxt::Call for Vest { + const PALLET: &'static str = "Vesting"; + const FUNCTION: &'static str = "vest"; } - impl ::subxt::Call for ReportAwesome { - const PALLET: &'static str = "Tips"; - const FUNCTION: &'static str = "report_awesome"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct VestOther { + pub target: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct RetractTip { - pub hash: ::subxt::sp_core::H256, + impl ::subxt::Call for VestOther { + const PALLET: &'static str = "Vesting"; + const FUNCTION: &'static str = "vest_other"; } - impl ::subxt::Call for RetractTip { - const PALLET: &'static str = "Tips"; - const FUNCTION: &'static str = "retract_tip"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct VestedTransfer { + pub target: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + pub schedule: + runtime_types::pallet_vesting::vesting_info::VestingInfo, } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct TipNew { - pub reason: Vec, - pub who: ::subxt::sp_core::crypto::AccountId32, - #[codec(compact)] - pub tip_value: u128, + impl ::subxt::Call for VestedTransfer { + const PALLET: &'static str = "Vesting"; + const FUNCTION: &'static str = "vested_transfer"; } - impl ::subxt::Call for TipNew { - const PALLET: &'static str = "Tips"; - const FUNCTION: &'static str = "tip_new"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ForceVestedTransfer { + pub source: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + pub target: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + pub schedule: + runtime_types::pallet_vesting::vesting_info::VestingInfo, } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Tip { - pub hash: ::subxt::sp_core::H256, - #[codec(compact)] - pub tip_value: u128, + impl ::subxt::Call for ForceVestedTransfer { + const PALLET: &'static str = "Vesting"; + const FUNCTION: &'static str = "force_vested_transfer"; } - impl ::subxt::Call for Tip { - const PALLET: &'static str = "Tips"; - const FUNCTION: &'static str = "tip"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct MergeSchedules { + pub schedule1_index: u32, + pub schedule2_index: u32, } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct CloseTip { - pub hash: ::subxt::sp_core::H256, - } - impl ::subxt::Call for CloseTip { - const PALLET: &'static str = "Tips"; - const FUNCTION: &'static str = "close_tip"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SlashTip { - pub hash: ::subxt::sp_core::H256, - } - impl ::subxt::Call for SlashTip { - const PALLET: &'static str = "Tips"; - const FUNCTION: &'static str = "slash_tip"; + impl ::subxt::Call for MergeSchedules { + const PALLET: &'static str = "Vesting"; + const FUNCTION: &'static str = "merge_schedules"; } pub struct TransactionApi< 'a, @@ -8717,129 +9382,116 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub fn report_awesome( - &self, - reason: Vec, - who: ::subxt::sp_core::crypto::AccountId32, - ) -> ::subxt::SubmittableExtrinsic { - let call = ReportAwesome { reason, who }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn retract_tip( - &self, - hash: ::subxt::sp_core::H256, - ) -> ::subxt::SubmittableExtrinsic { - let call = RetractTip { hash }; + pub fn vest(&self) -> ::subxt::SubmittableExtrinsic { + let call = Vest {}; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn tip_new( + pub fn vest_other( &self, - reason: Vec, - who: ::subxt::sp_core::crypto::AccountId32, - tip_value: u128, - ) -> ::subxt::SubmittableExtrinsic { - let call = TipNew { - reason, - who, - tip_value, - }; + target: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + ) -> ::subxt::SubmittableExtrinsic { + let call = VestOther { target }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn tip( + pub fn vested_transfer( &self, - hash: ::subxt::sp_core::H256, - tip_value: u128, - ) -> ::subxt::SubmittableExtrinsic { - let call = Tip { hash, tip_value }; + target: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + schedule: runtime_types::pallet_vesting::vesting_info::VestingInfo< + u128, + u32, + >, + ) -> ::subxt::SubmittableExtrinsic { + let call = VestedTransfer { target, schedule }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn close_tip( + pub fn force_vested_transfer( &self, - hash: ::subxt::sp_core::H256, - ) -> ::subxt::SubmittableExtrinsic { - let call = CloseTip { hash }; + source: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + target: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + schedule: runtime_types::pallet_vesting::vesting_info::VestingInfo< + u128, + u32, + >, + ) -> ::subxt::SubmittableExtrinsic + { + let call = ForceVestedTransfer { + source, + target, + schedule, + }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn slash_tip( + pub fn merge_schedules( &self, - hash: ::subxt::sp_core::H256, - ) -> ::subxt::SubmittableExtrinsic { - let call = SlashTip { hash }; + schedule1_index: u32, + schedule2_index: u32, + ) -> ::subxt::SubmittableExtrinsic { + let call = MergeSchedules { + schedule1_index, + schedule2_index, + }; ::subxt::SubmittableExtrinsic::new(self.client, call) } } } - pub type Event = runtime_types::pallet_tips::pallet::Event; + pub type Event = runtime_types::pallet_vesting::pallet::Event; pub mod events { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct NewTip(pub ::subxt::sp_core::H256); - impl ::subxt::Event for NewTip { - const PALLET: &'static str = "Tips"; - const EVENT: &'static str = "NewTip"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct TipClosing(pub ::subxt::sp_core::H256); - impl ::subxt::Event for TipClosing { - const PALLET: &'static str = "Tips"; - const EVENT: &'static str = "TipClosing"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct TipClosed( - pub ::subxt::sp_core::H256, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct VestingUpdated( pub ::subxt::sp_core::crypto::AccountId32, pub u128, ); - impl ::subxt::Event for TipClosed { - const PALLET: &'static str = "Tips"; - const EVENT: &'static str = "TipClosed"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct TipRetracted(pub ::subxt::sp_core::H256); - impl ::subxt::Event for TipRetracted { - const PALLET: &'static str = "Tips"; - const EVENT: &'static str = "TipRetracted"; + impl ::subxt::Event for VestingUpdated { + const PALLET: &'static str = "Vesting"; + const EVENT: &'static str = "VestingUpdated"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct TipSlashed( - pub ::subxt::sp_core::H256, - pub ::subxt::sp_core::crypto::AccountId32, - pub u128, - ); - impl ::subxt::Event for TipSlashed { - const PALLET: &'static str = "Tips"; - const EVENT: &'static str = "TipSlashed"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct VestingCompleted(pub ::subxt::sp_core::crypto::AccountId32); + impl ::subxt::Event for VestingCompleted { + const PALLET: &'static str = "Vesting"; + const EVENT: &'static str = "VestingCompleted"; } } pub mod storage { use super::runtime_types; - pub struct Tips(pub ::subxt::sp_core::H256); - impl ::subxt::StorageEntry for Tips { - const PALLET: &'static str = "Tips"; - const STORAGE: &'static str = "Tips"; - type Value = runtime_types::pallet_tips::OpenTip< - ::subxt::sp_core::crypto::AccountId32, - u128, - u32, - ::subxt::sp_core::H256, - >; + pub struct Vesting(pub ::subxt::sp_core::crypto::AccountId32); + impl ::subxt::StorageEntry for Vesting { + const PALLET: &'static str = "Vesting"; + const STORAGE: &'static str = "Vesting"; + type Value = + runtime_types::frame_support::storage::bounded_vec::BoundedVec< + runtime_types::pallet_vesting::vesting_info::VestingInfo< + u128, + u32, + >, + >; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( &self.0, - ::subxt::StorageHasher::Twox64Concat, + ::subxt::StorageHasher::Blake2_128Concat, )]) } } - pub struct Reasons(pub ::subxt::sp_core::H256); - impl ::subxt::StorageEntry for Reasons { - const PALLET: &'static str = "Tips"; - const STORAGE: &'static str = "Reasons"; - type Value = Vec; + pub struct StorageVersion; + impl ::subxt::StorageEntry for StorageVersion { + const PALLET: &'static str = "Vesting"; + const STORAGE: &'static str = "StorageVersion"; + type Value = runtime_types::pallet_vesting::Releases; fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Identity, - )]) + ::subxt::StorageEntryKey::Plain } } pub struct StorageApi<'a, T: ::subxt::Config> { @@ -8849,78 +9501,112 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub async fn tips( + pub async fn vesting( &self, - _0: ::subxt::sp_core::H256, + _0: ::subxt::sp_core::crypto::AccountId32, hash: ::core::option::Option, ) -> ::core::result::Result< ::core::option::Option< - runtime_types::pallet_tips::OpenTip< - ::subxt::sp_core::crypto::AccountId32, - u128, - u32, - ::subxt::sp_core::H256, + runtime_types::frame_support::storage::bounded_vec::BoundedVec< + runtime_types::pallet_vesting::vesting_info::VestingInfo< + u128, + u32, + >, >, >, ::subxt::Error, > { - let entry = Tips(_0); + let entry = Vesting(_0); self.client.storage().fetch(&entry, hash).await } - pub async fn reasons( + pub async fn vesting_iter( &self, - _0: ::subxt::sp_core::H256, hash: ::core::option::Option, - ) -> ::core::result::Result<::core::option::Option>, ::subxt::Error> - { - let entry = Reasons(_0); - self.client.storage().fetch(&entry, hash).await + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, Vesting>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } + pub async fn storage_version( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + runtime_types::pallet_vesting::Releases, + ::subxt::Error, + > { + let entry = StorageVersion; + self.client.storage().fetch_or_default(&entry, hash).await } } } } - pub mod election_provider_multi_phase { + pub mod scheduler { use super::runtime_types; pub mod calls { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SubmitUnsigned { pub raw_solution : runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: polkadot_runtime :: NposCompactSolution16 > , pub witness : runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize } - impl ::subxt::Call for SubmitUnsigned { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const FUNCTION: &'static str = "submit_unsigned"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SetMinimumUntrustedScore { - pub maybe_next_score: Option<[u128; 3usize]>, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Schedule { + pub when: u32, + pub maybe_periodic: Option<(u32, u32)>, + pub priority: u8, + pub call: runtime_types::node_runtime::Call, } - impl ::subxt::Call for SetMinimumUntrustedScore { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const FUNCTION: &'static str = "set_minimum_untrusted_score"; + impl ::subxt::Call for Schedule { + const PALLET: &'static str = "Scheduler"; + const FUNCTION: &'static str = "schedule"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SetEmergencyElectionResult { - pub supports: Vec<( - ::subxt::sp_core::crypto::AccountId32, - runtime_types::sp_npos_elections::Support< - ::subxt::sp_core::crypto::AccountId32, - >, - )>, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Cancel { + pub when: u32, + pub index: u32, } - impl ::subxt::Call for SetEmergencyElectionResult { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const FUNCTION: &'static str = "set_emergency_election_result"; + impl ::subxt::Call for Cancel { + const PALLET: &'static str = "Scheduler"; + const FUNCTION: &'static str = "cancel"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Submit { - pub raw_solution: - runtime_types::pallet_election_provider_multi_phase::RawSolution< - runtime_types::polkadot_runtime::NposCompactSolution16, - >, - pub num_signed_submissions: u32, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ScheduleNamed { + pub id: Vec, + pub when: u32, + pub maybe_periodic: Option<(u32, u32)>, + pub priority: u8, + pub call: runtime_types::node_runtime::Call, } - impl ::subxt::Call for Submit { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const FUNCTION: &'static str = "submit"; + impl ::subxt::Call for ScheduleNamed { + const PALLET: &'static str = "Scheduler"; + const FUNCTION: &'static str = "schedule_named"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct CancelNamed { + pub id: Vec, + } + impl ::subxt::Call for CancelNamed { + const PALLET: &'static str = "Scheduler"; + const FUNCTION: &'static str = "cancel_named"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ScheduleAfter { + pub after: u32, + pub maybe_periodic: Option<(u32, u32)>, + pub priority: u8, + pub call: runtime_types::node_runtime::Call, + } + impl ::subxt::Call for ScheduleAfter { + const PALLET: &'static str = "Scheduler"; + const FUNCTION: &'static str = "schedule_after"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ScheduleNamedAfter { + pub id: Vec, + pub after: u32, + pub maybe_periodic: Option<(u32, u32)>, + pub priority: u8, + pub call: runtime_types::node_runtime::Call, + } + impl ::subxt::Call for ScheduleNamedAfter { + const PALLET: &'static str = "Scheduler"; + const FUNCTION: &'static str = "schedule_named_after"; } pub struct TransactionApi< 'a, @@ -8935,611 +9621,330 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub fn submit_unsigned( + pub fn schedule( &self, - raw_solution : runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: polkadot_runtime :: NposCompactSolution16 >, - witness : runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize, - ) -> ::subxt::SubmittableExtrinsic { - let call = SubmitUnsigned { - raw_solution, - witness, + when: u32, + maybe_periodic: Option<(u32, u32)>, + priority: u8, + call: runtime_types::node_runtime::Call, + ) -> ::subxt::SubmittableExtrinsic { + let call = Schedule { + when, + maybe_periodic, + priority, + call, }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn set_minimum_untrusted_score( + pub fn cancel( &self, - maybe_next_score: Option<[u128; 3usize]>, - ) -> ::subxt::SubmittableExtrinsic - { - let call = SetMinimumUntrustedScore { maybe_next_score }; + when: u32, + index: u32, + ) -> ::subxt::SubmittableExtrinsic { + let call = Cancel { when, index }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn set_emergency_election_result( + pub fn schedule_named( &self, - supports: Vec<( - ::subxt::sp_core::crypto::AccountId32, - runtime_types::sp_npos_elections::Support< - ::subxt::sp_core::crypto::AccountId32, - >, - )>, - ) -> ::subxt::SubmittableExtrinsic - { - let call = SetEmergencyElectionResult { supports }; + id: Vec, + when: u32, + maybe_periodic: Option<(u32, u32)>, + priority: u8, + call: runtime_types::node_runtime::Call, + ) -> ::subxt::SubmittableExtrinsic { + let call = ScheduleNamed { + id, + when, + maybe_periodic, + priority, + call, + }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn submit( + pub fn cancel_named( &self, - raw_solution : runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: polkadot_runtime :: NposCompactSolution16 >, - num_signed_submissions: u32, - ) -> ::subxt::SubmittableExtrinsic { - let call = Submit { - raw_solution, - num_signed_submissions, + id: Vec, + ) -> ::subxt::SubmittableExtrinsic { + let call = CancelNamed { id }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn schedule_after( + &self, + after: u32, + maybe_periodic: Option<(u32, u32)>, + priority: u8, + call: runtime_types::node_runtime::Call, + ) -> ::subxt::SubmittableExtrinsic { + let call = ScheduleAfter { + after, + maybe_periodic, + priority, + call, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn schedule_named_after( + &self, + id: Vec, + after: u32, + maybe_periodic: Option<(u32, u32)>, + priority: u8, + call: runtime_types::node_runtime::Call, + ) -> ::subxt::SubmittableExtrinsic + { + let call = ScheduleNamedAfter { + id, + after, + maybe_periodic, + priority, + call, }; ::subxt::SubmittableExtrinsic::new(self.client, call) } } } - pub type Event = - runtime_types::pallet_election_provider_multi_phase::pallet::Event; + pub type Event = runtime_types::pallet_scheduler::pallet::Event; pub mod events { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SolutionStored( - pub runtime_types::pallet_election_provider_multi_phase::ElectionCompute, - pub bool, - ); - impl ::subxt::Event for SolutionStored { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "SolutionStored"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ElectionFinalized( - pub Option< - runtime_types::pallet_election_provider_multi_phase::ElectionCompute, - >, - ); - impl ::subxt::Event for ElectionFinalized { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "ElectionFinalized"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Rewarded(pub ::subxt::sp_core::crypto::AccountId32, pub u128); - impl ::subxt::Event for Rewarded { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "Rewarded"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Slashed(pub ::subxt::sp_core::crypto::AccountId32, pub u128); - impl ::subxt::Event for Slashed { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "Slashed"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Scheduled(pub u32, pub u32); + impl ::subxt::Event for Scheduled { + const PALLET: &'static str = "Scheduler"; + const EVENT: &'static str = "Scheduled"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SignedPhaseStarted(pub u32); - impl ::subxt::Event for SignedPhaseStarted { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "SignedPhaseStarted"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Canceled(pub u32, pub u32); + impl ::subxt::Event for Canceled { + const PALLET: &'static str = "Scheduler"; + const EVENT: &'static str = "Canceled"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct UnsignedPhaseStarted(pub u32); - impl ::subxt::Event for UnsignedPhaseStarted { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "UnsignedPhaseStarted"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Dispatched( + pub (u32, u32), + pub Option>, + pub Result<(), runtime_types::sp_runtime::DispatchError>, + ); + impl ::subxt::Event for Dispatched { + const PALLET: &'static str = "Scheduler"; + const EVENT: &'static str = "Dispatched"; } } pub mod storage { use super::runtime_types; - pub struct Round; - impl ::subxt::StorageEntry for Round { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const STORAGE: &'static str = "Round"; - type Value = u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct CurrentPhase; - impl ::subxt::StorageEntry for CurrentPhase { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const STORAGE: &'static str = "CurrentPhase"; - type Value = - runtime_types::pallet_election_provider_multi_phase::Phase; + pub struct Agenda(pub u32); + impl ::subxt::StorageEntry for Agenda { + const PALLET: &'static str = "Scheduler"; + const STORAGE: &'static str = "Agenda"; + type Value = Vec< + Option< + runtime_types::pallet_scheduler::ScheduledV2< + runtime_types::node_runtime::Call, + u32, + runtime_types::node_runtime::OriginCaller, + ::subxt::sp_core::crypto::AccountId32, + >, + >, + >; fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) } } - pub struct QueuedSolution; - impl ::subxt::StorageEntry for QueuedSolution { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const STORAGE: &'static str = "QueuedSolution"; - type Value = - runtime_types::pallet_election_provider_multi_phase::ReadySolution< - ::subxt::sp_core::crypto::AccountId32, - >; + pub struct Lookup(pub Vec); + impl ::subxt::StorageEntry for Lookup { + const PALLET: &'static str = "Scheduler"; + const STORAGE: &'static str = "Lookup"; + type Value = (u32, u32); fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) } } - pub struct Snapshot; - impl ::subxt::StorageEntry for Snapshot { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const STORAGE: &'static str = "Snapshot"; - type Value = - runtime_types::pallet_election_provider_multi_phase::RoundSnapshot< - ::subxt::sp_core::crypto::AccountId32, - >; + pub struct StorageVersion; + impl ::subxt::StorageEntry for StorageVersion { + const PALLET: &'static str = "Scheduler"; + const STORAGE: &'static str = "StorageVersion"; + type Value = runtime_types::pallet_scheduler::Releases; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Plain } } - pub struct DesiredTargets; - impl ::subxt::StorageEntry for DesiredTargets { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const STORAGE: &'static str = "DesiredTargets"; - type Value = u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } + pub struct StorageApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, } - pub struct SnapshotMetadata; - impl ::subxt::StorageEntry for SnapshotMetadata { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const STORAGE: &'static str = "SnapshotMetadata"; - type Value = runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize ; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain + impl<'a, T: ::subxt::Config> StorageApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } } - } - pub struct SignedSubmissionNextIndex; - impl ::subxt::StorageEntry for SignedSubmissionNextIndex { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const STORAGE: &'static str = "SignedSubmissionNextIndex"; - type Value = u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct SignedSubmissionIndices; - impl ::subxt::StorageEntry for SignedSubmissionIndices { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const STORAGE: &'static str = "SignedSubmissionIndices"; - type Value = runtime_types :: frame_support :: storage :: bounded_btree_map :: BoundedBTreeMap < [u128 ; 3usize] , u32 > ; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct SignedSubmissionsMap(pub u32); - impl ::subxt::StorageEntry for SignedSubmissionsMap { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const STORAGE: &'static str = "SignedSubmissionsMap"; - type Value = runtime_types :: pallet_election_provider_multi_phase :: signed :: SignedSubmission < :: subxt :: sp_core :: crypto :: AccountId32 , u128 , runtime_types :: polkadot_runtime :: NposCompactSolution16 > ; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct MinimumUntrustedScore; - impl ::subxt::StorageEntry for MinimumUntrustedScore { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const STORAGE: &'static str = "MinimumUntrustedScore"; - type Value = [u128; 3usize]; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct StorageApi<'a, T: ::subxt::Config> { - client: &'a ::subxt::Client, - } - impl<'a, T: ::subxt::Config> StorageApi<'a, T> { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { client } - } - pub async fn round( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result { - let entry = Round; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn current_phase( + pub async fn agenda( &self, + _0: u32, hash: ::core::option::Option, ) -> ::core::result::Result< - runtime_types::pallet_election_provider_multi_phase::Phase, + Vec< + Option< + runtime_types::pallet_scheduler::ScheduledV2< + runtime_types::node_runtime::Call, + u32, + runtime_types::node_runtime::OriginCaller, + ::subxt::sp_core::crypto::AccountId32, + >, + >, + >, ::subxt::Error, > { - let entry = CurrentPhase; + let entry = Agenda(_0); self.client.storage().fetch_or_default(&entry, hash).await - } pub async fn queued_solution (& self , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: pallet_election_provider_multi_phase :: ReadySolution < :: subxt :: sp_core :: crypto :: AccountId32 > > , :: subxt :: Error >{ - let entry = QueuedSolution; - self.client.storage().fetch(&entry, hash).await - } pub async fn snapshot (& self , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: pallet_election_provider_multi_phase :: RoundSnapshot < :: subxt :: sp_core :: crypto :: AccountId32 > > , :: subxt :: Error >{ - let entry = Snapshot; - self.client.storage().fetch(&entry, hash).await } - pub async fn desired_targets( + pub async fn agenda_iter( &self, hash: ::core::option::Option, - ) -> ::core::result::Result<::core::option::Option, ::subxt::Error> + ) -> ::core::result::Result<::subxt::KeyIter<'a, T, Agenda>, ::subxt::Error> { - let entry = DesiredTargets; - self.client.storage().fetch(&entry, hash).await - } pub async fn snapshot_metadata (& self , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize > , :: subxt :: Error >{ - let entry = SnapshotMetadata; + self.client.storage().iter(hash).await + } + pub async fn lookup( + &self, + _0: Vec, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option<(u32, u32)>, + ::subxt::Error, + > { + let entry = Lookup(_0); self.client.storage().fetch(&entry, hash).await } - pub async fn signed_submission_next_index( + pub async fn lookup_iter( &self, hash: ::core::option::Option, - ) -> ::core::result::Result { - let entry = SignedSubmissionNextIndex; - self.client.storage().fetch_or_default(&entry, hash).await - } pub async fn signed_submission_indices (& self , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: frame_support :: storage :: bounded_btree_map :: BoundedBTreeMap < [u128 ; 3usize] , u32 > , :: subxt :: Error >{ - let entry = SignedSubmissionIndices; - self.client.storage().fetch_or_default(&entry, hash).await - } pub async fn signed_submissions_map (& self , _0 : u32 , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: pallet_election_provider_multi_phase :: signed :: SignedSubmission < :: subxt :: sp_core :: crypto :: AccountId32 , u128 , runtime_types :: polkadot_runtime :: NposCompactSolution16 > , :: subxt :: Error >{ - let entry = SignedSubmissionsMap(_0); - self.client.storage().fetch_or_default(&entry, hash).await + ) -> ::core::result::Result<::subxt::KeyIter<'a, T, Lookup>, ::subxt::Error> + { + self.client.storage().iter(hash).await } - pub async fn minimum_untrusted_score( + pub async fn storage_version( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::core::option::Option<[u128; 3usize]>, + runtime_types::pallet_scheduler::Releases, ::subxt::Error, > { - let entry = MinimumUntrustedScore; - self.client.storage().fetch(&entry, hash).await + let entry = StorageVersion; + self.client.storage().fetch_or_default(&entry, hash).await } } } } - pub mod parachains_origin { - use super::runtime_types; - } - pub mod configuration { + pub mod proxy { use super::runtime_types; pub mod calls { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SetValidationUpgradeFrequency { - pub new: u32, - } - impl ::subxt::Call for SetValidationUpgradeFrequency { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_validation_upgrade_frequency"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SetValidationUpgradeDelay { - pub new: u32, - } - impl ::subxt::Call for SetValidationUpgradeDelay { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_validation_upgrade_delay"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SetCodeRetentionPeriod { - pub new: u32, - } - impl ::subxt::Call for SetCodeRetentionPeriod { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_code_retention_period"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SetMaxCodeSize { - pub new: u32, - } - impl ::subxt::Call for SetMaxCodeSize { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_max_code_size"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SetMaxPovSize { - pub new: u32, - } - impl ::subxt::Call for SetMaxPovSize { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_max_pov_size"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SetMaxHeadDataSize { - pub new: u32, - } - impl ::subxt::Call for SetMaxHeadDataSize { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_max_head_data_size"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SetParathreadCores { - pub new: u32, - } - impl ::subxt::Call for SetParathreadCores { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_parathread_cores"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SetParathreadRetries { - pub new: u32, - } - impl ::subxt::Call for SetParathreadRetries { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_parathread_retries"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SetGroupRotationFrequency { - pub new: u32, - } - impl ::subxt::Call for SetGroupRotationFrequency { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_group_rotation_frequency"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SetChainAvailabilityPeriod { - pub new: u32, - } - impl ::subxt::Call for SetChainAvailabilityPeriod { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_chain_availability_period"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SetThreadAvailabilityPeriod { - pub new: u32, - } - impl ::subxt::Call for SetThreadAvailabilityPeriod { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_thread_availability_period"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SetSchedulingLookahead { - pub new: u32, - } - impl ::subxt::Call for SetSchedulingLookahead { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_scheduling_lookahead"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SetMaxValidatorsPerCore { - pub new: Option, - } - impl ::subxt::Call for SetMaxValidatorsPerCore { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_max_validators_per_core"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SetMaxValidators { - pub new: Option, - } - impl ::subxt::Call for SetMaxValidators { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_max_validators"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SetDisputePeriod { - pub new: u32, - } - impl ::subxt::Call for SetDisputePeriod { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_dispute_period"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SetDisputePostConclusionAcceptancePeriod { - pub new: u32, - } - impl ::subxt::Call for SetDisputePostConclusionAcceptancePeriod { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = - "set_dispute_post_conclusion_acceptance_period"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SetDisputeMaxSpamSlots { - pub new: u32, - } - impl ::subxt::Call for SetDisputeMaxSpamSlots { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_dispute_max_spam_slots"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SetDisputeConclusionByTimeOutPeriod { - pub new: u32, - } - impl ::subxt::Call for SetDisputeConclusionByTimeOutPeriod { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = - "set_dispute_conclusion_by_time_out_period"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SetNoShowSlots { - pub new: u32, - } - impl ::subxt::Call for SetNoShowSlots { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_no_show_slots"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SetNDelayTranches { - pub new: u32, - } - impl ::subxt::Call for SetNDelayTranches { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_n_delay_tranches"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SetZerothDelayTrancheWidth { - pub new: u32, - } - impl ::subxt::Call for SetZerothDelayTrancheWidth { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_zeroth_delay_tranche_width"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SetNeededApprovals { - pub new: u32, - } - impl ::subxt::Call for SetNeededApprovals { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_needed_approvals"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SetRelayVrfModuloSamples { - pub new: u32, - } - impl ::subxt::Call for SetRelayVrfModuloSamples { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_relay_vrf_modulo_samples"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SetMaxUpwardQueueCount { - pub new: u32, - } - impl ::subxt::Call for SetMaxUpwardQueueCount { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_max_upward_queue_count"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SetMaxUpwardQueueSize { - pub new: u32, - } - impl ::subxt::Call for SetMaxUpwardQueueSize { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_max_upward_queue_size"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SetMaxDownwardMessageSize { - pub new: u32, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Proxy { + pub real: ::subxt::sp_core::crypto::AccountId32, + pub force_proxy_type: Option, + pub call: runtime_types::node_runtime::Call, } - impl ::subxt::Call for SetMaxDownwardMessageSize { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_max_downward_message_size"; + impl ::subxt::Call for Proxy { + const PALLET: &'static str = "Proxy"; + const FUNCTION: &'static str = "proxy"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SetUmpServiceTotalWeight { - pub new: u64, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct AddProxy { + pub delegate: ::subxt::sp_core::crypto::AccountId32, + pub proxy_type: runtime_types::node_runtime::ProxyType, + pub delay: u32, } - impl ::subxt::Call for SetUmpServiceTotalWeight { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_ump_service_total_weight"; + impl ::subxt::Call for AddProxy { + const PALLET: &'static str = "Proxy"; + const FUNCTION: &'static str = "add_proxy"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SetMaxUpwardMessageSize { - pub new: u32, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct RemoveProxy { + pub delegate: ::subxt::sp_core::crypto::AccountId32, + pub proxy_type: runtime_types::node_runtime::ProxyType, + pub delay: u32, } - impl ::subxt::Call for SetMaxUpwardMessageSize { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_max_upward_message_size"; + impl ::subxt::Call for RemoveProxy { + const PALLET: &'static str = "Proxy"; + const FUNCTION: &'static str = "remove_proxy"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SetMaxUpwardMessageNumPerCandidate { - pub new: u32, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct RemoveProxies {} + impl ::subxt::Call for RemoveProxies { + const PALLET: &'static str = "Proxy"; + const FUNCTION: &'static str = "remove_proxies"; } - impl ::subxt::Call for SetMaxUpwardMessageNumPerCandidate { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_max_upward_message_num_per_candidate"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Anonymous { + pub proxy_type: runtime_types::node_runtime::ProxyType, + pub delay: u32, + pub index: u16, } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SetHrmpOpenRequestTtl { - pub new: u32, + impl ::subxt::Call for Anonymous { + const PALLET: &'static str = "Proxy"; + const FUNCTION: &'static str = "anonymous"; } - impl ::subxt::Call for SetHrmpOpenRequestTtl { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_hrmp_open_request_ttl"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct KillAnonymous { + pub spawner: ::subxt::sp_core::crypto::AccountId32, + pub proxy_type: runtime_types::node_runtime::ProxyType, + pub index: u16, + #[codec(compact)] + pub height: u32, + #[codec(compact)] + pub ext_index: u32, } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SetHrmpSenderDeposit { - pub new: u128, + impl ::subxt::Call for KillAnonymous { + const PALLET: &'static str = "Proxy"; + const FUNCTION: &'static str = "kill_anonymous"; } - impl ::subxt::Call for SetHrmpSenderDeposit { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_hrmp_sender_deposit"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Announce { + pub real: ::subxt::sp_core::crypto::AccountId32, + pub call_hash: ::subxt::sp_core::H256, } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SetHrmpRecipientDeposit { - pub new: u128, + impl ::subxt::Call for Announce { + const PALLET: &'static str = "Proxy"; + const FUNCTION: &'static str = "announce"; } - impl ::subxt::Call for SetHrmpRecipientDeposit { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_hrmp_recipient_deposit"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct RemoveAnnouncement { + pub real: ::subxt::sp_core::crypto::AccountId32, + pub call_hash: ::subxt::sp_core::H256, } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SetHrmpChannelMaxCapacity { - pub new: u32, + impl ::subxt::Call for RemoveAnnouncement { + const PALLET: &'static str = "Proxy"; + const FUNCTION: &'static str = "remove_announcement"; } - impl ::subxt::Call for SetHrmpChannelMaxCapacity { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_hrmp_channel_max_capacity"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct RejectAnnouncement { + pub delegate: ::subxt::sp_core::crypto::AccountId32, + pub call_hash: ::subxt::sp_core::H256, } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SetHrmpChannelMaxTotalSize { - pub new: u32, + impl ::subxt::Call for RejectAnnouncement { + const PALLET: &'static str = "Proxy"; + const FUNCTION: &'static str = "reject_announcement"; } - impl ::subxt::Call for SetHrmpChannelMaxTotalSize { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_hrmp_channel_max_total_size"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ProxyAnnounced { + pub delegate: ::subxt::sp_core::crypto::AccountId32, + pub real: ::subxt::sp_core::crypto::AccountId32, + pub force_proxy_type: Option, + pub call: runtime_types::node_runtime::Call, } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SetHrmpMaxParachainInboundChannels { - pub new: u32, + impl ::subxt::Call for ProxyAnnounced { + const PALLET: &'static str = "Proxy"; + const FUNCTION: &'static str = "proxy_announced"; } - impl ::subxt::Call for SetHrmpMaxParachainInboundChannels { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_hrmp_max_parachain_inbound_channels"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SetHrmpMaxParathreadInboundChannels { - pub new: u32, - } - impl ::subxt::Call for SetHrmpMaxParathreadInboundChannels { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_hrmp_max_parathread_inbound_channels"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SetHrmpChannelMaxMessageSize { - pub new: u32, - } - impl ::subxt::Call for SetHrmpChannelMaxMessageSize { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_hrmp_channel_max_message_size"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SetHrmpMaxParachainOutboundChannels { - pub new: u32, - } - impl ::subxt::Call for SetHrmpMaxParachainOutboundChannels { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_hrmp_max_parachain_outbound_channels"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SetHrmpMaxParathreadOutboundChannels { - pub new: u32, - } - impl ::subxt::Call for SetHrmpMaxParathreadOutboundChannels { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = - "set_hrmp_max_parathread_outbound_channels"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SetHrmpMaxMessageNumPerCandidate { - pub new: u32, - } - impl ::subxt::Call for SetHrmpMaxMessageNumPerCandidate { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_hrmp_max_message_num_per_candidate"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SetUmpMaxIndividualWeight { - pub new: u64, - } - impl ::subxt::Call for SetUmpMaxIndividualWeight { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_ump_max_individual_weight"; - } - pub struct TransactionApi< - 'a, - T: ::subxt::Config + ::subxt::ExtrinsicExtraData, - > { - client: &'a ::subxt::Client, + pub struct TransactionApi< + 'a, + T: ::subxt::Config + ::subxt::ExtrinsicExtraData, + > { + client: &'a ::subxt::Client, } impl<'a, T: ::subxt::Config> TransactionApi<'a, T> where @@ -9548,461 +9953,336 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub fn set_validation_upgrade_frequency( - &self, - new: u32, - ) -> ::subxt::SubmittableExtrinsic - { - let call = SetValidationUpgradeFrequency { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn set_validation_upgrade_delay( - &self, - new: u32, - ) -> ::subxt::SubmittableExtrinsic - { - let call = SetValidationUpgradeDelay { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn set_code_retention_period( + pub fn proxy( &self, - new: u32, - ) -> ::subxt::SubmittableExtrinsic - { - let call = SetCodeRetentionPeriod { new }; + real: ::subxt::sp_core::crypto::AccountId32, + force_proxy_type: Option, + call: runtime_types::node_runtime::Call, + ) -> ::subxt::SubmittableExtrinsic { + let call = Proxy { + real, + force_proxy_type, + call, + }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn set_max_code_size( + pub fn add_proxy( &self, - new: u32, - ) -> ::subxt::SubmittableExtrinsic { - let call = SetMaxCodeSize { new }; + delegate: ::subxt::sp_core::crypto::AccountId32, + proxy_type: runtime_types::node_runtime::ProxyType, + delay: u32, + ) -> ::subxt::SubmittableExtrinsic { + let call = AddProxy { + delegate, + proxy_type, + delay, + }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn set_max_pov_size( + pub fn remove_proxy( &self, - new: u32, - ) -> ::subxt::SubmittableExtrinsic { - let call = SetMaxPovSize { new }; + delegate: ::subxt::sp_core::crypto::AccountId32, + proxy_type: runtime_types::node_runtime::ProxyType, + delay: u32, + ) -> ::subxt::SubmittableExtrinsic { + let call = RemoveProxy { + delegate, + proxy_type, + delay, + }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn set_max_head_data_size( + pub fn remove_proxies( &self, - new: u32, - ) -> ::subxt::SubmittableExtrinsic - { - let call = SetMaxHeadDataSize { new }; + ) -> ::subxt::SubmittableExtrinsic { + let call = RemoveProxies {}; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn set_parathread_cores( + pub fn anonymous( &self, - new: u32, - ) -> ::subxt::SubmittableExtrinsic - { - let call = SetParathreadCores { new }; + proxy_type: runtime_types::node_runtime::ProxyType, + delay: u32, + index: u16, + ) -> ::subxt::SubmittableExtrinsic { + let call = Anonymous { + proxy_type, + delay, + index, + }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn set_parathread_retries( + pub fn kill_anonymous( &self, - new: u32, - ) -> ::subxt::SubmittableExtrinsic - { - let call = SetParathreadRetries { new }; + spawner: ::subxt::sp_core::crypto::AccountId32, + proxy_type: runtime_types::node_runtime::ProxyType, + index: u16, + height: u32, + ext_index: u32, + ) -> ::subxt::SubmittableExtrinsic { + let call = KillAnonymous { + spawner, + proxy_type, + index, + height, + ext_index, + }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn set_group_rotation_frequency( + pub fn announce( &self, - new: u32, - ) -> ::subxt::SubmittableExtrinsic - { - let call = SetGroupRotationFrequency { new }; + real: ::subxt::sp_core::crypto::AccountId32, + call_hash: ::subxt::sp_core::H256, + ) -> ::subxt::SubmittableExtrinsic { + let call = Announce { real, call_hash }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn set_chain_availability_period( + pub fn remove_announcement( &self, - new: u32, - ) -> ::subxt::SubmittableExtrinsic + real: ::subxt::sp_core::crypto::AccountId32, + call_hash: ::subxt::sp_core::H256, + ) -> ::subxt::SubmittableExtrinsic { - let call = SetChainAvailabilityPeriod { new }; + let call = RemoveAnnouncement { real, call_hash }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn set_thread_availability_period( + pub fn reject_announcement( &self, - new: u32, - ) -> ::subxt::SubmittableExtrinsic + delegate: ::subxt::sp_core::crypto::AccountId32, + call_hash: ::subxt::sp_core::H256, + ) -> ::subxt::SubmittableExtrinsic { - let call = SetThreadAvailabilityPeriod { new }; + let call = RejectAnnouncement { + delegate, + call_hash, + }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn set_scheduling_lookahead( + pub fn proxy_announced( &self, - new: u32, - ) -> ::subxt::SubmittableExtrinsic - { - let call = SetSchedulingLookahead { new }; + delegate: ::subxt::sp_core::crypto::AccountId32, + real: ::subxt::sp_core::crypto::AccountId32, + force_proxy_type: Option, + call: runtime_types::node_runtime::Call, + ) -> ::subxt::SubmittableExtrinsic { + let call = ProxyAnnounced { + delegate, + real, + force_proxy_type, + call, + }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn set_max_validators_per_core( - &self, - new: Option, - ) -> ::subxt::SubmittableExtrinsic - { - let call = SetMaxValidatorsPerCore { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + } + } + pub type Event = runtime_types::pallet_proxy::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ProxyExecuted( + pub Result<(), runtime_types::sp_runtime::DispatchError>, + ); + impl ::subxt::Event for ProxyExecuted { + const PALLET: &'static str = "Proxy"; + const EVENT: &'static str = "ProxyExecuted"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct AnonymousCreated( + pub ::subxt::sp_core::crypto::AccountId32, + pub ::subxt::sp_core::crypto::AccountId32, + pub runtime_types::node_runtime::ProxyType, + pub u16, + ); + impl ::subxt::Event for AnonymousCreated { + const PALLET: &'static str = "Proxy"; + const EVENT: &'static str = "AnonymousCreated"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Announced( + pub ::subxt::sp_core::crypto::AccountId32, + pub ::subxt::sp_core::crypto::AccountId32, + pub ::subxt::sp_core::H256, + ); + impl ::subxt::Event for Announced { + const PALLET: &'static str = "Proxy"; + const EVENT: &'static str = "Announced"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ProxyAdded( + pub ::subxt::sp_core::crypto::AccountId32, + pub ::subxt::sp_core::crypto::AccountId32, + pub runtime_types::node_runtime::ProxyType, + pub u32, + ); + impl ::subxt::Event for ProxyAdded { + const PALLET: &'static str = "Proxy"; + const EVENT: &'static str = "ProxyAdded"; + } + } + pub mod storage { + use super::runtime_types; + pub struct Proxies(pub ::subxt::sp_core::crypto::AccountId32); + impl ::subxt::StorageEntry for Proxies { + const PALLET: &'static str = "Proxy"; + const STORAGE: &'static str = "Proxies"; + type Value = ( + runtime_types::frame_support::storage::bounded_vec::BoundedVec< + runtime_types::pallet_proxy::ProxyDefinition< + ::subxt::sp_core::crypto::AccountId32, + runtime_types::node_runtime::ProxyType, + u32, + >, + >, + u128, + ); + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) } - pub fn set_max_validators( - &self, - new: Option, - ) -> ::subxt::SubmittableExtrinsic { - let call = SetMaxValidators { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub struct Announcements(pub ::subxt::sp_core::crypto::AccountId32); + impl ::subxt::StorageEntry for Announcements { + const PALLET: &'static str = "Proxy"; + const STORAGE: &'static str = "Announcements"; + type Value = ( + runtime_types::frame_support::storage::bounded_vec::BoundedVec< + runtime_types::pallet_proxy::Announcement< + ::subxt::sp_core::crypto::AccountId32, + ::subxt::sp_core::H256, + u32, + >, + >, + u128, + ); + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) } - pub fn set_dispute_period( - &self, - new: u32, - ) -> ::subxt::SubmittableExtrinsic { - let call = SetDisputePeriod { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub struct StorageApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> StorageApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } } - pub fn set_dispute_post_conclusion_acceptance_period( + pub async fn proxies( &self, - new: u32, - ) -> ::subxt::SubmittableExtrinsic< - T, - SetDisputePostConclusionAcceptancePeriod, + _0: ::subxt::sp_core::crypto::AccountId32, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ( + runtime_types::frame_support::storage::bounded_vec::BoundedVec< + runtime_types::pallet_proxy::ProxyDefinition< + ::subxt::sp_core::crypto::AccountId32, + runtime_types::node_runtime::ProxyType, + u32, + >, + >, + u128, + ), + ::subxt::Error, > { - let call = SetDisputePostConclusionAcceptancePeriod { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn set_dispute_max_spam_slots( - &self, - new: u32, - ) -> ::subxt::SubmittableExtrinsic - { - let call = SetDisputeMaxSpamSlots { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + let entry = Proxies(_0); + self.client.storage().fetch_or_default(&entry, hash).await } - pub fn set_dispute_conclusion_by_time_out_period( + pub async fn proxies_iter( &self, - new: u32, - ) -> ::subxt::SubmittableExtrinsic - { - let call = SetDisputeConclusionByTimeOutPeriod { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, Proxies>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await } - pub fn set_no_show_slots( - &self, - new: u32, - ) -> ::subxt::SubmittableExtrinsic { - let call = SetNoShowSlots { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn set_n_delay_tranches( - &self, - new: u32, - ) -> ::subxt::SubmittableExtrinsic { - let call = SetNDelayTranches { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn set_zeroth_delay_tranche_width( - &self, - new: u32, - ) -> ::subxt::SubmittableExtrinsic - { - let call = SetZerothDelayTrancheWidth { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn set_needed_approvals( - &self, - new: u32, - ) -> ::subxt::SubmittableExtrinsic - { - let call = SetNeededApprovals { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn set_relay_vrf_modulo_samples( - &self, - new: u32, - ) -> ::subxt::SubmittableExtrinsic - { - let call = SetRelayVrfModuloSamples { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn set_max_upward_queue_count( - &self, - new: u32, - ) -> ::subxt::SubmittableExtrinsic - { - let call = SetMaxUpwardQueueCount { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn set_max_upward_queue_size( - &self, - new: u32, - ) -> ::subxt::SubmittableExtrinsic - { - let call = SetMaxUpwardQueueSize { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn set_max_downward_message_size( - &self, - new: u32, - ) -> ::subxt::SubmittableExtrinsic - { - let call = SetMaxDownwardMessageSize { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn set_ump_service_total_weight( - &self, - new: u64, - ) -> ::subxt::SubmittableExtrinsic - { - let call = SetUmpServiceTotalWeight { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn set_max_upward_message_size( - &self, - new: u32, - ) -> ::subxt::SubmittableExtrinsic - { - let call = SetMaxUpwardMessageSize { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn set_max_upward_message_num_per_candidate( - &self, - new: u32, - ) -> ::subxt::SubmittableExtrinsic - { - let call = SetMaxUpwardMessageNumPerCandidate { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn set_hrmp_open_request_ttl( - &self, - new: u32, - ) -> ::subxt::SubmittableExtrinsic - { - let call = SetHrmpOpenRequestTtl { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn set_hrmp_sender_deposit( - &self, - new: u128, - ) -> ::subxt::SubmittableExtrinsic - { - let call = SetHrmpSenderDeposit { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn set_hrmp_recipient_deposit( - &self, - new: u128, - ) -> ::subxt::SubmittableExtrinsic - { - let call = SetHrmpRecipientDeposit { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn set_hrmp_channel_max_capacity( - &self, - new: u32, - ) -> ::subxt::SubmittableExtrinsic - { - let call = SetHrmpChannelMaxCapacity { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn set_hrmp_channel_max_total_size( - &self, - new: u32, - ) -> ::subxt::SubmittableExtrinsic - { - let call = SetHrmpChannelMaxTotalSize { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn set_hrmp_max_parachain_inbound_channels( - &self, - new: u32, - ) -> ::subxt::SubmittableExtrinsic - { - let call = SetHrmpMaxParachainInboundChannels { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn set_hrmp_max_parathread_inbound_channels( - &self, - new: u32, - ) -> ::subxt::SubmittableExtrinsic - { - let call = SetHrmpMaxParathreadInboundChannels { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn set_hrmp_channel_max_message_size( - &self, - new: u32, - ) -> ::subxt::SubmittableExtrinsic - { - let call = SetHrmpChannelMaxMessageSize { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn set_hrmp_max_parachain_outbound_channels( - &self, - new: u32, - ) -> ::subxt::SubmittableExtrinsic - { - let call = SetHrmpMaxParachainOutboundChannels { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn set_hrmp_max_parathread_outbound_channels( - &self, - new: u32, - ) -> ::subxt::SubmittableExtrinsic - { - let call = SetHrmpMaxParathreadOutboundChannels { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn set_hrmp_max_message_num_per_candidate( - &self, - new: u32, - ) -> ::subxt::SubmittableExtrinsic - { - let call = SetHrmpMaxMessageNumPerCandidate { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn set_ump_max_individual_weight( - &self, - new: u64, - ) -> ::subxt::SubmittableExtrinsic - { - let call = SetUmpMaxIndividualWeight { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - } - } - pub mod storage { - use super::runtime_types; - pub struct ActiveConfig; - impl ::subxt::StorageEntry for ActiveConfig { - const PALLET: &'static str = "Configuration"; - const STORAGE: &'static str = "ActiveConfig"; - type Value = runtime_types :: polkadot_runtime_parachains :: configuration :: HostConfiguration < u32 > ; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct PendingConfig(pub u32); - impl ::subxt::StorageEntry for PendingConfig { - const PALLET: &'static str = "Configuration"; - const STORAGE: &'static str = "PendingConfig"; - type Value = runtime_types :: polkadot_runtime_parachains :: configuration :: HostConfiguration < u32 > ; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct StorageApi<'a, T: ::subxt::Config> { - client: &'a ::subxt::Client, - } - impl<'a, T: ::subxt::Config> StorageApi<'a, T> { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { client } - } pub async fn active_config (& self , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: polkadot_runtime_parachains :: configuration :: HostConfiguration < u32 > , :: subxt :: Error >{ - let entry = ActiveConfig; - self.client.storage().fetch_or_default(&entry, hash).await - } pub async fn pending_config (& self , _0 : u32 , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: polkadot_runtime_parachains :: configuration :: HostConfiguration < u32 > > , :: subxt :: Error >{ - let entry = PendingConfig(_0); - self.client.storage().fetch(&entry, hash).await - } - } - } - } - pub mod paras_shared { - use super::runtime_types; - pub mod calls { - use super::runtime_types; - pub struct TransactionApi< - 'a, - T: ::subxt::Config + ::subxt::ExtrinsicExtraData, - > { - client: &'a ::subxt::Client, - } - impl<'a, T: ::subxt::Config> TransactionApi<'a, T> - where - T: ::subxt::Config + ::subxt::ExtrinsicExtraData, - { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { client } - } - } - } - pub mod storage { - use super::runtime_types; - pub struct CurrentSessionIndex; - impl ::subxt::StorageEntry for CurrentSessionIndex { - const PALLET: &'static str = "ParasShared"; - const STORAGE: &'static str = "CurrentSessionIndex"; - type Value = u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct ActiveValidatorIndices; - impl ::subxt::StorageEntry for ActiveValidatorIndices { - const PALLET: &'static str = "ParasShared"; - const STORAGE: &'static str = "ActiveValidatorIndices"; - type Value = Vec; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct ActiveValidatorKeys; - impl ::subxt::StorageEntry for ActiveValidatorKeys { - const PALLET: &'static str = "ParasShared"; - const STORAGE: &'static str = "ActiveValidatorKeys"; - type Value = - Vec; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct StorageApi<'a, T: ::subxt::Config> { - client: &'a ::subxt::Client, - } - impl<'a, T: ::subxt::Config> StorageApi<'a, T> { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { client } - } - pub async fn current_session_index( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result { - let entry = CurrentSessionIndex; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn active_validator_indices( + pub async fn announcements( &self, + _0: ::subxt::sp_core::crypto::AccountId32, hash: ::core::option::Option, ) -> ::core::result::Result< - Vec, + ( + runtime_types::frame_support::storage::bounded_vec::BoundedVec< + runtime_types::pallet_proxy::Announcement< + ::subxt::sp_core::crypto::AccountId32, + ::subxt::sp_core::H256, + u32, + >, + >, + u128, + ), ::subxt::Error, > { - let entry = ActiveValidatorIndices; + let entry = Announcements(_0); self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn active_validator_keys( + pub async fn announcements_iter( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - Vec, + ::subxt::KeyIter<'a, T, Announcements>, ::subxt::Error, > { - let entry = ActiveValidatorKeys; - self.client.storage().fetch_or_default(&entry, hash).await + self.client.storage().iter(hash).await } } } } - pub mod para_inclusion { + pub mod multisig { use super::runtime_types; pub mod calls { use super::runtime_types; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct AsMultiThreshold1 { + pub other_signatories: Vec<::subxt::sp_core::crypto::AccountId32>, + pub call: runtime_types::node_runtime::Call, + } + impl ::subxt::Call for AsMultiThreshold1 { + const PALLET: &'static str = "Multisig"; + const FUNCTION: &'static str = "as_multi_threshold1"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct AsMulti { + pub threshold: u16, + pub other_signatories: Vec<::subxt::sp_core::crypto::AccountId32>, + pub maybe_timepoint: + Option>, + pub call: runtime_types::frame_support::traits::misc::WrapperKeepOpaque< + runtime_types::node_runtime::Call, + >, + pub store_call: bool, + pub max_weight: u64, + } + impl ::subxt::Call for AsMulti { + const PALLET: &'static str = "Multisig"; + const FUNCTION: &'static str = "as_multi"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ApproveAsMulti { + pub threshold: u16, + pub other_signatories: Vec<::subxt::sp_core::crypto::AccountId32>, + pub maybe_timepoint: + Option>, + pub call_hash: [u8; 32usize], + pub max_weight: u64, + } + impl ::subxt::Call for ApproveAsMulti { + const PALLET: &'static str = "Multisig"; + const FUNCTION: &'static str = "approve_as_multi"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct CancelAsMulti { + pub threshold: u16, + pub other_signatories: Vec<::subxt::sp_core::crypto::AccountId32>, + pub timepoint: runtime_types::pallet_multisig::Timepoint, + pub call_hash: [u8; 32usize], + } + impl ::subxt::Call for CancelAsMulti { + const PALLET: &'static str = "Multisig"; + const FUNCTION: &'static str = "cancel_as_multi"; + } pub struct TransactionApi< 'a, T: ::subxt::Config + ::subxt::ExtrinsicExtraData, @@ -10016,258 +10296,164 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - } - } - pub type Event = - runtime_types::polkadot_runtime_parachains::inclusion::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct CandidateBacked( - pub runtime_types::polkadot_primitives::v1::CandidateReceipt< - ::subxt::sp_core::H256, - >, - pub runtime_types::polkadot_parachain::primitives::HeadData, - pub runtime_types::polkadot_primitives::v1::CoreIndex, - pub runtime_types::polkadot_primitives::v1::GroupIndex, - ); - impl ::subxt::Event for CandidateBacked { - const PALLET: &'static str = "ParaInclusion"; - const EVENT: &'static str = "CandidateBacked"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct CandidateIncluded( - pub runtime_types::polkadot_primitives::v1::CandidateReceipt< - ::subxt::sp_core::H256, - >, - pub runtime_types::polkadot_parachain::primitives::HeadData, - pub runtime_types::polkadot_primitives::v1::CoreIndex, - pub runtime_types::polkadot_primitives::v1::GroupIndex, - ); - impl ::subxt::Event for CandidateIncluded { - const PALLET: &'static str = "ParaInclusion"; - const EVENT: &'static str = "CandidateIncluded"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct CandidateTimedOut( - pub runtime_types::polkadot_primitives::v1::CandidateReceipt< - ::subxt::sp_core::H256, - >, - pub runtime_types::polkadot_parachain::primitives::HeadData, - pub runtime_types::polkadot_primitives::v1::CoreIndex, - ); - impl ::subxt::Event for CandidateTimedOut { - const PALLET: &'static str = "ParaInclusion"; - const EVENT: &'static str = "CandidateTimedOut"; - } - } - pub mod storage { - use super::runtime_types; - pub struct AvailabilityBitfields( - pub runtime_types::polkadot_primitives::v0::ValidatorIndex, - ); - impl ::subxt::StorageEntry for AvailabilityBitfields { - const PALLET: &'static str = "ParaInclusion"; - const STORAGE: &'static str = "AvailabilityBitfields"; - type Value = runtime_types :: polkadot_runtime_parachains :: inclusion :: AvailabilityBitfieldRecord < u32 > ; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct PendingAvailability( - pub runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::StorageEntry for PendingAvailability { - const PALLET: &'static str = "ParaInclusion"; - const STORAGE: &'static str = "PendingAvailability"; - type Value = runtime_types :: polkadot_runtime_parachains :: inclusion :: CandidatePendingAvailability < :: subxt :: sp_core :: H256 , u32 > ; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct PendingAvailabilityCommitments( - pub runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::StorageEntry for PendingAvailabilityCommitments { - const PALLET: &'static str = "ParaInclusion"; - const STORAGE: &'static str = "PendingAvailabilityCommitments"; - type Value = - runtime_types::polkadot_primitives::v1::CandidateCommitments; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct StorageApi<'a, T: ::subxt::Config> { - client: &'a ::subxt::Client, - } - impl<'a, T: ::subxt::Config> StorageApi<'a, T> { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { client } - } pub async fn availability_bitfields (& self , _0 : runtime_types :: polkadot_primitives :: v0 :: ValidatorIndex , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: polkadot_runtime_parachains :: inclusion :: AvailabilityBitfieldRecord < u32 > > , :: subxt :: Error >{ - let entry = AvailabilityBitfields(_0); - self.client.storage().fetch(&entry, hash).await - } pub async fn pending_availability (& self , _0 : runtime_types :: polkadot_parachain :: primitives :: Id , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: polkadot_runtime_parachains :: inclusion :: CandidatePendingAvailability < :: subxt :: sp_core :: H256 , u32 > > , :: subxt :: Error >{ - let entry = PendingAvailability(_0); - self.client.storage().fetch(&entry, hash).await + pub fn as_multi_threshold1( + &self, + other_signatories: Vec<::subxt::sp_core::crypto::AccountId32>, + call: runtime_types::node_runtime::Call, + ) -> ::subxt::SubmittableExtrinsic { + let call = AsMultiThreshold1 { + other_signatories, + call, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub async fn pending_availability_commitments( + pub fn as_multi( &self, - _0: runtime_types::polkadot_parachain::primitives::Id, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::polkadot_primitives::v1::CandidateCommitments, + threshold: u16, + other_signatories: Vec<::subxt::sp_core::crypto::AccountId32>, + maybe_timepoint: Option< + runtime_types::pallet_multisig::Timepoint, >, - ::subxt::Error, - > { - let entry = PendingAvailabilityCommitments(_0); - self.client.storage().fetch(&entry, hash).await - } - } - } - } - pub mod para_inherent { - use super::runtime_types; - pub mod calls { - use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Enter { - pub data: runtime_types::polkadot_primitives::v1::InherentData< - runtime_types::sp_runtime::generic::header::Header< - u32, - runtime_types::sp_runtime::traits::BlakeTwo256, + call: runtime_types::frame_support::traits::misc::WrapperKeepOpaque< + runtime_types::node_runtime::Call, >, - >, - } - impl ::subxt::Call for Enter { - const PALLET: &'static str = "ParaInherent"; - const FUNCTION: &'static str = "enter"; - } - pub struct TransactionApi< - 'a, - T: ::subxt::Config + ::subxt::ExtrinsicExtraData, - > { - client: &'a ::subxt::Client, - } - impl<'a, T: ::subxt::Config> TransactionApi<'a, T> - where - T: ::subxt::Config + ::subxt::ExtrinsicExtraData, - { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { client } + store_call: bool, + max_weight: u64, + ) -> ::subxt::SubmittableExtrinsic { + let call = AsMulti { + threshold, + other_signatories, + maybe_timepoint, + call, + store_call, + max_weight, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn enter( + pub fn approve_as_multi( &self, - data: runtime_types::polkadot_primitives::v1::InherentData< - runtime_types::sp_runtime::generic::header::Header< - u32, - runtime_types::sp_runtime::traits::BlakeTwo256, - >, + threshold: u16, + other_signatories: Vec<::subxt::sp_core::crypto::AccountId32>, + maybe_timepoint: Option< + runtime_types::pallet_multisig::Timepoint, >, - ) -> ::subxt::SubmittableExtrinsic { - let call = Enter { data }; + call_hash: [u8; 32usize], + max_weight: u64, + ) -> ::subxt::SubmittableExtrinsic { + let call = ApproveAsMulti { + threshold, + other_signatories, + maybe_timepoint, + call_hash, + max_weight, + }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - } - } - pub mod storage { - use super::runtime_types; - pub struct Included; - impl ::subxt::StorageEntry for Included { - const PALLET: &'static str = "ParaInherent"; - const STORAGE: &'static str = "Included"; - type Value = (); - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct StorageApi<'a, T: ::subxt::Config> { - client: &'a ::subxt::Client, - } - impl<'a, T: ::subxt::Config> StorageApi<'a, T> { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { client } - } - pub async fn included( + pub fn cancel_as_multi( &self, - hash: ::core::option::Option, - ) -> ::core::result::Result<::core::option::Option<()>, ::subxt::Error> - { - let entry = Included; - self.client.storage().fetch(&entry, hash).await + threshold: u16, + other_signatories: Vec<::subxt::sp_core::crypto::AccountId32>, + timepoint: runtime_types::pallet_multisig::Timepoint, + call_hash: [u8; 32usize], + ) -> ::subxt::SubmittableExtrinsic { + let call = CancelAsMulti { + threshold, + other_signatories, + timepoint, + call_hash, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } } } - } - pub mod para_scheduler { - use super::runtime_types; - pub mod storage { + pub type Event = runtime_types::pallet_multisig::pallet::Event; + pub mod events { use super::runtime_types; - pub struct ValidatorGroups; - impl ::subxt::StorageEntry for ValidatorGroups { - const PALLET: &'static str = "ParaScheduler"; - const STORAGE: &'static str = "ValidatorGroups"; - type Value = - Vec>; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct NewMultisig( + pub ::subxt::sp_core::crypto::AccountId32, + pub ::subxt::sp_core::crypto::AccountId32, + pub [u8; 32usize], + ); + impl ::subxt::Event for NewMultisig { + const PALLET: &'static str = "Multisig"; + const EVENT: &'static str = "NewMultisig"; } - pub struct ParathreadQueue; - impl ::subxt::StorageEntry for ParathreadQueue { - const PALLET: &'static str = "ParaScheduler"; - const STORAGE: &'static str = "ParathreadQueue"; - type Value = runtime_types :: polkadot_runtime_parachains :: scheduler :: ParathreadClaimQueue ; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct MultisigApproval( + pub ::subxt::sp_core::crypto::AccountId32, + pub runtime_types::pallet_multisig::Timepoint, + pub ::subxt::sp_core::crypto::AccountId32, + pub [u8; 32usize], + ); + impl ::subxt::Event for MultisigApproval { + const PALLET: &'static str = "Multisig"; + const EVENT: &'static str = "MultisigApproval"; } - pub struct AvailabilityCores; - impl ::subxt::StorageEntry for AvailabilityCores { - const PALLET: &'static str = "ParaScheduler"; - const STORAGE: &'static str = "AvailabilityCores"; - type Value = - Vec>; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct MultisigExecuted( + pub ::subxt::sp_core::crypto::AccountId32, + pub runtime_types::pallet_multisig::Timepoint, + pub ::subxt::sp_core::crypto::AccountId32, + pub [u8; 32usize], + pub Result<(), runtime_types::sp_runtime::DispatchError>, + ); + impl ::subxt::Event for MultisigExecuted { + const PALLET: &'static str = "Multisig"; + const EVENT: &'static str = "MultisigExecuted"; } - pub struct ParathreadClaimIndex; - impl ::subxt::StorageEntry for ParathreadClaimIndex { - const PALLET: &'static str = "ParaScheduler"; - const STORAGE: &'static str = "ParathreadClaimIndex"; - type Value = Vec; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct MultisigCancelled( + pub ::subxt::sp_core::crypto::AccountId32, + pub runtime_types::pallet_multisig::Timepoint, + pub ::subxt::sp_core::crypto::AccountId32, + pub [u8; 32usize], + ); + impl ::subxt::Event for MultisigCancelled { + const PALLET: &'static str = "Multisig"; + const EVENT: &'static str = "MultisigCancelled"; } - pub struct SessionStartBlock; - impl ::subxt::StorageEntry for SessionStartBlock { - const PALLET: &'static str = "ParaScheduler"; - const STORAGE: &'static str = "SessionStartBlock"; - type Value = u32; + } + pub mod storage { + use super::runtime_types; + pub struct Multisigs(::subxt::sp_core::crypto::AccountId32, [u8; 32usize]); + impl ::subxt::StorageEntry for Multisigs { + const PALLET: &'static str = "Multisig"; + const STORAGE: &'static str = "Multisigs"; + type Value = runtime_types::pallet_multisig::Multisig< + u32, + u128, + ::subxt::sp_core::crypto::AccountId32, + >; fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain + ::subxt::StorageEntryKey::Map(vec![ + ::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + ), + ::subxt::StorageMapKey::new( + &self.1, + ::subxt::StorageHasher::Blake2_128Concat, + ), + ]) } } - pub struct Scheduled; - impl ::subxt::StorageEntry for Scheduled { - const PALLET: &'static str = "ParaScheduler"; - const STORAGE: &'static str = "Scheduled"; - type Value = Vec< - runtime_types::polkadot_runtime_parachains::scheduler::CoreAssignment, - >; + pub struct Calls(pub [u8; 32usize]); + impl ::subxt::StorageEntry for Calls { + const PALLET: &'static str = "Multisig"; + const STORAGE: &'static str = "Calls"; + type Value = ( + runtime_types::frame_support::traits::misc::WrapperKeepOpaque< + runtime_types::node_runtime::Call, + >, + ::subxt::sp_core::crypto::AccountId32, + u128, + ); fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Identity, + )]) } } pub struct StorageApi<'a, T: ::subxt::Config> { @@ -10277,102 +10463,156 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub async fn validator_groups( + pub async fn multisigs( &self, + _0: ::subxt::sp_core::crypto::AccountId32, + _1: [u8; 32usize], hash: ::core::option::Option, ) -> ::core::result::Result< - Vec>, + ::core::option::Option< + runtime_types::pallet_multisig::Multisig< + u32, + u128, + ::subxt::sp_core::crypto::AccountId32, + >, + >, ::subxt::Error, > { - let entry = ValidatorGroups; - self.client.storage().fetch_or_default(&entry, hash).await - } pub async fn parathread_queue (& self , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: polkadot_runtime_parachains :: scheduler :: ParathreadClaimQueue , :: subxt :: Error >{ - let entry = ParathreadQueue; - self.client.storage().fetch_or_default(&entry, hash).await + let entry = Multisigs(_0, _1); + self.client.storage().fetch(&entry, hash).await } - pub async fn availability_cores( + pub async fn multisigs_iter( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - Vec>, + ::subxt::KeyIter<'a, T, Multisigs>, ::subxt::Error, > { - let entry = AvailabilityCores; - self.client.storage().fetch_or_default(&entry, hash).await + self.client.storage().iter(hash).await } - pub async fn parathread_claim_index( + pub async fn calls( &self, + _0: [u8; 32usize], hash: ::core::option::Option, ) -> ::core::result::Result< - Vec, - ::subxt::Error, - > { - let entry = ParathreadClaimIndex; - self.client.storage().fetch_or_default(&entry, hash).await + ::core::option::Option<( + runtime_types::frame_support::traits::misc::WrapperKeepOpaque< + runtime_types::node_runtime::Call, + >, + ::subxt::sp_core::crypto::AccountId32, + u128, + )>, + ::subxt::Error, + > { + let entry = Calls(_0); + self.client.storage().fetch(&entry, hash).await } - pub async fn session_start_block( + pub async fn calls_iter( &self, hash: ::core::option::Option, - ) -> ::core::result::Result { - let entry = SessionStartBlock; - self.client.storage().fetch_or_default(&entry, hash).await - } pub async fn scheduled (& self , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < Vec < runtime_types :: polkadot_runtime_parachains :: scheduler :: CoreAssignment > , :: subxt :: Error >{ - let entry = Scheduled; - self.client.storage().fetch_or_default(&entry, hash).await + ) -> ::core::result::Result<::subxt::KeyIter<'a, T, Calls>, ::subxt::Error> + { + self.client.storage().iter(hash).await } } } } - pub mod paras { + pub mod bounties { use super::runtime_types; pub mod calls { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ForceSetCurrentCode { - pub para: runtime_types::polkadot_parachain::primitives::Id, - pub new_code: - runtime_types::polkadot_parachain::primitives::ValidationCode, - } - impl ::subxt::Call for ForceSetCurrentCode { - const PALLET: &'static str = "Paras"; - const FUNCTION: &'static str = "force_set_current_code"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ForceSetCurrentHead { - pub para: runtime_types::polkadot_parachain::primitives::Id, - pub new_head: runtime_types::polkadot_parachain::primitives::HeadData, - } - impl ::subxt::Call for ForceSetCurrentHead { - const PALLET: &'static str = "Paras"; - const FUNCTION: &'static str = "force_set_current_head"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ForceScheduleCodeUpgrade { - pub para: runtime_types::polkadot_parachain::primitives::Id, - pub new_code: - runtime_types::polkadot_parachain::primitives::ValidationCode, - pub relay_parent_number: u32, - } - impl ::subxt::Call for ForceScheduleCodeUpgrade { - const PALLET: &'static str = "Paras"; - const FUNCTION: &'static str = "force_schedule_code_upgrade"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ForceNoteNewHead { - pub para: runtime_types::polkadot_parachain::primitives::Id, - pub new_head: runtime_types::polkadot_parachain::primitives::HeadData, - } - impl ::subxt::Call for ForceNoteNewHead { - const PALLET: &'static str = "Paras"; - const FUNCTION: &'static str = "force_note_new_head"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ForceQueueAction { - pub para: runtime_types::polkadot_parachain::primitives::Id, - } - impl ::subxt::Call for ForceQueueAction { - const PALLET: &'static str = "Paras"; - const FUNCTION: &'static str = "force_queue_action"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ProposeBounty { + #[codec(compact)] + pub value: u128, + pub description: Vec, + } + impl ::subxt::Call for ProposeBounty { + const PALLET: &'static str = "Bounties"; + const FUNCTION: &'static str = "propose_bounty"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ApproveBounty { + #[codec(compact)] + pub bounty_id: u32, + } + impl ::subxt::Call for ApproveBounty { + const PALLET: &'static str = "Bounties"; + const FUNCTION: &'static str = "approve_bounty"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ProposeCurator { + #[codec(compact)] + pub bounty_id: u32, + pub curator: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + #[codec(compact)] + pub fee: u128, + } + impl ::subxt::Call for ProposeCurator { + const PALLET: &'static str = "Bounties"; + const FUNCTION: &'static str = "propose_curator"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct UnassignCurator { + #[codec(compact)] + pub bounty_id: u32, + } + impl ::subxt::Call for UnassignCurator { + const PALLET: &'static str = "Bounties"; + const FUNCTION: &'static str = "unassign_curator"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct AcceptCurator { + #[codec(compact)] + pub bounty_id: u32, + } + impl ::subxt::Call for AcceptCurator { + const PALLET: &'static str = "Bounties"; + const FUNCTION: &'static str = "accept_curator"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct AwardBounty { + #[codec(compact)] + pub bounty_id: u32, + pub beneficiary: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + } + impl ::subxt::Call for AwardBounty { + const PALLET: &'static str = "Bounties"; + const FUNCTION: &'static str = "award_bounty"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ClaimBounty { + #[codec(compact)] + pub bounty_id: u32, + } + impl ::subxt::Call for ClaimBounty { + const PALLET: &'static str = "Bounties"; + const FUNCTION: &'static str = "claim_bounty"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct CloseBounty { + #[codec(compact)] + pub bounty_id: u32, + } + impl ::subxt::Call for CloseBounty { + const PALLET: &'static str = "Bounties"; + const FUNCTION: &'static str = "close_bounty"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ExtendBountyExpiry { + #[codec(compact)] + pub bounty_id: u32, + pub remark: Vec, + } + impl ::subxt::Call for ExtendBountyExpiry { + const PALLET: &'static str = "Bounties"; + const FUNCTION: &'static str = "extend_bounty_expiry"; } pub struct TransactionApi< 'a, @@ -10387,119 +10627,160 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub fn force_set_current_code( + pub fn propose_bounty( &self, - para: runtime_types::polkadot_parachain::primitives::Id, - new_code : runtime_types :: polkadot_parachain :: primitives :: ValidationCode, - ) -> ::subxt::SubmittableExtrinsic - { - let call = ForceSetCurrentCode { para, new_code }; + value: u128, + description: Vec, + ) -> ::subxt::SubmittableExtrinsic { + let call = ProposeBounty { value, description }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn force_set_current_head( + pub fn approve_bounty( &self, - para: runtime_types::polkadot_parachain::primitives::Id, - new_head: runtime_types::polkadot_parachain::primitives::HeadData, - ) -> ::subxt::SubmittableExtrinsic - { - let call = ForceSetCurrentHead { para, new_head }; + bounty_id: u32, + ) -> ::subxt::SubmittableExtrinsic { + let call = ApproveBounty { bounty_id }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn force_schedule_code_upgrade( + pub fn propose_curator( &self, - para: runtime_types::polkadot_parachain::primitives::Id, - new_code : runtime_types :: polkadot_parachain :: primitives :: ValidationCode, - relay_parent_number: u32, - ) -> ::subxt::SubmittableExtrinsic - { - let call = ForceScheduleCodeUpgrade { - para, - new_code, - relay_parent_number, + bounty_id: u32, + curator: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + fee: u128, + ) -> ::subxt::SubmittableExtrinsic { + let call = ProposeCurator { + bounty_id, + curator, + fee, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn unassign_curator( + &self, + bounty_id: u32, + ) -> ::subxt::SubmittableExtrinsic { + let call = UnassignCurator { bounty_id }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn accept_curator( + &self, + bounty_id: u32, + ) -> ::subxt::SubmittableExtrinsic { + let call = AcceptCurator { bounty_id }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn award_bounty( + &self, + bounty_id: u32, + beneficiary: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + ) -> ::subxt::SubmittableExtrinsic { + let call = AwardBounty { + bounty_id, + beneficiary, }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn force_note_new_head( + pub fn claim_bounty( + &self, + bounty_id: u32, + ) -> ::subxt::SubmittableExtrinsic { + let call = ClaimBounty { bounty_id }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn close_bounty( &self, - para: runtime_types::polkadot_parachain::primitives::Id, - new_head: runtime_types::polkadot_parachain::primitives::HeadData, - ) -> ::subxt::SubmittableExtrinsic { - let call = ForceNoteNewHead { para, new_head }; + bounty_id: u32, + ) -> ::subxt::SubmittableExtrinsic { + let call = CloseBounty { bounty_id }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn force_queue_action( + pub fn extend_bounty_expiry( &self, - para: runtime_types::polkadot_parachain::primitives::Id, - ) -> ::subxt::SubmittableExtrinsic { - let call = ForceQueueAction { para }; + bounty_id: u32, + remark: Vec, + ) -> ::subxt::SubmittableExtrinsic + { + let call = ExtendBountyExpiry { bounty_id, remark }; ::subxt::SubmittableExtrinsic::new(self.client, call) } } } - pub type Event = runtime_types::polkadot_runtime_parachains::paras::pallet::Event; + pub type Event = runtime_types::pallet_bounties::pallet::Event; pub mod events { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct CurrentCodeUpdated( - pub runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::Event for CurrentCodeUpdated { - const PALLET: &'static str = "Paras"; - const EVENT: &'static str = "CurrentCodeUpdated"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct BountyProposed(pub u32); + impl ::subxt::Event for BountyProposed { + const PALLET: &'static str = "Bounties"; + const EVENT: &'static str = "BountyProposed"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct CurrentHeadUpdated( - pub runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::Event for CurrentHeadUpdated { - const PALLET: &'static str = "Paras"; - const EVENT: &'static str = "CurrentHeadUpdated"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct BountyRejected(pub u32, pub u128); + impl ::subxt::Event for BountyRejected { + const PALLET: &'static str = "Bounties"; + const EVENT: &'static str = "BountyRejected"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct CodeUpgradeScheduled( - pub runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::Event for CodeUpgradeScheduled { - const PALLET: &'static str = "Paras"; - const EVENT: &'static str = "CodeUpgradeScheduled"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct BountyBecameActive(pub u32); + impl ::subxt::Event for BountyBecameActive { + const PALLET: &'static str = "Bounties"; + const EVENT: &'static str = "BountyBecameActive"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct NewHeadNoted( - pub runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::Event for NewHeadNoted { - const PALLET: &'static str = "Paras"; - const EVENT: &'static str = "NewHeadNoted"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct BountyAwarded(pub u32, pub ::subxt::sp_core::crypto::AccountId32); + impl ::subxt::Event for BountyAwarded { + const PALLET: &'static str = "Bounties"; + const EVENT: &'static str = "BountyAwarded"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ActionQueued( - pub runtime_types::polkadot_parachain::primitives::Id, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct BountyClaimed( pub u32, + pub u128, + pub ::subxt::sp_core::crypto::AccountId32, ); - impl ::subxt::Event for ActionQueued { - const PALLET: &'static str = "Paras"; - const EVENT: &'static str = "ActionQueued"; + impl ::subxt::Event for BountyClaimed { + const PALLET: &'static str = "Bounties"; + const EVENT: &'static str = "BountyClaimed"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct BountyCanceled(pub u32); + impl ::subxt::Event for BountyCanceled { + const PALLET: &'static str = "Bounties"; + const EVENT: &'static str = "BountyCanceled"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct BountyExtended(pub u32); + impl ::subxt::Event for BountyExtended { + const PALLET: &'static str = "Bounties"; + const EVENT: &'static str = "BountyExtended"; } } pub mod storage { use super::runtime_types; - pub struct Parachains; - impl ::subxt::StorageEntry for Parachains { - const PALLET: &'static str = "Paras"; - const STORAGE: &'static str = "Parachains"; - type Value = Vec; + pub struct BountyCount; + impl ::subxt::StorageEntry for BountyCount { + const PALLET: &'static str = "Bounties"; + const STORAGE: &'static str = "BountyCount"; + type Value = u32; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Plain } } - pub struct ParaLifecycles( - pub runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::StorageEntry for ParaLifecycles { - const PALLET: &'static str = "Paras"; - const STORAGE: &'static str = "ParaLifecycles"; - type Value = - runtime_types::polkadot_runtime_parachains::paras::ParaLifecycle; + pub struct Bounties(pub u32); + impl ::subxt::StorageEntry for Bounties { + const PALLET: &'static str = "Bounties"; + const STORAGE: &'static str = "Bounties"; + type Value = runtime_types::pallet_bounties::Bounty< + ::subxt::sp_core::crypto::AccountId32, + u128, + u32, + >; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( &self.0, @@ -10507,11 +10788,11 @@ pub mod api { )]) } } - pub struct Heads(pub runtime_types::polkadot_parachain::primitives::Id); - impl ::subxt::StorageEntry for Heads { - const PALLET: &'static str = "Paras"; - const STORAGE: &'static str = "Heads"; - type Value = runtime_types::polkadot_parachain::primitives::HeadData; + pub struct BountyDescriptions(pub u32); + impl ::subxt::StorageEntry for BountyDescriptions { + const PALLET: &'static str = "Bounties"; + const STORAGE: &'static str = "BountyDescriptions"; + type Value = Vec; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( &self.0, @@ -10519,407 +10800,140 @@ pub mod api { )]) } } - pub struct CurrentCodeHash( - pub runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::StorageEntry for CurrentCodeHash { - const PALLET: &'static str = "Paras"; - const STORAGE: &'static str = "CurrentCodeHash"; - type Value = - runtime_types::polkadot_parachain::primitives::ValidationCodeHash; + pub struct BountyApprovals; + impl ::subxt::StorageEntry for BountyApprovals { + const PALLET: &'static str = "Bounties"; + const STORAGE: &'static str = "BountyApprovals"; + type Value = Vec; fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) + ::subxt::StorageEntryKey::Plain } } - pub struct PastCodeHash( - runtime_types::polkadot_parachain::primitives::Id, - u32, - ); - impl ::subxt::StorageEntry for PastCodeHash { - const PALLET: &'static str = "Paras"; - const STORAGE: &'static str = "PastCodeHash"; - type Value = - runtime_types::polkadot_parachain::primitives::ValidationCodeHash; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct PastCodeMeta( - pub runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::StorageEntry for PastCodeMeta { - const PALLET: &'static str = "Paras"; - const STORAGE: &'static str = "PastCodeMeta"; - type Value = - runtime_types::polkadot_runtime_parachains::paras::ParaPastCodeMeta< - u32, - >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct PastCodePruning; - impl ::subxt::StorageEntry for PastCodePruning { - const PALLET: &'static str = "Paras"; - const STORAGE: &'static str = "PastCodePruning"; - type Value = - Vec<(runtime_types::polkadot_parachain::primitives::Id, u32)>; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct FutureCodeUpgrades( - pub runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::StorageEntry for FutureCodeUpgrades { - const PALLET: &'static str = "Paras"; - const STORAGE: &'static str = "FutureCodeUpgrades"; - type Value = u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct FutureCodeHash( - pub runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::StorageEntry for FutureCodeHash { - const PALLET: &'static str = "Paras"; - const STORAGE: &'static str = "FutureCodeHash"; - type Value = - runtime_types::polkadot_parachain::primitives::ValidationCodeHash; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct UpgradeGoAheadSignal( - pub runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::StorageEntry for UpgradeGoAheadSignal { - const PALLET: &'static str = "Paras"; - const STORAGE: &'static str = "UpgradeGoAheadSignal"; - type Value = runtime_types::polkadot_primitives::v1::UpgradeGoAhead; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct UpgradeRestrictionSignal( - pub runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::StorageEntry for UpgradeRestrictionSignal { - const PALLET: &'static str = "Paras"; - const STORAGE: &'static str = "UpgradeRestrictionSignal"; - type Value = runtime_types::polkadot_primitives::v1::UpgradeRestriction; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct UpgradeCooldowns; - impl ::subxt::StorageEntry for UpgradeCooldowns { - const PALLET: &'static str = "Paras"; - const STORAGE: &'static str = "UpgradeCooldowns"; - type Value = - Vec<(runtime_types::polkadot_parachain::primitives::Id, u32)>; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct UpcomingUpgrades; - impl ::subxt::StorageEntry for UpcomingUpgrades { - const PALLET: &'static str = "Paras"; - const STORAGE: &'static str = "UpcomingUpgrades"; - type Value = - Vec<(runtime_types::polkadot_parachain::primitives::Id, u32)>; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct ActionsQueue(pub u32); - impl ::subxt::StorageEntry for ActionsQueue { - const PALLET: &'static str = "Paras"; - const STORAGE: &'static str = "ActionsQueue"; - type Value = Vec; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct UpcomingParasGenesis( - pub runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::StorageEntry for UpcomingParasGenesis { - const PALLET: &'static str = "Paras"; - const STORAGE: &'static str = "UpcomingParasGenesis"; - type Value = - runtime_types::polkadot_runtime_parachains::paras::ParaGenesisArgs; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct CodeByHashRefs( - pub runtime_types::polkadot_parachain::primitives::ValidationCodeHash, - ); - impl ::subxt::StorageEntry for CodeByHashRefs { - const PALLET: &'static str = "Paras"; - const STORAGE: &'static str = "CodeByHashRefs"; - type Value = u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Identity, - )]) - } - } - pub struct CodeByHash( - pub runtime_types::polkadot_parachain::primitives::ValidationCodeHash, - ); - impl ::subxt::StorageEntry for CodeByHash { - const PALLET: &'static str = "Paras"; - const STORAGE: &'static str = "CodeByHash"; - type Value = - runtime_types::polkadot_parachain::primitives::ValidationCode; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Identity, - )]) - } - } - pub struct StorageApi<'a, T: ::subxt::Config> { - client: &'a ::subxt::Client, + pub struct StorageApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, } impl<'a, T: ::subxt::Config> StorageApi<'a, T> { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub async fn parachains( + pub async fn bounty_count( &self, hash: ::core::option::Option, - ) -> ::core::result::Result< - Vec, - ::subxt::Error, - > { - let entry = Parachains; + ) -> ::core::result::Result { + let entry = BountyCount; self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn para_lifecycles( - &self, - _0: runtime_types::polkadot_parachain::primitives::Id, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::polkadot_runtime_parachains::paras::ParaLifecycle, - >, - ::subxt::Error, - > { - let entry = ParaLifecycles(_0); - self.client.storage().fetch(&entry, hash).await - } - pub async fn heads( - &self, - _0: runtime_types::polkadot_parachain::primitives::Id, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::polkadot_parachain::primitives::HeadData, - >, - ::subxt::Error, - > { - let entry = Heads(_0); - self.client.storage().fetch(&entry, hash).await - } - pub async fn current_code_hash( - &self, - _0: runtime_types::polkadot_parachain::primitives::Id, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::polkadot_parachain::primitives::ValidationCodeHash, - >, - ::subxt::Error, - > { - let entry = CurrentCodeHash(_0); - self.client.storage().fetch(&entry, hash).await - } - pub async fn past_code_hash( + pub async fn bounties( &self, - _0: runtime_types::polkadot_parachain::primitives::Id, - _1: u32, + _0: u32, hash: ::core::option::Option, ) -> ::core::result::Result< ::core::option::Option< - runtime_types::polkadot_parachain::primitives::ValidationCodeHash, + runtime_types::pallet_bounties::Bounty< + ::subxt::sp_core::crypto::AccountId32, + u128, + u32, + >, >, ::subxt::Error, > { - let entry = PastCodeHash(_0, _1); + let entry = Bounties(_0); self.client.storage().fetch(&entry, hash).await } - pub async fn past_code_meta( - &self, - _0: runtime_types::polkadot_parachain::primitives::Id, - hash: ::core::option::Option, - ) -> ::core::result::Result< - runtime_types::polkadot_runtime_parachains::paras::ParaPastCodeMeta< - u32, - >, - ::subxt::Error, - > { - let entry = PastCodeMeta(_0); - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn past_code_pruning( + pub async fn bounties_iter( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - Vec<(runtime_types::polkadot_parachain::primitives::Id, u32)>, + ::subxt::KeyIter<'a, T, Bounties>, ::subxt::Error, > { - let entry = PastCodePruning; - self.client.storage().fetch_or_default(&entry, hash).await + self.client.storage().iter(hash).await } - pub async fn future_code_upgrades( + pub async fn bounty_descriptions( &self, - _0: runtime_types::polkadot_parachain::primitives::Id, + _0: u32, hash: ::core::option::Option, - ) -> ::core::result::Result<::core::option::Option, ::subxt::Error> + ) -> ::core::result::Result<::core::option::Option>, ::subxt::Error> { - let entry = FutureCodeUpgrades(_0); - self.client.storage().fetch(&entry, hash).await - } - pub async fn future_code_hash( - &self, - _0: runtime_types::polkadot_parachain::primitives::Id, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::polkadot_parachain::primitives::ValidationCodeHash, - >, - ::subxt::Error, - > { - let entry = FutureCodeHash(_0); - self.client.storage().fetch(&entry, hash).await - } - pub async fn upgrade_go_ahead_signal( - &self, - _0: runtime_types::polkadot_parachain::primitives::Id, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::polkadot_primitives::v1::UpgradeGoAhead, - >, - ::subxt::Error, - > { - let entry = UpgradeGoAheadSignal(_0); - self.client.storage().fetch(&entry, hash).await - } - pub async fn upgrade_restriction_signal( - &self, - _0: runtime_types::polkadot_parachain::primitives::Id, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::polkadot_primitives::v1::UpgradeRestriction, - >, - ::subxt::Error, - > { - let entry = UpgradeRestrictionSignal(_0); + let entry = BountyDescriptions(_0); self.client.storage().fetch(&entry, hash).await } - pub async fn upgrade_cooldowns( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - Vec<(runtime_types::polkadot_parachain::primitives::Id, u32)>, - ::subxt::Error, - > { - let entry = UpgradeCooldowns; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn upcoming_upgrades( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - Vec<(runtime_types::polkadot_parachain::primitives::Id, u32)>, - ::subxt::Error, - > { - let entry = UpcomingUpgrades; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn actions_queue( + pub async fn bounty_descriptions_iter( &self, - _0: u32, hash: ::core::option::Option, ) -> ::core::result::Result< - Vec, + ::subxt::KeyIter<'a, T, BountyDescriptions>, ::subxt::Error, > { - let entry = ActionsQueue(_0); - self.client.storage().fetch_or_default(&entry, hash).await - } pub async fn upcoming_paras_genesis (& self , _0 : runtime_types :: polkadot_parachain :: primitives :: Id , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: polkadot_runtime_parachains :: paras :: ParaGenesisArgs > , :: subxt :: Error >{ - let entry = UpcomingParasGenesis(_0); - self.client.storage().fetch(&entry, hash).await + self.client.storage().iter(hash).await } - pub async fn code_by_hash_refs( + pub async fn bounty_approvals( &self, - _0: runtime_types::polkadot_parachain::primitives::ValidationCodeHash, hash: ::core::option::Option, - ) -> ::core::result::Result { - let entry = CodeByHashRefs(_0); + ) -> ::core::result::Result, ::subxt::Error> { + let entry = BountyApprovals; self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn code_by_hash( - &self, - _0: runtime_types::polkadot_parachain::primitives::ValidationCodeHash, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::polkadot_parachain::primitives::ValidationCode, - >, - ::subxt::Error, - > { - let entry = CodeByHash(_0); - self.client.storage().fetch(&entry, hash).await - } } } } - pub mod initializer { + pub mod tips { use super::runtime_types; pub mod calls { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ForceApprove { - pub up_to: u32, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ReportAwesome { + pub reason: Vec, + pub who: ::subxt::sp_core::crypto::AccountId32, + } + impl ::subxt::Call for ReportAwesome { + const PALLET: &'static str = "Tips"; + const FUNCTION: &'static str = "report_awesome"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct RetractTip { + pub hash: ::subxt::sp_core::H256, + } + impl ::subxt::Call for RetractTip { + const PALLET: &'static str = "Tips"; + const FUNCTION: &'static str = "retract_tip"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct TipNew { + pub reason: Vec, + pub who: ::subxt::sp_core::crypto::AccountId32, + #[codec(compact)] + pub tip_value: u128, } - impl ::subxt::Call for ForceApprove { - const PALLET: &'static str = "Initializer"; - const FUNCTION: &'static str = "force_approve"; + impl ::subxt::Call for TipNew { + const PALLET: &'static str = "Tips"; + const FUNCTION: &'static str = "tip_new"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Tip { + pub hash: ::subxt::sp_core::H256, + #[codec(compact)] + pub tip_value: u128, + } + impl ::subxt::Call for Tip { + const PALLET: &'static str = "Tips"; + const FUNCTION: &'static str = "tip"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct CloseTip { + pub hash: ::subxt::sp_core::H256, + } + impl ::subxt::Call for CloseTip { + const PALLET: &'static str = "Tips"; + const FUNCTION: &'static str = "close_tip"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct SlashTip { + pub hash: ::subxt::sp_core::H256, + } + impl ::subxt::Call for SlashTip { + const PALLET: &'static str = "Tips"; + const FUNCTION: &'static str = "slash_tip"; } pub struct TransactionApi< 'a, @@ -10934,85 +10948,111 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub fn force_approve( + pub fn report_awesome( &self, - up_to: u32, - ) -> ::subxt::SubmittableExtrinsic { - let call = ForceApprove { up_to }; + reason: Vec, + who: ::subxt::sp_core::crypto::AccountId32, + ) -> ::subxt::SubmittableExtrinsic { + let call = ReportAwesome { reason, who }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - } - } - pub mod storage { - use super::runtime_types; - pub struct HasInitialized; - impl ::subxt::StorageEntry for HasInitialized { - const PALLET: &'static str = "Initializer"; - const STORAGE: &'static str = "HasInitialized"; - type Value = (); - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain + pub fn retract_tip( + &self, + hash: ::subxt::sp_core::H256, + ) -> ::subxt::SubmittableExtrinsic { + let call = RetractTip { hash }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - } - pub struct BufferedSessionChanges; - impl ::subxt::StorageEntry for BufferedSessionChanges { - const PALLET: &'static str = "Initializer"; - const STORAGE: &'static str = "BufferedSessionChanges"; - type Value = Vec < runtime_types :: polkadot_runtime_parachains :: initializer :: BufferedSessionChange > ; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain + pub fn tip_new( + &self, + reason: Vec, + who: ::subxt::sp_core::crypto::AccountId32, + tip_value: u128, + ) -> ::subxt::SubmittableExtrinsic { + let call = TipNew { + reason, + who, + tip_value, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - } - pub struct StorageApi<'a, T: ::subxt::Config> { - client: &'a ::subxt::Client, - } - impl<'a, T: ::subxt::Config> StorageApi<'a, T> { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { client } + pub fn tip( + &self, + hash: ::subxt::sp_core::H256, + tip_value: u128, + ) -> ::subxt::SubmittableExtrinsic { + let call = Tip { hash, tip_value }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub async fn has_initialized( + pub fn close_tip( &self, - hash: ::core::option::Option, - ) -> ::core::result::Result<::core::option::Option<()>, ::subxt::Error> - { - let entry = HasInitialized; - self.client.storage().fetch(&entry, hash).await - } pub async fn buffered_session_changes (& self , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < Vec < runtime_types :: polkadot_runtime_parachains :: initializer :: BufferedSessionChange > , :: subxt :: Error >{ - let entry = BufferedSessionChanges; - self.client.storage().fetch_or_default(&entry, hash).await + hash: ::subxt::sp_core::H256, + ) -> ::subxt::SubmittableExtrinsic { + let call = CloseTip { hash }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn slash_tip( + &self, + hash: ::subxt::sp_core::H256, + ) -> ::subxt::SubmittableExtrinsic { + let call = SlashTip { hash }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } } } - } - pub mod dmp { - use super::runtime_types; - pub mod calls { + pub type Event = runtime_types::pallet_tips::pallet::Event; + pub mod events { use super::runtime_types; - pub struct TransactionApi< - 'a, - T: ::subxt::Config + ::subxt::ExtrinsicExtraData, - > { - client: &'a ::subxt::Client, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct NewTip(pub ::subxt::sp_core::H256); + impl ::subxt::Event for NewTip { + const PALLET: &'static str = "Tips"; + const EVENT: &'static str = "NewTip"; } - impl<'a, T: ::subxt::Config> TransactionApi<'a, T> - where - T: ::subxt::Config + ::subxt::ExtrinsicExtraData, - { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { client } - } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct TipClosing(pub ::subxt::sp_core::H256); + impl ::subxt::Event for TipClosing { + const PALLET: &'static str = "Tips"; + const EVENT: &'static str = "TipClosing"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct TipClosed( + pub ::subxt::sp_core::H256, + pub ::subxt::sp_core::crypto::AccountId32, + pub u128, + ); + impl ::subxt::Event for TipClosed { + const PALLET: &'static str = "Tips"; + const EVENT: &'static str = "TipClosed"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct TipRetracted(pub ::subxt::sp_core::H256); + impl ::subxt::Event for TipRetracted { + const PALLET: &'static str = "Tips"; + const EVENT: &'static str = "TipRetracted"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct TipSlashed( + pub ::subxt::sp_core::H256, + pub ::subxt::sp_core::crypto::AccountId32, + pub u128, + ); + impl ::subxt::Event for TipSlashed { + const PALLET: &'static str = "Tips"; + const EVENT: &'static str = "TipSlashed"; } } pub mod storage { use super::runtime_types; - pub struct DownwardMessageQueues( - pub runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::StorageEntry for DownwardMessageQueues { - const PALLET: &'static str = "Dmp"; - const STORAGE: &'static str = "DownwardMessageQueues"; - type Value = Vec< - runtime_types::polkadot_core_primitives::InboundDownwardMessage, + pub struct Tips(pub ::subxt::sp_core::H256); + impl ::subxt::StorageEntry for Tips { + const PALLET: &'static str = "Tips"; + const STORAGE: &'static str = "Tips"; + type Value = runtime_types::pallet_tips::OpenTip< + ::subxt::sp_core::crypto::AccountId32, + u128, + u32, + ::subxt::sp_core::H256, >; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( @@ -11021,17 +11061,15 @@ pub mod api { )]) } } - pub struct DownwardMessageQueueHeads( - pub runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::StorageEntry for DownwardMessageQueueHeads { - const PALLET: &'static str = "Dmp"; - const STORAGE: &'static str = "DownwardMessageQueueHeads"; - type Value = ::subxt::sp_core::H256; + pub struct Reasons(pub ::subxt::sp_core::H256); + impl ::subxt::StorageEntry for Reasons { + const PALLET: &'static str = "Tips"; + const STORAGE: &'static str = "Reasons"; + type Value = Vec; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( &self.0, - ::subxt::StorageHasher::Twox64Concat, + ::subxt::StorageHasher::Identity, )]) } } @@ -11042,328 +11080,388 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub async fn downward_message_queues( + pub async fn tips( &self, - _0: runtime_types::polkadot_parachain::primitives::Id, + _0: ::subxt::sp_core::H256, hash: ::core::option::Option, ) -> ::core::result::Result< - Vec< - runtime_types::polkadot_core_primitives::InboundDownwardMessage< + ::core::option::Option< + runtime_types::pallet_tips::OpenTip< + ::subxt::sp_core::crypto::AccountId32, + u128, u32, + ::subxt::sp_core::H256, >, >, ::subxt::Error, > { - let entry = DownwardMessageQueues(_0); - self.client.storage().fetch_or_default(&entry, hash).await + let entry = Tips(_0); + self.client.storage().fetch(&entry, hash).await } - pub async fn downward_message_queue_heads( + pub async fn tips_iter( &self, - _0: runtime_types::polkadot_parachain::primitives::Id, hash: ::core::option::Option, - ) -> ::core::result::Result<::subxt::sp_core::H256, ::subxt::Error> + ) -> ::core::result::Result<::subxt::KeyIter<'a, T, Tips>, ::subxt::Error> { - let entry = DownwardMessageQueueHeads(_0); - self.client.storage().fetch_or_default(&entry, hash).await + self.client.storage().iter(hash).await + } + pub async fn reasons( + &self, + _0: ::subxt::sp_core::H256, + hash: ::core::option::Option, + ) -> ::core::result::Result<::core::option::Option>, ::subxt::Error> + { + let entry = Reasons(_0); + self.client.storage().fetch(&entry, hash).await + } + pub async fn reasons_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, Reasons>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await } } } } - pub mod ump { + pub mod assets { use super::runtime_types; pub mod calls { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ServiceOverweight { - pub index: u64, - pub weight_limit: u64, - } - impl ::subxt::Call for ServiceOverweight { - const PALLET: &'static str = "Ump"; - const FUNCTION: &'static str = "service_overweight"; - } - pub struct TransactionApi< - 'a, - T: ::subxt::Config + ::subxt::ExtrinsicExtraData, - > { - client: &'a ::subxt::Client, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Create { + #[codec(compact)] + pub id: u32, + pub admin: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + pub min_balance: u64, } - impl<'a, T: ::subxt::Config> TransactionApi<'a, T> - where - T: ::subxt::Config + ::subxt::ExtrinsicExtraData, - { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { client } - } - pub fn service_overweight( - &self, - index: u64, - weight_limit: u64, - ) -> ::subxt::SubmittableExtrinsic { - let call = ServiceOverweight { - index, - weight_limit, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } + impl ::subxt::Call for Create { + const PALLET: &'static str = "Assets"; + const FUNCTION: &'static str = "create"; } - } - pub type Event = runtime_types::polkadot_runtime_parachains::ump::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct InvalidFormat(pub [u8; 32usize]); - impl ::subxt::Event for InvalidFormat { - const PALLET: &'static str = "Ump"; - const EVENT: &'static str = "InvalidFormat"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct UnsupportedVersion(pub [u8; 32usize]); - impl ::subxt::Event for UnsupportedVersion { - const PALLET: &'static str = "Ump"; - const EVENT: &'static str = "UnsupportedVersion"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ExecutedUpward( - pub [u8; 32usize], - pub runtime_types::xcm::v2::traits::Outcome, - ); - impl ::subxt::Event for ExecutedUpward { - const PALLET: &'static str = "Ump"; - const EVENT: &'static str = "ExecutedUpward"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct WeightExhausted(pub [u8; 32usize], pub u64, pub u64); - impl ::subxt::Event for WeightExhausted { - const PALLET: &'static str = "Ump"; - const EVENT: &'static str = "WeightExhausted"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct UpwardMessagesReceived( - pub runtime_types::polkadot_parachain::primitives::Id, - pub u32, - pub u32, - ); - impl ::subxt::Event for UpwardMessagesReceived { - const PALLET: &'static str = "Ump"; - const EVENT: &'static str = "UpwardMessagesReceived"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ForceCreate { + #[codec(compact)] + pub id: u32, + pub owner: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + pub is_sufficient: bool, + #[codec(compact)] + pub min_balance: u64, } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct OverweightEnqueued( - pub runtime_types::polkadot_parachain::primitives::Id, - pub [u8; 32usize], - pub u64, - pub u64, - ); - impl ::subxt::Event for OverweightEnqueued { - const PALLET: &'static str = "Ump"; - const EVENT: &'static str = "OverweightEnqueued"; + impl ::subxt::Call for ForceCreate { + const PALLET: &'static str = "Assets"; + const FUNCTION: &'static str = "force_create"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct OverweightServiced(pub u64, pub u64); - impl ::subxt::Event for OverweightServiced { - const PALLET: &'static str = "Ump"; - const EVENT: &'static str = "OverweightServiced"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Destroy { + #[codec(compact)] + pub id: u32, + pub witness: runtime_types::pallet_assets::types::DestroyWitness, } - } - pub mod storage { - use super::runtime_types; - pub struct RelayDispatchQueues( - pub runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::StorageEntry for RelayDispatchQueues { - const PALLET: &'static str = "Ump"; - const STORAGE: &'static str = "RelayDispatchQueues"; - type Value = Vec>; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } + impl ::subxt::Call for Destroy { + const PALLET: &'static str = "Assets"; + const FUNCTION: &'static str = "destroy"; } - pub struct RelayDispatchQueueSize( - pub runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::StorageEntry for RelayDispatchQueueSize { - const PALLET: &'static str = "Ump"; - const STORAGE: &'static str = "RelayDispatchQueueSize"; - type Value = (u32, u32); - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Mint { + #[codec(compact)] + pub id: u32, + pub beneficiary: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + #[codec(compact)] + pub amount: u64, } - pub struct NeedsDispatch; - impl ::subxt::StorageEntry for NeedsDispatch { - const PALLET: &'static str = "Ump"; - const STORAGE: &'static str = "NeedsDispatch"; - type Value = Vec; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } + impl ::subxt::Call for Mint { + const PALLET: &'static str = "Assets"; + const FUNCTION: &'static str = "mint"; } - pub struct NextDispatchRoundStartWith; - impl ::subxt::StorageEntry for NextDispatchRoundStartWith { - const PALLET: &'static str = "Ump"; - const STORAGE: &'static str = "NextDispatchRoundStartWith"; - type Value = runtime_types::polkadot_parachain::primitives::Id; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Burn { + #[codec(compact)] + pub id: u32, + pub who: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + #[codec(compact)] + pub amount: u64, } - pub struct Overweight(pub u64); - impl ::subxt::StorageEntry for Overweight { - const PALLET: &'static str = "Ump"; - const STORAGE: &'static str = "Overweight"; - type Value = (runtime_types::polkadot_parachain::primitives::Id, Vec); - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } + impl ::subxt::Call for Burn { + const PALLET: &'static str = "Assets"; + const FUNCTION: &'static str = "burn"; } - pub struct OverweightCount; - impl ::subxt::StorageEntry for OverweightCount { - const PALLET: &'static str = "Ump"; - const STORAGE: &'static str = "OverweightCount"; - type Value = u64; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Transfer { + #[codec(compact)] + pub id: u32, + pub target: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + #[codec(compact)] + pub amount: u64, } - pub struct StorageApi<'a, T: ::subxt::Config> { - client: &'a ::subxt::Client, + impl ::subxt::Call for Transfer { + const PALLET: &'static str = "Assets"; + const FUNCTION: &'static str = "transfer"; } - impl<'a, T: ::subxt::Config> StorageApi<'a, T> { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { client } - } - pub async fn relay_dispatch_queues( - &self, - _0: runtime_types::polkadot_parachain::primitives::Id, - hash: ::core::option::Option, - ) -> ::core::result::Result>, ::subxt::Error> - { - let entry = RelayDispatchQueues(_0); - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn relay_dispatch_queue_size( - &self, - _0: runtime_types::polkadot_parachain::primitives::Id, - hash: ::core::option::Option, - ) -> ::core::result::Result<(u32, u32), ::subxt::Error> { - let entry = RelayDispatchQueueSize(_0); - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn needs_dispatch( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - Vec, - ::subxt::Error, - > { - let entry = NeedsDispatch; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn next_dispatch_round_start_with( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::polkadot_parachain::primitives::Id, - >, - ::subxt::Error, - > { - let entry = NextDispatchRoundStartWith; - self.client.storage().fetch(&entry, hash).await - } - pub async fn overweight( - &self, - _0: u64, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option<( - runtime_types::polkadot_parachain::primitives::Id, - Vec, - )>, - ::subxt::Error, - > { - let entry = Overweight(_0); - self.client.storage().fetch(&entry, hash).await - } - pub async fn overweight_count( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result { - let entry = OverweightCount; - self.client.storage().fetch_or_default(&entry, hash).await - } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct TransferKeepAlive { + #[codec(compact)] + pub id: u32, + pub target: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + #[codec(compact)] + pub amount: u64, } - } - } - pub mod hrmp { - use super::runtime_types; - pub mod calls { - use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct HrmpInitOpenChannel { - pub recipient: runtime_types::polkadot_parachain::primitives::Id, - pub proposed_max_capacity: u32, - pub proposed_max_message_size: u32, - } - impl ::subxt::Call for HrmpInitOpenChannel { - const PALLET: &'static str = "Hrmp"; - const FUNCTION: &'static str = "hrmp_init_open_channel"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct HrmpAcceptOpenChannel { - pub sender: runtime_types::polkadot_parachain::primitives::Id, - } - impl ::subxt::Call for HrmpAcceptOpenChannel { - const PALLET: &'static str = "Hrmp"; - const FUNCTION: &'static str = "hrmp_accept_open_channel"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct HrmpCloseChannel { - pub channel_id: - runtime_types::polkadot_parachain::primitives::HrmpChannelId, - } - impl ::subxt::Call for HrmpCloseChannel { - const PALLET: &'static str = "Hrmp"; - const FUNCTION: &'static str = "hrmp_close_channel"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ForceCleanHrmp { - pub para: runtime_types::polkadot_parachain::primitives::Id, - } - impl ::subxt::Call for ForceCleanHrmp { - const PALLET: &'static str = "Hrmp"; - const FUNCTION: &'static str = "force_clean_hrmp"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ForceProcessHrmpOpen {} - impl ::subxt::Call for ForceProcessHrmpOpen { - const PALLET: &'static str = "Hrmp"; - const FUNCTION: &'static str = "force_process_hrmp_open"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ForceProcessHrmpClose {} - impl ::subxt::Call for ForceProcessHrmpClose { - const PALLET: &'static str = "Hrmp"; - const FUNCTION: &'static str = "force_process_hrmp_close"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct HrmpCancelOpenRequest { - pub channel_id: - runtime_types::polkadot_parachain::primitives::HrmpChannelId, - } - impl ::subxt::Call for HrmpCancelOpenRequest { - const PALLET: &'static str = "Hrmp"; - const FUNCTION: &'static str = "hrmp_cancel_open_request"; + impl ::subxt::Call for TransferKeepAlive { + const PALLET: &'static str = "Assets"; + const FUNCTION: &'static str = "transfer_keep_alive"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ForceTransfer { + #[codec(compact)] + pub id: u32, + pub source: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + pub dest: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + #[codec(compact)] + pub amount: u64, + } + impl ::subxt::Call for ForceTransfer { + const PALLET: &'static str = "Assets"; + const FUNCTION: &'static str = "force_transfer"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Freeze { + #[codec(compact)] + pub id: u32, + pub who: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + } + impl ::subxt::Call for Freeze { + const PALLET: &'static str = "Assets"; + const FUNCTION: &'static str = "freeze"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Thaw { + #[codec(compact)] + pub id: u32, + pub who: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + } + impl ::subxt::Call for Thaw { + const PALLET: &'static str = "Assets"; + const FUNCTION: &'static str = "thaw"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct FreezeAsset { + #[codec(compact)] + pub id: u32, + } + impl ::subxt::Call for FreezeAsset { + const PALLET: &'static str = "Assets"; + const FUNCTION: &'static str = "freeze_asset"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ThawAsset { + #[codec(compact)] + pub id: u32, + } + impl ::subxt::Call for ThawAsset { + const PALLET: &'static str = "Assets"; + const FUNCTION: &'static str = "thaw_asset"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct TransferOwnership { + #[codec(compact)] + pub id: u32, + pub owner: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + } + impl ::subxt::Call for TransferOwnership { + const PALLET: &'static str = "Assets"; + const FUNCTION: &'static str = "transfer_ownership"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct SetTeam { + #[codec(compact)] + pub id: u32, + pub issuer: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + pub admin: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + pub freezer: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + } + impl ::subxt::Call for SetTeam { + const PALLET: &'static str = "Assets"; + const FUNCTION: &'static str = "set_team"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct SetMetadata { + #[codec(compact)] + pub id: u32, + pub name: Vec, + pub symbol: Vec, + pub decimals: u8, + } + impl ::subxt::Call for SetMetadata { + const PALLET: &'static str = "Assets"; + const FUNCTION: &'static str = "set_metadata"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ClearMetadata { + #[codec(compact)] + pub id: u32, + } + impl ::subxt::Call for ClearMetadata { + const PALLET: &'static str = "Assets"; + const FUNCTION: &'static str = "clear_metadata"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ForceSetMetadata { + #[codec(compact)] + pub id: u32, + pub name: Vec, + pub symbol: Vec, + pub decimals: u8, + pub is_frozen: bool, + } + impl ::subxt::Call for ForceSetMetadata { + const PALLET: &'static str = "Assets"; + const FUNCTION: &'static str = "force_set_metadata"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ForceClearMetadata { + #[codec(compact)] + pub id: u32, + } + impl ::subxt::Call for ForceClearMetadata { + const PALLET: &'static str = "Assets"; + const FUNCTION: &'static str = "force_clear_metadata"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ForceAssetStatus { + #[codec(compact)] + pub id: u32, + pub owner: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + pub issuer: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + pub admin: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + pub freezer: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + #[codec(compact)] + pub min_balance: u64, + pub is_sufficient: bool, + pub is_frozen: bool, + } + impl ::subxt::Call for ForceAssetStatus { + const PALLET: &'static str = "Assets"; + const FUNCTION: &'static str = "force_asset_status"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ApproveTransfer { + #[codec(compact)] + pub id: u32, + pub delegate: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + #[codec(compact)] + pub amount: u64, + } + impl ::subxt::Call for ApproveTransfer { + const PALLET: &'static str = "Assets"; + const FUNCTION: &'static str = "approve_transfer"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct CancelApproval { + #[codec(compact)] + pub id: u32, + pub delegate: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + } + impl ::subxt::Call for CancelApproval { + const PALLET: &'static str = "Assets"; + const FUNCTION: &'static str = "cancel_approval"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ForceCancelApproval { + #[codec(compact)] + pub id: u32, + pub owner: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + pub delegate: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + } + impl ::subxt::Call for ForceCancelApproval { + const PALLET: &'static str = "Assets"; + const FUNCTION: &'static str = "force_cancel_approval"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct TransferApproved { + #[codec(compact)] + pub id: u32, + pub owner: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + pub destination: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + #[codec(compact)] + pub amount: u64, + } + impl ::subxt::Call for TransferApproved { + const PALLET: &'static str = "Assets"; + const FUNCTION: &'static str = "transfer_approved"; } pub struct TransactionApi< 'a, @@ -11378,270 +11476,567 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub fn hrmp_init_open_channel( + pub fn create( &self, - recipient: runtime_types::polkadot_parachain::primitives::Id, - proposed_max_capacity: u32, - proposed_max_message_size: u32, - ) -> ::subxt::SubmittableExtrinsic - { - let call = HrmpInitOpenChannel { - recipient, - proposed_max_capacity, - proposed_max_message_size, + id: u32, + admin: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + min_balance: u64, + ) -> ::subxt::SubmittableExtrinsic { + let call = Create { + id, + admin, + min_balance, }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn hrmp_accept_open_channel( + pub fn force_create( &self, - sender: runtime_types::polkadot_parachain::primitives::Id, - ) -> ::subxt::SubmittableExtrinsic - { - let call = HrmpAcceptOpenChannel { sender }; + id: u32, + owner: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + is_sufficient: bool, + min_balance: u64, + ) -> ::subxt::SubmittableExtrinsic { + let call = ForceCreate { + id, + owner, + is_sufficient, + min_balance, + }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn hrmp_close_channel( + pub fn destroy( &self, - channel_id : runtime_types :: polkadot_parachain :: primitives :: HrmpChannelId, - ) -> ::subxt::SubmittableExtrinsic { - let call = HrmpCloseChannel { channel_id }; + id: u32, + witness: runtime_types::pallet_assets::types::DestroyWitness, + ) -> ::subxt::SubmittableExtrinsic { + let call = Destroy { id, witness }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn force_clean_hrmp( + pub fn mint( &self, - para: runtime_types::polkadot_parachain::primitives::Id, - ) -> ::subxt::SubmittableExtrinsic { - let call = ForceCleanHrmp { para }; + id: u32, + beneficiary: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + amount: u64, + ) -> ::subxt::SubmittableExtrinsic { + let call = Mint { + id, + beneficiary, + amount, + }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn force_process_hrmp_open( + pub fn burn( &self, - ) -> ::subxt::SubmittableExtrinsic - { - let call = ForceProcessHrmpOpen {}; + id: u32, + who: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + amount: u64, + ) -> ::subxt::SubmittableExtrinsic { + let call = Burn { id, who, amount }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn force_process_hrmp_close( + pub fn transfer( &self, - ) -> ::subxt::SubmittableExtrinsic - { - let call = ForceProcessHrmpClose {}; + id: u32, + target: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + amount: u64, + ) -> ::subxt::SubmittableExtrinsic { + let call = Transfer { id, target, amount }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn hrmp_cancel_open_request( + pub fn transfer_keep_alive( &self, - channel_id : runtime_types :: polkadot_parachain :: primitives :: HrmpChannelId, - ) -> ::subxt::SubmittableExtrinsic - { - let call = HrmpCancelOpenRequest { channel_id }; + id: u32, + target: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + amount: u64, + ) -> ::subxt::SubmittableExtrinsic { + let call = TransferKeepAlive { id, target, amount }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - } - } - pub type Event = runtime_types::polkadot_runtime_parachains::hrmp::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct OpenChannelRequested( - pub runtime_types::polkadot_parachain::primitives::Id, - pub runtime_types::polkadot_parachain::primitives::Id, - pub u32, - pub u32, - ); - impl ::subxt::Event for OpenChannelRequested { - const PALLET: &'static str = "Hrmp"; - const EVENT: &'static str = "OpenChannelRequested"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct OpenChannelCanceled( - pub runtime_types::polkadot_parachain::primitives::Id, - pub runtime_types::polkadot_parachain::primitives::HrmpChannelId, - ); - impl ::subxt::Event for OpenChannelCanceled { - const PALLET: &'static str = "Hrmp"; - const EVENT: &'static str = "OpenChannelCanceled"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct OpenChannelAccepted( - pub runtime_types::polkadot_parachain::primitives::Id, - pub runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::Event for OpenChannelAccepted { - const PALLET: &'static str = "Hrmp"; - const EVENT: &'static str = "OpenChannelAccepted"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ChannelClosed( - pub runtime_types::polkadot_parachain::primitives::Id, - pub runtime_types::polkadot_parachain::primitives::HrmpChannelId, - ); - impl ::subxt::Event for ChannelClosed { - const PALLET: &'static str = "Hrmp"; - const EVENT: &'static str = "ChannelClosed"; - } - } - pub mod storage { - use super::runtime_types; - pub struct HrmpOpenChannelRequests( - pub runtime_types::polkadot_parachain::primitives::HrmpChannelId, - ); - impl ::subxt::StorageEntry for HrmpOpenChannelRequests { - const PALLET: &'static str = "Hrmp"; - const STORAGE: &'static str = "HrmpOpenChannelRequests"; - type Value = runtime_types :: polkadot_runtime_parachains :: hrmp :: HrmpOpenChannelRequest ; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) + pub fn force_transfer( + &self, + id: u32, + source: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + dest: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + amount: u64, + ) -> ::subxt::SubmittableExtrinsic { + let call = ForceTransfer { + id, + source, + dest, + amount, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - } - pub struct HrmpOpenChannelRequestsList; - impl ::subxt::StorageEntry for HrmpOpenChannelRequestsList { - const PALLET: &'static str = "Hrmp"; - const STORAGE: &'static str = "HrmpOpenChannelRequestsList"; - type Value = - Vec; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain + pub fn freeze( + &self, + id: u32, + who: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + ) -> ::subxt::SubmittableExtrinsic { + let call = Freeze { id, who }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn thaw( + &self, + id: u32, + who: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + ) -> ::subxt::SubmittableExtrinsic { + let call = Thaw { id, who }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn freeze_asset( + &self, + id: u32, + ) -> ::subxt::SubmittableExtrinsic { + let call = FreezeAsset { id }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn thaw_asset( + &self, + id: u32, + ) -> ::subxt::SubmittableExtrinsic { + let call = ThawAsset { id }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn transfer_ownership( + &self, + id: u32, + owner: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + ) -> ::subxt::SubmittableExtrinsic { + let call = TransferOwnership { id, owner }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn set_team( + &self, + id: u32, + issuer: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + admin: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + freezer: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + ) -> ::subxt::SubmittableExtrinsic { + let call = SetTeam { + id, + issuer, + admin, + freezer, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn set_metadata( + &self, + id: u32, + name: Vec, + symbol: Vec, + decimals: u8, + ) -> ::subxt::SubmittableExtrinsic { + let call = SetMetadata { + id, + name, + symbol, + decimals, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn clear_metadata( + &self, + id: u32, + ) -> ::subxt::SubmittableExtrinsic { + let call = ClearMetadata { id }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn force_set_metadata( + &self, + id: u32, + name: Vec, + symbol: Vec, + decimals: u8, + is_frozen: bool, + ) -> ::subxt::SubmittableExtrinsic { + let call = ForceSetMetadata { + id, + name, + symbol, + decimals, + is_frozen, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn force_clear_metadata( + &self, + id: u32, + ) -> ::subxt::SubmittableExtrinsic + { + let call = ForceClearMetadata { id }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn force_asset_status( + &self, + id: u32, + owner: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + issuer: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + admin: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + freezer: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + min_balance: u64, + is_sufficient: bool, + is_frozen: bool, + ) -> ::subxt::SubmittableExtrinsic { + let call = ForceAssetStatus { + id, + owner, + issuer, + admin, + freezer, + min_balance, + is_sufficient, + is_frozen, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn approve_transfer( + &self, + id: u32, + delegate: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + amount: u64, + ) -> ::subxt::SubmittableExtrinsic { + let call = ApproveTransfer { + id, + delegate, + amount, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn cancel_approval( + &self, + id: u32, + delegate: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + ) -> ::subxt::SubmittableExtrinsic { + let call = CancelApproval { id, delegate }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn force_cancel_approval( + &self, + id: u32, + owner: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + delegate: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + ) -> ::subxt::SubmittableExtrinsic + { + let call = ForceCancelApproval { + id, + owner, + delegate, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn transfer_approved( + &self, + id: u32, + owner: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + destination: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + amount: u64, + ) -> ::subxt::SubmittableExtrinsic { + let call = TransferApproved { + id, + owner, + destination, + amount, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } } - pub struct HrmpOpenChannelRequestCount( - pub runtime_types::polkadot_parachain::primitives::Id, + } + pub type Event = runtime_types::pallet_assets::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Created( + pub u32, + pub ::subxt::sp_core::crypto::AccountId32, + pub ::subxt::sp_core::crypto::AccountId32, ); - impl ::subxt::StorageEntry for HrmpOpenChannelRequestCount { - const PALLET: &'static str = "Hrmp"; - const STORAGE: &'static str = "HrmpOpenChannelRequestCount"; - type Value = u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } + impl ::subxt::Event for Created { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "Created"; } - pub struct HrmpAcceptedChannelRequestCount( - pub runtime_types::polkadot_parachain::primitives::Id, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Issued( + pub u32, + pub ::subxt::sp_core::crypto::AccountId32, + pub u64, ); - impl ::subxt::StorageEntry for HrmpAcceptedChannelRequestCount { - const PALLET: &'static str = "Hrmp"; - const STORAGE: &'static str = "HrmpAcceptedChannelRequestCount"; - type Value = u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } + impl ::subxt::Event for Issued { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "Issued"; } - pub struct HrmpCloseChannelRequests( - pub runtime_types::polkadot_parachain::primitives::HrmpChannelId, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Transferred( + pub u32, + pub ::subxt::sp_core::crypto::AccountId32, + pub ::subxt::sp_core::crypto::AccountId32, + pub u64, ); - impl ::subxt::StorageEntry for HrmpCloseChannelRequests { - const PALLET: &'static str = "Hrmp"; - const STORAGE: &'static str = "HrmpCloseChannelRequests"; - type Value = (); - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } + impl ::subxt::Event for Transferred { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "Transferred"; } - pub struct HrmpCloseChannelRequestsList; - impl ::subxt::StorageEntry for HrmpCloseChannelRequestsList { - const PALLET: &'static str = "Hrmp"; - const STORAGE: &'static str = "HrmpCloseChannelRequestsList"; - type Value = - Vec; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Burned( + pub u32, + pub ::subxt::sp_core::crypto::AccountId32, + pub u64, + ); + impl ::subxt::Event for Burned { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "Burned"; } - pub struct HrmpWatermarks( - pub runtime_types::polkadot_parachain::primitives::Id, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct TeamChanged( + pub u32, + pub ::subxt::sp_core::crypto::AccountId32, + pub ::subxt::sp_core::crypto::AccountId32, + pub ::subxt::sp_core::crypto::AccountId32, ); - impl ::subxt::StorageEntry for HrmpWatermarks { - const PALLET: &'static str = "Hrmp"; - const STORAGE: &'static str = "HrmpWatermarks"; - type Value = u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } + impl ::subxt::Event for TeamChanged { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "TeamChanged"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct OwnerChanged(pub u32, pub ::subxt::sp_core::crypto::AccountId32); + impl ::subxt::Event for OwnerChanged { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "OwnerChanged"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Frozen(pub u32, pub ::subxt::sp_core::crypto::AccountId32); + impl ::subxt::Event for Frozen { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "Frozen"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Thawed(pub u32, pub ::subxt::sp_core::crypto::AccountId32); + impl ::subxt::Event for Thawed { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "Thawed"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct AssetFrozen(pub u32); + impl ::subxt::Event for AssetFrozen { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "AssetFrozen"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct AssetThawed(pub u32); + impl ::subxt::Event for AssetThawed { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "AssetThawed"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Destroyed(pub u32); + impl ::subxt::Event for Destroyed { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "Destroyed"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ForceCreated(pub u32, pub ::subxt::sp_core::crypto::AccountId32); + impl ::subxt::Event for ForceCreated { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "ForceCreated"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct MetadataSet(pub u32, pub Vec, pub Vec, pub u8, pub bool); + impl ::subxt::Event for MetadataSet { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "MetadataSet"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct MetadataCleared(pub u32); + impl ::subxt::Event for MetadataCleared { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "MetadataCleared"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ApprovedTransfer( + pub u32, + pub ::subxt::sp_core::crypto::AccountId32, + pub ::subxt::sp_core::crypto::AccountId32, + pub u64, + ); + impl ::subxt::Event for ApprovedTransfer { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "ApprovedTransfer"; } - pub struct HrmpChannels( - pub runtime_types::polkadot_parachain::primitives::HrmpChannelId, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ApprovalCancelled( + pub u32, + pub ::subxt::sp_core::crypto::AccountId32, + pub ::subxt::sp_core::crypto::AccountId32, ); - impl ::subxt::StorageEntry for HrmpChannels { - const PALLET: &'static str = "Hrmp"; - const STORAGE: &'static str = "HrmpChannels"; - type Value = - runtime_types::polkadot_runtime_parachains::hrmp::HrmpChannel; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } + impl ::subxt::Event for ApprovalCancelled { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "ApprovalCancelled"; } - pub struct HrmpIngressChannelsIndex( - pub runtime_types::polkadot_parachain::primitives::Id, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct TransferredApproved( + pub u32, + pub ::subxt::sp_core::crypto::AccountId32, + pub ::subxt::sp_core::crypto::AccountId32, + pub ::subxt::sp_core::crypto::AccountId32, + pub u64, ); - impl ::subxt::StorageEntry for HrmpIngressChannelsIndex { - const PALLET: &'static str = "Hrmp"; - const STORAGE: &'static str = "HrmpIngressChannelsIndex"; - type Value = Vec; + impl ::subxt::Event for TransferredApproved { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "TransferredApproved"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct AssetStatusChanged(pub u32); + impl ::subxt::Event for AssetStatusChanged { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "AssetStatusChanged"; + } + } + pub mod storage { + use super::runtime_types; + pub struct Asset(pub u32); + impl ::subxt::StorageEntry for Asset { + const PALLET: &'static str = "Assets"; + const STORAGE: &'static str = "Asset"; + type Value = runtime_types::pallet_assets::types::AssetDetails< + u64, + ::subxt::sp_core::crypto::AccountId32, + u128, + >; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( &self.0, - ::subxt::StorageHasher::Twox64Concat, + ::subxt::StorageHasher::Blake2_128Concat, )]) } } - pub struct HrmpEgressChannelsIndex( - pub runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::StorageEntry for HrmpEgressChannelsIndex { - const PALLET: &'static str = "Hrmp"; - const STORAGE: &'static str = "HrmpEgressChannelsIndex"; - type Value = Vec; + pub struct Account(u32, ::subxt::sp_core::crypto::AccountId32); + impl ::subxt::StorageEntry for Account { + const PALLET: &'static str = "Assets"; + const STORAGE: &'static str = "Account"; + type Value = runtime_types::pallet_assets::types::AssetBalance; fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) + ::subxt::StorageEntryKey::Map(vec![ + ::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Blake2_128Concat, + ), + ::subxt::StorageMapKey::new( + &self.1, + ::subxt::StorageHasher::Blake2_128Concat, + ), + ]) } } - pub struct HrmpChannelContents( - pub runtime_types::polkadot_parachain::primitives::HrmpChannelId, + pub struct Approvals( + u32, + ::subxt::sp_core::crypto::AccountId32, + ::subxt::sp_core::crypto::AccountId32, ); - impl ::subxt::StorageEntry for HrmpChannelContents { - const PALLET: &'static str = "Hrmp"; - const STORAGE: &'static str = "HrmpChannelContents"; - type Value = - Vec>; + impl ::subxt::StorageEntry for Approvals { + const PALLET: &'static str = "Assets"; + const STORAGE: &'static str = "Approvals"; + type Value = runtime_types::pallet_assets::types::Approval; fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) + ::subxt::StorageEntryKey::Map(vec![ + ::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Blake2_128Concat, + ), + ::subxt::StorageMapKey::new( + &self.1, + ::subxt::StorageHasher::Blake2_128Concat, + ), + ::subxt::StorageMapKey::new( + &self.2, + ::subxt::StorageHasher::Blake2_128Concat, + ), + ]) } } - pub struct HrmpChannelDigests( - pub runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::StorageEntry for HrmpChannelDigests { - const PALLET: &'static str = "Hrmp"; - const STORAGE: &'static str = "HrmpChannelDigests"; - type Value = - Vec<(u32, Vec)>; + pub struct Metadata(pub u32); + impl ::subxt::StorageEntry for Metadata { + const PALLET: &'static str = "Assets"; + const STORAGE: &'static str = "Metadata"; + type Value = runtime_types::pallet_assets::types::AssetMetadata< + u128, + runtime_types::frame_support::storage::bounded_vec::BoundedVec, + >; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( &self.0, - ::subxt::StorageHasher::Twox64Concat, + ::subxt::StorageHasher::Blake2_128Concat, )]) } } @@ -11651,152 +12046,131 @@ pub mod api { impl<'a, T: ::subxt::Config> StorageApi<'a, T> { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } - } pub async fn hrmp_open_channel_requests (& self , _0 : runtime_types :: polkadot_parachain :: primitives :: HrmpChannelId , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: polkadot_runtime_parachains :: hrmp :: HrmpOpenChannelRequest > , :: subxt :: Error >{ - let entry = HrmpOpenChannelRequests(_0); - self.client.storage().fetch(&entry, hash).await } - pub async fn hrmp_open_channel_requests_list( + pub async fn asset( &self, + _0: u32, hash: ::core::option::Option, ) -> ::core::result::Result< - Vec, + ::core::option::Option< + runtime_types::pallet_assets::types::AssetDetails< + u64, + ::subxt::sp_core::crypto::AccountId32, + u128, + >, + >, ::subxt::Error, > { - let entry = HrmpOpenChannelRequestsList; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn hrmp_open_channel_request_count( - &self, - _0: runtime_types::polkadot_parachain::primitives::Id, - hash: ::core::option::Option, - ) -> ::core::result::Result { - let entry = HrmpOpenChannelRequestCount(_0); - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn hrmp_accepted_channel_request_count( - &self, - _0: runtime_types::polkadot_parachain::primitives::Id, - hash: ::core::option::Option, - ) -> ::core::result::Result { - let entry = HrmpAcceptedChannelRequestCount(_0); - self.client.storage().fetch_or_default(&entry, hash).await + let entry = Asset(_0); + self.client.storage().fetch(&entry, hash).await } - pub async fn hrmp_close_channel_requests( + pub async fn asset_iter( &self, - _0: runtime_types::polkadot_parachain::primitives::HrmpChannelId, hash: ::core::option::Option, - ) -> ::core::result::Result<::core::option::Option<()>, ::subxt::Error> + ) -> ::core::result::Result<::subxt::KeyIter<'a, T, Asset>, ::subxt::Error> { - let entry = HrmpCloseChannelRequests(_0); - self.client.storage().fetch(&entry, hash).await + self.client.storage().iter(hash).await } - pub async fn hrmp_close_channel_requests_list( + pub async fn account( &self, + _0: u32, + _1: ::subxt::sp_core::crypto::AccountId32, hash: ::core::option::Option, ) -> ::core::result::Result< - Vec, + runtime_types::pallet_assets::types::AssetBalance, ::subxt::Error, > { - let entry = HrmpCloseChannelRequestsList; + let entry = Account(_0, _1); self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn hrmp_watermarks( + pub async fn account_iter( &self, - _0: runtime_types::polkadot_parachain::primitives::Id, - hash: ::core::option::Option, - ) -> ::core::result::Result<::core::option::Option, ::subxt::Error> - { - let entry = HrmpWatermarks(_0); - self.client.storage().fetch(&entry, hash).await - } - pub async fn hrmp_channels( - &self, - _0: runtime_types::polkadot_parachain::primitives::HrmpChannelId, hash: ::core::option::Option, ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::polkadot_runtime_parachains::hrmp::HrmpChannel, - >, + ::subxt::KeyIter<'a, T, Account>, ::subxt::Error, > { - let entry = HrmpChannels(_0); - self.client.storage().fetch(&entry, hash).await + self.client.storage().iter(hash).await } - pub async fn hrmp_ingress_channels_index( + pub async fn approvals( &self, - _0: runtime_types::polkadot_parachain::primitives::Id, + _0: u32, + _1: ::subxt::sp_core::crypto::AccountId32, + _2: ::subxt::sp_core::crypto::AccountId32, hash: ::core::option::Option, ) -> ::core::result::Result< - Vec, + ::core::option::Option< + runtime_types::pallet_assets::types::Approval, + >, ::subxt::Error, > { - let entry = HrmpIngressChannelsIndex(_0); - self.client.storage().fetch_or_default(&entry, hash).await + let entry = Approvals(_0, _1, _2); + self.client.storage().fetch(&entry, hash).await } - pub async fn hrmp_egress_channels_index( + pub async fn approvals_iter( &self, - _0: runtime_types::polkadot_parachain::primitives::Id, hash: ::core::option::Option, ) -> ::core::result::Result< - Vec, + ::subxt::KeyIter<'a, T, Approvals>, ::subxt::Error, > { - let entry = HrmpEgressChannelsIndex(_0); - self.client.storage().fetch_or_default(&entry, hash).await + self.client.storage().iter(hash).await } - pub async fn hrmp_channel_contents( + pub async fn metadata( &self, - _0: runtime_types::polkadot_parachain::primitives::HrmpChannelId, + _0: u32, hash: ::core::option::Option, ) -> ::core::result::Result< - Vec>, + runtime_types::pallet_assets::types::AssetMetadata< + u128, + runtime_types::frame_support::storage::bounded_vec::BoundedVec< + u8, + >, + >, ::subxt::Error, > { - let entry = HrmpChannelContents(_0); + let entry = Metadata(_0); self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn hrmp_channel_digests( + pub async fn metadata_iter( &self, - _0: runtime_types::polkadot_parachain::primitives::Id, hash: ::core::option::Option, ) -> ::core::result::Result< - Vec<(u32, Vec)>, + ::subxt::KeyIter<'a, T, Metadata>, ::subxt::Error, > { - let entry = HrmpChannelDigests(_0); - self.client.storage().fetch_or_default(&entry, hash).await + self.client.storage().iter(hash).await } } } } - pub mod para_session_info { + pub mod mmr { use super::runtime_types; pub mod storage { use super::runtime_types; - pub struct AssignmentKeysUnsafe; - impl ::subxt::StorageEntry for AssignmentKeysUnsafe { - const PALLET: &'static str = "ParaSessionInfo"; - const STORAGE: &'static str = "AssignmentKeysUnsafe"; - type Value = - Vec; + pub struct RootHash; + impl ::subxt::StorageEntry for RootHash { + const PALLET: &'static str = "Mmr"; + const STORAGE: &'static str = "RootHash"; + type Value = ::subxt::sp_core::H256; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Plain } } - pub struct EarliestStoredSession; - impl ::subxt::StorageEntry for EarliestStoredSession { - const PALLET: &'static str = "ParaSessionInfo"; - const STORAGE: &'static str = "EarliestStoredSession"; - type Value = u32; + pub struct NumberOfLeaves; + impl ::subxt::StorageEntry for NumberOfLeaves { + const PALLET: &'static str = "Mmr"; + const STORAGE: &'static str = "NumberOfLeaves"; + type Value = u64; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Plain } } - pub struct Sessions(pub u32); - impl ::subxt::StorageEntry for Sessions { - const PALLET: &'static str = "ParaSessionInfo"; - const STORAGE: &'static str = "Sessions"; - type Value = runtime_types::polkadot_primitives::v1::SessionInfo; + pub struct Nodes(pub u64); + impl ::subxt::StorageEntry for Nodes { + const PALLET: &'static str = "Mmr"; + const STORAGE: &'static str = "Nodes"; + type Value = ::subxt::sp_core::H256; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( &self.0, @@ -11811,97 +12185,78 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub async fn assignment_keys_unsafe( + pub async fn root_hash( &self, hash: ::core::option::Option, - ) -> ::core::result::Result< - Vec, - ::subxt::Error, - > { - let entry = AssignmentKeysUnsafe; + ) -> ::core::result::Result<::subxt::sp_core::H256, ::subxt::Error> + { + let entry = RootHash; self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn earliest_stored_session( + pub async fn number_of_leaves( &self, hash: ::core::option::Option, - ) -> ::core::result::Result { - let entry = EarliestStoredSession; + ) -> ::core::result::Result { + let entry = NumberOfLeaves; self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn sessions( + pub async fn nodes( &self, - _0: u32, + _0: u64, hash: ::core::option::Option, ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::polkadot_primitives::v1::SessionInfo, - >, + ::core::option::Option<::subxt::sp_core::H256>, ::subxt::Error, > { - let entry = Sessions(_0); + let entry = Nodes(_0); self.client.storage().fetch(&entry, hash).await } + pub async fn nodes_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result<::subxt::KeyIter<'a, T, Nodes>, ::subxt::Error> + { + self.client.storage().iter(hash).await + } } } } - pub mod registrar { + pub mod lottery { use super::runtime_types; pub mod calls { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Register { - pub id: runtime_types::polkadot_parachain::primitives::Id, - pub genesis_head: runtime_types::polkadot_parachain::primitives::HeadData, - pub validation_code: - runtime_types::polkadot_parachain::primitives::ValidationCode, - } - impl ::subxt::Call for Register { - const PALLET: &'static str = "Registrar"; - const FUNCTION: &'static str = "register"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ForceRegister { - pub who: ::subxt::sp_core::crypto::AccountId32, - pub deposit: 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, - } - impl ::subxt::Call for ForceRegister { - const PALLET: &'static str = "Registrar"; - const FUNCTION: &'static str = "force_register"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Deregister { - pub id: runtime_types::polkadot_parachain::primitives::Id, - } - impl ::subxt::Call for Deregister { - const PALLET: &'static str = "Registrar"; - const FUNCTION: &'static str = "deregister"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Swap { - pub id: runtime_types::polkadot_parachain::primitives::Id, - pub other: runtime_types::polkadot_parachain::primitives::Id, - } - impl ::subxt::Call for Swap { - const PALLET: &'static str = "Registrar"; - const FUNCTION: &'static str = "swap"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ForceRemoveLock { - pub para: runtime_types::polkadot_parachain::primitives::Id, - } - impl ::subxt::Call for ForceRemoveLock { - const PALLET: &'static str = "Registrar"; - const FUNCTION: &'static str = "force_remove_lock"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Reserve {} - impl ::subxt::Call for Reserve { - const PALLET: &'static str = "Registrar"; - const FUNCTION: &'static str = "reserve"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct BuyTicket { + pub call: runtime_types::node_runtime::Call, + } + impl ::subxt::Call for BuyTicket { + const PALLET: &'static str = "Lottery"; + const FUNCTION: &'static str = "buy_ticket"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct SetCalls { + pub calls: Vec, + } + impl ::subxt::Call for SetCalls { + const PALLET: &'static str = "Lottery"; + const FUNCTION: &'static str = "set_calls"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct StartLottery { + pub price: u128, + pub length: u32, + pub delay: u32, + pub repeat: bool, + } + impl ::subxt::Call for StartLottery { + const PALLET: &'static str = "Lottery"; + const FUNCTION: &'static str = "start_lottery"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct StopRepeat {} + impl ::subxt::Call for StopRepeat { + const PALLET: &'static str = "Lottery"; + const FUNCTION: &'static str = "stop_repeat"; } pub struct TransactionApi< 'a, @@ -11916,102 +12271,99 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - 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, - ) -> ::subxt::SubmittableExtrinsic { - let call = Register { - id, - genesis_head, - validation_code, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn force_register( + pub fn buy_ticket( &self, - who: ::subxt::sp_core::crypto::AccountId32, - deposit: u128, - id: runtime_types::polkadot_parachain::primitives::Id, - genesis_head: runtime_types::polkadot_parachain::primitives::HeadData, - validation_code : runtime_types :: polkadot_parachain :: primitives :: ValidationCode, - ) -> ::subxt::SubmittableExtrinsic { - let call = ForceRegister { - who, - deposit, - id, - genesis_head, - validation_code, - }; + call: runtime_types::node_runtime::Call, + ) -> ::subxt::SubmittableExtrinsic { + let call = BuyTicket { call }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn deregister( + pub fn set_calls( &self, - id: runtime_types::polkadot_parachain::primitives::Id, - ) -> ::subxt::SubmittableExtrinsic { - let call = Deregister { id }; + calls: Vec, + ) -> ::subxt::SubmittableExtrinsic { + let call = SetCalls { calls }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn swap( + pub fn start_lottery( &self, - id: runtime_types::polkadot_parachain::primitives::Id, - other: runtime_types::polkadot_parachain::primitives::Id, - ) -> ::subxt::SubmittableExtrinsic { - let call = Swap { id, other }; + price: u128, + length: u32, + delay: u32, + repeat: bool, + ) -> ::subxt::SubmittableExtrinsic { + let call = StartLottery { + price, + length, + delay, + repeat, + }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn force_remove_lock( + pub fn stop_repeat( &self, - para: runtime_types::polkadot_parachain::primitives::Id, - ) -> ::subxt::SubmittableExtrinsic { - let call = ForceRemoveLock { para }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn reserve(&self) -> ::subxt::SubmittableExtrinsic { - let call = Reserve {}; + ) -> ::subxt::SubmittableExtrinsic { + let call = StopRepeat {}; ::subxt::SubmittableExtrinsic::new(self.client, call) } } } - pub type Event = - runtime_types::polkadot_runtime_common::paras_registrar::pallet::Event; + pub type Event = runtime_types::pallet_lottery::pallet::Event; pub mod events { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Registered( - pub runtime_types::polkadot_parachain::primitives::Id, - pub ::subxt::sp_core::crypto::AccountId32, - ); - impl ::subxt::Event for Registered { - const PALLET: &'static str = "Registrar"; - const EVENT: &'static str = "Registered"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Deregistered( - pub runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::Event for Deregistered { - const PALLET: &'static str = "Registrar"; - const EVENT: &'static str = "Deregistered"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Reserved( - pub runtime_types::polkadot_parachain::primitives::Id, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct LotteryStarted {} + impl ::subxt::Event for LotteryStarted { + const PALLET: &'static str = "Lottery"; + const EVENT: &'static str = "LotteryStarted"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct CallsUpdated {} + impl ::subxt::Event for CallsUpdated { + const PALLET: &'static str = "Lottery"; + const EVENT: &'static str = "CallsUpdated"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Winner(pub ::subxt::sp_core::crypto::AccountId32, pub u128); + impl ::subxt::Event for Winner { + const PALLET: &'static str = "Lottery"; + const EVENT: &'static str = "Winner"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct TicketBought( pub ::subxt::sp_core::crypto::AccountId32, + pub (u8, u8), ); - impl ::subxt::Event for Reserved { - const PALLET: &'static str = "Registrar"; - const EVENT: &'static str = "Reserved"; + impl ::subxt::Event for TicketBought { + const PALLET: &'static str = "Lottery"; + const EVENT: &'static str = "TicketBought"; } } pub mod storage { use super::runtime_types; - pub struct PendingSwap(pub runtime_types::polkadot_parachain::primitives::Id); - impl ::subxt::StorageEntry for PendingSwap { - const PALLET: &'static str = "Registrar"; - const STORAGE: &'static str = "PendingSwap"; - type Value = runtime_types::polkadot_parachain::primitives::Id; + pub struct LotteryIndex; + impl ::subxt::StorageEntry for LotteryIndex { + const PALLET: &'static str = "Lottery"; + const STORAGE: &'static str = "LotteryIndex"; + type Value = u32; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct Lottery; + impl ::subxt::StorageEntry for Lottery { + const PALLET: &'static str = "Lottery"; + const STORAGE: &'static str = "Lottery"; + type Value = runtime_types::pallet_lottery::LotteryConfig; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct Participants(pub ::subxt::sp_core::crypto::AccountId32); + impl ::subxt::StorageEntry for Participants { + const PALLET: &'static str = "Lottery"; + const STORAGE: &'static str = "Participants"; + type Value = (u32, Vec<(u8, u8)>); fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( &self.0, @@ -12019,15 +12371,20 @@ pub mod api { )]) } } - pub struct Paras(pub runtime_types::polkadot_parachain::primitives::Id); - impl ::subxt::StorageEntry for Paras { - const PALLET: &'static str = "Registrar"; - const STORAGE: &'static str = "Paras"; - type Value = - runtime_types::polkadot_runtime_common::paras_registrar::ParaInfo< - ::subxt::sp_core::crypto::AccountId32, - u128, - >; + pub struct TicketsCount; + impl ::subxt::StorageEntry for TicketsCount { + const PALLET: &'static str = "Lottery"; + const STORAGE: &'static str = "TicketsCount"; + type Value = u32; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct Tickets(pub u32); + impl ::subxt::StorageEntry for Tickets { + const PALLET: &'static str = "Lottery"; + const STORAGE: &'static str = "Tickets"; + type Value = ::subxt::sp_core::crypto::AccountId32; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( &self.0, @@ -12035,11 +12392,11 @@ pub mod api { )]) } } - pub struct NextFreeParaId; - impl ::subxt::StorageEntry for NextFreeParaId { - const PALLET: &'static str = "Registrar"; - const STORAGE: &'static str = "NextFreeParaId"; - type Value = runtime_types::polkadot_parachain::primitives::Id; + pub struct CallIndices; + impl ::subxt::StorageEntry for CallIndices { + const PALLET: &'static str = "Lottery"; + const STORAGE: &'static str = "CallIndices"; + type Value = Vec<(u8, u8)>; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Plain } @@ -12051,79 +12408,122 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub async fn pending_swap( + pub async fn lottery_index( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result { + let entry = LotteryIndex; + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn lottery( &self, - _0: runtime_types::polkadot_parachain::primitives::Id, hash: ::core::option::Option, ) -> ::core::result::Result< ::core::option::Option< - runtime_types::polkadot_parachain::primitives::Id, + runtime_types::pallet_lottery::LotteryConfig, >, ::subxt::Error, > { - let entry = PendingSwap(_0); + let entry = Lottery; self.client.storage().fetch(&entry, hash).await } - pub async fn paras( + pub async fn participants( + &self, + _0: ::subxt::sp_core::crypto::AccountId32, + hash: ::core::option::Option, + ) -> ::core::result::Result<(u32, Vec<(u8, u8)>), ::subxt::Error> + { + let entry = Participants(_0); + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn participants_iter( &self, - _0: runtime_types::polkadot_parachain::primitives::Id, hash: ::core::option::Option, ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::polkadot_runtime_common::paras_registrar::ParaInfo< - ::subxt::sp_core::crypto::AccountId32, - u128, - >, - >, + ::subxt::KeyIter<'a, T, Participants>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } + pub async fn tickets_count( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result { + let entry = TicketsCount; + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn tickets( + &self, + _0: u32, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, ::subxt::Error, > { - let entry = Paras(_0); + let entry = Tickets(_0); self.client.storage().fetch(&entry, hash).await } - pub async fn next_free_para_id( + pub async fn tickets_iter( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - runtime_types::polkadot_parachain::primitives::Id, + ::subxt::KeyIter<'a, T, Tickets>, ::subxt::Error, > { - let entry = NextFreeParaId; + self.client.storage().iter(hash).await + } + pub async fn call_indices( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result, ::subxt::Error> + { + let entry = CallIndices; self.client.storage().fetch_or_default(&entry, hash).await } } } } - pub mod slots { + pub mod gilt { use super::runtime_types; pub mod calls { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ForceLease { - pub para: runtime_types::polkadot_parachain::primitives::Id, - pub leaser: ::subxt::sp_core::crypto::AccountId32, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct PlaceBid { + #[codec(compact)] + pub amount: u128, + pub duration: u32, + } + impl ::subxt::Call for PlaceBid { + const PALLET: &'static str = "Gilt"; + const FUNCTION: &'static str = "place_bid"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct RetractBid { + #[codec(compact)] pub amount: u128, - pub period_begin: u32, - pub period_count: u32, + pub duration: u32, } - impl ::subxt::Call for ForceLease { - const PALLET: &'static str = "Slots"; - const FUNCTION: &'static str = "force_lease"; + impl ::subxt::Call for RetractBid { + const PALLET: &'static str = "Gilt"; + const FUNCTION: &'static str = "retract_bid"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ClearAllLeases { - pub para: runtime_types::polkadot_parachain::primitives::Id, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct SetTarget { + #[codec(compact)] + pub target: ::subxt::sp_arithmetic::per_things::Perquintill, } - impl ::subxt::Call for ClearAllLeases { - const PALLET: &'static str = "Slots"; - const FUNCTION: &'static str = "clear_all_leases"; + impl ::subxt::Call for SetTarget { + const PALLET: &'static str = "Gilt"; + const FUNCTION: &'static str = "set_target"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct TriggerOnboard { - pub para: runtime_types::polkadot_parachain::primitives::Id, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Thaw { + #[codec(compact)] + pub index: u32, } - impl ::subxt::Call for TriggerOnboard { - const PALLET: &'static str = "Slots"; - const FUNCTION: &'static str = "trigger_onboard"; + impl ::subxt::Call for Thaw { + const PALLET: &'static str = "Gilt"; + const FUNCTION: &'static str = "thaw"; } pub struct TransactionApi< 'a, @@ -12138,73 +12538,131 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub fn force_lease( + pub fn place_bid( &self, - para: runtime_types::polkadot_parachain::primitives::Id, - leaser: ::subxt::sp_core::crypto::AccountId32, amount: u128, - period_begin: u32, - period_count: u32, - ) -> ::subxt::SubmittableExtrinsic { - let call = ForceLease { - para, - leaser, - amount, - period_begin, - period_count, - }; + duration: u32, + ) -> ::subxt::SubmittableExtrinsic { + let call = PlaceBid { amount, duration }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn clear_all_leases( + pub fn retract_bid( &self, - para: runtime_types::polkadot_parachain::primitives::Id, - ) -> ::subxt::SubmittableExtrinsic { - let call = ClearAllLeases { para }; + amount: u128, + duration: u32, + ) -> ::subxt::SubmittableExtrinsic { + let call = RetractBid { amount, duration }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn trigger_onboard( + pub fn set_target( &self, - para: runtime_types::polkadot_parachain::primitives::Id, - ) -> ::subxt::SubmittableExtrinsic { - let call = TriggerOnboard { para }; + target: ::subxt::sp_arithmetic::per_things::Perquintill, + ) -> ::subxt::SubmittableExtrinsic { + let call = SetTarget { target }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn thaw(&self, index: u32) -> ::subxt::SubmittableExtrinsic { + let call = Thaw { index }; ::subxt::SubmittableExtrinsic::new(self.client, call) } } } - pub type Event = runtime_types::polkadot_runtime_common::slots::pallet::Event; + pub type Event = runtime_types::pallet_gilt::pallet::Event; pub mod events { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct NewLeasePeriod(pub u32); - impl ::subxt::Event for NewLeasePeriod { - const PALLET: &'static str = "Slots"; - const EVENT: &'static str = "NewLeasePeriod"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Leased( - pub runtime_types::polkadot_parachain::primitives::Id, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct BidPlaced( + pub ::subxt::sp_core::crypto::AccountId32, + pub u128, + pub u32, + ); + impl ::subxt::Event for BidPlaced { + const PALLET: &'static str = "Gilt"; + const EVENT: &'static str = "BidPlaced"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct BidRetracted( pub ::subxt::sp_core::crypto::AccountId32, + pub u128, pub u32, + ); + impl ::subxt::Event for BidRetracted { + const PALLET: &'static str = "Gilt"; + const EVENT: &'static str = "BidRetracted"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct GiltIssued( + pub u32, + pub u32, + pub ::subxt::sp_core::crypto::AccountId32, + pub u128, + ); + impl ::subxt::Event for GiltIssued { + const PALLET: &'static str = "Gilt"; + const EVENT: &'static str = "GiltIssued"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct GiltThawed( pub u32, + pub ::subxt::sp_core::crypto::AccountId32, pub u128, pub u128, ); - impl ::subxt::Event for Leased { - const PALLET: &'static str = "Slots"; - const EVENT: &'static str = "Leased"; + impl ::subxt::Event for GiltThawed { + const PALLET: &'static str = "Gilt"; + const EVENT: &'static str = "GiltThawed"; } } pub mod storage { use super::runtime_types; - pub struct Leases(pub runtime_types::polkadot_parachain::primitives::Id); - impl ::subxt::StorageEntry for Leases { - const PALLET: &'static str = "Slots"; - const STORAGE: &'static str = "Leases"; - type Value = Vec>; + pub struct QueueTotals; + impl ::subxt::StorageEntry for QueueTotals { + const PALLET: &'static str = "Gilt"; + const STORAGE: &'static str = "QueueTotals"; + type Value = Vec<(u32, u128)>; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct Queues(pub u32); + impl ::subxt::StorageEntry for Queues { + const PALLET: &'static str = "Gilt"; + const STORAGE: &'static str = "Queues"; + type Value = Vec< + runtime_types::pallet_gilt::pallet::GiltBid< + u128, + ::subxt::sp_core::crypto::AccountId32, + >, + >; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( &self.0, - ::subxt::StorageHasher::Twox64Concat, + ::subxt::StorageHasher::Blake2_128Concat, + )]) + } + } + pub struct ActiveTotal; + impl ::subxt::StorageEntry for ActiveTotal { + const PALLET: &'static str = "Gilt"; + const STORAGE: &'static str = "ActiveTotal"; + type Value = runtime_types::pallet_gilt::pallet::ActiveGiltsTotal; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct Active(pub u32); + impl ::subxt::StorageEntry for Active { + const PALLET: &'static str = "Gilt"; + const STORAGE: &'static str = "Active"; + type Value = runtime_types::pallet_gilt::pallet::ActiveGilt< + u128, + ::subxt::sp_core::crypto::AccountId32, + u32, + >; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Blake2_128Concat, )]) } } @@ -12215,368 +12673,376 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub async fn leases( + pub async fn queue_totals( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result, ::subxt::Error> + { + let entry = QueueTotals; + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn queues( + &self, + _0: u32, + hash: ::core::option::Option, + ) -> ::core::result::Result< + Vec< + runtime_types::pallet_gilt::pallet::GiltBid< + u128, + ::subxt::sp_core::crypto::AccountId32, + >, + >, + ::subxt::Error, + > { + let entry = Queues(_0); + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn queues_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result<::subxt::KeyIter<'a, T, Queues>, ::subxt::Error> + { + self.client.storage().iter(hash).await + } + pub async fn active_total( &self, - _0: runtime_types::polkadot_parachain::primitives::Id, hash: ::core::option::Option, ) -> ::core::result::Result< - Vec>, + runtime_types::pallet_gilt::pallet::ActiveGiltsTotal, ::subxt::Error, > { - let entry = Leases(_0); + let entry = ActiveTotal; self.client.storage().fetch_or_default(&entry, hash).await } + pub async fn active( + &self, + _0: u32, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option< + runtime_types::pallet_gilt::pallet::ActiveGilt< + u128, + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + >, + ::subxt::Error, + > { + let entry = Active(_0); + self.client.storage().fetch(&entry, hash).await + } + pub async fn active_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result<::subxt::KeyIter<'a, T, Active>, ::subxt::Error> + { + self.client.storage().iter(hash).await + } } } } - pub mod auctions { + pub mod uniques { use super::runtime_types; pub mod calls { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct NewAuction { + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Create { #[codec(compact)] - pub duration: u32, + pub class: u32, + pub admin: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + } + impl ::subxt::Call for Create { + const PALLET: &'static str = "Uniques"; + const FUNCTION: &'static str = "create"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ForceCreate { #[codec(compact)] - pub lease_period_index: u32, + pub class: u32, + pub owner: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + pub free_holding: bool, } - impl ::subxt::Call for NewAuction { - const PALLET: &'static str = "Auctions"; - const FUNCTION: &'static str = "new_auction"; + impl ::subxt::Call for ForceCreate { + const PALLET: &'static str = "Uniques"; + const FUNCTION: &'static str = "force_create"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Bid { + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Destroy { #[codec(compact)] - pub para: runtime_types::polkadot_parachain::primitives::Id, + pub class: u32, + pub witness: runtime_types::pallet_uniques::types::DestroyWitness, + } + impl ::subxt::Call for Destroy { + const PALLET: &'static str = "Uniques"; + const FUNCTION: &'static str = "destroy"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Mint { #[codec(compact)] - pub auction_index: u32, + pub class: u32, #[codec(compact)] - pub first_slot: u32, + pub instance: u32, + pub owner: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + } + impl ::subxt::Call for Mint { + const PALLET: &'static str = "Uniques"; + const FUNCTION: &'static str = "mint"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Burn { #[codec(compact)] - pub last_slot: u32, + pub class: u32, #[codec(compact)] - pub amount: u128, + pub instance: u32, + pub check_owner: Option< + ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + >, } - impl ::subxt::Call for Bid { - const PALLET: &'static str = "Auctions"; - const FUNCTION: &'static str = "bid"; + impl ::subxt::Call for Burn { + const PALLET: &'static str = "Uniques"; + const FUNCTION: &'static str = "burn"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct CancelAuction {} - impl ::subxt::Call for CancelAuction { - const PALLET: &'static str = "Auctions"; - const FUNCTION: &'static str = "cancel_auction"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Transfer { + #[codec(compact)] + pub class: u32, + #[codec(compact)] + pub instance: u32, + pub dest: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, } - pub struct TransactionApi< - 'a, - T: ::subxt::Config + ::subxt::ExtrinsicExtraData, - > { - client: &'a ::subxt::Client, + impl ::subxt::Call for Transfer { + const PALLET: &'static str = "Uniques"; + const FUNCTION: &'static str = "transfer"; } - impl<'a, T: ::subxt::Config> TransactionApi<'a, T> - where - T: ::subxt::Config + ::subxt::ExtrinsicExtraData, - { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { client } - } - pub fn new_auction( - &self, - duration: u32, - lease_period_index: u32, - ) -> ::subxt::SubmittableExtrinsic { - let call = NewAuction { - duration, - lease_period_index, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn bid( - &self, - para: runtime_types::polkadot_parachain::primitives::Id, - auction_index: u32, - first_slot: u32, - last_slot: u32, - amount: u128, - ) -> ::subxt::SubmittableExtrinsic { - let call = Bid { - para, - auction_index, - first_slot, - last_slot, - amount, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn cancel_auction( - &self, - ) -> ::subxt::SubmittableExtrinsic { - let call = CancelAuction {}; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Redeposit { + #[codec(compact)] + pub class: u32, + pub instances: Vec, } - } - pub type Event = runtime_types::polkadot_runtime_common::auctions::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct AuctionStarted(pub u32, pub u32, pub u32); - impl ::subxt::Event for AuctionStarted { - const PALLET: &'static str = "Auctions"; - const EVENT: &'static str = "AuctionStarted"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct AuctionClosed(pub u32); - impl ::subxt::Event for AuctionClosed { - const PALLET: &'static str = "Auctions"; - const EVENT: &'static str = "AuctionClosed"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Reserved( - pub ::subxt::sp_core::crypto::AccountId32, - pub u128, - pub u128, - ); - impl ::subxt::Event for Reserved { - const PALLET: &'static str = "Auctions"; - const EVENT: &'static str = "Reserved"; + impl ::subxt::Call for Redeposit { + const PALLET: &'static str = "Uniques"; + const FUNCTION: &'static str = "redeposit"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Unreserved(pub ::subxt::sp_core::crypto::AccountId32, pub u128); - impl ::subxt::Event for Unreserved { - const PALLET: &'static str = "Auctions"; - const EVENT: &'static str = "Unreserved"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Freeze { + #[codec(compact)] + pub class: u32, + #[codec(compact)] + pub instance: u32, } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ReserveConfiscated( - pub runtime_types::polkadot_parachain::primitives::Id, - pub ::subxt::sp_core::crypto::AccountId32, - pub u128, - ); - impl ::subxt::Event for ReserveConfiscated { - const PALLET: &'static str = "Auctions"; - const EVENT: &'static str = "ReserveConfiscated"; + impl ::subxt::Call for Freeze { + const PALLET: &'static str = "Uniques"; + const FUNCTION: &'static str = "freeze"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct BidAccepted( - pub ::subxt::sp_core::crypto::AccountId32, - pub runtime_types::polkadot_parachain::primitives::Id, - pub u128, - pub u32, - pub u32, - ); - impl ::subxt::Event for BidAccepted { - const PALLET: &'static str = "Auctions"; - const EVENT: &'static str = "BidAccepted"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Thaw { + #[codec(compact)] + pub class: u32, + #[codec(compact)] + pub instance: u32, } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct WinningOffset(pub u32, pub u32); - impl ::subxt::Event for WinningOffset { - const PALLET: &'static str = "Auctions"; - const EVENT: &'static str = "WinningOffset"; + impl ::subxt::Call for Thaw { + const PALLET: &'static str = "Uniques"; + const FUNCTION: &'static str = "thaw"; } - } - pub mod storage { - use super::runtime_types; - pub struct AuctionCounter; - impl ::subxt::StorageEntry for AuctionCounter { - const PALLET: &'static str = "Auctions"; - const STORAGE: &'static str = "AuctionCounter"; - type Value = u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct FreezeClass { + #[codec(compact)] + pub class: u32, } - pub struct AuctionInfo; - impl ::subxt::StorageEntry for AuctionInfo { - const PALLET: &'static str = "Auctions"; - const STORAGE: &'static str = "AuctionInfo"; - type Value = (u32, u32); - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } + impl ::subxt::Call for FreezeClass { + const PALLET: &'static str = "Uniques"; + const FUNCTION: &'static str = "freeze_class"; } - pub struct ReservedAmounts( - ::subxt::sp_core::crypto::AccountId32, - runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::StorageEntry for ReservedAmounts { - const PALLET: &'static str = "Auctions"; - const STORAGE: &'static str = "ReservedAmounts"; - type Value = u128; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ThawClass { + #[codec(compact)] + pub class: u32, } - pub struct Winning(pub u32); - impl ::subxt::StorageEntry for Winning { - const PALLET: &'static str = "Auctions"; - const STORAGE: &'static str = "Winning"; - type Value = [Option<( - ::subxt::sp_core::crypto::AccountId32, - runtime_types::polkadot_parachain::primitives::Id, - u128, - )>; 36usize]; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } + impl ::subxt::Call for ThawClass { + const PALLET: &'static str = "Uniques"; + const FUNCTION: &'static str = "thaw_class"; } - pub struct StorageApi<'a, T: ::subxt::Config> { - client: &'a ::subxt::Client, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct TransferOwnership { + #[codec(compact)] + pub class: u32, + pub owner: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, } - impl<'a, T: ::subxt::Config> StorageApi<'a, T> { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { client } - } - pub async fn auction_counter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result { - let entry = AuctionCounter; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn auction_info( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option<(u32, u32)>, - ::subxt::Error, - > { - let entry = AuctionInfo; - self.client.storage().fetch(&entry, hash).await - } - pub async fn reserved_amounts( - &self, - _0: ::subxt::sp_core::crypto::AccountId32, - _1: runtime_types::polkadot_parachain::primitives::Id, - hash: ::core::option::Option, - ) -> ::core::result::Result<::core::option::Option, ::subxt::Error> - { - let entry = ReservedAmounts(_0, _1); - self.client.storage().fetch(&entry, hash).await - } - pub async fn winning( - &self, - _0: u32, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option< - [Option<( - ::subxt::sp_core::crypto::AccountId32, - runtime_types::polkadot_parachain::primitives::Id, - u128, - )>; 36usize], - >, - ::subxt::Error, - > { - let entry = Winning(_0); - self.client.storage().fetch(&entry, hash).await - } + impl ::subxt::Call for TransferOwnership { + const PALLET: &'static str = "Uniques"; + const FUNCTION: &'static str = "transfer_ownership"; } - } - } - pub mod crowdloan { - use super::runtime_types; - pub mod calls { - use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Create { - #[codec(compact)] - pub index: runtime_types::polkadot_parachain::primitives::Id, - #[codec(compact)] - pub cap: u128, - #[codec(compact)] - pub first_period: u32, - #[codec(compact)] - pub last_period: u32, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct SetTeam { #[codec(compact)] - pub end: u32, - pub verifier: Option, + pub class: u32, + pub issuer: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + pub admin: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + pub freezer: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, } - impl ::subxt::Call for Create { - const PALLET: &'static str = "Crowdloan"; - const FUNCTION: &'static str = "create"; + impl ::subxt::Call for SetTeam { + const PALLET: &'static str = "Uniques"; + const FUNCTION: &'static str = "set_team"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Contribute { + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ApproveTransfer { #[codec(compact)] - pub index: runtime_types::polkadot_parachain::primitives::Id, + pub class: u32, #[codec(compact)] - pub value: u128, - pub signature: Option, + pub instance: u32, + pub delegate: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, } - impl ::subxt::Call for Contribute { - const PALLET: &'static str = "Crowdloan"; - const FUNCTION: &'static str = "contribute"; + impl ::subxt::Call for ApproveTransfer { + const PALLET: &'static str = "Uniques"; + const FUNCTION: &'static str = "approve_transfer"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Withdraw { - pub who: ::subxt::sp_core::crypto::AccountId32, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct CancelApproval { #[codec(compact)] - pub index: runtime_types::polkadot_parachain::primitives::Id, + pub class: u32, + #[codec(compact)] + pub instance: u32, + pub maybe_check_delegate: Option< + ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + >, } - impl ::subxt::Call for Withdraw { - const PALLET: &'static str = "Crowdloan"; - const FUNCTION: &'static str = "withdraw"; + impl ::subxt::Call for CancelApproval { + const PALLET: &'static str = "Uniques"; + const FUNCTION: &'static str = "cancel_approval"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Refund { + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ForceAssetStatus { #[codec(compact)] - pub index: runtime_types::polkadot_parachain::primitives::Id, + pub class: u32, + pub owner: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + pub issuer: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + pub admin: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + pub freezer: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + pub free_holding: bool, + pub is_frozen: bool, } - impl ::subxt::Call for Refund { - const PALLET: &'static str = "Crowdloan"; - const FUNCTION: &'static str = "refund"; + impl ::subxt::Call for ForceAssetStatus { + const PALLET: &'static str = "Uniques"; + const FUNCTION: &'static str = "force_asset_status"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Dissolve { + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct SetAttribute { #[codec(compact)] - pub index: runtime_types::polkadot_parachain::primitives::Id, + pub class: u32, + pub maybe_instance: Option, + pub key: + runtime_types::frame_support::storage::bounded_vec::BoundedVec, + pub value: + runtime_types::frame_support::storage::bounded_vec::BoundedVec, + } + impl ::subxt::Call for SetAttribute { + const PALLET: &'static str = "Uniques"; + const FUNCTION: &'static str = "set_attribute"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ClearAttribute { + #[codec(compact)] + pub class: u32, + pub maybe_instance: Option, + pub key: + runtime_types::frame_support::storage::bounded_vec::BoundedVec, } - impl ::subxt::Call for Dissolve { - const PALLET: &'static str = "Crowdloan"; - const FUNCTION: &'static str = "dissolve"; + impl ::subxt::Call for ClearAttribute { + const PALLET: &'static str = "Uniques"; + const FUNCTION: &'static str = "clear_attribute"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Edit { - #[codec(compact)] - pub index: runtime_types::polkadot_parachain::primitives::Id, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct SetMetadata { #[codec(compact)] - pub cap: u128, + pub class: u32, #[codec(compact)] - pub first_period: u32, + pub instance: u32, + pub data: + runtime_types::frame_support::storage::bounded_vec::BoundedVec, + pub is_frozen: bool, + } + impl ::subxt::Call for SetMetadata { + const PALLET: &'static str = "Uniques"; + const FUNCTION: &'static str = "set_metadata"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ClearMetadata { #[codec(compact)] - pub last_period: u32, + pub class: u32, #[codec(compact)] - pub end: u32, - pub verifier: Option, + pub instance: u32, } - impl ::subxt::Call for Edit { - const PALLET: &'static str = "Crowdloan"; - const FUNCTION: &'static str = "edit"; + impl ::subxt::Call for ClearMetadata { + const PALLET: &'static str = "Uniques"; + const FUNCTION: &'static str = "clear_metadata"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct AddMemo { - pub index: runtime_types::polkadot_parachain::primitives::Id, - pub memo: Vec, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct SetClassMetadata { + #[codec(compact)] + pub class: u32, + pub data: + runtime_types::frame_support::storage::bounded_vec::BoundedVec, + pub is_frozen: bool, } - impl ::subxt::Call for AddMemo { - const PALLET: &'static str = "Crowdloan"; - const FUNCTION: &'static str = "add_memo"; + impl ::subxt::Call for SetClassMetadata { + const PALLET: &'static str = "Uniques"; + const FUNCTION: &'static str = "set_class_metadata"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Poke { - pub index: runtime_types::polkadot_parachain::primitives::Id, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ClearClassMetadata { + #[codec(compact)] + pub class: u32, } - impl ::subxt::Call for Poke { - const PALLET: &'static str = "Crowdloan"; - const FUNCTION: &'static str = "poke"; + impl ::subxt::Call for ClearClassMetadata { + const PALLET: &'static str = "Uniques"; + const FUNCTION: &'static str = "clear_class_metadata"; } pub struct TransactionApi< 'a, @@ -12593,221 +13059,616 @@ pub mod api { } pub fn create( &self, - index: runtime_types::polkadot_parachain::primitives::Id, - cap: u128, - first_period: u32, - last_period: u32, - end: u32, - verifier: Option, + class: u32, + admin: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, ) -> ::subxt::SubmittableExtrinsic { - let call = Create { - index, - cap, - first_period, - last_period, - end, - verifier, - }; + let call = Create { class, admin }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn contribute( + pub fn force_create( &self, - index: runtime_types::polkadot_parachain::primitives::Id, - value: u128, - signature: Option, - ) -> ::subxt::SubmittableExtrinsic { - let call = Contribute { - index, - value, - signature, + class: u32, + owner: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + free_holding: bool, + ) -> ::subxt::SubmittableExtrinsic { + let call = ForceCreate { + class, + owner, + free_holding, }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn withdraw( + pub fn destroy( &self, - who: ::subxt::sp_core::crypto::AccountId32, - index: runtime_types::polkadot_parachain::primitives::Id, - ) -> ::subxt::SubmittableExtrinsic { - let call = Withdraw { who, index }; + class: u32, + witness: runtime_types::pallet_uniques::types::DestroyWitness, + ) -> ::subxt::SubmittableExtrinsic { + let call = Destroy { class, witness }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn refund( + pub fn mint( &self, - index: runtime_types::polkadot_parachain::primitives::Id, - ) -> ::subxt::SubmittableExtrinsic { - let call = Refund { index }; + class: u32, + instance: u32, + owner: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + ) -> ::subxt::SubmittableExtrinsic { + let call = Mint { + class, + instance, + owner, + }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn dissolve( + pub fn burn( &self, - index: runtime_types::polkadot_parachain::primitives::Id, - ) -> ::subxt::SubmittableExtrinsic { - let call = Dissolve { index }; + class: u32, + instance: u32, + check_owner: Option< + ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + >, + ) -> ::subxt::SubmittableExtrinsic { + let call = Burn { + class, + instance, + check_owner, + }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn edit( + pub fn transfer( &self, - index: runtime_types::polkadot_parachain::primitives::Id, - cap: u128, - first_period: u32, - last_period: u32, - end: u32, - verifier: Option, - ) -> ::subxt::SubmittableExtrinsic { - let call = Edit { - index, - cap, - first_period, - last_period, - end, - verifier, + class: u32, + instance: u32, + dest: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + ) -> ::subxt::SubmittableExtrinsic { + let call = Transfer { + class, + instance, + dest, }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn add_memo( + pub fn redeposit( &self, - index: runtime_types::polkadot_parachain::primitives::Id, - memo: Vec, - ) -> ::subxt::SubmittableExtrinsic { - let call = AddMemo { index, memo }; + class: u32, + instances: Vec, + ) -> ::subxt::SubmittableExtrinsic { + let call = Redeposit { class, instances }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn poke( + pub fn freeze( &self, - index: runtime_types::polkadot_parachain::primitives::Id, - ) -> ::subxt::SubmittableExtrinsic { - let call = Poke { index }; + class: u32, + instance: u32, + ) -> ::subxt::SubmittableExtrinsic { + let call = Freeze { class, instance }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - } - } - pub type Event = runtime_types::polkadot_runtime_common::crowdloan::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Created(pub runtime_types::polkadot_parachain::primitives::Id); - impl ::subxt::Event for Created { - const PALLET: &'static str = "Crowdloan"; - const EVENT: &'static str = "Created"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Contributed( - pub ::subxt::sp_core::crypto::AccountId32, - pub runtime_types::polkadot_parachain::primitives::Id, - pub u128, - ); - impl ::subxt::Event for Contributed { - const PALLET: &'static str = "Crowdloan"; - const EVENT: &'static str = "Contributed"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Withdrew( - pub ::subxt::sp_core::crypto::AccountId32, - pub runtime_types::polkadot_parachain::primitives::Id, - pub u128, - ); - impl ::subxt::Event for Withdrew { - const PALLET: &'static str = "Crowdloan"; - const EVENT: &'static str = "Withdrew"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct PartiallyRefunded( - pub runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::Event for PartiallyRefunded { - const PALLET: &'static str = "Crowdloan"; - const EVENT: &'static str = "PartiallyRefunded"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct AllRefunded(pub runtime_types::polkadot_parachain::primitives::Id); - impl ::subxt::Event for AllRefunded { - const PALLET: &'static str = "Crowdloan"; - const EVENT: &'static str = "AllRefunded"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Dissolved(pub runtime_types::polkadot_parachain::primitives::Id); - impl ::subxt::Event for Dissolved { - const PALLET: &'static str = "Crowdloan"; - const EVENT: &'static str = "Dissolved"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct HandleBidResult( - pub runtime_types::polkadot_parachain::primitives::Id, - pub Result<(), runtime_types::sp_runtime::DispatchError>, - ); - impl ::subxt::Event for HandleBidResult { - const PALLET: &'static str = "Crowdloan"; - const EVENT: &'static str = "HandleBidResult"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Edited(pub runtime_types::polkadot_parachain::primitives::Id); - impl ::subxt::Event for Edited { - const PALLET: &'static str = "Crowdloan"; - const EVENT: &'static str = "Edited"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct MemoUpdated( - pub ::subxt::sp_core::crypto::AccountId32, - pub runtime_types::polkadot_parachain::primitives::Id, - pub Vec, - ); - impl ::subxt::Event for MemoUpdated { - const PALLET: &'static str = "Crowdloan"; - const EVENT: &'static str = "MemoUpdated"; - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct AddedToNewRaise( - pub runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::Event for AddedToNewRaise { - const PALLET: &'static str = "Crowdloan"; - const EVENT: &'static str = "AddedToNewRaise"; - } - } - pub mod storage { - use super::runtime_types; - pub struct Funds(pub runtime_types::polkadot_parachain::primitives::Id); - impl ::subxt::StorageEntry for Funds { - const PALLET: &'static str = "Crowdloan"; - const STORAGE: &'static str = "Funds"; - type Value = runtime_types::polkadot_runtime_common::crowdloan::FundInfo< - ::subxt::sp_core::crypto::AccountId32, - u128, - u32, - u32, + pub fn thaw( + &self, + class: u32, + instance: u32, + ) -> ::subxt::SubmittableExtrinsic { + let call = Thaw { class, instance }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn freeze_class( + &self, + class: u32, + ) -> ::subxt::SubmittableExtrinsic { + let call = FreezeClass { class }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn thaw_class( + &self, + class: u32, + ) -> ::subxt::SubmittableExtrinsic { + let call = ThawClass { class }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn transfer_ownership( + &self, + class: u32, + owner: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + ) -> ::subxt::SubmittableExtrinsic { + let call = TransferOwnership { class, owner }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn set_team( + &self, + class: u32, + issuer: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + admin: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + freezer: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + ) -> ::subxt::SubmittableExtrinsic { + let call = SetTeam { + class, + issuer, + admin, + freezer, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn approve_transfer( + &self, + class: u32, + instance: u32, + delegate: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + ) -> ::subxt::SubmittableExtrinsic { + let call = ApproveTransfer { + class, + instance, + delegate, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn cancel_approval( + &self, + class: u32, + instance: u32, + maybe_check_delegate: Option< + ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + >, + ) -> ::subxt::SubmittableExtrinsic { + let call = CancelApproval { + class, + instance, + maybe_check_delegate, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn force_asset_status( + &self, + class: u32, + owner: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + issuer: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + admin: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + freezer: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + free_holding: bool, + is_frozen: bool, + ) -> ::subxt::SubmittableExtrinsic { + let call = ForceAssetStatus { + class, + owner, + issuer, + admin, + freezer, + free_holding, + is_frozen, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn set_attribute( + &self, + class: u32, + maybe_instance: Option, + key: runtime_types::frame_support::storage::bounded_vec::BoundedVec< + u8, + >, + value: runtime_types::frame_support::storage::bounded_vec::BoundedVec< + u8, + >, + ) -> ::subxt::SubmittableExtrinsic { + let call = SetAttribute { + class, + maybe_instance, + key, + value, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn clear_attribute( + &self, + class: u32, + maybe_instance: Option, + key: runtime_types::frame_support::storage::bounded_vec::BoundedVec< + u8, + >, + ) -> ::subxt::SubmittableExtrinsic { + let call = ClearAttribute { + class, + maybe_instance, + key, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn set_metadata( + &self, + class: u32, + instance: u32, + data: runtime_types::frame_support::storage::bounded_vec::BoundedVec< + u8, + >, + is_frozen: bool, + ) -> ::subxt::SubmittableExtrinsic { + let call = SetMetadata { + class, + instance, + data, + is_frozen, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn clear_metadata( + &self, + class: u32, + instance: u32, + ) -> ::subxt::SubmittableExtrinsic { + let call = ClearMetadata { class, instance }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn set_class_metadata( + &self, + class: u32, + data: runtime_types::frame_support::storage::bounded_vec::BoundedVec< + u8, + >, + is_frozen: bool, + ) -> ::subxt::SubmittableExtrinsic { + let call = SetClassMetadata { + class, + data, + is_frozen, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn clear_class_metadata( + &self, + class: u32, + ) -> ::subxt::SubmittableExtrinsic + { + let call = ClearClassMetadata { class }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + } + } + pub type Event = runtime_types::pallet_uniques::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Created( + pub u32, + pub ::subxt::sp_core::crypto::AccountId32, + pub ::subxt::sp_core::crypto::AccountId32, + ); + impl ::subxt::Event for Created { + const PALLET: &'static str = "Uniques"; + const EVENT: &'static str = "Created"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ForceCreated(pub u32, pub ::subxt::sp_core::crypto::AccountId32); + impl ::subxt::Event for ForceCreated { + const PALLET: &'static str = "Uniques"; + const EVENT: &'static str = "ForceCreated"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Destroyed(pub u32); + impl ::subxt::Event for Destroyed { + const PALLET: &'static str = "Uniques"; + const EVENT: &'static str = "Destroyed"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Issued( + pub u32, + pub u32, + pub ::subxt::sp_core::crypto::AccountId32, + ); + impl ::subxt::Event for Issued { + const PALLET: &'static str = "Uniques"; + const EVENT: &'static str = "Issued"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Transferred( + pub u32, + pub u32, + pub ::subxt::sp_core::crypto::AccountId32, + pub ::subxt::sp_core::crypto::AccountId32, + ); + impl ::subxt::Event for Transferred { + const PALLET: &'static str = "Uniques"; + const EVENT: &'static str = "Transferred"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Burned( + pub u32, + pub u32, + pub ::subxt::sp_core::crypto::AccountId32, + ); + impl ::subxt::Event for Burned { + const PALLET: &'static str = "Uniques"; + const EVENT: &'static str = "Burned"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Frozen(pub u32, pub u32); + impl ::subxt::Event for Frozen { + const PALLET: &'static str = "Uniques"; + const EVENT: &'static str = "Frozen"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Thawed(pub u32, pub u32); + impl ::subxt::Event for Thawed { + const PALLET: &'static str = "Uniques"; + const EVENT: &'static str = "Thawed"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ClassFrozen(pub u32); + impl ::subxt::Event for ClassFrozen { + const PALLET: &'static str = "Uniques"; + const EVENT: &'static str = "ClassFrozen"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ClassThawed(pub u32); + impl ::subxt::Event for ClassThawed { + const PALLET: &'static str = "Uniques"; + const EVENT: &'static str = "ClassThawed"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct OwnerChanged(pub u32, pub ::subxt::sp_core::crypto::AccountId32); + impl ::subxt::Event for OwnerChanged { + const PALLET: &'static str = "Uniques"; + const EVENT: &'static str = "OwnerChanged"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct TeamChanged( + pub u32, + pub ::subxt::sp_core::crypto::AccountId32, + pub ::subxt::sp_core::crypto::AccountId32, + pub ::subxt::sp_core::crypto::AccountId32, + ); + impl ::subxt::Event for TeamChanged { + const PALLET: &'static str = "Uniques"; + const EVENT: &'static str = "TeamChanged"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ApprovedTransfer( + pub u32, + pub u32, + pub ::subxt::sp_core::crypto::AccountId32, + pub ::subxt::sp_core::crypto::AccountId32, + ); + impl ::subxt::Event for ApprovedTransfer { + const PALLET: &'static str = "Uniques"; + const EVENT: &'static str = "ApprovedTransfer"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ApprovalCancelled( + pub u32, + pub u32, + pub ::subxt::sp_core::crypto::AccountId32, + pub ::subxt::sp_core::crypto::AccountId32, + ); + impl ::subxt::Event for ApprovalCancelled { + const PALLET: &'static str = "Uniques"; + const EVENT: &'static str = "ApprovalCancelled"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct AssetStatusChanged(pub u32); + impl ::subxt::Event for AssetStatusChanged { + const PALLET: &'static str = "Uniques"; + const EVENT: &'static str = "AssetStatusChanged"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ClassMetadataSet( + pub u32, + pub runtime_types::frame_support::storage::bounded_vec::BoundedVec, + pub bool, + ); + impl ::subxt::Event for ClassMetadataSet { + const PALLET: &'static str = "Uniques"; + const EVENT: &'static str = "ClassMetadataSet"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ClassMetadataCleared(pub u32); + impl ::subxt::Event for ClassMetadataCleared { + const PALLET: &'static str = "Uniques"; + const EVENT: &'static str = "ClassMetadataCleared"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct MetadataSet( + pub u32, + pub u32, + pub runtime_types::frame_support::storage::bounded_vec::BoundedVec, + pub bool, + ); + impl ::subxt::Event for MetadataSet { + const PALLET: &'static str = "Uniques"; + const EVENT: &'static str = "MetadataSet"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct MetadataCleared(pub u32, pub u32); + impl ::subxt::Event for MetadataCleared { + const PALLET: &'static str = "Uniques"; + const EVENT: &'static str = "MetadataCleared"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Redeposited(pub u32, pub Vec); + impl ::subxt::Event for Redeposited { + const PALLET: &'static str = "Uniques"; + const EVENT: &'static str = "Redeposited"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct AttributeSet( + pub u32, + pub Option, + pub runtime_types::frame_support::storage::bounded_vec::BoundedVec, + pub runtime_types::frame_support::storage::bounded_vec::BoundedVec, + ); + impl ::subxt::Event for AttributeSet { + const PALLET: &'static str = "Uniques"; + const EVENT: &'static str = "AttributeSet"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct AttributeCleared( + pub u32, + pub Option, + pub runtime_types::frame_support::storage::bounded_vec::BoundedVec, + ); + impl ::subxt::Event for AttributeCleared { + const PALLET: &'static str = "Uniques"; + const EVENT: &'static str = "AttributeCleared"; + } + } + pub mod storage { + use super::runtime_types; + pub struct Class(pub u32); + impl ::subxt::StorageEntry for Class { + const PALLET: &'static str = "Uniques"; + const STORAGE: &'static str = "Class"; + type Value = runtime_types::pallet_uniques::types::ClassDetails< + ::subxt::sp_core::crypto::AccountId32, + u128, >; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( &self.0, - ::subxt::StorageHasher::Twox64Concat, + ::subxt::StorageHasher::Blake2_128Concat, )]) } } - pub struct NewRaise; - impl ::subxt::StorageEntry for NewRaise { - const PALLET: &'static str = "Crowdloan"; - const STORAGE: &'static str = "NewRaise"; - type Value = Vec; + pub struct Account(::subxt::sp_core::crypto::AccountId32, u32, u32); + impl ::subxt::StorageEntry for Account { + const PALLET: &'static str = "Uniques"; + const STORAGE: &'static str = "Account"; + type Value = (); fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain + ::subxt::StorageEntryKey::Map(vec![ + ::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Blake2_128Concat, + ), + ::subxt::StorageMapKey::new( + &self.1, + ::subxt::StorageHasher::Blake2_128Concat, + ), + ::subxt::StorageMapKey::new( + &self.2, + ::subxt::StorageHasher::Blake2_128Concat, + ), + ]) } } - pub struct EndingsCount; - impl ::subxt::StorageEntry for EndingsCount { - const PALLET: &'static str = "Crowdloan"; - const STORAGE: &'static str = "EndingsCount"; - type Value = u32; + pub struct Asset(u32, u32); + impl ::subxt::StorageEntry for Asset { + const PALLET: &'static str = "Uniques"; + const STORAGE: &'static str = "Asset"; + type Value = runtime_types::pallet_uniques::types::InstanceDetails< + ::subxt::sp_core::crypto::AccountId32, + u128, + >; fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain + ::subxt::StorageEntryKey::Map(vec![ + ::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Blake2_128Concat, + ), + ::subxt::StorageMapKey::new( + &self.1, + ::subxt::StorageHasher::Blake2_128Concat, + ), + ]) } } - pub struct NextTrieIndex; - impl ::subxt::StorageEntry for NextTrieIndex { - const PALLET: &'static str = "Crowdloan"; - const STORAGE: &'static str = "NextTrieIndex"; - type Value = u32; + pub struct ClassMetadataOf(pub u32); + impl ::subxt::StorageEntry for ClassMetadataOf { + const PALLET: &'static str = "Uniques"; + const STORAGE: &'static str = "ClassMetadataOf"; + type Value = runtime_types::pallet_uniques::types::ClassMetadata; fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Blake2_128Concat, + )]) + } + } + pub struct InstanceMetadataOf(u32, u32); + impl ::subxt::StorageEntry for InstanceMetadataOf { + const PALLET: &'static str = "Uniques"; + const STORAGE: &'static str = "InstanceMetadataOf"; + type Value = runtime_types::pallet_uniques::types::InstanceMetadata; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![ + ::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Blake2_128Concat, + ), + ::subxt::StorageMapKey::new( + &self.1, + ::subxt::StorageHasher::Blake2_128Concat, + ), + ]) + } + } + pub struct Attribute( + u32, + Option, + runtime_types::frame_support::storage::bounded_vec::BoundedVec, + ); + impl ::subxt::StorageEntry for Attribute { + const PALLET: &'static str = "Uniques"; + const STORAGE: &'static str = "Attribute"; + type Value = ( + runtime_types::frame_support::storage::bounded_vec::BoundedVec, + u128, + ); + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![ + ::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Blake2_128Concat, + ), + ::subxt::StorageMapKey::new( + &self.1, + ::subxt::StorageHasher::Blake2_128Concat, + ), + ::subxt::StorageMapKey::new( + &self.2, + ::subxt::StorageHasher::Blake2_128Concat, + ), + ]) } } pub struct StorageApi<'a, T: ::subxt::Config> { @@ -12817,3883 +13678,4285 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub async fn funds( + pub async fn class( &self, - _0: runtime_types::polkadot_parachain::primitives::Id, + _0: u32, hash: ::core::option::Option, ) -> ::core::result::Result< ::core::option::Option< - runtime_types::polkadot_runtime_common::crowdloan::FundInfo< + runtime_types::pallet_uniques::types::ClassDetails< ::subxt::sp_core::crypto::AccountId32, u128, - u32, - u32, >, >, ::subxt::Error, > { - let entry = Funds(_0); + let entry = Class(_0); self.client.storage().fetch(&entry, hash).await } - pub async fn new_raise( + pub async fn class_iter( &self, hash: ::core::option::Option, - ) -> ::core::result::Result< - Vec, - ::subxt::Error, - > { - let entry = NewRaise; - self.client.storage().fetch_or_default(&entry, hash).await + ) -> ::core::result::Result<::subxt::KeyIter<'a, T, Class>, ::subxt::Error> + { + self.client.storage().iter(hash).await } - pub async fn endings_count( + pub async fn account( &self, + _0: ::subxt::sp_core::crypto::AccountId32, + _1: u32, + _2: u32, hash: ::core::option::Option, - ) -> ::core::result::Result { - let entry = EndingsCount; - self.client.storage().fetch_or_default(&entry, hash).await + ) -> ::core::result::Result<::core::option::Option<()>, ::subxt::Error> + { + let entry = Account(_0, _1, _2); + self.client.storage().fetch(&entry, hash).await } - pub async fn next_trie_index( + pub async fn account_iter( &self, hash: ::core::option::Option, - ) -> ::core::result::Result { - let entry = NextTrieIndex; - self.client.storage().fetch_or_default(&entry, hash).await + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, Account>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } + pub async fn asset( + &self, + _0: u32, + _1: u32, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option< + runtime_types::pallet_uniques::types::InstanceDetails< + ::subxt::sp_core::crypto::AccountId32, + u128, + >, + >, + ::subxt::Error, + > { + let entry = Asset(_0, _1); + self.client.storage().fetch(&entry, hash).await + } + pub async fn asset_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result<::subxt::KeyIter<'a, T, Asset>, ::subxt::Error> + { + self.client.storage().iter(hash).await + } + pub async fn class_metadata_of( + &self, + _0: u32, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option< + runtime_types::pallet_uniques::types::ClassMetadata, + >, + ::subxt::Error, + > { + let entry = ClassMetadataOf(_0); + self.client.storage().fetch(&entry, hash).await + } + pub async fn class_metadata_of_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, ClassMetadataOf>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } + pub async fn instance_metadata_of( + &self, + _0: u32, + _1: u32, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option< + runtime_types::pallet_uniques::types::InstanceMetadata, + >, + ::subxt::Error, + > { + let entry = InstanceMetadataOf(_0, _1); + self.client.storage().fetch(&entry, hash).await + } + pub async fn instance_metadata_of_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, InstanceMetadataOf>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } + pub async fn attribute( + &self, + _0: u32, + _1: Option, + _2: runtime_types::frame_support::storage::bounded_vec::BoundedVec< + u8, + >, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option<( + runtime_types::frame_support::storage::bounded_vec::BoundedVec< + u8, + >, + u128, + )>, + ::subxt::Error, + > { + let entry = Attribute(_0, _1, _2); + self.client.storage().fetch(&entry, hash).await + } + pub async fn attribute_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, Attribute>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await } } } - } - pub mod runtime_types { - use super::runtime_types; - pub mod bitvec { - use super::runtime_types; - pub mod order { - use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct Lsb0 {} - } - } - pub mod finality_grandpa { + } + pub mod transaction_storage { + use super::runtime_types; + pub mod calls { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Equivocation<_0, _1, _2> { - pub round_number: u64, - pub identity: _0, - pub first: (_1, _2), - pub second: (_1, _2), + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Store { + pub data: Vec, } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Precommit<_0, _1> { - pub target_hash: _0, - pub target_number: _1, + impl ::subxt::Call for Store { + const PALLET: &'static str = "TransactionStorage"; + const FUNCTION: &'static str = "store"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Prevote<_0, _1> { - pub target_hash: _0, - pub target_number: _1, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Renew { + pub block: u32, + pub index: u32, } - } - pub mod frame_support { - use super::runtime_types; - pub mod storage { - use super::runtime_types; - pub mod bounded_btree_map { - use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct BoundedBTreeMap<_0, _1>( - pub std::collections::BTreeMap<_0, _1>, - ); + impl ::subxt::Call for Renew { + const PALLET: &'static str = "TransactionStorage"; + const FUNCTION: &'static str = "renew"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct CheckProof { + pub proof: + runtime_types::sp_transaction_storage_proof::TransactionStorageProof, + } + impl ::subxt::Call for CheckProof { + const PALLET: &'static str = "TransactionStorage"; + const FUNCTION: &'static str = "check_proof"; + } + pub struct TransactionApi< + 'a, + T: ::subxt::Config + ::subxt::ExtrinsicExtraData, + > { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> TransactionApi<'a, T> + where + T: ::subxt::Config + ::subxt::ExtrinsicExtraData, + { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } } - pub mod bounded_vec { - use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct BoundedVec<_0>(pub Vec<_0>); + pub fn store( + &self, + data: Vec, + ) -> ::subxt::SubmittableExtrinsic { + let call = Store { data }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub mod weak_bounded_vec { - use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct WeakBoundedVec<_0>(pub Vec<_0>); + pub fn renew( + &self, + block: u32, + index: u32, + ) -> ::subxt::SubmittableExtrinsic { + let call = Renew { block, index }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - } - pub mod traits { - use super::runtime_types; - pub mod misc { - use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct WrapperOpaque<_0>(u32, pub _0); + pub fn check_proof( + &self, + proof : runtime_types :: sp_transaction_storage_proof :: TransactionStorageProof, + ) -> ::subxt::SubmittableExtrinsic { + let call = CheckProof { proof }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub mod tokens { - use super::runtime_types; - pub mod misc { - use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum BalanceStatus { - Free, - Reserved, - } - } + } + } + pub type Event = runtime_types::pallet_transaction_storage::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Stored(pub u32); + impl ::subxt::Event for Stored { + const PALLET: &'static str = "TransactionStorage"; + const EVENT: &'static str = "Stored"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Renewed(pub u32); + impl ::subxt::Event for Renewed { + const PALLET: &'static str = "TransactionStorage"; + const EVENT: &'static str = "Renewed"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ProofChecked {} + impl ::subxt::Event for ProofChecked { + const PALLET: &'static str = "TransactionStorage"; + const EVENT: &'static str = "ProofChecked"; + } + } + pub mod storage { + use super::runtime_types; + pub struct Transactions(pub u32); + impl ::subxt::StorageEntry for Transactions { + const PALLET: &'static str = "TransactionStorage"; + const STORAGE: &'static str = "Transactions"; + type Value = + Vec; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Blake2_128Concat, + )]) } } - pub mod weights { - use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum DispatchClass { - Normal, - Operational, - Mandatory, + pub struct ChunkCount(pub u32); + impl ::subxt::StorageEntry for ChunkCount { + const PALLET: &'static str = "TransactionStorage"; + const STORAGE: &'static str = "ChunkCount"; + type Value = u32; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Blake2_128Concat, + )]) } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct DispatchInfo { - pub weight: u64, - pub class: runtime_types::frame_support::weights::DispatchClass, - pub pays_fee: runtime_types::frame_support::weights::Pays, + } + pub struct ByteFee; + impl ::subxt::StorageEntry for ByteFee { + const PALLET: &'static str = "TransactionStorage"; + const STORAGE: &'static str = "ByteFee"; + type Value = u128; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Pays { - Yes, - No, + } + pub struct EntryFee; + impl ::subxt::StorageEntry for EntryFee { + const PALLET: &'static str = "TransactionStorage"; + const STORAGE: &'static str = "EntryFee"; + type Value = u128; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct PerDispatchClass<_0> { - pub normal: _0, - pub operational: _0, - pub mandatory: _0, + } + pub struct MaxTransactionSize; + impl ::subxt::StorageEntry for MaxTransactionSize { + const PALLET: &'static str = "TransactionStorage"; + const STORAGE: &'static str = "MaxTransactionSize"; + type Value = u32; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct RuntimeDbWeight { - pub read: u64, - pub write: u64, + } + pub struct MaxBlockTransactions; + impl ::subxt::StorageEntry for MaxBlockTransactions { + const PALLET: &'static str = "TransactionStorage"; + const STORAGE: &'static str = "MaxBlockTransactions"; + type Value = u32; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct WeightToFeeCoefficient<_0> { - pub coeff_integer: _0, - pub coeff_frac: ::subxt::sp_arithmetic::per_things::Perbill, - pub negative: bool, - pub degree: u8, + } + pub struct StoragePeriod; + impl ::subxt::StorageEntry for StoragePeriod { + const PALLET: &'static str = "TransactionStorage"; + const STORAGE: &'static str = "StoragePeriod"; + type Value = u32; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain } } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct PalletId(pub [u8; 8usize]); - } - pub mod frame_system { - use super::runtime_types; - pub mod extensions { - use super::runtime_types; - pub mod check_genesis { - use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct CheckGenesis {} + pub struct BlockTransactions; + impl ::subxt::StorageEntry for BlockTransactions { + const PALLET: &'static str = "TransactionStorage"; + const STORAGE: &'static str = "BlockTransactions"; + type Value = + Vec; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain } - pub mod check_mortality { - use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct CheckMortality( - pub runtime_types::sp_runtime::generic::era::Era, - ); + } + pub struct ProofChecked; + impl ::subxt::StorageEntry for ProofChecked { + const PALLET: &'static str = "TransactionStorage"; + const STORAGE: &'static str = "ProofChecked"; + type Value = bool; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain } - pub mod check_nonce { - use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct CheckNonce(pub u32); + } + pub struct StorageApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> StorageApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } } - pub mod check_spec_version { - use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct CheckSpecVersion {} + pub async fn transactions( + &self, + _0: u32, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option< + Vec, + >, + ::subxt::Error, + > { + let entry = Transactions(_0); + self.client.storage().fetch(&entry, hash).await } - pub mod check_tx_version { - use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct CheckTxVersion {} + pub async fn transactions_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, Transactions>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await } - pub mod check_weight { - use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct CheckWeight {} + pub async fn chunk_count( + &self, + _0: u32, + hash: ::core::option::Option, + ) -> ::core::result::Result { + let entry = ChunkCount(_0); + self.client.storage().fetch_or_default(&entry, hash).await } - } - pub mod limits { - use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct BlockLength { - pub max: runtime_types::frame_support::weights::PerDispatchClass, + pub async fn chunk_count_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, ChunkCount>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct BlockWeights { - pub base_block: u64, - pub max_block: u64, - pub per_class: - runtime_types::frame_support::weights::PerDispatchClass< - runtime_types::frame_system::limits::WeightsPerClass, - >, + pub async fn byte_fee( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result<::core::option::Option, ::subxt::Error> + { + let entry = ByteFee; + self.client.storage().fetch(&entry, hash).await } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct WeightsPerClass { - pub base_extrinsic: u64, - pub max_extrinsic: Option, - pub max_total: Option, - pub reserved: Option, + pub async fn entry_fee( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result<::core::option::Option, ::subxt::Error> + { + let entry = EntryFee; + self.client.storage().fetch(&entry, hash).await } - } - pub mod pallet { - use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Call { - fill_block { ratio : :: subxt :: sp_arithmetic :: per_things :: Perbill , } , remark { remark : Vec < u8 > , } , set_heap_pages { pages : u64 , } , set_code { code : Vec < u8 > , } , set_code_without_checks { code : Vec < u8 > , } , set_changes_trie_config { changes_trie_config : Option < runtime_types :: sp_core :: changes_trie :: ChangesTrieConfiguration > , } , set_storage { items : Vec < (Vec < u8 > , Vec < u8 > ,) > , } , kill_storage { keys : Vec < Vec < u8 > > , } , kill_prefix { prefix : Vec < u8 > , subkeys : u32 , } , remark_with_event { remark : Vec < u8 > , } , } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Error { - InvalidSpecName, - SpecVersionNeedsToIncrease, - FailedToExtractRuntimeVersion, - NonDefaultComposite, - NonZeroRefCount, + pub async fn max_transaction_size( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result { + let entry = MaxTransactionSize; + self.client.storage().fetch_or_default(&entry, hash).await } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Event { - ExtrinsicSuccess(runtime_types::frame_support::weights::DispatchInfo), - ExtrinsicFailed( - runtime_types::sp_runtime::DispatchError, - runtime_types::frame_support::weights::DispatchInfo, - ), - CodeUpdated, - NewAccount(::subxt::sp_core::crypto::AccountId32), - KilledAccount(::subxt::sp_core::crypto::AccountId32), - Remarked( - ::subxt::sp_core::crypto::AccountId32, - ::subxt::sp_core::H256, - ), + pub async fn max_block_transactions( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result { + let entry = MaxBlockTransactions; + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn storage_period( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result { + let entry = StoragePeriod; + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn block_transactions( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + Vec, + ::subxt::Error, + > { + let entry = BlockTransactions; + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn proof_checked( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result { + let entry = ProofChecked; + self.client.storage().fetch_or_default(&entry, hash).await } } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct AccountInfo<_0, _1> { - pub nonce: _0, - pub consumers: _0, - pub providers: _0, - pub sufficients: _0, - pub data: _1, + } + } + pub mod bags_list { + use super::runtime_types; + pub mod calls { + use super::runtime_types; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Rebag { + pub dislocated: ::subxt::sp_core::crypto::AccountId32, } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct EventRecord<_0, _1> { - pub phase: runtime_types::frame_system::Phase, - pub event: _0, - pub topics: Vec<_1>, + impl ::subxt::Call for Rebag { + const PALLET: &'static str = "BagsList"; + const FUNCTION: &'static str = "rebag"; } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct LastRuntimeUpgradeInfo { - #[codec(compact)] - pub spec_version: u32, - pub spec_name: String, + pub struct TransactionApi< + 'a, + T: ::subxt::Config + ::subxt::ExtrinsicExtraData, + > { + client: &'a ::subxt::Client, } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub enum Phase { - ApplyExtrinsic(u32), - Finalization, - Initialization, + impl<'a, T: ::subxt::Config> TransactionApi<'a, T> + where + T: ::subxt::Config + ::subxt::ExtrinsicExtraData, + { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } + pub fn rebag( + &self, + dislocated: ::subxt::sp_core::crypto::AccountId32, + ) -> ::subxt::SubmittableExtrinsic { + let call = Rebag { dislocated }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub enum RawOrigin<_0> { - Root, - Signed(_0), - None, + } + pub type Event = runtime_types::pallet_bags_list::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Rebagged( + pub ::subxt::sp_core::crypto::AccountId32, + pub u64, + pub u64, + ); + impl ::subxt::Event for Rebagged { + const PALLET: &'static str = "BagsList"; + const EVENT: &'static str = "Rebagged"; } } - pub mod pallet_authorship { + pub mod storage { use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Call { - set_uncles { - new_uncles: Vec< - runtime_types::sp_runtime::generic::header::Header< - u32, - runtime_types::sp_runtime::traits::BlakeTwo256, - >, - >, - }, - } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Error { - InvalidUncleParent, - UnclesAlreadySet, - TooManyUncles, - GenesisUncle, - TooHighUncle, - UncleAlreadyIncluded, - OldUncle, + pub struct CounterForListNodes; + impl ::subxt::StorageEntry for CounterForListNodes { + const PALLET: &'static str = "BagsList"; + const STORAGE: &'static str = "CounterForListNodes"; + type Value = u32; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain } } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub enum UncleEntryItem<_0, _1, _2> { - InclusionHeight(_0), - Uncle(_1, Option<_2>), + pub struct ListNodes(pub ::subxt::sp_core::crypto::AccountId32); + impl ::subxt::StorageEntry for ListNodes { + const PALLET: &'static str = "BagsList"; + const STORAGE: &'static str = "ListNodes"; + type Value = runtime_types::pallet_bags_list::list::Node; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) + } } - } - pub mod pallet_babe { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Call { - report_equivocation { equivocation_proof : std :: boxed :: Box < runtime_types :: sp_consensus_slots :: EquivocationProof < runtime_types :: sp_runtime :: generic :: header :: Header < u32 , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > , runtime_types :: sp_consensus_babe :: app :: Public > > , key_owner_proof : runtime_types :: sp_session :: MembershipProof , } , report_equivocation_unsigned { equivocation_proof : std :: boxed :: Box < runtime_types :: sp_consensus_slots :: EquivocationProof < runtime_types :: sp_runtime :: generic :: header :: Header < u32 , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > , runtime_types :: sp_consensus_babe :: app :: Public > > , key_owner_proof : runtime_types :: sp_session :: MembershipProof , } , plan_config_change { config : runtime_types :: sp_consensus_babe :: digests :: NextConfigDescriptor , } , } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Error { - InvalidEquivocationProof, - InvalidKeyOwnershipProof, - DuplicateOffenceReport, + pub struct ListBags(pub u64); + impl ::subxt::StorageEntry for ListBags { + const PALLET: &'static str = "BagsList"; + const STORAGE: &'static str = "ListBags"; + type Value = runtime_types::pallet_bags_list::list::Bag; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) } } - } - pub mod pallet_balances { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Call { - transfer { - dest: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - #[codec(compact)] - value: u128, - }, - set_balance { - who: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - #[codec(compact)] - new_free: u128, - #[codec(compact)] - new_reserved: u128, - }, - force_transfer { - source: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - dest: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - #[codec(compact)] - value: u128, - }, - transfer_keep_alive { - dest: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - #[codec(compact)] - value: u128, - }, - transfer_all { - dest: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - keep_alive: bool, - }, - force_unreserve { - who: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - amount: u128, - }, + pub struct StorageApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> StorageApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Error { - VestingBalance, - LiquidityRestrictions, - InsufficientBalance, - ExistentialDeposit, - KeepAlive, - ExistingVestingSchedule, - DeadAccount, - TooManyReserves, + pub async fn counter_for_list_nodes( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result { + let entry = CounterForListNodes; + self.client.storage().fetch_or_default(&entry, hash).await } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Event { - Endowed(::subxt::sp_core::crypto::AccountId32, u128), - DustLost(::subxt::sp_core::crypto::AccountId32, u128), - Transfer( - ::subxt::sp_core::crypto::AccountId32, - ::subxt::sp_core::crypto::AccountId32, - u128, - ), - BalanceSet(::subxt::sp_core::crypto::AccountId32, u128, u128), - Deposit(::subxt::sp_core::crypto::AccountId32, u128), - Reserved(::subxt::sp_core::crypto::AccountId32, u128), - Unreserved(::subxt::sp_core::crypto::AccountId32, u128), - ReserveRepatriated( - ::subxt::sp_core::crypto::AccountId32, - ::subxt::sp_core::crypto::AccountId32, - u128, - runtime_types::frame_support::traits::tokens::misc::BalanceStatus, - ), + pub async fn list_nodes( + &self, + _0: ::subxt::sp_core::crypto::AccountId32, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option, + ::subxt::Error, + > { + let entry = ListNodes(_0); + self.client.storage().fetch(&entry, hash).await + } + pub async fn list_nodes_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, ListNodes>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await + } + pub async fn list_bags( + &self, + _0: u64, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option, + ::subxt::Error, + > { + let entry = ListBags(_0); + self.client.storage().fetch(&entry, hash).await + } + pub async fn list_bags_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, ListBags>, + ::subxt::Error, + > { + self.client.storage().iter(hash).await } } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct AccountData<_0> { - pub free: _0, - pub reserved: _0, - pub misc_frozen: _0, - pub fee_frozen: _0, - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct BalanceLock<_0> { - pub id: [u8; 8usize], - pub amount: _0, - pub reasons: runtime_types::pallet_balances::Reasons, - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub enum Reasons { - Fee, - Misc, - All, + } + } + pub mod runtime_types { + use super::runtime_types; + pub mod finality_grandpa { + use super::runtime_types; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Equivocation<_0, _1, _2> { + pub round_number: u64, + pub identity: _0, + pub first: (_1, _2), + pub second: (_1, _2), } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub enum Releases { - V1_0_0, - V2_0_0, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Precommit<_0, _1> { + pub target_hash: _0, + pub target_number: _1, } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ReserveData<_0, _1> { - pub id: _0, - pub amount: _1, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Prevote<_0, _1> { + pub target_hash: _0, + pub target_number: _1, } } - pub mod pallet_bounties { + pub mod frame_support { use super::runtime_types; - pub mod pallet { + pub mod storage { use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Call { - propose_bounty { - #[codec(compact)] - value: u128, - description: Vec, - }, - approve_bounty { - #[codec(compact)] - bounty_id: u32, - }, - propose_curator { - #[codec(compact)] - bounty_id: u32, - curator: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - #[codec(compact)] - fee: u128, - }, - unassign_curator { - #[codec(compact)] - bounty_id: u32, - }, - accept_curator { - #[codec(compact)] - bounty_id: u32, - }, - award_bounty { - #[codec(compact)] - bounty_id: u32, - beneficiary: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - }, - claim_bounty { - #[codec(compact)] - bounty_id: u32, - }, - close_bounty { - #[codec(compact)] - bounty_id: u32, - }, - extend_bounty_expiry { - #[codec(compact)] - bounty_id: u32, - remark: Vec, - }, + pub mod bounded_btree_map { + use super::runtime_types; + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, + )] + pub struct BoundedBTreeMap<_0, _1>( + pub std::collections::BTreeMap<_0, _1>, + ); } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Error { - InsufficientProposersBalance, - InvalidIndex, - ReasonTooBig, - UnexpectedStatus, - RequireCurator, - InvalidValue, - InvalidFee, - PendingPayout, - Premature, + pub mod bounded_vec { + use super::runtime_types; + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, + )] + pub struct BoundedVec<_0>(pub Vec<_0>); } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Event { - BountyProposed(u32), - BountyRejected(u32, u128), - BountyBecameActive(u32), - BountyAwarded(u32, ::subxt::sp_core::crypto::AccountId32), - BountyClaimed(u32, u128, ::subxt::sp_core::crypto::AccountId32), - BountyCanceled(u32), - BountyExtended(u32), + pub mod weak_bounded_vec { + use super::runtime_types; + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, + )] + pub struct WeakBoundedVec<_0>(pub Vec<_0>); } } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Bounty<_0, _1, _2> { - pub proposer: _0, - pub value: _1, - pub fee: _1, - pub curator_deposit: _1, - pub bond: _1, - pub status: runtime_types::pallet_bounties::BountyStatus<_0, _2>, - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub enum BountyStatus<_0, _1> { - Proposed, - Approved, - Funded, - CuratorProposed { - curator: _0, - }, - Active { - curator: _0, - update_due: _1, - }, - PendingPayout { - curator: _0, - beneficiary: _0, - unlock_at: _1, - }, + pub mod traits { + use super::runtime_types; + pub mod misc { + use super::runtime_types; + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, + )] + pub struct WrapperKeepOpaque<_0>(u32, pub _0); + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, + )] + pub struct WrapperOpaque<_0>(u32, pub _0); + } + pub mod tokens { + use super::runtime_types; + pub mod misc { + use super::runtime_types; + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, + )] + pub enum BalanceStatus { + Free, + Reserved, + } + } + } + } + pub mod weights { + use super::runtime_types; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum DispatchClass { + Normal, + Operational, + Mandatory, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct DispatchInfo { + pub weight: u64, + pub class: runtime_types::frame_support::weights::DispatchClass, + pub pays_fee: runtime_types::frame_support::weights::Pays, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Pays { + Yes, + No, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct PerDispatchClass<_0> { + pub normal: _0, + pub operational: _0, + pub mandatory: _0, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct RuntimeDbWeight { + pub read: u64, + pub write: u64, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct WeightToFeeCoefficient<_0> { + pub coeff_integer: _0, + pub coeff_frac: ::subxt::sp_arithmetic::per_things::Perbill, + pub negative: bool, + pub degree: u8, + } } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct PalletId(pub [u8; 8usize]); } - pub mod pallet_collective { + pub mod frame_system { use super::runtime_types; + pub mod extensions { + use super::runtime_types; + pub mod check_genesis { + use super::runtime_types; + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, + )] + pub struct CheckGenesis {} + } + pub mod check_mortality { + use super::runtime_types; + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, + )] + pub struct CheckMortality( + pub runtime_types::sp_runtime::generic::era::Era, + ); + } + pub mod check_nonce { + use super::runtime_types; + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, + )] + pub struct CheckNonce(pub u32); + } + pub mod check_spec_version { + use super::runtime_types; + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, + )] + pub struct CheckSpecVersion {} + } + pub mod check_tx_version { + use super::runtime_types; + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, + )] + pub struct CheckTxVersion {} + } + pub mod check_weight { + use super::runtime_types; + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, + )] + pub struct CheckWeight {} + } + } + pub mod limits { + use super::runtime_types; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct BlockLength { + pub max: runtime_types::frame_support::weights::PerDispatchClass, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct BlockWeights { + pub base_block: u64, + pub max_block: u64, + pub per_class: + runtime_types::frame_support::weights::PerDispatchClass< + runtime_types::frame_system::limits::WeightsPerClass, + >, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct WeightsPerClass { + pub base_extrinsic: u64, + pub max_extrinsic: Option, + pub max_total: Option, + pub reserved: Option, + } + } pub mod pallet { use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub enum Call { - set_members { - new_members: Vec<::subxt::sp_core::crypto::AccountId32>, - prime: Option<::subxt::sp_core::crypto::AccountId32>, - old_count: u32, - }, - execute { - proposal: std::boxed::Box, - #[codec(compact)] - length_bound: u32, - }, - propose { - #[codec(compact)] - threshold: u32, - proposal: std::boxed::Box, - #[codec(compact)] - length_bound: u32, - }, - vote { - proposal: ::subxt::sp_core::H256, - #[codec(compact)] - index: u32, - approve: bool, - }, - close { - proposal_hash: ::subxt::sp_core::H256, - #[codec(compact)] - index: u32, - #[codec(compact)] - proposal_weight_bound: u64, - #[codec(compact)] - length_bound: u32, - }, - disapprove_proposal { - proposal_hash: ::subxt::sp_core::H256, - }, - } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + fill_block { ratio : :: subxt :: sp_arithmetic :: per_things :: Perbill , } , remark { remark : Vec < u8 > , } , set_heap_pages { pages : u64 , } , set_code { code : Vec < u8 > , } , set_code_without_checks { code : Vec < u8 > , } , set_changes_trie_config { changes_trie_config : Option < runtime_types :: sp_core :: changes_trie :: ChangesTrieConfiguration > , } , set_storage { items : Vec < (Vec < u8 > , Vec < u8 > ,) > , } , kill_storage { keys : Vec < Vec < u8 > > , } , kill_prefix { prefix : Vec < u8 > , subkeys : u32 , } , remark_with_event { remark : Vec < u8 > , } , } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub enum Error { - NotMember, - DuplicateProposal, - ProposalMissing, - WrongIndex, - DuplicateVote, - AlreadyInitialized, - TooEarly, - TooManyProposals, - WrongProposalWeight, - WrongProposalLength, + InvalidSpecName, + SpecVersionNeedsToIncrease, + FailedToExtractRuntimeVersion, + NonDefaultComposite, + NonZeroRefCount, } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub enum Event { - Proposed( - ::subxt::sp_core::crypto::AccountId32, - u32, - ::subxt::sp_core::H256, - u32, + ExtrinsicSuccess(runtime_types::frame_support::weights::DispatchInfo), + ExtrinsicFailed( + runtime_types::sp_runtime::DispatchError, + runtime_types::frame_support::weights::DispatchInfo, ), - Voted( + CodeUpdated, + NewAccount(::subxt::sp_core::crypto::AccountId32), + KilledAccount(::subxt::sp_core::crypto::AccountId32), + Remarked( ::subxt::sp_core::crypto::AccountId32, ::subxt::sp_core::H256, - bool, - u32, - u32, - ), - Approved(::subxt::sp_core::H256), - Disapproved(::subxt::sp_core::H256), - Executed( - ::subxt::sp_core::H256, - Result<(), runtime_types::sp_runtime::DispatchError>, - ), - MemberExecuted( - ::subxt::sp_core::H256, - Result<(), runtime_types::sp_runtime::DispatchError>, ), - Closed(::subxt::sp_core::H256, u32, u32), } } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub enum RawOrigin<_0> { - Members(u32, u32), - Member(_0), - _Phantom, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct AccountInfo<_0, _1> { + pub nonce: _0, + pub consumers: _0, + pub providers: _0, + pub sufficients: _0, + pub data: _1, } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Votes<_0, _1> { - pub index: _1, - pub threshold: _1, - pub ayes: Vec<_0>, - pub nays: Vec<_0>, - pub end: _1, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct EventRecord<_0, _1> { + pub phase: runtime_types::frame_system::Phase, + pub event: _0, + pub topics: Vec<_1>, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct LastRuntimeUpgradeInfo { + #[codec(compact)] + pub spec_version: u32, + pub spec_name: String, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Phase { + ApplyExtrinsic(u32), + Finalization, + Initialization, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum RawOrigin<_0> { + Root, + Signed(_0), + None, } } - pub mod pallet_democracy { + pub mod node_runtime { use super::runtime_types; - pub mod conviction { - use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Conviction { - None, - Locked1x, - Locked2x, - Locked3x, - Locked4x, - Locked5x, - Locked6x, - } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Call { + System(runtime_types::frame_system::pallet::Call), + Utility(runtime_types::pallet_utility::pallet::Call), + Babe(runtime_types::pallet_babe::pallet::Call), + Timestamp(runtime_types::pallet_timestamp::pallet::Call), + Authorship(runtime_types::pallet_authorship::pallet::Call), + Indices(runtime_types::pallet_indices::pallet::Call), + Balances(runtime_types::pallet_balances::pallet::Call), + ElectionProviderMultiPhase( + runtime_types::pallet_election_provider_multi_phase::pallet::Call, + ), + Staking(runtime_types::pallet_staking::pallet::pallet::Call), + Session(runtime_types::pallet_session::pallet::Call), + Democracy(runtime_types::pallet_democracy::pallet::Call), + Council(runtime_types::pallet_collective::pallet::Call), + TechnicalCommittee(runtime_types::pallet_collective::pallet::Call), + Elections(runtime_types::pallet_elections_phragmen::pallet::Call), + TechnicalMembership(runtime_types::pallet_membership::pallet::Call), + Grandpa(runtime_types::pallet_grandpa::pallet::Call), + Treasury(runtime_types::pallet_treasury::pallet::Call), + Contracts(runtime_types::pallet_contracts::pallet::Call), + Sudo(runtime_types::pallet_sudo::pallet::Call), + ImOnline(runtime_types::pallet_im_online::pallet::Call), + Identity(runtime_types::pallet_identity::pallet::Call), + Society(runtime_types::pallet_society::pallet::Call), + Recovery(runtime_types::pallet_recovery::pallet::Call), + Vesting(runtime_types::pallet_vesting::pallet::Call), + Scheduler(runtime_types::pallet_scheduler::pallet::Call), + Proxy(runtime_types::pallet_proxy::pallet::Call), + Multisig(runtime_types::pallet_multisig::pallet::Call), + Bounties(runtime_types::pallet_bounties::pallet::Call), + Tips(runtime_types::pallet_tips::pallet::Call), + Assets(runtime_types::pallet_assets::pallet::Call), + Lottery(runtime_types::pallet_lottery::pallet::Call), + Gilt(runtime_types::pallet_gilt::pallet::Call), + Uniques(runtime_types::pallet_uniques::pallet::Call), + TransactionStorage( + runtime_types::pallet_transaction_storage::pallet::Call, + ), + BagsList(runtime_types::pallet_bags_list::pallet::Call), + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Event { + System(runtime_types::frame_system::pallet::Event), + Utility(runtime_types::pallet_utility::pallet::Event), + Indices(runtime_types::pallet_indices::pallet::Event), + Balances(runtime_types::pallet_balances::pallet::Event), + ElectionProviderMultiPhase( + runtime_types::pallet_election_provider_multi_phase::pallet::Event, + ), + Staking(runtime_types::pallet_staking::pallet::pallet::Event), + Session(runtime_types::pallet_session::pallet::Event), + Democracy(runtime_types::pallet_democracy::pallet::Event), + Council(runtime_types::pallet_collective::pallet::Event), + TechnicalCommittee(runtime_types::pallet_collective::pallet::Event), + Elections(runtime_types::pallet_elections_phragmen::pallet::Event), + TechnicalMembership(runtime_types::pallet_membership::pallet::Event), + Grandpa(runtime_types::pallet_grandpa::pallet::Event), + Treasury(runtime_types::pallet_treasury::pallet::Event), + Contracts(runtime_types::pallet_contracts::pallet::Event), + Sudo(runtime_types::pallet_sudo::pallet::Event), + ImOnline(runtime_types::pallet_im_online::pallet::Event), + Offences(runtime_types::pallet_offences::pallet::Event), + Identity(runtime_types::pallet_identity::pallet::Event), + Society(runtime_types::pallet_society::pallet::Event), + Recovery(runtime_types::pallet_recovery::pallet::Event), + Vesting(runtime_types::pallet_vesting::pallet::Event), + Scheduler(runtime_types::pallet_scheduler::pallet::Event), + Proxy(runtime_types::pallet_proxy::pallet::Event), + Multisig(runtime_types::pallet_multisig::pallet::Event), + Bounties(runtime_types::pallet_bounties::pallet::Event), + Tips(runtime_types::pallet_tips::pallet::Event), + Assets(runtime_types::pallet_assets::pallet::Event), + Lottery(runtime_types::pallet_lottery::pallet::Event), + Gilt(runtime_types::pallet_gilt::pallet::Event), + Uniques(runtime_types::pallet_uniques::pallet::Event), + TransactionStorage( + runtime_types::pallet_transaction_storage::pallet::Event, + ), + BagsList(runtime_types::pallet_bags_list::pallet::Event), + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct NposSolution16 { + votes1: Vec<(u32, u16)>, + votes2: Vec<( + u32, + (u16, runtime_types::sp_arithmetic::per_things::PerU16), + u16, + )>, + votes3: Vec<( + u32, + [(u16, runtime_types::sp_arithmetic::per_things::PerU16); 2usize], + u16, + )>, + votes4: Vec<( + u32, + [(u16, runtime_types::sp_arithmetic::per_things::PerU16); 3usize], + u16, + )>, + votes5: Vec<( + u32, + [(u16, runtime_types::sp_arithmetic::per_things::PerU16); 4usize], + u16, + )>, + votes6: Vec<( + u32, + [(u16, runtime_types::sp_arithmetic::per_things::PerU16); 5usize], + u16, + )>, + votes7: Vec<( + u32, + [(u16, runtime_types::sp_arithmetic::per_things::PerU16); 6usize], + u16, + )>, + votes8: Vec<( + u32, + [(u16, runtime_types::sp_arithmetic::per_things::PerU16); 7usize], + u16, + )>, + votes9: Vec<( + u32, + [(u16, runtime_types::sp_arithmetic::per_things::PerU16); 8usize], + u16, + )>, + votes10: Vec<( + u32, + [(u16, runtime_types::sp_arithmetic::per_things::PerU16); 9usize], + u16, + )>, + votes11: Vec<( + u32, + [(u16, runtime_types::sp_arithmetic::per_things::PerU16); 10usize], + u16, + )>, + votes12: Vec<( + u32, + [(u16, runtime_types::sp_arithmetic::per_things::PerU16); 11usize], + u16, + )>, + votes13: Vec<( + u32, + [(u16, runtime_types::sp_arithmetic::per_things::PerU16); 12usize], + u16, + )>, + votes14: Vec<( + u32, + [(u16, runtime_types::sp_arithmetic::per_things::PerU16); 13usize], + u16, + )>, + votes15: Vec<( + u32, + [(u16, runtime_types::sp_arithmetic::per_things::PerU16); 14usize], + u16, + )>, + votes16: Vec<( + u32, + [(u16, runtime_types::sp_arithmetic::per_things::PerU16); 15usize], + u16, + )>, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum OriginCaller { + system( + runtime_types::frame_system::RawOrigin< + ::subxt::sp_core::crypto::AccountId32, + >, + ), + Council( + runtime_types::pallet_collective::RawOrigin< + ::subxt::sp_core::crypto::AccountId32, + >, + ), + TechnicalCommittee( + runtime_types::pallet_collective::RawOrigin< + ::subxt::sp_core::crypto::AccountId32, + >, + ), + Void(runtime_types::sp_core::Void), + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum ProxyType { + Any, + NonTransfer, + Governance, + Staking, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Runtime {} + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct SessionKeys { + pub grandpa: runtime_types::sp_finality_grandpa::app::Public, + pub babe: runtime_types::sp_consensus_babe::app::Public, + pub im_online: + runtime_types::pallet_im_online::sr25519::app_sr25519::Public, + pub authority_discovery: + runtime_types::sp_authority_discovery::app::Public, } + } + pub mod pallet_assets { + use super::runtime_types; pub mod pallet { use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub enum Call { - propose { - proposal_hash: ::subxt::sp_core::H256, + create { #[codec(compact)] - value: u128, + id: u32, + admin: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + min_balance: u64, }, - second { + force_create { #[codec(compact)] - proposal: u32, + id: u32, + owner: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + is_sufficient: bool, #[codec(compact)] - seconds_upper_bound: u32, + min_balance: u64, }, - vote { + destroy { #[codec(compact)] - ref_index: u32, - vote: runtime_types::pallet_democracy::vote::AccountVote, - }, - emergency_cancel { - ref_index: u32, - }, - external_propose { - proposal_hash: ::subxt::sp_core::H256, - }, - external_propose_majority { - proposal_hash: ::subxt::sp_core::H256, + id: u32, + witness: runtime_types::pallet_assets::types::DestroyWitness, }, - external_propose_default { - proposal_hash: ::subxt::sp_core::H256, + mint { + #[codec(compact)] + id: u32, + beneficiary: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + #[codec(compact)] + amount: u64, }, - fast_track { - proposal_hash: ::subxt::sp_core::H256, - voting_period: u32, - delay: u32, + burn { + #[codec(compact)] + id: u32, + who: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + #[codec(compact)] + amount: u64, }, - veto_external { - proposal_hash: ::subxt::sp_core::H256, + transfer { + #[codec(compact)] + id: u32, + target: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + #[codec(compact)] + amount: u64, }, - cancel_referendum { + transfer_keep_alive { #[codec(compact)] - ref_index: u32, + id: u32, + target: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + #[codec(compact)] + amount: u64, }, - cancel_queued { - which: u32, + force_transfer { + #[codec(compact)] + id: u32, + source: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + dest: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + #[codec(compact)] + amount: u64, }, - delegate { - to: ::subxt::sp_core::crypto::AccountId32, - conviction: - runtime_types::pallet_democracy::conviction::Conviction, - balance: u128, + freeze { + #[codec(compact)] + id: u32, + who: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, }, - undelegate, - clear_public_proposals, - note_preimage { - encoded_proposal: Vec, + thaw { + #[codec(compact)] + id: u32, + who: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, }, - note_preimage_operational { - encoded_proposal: Vec, + freeze_asset { + #[codec(compact)] + id: u32, }, - note_imminent_preimage { - encoded_proposal: Vec, + thaw_asset { + #[codec(compact)] + id: u32, }, - note_imminent_preimage_operational { - encoded_proposal: Vec, + transfer_ownership { + #[codec(compact)] + id: u32, + owner: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, }, - reap_preimage { - proposal_hash: ::subxt::sp_core::H256, + set_team { #[codec(compact)] - proposal_len_upper_bound: u32, + id: u32, + issuer: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + admin: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + freezer: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, }, - unlock { - target: ::subxt::sp_core::crypto::AccountId32, + set_metadata { + #[codec(compact)] + id: u32, + name: Vec, + symbol: Vec, + decimals: u8, }, - remove_vote { - index: u32, + clear_metadata { + #[codec(compact)] + id: u32, }, - remove_other_vote { - target: ::subxt::sp_core::crypto::AccountId32, - index: u32, + force_set_metadata { + #[codec(compact)] + id: u32, + name: Vec, + symbol: Vec, + decimals: u8, + is_frozen: bool, }, - enact_proposal { - proposal_hash: ::subxt::sp_core::H256, - index: u32, + force_clear_metadata { + #[codec(compact)] + id: u32, }, - blacklist { - proposal_hash: ::subxt::sp_core::H256, - maybe_ref_index: Option, + force_asset_status { + #[codec(compact)] + id: u32, + owner: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + issuer: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + admin: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + freezer: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + #[codec(compact)] + min_balance: u64, + is_sufficient: bool, + is_frozen: bool, }, - cancel_proposal { + approve_transfer { #[codec(compact)] - prop_index: u32, + id: u32, + delegate: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + #[codec(compact)] + amount: u64, + }, + cancel_approval { + #[codec(compact)] + id: u32, + delegate: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + }, + force_cancel_approval { + #[codec(compact)] + id: u32, + owner: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + delegate: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + }, + transfer_approved { + #[codec(compact)] + id: u32, + owner: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + destination: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + #[codec(compact)] + amount: u64, }, } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub enum Error { - ValueLow, - ProposalMissing, - AlreadyCanceled, - DuplicateProposal, - ProposalBlacklisted, - NotSimpleMajority, - InvalidHash, - NoProposal, - AlreadyVetoed, - DuplicatePreimage, - NotImminent, - TooEarly, - Imminent, - PreimageMissing, - ReferendumInvalid, - PreimageInvalid, - NoneWaiting, - NotVoter, + BalanceLow, + BalanceZero, NoPermission, - AlreadyDelegating, - InsufficientFunds, - NotDelegating, - VotesExist, - InstantNotAllowed, - Nonsense, - WrongUpperBound, - MaxVotesReached, - TooManyProposals, - } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + Unknown, + Frozen, + InUse, + BadWitness, + MinBalanceZero, + NoProvider, + BadMetadata, + Unapproved, + WouldDie, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub enum Event { - Proposed(u32, u128), - Tabled(u32, u128, Vec<::subxt::sp_core::crypto::AccountId32>), - ExternalTabled, - Started( + Created( u32, - runtime_types::pallet_democracy::vote_threshold::VoteThreshold, - ), - Passed(u32), - NotPassed(u32), - Cancelled(u32), - Executed(u32, Result<(), runtime_types::sp_runtime::DispatchError>), - Delegated( ::subxt::sp_core::crypto::AccountId32, ::subxt::sp_core::crypto::AccountId32, ), - Undelegated(::subxt::sp_core::crypto::AccountId32), - Vetoed( + Issued(u32, ::subxt::sp_core::crypto::AccountId32, u64), + Transferred( + u32, ::subxt::sp_core::crypto::AccountId32, - ::subxt::sp_core::H256, + ::subxt::sp_core::crypto::AccountId32, + u64, + ), + Burned(u32, ::subxt::sp_core::crypto::AccountId32, u64), + TeamChanged( u32, + ::subxt::sp_core::crypto::AccountId32, + ::subxt::sp_core::crypto::AccountId32, + ::subxt::sp_core::crypto::AccountId32, ), - PreimageNoted( - ::subxt::sp_core::H256, + OwnerChanged(u32, ::subxt::sp_core::crypto::AccountId32), + Frozen(u32, ::subxt::sp_core::crypto::AccountId32), + Thawed(u32, ::subxt::sp_core::crypto::AccountId32), + AssetFrozen(u32), + AssetThawed(u32), + Destroyed(u32), + ForceCreated(u32, ::subxt::sp_core::crypto::AccountId32), + MetadataSet(u32, Vec, Vec, u8, bool), + MetadataCleared(u32), + ApprovedTransfer( + u32, ::subxt::sp_core::crypto::AccountId32, - u128, + ::subxt::sp_core::crypto::AccountId32, + u64, ), - PreimageUsed( - ::subxt::sp_core::H256, + ApprovalCancelled( + u32, + ::subxt::sp_core::crypto::AccountId32, ::subxt::sp_core::crypto::AccountId32, - u128, ), - PreimageInvalid(::subxt::sp_core::H256, u32), - PreimageMissing(::subxt::sp_core::H256, u32), - PreimageReaped( - ::subxt::sp_core::H256, + TransferredApproved( + u32, + ::subxt::sp_core::crypto::AccountId32, ::subxt::sp_core::crypto::AccountId32, - u128, ::subxt::sp_core::crypto::AccountId32, + u64, ), - Blacklisted(::subxt::sp_core::H256), + AssetStatusChanged(u32), } } pub mod types { use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct Delegations<_0> { - pub votes: _0, - pub capital: _0, - } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum ReferendumInfo<_0, _1, _2> { - Ongoing( - runtime_types::pallet_democracy::types::ReferendumStatus< - _0, - _1, - _2, - >, - ), - Finished { - approved: bool, - end: _0, - }, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Approval<_0, _1> { + pub amount: _0, + pub deposit: _1, } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct ReferendumStatus<_0, _1, _2> { - pub end: _0, - pub proposal_hash: _1, - pub threshold: - runtime_types::pallet_democracy::vote_threshold::VoteThreshold, - pub delay: _0, - pub tally: runtime_types::pallet_democracy::types::Tally<_2>, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct AssetBalance<_0, _1> { + pub balance: _0, + pub is_frozen: bool, + pub sufficient: bool, + pub extra: _1, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct AssetDetails<_0, _1, _2> { + pub owner: _1, + pub issuer: _1, + pub admin: _1, + pub freezer: _1, + pub supply: _0, + pub deposit: _2, + pub min_balance: _0, + pub is_sufficient: bool, + pub accounts: u32, + pub sufficients: u32, + pub approvals: u32, + pub is_frozen: bool, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct AssetMetadata<_0, _1> { + pub deposit: _0, + pub name: _1, + pub symbol: _1, + pub decimals: u8, + pub is_frozen: bool, } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct Tally<_0> { - pub ayes: _0, - pub nays: _0, - pub turnout: _0, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct DestroyWitness { + #[codec(compact)] + pub accounts: u32, + #[codec(compact)] + pub sufficients: u32, + #[codec(compact)] + pub approvals: u32, } } - pub mod vote { + } + pub mod pallet_authorship { + use super::runtime_types; + pub mod pallet { use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum AccountVote<_0> { - Standard { - vote: runtime_types::pallet_democracy::vote::Vote, - balance: _0, - }, - Split { - aye: _0, - nay: _0, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Call { + set_uncles { + new_uncles: Vec< + runtime_types::sp_runtime::generic::header::Header< + u32, + runtime_types::sp_runtime::traits::BlakeTwo256, + >, + >, }, } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct PriorLock<_0, _1>(pub _0, pub _1); - #[derive( - Debug, - Eq, - PartialEq, - :: codec :: Encode, - :: codec :: Decode, - :: codec :: CompactAs, - )] - pub struct Vote(u8); - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Voting<_0, _1, _2> { - Direct { - votes: Vec<( - _2, - runtime_types::pallet_democracy::vote::AccountVote<_0>, - )>, - delegations: - runtime_types::pallet_democracy::types::Delegations<_0>, - prior: runtime_types::pallet_democracy::vote::PriorLock<_2, _0>, - }, - Delegating { - balance: _0, - target: _1, - conviction: - runtime_types::pallet_democracy::conviction::Conviction, - delegations: - runtime_types::pallet_democracy::types::Delegations<_0>, - prior: runtime_types::pallet_democracy::vote::PriorLock<_2, _0>, - }, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Error { + InvalidUncleParent, + UnclesAlreadySet, + TooManyUncles, + GenesisUncle, + TooHighUncle, + UncleAlreadyIncluded, + OldUncle, } } - pub mod vote_threshold { + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum UncleEntryItem<_0, _1, _2> { + InclusionHeight(_0), + Uncle(_1, Option<_2>), + } + } + pub mod pallet_babe { + use super::runtime_types; + pub mod pallet { use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum VoteThreshold { - SuperMajorityApprove, - SuperMajorityAgainst, - SimpleMajority, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Call { + report_equivocation { equivocation_proof : std :: boxed :: Box < runtime_types :: sp_consensus_slots :: EquivocationProof < runtime_types :: sp_runtime :: generic :: header :: Header < u32 , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > , runtime_types :: sp_consensus_babe :: app :: Public > > , key_owner_proof : runtime_types :: sp_session :: MembershipProof , } , report_equivocation_unsigned { equivocation_proof : std :: boxed :: Box < runtime_types :: sp_consensus_slots :: EquivocationProof < runtime_types :: sp_runtime :: generic :: header :: Header < u32 , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > , runtime_types :: sp_consensus_babe :: app :: Public > > , key_owner_proof : runtime_types :: sp_session :: MembershipProof , } , plan_config_change { config : runtime_types :: sp_consensus_babe :: digests :: NextConfigDescriptor , } , } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Error { + InvalidEquivocationProof, + InvalidKeyOwnershipProof, + DuplicateOffenceReport, } } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub enum PreimageStatus<_0, _1, _2> { - Missing(_2), - Available { - data: Vec, - provider: _0, - deposit: _1, - since: _2, - expiry: Option<_2>, - }, - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub enum Releases { - V1, - } } - pub mod pallet_election_provider_multi_phase { + pub mod pallet_bags_list { use super::runtime_types; + pub mod list { + use super::runtime_types; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Bag { + pub head: Option<::subxt::sp_core::crypto::AccountId32>, + pub tail: Option<::subxt::sp_core::crypto::AccountId32>, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Node { + pub id: ::subxt::sp_core::crypto::AccountId32, + pub prev: Option<::subxt::sp_core::crypto::AccountId32>, + pub next: Option<::subxt::sp_core::crypto::AccountId32>, + pub bag_upper: u64, + } + } pub mod pallet { use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub enum Call { - submit_unsigned { raw_solution : std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: polkadot_runtime :: NposCompactSolution16 > > , witness : runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize , } , set_minimum_untrusted_score { maybe_next_score : Option < [u128 ; 3usize] > , } , set_emergency_election_result { supports : Vec < (:: subxt :: sp_core :: crypto :: AccountId32 , runtime_types :: sp_npos_elections :: Support < :: subxt :: sp_core :: crypto :: AccountId32 > ,) > , } , submit { raw_solution : std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: polkadot_runtime :: NposCompactSolution16 > > , num_signed_submissions : u32 , } , } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Error { - PreDispatchEarlySubmission, - PreDispatchWrongWinnerCount, - PreDispatchWeakSubmission, - SignedQueueFull, - SignedCannotPayDeposit, - SignedInvalidWitness, - SignedTooMuchWeight, - OcwCallWrongEra, - MissingSnapshotMetadata, - InvalidSubmissionIndex, - CallNotAllowed, + rebag { + dislocated: ::subxt::sp_core::crypto::AccountId32, + }, } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub enum Event { - SolutionStored (runtime_types :: pallet_election_provider_multi_phase :: ElectionCompute , bool ,) , ElectionFinalized (Option < runtime_types :: pallet_election_provider_multi_phase :: ElectionCompute > ,) , Rewarded (:: subxt :: sp_core :: crypto :: AccountId32 , u128 ,) , Slashed (:: subxt :: sp_core :: crypto :: AccountId32 , u128 ,) , SignedPhaseStarted (u32 ,) , UnsignedPhaseStarted (u32 ,) , } - } - pub mod signed { - use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct SignedSubmission<_0, _1, _2> { - pub who: _0, - pub deposit: _1, - pub raw_solution: - runtime_types::pallet_election_provider_multi_phase::RawSolution< - _2, - >, - pub reward: _1, + Rebagged(::subxt::sp_core::crypto::AccountId32, u64, u64), } } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub enum ElectionCompute { - OnChain, - Signed, - Unsigned, - Fallback, - Emergency, - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub enum Phase<_0> { - Off, - Signed, - Unsigned((bool, _0)), - Emergency, - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct RawSolution<_0> { - pub solution: _0, - pub score: [u128; 3usize], - pub round: u32, - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ReadySolution<_0> { - pub supports: Vec<(_0, runtime_types::sp_npos_elections::Support<_0>)>, - pub score: [u128; 3usize], - pub compute: - runtime_types::pallet_election_provider_multi_phase::ElectionCompute, - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct RoundSnapshot<_0> { - pub voters: Vec<(_0, u64, Vec<_0>)>, - pub targets: Vec<_0>, - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SolutionOrSnapshotSize { - #[codec(compact)] - pub voters: u32, - #[codec(compact)] - pub targets: u32, - } } - pub mod pallet_elections_phragmen { + pub mod pallet_balances { use super::runtime_types; pub mod pallet { use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub enum Call { - vote { - votes: Vec<::subxt::sp_core::crypto::AccountId32>, + transfer { + dest: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, #[codec(compact)] value: u128, }, - remove_voter, - submit_candidacy { + set_balance { + who: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, #[codec(compact)] - candidate_count: u32, + new_free: u128, + #[codec(compact)] + new_reserved: u128, }, - renounce_candidacy { - renouncing: runtime_types::pallet_elections_phragmen::Renouncing, + force_transfer { + source: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + dest: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + #[codec(compact)] + value: u128, }, - remove_member { - who: ::subxt::sp_runtime::MultiAddress< + transfer_keep_alive { + dest: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, - (), + u32, >, - has_replacement: bool, + #[codec(compact)] + value: u128, }, - clean_defunct_voters { - num_voters: u32, - num_defunct: u32, + transfer_all { + dest: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + keep_alive: bool, + }, + force_unreserve { + who: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + amount: u128, }, } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub enum Error { - UnableToVote, - NoVotes, - TooManyVotes, - MaximumVotesExceeded, - LowBalance, - UnableToPayBond, - MustBeVoter, - ReportSelf, - DuplicatedCandidate, - MemberSubmit, - RunnerUpSubmit, - InsufficientCandidateFunds, - NotMember, - InvalidWitnessData, - InvalidVoteCount, - InvalidRenouncing, - InvalidReplacement, + VestingBalance, + LiquidityRestrictions, + InsufficientBalance, + ExistentialDeposit, + KeepAlive, + ExistingVestingSchedule, + DeadAccount, + TooManyReserves, } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub enum Event { - NewTerm(Vec<(::subxt::sp_core::crypto::AccountId32, u128)>), - EmptyTerm, - ElectionError, - MemberKicked(::subxt::sp_core::crypto::AccountId32), - Renounced(::subxt::sp_core::crypto::AccountId32), - CandidateSlashed(::subxt::sp_core::crypto::AccountId32, u128), - SeatHolderSlashed(::subxt::sp_core::crypto::AccountId32, u128), + Endowed(::subxt::sp_core::crypto::AccountId32, u128), + DustLost(::subxt::sp_core::crypto::AccountId32, u128), + Transfer( + ::subxt::sp_core::crypto::AccountId32, + ::subxt::sp_core::crypto::AccountId32, + u128, + ), + BalanceSet(::subxt::sp_core::crypto::AccountId32, u128, u128), + Reserved(::subxt::sp_core::crypto::AccountId32, u128), + Unreserved(::subxt::sp_core::crypto::AccountId32, u128), + ReserveRepatriated( + ::subxt::sp_core::crypto::AccountId32, + ::subxt::sp_core::crypto::AccountId32, + u128, + runtime_types::frame_support::traits::tokens::misc::BalanceStatus, + ), + Deposit(::subxt::sp_core::crypto::AccountId32, u128), + Withdraw(::subxt::sp_core::crypto::AccountId32, u128), + Slashed(::subxt::sp_core::crypto::AccountId32, u128), } } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub enum Renouncing { - Member, - RunnerUp, - Candidate(u32), + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct AccountData<_0> { + pub free: _0, + pub reserved: _0, + pub misc_frozen: _0, + pub fee_frozen: _0, } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SeatHolder<_0, _1> { - pub who: _0, - pub stake: _1, - pub deposit: _1, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct BalanceLock<_0> { + pub id: [u8; 8usize], + pub amount: _0, + pub reasons: runtime_types::pallet_balances::Reasons, } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Voter<_0, _1> { - pub votes: Vec<_0>, - pub stake: _1, - pub deposit: _1, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Reasons { + Fee, + Misc, + All, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Releases { + V1_0_0, + V2_0_0, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ReserveData<_0, _1> { + pub id: _0, + pub amount: _1, } } - pub mod pallet_grandpa { + pub mod pallet_bounties { use super::runtime_types; pub mod pallet { use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub enum Call { - report_equivocation { - equivocation_proof: std::boxed::Box< - runtime_types::sp_finality_grandpa::EquivocationProof< - ::subxt::sp_core::H256, - u32, - >, - >, - key_owner_proof: runtime_types::sp_session::MembershipProof, + propose_bounty { + #[codec(compact)] + value: u128, + description: Vec, }, - report_equivocation_unsigned { - equivocation_proof: std::boxed::Box< - runtime_types::sp_finality_grandpa::EquivocationProof< - ::subxt::sp_core::H256, - u32, - >, + approve_bounty { + #[codec(compact)] + bounty_id: u32, + }, + propose_curator { + #[codec(compact)] + bounty_id: u32, + curator: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, >, - key_owner_proof: runtime_types::sp_session::MembershipProof, + #[codec(compact)] + fee: u128, }, - note_stalled { - delay: u32, - best_finalized_block_number: u32, + unassign_curator { + #[codec(compact)] + bounty_id: u32, + }, + accept_curator { + #[codec(compact)] + bounty_id: u32, + }, + award_bounty { + #[codec(compact)] + bounty_id: u32, + beneficiary: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + }, + claim_bounty { + #[codec(compact)] + bounty_id: u32, + }, + close_bounty { + #[codec(compact)] + bounty_id: u32, + }, + extend_bounty_expiry { + #[codec(compact)] + bounty_id: u32, + remark: Vec, }, } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Error { - PauseFailed, - ResumeFailed, - ChangePending, - TooSoon, - InvalidKeyOwnershipProof, - InvalidEquivocationProof, - DuplicateOffenceReport, - } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Error { + InsufficientProposersBalance, + InvalidIndex, + ReasonTooBig, + UnexpectedStatus, + RequireCurator, + InvalidValue, + InvalidFee, + PendingPayout, + Premature, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub enum Event { - NewAuthorities( - Vec<(runtime_types::sp_finality_grandpa::app::Public, u64)>, - ), - Paused, - Resumed, + BountyProposed(u32), + BountyRejected(u32, u128), + BountyBecameActive(u32), + BountyAwarded(u32, ::subxt::sp_core::crypto::AccountId32), + BountyClaimed(u32, u128, ::subxt::sp_core::crypto::AccountId32), + BountyCanceled(u32), + BountyExtended(u32), } } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct StoredPendingChange < _0 > { pub scheduled_at : _0 , pub delay : _0 , pub next_authorities : runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < (runtime_types :: sp_finality_grandpa :: app :: Public , u64 ,) > , pub forced : Option < _0 > , } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub enum StoredState<_0> { - Live, - PendingPause { scheduled_at: _0, delay: _0 }, - Paused, - PendingResume { scheduled_at: _0, delay: _0 }, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Bounty<_0, _1, _2> { + pub proposer: _0, + pub value: _1, + pub fee: _1, + pub curator_deposit: _1, + pub bond: _1, + pub status: runtime_types::pallet_bounties::BountyStatus<_0, _2>, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum BountyStatus<_0, _1> { + Proposed, + Approved, + Funded, + CuratorProposed { + curator: _0, + }, + Active { + curator: _0, + update_due: _1, + }, + PendingPayout { + curator: _0, + beneficiary: _0, + unlock_at: _1, + }, } } - pub mod pallet_identity { + pub mod pallet_collective { use super::runtime_types; pub mod pallet { use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub enum Call { - add_registrar { - account: ::subxt::sp_core::crypto::AccountId32, - }, - set_identity { - info: std::boxed::Box< - runtime_types::pallet_identity::types::IdentityInfo, - >, - }, - set_subs { - subs: Vec<( - ::subxt::sp_core::crypto::AccountId32, - runtime_types::pallet_identity::types::Data, - )>, + set_members { + new_members: Vec<::subxt::sp_core::crypto::AccountId32>, + prime: Option<::subxt::sp_core::crypto::AccountId32>, + old_count: u32, }, - clear_identity, - request_judgement { - #[codec(compact)] - reg_index: u32, + execute { + proposal: std::boxed::Box, #[codec(compact)] - max_fee: u128, - }, - cancel_request { - reg_index: u32, + length_bound: u32, }, - set_fee { + propose { #[codec(compact)] - index: u32, + threshold: u32, + proposal: std::boxed::Box, #[codec(compact)] - fee: u128, + length_bound: u32, }, - set_account_id { + vote { + proposal: ::subxt::sp_core::H256, #[codec(compact)] index: u32, - new: ::subxt::sp_core::crypto::AccountId32, + approve: bool, }, - set_fields { + close { + proposal_hash: ::subxt::sp_core::H256, #[codec(compact)] index: u32, - fields: runtime_types::pallet_identity::types::BitFlags< - runtime_types::pallet_identity::types::IdentityField, - >, - }, - provide_judgement { #[codec(compact)] - reg_index: u32, - target: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - judgement: runtime_types::pallet_identity::types::Judgement, - }, - kill_identity { - target: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - }, - add_sub { - sub: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - data: runtime_types::pallet_identity::types::Data, - }, - rename_sub { - sub: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - data: runtime_types::pallet_identity::types::Data, + proposal_weight_bound: u64, + #[codec(compact)] + length_bound: u32, }, - remove_sub { - sub: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, + disapprove_proposal { + proposal_hash: ::subxt::sp_core::H256, }, - quit_sub, } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub enum Error { - TooManySubAccounts, - NotFound, - NotNamed, - EmptyIndex, - FeeChanged, - NoIdentity, - StickyJudgement, - JudgementGiven, - InvalidJudgement, - InvalidIndex, - InvalidTarget, - TooManyFields, - TooManyRegistrars, - AlreadyClaimed, - NotSub, - NotOwned, + NotMember, + DuplicateProposal, + ProposalMissing, + WrongIndex, + DuplicateVote, + AlreadyInitialized, + TooEarly, + TooManyProposals, + WrongProposalWeight, + WrongProposalLength, } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub enum Event { - IdentitySet(::subxt::sp_core::crypto::AccountId32), - IdentityCleared(::subxt::sp_core::crypto::AccountId32, u128), - IdentityKilled(::subxt::sp_core::crypto::AccountId32, u128), - JudgementRequested(::subxt::sp_core::crypto::AccountId32, u32), - JudgementUnrequested(::subxt::sp_core::crypto::AccountId32, u32), - JudgementGiven(::subxt::sp_core::crypto::AccountId32, u32), - RegistrarAdded(u32), - SubIdentityAdded( - ::subxt::sp_core::crypto::AccountId32, + Proposed( ::subxt::sp_core::crypto::AccountId32, - u128, + u32, + ::subxt::sp_core::H256, + u32, ), - SubIdentityRemoved( - ::subxt::sp_core::crypto::AccountId32, + Voted( ::subxt::sp_core::crypto::AccountId32, - u128, + ::subxt::sp_core::H256, + bool, + u32, + u32, ), - SubIdentityRevoked( - ::subxt::sp_core::crypto::AccountId32, - ::subxt::sp_core::crypto::AccountId32, - u128, + Approved(::subxt::sp_core::H256), + Disapproved(::subxt::sp_core::H256), + Executed( + ::subxt::sp_core::H256, + Result<(), runtime_types::sp_runtime::DispatchError>, + ), + MemberExecuted( + ::subxt::sp_core::H256, + Result<(), runtime_types::sp_runtime::DispatchError>, ), + Closed(::subxt::sp_core::H256, u32, u32), } } - pub mod types { + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum RawOrigin<_0> { + Members(u32, u32), + Member(_0), + _Phantom, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Votes<_0, _1> { + pub index: _1, + pub threshold: _1, + pub ayes: Vec<_0>, + pub nays: Vec<_0>, + pub end: _1, + } + } + pub mod pallet_contracts { + use super::runtime_types; + pub mod pallet { use super::runtime_types; - #[derive( - Debug, - Eq, - PartialEq, - :: codec :: Encode, - :: codec :: Decode, - :: codec :: CompactAs, - )] - pub struct BitFlags<_0>( - pub u64, - #[codec(skip)] pub ::core::marker::PhantomData<_0>, - ); - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Data { - None, - Raw0([u8; 0usize]), - Raw1([u8; 1usize]), - Raw2([u8; 2usize]), - Raw3([u8; 3usize]), - Raw4([u8; 4usize]), - Raw5([u8; 5usize]), - Raw6([u8; 6usize]), - Raw7([u8; 7usize]), - Raw8([u8; 8usize]), - Raw9([u8; 9usize]), - Raw10([u8; 10usize]), - Raw11([u8; 11usize]), - Raw12([u8; 12usize]), - Raw13([u8; 13usize]), - Raw14([u8; 14usize]), - Raw15([u8; 15usize]), - Raw16([u8; 16usize]), - Raw17([u8; 17usize]), - Raw18([u8; 18usize]), - Raw19([u8; 19usize]), - Raw20([u8; 20usize]), - Raw21([u8; 21usize]), - Raw22([u8; 22usize]), - Raw23([u8; 23usize]), - Raw24([u8; 24usize]), - Raw25([u8; 25usize]), - Raw26([u8; 26usize]), - Raw27([u8; 27usize]), - Raw28([u8; 28usize]), - Raw29([u8; 29usize]), - Raw30([u8; 30usize]), - Raw31([u8; 31usize]), - Raw32([u8; 32usize]), - BlakeTwo256([u8; 32usize]), - Sha256([u8; 32usize]), - Keccak256([u8; 32usize]), - ShaThree256([u8; 32usize]), - } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum IdentityField { - Display, - Legal, - Web, - Riot, - Email, - PgpFingerprint, - Image, - Twitter, - } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct IdentityInfo { - pub additional: - runtime_types::frame_support::storage::bounded_vec::BoundedVec<( - runtime_types::pallet_identity::types::Data, - runtime_types::pallet_identity::types::Data, - )>, - pub display: runtime_types::pallet_identity::types::Data, - pub legal: runtime_types::pallet_identity::types::Data, - pub web: runtime_types::pallet_identity::types::Data, - pub riot: runtime_types::pallet_identity::types::Data, - pub email: runtime_types::pallet_identity::types::Data, - pub pgp_fingerprint: Option<[u8; 20usize]>, - pub image: runtime_types::pallet_identity::types::Data, - pub twitter: runtime_types::pallet_identity::types::Data, - } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Judgement<_0> { - Unknown, - FeePaid(_0), - Reasonable, - KnownGood, - OutOfDate, - LowQuality, - Erroneous, - } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct RegistrarInfo<_0, _1> { - pub account: _1, - pub fee: _0, - pub fields: runtime_types::pallet_identity::types::BitFlags< - runtime_types::pallet_identity::types::IdentityField, - >, - } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct Registration<_0> { - pub judgements: - runtime_types::frame_support::storage::bounded_vec::BoundedVec<( + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Call { + call { + dest: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, u32, - runtime_types::pallet_identity::types::Judgement<_0>, - )>, - pub deposit: _0, - pub info: runtime_types::pallet_identity::types::IdentityInfo, + >, + #[codec(compact)] + value: u128, + #[codec(compact)] + gas_limit: u64, + data: Vec, + }, + instantiate_with_code { + #[codec(compact)] + endowment: u128, + #[codec(compact)] + gas_limit: u64, + code: Vec, + data: Vec, + salt: Vec, + }, + instantiate { + #[codec(compact)] + endowment: u128, + #[codec(compact)] + gas_limit: u64, + code_hash: ::subxt::sp_core::H256, + data: Vec, + salt: Vec, + }, } - } - } - pub mod pallet_im_online { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Call { - heartbeat { heartbeat : runtime_types :: pallet_im_online :: Heartbeat < u32 > , signature : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Signature , } , } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub enum Error { - InvalidKey, - DuplicatedHeartbeat, - } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + InvalidScheduleVersion, + OutOfGas, + OutputBufferTooSmall, + BelowSubsistenceThreshold, + NewContractNotFunded, + TransferFailed, + MaxCallDepthReached, + ContractNotFound, + CodeTooLarge, + CodeNotFound, + OutOfBounds, + DecodingFailed, + ContractTrapped, + ValueTooLarge, + TerminatedWhileReentrant, + InputForwarded, + RandomSubjectTooLong, + TooManyTopics, + DuplicateTopics, + NoChainExtension, + DeletionQueueFull, + StorageExhausted, + DuplicateContract, + TerminatedInConstructor, + DebugMessageInvalidUTF8, + ReentranceDenied, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub enum Event { - HeartbeatReceived( - runtime_types::pallet_im_online::sr25519::app_sr25519::Public, - ), - AllGood, - SomeOffline( - Vec<( - ::subxt::sp_core::crypto::AccountId32, - runtime_types::pallet_staking::Exposure< - ::subxt::sp_core::crypto::AccountId32, - u128, - >, - )>, - ), + Instantiated { + deployer: ::subxt::sp_core::crypto::AccountId32, + contract: ::subxt::sp_core::crypto::AccountId32, + }, + Terminated { + contract: ::subxt::sp_core::crypto::AccountId32, + beneficiary: ::subxt::sp_core::crypto::AccountId32, + }, + CodeStored { + code_hash: ::subxt::sp_core::H256, + }, + ScheduleUpdated { + version: u32, + }, + ContractEmitted { + contract: ::subxt::sp_core::crypto::AccountId32, + data: Vec, + }, + CodeRemoved { + code_hash: ::subxt::sp_core::H256, + }, } } - pub mod sr25519 { + pub mod schedule { use super::runtime_types; - pub mod app_sr25519 { - use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct Public(pub runtime_types::sp_core::sr25519::Public); - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct Signature(pub runtime_types::sp_core::sr25519::Signature); + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct HostFnWeights { + pub caller: u64, + pub address: u64, + pub gas_left: u64, + pub balance: u64, + pub value_transferred: u64, + pub minimum_balance: u64, + pub contract_deposit: u64, + pub block_number: u64, + pub now: u64, + pub weight_to_fee: u64, + pub gas: u64, + pub input: u64, + pub input_per_byte: u64, + pub r#return: u64, + pub return_per_byte: u64, + pub terminate: u64, + pub random: u64, + pub deposit_event: u64, + pub deposit_event_per_topic: u64, + pub deposit_event_per_byte: u64, + pub debug_message: u64, + pub set_storage: u64, + pub set_storage_per_byte: u64, + pub clear_storage: u64, + pub get_storage: u64, + pub get_storage_per_byte: u64, + pub transfer: u64, + pub call: u64, + pub call_transfer_surcharge: u64, + pub call_per_input_byte: u64, + pub call_per_output_byte: u64, + pub instantiate: u64, + pub instantiate_per_input_byte: u64, + pub instantiate_per_output_byte: u64, + pub instantiate_per_salt_byte: u64, + pub hash_sha2_256: u64, + pub hash_sha2_256_per_byte: u64, + pub hash_keccak_256: u64, + pub hash_keccak_256_per_byte: u64, + pub hash_blake2_256: u64, + pub hash_blake2_256_per_byte: u64, + pub hash_blake2_128: u64, + pub hash_blake2_128_per_byte: u64, + pub ecdsa_recover: u64, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct InstructionWeights { + pub version: u32, + pub i64const: u32, + pub i64load: u32, + pub i64store: u32, + pub select: u32, + pub r#if: u32, + pub br: u32, + pub br_if: u32, + pub br_table: u32, + pub br_table_per_entry: u32, + pub call: u32, + pub call_indirect: u32, + pub call_indirect_per_param: u32, + pub local_get: u32, + pub local_set: u32, + pub local_tee: u32, + pub global_get: u32, + pub global_set: u32, + pub memory_current: u32, + pub memory_grow: u32, + pub i64clz: u32, + pub i64ctz: u32, + pub i64popcnt: u32, + pub i64eqz: u32, + pub i64extendsi32: u32, + pub i64extendui32: u32, + pub i32wrapi64: u32, + pub i64eq: u32, + pub i64ne: u32, + pub i64lts: u32, + pub i64ltu: u32, + pub i64gts: u32, + pub i64gtu: u32, + pub i64les: u32, + pub i64leu: u32, + pub i64ges: u32, + pub i64geu: u32, + pub i64add: u32, + pub i64sub: u32, + pub i64mul: u32, + pub i64divs: u32, + pub i64divu: u32, + pub i64rems: u32, + pub i64remu: u32, + pub i64and: u32, + pub i64or: u32, + pub i64xor: u32, + pub i64shl: u32, + pub i64shrs: u32, + pub i64shru: u32, + pub i64rotl: u32, + pub i64rotr: u32, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Limits { + pub event_topics: u32, + pub stack_height: u32, + pub globals: u32, + pub parameters: u32, + pub memory_pages: u32, + pub table_size: u32, + pub br_table_size: u32, + pub subject_len: u32, + pub call_depth: u32, + pub payload_len: u32, + pub code_len: u32, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Schedule { + pub limits: runtime_types::pallet_contracts::schedule::Limits, + pub instruction_weights: + runtime_types::pallet_contracts::schedule::InstructionWeights, + pub host_fn_weights: + runtime_types::pallet_contracts::schedule::HostFnWeights, } } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct BoundedOpaqueNetworkState { pub peer_id : runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < u8 > , pub external_addresses : runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < u8 > > , } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Heartbeat<_0> { - pub block_number: _0, - pub network_state: runtime_types::sp_core::offchain::OpaqueNetworkState, - pub session_index: _0, - pub authority_index: _0, - pub validators_len: _0, - } - } - pub mod pallet_indices { - use super::runtime_types; - pub mod pallet { + pub mod storage { use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Call { - claim { - index: u32, - }, - transfer { - new: ::subxt::sp_core::crypto::AccountId32, - index: u32, - }, - free { - index: u32, - }, - force_transfer { - new: ::subxt::sp_core::crypto::AccountId32, - index: u32, - freeze: bool, - }, - freeze { - index: u32, - }, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct DeletedContract { + pub trie_id: Vec, } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Error { - NotAssigned, - NotOwner, - InUse, - NotTransfer, - Permanent, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct RawContractInfo<_0> { + pub trie_id: Vec, + pub code_hash: _0, + pub _reserved: Option<()>, } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Event { - IndexAssigned(::subxt::sp_core::crypto::AccountId32, u32), - IndexFreed(u32), - IndexFrozen(u32, ::subxt::sp_core::crypto::AccountId32), + } + pub mod wasm { + use super::runtime_types; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct PrefabWasmModule { + #[codec(compact)] + pub instruction_weights_version: u32, + #[codec(compact)] + pub initial: u32, + #[codec(compact)] + pub maximum: u32, + #[codec(compact)] + pub refcount: u64, + pub _reserved: Option<()>, + pub code: Vec, + pub original_code_len: u32, } } } - pub mod pallet_membership { + pub mod pallet_democracy { use super::runtime_types; + pub mod conviction { + use super::runtime_types; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Conviction { + None, + Locked1x, + Locked2x, + Locked3x, + Locked4x, + Locked5x, + Locked6x, + } + } pub mod pallet { use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub enum Call { - add_member { - who: ::subxt::sp_core::crypto::AccountId32, + propose { + proposal_hash: ::subxt::sp_core::H256, + #[codec(compact)] + value: u128, }, - remove_member { - who: ::subxt::sp_core::crypto::AccountId32, + second { + #[codec(compact)] + proposal: u32, + #[codec(compact)] + seconds_upper_bound: u32, }, - swap_member { - remove: ::subxt::sp_core::crypto::AccountId32, - add: ::subxt::sp_core::crypto::AccountId32, + vote { + #[codec(compact)] + ref_index: u32, + vote: runtime_types::pallet_democracy::vote::AccountVote, }, - reset_members { - members: Vec<::subxt::sp_core::crypto::AccountId32>, + emergency_cancel { + ref_index: u32, }, - change_key { - new: ::subxt::sp_core::crypto::AccountId32, + external_propose { + proposal_hash: ::subxt::sp_core::H256, }, - set_prime { - who: ::subxt::sp_core::crypto::AccountId32, + external_propose_majority { + proposal_hash: ::subxt::sp_core::H256, }, - clear_prime, - } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Error { - AlreadyMember, - NotMember, - } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Event { - MemberAdded, - MemberRemoved, - MembersSwapped, - MembersReset, - KeyChanged, - Dummy, - } - } - } - pub mod pallet_multisig { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Call { - as_multi_threshold_1 { - other_signatories: Vec<::subxt::sp_core::crypto::AccountId32>, - call: std::boxed::Box, + external_propose_default { + proposal_hash: ::subxt::sp_core::H256, }, - as_multi { - threshold: u16, - other_signatories: Vec<::subxt::sp_core::crypto::AccountId32>, - maybe_timepoint: - Option>, - call: Vec, - store_call: bool, - max_weight: u64, + fast_track { + proposal_hash: ::subxt::sp_core::H256, + voting_period: u32, + delay: u32, }, - approve_as_multi { - threshold: u16, - other_signatories: Vec<::subxt::sp_core::crypto::AccountId32>, - maybe_timepoint: - Option>, - call_hash: [u8; 32usize], - max_weight: u64, + veto_external { + proposal_hash: ::subxt::sp_core::H256, }, - cancel_as_multi { - threshold: u16, - other_signatories: Vec<::subxt::sp_core::crypto::AccountId32>, - timepoint: runtime_types::pallet_multisig::Timepoint, - call_hash: [u8; 32usize], + cancel_referendum { + #[codec(compact)] + ref_index: u32, + }, + cancel_queued { + which: u32, + }, + delegate { + to: ::subxt::sp_core::crypto::AccountId32, + conviction: + runtime_types::pallet_democracy::conviction::Conviction, + balance: u128, + }, + undelegate, + clear_public_proposals, + note_preimage { + encoded_proposal: Vec, + }, + note_preimage_operational { + encoded_proposal: Vec, + }, + note_imminent_preimage { + encoded_proposal: Vec, + }, + note_imminent_preimage_operational { + encoded_proposal: Vec, + }, + reap_preimage { + proposal_hash: ::subxt::sp_core::H256, + #[codec(compact)] + proposal_len_upper_bound: u32, + }, + unlock { + target: ::subxt::sp_core::crypto::AccountId32, + }, + remove_vote { + index: u32, + }, + remove_other_vote { + target: ::subxt::sp_core::crypto::AccountId32, + index: u32, + }, + enact_proposal { + proposal_hash: ::subxt::sp_core::H256, + index: u32, + }, + blacklist { + proposal_hash: ::subxt::sp_core::H256, + maybe_ref_index: Option, + }, + cancel_proposal { + #[codec(compact)] + prop_index: u32, }, } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub enum Error { - MinimumThreshold, - AlreadyApproved, - NoApprovalsNeeded, - TooFewSignatories, - TooManySignatories, - SignatoriesOutOfOrder, - SenderInSignatories, - NotFound, - NotOwner, - NoTimepoint, - WrongTimepoint, - UnexpectedTimepoint, - MaxWeightTooLow, - AlreadyStored, + ValueLow, + ProposalMissing, + AlreadyCanceled, + DuplicateProposal, + ProposalBlacklisted, + NotSimpleMajority, + InvalidHash, + NoProposal, + AlreadyVetoed, + DuplicatePreimage, + NotImminent, + TooEarly, + Imminent, + PreimageMissing, + ReferendumInvalid, + PreimageInvalid, + NoneWaiting, + NotVoter, + NoPermission, + AlreadyDelegating, + InsufficientFunds, + NotDelegating, + VotesExist, + InstantNotAllowed, + Nonsense, + WrongUpperBound, + MaxVotesReached, + TooManyProposals, } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub enum Event { - NewMultisig( + Proposed(u32, u128), + Tabled(u32, u128, Vec<::subxt::sp_core::crypto::AccountId32>), + ExternalTabled, + Started( + u32, + runtime_types::pallet_democracy::vote_threshold::VoteThreshold, + ), + Passed(u32), + NotPassed(u32), + Cancelled(u32), + Executed(u32, Result<(), runtime_types::sp_runtime::DispatchError>), + Delegated( ::subxt::sp_core::crypto::AccountId32, ::subxt::sp_core::crypto::AccountId32, - [u8; 32usize], ), - MultisigApproval( - ::subxt::sp_core::crypto::AccountId32, - runtime_types::pallet_multisig::Timepoint, + Undelegated(::subxt::sp_core::crypto::AccountId32), + Vetoed( ::subxt::sp_core::crypto::AccountId32, - [u8; 32usize], + ::subxt::sp_core::H256, + u32, ), - MultisigExecuted( + PreimageNoted( + ::subxt::sp_core::H256, ::subxt::sp_core::crypto::AccountId32, - runtime_types::pallet_multisig::Timepoint, + u128, + ), + PreimageUsed( + ::subxt::sp_core::H256, ::subxt::sp_core::crypto::AccountId32, - [u8; 32usize], - Result<(), runtime_types::sp_runtime::DispatchError>, + u128, ), - MultisigCancelled( + PreimageInvalid(::subxt::sp_core::H256, u32), + PreimageMissing(::subxt::sp_core::H256, u32), + PreimageReaped( + ::subxt::sp_core::H256, ::subxt::sp_core::crypto::AccountId32, - runtime_types::pallet_multisig::Timepoint, + u128, ::subxt::sp_core::crypto::AccountId32, - [u8; 32usize], ), + Blacklisted(::subxt::sp_core::H256), } } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Multisig<_0, _1, _2> { - pub when: runtime_types::pallet_multisig::Timepoint<_0>, - pub deposit: _1, - pub depositor: _2, - pub approvals: Vec<_2>, - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Timepoint<_0> { - pub height: _0, - pub index: _0, - } - } - pub mod pallet_offences { - use super::runtime_types; - pub mod pallet { + pub mod types { use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Event { - Offence([u8; 16usize], Vec), + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Delegations<_0> { + pub votes: _0, + pub capital: _0, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum ReferendumInfo<_0, _1, _2> { + Ongoing( + runtime_types::pallet_democracy::types::ReferendumStatus< + _0, + _1, + _2, + >, + ), + Finished { + approved: bool, + end: _0, + }, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ReferendumStatus<_0, _1, _2> { + pub end: _0, + pub proposal_hash: _1, + pub threshold: + runtime_types::pallet_democracy::vote_threshold::VoteThreshold, + pub delay: _0, + pub tally: runtime_types::pallet_democracy::types::Tally<_2>, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Tally<_0> { + pub ayes: _0, + pub nays: _0, + pub turnout: _0, } } - } - pub mod pallet_proxy { - use super::runtime_types; - pub mod pallet { + pub mod vote { use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Call { - proxy { - real: ::subxt::sp_core::crypto::AccountId32, - force_proxy_type: - Option, - call: std::boxed::Box, - }, - add_proxy { - delegate: ::subxt::sp_core::crypto::AccountId32, - proxy_type: runtime_types::polkadot_runtime::ProxyType, - delay: u32, - }, - remove_proxy { - delegate: ::subxt::sp_core::crypto::AccountId32, - proxy_type: runtime_types::polkadot_runtime::ProxyType, - delay: u32, - }, - remove_proxies, - anonymous { - proxy_type: runtime_types::polkadot_runtime::ProxyType, - delay: u32, - index: u16, - }, - kill_anonymous { - spawner: ::subxt::sp_core::crypto::AccountId32, - proxy_type: runtime_types::polkadot_runtime::ProxyType, - index: u16, - #[codec(compact)] - height: u32, - #[codec(compact)] - ext_index: u32, - }, - announce { - real: ::subxt::sp_core::crypto::AccountId32, - call_hash: ::subxt::sp_core::H256, - }, - remove_announcement { - real: ::subxt::sp_core::crypto::AccountId32, - call_hash: ::subxt::sp_core::H256, - }, - reject_announcement { - delegate: ::subxt::sp_core::crypto::AccountId32, - call_hash: ::subxt::sp_core::H256, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum AccountVote<_0> { + Standard { + vote: runtime_types::pallet_democracy::vote::Vote, + balance: _0, }, - proxy_announced { - delegate: ::subxt::sp_core::crypto::AccountId32, - real: ::subxt::sp_core::crypto::AccountId32, - force_proxy_type: - Option, - call: std::boxed::Box, + Split { + aye: _0, + nay: _0, }, } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct PriorLock<_0, _1>(pub _0, pub _1); #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, + :: codec :: CompactAs, + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, )] - pub enum Error { - TooMany, - NotFound, - NotProxy, - Unproxyable, - Duplicate, - NoPermission, - Unannounced, - NoSelfProxy, + pub struct Vote(u8); + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Voting<_0, _1, _2> { + Direct { + votes: Vec<( + _2, + runtime_types::pallet_democracy::vote::AccountVote<_0>, + )>, + delegations: + runtime_types::pallet_democracy::types::Delegations<_0>, + prior: runtime_types::pallet_democracy::vote::PriorLock<_2, _0>, + }, + Delegating { + balance: _0, + target: _1, + conviction: + runtime_types::pallet_democracy::conviction::Conviction, + delegations: + runtime_types::pallet_democracy::types::Delegations<_0>, + prior: runtime_types::pallet_democracy::vote::PriorLock<_2, _0>, + }, } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Event { - ProxyExecuted(Result<(), runtime_types::sp_runtime::DispatchError>), - AnonymousCreated( - ::subxt::sp_core::crypto::AccountId32, - ::subxt::sp_core::crypto::AccountId32, - runtime_types::polkadot_runtime::ProxyType, - u16, - ), - Announced( - ::subxt::sp_core::crypto::AccountId32, - ::subxt::sp_core::crypto::AccountId32, - ::subxt::sp_core::H256, - ), - ProxyAdded( - ::subxt::sp_core::crypto::AccountId32, - ::subxt::sp_core::crypto::AccountId32, - runtime_types::polkadot_runtime::ProxyType, - u32, - ), + } + pub mod vote_threshold { + use super::runtime_types; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum VoteThreshold { + SuperMajorityApprove, + SuperMajorityAgainst, + SimpleMajority, } } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Announcement<_0, _1, _2> { - pub real: _0, - pub call_hash: _1, - pub height: _2, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum PreimageStatus<_0, _1, _2> { + Missing(_2), + Available { + data: Vec, + provider: _0, + deposit: _1, + since: _2, + expiry: Option<_2>, + }, } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ProxyDefinition<_0, _1, _2> { - pub delegate: _0, - pub proxy_type: _1, - pub delay: _2, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Releases { + V1, } } - pub mod pallet_scheduler { + pub mod pallet_election_provider_multi_phase { use super::runtime_types; pub mod pallet { use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub enum Call { - schedule { - when: u32, - maybe_periodic: Option<(u32, u32)>, - priority: u8, - call: std::boxed::Box, - }, - cancel { - when: u32, - index: u32, - }, - schedule_named { - id: Vec, - when: u32, - maybe_periodic: Option<(u32, u32)>, - priority: u8, - call: std::boxed::Box, - }, - cancel_named { - id: Vec, - }, - schedule_after { - after: u32, - maybe_periodic: Option<(u32, u32)>, - priority: u8, - call: std::boxed::Box, - }, - schedule_named_after { - id: Vec, - after: u32, - maybe_periodic: Option<(u32, u32)>, - priority: u8, - call: std::boxed::Box, - }, - } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + submit_unsigned { raw_solution : std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: node_runtime :: NposSolution16 > > , witness : runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize , } , set_minimum_untrusted_score { maybe_next_score : Option < [u128 ; 3usize] > , } , set_emergency_election_result { supports : Vec < (:: subxt :: sp_core :: crypto :: AccountId32 , runtime_types :: sp_npos_elections :: Support < :: subxt :: sp_core :: crypto :: AccountId32 > ,) > , } , submit { raw_solution : std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: node_runtime :: NposSolution16 > > , num_signed_submissions : u32 , } , } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub enum Error { - FailedToSchedule, - NotFound, - TargetBlockNumberInPast, - RescheduleNoChange, + PreDispatchEarlySubmission, + PreDispatchWrongWinnerCount, + PreDispatchWeakSubmission, + SignedQueueFull, + SignedCannotPayDeposit, + SignedInvalidWitness, + SignedTooMuchWeight, + OcwCallWrongEra, + MissingSnapshotMetadata, + InvalidSubmissionIndex, + CallNotAllowed, } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub enum Event { - Scheduled(u32, u32), - Canceled(u32, u32), - Dispatched( - (u32, u32), - Option>, - Result<(), runtime_types::sp_runtime::DispatchError>, - ), + SolutionStored (runtime_types :: pallet_election_provider_multi_phase :: ElectionCompute , bool ,) , ElectionFinalized (Option < runtime_types :: pallet_election_provider_multi_phase :: ElectionCompute > ,) , Rewarded (:: subxt :: sp_core :: crypto :: AccountId32 , u128 ,) , Slashed (:: subxt :: sp_core :: crypto :: AccountId32 , u128 ,) , SignedPhaseStarted (u32 ,) , UnsignedPhaseStarted (u32 ,) , } + } + pub mod signed { + use super::runtime_types; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct SignedSubmission<_0, _1, _2> { + pub who: _0, + pub deposit: _1, + pub raw_solution: + runtime_types::pallet_election_provider_multi_phase::RawSolution< + _2, + >, + pub reward: _1, } } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub enum Releases { - V1, - V2, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum ElectionCompute { + OnChain, + Signed, + Unsigned, + Fallback, + Emergency, } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ScheduledV2<_0, _1, _2, _3> { - pub maybe_id: Option>, - pub priority: u8, - pub call: _0, - pub maybe_periodic: Option<(_1, _1)>, - pub origin: _2, - #[codec(skip)] - pub __subxt_unused_type_params: ::core::marker::PhantomData<_3>, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Phase<_0> { + Off, + Signed, + Unsigned((bool, _0)), + Emergency, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct RawSolution<_0> { + pub solution: _0, + pub score: [u128; 3usize], + pub round: u32, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ReadySolution<_0> { + pub supports: Vec<(_0, runtime_types::sp_npos_elections::Support<_0>)>, + pub score: [u128; 3usize], + pub compute: + runtime_types::pallet_election_provider_multi_phase::ElectionCompute, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct RoundSnapshot<_0> { + pub voters: Vec<(_0, u64, Vec<_0>)>, + pub targets: Vec<_0>, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct SolutionOrSnapshotSize { + #[codec(compact)] + pub voters: u32, + #[codec(compact)] + pub targets: u32, } } - pub mod pallet_session { + pub mod pallet_elections_phragmen { use super::runtime_types; pub mod pallet { use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub enum Call { - set_keys { - keys: runtime_types::polkadot_runtime::SessionKeys, - proof: Vec, + vote { + votes: Vec<::subxt::sp_core::crypto::AccountId32>, + #[codec(compact)] + value: u128, }, - purge_keys, - } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Error { - InvalidProof, - NoAssociatedValidatorId, - DuplicatedKey, - NoKeys, - NoAccount, - } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Event { - NewSession(u32), + remove_voter, + submit_candidacy { + #[codec(compact)] + candidate_count: u32, + }, + renounce_candidacy { + renouncing: runtime_types::pallet_elections_phragmen::Renouncing, + }, + remove_member { + who: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + has_replacement: bool, + }, + clean_defunct_voters { + num_voters: u32, + num_defunct: u32, + }, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Error { + UnableToVote, + NoVotes, + TooManyVotes, + MaximumVotesExceeded, + LowBalance, + UnableToPayBond, + MustBeVoter, + ReportSelf, + DuplicatedCandidate, + MemberSubmit, + RunnerUpSubmit, + InsufficientCandidateFunds, + NotMember, + InvalidWitnessData, + InvalidVoteCount, + InvalidRenouncing, + InvalidReplacement, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Event { + NewTerm(Vec<(::subxt::sp_core::crypto::AccountId32, u128)>), + EmptyTerm, + ElectionError, + MemberKicked(::subxt::sp_core::crypto::AccountId32), + Renounced(::subxt::sp_core::crypto::AccountId32), + CandidateSlashed(::subxt::sp_core::crypto::AccountId32, u128), + SeatHolderSlashed(::subxt::sp_core::crypto::AccountId32, u128), } } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Renouncing { + Member, + RunnerUp, + Candidate(u32), + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct SeatHolder<_0, _1> { + pub who: _0, + pub stake: _1, + pub deposit: _1, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Voter<_0, _1> { + pub votes: Vec<_0>, + pub stake: _1, + pub deposit: _1, + } } - pub mod pallet_staking { + pub mod pallet_gilt { use super::runtime_types; pub mod pallet { use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Call { - bond { - controller: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - #[codec(compact)] - value: u128, - payee: runtime_types::pallet_staking::RewardDestination< - ::subxt::sp_core::crypto::AccountId32, - >, - }, - bond_extra { - #[codec(compact)] - max_additional: u128, - }, - unbond { - #[codec(compact)] - value: u128, - }, - withdraw_unbonded { - num_slashing_spans: u32, - }, - validate { - prefs: runtime_types::pallet_staking::ValidatorPrefs, - }, - nominate { - targets: Vec< - ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - >, - }, - chill, - set_payee { - payee: runtime_types::pallet_staking::RewardDestination< - ::subxt::sp_core::crypto::AccountId32, - >, - }, - set_controller { - controller: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - }, - set_validator_count { - #[codec(compact)] - new: u32, - }, - increase_validator_count { - #[codec(compact)] - additional: u32, - }, - scale_validator_count { - factor: runtime_types::sp_arithmetic::per_things::Percent, - }, - force_no_eras, - force_new_era, - set_invulnerables { - invulnerables: Vec<::subxt::sp_core::crypto::AccountId32>, - }, - force_unstake { - stash: ::subxt::sp_core::crypto::AccountId32, - num_slashing_spans: u32, - }, - force_new_era_always, - cancel_deferred_slash { - era: u32, - slash_indices: Vec, - }, - payout_stakers { - validator_stash: ::subxt::sp_core::crypto::AccountId32, - era: u32, - }, - rebond { - #[codec(compact)] - value: u128, - }, - set_history_depth { - #[codec(compact)] - new_history_depth: u32, - #[codec(compact)] - era_items_deleted: u32, - }, - reap_stash { - stash: ::subxt::sp_core::crypto::AccountId32, - num_slashing_spans: u32, - }, - kick { - who: Vec< - ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - >, - }, - set_staking_limits { - min_nominator_bond: u128, - min_validator_bond: u128, - max_nominator_count: Option, - max_validator_count: Option, - threshold: - Option, - }, - chill_other { - controller: ::subxt::sp_core::crypto::AccountId32, - }, - } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Error { - NotController, - NotStash, - AlreadyBonded, - AlreadyPaired, - EmptyTargets, - DuplicateIndex, - InvalidSlashIndex, - InsufficientBond, - NoMoreChunks, - NoUnlockChunk, - FundedTarget, - InvalidEraToReward, - InvalidNumberOfNominations, - NotSortedAndUnique, - AlreadyClaimed, - IncorrectHistoryDepth, - IncorrectSlashingSpans, - BadState, - TooManyTargets, - BadTarget, - CannotChillOther, - TooManyNominators, - TooManyValidators, - } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Event { - EraPaid(u32, u128, u128), - Rewarded(::subxt::sp_core::crypto::AccountId32, u128), - Slashed(::subxt::sp_core::crypto::AccountId32, u128), - OldSlashingReportDiscarded(u32), - StakersElected, - Bonded(::subxt::sp_core::crypto::AccountId32, u128), - Unbonded(::subxt::sp_core::crypto::AccountId32, u128), - Withdrawn(::subxt::sp_core::crypto::AccountId32, u128), - Kicked( - ::subxt::sp_core::crypto::AccountId32, - ::subxt::sp_core::crypto::AccountId32, - ), - StakingElectionFailed, - Chilled(::subxt::sp_core::crypto::AccountId32), - PayoutStarted(u32, ::subxt::sp_core::crypto::AccountId32), - } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ActiveGilt<_0, _1, _2> { + pub proportion: ::subxt::sp_arithmetic::per_things::Perquintill, + pub amount: _0, + pub who: _1, + pub expiry: _2, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ActiveGiltsTotal<_0> { + pub frozen: _0, + pub proportion: ::subxt::sp_arithmetic::per_things::Perquintill, + pub index: u32, + pub target: ::subxt::sp_arithmetic::per_things::Perquintill, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Call { + place_bid { + #[codec(compact)] + amount: u128, + duration: u32, + }, + retract_bid { + #[codec(compact)] + amount: u128, + duration: u32, + }, + set_target { + #[codec(compact)] + target: ::subxt::sp_arithmetic::per_things::Perquintill, + }, + thaw { + #[codec(compact)] + index: u32, + }, } - } - pub mod slashing { - use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct SlashingSpans { - pub span_index: u32, - pub last_start: u32, - pub last_nonzero_slash: u32, - pub prior: Vec, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Error { + DurationTooSmall, + DurationTooBig, + AmountTooSmall, + BidTooLow, + Unknown, + NotOwner, + NotExpired, + NotFound, } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct SpanRecord<_0> { - pub slashed: _0, - pub paid_out: _0, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Event { + BidPlaced(::subxt::sp_core::crypto::AccountId32, u128, u32), + BidRetracted(::subxt::sp_core::crypto::AccountId32, u128, u32), + GiltIssued(u32, u32, ::subxt::sp_core::crypto::AccountId32, u128), + GiltThawed(u32, ::subxt::sp_core::crypto::AccountId32, u128, u128), + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct GiltBid<_0, _1> { + pub amount: _0, + pub who: _1, } } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ActiveEraInfo { - pub index: u32, - pub start: Option, - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct EraRewardPoints<_0> { - pub total: u32, - pub individual: std::collections::BTreeMap<_0, u32>, - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Exposure<_0, _1> { - #[codec(compact)] - pub total: _1, - #[codec(compact)] - pub own: _1, - pub others: - Vec>, - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub enum Forcing { - NotForcing, - ForceNew, - ForceNone, - ForceAlways, - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct IndividualExposure<_0, _1> { - pub who: _0, - #[codec(compact)] - pub value: _1, - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Nominations<_0> { - pub targets: Vec<_0>, - pub submitted_in: u32, - pub suppressed: bool, - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub enum Releases { - V1_0_0Ancient, - V2_0_0, - V3_0_0, - V4_0_0, - V5_0_0, - V6_0_0, - V7_0_0, - V8_0_0, - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub enum RewardDestination<_0> { - Staked, - Stash, - Controller, - Account(_0), - None, - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct StakingLedger<_0, _1> { - pub stash: _0, - #[codec(compact)] - pub total: _1, - #[codec(compact)] - pub active: _1, - pub unlocking: Vec>, - pub claimed_rewards: Vec, + } + pub mod pallet_grandpa { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Call { + report_equivocation { + equivocation_proof: std::boxed::Box< + runtime_types::sp_finality_grandpa::EquivocationProof< + ::subxt::sp_core::H256, + u32, + >, + >, + key_owner_proof: runtime_types::sp_session::MembershipProof, + }, + report_equivocation_unsigned { + equivocation_proof: std::boxed::Box< + runtime_types::sp_finality_grandpa::EquivocationProof< + ::subxt::sp_core::H256, + u32, + >, + >, + key_owner_proof: runtime_types::sp_session::MembershipProof, + }, + note_stalled { + delay: u32, + best_finalized_block_number: u32, + }, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Error { + PauseFailed, + ResumeFailed, + ChangePending, + TooSoon, + InvalidKeyOwnershipProof, + InvalidEquivocationProof, + DuplicateOffenceReport, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Event { + NewAuthorities( + Vec<(runtime_types::sp_finality_grandpa::app::Public, u64)>, + ), + Paused, + Resumed, + } } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct UnappliedSlash<_0, _1> { - pub validator: _0, - pub own: _1, - pub others: Vec<(_0, _1)>, - pub reporters: Vec<_0>, - pub payout: _1, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct StoredPendingChange < _0 > { pub scheduled_at : _0 , pub delay : _0 , pub next_authorities : runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < (runtime_types :: sp_finality_grandpa :: app :: Public , u64 ,) > , pub forced : Option < _0 > , } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum StoredState<_0> { + Live, + PendingPause { scheduled_at: _0, delay: _0 }, + Paused, + PendingResume { scheduled_at: _0, delay: _0 }, } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct UnlockChunk<_0> { - #[codec(compact)] - pub value: _0, - #[codec(compact)] - pub era: u32, + } + pub mod pallet_identity { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Call { + add_registrar { + account: ::subxt::sp_core::crypto::AccountId32, + }, + set_identity { + info: std::boxed::Box< + runtime_types::pallet_identity::types::IdentityInfo, + >, + }, + set_subs { + subs: Vec<( + ::subxt::sp_core::crypto::AccountId32, + runtime_types::pallet_identity::types::Data, + )>, + }, + clear_identity, + request_judgement { + #[codec(compact)] + reg_index: u32, + #[codec(compact)] + max_fee: u128, + }, + cancel_request { + reg_index: u32, + }, + set_fee { + #[codec(compact)] + index: u32, + #[codec(compact)] + fee: u128, + }, + set_account_id { + #[codec(compact)] + index: u32, + new: ::subxt::sp_core::crypto::AccountId32, + }, + set_fields { + #[codec(compact)] + index: u32, + fields: runtime_types::pallet_identity::types::BitFlags< + runtime_types::pallet_identity::types::IdentityField, + >, + }, + provide_judgement { + #[codec(compact)] + reg_index: u32, + target: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + judgement: runtime_types::pallet_identity::types::Judgement, + }, + kill_identity { + target: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + }, + add_sub { + sub: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + data: runtime_types::pallet_identity::types::Data, + }, + rename_sub { + sub: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + data: runtime_types::pallet_identity::types::Data, + }, + remove_sub { + sub: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + }, + quit_sub, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Error { + TooManySubAccounts, + NotFound, + NotNamed, + EmptyIndex, + FeeChanged, + NoIdentity, + StickyJudgement, + JudgementGiven, + InvalidJudgement, + InvalidIndex, + InvalidTarget, + TooManyFields, + TooManyRegistrars, + AlreadyClaimed, + NotSub, + NotOwned, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Event { + IdentitySet(::subxt::sp_core::crypto::AccountId32), + IdentityCleared(::subxt::sp_core::crypto::AccountId32, u128), + IdentityKilled(::subxt::sp_core::crypto::AccountId32, u128), + JudgementRequested(::subxt::sp_core::crypto::AccountId32, u32), + JudgementUnrequested(::subxt::sp_core::crypto::AccountId32, u32), + JudgementGiven(::subxt::sp_core::crypto::AccountId32, u32), + RegistrarAdded(u32), + SubIdentityAdded( + ::subxt::sp_core::crypto::AccountId32, + ::subxt::sp_core::crypto::AccountId32, + u128, + ), + SubIdentityRemoved( + ::subxt::sp_core::crypto::AccountId32, + ::subxt::sp_core::crypto::AccountId32, + u128, + ), + SubIdentityRevoked( + ::subxt::sp_core::crypto::AccountId32, + ::subxt::sp_core::crypto::AccountId32, + u128, + ), + } } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ValidatorPrefs { - #[codec(compact)] - pub commission: ::subxt::sp_arithmetic::per_things::Perbill, - pub blocked: bool, + pub mod types { + use super::runtime_types; + #[derive( + :: codec :: CompactAs, + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + )] + pub struct BitFlags<_0>( + pub u64, + #[codec(skip)] pub ::core::marker::PhantomData<_0>, + ); + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Data { + None, + Raw0([u8; 0usize]), + Raw1([u8; 1usize]), + Raw2([u8; 2usize]), + Raw3([u8; 3usize]), + Raw4([u8; 4usize]), + Raw5([u8; 5usize]), + Raw6([u8; 6usize]), + Raw7([u8; 7usize]), + Raw8([u8; 8usize]), + Raw9([u8; 9usize]), + Raw10([u8; 10usize]), + Raw11([u8; 11usize]), + Raw12([u8; 12usize]), + Raw13([u8; 13usize]), + Raw14([u8; 14usize]), + Raw15([u8; 15usize]), + Raw16([u8; 16usize]), + Raw17([u8; 17usize]), + Raw18([u8; 18usize]), + Raw19([u8; 19usize]), + Raw20([u8; 20usize]), + Raw21([u8; 21usize]), + Raw22([u8; 22usize]), + Raw23([u8; 23usize]), + Raw24([u8; 24usize]), + Raw25([u8; 25usize]), + Raw26([u8; 26usize]), + Raw27([u8; 27usize]), + Raw28([u8; 28usize]), + Raw29([u8; 29usize]), + Raw30([u8; 30usize]), + Raw31([u8; 31usize]), + Raw32([u8; 32usize]), + BlakeTwo256([u8; 32usize]), + Sha256([u8; 32usize]), + Keccak256([u8; 32usize]), + ShaThree256([u8; 32usize]), + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum IdentityField { + Display, + Legal, + Web, + Riot, + Email, + PgpFingerprint, + Image, + Twitter, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct IdentityInfo { + pub additional: + runtime_types::frame_support::storage::bounded_vec::BoundedVec<( + runtime_types::pallet_identity::types::Data, + runtime_types::pallet_identity::types::Data, + )>, + pub display: runtime_types::pallet_identity::types::Data, + pub legal: runtime_types::pallet_identity::types::Data, + pub web: runtime_types::pallet_identity::types::Data, + pub riot: runtime_types::pallet_identity::types::Data, + pub email: runtime_types::pallet_identity::types::Data, + pub pgp_fingerprint: Option<[u8; 20usize]>, + pub image: runtime_types::pallet_identity::types::Data, + pub twitter: runtime_types::pallet_identity::types::Data, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Judgement<_0> { + Unknown, + FeePaid(_0), + Reasonable, + KnownGood, + OutOfDate, + LowQuality, + Erroneous, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct RegistrarInfo<_0, _1> { + pub account: _1, + pub fee: _0, + pub fields: runtime_types::pallet_identity::types::BitFlags< + runtime_types::pallet_identity::types::IdentityField, + >, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Registration<_0> { + pub judgements: + runtime_types::frame_support::storage::bounded_vec::BoundedVec<( + u32, + runtime_types::pallet_identity::types::Judgement<_0>, + )>, + pub deposit: _0, + pub info: runtime_types::pallet_identity::types::IdentityInfo, + } } } - pub mod pallet_timestamp { + pub mod pallet_im_online { use super::runtime_types; pub mod pallet { use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub enum Call { - set { - #[codec(compact)] - now: u64, - }, + heartbeat { heartbeat : runtime_types :: pallet_im_online :: Heartbeat < u32 > , signature : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Signature , } , } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Error { + InvalidKey, + DuplicatedHeartbeat, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Event { + HeartbeatReceived( + runtime_types::pallet_im_online::sr25519::app_sr25519::Public, + ), + AllGood, + SomeOffline( + Vec<( + ::subxt::sp_core::crypto::AccountId32, + runtime_types::pallet_staking::Exposure< + ::subxt::sp_core::crypto::AccountId32, + u128, + >, + )>, + ), + } + } + pub mod sr25519 { + use super::runtime_types; + pub mod app_sr25519 { + use super::runtime_types; + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, + )] + pub struct Public(pub runtime_types::sp_core::sr25519::Public); + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, + )] + pub struct Signature(pub runtime_types::sp_core::sr25519::Signature); } } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct BoundedOpaqueNetworkState { pub peer_id : runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < u8 > , pub external_addresses : runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < u8 > > , } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Heartbeat<_0> { + pub block_number: _0, + pub network_state: runtime_types::sp_core::offchain::OpaqueNetworkState, + pub session_index: _0, + pub authority_index: _0, + pub validators_len: _0, + } } - pub mod pallet_tips { + pub mod pallet_indices { use super::runtime_types; pub mod pallet { use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub enum Call { - report_awesome { - reason: Vec, - who: ::subxt::sp_core::crypto::AccountId32, - }, - retract_tip { - hash: ::subxt::sp_core::H256, + claim { + index: u32, }, - tip_new { - reason: Vec, - who: ::subxt::sp_core::crypto::AccountId32, - #[codec(compact)] - tip_value: u128, + transfer { + new: ::subxt::sp_core::crypto::AccountId32, + index: u32, }, - tip { - hash: ::subxt::sp_core::H256, - #[codec(compact)] - tip_value: u128, + free { + index: u32, }, - close_tip { - hash: ::subxt::sp_core::H256, + force_transfer { + new: ::subxt::sp_core::crypto::AccountId32, + index: u32, + freeze: bool, }, - slash_tip { - hash: ::subxt::sp_core::H256, + freeze { + index: u32, }, } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub enum Error { - ReasonTooBig, - AlreadyKnown, - UnknownTip, - NotFinder, - StillOpen, - Premature, + NotAssigned, + NotOwner, + InUse, + NotTransfer, + Permanent, } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub enum Event { - NewTip(::subxt::sp_core::H256), - TipClosing(::subxt::sp_core::H256), - TipClosed( - ::subxt::sp_core::H256, - ::subxt::sp_core::crypto::AccountId32, - u128, - ), - TipRetracted(::subxt::sp_core::H256), - TipSlashed( - ::subxt::sp_core::H256, - ::subxt::sp_core::crypto::AccountId32, - u128, - ), + IndexAssigned(::subxt::sp_core::crypto::AccountId32, u32), + IndexFreed(u32), + IndexFrozen(u32, ::subxt::sp_core::crypto::AccountId32), } } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct OpenTip<_0, _1, _2, _3> { - pub reason: _3, - pub who: _0, - pub finder: _0, - pub deposit: _1, - pub closes: Option<_2>, - pub tips: Vec<(_0, _1)>, - pub finders_fee: bool, - } - } - pub mod pallet_transaction_payment { - use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct ChargeTransactionPayment(pub u128); - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub enum Releases { - V1Ancient, - V2, - } } - pub mod pallet_treasury { + pub mod pallet_lottery { use super::runtime_types; pub mod pallet { use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub enum Call { - propose_spend { - #[codec(compact)] - value: u128, - beneficiary: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, + buy_ticket { + call: std::boxed::Box, }, - reject_proposal { - #[codec(compact)] - proposal_id: u32, + set_calls { + calls: Vec, }, - approve_proposal { - #[codec(compact)] - proposal_id: u32, + start_lottery { + price: u128, + length: u32, + delay: u32, + repeat: bool, }, + stop_repeat, } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub enum Error { - InsufficientProposersBalance, - InvalidIndex, - TooManyApprovals, + NotConfigured, + InProgress, + AlreadyEnded, + InvalidCall, + AlreadyParticipating, + TooManyCalls, + EncodingFailed, } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub enum Event { - Proposed(u32), - Spending(u128), - Awarded(u32, u128, ::subxt::sp_core::crypto::AccountId32), - Rejected(u32, u128), - Burnt(u128), - Rollover(u128), - Deposit(u128), + LotteryStarted, + CallsUpdated, + Winner(::subxt::sp_core::crypto::AccountId32, u128), + TicketBought(::subxt::sp_core::crypto::AccountId32, (u8, u8)), } } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Proposal<_0, _1> { - pub proposer: _0, - pub value: _1, - pub beneficiary: _0, - pub bond: _1, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct LotteryConfig<_0, _1> { + pub price: _1, + pub start: _0, + pub length: _0, + pub delay: _0, + pub repeat: bool, } } - pub mod pallet_utility { + pub mod pallet_membership { use super::runtime_types; pub mod pallet { use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub enum Call { - batch { - calls: Vec, + add_member { + who: ::subxt::sp_core::crypto::AccountId32, }, - as_derivative { - index: u16, - call: std::boxed::Box, + remove_member { + who: ::subxt::sp_core::crypto::AccountId32, }, - batch_all { - calls: Vec, + swap_member { + remove: ::subxt::sp_core::crypto::AccountId32, + add: ::subxt::sp_core::crypto::AccountId32, + }, + reset_members { + members: Vec<::subxt::sp_core::crypto::AccountId32>, + }, + change_key { + new: ::subxt::sp_core::crypto::AccountId32, }, + set_prime { + who: ::subxt::sp_core::crypto::AccountId32, + }, + clear_prime, } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub enum Error { - TooManyCalls, + AlreadyMember, + NotMember, } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub enum Event { - BatchInterrupted(u32, runtime_types::sp_runtime::DispatchError), - BatchCompleted, - ItemCompleted, + MemberAdded, + MemberRemoved, + MembersSwapped, + MembersReset, + KeyChanged, + Dummy, } } } - pub mod pallet_vesting { + pub mod pallet_multisig { use super::runtime_types; pub mod pallet { use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub enum Call { - vest, - vest_other { - target: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, + as_multi_threshold_1 { + other_signatories: Vec<::subxt::sp_core::crypto::AccountId32>, + call: std::boxed::Box, }, - vested_transfer { - target: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - schedule: - runtime_types::pallet_vesting::vesting_info::VestingInfo< - u128, - u32, + as_multi { + threshold: u16, + other_signatories: Vec<::subxt::sp_core::crypto::AccountId32>, + maybe_timepoint: + Option>, + call: + runtime_types::frame_support::traits::misc::WrapperKeepOpaque< + runtime_types::node_runtime::Call, >, + store_call: bool, + max_weight: u64, }, - force_vested_transfer { - source: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - target: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - schedule: - runtime_types::pallet_vesting::vesting_info::VestingInfo< - u128, - u32, - >, + approve_as_multi { + threshold: u16, + other_signatories: Vec<::subxt::sp_core::crypto::AccountId32>, + maybe_timepoint: + Option>, + call_hash: [u8; 32usize], + max_weight: u64, }, - merge_schedules { - schedule1_index: u32, - schedule2_index: u32, + cancel_as_multi { + threshold: u16, + other_signatories: Vec<::subxt::sp_core::crypto::AccountId32>, + timepoint: runtime_types::pallet_multisig::Timepoint, + call_hash: [u8; 32usize], }, } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub enum Error { - NotVesting, - AtMaxVestingSchedules, - AmountLow, - ScheduleIndexOutOfBounds, - InvalidScheduleParams, + MinimumThreshold, + AlreadyApproved, + NoApprovalsNeeded, + TooFewSignatories, + TooManySignatories, + SignatoriesOutOfOrder, + SenderInSignatories, + NotFound, + NotOwner, + NoTimepoint, + WrongTimepoint, + UnexpectedTimepoint, + MaxWeightTooLow, + AlreadyStored, } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub enum Event { - VestingUpdated(::subxt::sp_core::crypto::AccountId32, u128), - VestingCompleted(::subxt::sp_core::crypto::AccountId32), - } - } - pub mod vesting_info { - use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct VestingInfo<_0, _1> { - pub locked: _0, - pub per_block: _0, - pub starting_block: _1, + NewMultisig( + ::subxt::sp_core::crypto::AccountId32, + ::subxt::sp_core::crypto::AccountId32, + [u8; 32usize], + ), + MultisigApproval( + ::subxt::sp_core::crypto::AccountId32, + runtime_types::pallet_multisig::Timepoint, + ::subxt::sp_core::crypto::AccountId32, + [u8; 32usize], + ), + MultisigExecuted( + ::subxt::sp_core::crypto::AccountId32, + runtime_types::pallet_multisig::Timepoint, + ::subxt::sp_core::crypto::AccountId32, + [u8; 32usize], + Result<(), runtime_types::sp_runtime::DispatchError>, + ), + MultisigCancelled( + ::subxt::sp_core::crypto::AccountId32, + runtime_types::pallet_multisig::Timepoint, + ::subxt::sp_core::crypto::AccountId32, + [u8; 32usize], + ), } } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub enum Releases { - V0, - V1, - } - } - pub mod polkadot_core_primitives { - use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct CandidateHash(pub ::subxt::sp_core::H256); - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct InboundDownwardMessage<_0> { - pub sent_at: _0, - pub msg: Vec, - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct InboundHrmpMessage<_0> { - pub sent_at: _0, - pub data: Vec, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Multisig<_0, _1, _2> { + pub when: runtime_types::pallet_multisig::Timepoint<_0>, + pub deposit: _1, + pub depositor: _2, + pub approvals: Vec<_2>, } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct OutboundHrmpMessage<_0> { - pub recipient: _0, - pub data: Vec, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Timepoint<_0> { + pub height: _0, + pub index: _0, } } - pub mod polkadot_parachain { + pub mod pallet_offences { use super::runtime_types; - pub mod primitives { + pub mod pallet { use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct HeadData(pub Vec); - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct HrmpChannelId { - pub sender: runtime_types::polkadot_parachain::primitives::Id, - pub recipient: runtime_types::polkadot_parachain::primitives::Id, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Event { + Offence([u8; 16usize], Vec), } - #[derive( - Debug, - Eq, - PartialEq, - :: codec :: Encode, - :: codec :: Decode, - :: codec :: CompactAs, - )] - pub struct Id(pub u32); - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct ValidationCode(pub Vec); - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct ValidationCodeHash(pub ::subxt::sp_core::H256); } } - pub mod polkadot_primitives { + pub mod pallet_proxy { use super::runtime_types; - pub mod v0 { - use super::runtime_types; - pub mod collator_app { - use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct Public(pub runtime_types::sp_core::sr25519::Public); - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct Signature(pub runtime_types::sp_core::sr25519::Signature); - } - pub mod validator_app { - use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct Public(pub runtime_types::sp_core::sr25519::Public); - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct Signature(pub runtime_types::sp_core::sr25519::Signature); - } - #[derive( - Debug, - Eq, - PartialEq, - :: codec :: Encode, - :: codec :: Decode, - :: codec :: CompactAs, - )] - pub struct ValidatorIndex(pub u32); - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum ValidityAttestation { - Implicit( - runtime_types::polkadot_primitives::v0::validator_app::Signature, - ), - Explicit( - runtime_types::polkadot_primitives::v0::validator_app::Signature, - ), - } - } - pub mod v1 { + pub mod pallet { use super::runtime_types; - pub mod assignment_app { - use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct Public(pub runtime_types::sp_core::sr25519::Public); - } - pub mod signed { - use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct UncheckedSigned < _0 , _1 > { pub payload : _0 , pub validator_index : runtime_types :: polkadot_primitives :: v0 :: ValidatorIndex , pub signature : runtime_types :: polkadot_primitives :: v0 :: validator_app :: Signature , # [codec (skip)] pub __subxt_unused_type_params : :: core :: marker :: PhantomData < _1 > , } - } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct AvailabilityBitfield( - pub ::subxt::bitvec::vec::BitVec<::subxt::bitvec::order::Lsb0, u8>, - ); - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct BackedCandidate<_0> { - pub candidate: - runtime_types::polkadot_primitives::v1::CommittedCandidateReceipt< - _0, - >, - pub validity_votes: - Vec, - pub validator_indices: - ::subxt::bitvec::vec::BitVec<::subxt::bitvec::order::Lsb0, u8>, - } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct CandidateCommitments<_0> { - pub upward_messages: Vec>, - pub horizontal_messages: Vec< - runtime_types::polkadot_core_primitives::OutboundHrmpMessage< - runtime_types::polkadot_parachain::primitives::Id, - >, - >, - pub new_validation_code: Option< - runtime_types::polkadot_parachain::primitives::ValidationCode, - >, - pub head_data: - runtime_types::polkadot_parachain::primitives::HeadData, - pub processed_downward_messages: _0, - pub hrmp_watermark: _0, - } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct CandidateDescriptor<_0> { - pub para_id: runtime_types::polkadot_parachain::primitives::Id, - pub relay_parent: _0, - pub collator: - runtime_types::polkadot_primitives::v0::collator_app::Public, - pub persisted_validation_data_hash: _0, - pub pov_hash: _0, - pub erasure_root: _0, - pub signature: - runtime_types::polkadot_primitives::v0::collator_app::Signature, - pub para_head: _0, - pub validation_code_hash: - runtime_types::polkadot_parachain::primitives::ValidationCodeHash, - } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct CandidateReceipt<_0> { - pub descriptor: - runtime_types::polkadot_primitives::v1::CandidateDescriptor<_0>, - pub commitments_hash: _0, - } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct CommittedCandidateReceipt<_0> { - pub descriptor: - runtime_types::polkadot_primitives::v1::CandidateDescriptor<_0>, - pub commitments: - runtime_types::polkadot_primitives::v1::CandidateCommitments, - } - #[derive( - Debug, - Eq, - PartialEq, - :: codec :: Encode, - :: codec :: Decode, - :: codec :: CompactAs, - )] - pub struct CoreIndex(pub u32); - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum CoreOccupied { - Parathread(runtime_types::polkadot_primitives::v1::ParathreadEntry), - Parachain, - } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum DisputeStatement { - Valid (runtime_types :: polkadot_primitives :: v1 :: ValidDisputeStatementKind ,) , Invalid (runtime_types :: polkadot_primitives :: v1 :: InvalidDisputeStatementKind ,) , } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct DisputeStatementSet { - pub candidate_hash: - runtime_types::polkadot_core_primitives::CandidateHash, - pub session: u32, - pub statements: Vec<( - runtime_types::polkadot_primitives::v1::DisputeStatement, - runtime_types::polkadot_primitives::v0::ValidatorIndex, - runtime_types::polkadot_primitives::v0::validator_app::Signature, - )>, - } - #[derive( - Debug, - Eq, - PartialEq, - :: codec :: Encode, - :: codec :: Decode, - :: codec :: CompactAs, - )] - pub struct GroupIndex(pub u32); - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct InherentData<_0> { - pub bitfields: Vec< - runtime_types::polkadot_primitives::v1::signed::UncheckedSigned< - runtime_types::polkadot_primitives::v1::AvailabilityBitfield, - runtime_types::polkadot_primitives::v1::AvailabilityBitfield, - >, - >, - pub backed_candidates: Vec< - runtime_types::polkadot_primitives::v1::BackedCandidate< - ::subxt::sp_core::H256, - >, - >, - pub disputes: - Vec, - pub parent_header: _0, - } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum InvalidDisputeStatementKind { - Explicit, - } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct ParathreadClaim( - pub runtime_types::polkadot_parachain::primitives::Id, - pub runtime_types::polkadot_primitives::v0::collator_app::Public, - ); - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct ParathreadEntry { - pub claim: runtime_types::polkadot_primitives::v1::ParathreadClaim, - pub retries: u32, - } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct SessionInfo { - pub validators: Vec< - runtime_types::polkadot_primitives::v0::validator_app::Public, - >, - pub discovery_keys: - Vec, - pub assignment_keys: Vec< - runtime_types::polkadot_primitives::v1::assignment_app::Public, - >, - pub validator_groups: - Vec>, - pub n_cores: u32, - pub zeroth_delay_tranche_width: u32, - pub relay_vrf_modulo_samples: u32, - pub n_delay_tranches: u32, - pub no_show_slots: u32, - pub needed_approvals: u32, - } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum UpgradeGoAhead { - Abort, - GoAhead, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Call { + proxy { + real: ::subxt::sp_core::crypto::AccountId32, + force_proxy_type: Option, + call: std::boxed::Box, + }, + add_proxy { + delegate: ::subxt::sp_core::crypto::AccountId32, + proxy_type: runtime_types::node_runtime::ProxyType, + delay: u32, + }, + remove_proxy { + delegate: ::subxt::sp_core::crypto::AccountId32, + proxy_type: runtime_types::node_runtime::ProxyType, + delay: u32, + }, + remove_proxies, + anonymous { + proxy_type: runtime_types::node_runtime::ProxyType, + delay: u32, + index: u16, + }, + kill_anonymous { + spawner: ::subxt::sp_core::crypto::AccountId32, + proxy_type: runtime_types::node_runtime::ProxyType, + index: u16, + #[codec(compact)] + height: u32, + #[codec(compact)] + ext_index: u32, + }, + announce { + real: ::subxt::sp_core::crypto::AccountId32, + call_hash: ::subxt::sp_core::H256, + }, + remove_announcement { + real: ::subxt::sp_core::crypto::AccountId32, + call_hash: ::subxt::sp_core::H256, + }, + reject_announcement { + delegate: ::subxt::sp_core::crypto::AccountId32, + call_hash: ::subxt::sp_core::H256, + }, + proxy_announced { + delegate: ::subxt::sp_core::crypto::AccountId32, + real: ::subxt::sp_core::crypto::AccountId32, + force_proxy_type: Option, + call: std::boxed::Box, + }, } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum UpgradeRestriction { - Present, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Error { + TooMany, + NotFound, + NotProxy, + Unproxyable, + Duplicate, + NoPermission, + Unannounced, + NoSelfProxy, } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum ValidDisputeStatementKind { - Explicit, - BackingSeconded(::subxt::sp_core::H256), - BackingValid(::subxt::sp_core::H256), - ApprovalChecking, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Event { + ProxyExecuted(Result<(), runtime_types::sp_runtime::DispatchError>), + AnonymousCreated( + ::subxt::sp_core::crypto::AccountId32, + ::subxt::sp_core::crypto::AccountId32, + runtime_types::node_runtime::ProxyType, + u16, + ), + Announced( + ::subxt::sp_core::crypto::AccountId32, + ::subxt::sp_core::crypto::AccountId32, + ::subxt::sp_core::H256, + ), + ProxyAdded( + ::subxt::sp_core::crypto::AccountId32, + ::subxt::sp_core::crypto::AccountId32, + runtime_types::node_runtime::ProxyType, + u32, + ), } } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Announcement<_0, _1, _2> { + pub real: _0, + pub call_hash: _1, + pub height: _2, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ProxyDefinition<_0, _1, _2> { + pub delegate: _0, + pub proxy_type: _1, + pub delay: _2, + } } - pub mod polkadot_runtime { + pub mod pallet_recovery { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub enum Call { - System (runtime_types :: frame_system :: pallet :: Call ,) , Scheduler (runtime_types :: pallet_scheduler :: pallet :: Call ,) , Babe (runtime_types :: pallet_babe :: pallet :: Call ,) , Timestamp (runtime_types :: pallet_timestamp :: pallet :: Call ,) , Indices (runtime_types :: pallet_indices :: pallet :: Call ,) , Balances (runtime_types :: pallet_balances :: pallet :: Call ,) , Authorship (runtime_types :: pallet_authorship :: pallet :: Call ,) , Staking (runtime_types :: pallet_staking :: pallet :: pallet :: Call ,) , Session (runtime_types :: pallet_session :: pallet :: Call ,) , Grandpa (runtime_types :: pallet_grandpa :: pallet :: Call ,) , ImOnline (runtime_types :: pallet_im_online :: pallet :: Call ,) , Democracy (runtime_types :: pallet_democracy :: pallet :: Call ,) , Council (runtime_types :: pallet_collective :: pallet :: Call ,) , TechnicalCommittee (runtime_types :: pallet_collective :: pallet :: Call ,) , PhragmenElection (runtime_types :: pallet_elections_phragmen :: pallet :: Call ,) , TechnicalMembership (runtime_types :: pallet_membership :: pallet :: Call ,) , Treasury (runtime_types :: pallet_treasury :: pallet :: Call ,) , Claims (runtime_types :: polkadot_runtime_common :: claims :: pallet :: Call ,) , Vesting (runtime_types :: pallet_vesting :: pallet :: Call ,) , Utility (runtime_types :: pallet_utility :: pallet :: Call ,) , Identity (runtime_types :: pallet_identity :: pallet :: Call ,) , Proxy (runtime_types :: pallet_proxy :: pallet :: Call ,) , Multisig (runtime_types :: pallet_multisig :: pallet :: Call ,) , Bounties (runtime_types :: pallet_bounties :: pallet :: Call ,) , Tips (runtime_types :: pallet_tips :: pallet :: Call ,) , ElectionProviderMultiPhase (runtime_types :: pallet_election_provider_multi_phase :: pallet :: Call ,) , Configuration (runtime_types :: polkadot_runtime_parachains :: configuration :: pallet :: Call ,) , ParasShared (runtime_types :: polkadot_runtime_parachains :: shared :: pallet :: Call ,) , ParaInclusion (runtime_types :: polkadot_runtime_parachains :: inclusion :: pallet :: Call ,) , ParaInherent (runtime_types :: polkadot_runtime_parachains :: paras_inherent :: pallet :: Call ,) , Paras (runtime_types :: polkadot_runtime_parachains :: paras :: pallet :: Call ,) , Initializer (runtime_types :: polkadot_runtime_parachains :: initializer :: pallet :: Call ,) , Dmp (runtime_types :: polkadot_runtime_parachains :: dmp :: pallet :: Call ,) , Ump (runtime_types :: polkadot_runtime_parachains :: ump :: pallet :: Call ,) , Hrmp (runtime_types :: polkadot_runtime_parachains :: hrmp :: pallet :: Call ,) , Registrar (runtime_types :: polkadot_runtime_common :: paras_registrar :: pallet :: Call ,) , Slots (runtime_types :: polkadot_runtime_common :: slots :: pallet :: Call ,) , Auctions (runtime_types :: polkadot_runtime_common :: auctions :: pallet :: Call ,) , Crowdloan (runtime_types :: polkadot_runtime_common :: crowdloan :: pallet :: Call ,) , } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub enum Event { - System (runtime_types :: frame_system :: pallet :: Event ,) , Scheduler (runtime_types :: pallet_scheduler :: pallet :: Event ,) , Indices (runtime_types :: pallet_indices :: pallet :: Event ,) , Balances (runtime_types :: pallet_balances :: pallet :: Event ,) , Staking (runtime_types :: pallet_staking :: pallet :: pallet :: Event ,) , Offences (runtime_types :: pallet_offences :: pallet :: Event ,) , Session (runtime_types :: pallet_session :: pallet :: Event ,) , Grandpa (runtime_types :: pallet_grandpa :: pallet :: Event ,) , ImOnline (runtime_types :: pallet_im_online :: pallet :: Event ,) , Democracy (runtime_types :: pallet_democracy :: pallet :: Event ,) , Council (runtime_types :: pallet_collective :: pallet :: Event ,) , TechnicalCommittee (runtime_types :: pallet_collective :: pallet :: Event ,) , PhragmenElection (runtime_types :: pallet_elections_phragmen :: pallet :: Event ,) , TechnicalMembership (runtime_types :: pallet_membership :: pallet :: Event ,) , Treasury (runtime_types :: pallet_treasury :: pallet :: Event ,) , Claims (runtime_types :: polkadot_runtime_common :: claims :: pallet :: Event ,) , Vesting (runtime_types :: pallet_vesting :: pallet :: Event ,) , Utility (runtime_types :: pallet_utility :: pallet :: Event ,) , Identity (runtime_types :: pallet_identity :: pallet :: Event ,) , Proxy (runtime_types :: pallet_proxy :: pallet :: Event ,) , Multisig (runtime_types :: pallet_multisig :: pallet :: Event ,) , Bounties (runtime_types :: pallet_bounties :: pallet :: Event ,) , Tips (runtime_types :: pallet_tips :: pallet :: Event ,) , ElectionProviderMultiPhase (runtime_types :: pallet_election_provider_multi_phase :: pallet :: Event ,) , ParaInclusion (runtime_types :: polkadot_runtime_parachains :: inclusion :: pallet :: Event ,) , Paras (runtime_types :: polkadot_runtime_parachains :: paras :: pallet :: Event ,) , Ump (runtime_types :: polkadot_runtime_parachains :: ump :: pallet :: Event ,) , Hrmp (runtime_types :: polkadot_runtime_parachains :: hrmp :: pallet :: Event ,) , Registrar (runtime_types :: polkadot_runtime_common :: paras_registrar :: pallet :: Event ,) , Slots (runtime_types :: polkadot_runtime_common :: slots :: pallet :: Event ,) , Auctions (runtime_types :: polkadot_runtime_common :: auctions :: pallet :: Event ,) , Crowdloan (runtime_types :: polkadot_runtime_common :: crowdloan :: pallet :: Event ,) , } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct NposCompactSolution16 { - votes1: Vec<(u32, u16)>, - votes2: Vec<( - u32, - (u16, runtime_types::sp_arithmetic::per_things::PerU16), - u16, - )>, - votes3: Vec<( - u32, - [(u16, runtime_types::sp_arithmetic::per_things::PerU16); 2usize], - u16, - )>, - votes4: Vec<( - u32, - [(u16, runtime_types::sp_arithmetic::per_things::PerU16); 3usize], - u16, - )>, - votes5: Vec<( - u32, - [(u16, runtime_types::sp_arithmetic::per_things::PerU16); 4usize], - u16, - )>, - votes6: Vec<( - u32, - [(u16, runtime_types::sp_arithmetic::per_things::PerU16); 5usize], - u16, - )>, - votes7: Vec<( - u32, - [(u16, runtime_types::sp_arithmetic::per_things::PerU16); 6usize], - u16, - )>, - votes8: Vec<( - u32, - [(u16, runtime_types::sp_arithmetic::per_things::PerU16); 7usize], - u16, - )>, - votes9: Vec<( - u32, - [(u16, runtime_types::sp_arithmetic::per_things::PerU16); 8usize], - u16, - )>, - votes10: Vec<( - u32, - [(u16, runtime_types::sp_arithmetic::per_things::PerU16); 9usize], - u16, - )>, - votes11: Vec<( - u32, - [(u16, runtime_types::sp_arithmetic::per_things::PerU16); 10usize], - u16, - )>, - votes12: Vec<( - u32, - [(u16, runtime_types::sp_arithmetic::per_things::PerU16); 11usize], - u16, - )>, - votes13: Vec<( - u32, - [(u16, runtime_types::sp_arithmetic::per_things::PerU16); 12usize], - u16, - )>, - votes14: Vec<( - u32, - [(u16, runtime_types::sp_arithmetic::per_things::PerU16); 13usize], - u16, - )>, - votes15: Vec<( - u32, - [(u16, runtime_types::sp_arithmetic::per_things::PerU16); 14usize], - u16, - )>, - votes16: Vec<( - u32, - [(u16, runtime_types::sp_arithmetic::per_things::PerU16); 15usize], - u16, - )>, - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub enum OriginCaller { - system( - runtime_types::frame_system::RawOrigin< + pub mod pallet { + use super::runtime_types; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Call { + as_recovered { + account: ::subxt::sp_core::crypto::AccountId32, + call: std::boxed::Box, + }, + set_recovered { + lost: ::subxt::sp_core::crypto::AccountId32, + rescuer: ::subxt::sp_core::crypto::AccountId32, + }, + create_recovery { + friends: Vec<::subxt::sp_core::crypto::AccountId32>, + threshold: u16, + delay_period: u32, + }, + initiate_recovery { + account: ::subxt::sp_core::crypto::AccountId32, + }, + vouch_recovery { + lost: ::subxt::sp_core::crypto::AccountId32, + rescuer: ::subxt::sp_core::crypto::AccountId32, + }, + claim_recovery { + account: ::subxt::sp_core::crypto::AccountId32, + }, + close_recovery { + rescuer: ::subxt::sp_core::crypto::AccountId32, + }, + remove_recovery, + cancel_recovered { + account: ::subxt::sp_core::crypto::AccountId32, + }, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Error { + NotAllowed, + ZeroThreshold, + NotEnoughFriends, + MaxFriends, + NotSorted, + NotRecoverable, + AlreadyRecoverable, + AlreadyStarted, + NotStarted, + NotFriend, + DelayPeriod, + AlreadyVouched, + Threshold, + StillActive, + AlreadyProxy, + BadState, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Event { + RecoveryCreated(::subxt::sp_core::crypto::AccountId32), + RecoveryInitiated( ::subxt::sp_core::crypto::AccountId32, - >, - ), - Council( - runtime_types::pallet_collective::RawOrigin< ::subxt::sp_core::crypto::AccountId32, - >, - ), - TechnicalCommittee( - runtime_types::pallet_collective::RawOrigin< + ), + RecoveryVouched( ::subxt::sp_core::crypto::AccountId32, - >, - ), - ParachainsOrigin( - runtime_types::polkadot_runtime_parachains::origin::pallet::Origin, - ), - Void(runtime_types::sp_core::Void), + ::subxt::sp_core::crypto::AccountId32, + ::subxt::sp_core::crypto::AccountId32, + ), + RecoveryClosed( + ::subxt::sp_core::crypto::AccountId32, + ::subxt::sp_core::crypto::AccountId32, + ), + AccountRecovered( + ::subxt::sp_core::crypto::AccountId32, + ::subxt::sp_core::crypto::AccountId32, + ), + RecoveryRemoved(::subxt::sp_core::crypto::AccountId32), + } } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub enum ProxyType { - Any, - NonTransfer, - Governance, - Staking, - IdentityJudgement, - CancelProxy, - Auction, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ActiveRecovery<_0, _1, _2> { + pub created: _0, + pub deposit: _1, + pub friends: Vec<_2>, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct RecoveryConfig<_0, _1, _2> { + pub delay_period: _0, + pub deposit: _1, + pub friends: Vec<_2>, + pub threshold: u16, + } + } + pub mod pallet_scheduler { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Call { + schedule { + when: u32, + maybe_periodic: Option<(u32, u32)>, + priority: u8, + call: std::boxed::Box, + }, + cancel { + when: u32, + index: u32, + }, + schedule_named { + id: Vec, + when: u32, + maybe_periodic: Option<(u32, u32)>, + priority: u8, + call: std::boxed::Box, + }, + cancel_named { + id: Vec, + }, + schedule_after { + after: u32, + maybe_periodic: Option<(u32, u32)>, + priority: u8, + call: std::boxed::Box, + }, + schedule_named_after { + id: Vec, + after: u32, + maybe_periodic: Option<(u32, u32)>, + priority: u8, + call: std::boxed::Box, + }, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Error { + FailedToSchedule, + NotFound, + TargetBlockNumberInPast, + RescheduleNoChange, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Event { + Scheduled(u32, u32), + Canceled(u32, u32), + Dispatched( + (u32, u32), + Option>, + Result<(), runtime_types::sp_runtime::DispatchError>, + ), + } + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Releases { + V1, + V2, } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct Runtime {} - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub struct SessionKeys { - pub grandpa: runtime_types::sp_finality_grandpa::app::Public, - pub babe: runtime_types::sp_consensus_babe::app::Public, - pub im_online: - runtime_types::pallet_im_online::sr25519::app_sr25519::Public, - pub para_validator: - runtime_types::polkadot_primitives::v0::validator_app::Public, - pub para_assignment: - runtime_types::polkadot_primitives::v1::assignment_app::Public, - pub authority_discovery: - runtime_types::sp_authority_discovery::app::Public, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ScheduledV2<_0, _1, _2, _3> { + pub maybe_id: Option>, + pub priority: u8, + pub call: _0, + pub maybe_periodic: Option<(_1, _1)>, + pub origin: _2, + #[codec(skip)] + pub __subxt_unused_type_params: ::core::marker::PhantomData<_3>, } } - pub mod polkadot_runtime_common { + pub mod pallet_session { use super::runtime_types; - pub mod auctions { + pub mod pallet { use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Call { - new_auction { - #[codec(compact)] - duration: u32, - #[codec(compact)] - lease_period_index: u32, - }, - bid { - #[codec(compact)] - para: runtime_types::polkadot_parachain::primitives::Id, - #[codec(compact)] - auction_index: u32, - #[codec(compact)] - first_slot: u32, - #[codec(compact)] - last_slot: u32, - #[codec(compact)] - amount: u128, - }, - cancel_auction, - } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Error { - AuctionInProgress, - LeasePeriodInPast, - ParaNotRegistered, - NotCurrentAuction, - NotAuction, - AuctionEnded, - AlreadyLeasedOut, - } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Event { - AuctionStarted(u32, u32, u32), - AuctionClosed(u32), - Reserved(::subxt::sp_core::crypto::AccountId32, u128, u128), - Unreserved(::subxt::sp_core::crypto::AccountId32, u128), - ReserveConfiscated( - runtime_types::polkadot_parachain::primitives::Id, - ::subxt::sp_core::crypto::AccountId32, - u128, - ), - BidAccepted( - ::subxt::sp_core::crypto::AccountId32, - runtime_types::polkadot_parachain::primitives::Id, - u128, - u32, - u32, - ), - WinningOffset(u32, u32), - } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Call { + set_keys { + keys: runtime_types::node_runtime::SessionKeys, + proof: Vec, + }, + purge_keys, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Error { + InvalidProof, + NoAssociatedValidatorId, + DuplicatedKey, + NoKeys, + NoAccount, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Event { + NewSession(u32), } } - pub mod claims { + } + pub mod pallet_society { + use super::runtime_types; + pub mod pallet { use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Call { - claim { dest : :: subxt :: sp_core :: crypto :: AccountId32 , ethereum_signature : runtime_types :: polkadot_runtime_common :: claims :: EcdsaSignature , } , mint_claim { who : runtime_types :: polkadot_runtime_common :: claims :: EthereumAddress , value : u128 , vesting_schedule : Option < (u128 , u128 , u32 ,) > , statement : Option < runtime_types :: polkadot_runtime_common :: claims :: StatementKind > , } , claim_attest { dest : :: subxt :: sp_core :: crypto :: AccountId32 , ethereum_signature : runtime_types :: polkadot_runtime_common :: claims :: EcdsaSignature , statement : Vec < u8 > , } , attest { statement : Vec < u8 > , } , move_claim { old : runtime_types :: polkadot_runtime_common :: claims :: EthereumAddress , new : runtime_types :: polkadot_runtime_common :: claims :: EthereumAddress , maybe_preclaim : Option < :: subxt :: sp_core :: crypto :: AccountId32 > , } , } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Error { - InvalidEthereumSignature, - SignerHasNoClaim, - SenderHasNoClaim, - PotUnderflow, - InvalidStatement, - VestedBalanceExists, - } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Event { - Claimed (:: subxt :: sp_core :: crypto :: AccountId32 , runtime_types :: polkadot_runtime_common :: claims :: EthereumAddress , u128 ,) , } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Call { + bid { + value: u128, + }, + unbid { + pos: u32, + }, + vouch { + who: ::subxt::sp_core::crypto::AccountId32, + value: u128, + tip: u128, + }, + unvouch { + pos: u32, + }, + vote { + candidate: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + approve: bool, + }, + defender_vote { + approve: bool, + }, + payout, + found { + founder: ::subxt::sp_core::crypto::AccountId32, + max_members: u32, + rules: Vec, + }, + unfound, + judge_suspended_member { + who: ::subxt::sp_core::crypto::AccountId32, + forgive: bool, + }, + judge_suspended_candidate { + who: ::subxt::sp_core::crypto::AccountId32, + judgement: runtime_types::pallet_society::Judgement, + }, + set_max_members { + max: u32, + }, } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct EcdsaSignature(pub [u8; 65usize]); - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct EthereumAddress(pub [u8; 20usize]); - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct PrevalidateAttests {} - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum StatementKind { - Regular, - Saft, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Error { + BadPosition, + NotMember, + AlreadyMember, + Suspended, + NotSuspended, + NoPayout, + AlreadyFounded, + InsufficientPot, + AlreadyVouching, + NotVouching, + Head, + Founder, + AlreadyBid, + AlreadyCandidate, + NotCandidate, + MaxMembers, + NotFounder, + NotHead, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Event { + Founded(::subxt::sp_core::crypto::AccountId32), + Bid(::subxt::sp_core::crypto::AccountId32, u128), + Vouch( + ::subxt::sp_core::crypto::AccountId32, + u128, + ::subxt::sp_core::crypto::AccountId32, + ), + AutoUnbid(::subxt::sp_core::crypto::AccountId32), + Unbid(::subxt::sp_core::crypto::AccountId32), + Unvouch(::subxt::sp_core::crypto::AccountId32), + Inducted( + ::subxt::sp_core::crypto::AccountId32, + Vec<::subxt::sp_core::crypto::AccountId32>, + ), + SuspendedMemberJudgement(::subxt::sp_core::crypto::AccountId32, bool), + CandidateSuspended(::subxt::sp_core::crypto::AccountId32), + MemberSuspended(::subxt::sp_core::crypto::AccountId32), + Challenged(::subxt::sp_core::crypto::AccountId32), + Vote( + ::subxt::sp_core::crypto::AccountId32, + ::subxt::sp_core::crypto::AccountId32, + bool, + ), + DefenderVote(::subxt::sp_core::crypto::AccountId32, bool), + NewMaxMembers(u32), + Unfounded(::subxt::sp_core::crypto::AccountId32), + Deposit(u128), } } - pub mod crowdloan { + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Bid<_0, _1> { + pub who: _0, + pub kind: runtime_types::pallet_society::BidKind<_0, _1>, + pub value: _1, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum BidKind<_0, _1> { + Deposit(_1), + Vouch(_0, _1), + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Judgement { + Rebid, + Reject, + Approve, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Vote { + Skeptic, + Reject, + Approve, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum VouchingStatus { + Vouching, + Banned, + } + } + pub mod pallet_staking { + use super::runtime_types; + pub mod pallet { use super::runtime_types; pub mod pallet { use super::runtime_types; #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, )] pub enum Call { - create { - #[codec(compact)] - index: runtime_types::polkadot_parachain::primitives::Id, - #[codec(compact)] - cap: u128, - #[codec(compact)] - first_period: u32, - #[codec(compact)] - last_period: u32, + bond { + controller: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, #[codec(compact)] - end: u32, - verifier: Option, + value: u128, + payee: runtime_types::pallet_staking::RewardDestination< + ::subxt::sp_core::crypto::AccountId32, + >, }, - contribute { + bond_extra { #[codec(compact)] - index: runtime_types::polkadot_parachain::primitives::Id, + max_additional: u128, + }, + unbond { #[codec(compact)] value: u128, - signature: Option, }, - withdraw { - who: ::subxt::sp_core::crypto::AccountId32, - #[codec(compact)] - index: runtime_types::polkadot_parachain::primitives::Id, + withdraw_unbonded { + num_slashing_spans: u32, }, - refund { - #[codec(compact)] - index: runtime_types::polkadot_parachain::primitives::Id, + validate { + prefs: runtime_types::pallet_staking::ValidatorPrefs, }, - dissolve { - #[codec(compact)] - index: runtime_types::polkadot_parachain::primitives::Id, + nominate { + targets: Vec< + ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + >, + }, + chill, + set_payee { + payee: runtime_types::pallet_staking::RewardDestination< + ::subxt::sp_core::crypto::AccountId32, + >, + }, + set_controller { + controller: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, }, - edit { + set_validator_count { #[codec(compact)] - index: runtime_types::polkadot_parachain::primitives::Id, + new: u32, + }, + increase_validator_count { #[codec(compact)] - cap: u128, + additional: u32, + }, + scale_validator_count { + factor: runtime_types::sp_arithmetic::per_things::Percent, + }, + force_no_eras, + force_new_era, + set_invulnerables { + invulnerables: Vec<::subxt::sp_core::crypto::AccountId32>, + }, + force_unstake { + stash: ::subxt::sp_core::crypto::AccountId32, + num_slashing_spans: u32, + }, + force_new_era_always, + cancel_deferred_slash { + era: u32, + slash_indices: Vec, + }, + payout_stakers { + validator_stash: ::subxt::sp_core::crypto::AccountId32, + era: u32, + }, + rebond { #[codec(compact)] - first_period: u32, + value: u128, + }, + set_history_depth { #[codec(compact)] - last_period: u32, + new_history_depth: u32, #[codec(compact)] - end: u32, - verifier: Option, + era_items_deleted: u32, }, - add_memo { - index: runtime_types::polkadot_parachain::primitives::Id, - memo: Vec, + reap_stash { + stash: ::subxt::sp_core::crypto::AccountId32, + num_slashing_spans: u32, }, - poke { - index: runtime_types::polkadot_parachain::primitives::Id, + kick { + who: Vec< + ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + >, }, - } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Error { - FirstPeriodInPast, - FirstPeriodTooFarInFuture, - LastPeriodBeforeFirstPeriod, - LastPeriodTooFarInFuture, - CannotEndInPast, - EndTooFarInFuture, - Overflow, - ContributionTooSmall, - InvalidParaId, - CapExceeded, - ContributionPeriodOver, - InvalidOrigin, - NotParachain, - LeaseActive, - BidOrLeaseActive, - FundNotEnded, - NoContributions, - NotReadyToDissolve, - InvalidSignature, - MemoTooLarge, - AlreadyInNewRaise, - VrfDelayInProgress, - NoLeasePeriod, - } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Event { - Created(runtime_types::polkadot_parachain::primitives::Id), - Contributed( - ::subxt::sp_core::crypto::AccountId32, - runtime_types::polkadot_parachain::primitives::Id, - u128, - ), - Withdrew( - ::subxt::sp_core::crypto::AccountId32, - runtime_types::polkadot_parachain::primitives::Id, - u128, - ), - PartiallyRefunded( - runtime_types::polkadot_parachain::primitives::Id, - ), - AllRefunded(runtime_types::polkadot_parachain::primitives::Id), - Dissolved(runtime_types::polkadot_parachain::primitives::Id), - HandleBidResult( - runtime_types::polkadot_parachain::primitives::Id, - Result<(), runtime_types::sp_runtime::DispatchError>, - ), - Edited(runtime_types::polkadot_parachain::primitives::Id), - MemoUpdated( - ::subxt::sp_core::crypto::AccountId32, - runtime_types::polkadot_parachain::primitives::Id, - Vec, - ), - AddedToNewRaise( - runtime_types::polkadot_parachain::primitives::Id, - ), - } - } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct FundInfo < _0 , _1 , _2 , _3 > { pub depositor : _0 , pub verifier : Option < runtime_types :: sp_runtime :: MultiSigner > , pub deposit : _1 , pub raised : _1 , pub end : _2 , pub cap : _1 , pub last_contribution : runtime_types :: polkadot_runtime_common :: crowdloan :: LastContribution < _2 > , pub first_period : _2 , pub last_period : _2 , pub trie_index : _2 , # [codec (skip)] pub __subxt_unused_type_params : :: core :: marker :: PhantomData < _3 > , } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum LastContribution<_0> { - Never, - PreEnding(_0), - Ending(_0), - } - } - pub mod paras_registrar { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Call { - register { id : runtime_types :: polkadot_parachain :: primitives :: Id , genesis_head : runtime_types :: polkadot_parachain :: primitives :: HeadData , validation_code : runtime_types :: polkadot_parachain :: primitives :: ValidationCode , } , force_register { who : :: subxt :: sp_core :: crypto :: AccountId32 , deposit : u128 , id : runtime_types :: polkadot_parachain :: primitives :: Id , genesis_head : runtime_types :: polkadot_parachain :: primitives :: HeadData , validation_code : runtime_types :: polkadot_parachain :: primitives :: ValidationCode , } , deregister { id : runtime_types :: polkadot_parachain :: primitives :: Id , } , swap { id : runtime_types :: polkadot_parachain :: primitives :: Id , other : runtime_types :: polkadot_parachain :: primitives :: Id , } , force_remove_lock { para : runtime_types :: polkadot_parachain :: primitives :: Id , } , reserve , } + set_staking_limits { + min_nominator_bond: u128, + min_validator_bond: u128, + max_nominator_count: Option, + max_validator_count: Option, + threshold: + Option, + }, + chill_other { + controller: ::subxt::sp_core::crypto::AccountId32, + }, + } #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, )] pub enum Error { - NotRegistered, - AlreadyRegistered, - NotOwner, - CodeTooLarge, - HeadDataTooLarge, - NotParachain, - NotParathread, - CannotDeregister, - CannotDowngrade, - CannotUpgrade, - ParaLocked, - NotReserved, + NotController, + NotStash, + AlreadyBonded, + AlreadyPaired, + EmptyTargets, + DuplicateIndex, + InvalidSlashIndex, + InsufficientBond, + NoMoreChunks, + NoUnlockChunk, + FundedTarget, + InvalidEraToReward, + InvalidNumberOfNominations, + NotSortedAndUnique, + AlreadyClaimed, + IncorrectHistoryDepth, + IncorrectSlashingSpans, + BadState, + TooManyTargets, + BadTarget, + CannotChillOther, + TooManyNominators, + TooManyValidators, } #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, )] pub enum Event { - Registered( - runtime_types::polkadot_parachain::primitives::Id, + EraPaid(u32, u128, u128), + Rewarded(::subxt::sp_core::crypto::AccountId32, u128), + Slashed(::subxt::sp_core::crypto::AccountId32, u128), + OldSlashingReportDiscarded(u32), + StakersElected, + Bonded(::subxt::sp_core::crypto::AccountId32, u128), + Unbonded(::subxt::sp_core::crypto::AccountId32, u128), + Withdrawn(::subxt::sp_core::crypto::AccountId32, u128), + Kicked( ::subxt::sp_core::crypto::AccountId32, - ), - Deregistered(runtime_types::polkadot_parachain::primitives::Id), - Reserved( - runtime_types::polkadot_parachain::primitives::Id, ::subxt::sp_core::crypto::AccountId32, ), + StakingElectionFailed, + Chilled(::subxt::sp_core::crypto::AccountId32), + PayoutStarted(u32, ::subxt::sp_core::crypto::AccountId32), } } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct ParaInfo<_0, _1> { - pub manager: _0, - pub deposit: _1, - pub locked: bool, + } + pub mod slashing { + use super::runtime_types; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct SlashingSpans { + pub span_index: u32, + pub last_start: u32, + pub last_nonzero_slash: u32, + pub prior: Vec, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct SpanRecord<_0> { + pub slashed: _0, + pub paid_out: _0, } } - pub mod slots { + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ActiveEraInfo { + pub index: u32, + pub start: Option, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct EraRewardPoints<_0> { + pub total: u32, + pub individual: std::collections::BTreeMap<_0, u32>, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Exposure<_0, _1> { + #[codec(compact)] + pub total: _1, + #[codec(compact)] + pub own: _1, + pub others: + Vec>, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Forcing { + NotForcing, + ForceNew, + ForceNone, + ForceAlways, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct IndividualExposure<_0, _1> { + pub who: _0, + #[codec(compact)] + pub value: _1, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Nominations<_0> { + pub targets: Vec<_0>, + pub submitted_in: u32, + pub suppressed: bool, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Releases { + V1_0_0Ancient, + V2_0_0, + V3_0_0, + V4_0_0, + V5_0_0, + V6_0_0, + V7_0_0, + V8_0_0, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum RewardDestination<_0> { + Staked, + Stash, + Controller, + Account(_0), + None, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct StakingLedger<_0, _1> { + pub stash: _0, + #[codec(compact)] + pub total: _1, + #[codec(compact)] + pub active: _1, + pub unlocking: Vec>, + pub claimed_rewards: Vec, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct UnappliedSlash<_0, _1> { + pub validator: _0, + pub own: _1, + pub others: Vec<(_0, _1)>, + pub reporters: Vec<_0>, + pub payout: _1, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct UnlockChunk<_0> { + #[codec(compact)] + pub value: _0, + #[codec(compact)] + pub era: u32, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ValidatorPrefs { + #[codec(compact)] + pub commission: ::subxt::sp_arithmetic::per_things::Perbill, + pub blocked: bool, + } + } + pub mod pallet_sudo { + use super::runtime_types; + pub mod pallet { use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Call { - force_lease { - para: runtime_types::polkadot_parachain::primitives::Id, - leaser: ::subxt::sp_core::crypto::AccountId32, - amount: u128, - period_begin: u32, - period_count: u32, - }, - clear_all_leases { - para: runtime_types::polkadot_parachain::primitives::Id, - }, - trigger_onboard { - para: runtime_types::polkadot_parachain::primitives::Id, - }, - } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Error { - ParaNotOnboarding, - LeaseError, - } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Event { - NewLeasePeriod(u32), - Leased( - runtime_types::polkadot_parachain::primitives::Id, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Call { + sudo { + call: std::boxed::Box, + }, + sudo_unchecked_weight { + call: std::boxed::Box, + weight: u64, + }, + set_key { + new: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, u32, + >, + }, + sudo_as { + who: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, u32, - u128, - u128, - ), - } + >, + call: std::boxed::Box, + }, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Error { + RequireSudo, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Event { + Sudid(Result<(), runtime_types::sp_runtime::DispatchError>), + KeyChanged(::subxt::sp_core::crypto::AccountId32), + SudoAsDone(Result<(), runtime_types::sp_runtime::DispatchError>), + } + } + } + pub mod pallet_timestamp { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Call { + set { + #[codec(compact)] + now: u64, + }, + } + } + } + pub mod pallet_tips { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Call { + report_awesome { + reason: Vec, + who: ::subxt::sp_core::crypto::AccountId32, + }, + retract_tip { + hash: ::subxt::sp_core::H256, + }, + tip_new { + reason: Vec, + who: ::subxt::sp_core::crypto::AccountId32, + #[codec(compact)] + tip_value: u128, + }, + tip { + hash: ::subxt::sp_core::H256, + #[codec(compact)] + tip_value: u128, + }, + close_tip { + hash: ::subxt::sp_core::H256, + }, + slash_tip { + hash: ::subxt::sp_core::H256, + }, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Error { + ReasonTooBig, + AlreadyKnown, + UnknownTip, + NotFinder, + StillOpen, + Premature, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Event { + NewTip(::subxt::sp_core::H256), + TipClosing(::subxt::sp_core::H256), + TipClosed( + ::subxt::sp_core::H256, + ::subxt::sp_core::crypto::AccountId32, + u128, + ), + TipRetracted(::subxt::sp_core::H256), + TipSlashed( + ::subxt::sp_core::H256, + ::subxt::sp_core::crypto::AccountId32, + u128, + ), } } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct OpenTip<_0, _1, _2, _3> { + pub reason: _3, + pub who: _0, + pub finder: _0, + pub deposit: _1, + pub closes: Option<_2>, + pub tips: Vec<(_0, _1)>, + pub finders_fee: bool, + } + } + pub mod pallet_transaction_payment { + use super::runtime_types; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ChargeTransactionPayment(pub u128); + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Releases { + V1Ancient, + V2, + } } - pub mod polkadot_runtime_parachains { + pub mod pallet_transaction_storage { use super::runtime_types; - pub mod configuration { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Call { - set_validation_upgrade_frequency { new: u32 }, - set_validation_upgrade_delay { new: u32 }, - set_code_retention_period { new: u32 }, - set_max_code_size { new: u32 }, - set_max_pov_size { new: u32 }, - set_max_head_data_size { new: u32 }, - set_parathread_cores { new: u32 }, - set_parathread_retries { new: u32 }, - set_group_rotation_frequency { new: u32 }, - set_chain_availability_period { new: u32 }, - set_thread_availability_period { new: u32 }, - set_scheduling_lookahead { new: u32 }, - set_max_validators_per_core { new: Option }, - set_max_validators { new: Option }, - set_dispute_period { new: u32 }, - set_dispute_post_conclusion_acceptance_period { new: u32 }, - set_dispute_max_spam_slots { new: u32 }, - set_dispute_conclusion_by_time_out_period { new: u32 }, - set_no_show_slots { new: u32 }, - set_n_delay_tranches { new: u32 }, - set_zeroth_delay_tranche_width { new: u32 }, - set_needed_approvals { new: u32 }, - set_relay_vrf_modulo_samples { new: u32 }, - set_max_upward_queue_count { new: u32 }, - set_max_upward_queue_size { new: u32 }, - set_max_downward_message_size { new: u32 }, - set_ump_service_total_weight { new: u64 }, - set_max_upward_message_size { new: u32 }, - set_max_upward_message_num_per_candidate { new: u32 }, - set_hrmp_open_request_ttl { new: u32 }, - set_hrmp_sender_deposit { new: u128 }, - set_hrmp_recipient_deposit { new: u128 }, - set_hrmp_channel_max_capacity { new: u32 }, - set_hrmp_channel_max_total_size { new: u32 }, - set_hrmp_max_parachain_inbound_channels { new: u32 }, - set_hrmp_max_parathread_inbound_channels { new: u32 }, - set_hrmp_channel_max_message_size { new: u32 }, - set_hrmp_max_parachain_outbound_channels { new: u32 }, - set_hrmp_max_parathread_outbound_channels { new: u32 }, - set_hrmp_max_message_num_per_candidate { new: u32 }, - set_ump_max_individual_weight { new: u64 }, - } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Error { - InvalidNewValue, - } - } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct HostConfiguration<_0> { - pub max_code_size: _0, - pub max_head_data_size: _0, - pub max_upward_queue_count: _0, - pub max_upward_queue_size: _0, - pub max_upward_message_size: _0, - pub max_upward_message_num_per_candidate: _0, - pub hrmp_max_message_num_per_candidate: _0, - pub validation_upgrade_frequency: _0, - pub validation_upgrade_delay: _0, - pub max_pov_size: _0, - pub max_downward_message_size: _0, - pub ump_service_total_weight: u64, - pub hrmp_max_parachain_outbound_channels: _0, - pub hrmp_max_parathread_outbound_channels: _0, - pub hrmp_sender_deposit: u128, - pub hrmp_recipient_deposit: u128, - pub hrmp_channel_max_capacity: _0, - pub hrmp_channel_max_total_size: _0, - pub hrmp_max_parachain_inbound_channels: _0, - pub hrmp_max_parathread_inbound_channels: _0, - pub hrmp_channel_max_message_size: _0, - pub code_retention_period: _0, - pub parathread_cores: _0, - pub parathread_retries: _0, - pub group_rotation_frequency: _0, - pub chain_availability_period: _0, - pub thread_availability_period: _0, - pub scheduling_lookahead: _0, - pub max_validators_per_core: Option<_0>, - pub max_validators: Option<_0>, - pub dispute_period: _0, - pub dispute_post_conclusion_acceptance_period: _0, - pub dispute_max_spam_slots: _0, - pub dispute_conclusion_by_time_out_period: _0, - pub no_show_slots: _0, - pub n_delay_tranches: _0, - pub zeroth_delay_tranche_width: _0, - pub needed_approvals: _0, - pub relay_vrf_modulo_samples: _0, - pub ump_max_individual_weight: u64, - } - } - pub mod dmp { + pub mod pallet { use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Call {} + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Call { + store { data : Vec < u8 > , } , renew { block : u32 , index : u32 , } , check_proof { proof : runtime_types :: sp_transaction_storage_proof :: TransactionStorageProof , } , } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Error { + InsufficientFunds, + NotConfigured, + RenewedNotFound, + EmptyTransaction, + UnexpectedProof, + InvalidProof, + MissingProof, + MissingStateData, + DoubleCheck, + ProofNotChecked, + TransactionTooLarge, + TooManyTransactions, + BadContext, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Event { + Stored(u32), + Renewed(u32), + ProofChecked, } } - pub mod hrmp { + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct TransactionInfo { + pub chunk_root: ::subxt::sp_core::H256, + pub content_hash: ::subxt::sp_core::H256, + pub size: u32, + pub block_chunks: u32, + } + } + pub mod pallet_treasury { + use super::runtime_types; + pub mod pallet { use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Call { - hrmp_init_open_channel { recipient : runtime_types :: polkadot_parachain :: primitives :: Id , proposed_max_capacity : u32 , proposed_max_message_size : u32 , } , hrmp_accept_open_channel { sender : runtime_types :: polkadot_parachain :: primitives :: Id , } , hrmp_close_channel { channel_id : runtime_types :: polkadot_parachain :: primitives :: HrmpChannelId , } , force_clean_hrmp { para : runtime_types :: polkadot_parachain :: primitives :: Id , } , force_process_hrmp_open , force_process_hrmp_close , hrmp_cancel_open_request { channel_id : runtime_types :: polkadot_parachain :: primitives :: HrmpChannelId , } , } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Error { - OpenHrmpChannelToSelf, - OpenHrmpChannelInvalidRecipient, - OpenHrmpChannelZeroCapacity, - OpenHrmpChannelCapacityExceedsLimit, - OpenHrmpChannelZeroMessageSize, - OpenHrmpChannelMessageSizeExceedsLimit, - OpenHrmpChannelAlreadyExists, - OpenHrmpChannelAlreadyRequested, - OpenHrmpChannelLimitExceeded, - AcceptHrmpChannelDoesntExist, - AcceptHrmpChannelAlreadyConfirmed, - AcceptHrmpChannelLimitExceeded, - CloseHrmpChannelUnauthorized, - CloseHrmpChannelDoesntExist, - CloseHrmpChannelAlreadyUnderway, - CancelHrmpOpenChannelUnauthorized, - OpenHrmpChannelDoesntExist, - OpenHrmpChannelAlreadyConfirmed, - } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Event { - OpenChannelRequested( - runtime_types::polkadot_parachain::primitives::Id, - runtime_types::polkadot_parachain::primitives::Id, - u32, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Call { + propose_spend { + #[codec(compact)] + value: u128, + beneficiary: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, u32, - ), - OpenChannelCanceled( - runtime_types::polkadot_parachain::primitives::Id, - runtime_types::polkadot_parachain::primitives::HrmpChannelId, - ), - OpenChannelAccepted( - runtime_types::polkadot_parachain::primitives::Id, - runtime_types::polkadot_parachain::primitives::Id, - ), - ChannelClosed( - runtime_types::polkadot_parachain::primitives::Id, - runtime_types::polkadot_parachain::primitives::HrmpChannelId, - ), - } + >, + }, + reject_proposal { + #[codec(compact)] + proposal_id: u32, + }, + approve_proposal { + #[codec(compact)] + proposal_id: u32, + }, } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct HrmpChannel { - pub max_capacity: u32, - pub max_total_size: u32, - pub max_message_size: u32, - pub msg_count: u32, - pub total_size: u32, - pub mqc_head: Option<::subxt::sp_core::H256>, - pub sender_deposit: u128, - pub recipient_deposit: u128, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Error { + InsufficientProposersBalance, + InvalidIndex, + TooManyApprovals, } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct HrmpOpenChannelRequest { - pub confirmed: bool, - pub _age: u32, - pub sender_deposit: u128, - pub max_message_size: u32, - pub max_capacity: u32, - pub max_total_size: u32, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Event { + Proposed(u32), + Spending(u128), + Awarded(u32, u128, ::subxt::sp_core::crypto::AccountId32), + Rejected(u32, u128), + Burnt(u128), + Rollover(u128), + Deposit(u128), } } - pub mod inclusion { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Call {} - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Error { - WrongBitfieldSize, - BitfieldDuplicateOrUnordered, - ValidatorIndexOutOfBounds, - InvalidBitfieldSignature, - UnscheduledCandidate, - CandidateScheduledBeforeParaFree, - WrongCollator, - ScheduledOutOfOrder, - HeadDataTooLarge, - PrematureCodeUpgrade, - NewCodeTooLarge, - CandidateNotInParentContext, - UnoccupiedBitInBitfield, - InvalidGroupIndex, - InsufficientBacking, - InvalidBacking, - NotCollatorSigned, - ValidationDataHashMismatch, - InternalError, - IncorrectDownwardMessageHandling, - InvalidUpwardMessages, - HrmpWatermarkMishandling, - InvalidOutboundHrmp, - InvalidValidationCodeHash, - ParaHeadMismatch, - } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Event { - CandidateBacked( - runtime_types::polkadot_primitives::v1::CandidateReceipt< - ::subxt::sp_core::H256, - >, - runtime_types::polkadot_parachain::primitives::HeadData, - runtime_types::polkadot_primitives::v1::CoreIndex, - runtime_types::polkadot_primitives::v1::GroupIndex, - ), - CandidateIncluded( - runtime_types::polkadot_primitives::v1::CandidateReceipt< - ::subxt::sp_core::H256, - >, - runtime_types::polkadot_parachain::primitives::HeadData, - runtime_types::polkadot_primitives::v1::CoreIndex, - runtime_types::polkadot_primitives::v1::GroupIndex, - ), - CandidateTimedOut( - runtime_types::polkadot_primitives::v1::CandidateReceipt< - ::subxt::sp_core::H256, - >, - runtime_types::polkadot_parachain::primitives::HeadData, - runtime_types::polkadot_primitives::v1::CoreIndex, - ), - } - } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct AvailabilityBitfieldRecord<_0> { - pub bitfield: - runtime_types::polkadot_primitives::v1::AvailabilityBitfield, - pub submitted_at: _0, - } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct CandidatePendingAvailability<_0, _1> { - pub core: runtime_types::polkadot_primitives::v1::CoreIndex, - pub hash: runtime_types::polkadot_core_primitives::CandidateHash, - pub descriptor: - runtime_types::polkadot_primitives::v1::CandidateDescriptor<_0>, - pub availability_votes: - ::subxt::bitvec::vec::BitVec<::subxt::bitvec::order::Lsb0, u8>, - pub backers: - ::subxt::bitvec::vec::BitVec<::subxt::bitvec::order::Lsb0, u8>, - pub relay_parent_number: _1, - pub backed_in_number: _1, - pub backing_group: runtime_types::polkadot_primitives::v1::GroupIndex, - } - } - pub mod initializer { + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct Proposal<_0, _1> { + pub proposer: _0, + pub value: _1, + pub beneficiary: _0, + pub bond: _1, + } + } + pub mod pallet_uniques { + use super::runtime_types; + pub mod pallet { use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Call { - force_approve { up_to: u32 }, - } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Call { + create { # [codec (compact)] class : u32 , admin : :: subxt :: sp_runtime :: MultiAddress < :: subxt :: sp_core :: crypto :: AccountId32 , u32 > , } , force_create { # [codec (compact)] class : u32 , owner : :: subxt :: sp_runtime :: MultiAddress < :: subxt :: sp_core :: crypto :: AccountId32 , u32 > , free_holding : bool , } , destroy { # [codec (compact)] class : u32 , witness : runtime_types :: pallet_uniques :: types :: DestroyWitness , } , mint { # [codec (compact)] class : u32 , # [codec (compact)] instance : u32 , owner : :: subxt :: sp_runtime :: MultiAddress < :: subxt :: sp_core :: crypto :: AccountId32 , u32 > , } , burn { # [codec (compact)] class : u32 , # [codec (compact)] instance : u32 , check_owner : Option < :: subxt :: sp_runtime :: MultiAddress < :: subxt :: sp_core :: crypto :: AccountId32 , u32 > > , } , transfer { # [codec (compact)] class : u32 , # [codec (compact)] instance : u32 , dest : :: subxt :: sp_runtime :: MultiAddress < :: subxt :: sp_core :: crypto :: AccountId32 , u32 > , } , redeposit { # [codec (compact)] class : u32 , instances : Vec < u32 > , } , freeze { # [codec (compact)] class : u32 , # [codec (compact)] instance : u32 , } , thaw { # [codec (compact)] class : u32 , # [codec (compact)] instance : u32 , } , freeze_class { # [codec (compact)] class : u32 , } , thaw_class { # [codec (compact)] class : u32 , } , transfer_ownership { # [codec (compact)] class : u32 , owner : :: subxt :: sp_runtime :: MultiAddress < :: subxt :: sp_core :: crypto :: AccountId32 , u32 > , } , set_team { # [codec (compact)] class : u32 , issuer : :: subxt :: sp_runtime :: MultiAddress < :: subxt :: sp_core :: crypto :: AccountId32 , u32 > , admin : :: subxt :: sp_runtime :: MultiAddress < :: subxt :: sp_core :: crypto :: AccountId32 , u32 > , freezer : :: subxt :: sp_runtime :: MultiAddress < :: subxt :: sp_core :: crypto :: AccountId32 , u32 > , } , approve_transfer { # [codec (compact)] class : u32 , # [codec (compact)] instance : u32 , delegate : :: subxt :: sp_runtime :: MultiAddress < :: subxt :: sp_core :: crypto :: AccountId32 , u32 > , } , cancel_approval { # [codec (compact)] class : u32 , # [codec (compact)] instance : u32 , maybe_check_delegate : Option < :: subxt :: sp_runtime :: MultiAddress < :: subxt :: sp_core :: crypto :: AccountId32 , u32 > > , } , force_asset_status { # [codec (compact)] class : u32 , owner : :: subxt :: sp_runtime :: MultiAddress < :: subxt :: sp_core :: crypto :: AccountId32 , u32 > , issuer : :: subxt :: sp_runtime :: MultiAddress < :: subxt :: sp_core :: crypto :: AccountId32 , u32 > , admin : :: subxt :: sp_runtime :: MultiAddress < :: subxt :: sp_core :: crypto :: AccountId32 , u32 > , freezer : :: subxt :: sp_runtime :: MultiAddress < :: subxt :: sp_core :: crypto :: AccountId32 , u32 > , free_holding : bool , is_frozen : bool , } , set_attribute { # [codec (compact)] class : u32 , maybe_instance : Option < u32 > , key : runtime_types :: frame_support :: storage :: bounded_vec :: BoundedVec < u8 > , value : runtime_types :: frame_support :: storage :: bounded_vec :: BoundedVec < u8 > , } , clear_attribute { # [codec (compact)] class : u32 , maybe_instance : Option < u32 > , key : runtime_types :: frame_support :: storage :: bounded_vec :: BoundedVec < u8 > , } , set_metadata { # [codec (compact)] class : u32 , # [codec (compact)] instance : u32 , data : runtime_types :: frame_support :: storage :: bounded_vec :: BoundedVec < u8 > , is_frozen : bool , } , clear_metadata { # [codec (compact)] class : u32 , # [codec (compact)] instance : u32 , } , set_class_metadata { # [codec (compact)] class : u32 , data : runtime_types :: frame_support :: storage :: bounded_vec :: BoundedVec < u8 > , is_frozen : bool , } , clear_class_metadata { # [codec (compact)] class : u32 , } , } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Error { + NoPermission, + Unknown, + AlreadyExists, + WrongOwner, + BadWitness, + InUse, + Frozen, + WrongDelegate, + NoDelegate, + Unapproved, } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct BufferedSessionChange { - pub validators: Vec< - runtime_types::polkadot_primitives::v0::validator_app::Public, - >, - pub queued: Vec< - runtime_types::polkadot_primitives::v0::validator_app::Public, - >, - pub session_index: u32, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Event { + Created( + u32, + ::subxt::sp_core::crypto::AccountId32, + ::subxt::sp_core::crypto::AccountId32, + ), + ForceCreated(u32, ::subxt::sp_core::crypto::AccountId32), + Destroyed(u32), + Issued(u32, u32, ::subxt::sp_core::crypto::AccountId32), + Transferred( + u32, + u32, + ::subxt::sp_core::crypto::AccountId32, + ::subxt::sp_core::crypto::AccountId32, + ), + Burned(u32, u32, ::subxt::sp_core::crypto::AccountId32), + Frozen(u32, u32), + Thawed(u32, u32), + ClassFrozen(u32), + ClassThawed(u32), + OwnerChanged(u32, ::subxt::sp_core::crypto::AccountId32), + TeamChanged( + u32, + ::subxt::sp_core::crypto::AccountId32, + ::subxt::sp_core::crypto::AccountId32, + ::subxt::sp_core::crypto::AccountId32, + ), + ApprovedTransfer( + u32, + u32, + ::subxt::sp_core::crypto::AccountId32, + ::subxt::sp_core::crypto::AccountId32, + ), + ApprovalCancelled( + u32, + u32, + ::subxt::sp_core::crypto::AccountId32, + ::subxt::sp_core::crypto::AccountId32, + ), + AssetStatusChanged(u32), + ClassMetadataSet( + u32, + runtime_types::frame_support::storage::bounded_vec::BoundedVec< + u8, + >, + bool, + ), + ClassMetadataCleared(u32), + MetadataSet( + u32, + u32, + runtime_types::frame_support::storage::bounded_vec::BoundedVec< + u8, + >, + bool, + ), + MetadataCleared(u32, u32), + Redeposited(u32, Vec), + AttributeSet( + u32, + Option, + runtime_types::frame_support::storage::bounded_vec::BoundedVec< + u8, + >, + runtime_types::frame_support::storage::bounded_vec::BoundedVec< + u8, + >, + ), + AttributeCleared( + u32, + Option, + runtime_types::frame_support::storage::bounded_vec::BoundedVec< + u8, + >, + ), } } - pub mod origin { + pub mod types { use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Origin { - Parachain(runtime_types::polkadot_parachain::primitives::Id), - } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ClassDetails<_0, _1> { + pub owner: _0, + pub issuer: _0, + pub admin: _0, + pub freezer: _0, + pub total_deposit: _1, + pub free_holding: bool, + pub instances: u32, + pub instance_metadatas: u32, + pub attributes: u32, + pub is_frozen: bool, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct ClassMetadata<_0> { + pub deposit: _0, + pub data: + runtime_types::frame_support::storage::bounded_vec::BoundedVec< + u8, + >, + pub is_frozen: bool, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct DestroyWitness { + #[codec(compact)] + pub instances: u32, + #[codec(compact)] + pub instance_metadatas: u32, + #[codec(compact)] + pub attributes: u32, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct InstanceDetails<_0, _1> { + pub owner: _0, + pub approved: Option<_0>, + pub is_frozen: bool, + pub deposit: _1, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct InstanceMetadata<_0> { + pub deposit: _0, + pub data: + runtime_types::frame_support::storage::bounded_vec::BoundedVec< + u8, + >, + pub is_frozen: bool, } } - pub mod paras { + } + pub mod pallet_utility { + use super::runtime_types; + pub mod pallet { use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Call { - force_set_current_code { para : runtime_types :: polkadot_parachain :: primitives :: Id , new_code : runtime_types :: polkadot_parachain :: primitives :: ValidationCode , } , force_set_current_head { para : runtime_types :: polkadot_parachain :: primitives :: Id , new_head : runtime_types :: polkadot_parachain :: primitives :: HeadData , } , force_schedule_code_upgrade { para : runtime_types :: polkadot_parachain :: primitives :: Id , new_code : runtime_types :: polkadot_parachain :: primitives :: ValidationCode , relay_parent_number : u32 , } , force_note_new_head { para : runtime_types :: polkadot_parachain :: primitives :: Id , new_head : runtime_types :: polkadot_parachain :: primitives :: HeadData , } , force_queue_action { para : runtime_types :: polkadot_parachain :: primitives :: Id , } , } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Error { - NotRegistered, - CannotOnboard, - CannotOffboard, - CannotUpgrade, - CannotDowngrade, - } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Event { - CurrentCodeUpdated( - runtime_types::polkadot_parachain::primitives::Id, - ), - CurrentHeadUpdated( - runtime_types::polkadot_parachain::primitives::Id, - ), - CodeUpgradeScheduled( - runtime_types::polkadot_parachain::primitives::Id, - ), - NewHeadNoted(runtime_types::polkadot_parachain::primitives::Id), - ActionQueued( - runtime_types::polkadot_parachain::primitives::Id, - u32, - ), - } - } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct ParaGenesisArgs { - pub genesis_head: - runtime_types::polkadot_parachain::primitives::HeadData, - pub validation_code: - runtime_types::polkadot_parachain::primitives::ValidationCode, - pub parachain: bool, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Call { + batch { + calls: Vec, + }, + as_derivative { + index: u16, + call: std::boxed::Box, + }, + batch_all { + calls: Vec, + }, } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum ParaLifecycle { - Onboarding, - Parathread, - Parachain, - UpgradingParathread, - DowngradingParachain, - OffboardingParathread, - OffboardingParachain, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Error { + TooManyCalls, } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct ParaPastCodeMeta < _0 > { pub upgrade_times : Vec < runtime_types :: polkadot_runtime_parachains :: paras :: ReplacementTimes < _0 > > , pub last_pruned : Option < _0 > , } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct ReplacementTimes<_0> { - pub expected_at: _0, - pub activated_at: _0, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Event { + BatchInterrupted(u32, runtime_types::sp_runtime::DispatchError), + BatchCompleted, + ItemCompleted, } } - pub mod paras_inherent { + } + pub mod pallet_vesting { + use super::runtime_types; + pub mod pallet { use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Call { - enter { - data: runtime_types::polkadot_primitives::v1::InherentData< - runtime_types::sp_runtime::generic::header::Header< - u32, - runtime_types::sp_runtime::traits::BlakeTwo256, - >, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Call { + vest, + vest_other { + target: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + }, + vested_transfer { + target: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + schedule: + runtime_types::pallet_vesting::vesting_info::VestingInfo< + u128, + u32, >, - }, - } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Error { - TooManyInclusionInherents, - InvalidParentHeader, - CandidateConcludedInvalid, - } + }, + force_vested_transfer { + source: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + target: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + u32, + >, + schedule: + runtime_types::pallet_vesting::vesting_info::VestingInfo< + u128, + u32, + >, + }, + merge_schedules { + schedule1_index: u32, + schedule2_index: u32, + }, } - } - pub mod scheduler { - use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum AssignmentKind { - Parachain, - Parathread( - runtime_types::polkadot_primitives::v0::collator_app::Public, - u32, - ), + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Error { + NotVesting, + AtMaxVestingSchedules, + AmountLow, + ScheduleIndexOutOfBounds, + InvalidScheduleParams, } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct CoreAssignment { pub core : runtime_types :: polkadot_primitives :: v1 :: CoreIndex , pub para_id : runtime_types :: polkadot_parachain :: primitives :: Id , pub kind : runtime_types :: polkadot_runtime_parachains :: scheduler :: AssignmentKind , pub group_idx : runtime_types :: polkadot_primitives :: v1 :: GroupIndex , } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct ParathreadClaimQueue { pub queue : Vec < runtime_types :: polkadot_runtime_parachains :: scheduler :: QueuedParathread > , pub next_core_offset : u32 , } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct QueuedParathread { - pub claim: runtime_types::polkadot_primitives::v1::ParathreadEntry, - pub core_offset: u32, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Event { + VestingUpdated(::subxt::sp_core::crypto::AccountId32, u128), + VestingCompleted(::subxt::sp_core::crypto::AccountId32), } } - pub mod shared { + pub mod vesting_info { use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Call {} + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct VestingInfo<_0, _1> { + pub locked: _0, + pub per_block: _0, + pub starting_block: _1, } } - pub mod ump { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Call { - service_overweight { index: u64, weight_limit: u64 }, - } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Error { - UnknownMessageIndex, - WeightOverLimit, - } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Event { - InvalidFormat([u8; 32usize]), - UnsupportedVersion([u8; 32usize]), - ExecutedUpward( - [u8; 32usize], - runtime_types::xcm::v2::traits::Outcome, - ), - WeightExhausted([u8; 32usize], u64, u64), - UpwardMessagesReceived( - runtime_types::polkadot_parachain::primitives::Id, - u32, - u32, - ), - OverweightEnqueued( - runtime_types::polkadot_parachain::primitives::Id, - [u8; 32usize], - u64, - u64, - ), - OverweightServiced(u64, u64), - } - } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub enum Releases { + V0, + V1, } } pub mod primitive_types { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct H256(pub [u8; 32usize]); } pub mod sp_arithmetic { @@ -16701,62 +17964,51 @@ pub mod api { pub mod fixed_point { use super::runtime_types; #[derive( - Debug, - Eq, - PartialEq, - :: codec :: Encode, - :: codec :: Decode, :: codec :: CompactAs, + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, )] pub struct FixedU128(pub u128); } pub mod per_things { use super::runtime_types; #[derive( - Debug, - Eq, - PartialEq, - :: codec :: Encode, - :: codec :: Decode, :: codec :: CompactAs, + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, )] pub struct PerU16(pub u16); #[derive( - Debug, - Eq, - PartialEq, - :: codec :: Encode, - :: codec :: Decode, :: codec :: CompactAs, + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, )] pub struct Perbill(pub u32); #[derive( - Debug, - Eq, - PartialEq, - :: codec :: Encode, - :: codec :: Decode, :: codec :: CompactAs, + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, )] pub struct Percent(pub u8); #[derive( - Debug, - Eq, - PartialEq, - :: codec :: Encode, - :: codec :: Decode, :: codec :: CompactAs, + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, )] pub struct Permill(pub u32); + #[derive( + :: codec :: CompactAs, + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + )] + pub struct Perquintill(pub u64); } } pub mod sp_authority_discovery { use super::runtime_types; pub mod app { use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Public(pub runtime_types::sp_core::sr25519::Public); } } @@ -16764,16 +18016,12 @@ pub mod api { use super::runtime_types; pub mod app { use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Public(pub runtime_types::sp_core::sr25519::Public); } pub mod digests { use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub enum NextConfigDescriptor { V1 { c: (u64, u64), @@ -16781,13 +18029,13 @@ pub mod api { }, } } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub enum AllowedSlots { PrimarySlots, PrimaryAndSecondaryPlainSlots, PrimaryAndSecondaryVRFSlots, } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct BabeEpochConfiguration { pub c: (u64, u64), pub allowed_slots: runtime_types::sp_consensus_babe::AllowedSlots, @@ -16795,7 +18043,7 @@ pub mod api { } pub mod sp_consensus_slots { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct EquivocationProof<_0, _1> { pub offender: _1, pub slot: runtime_types::sp_consensus_slots::Slot, @@ -16803,12 +18051,9 @@ pub mod api { pub second_header: _0, } #[derive( - Debug, - Eq, - PartialEq, - :: codec :: Encode, - :: codec :: Decode, :: codec :: CompactAs, + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, )] pub struct Slot(pub u64); } @@ -16816,9 +18061,7 @@ pub mod api { use super::runtime_types; pub mod changes_trie { use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct ChangesTrieConfiguration { pub digest_interval: u32, pub digest_levels: u32, @@ -16826,46 +18069,28 @@ pub mod api { } pub mod crypto { use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct AccountId32(pub [u8; 32usize]); - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct KeyTypeId(pub [u8; 4usize]); } pub mod ecdsa { use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub struct Public(pub [u8; 33usize]); - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Signature(pub [u8; 65usize]); } pub mod ed25519 { use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Public(pub [u8; 32usize]); - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Signature(pub [u8; 64usize]); } pub mod offchain { use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct OpaqueMultiaddr(pub Vec); - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct OpaqueNetworkState { pub peer_id: runtime_types::sp_core::OpaquePeerId, pub external_addresses: @@ -16874,34 +18099,26 @@ pub mod api { } pub mod sr25519 { use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Public(pub [u8; 32usize]); - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Signature(pub [u8; 64usize]); } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct OpaquePeerId(pub Vec); - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub enum Void {} } pub mod sp_finality_grandpa { use super::runtime_types; pub mod app { use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Public(pub runtime_types::sp_core::ed25519::Public); - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Signature(pub runtime_types::sp_core::ed25519::Signature); } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub enum Equivocation<_0, _1> { Prevote( runtime_types::finality_grandpa::Equivocation< @@ -16918,7 +18135,7 @@ pub mod api { >, ), } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct EquivocationProof<_0, _1> { pub set_id: u64, pub equivocation: @@ -16927,7 +18144,7 @@ pub mod api { } pub mod sp_npos_elections { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct Support<_0> { pub total: u128, pub voters: Vec<(_0, u128)>, @@ -16940,12 +18157,12 @@ pub mod api { pub mod digest { use super::runtime_types; #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, )] pub enum ChangesTrieSignal { NewConfiguration (Option < runtime_types :: sp_core :: changes_trie :: ChangesTrieConfiguration > ,) , } #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, )] pub struct Digest<_0> { pub logs: Vec< @@ -16953,7 +18170,7 @@ pub mod api { >, } #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, )] pub enum DigestItem<_0> { ChangesTrieRoot(_0), @@ -16970,7 +18187,7 @@ pub mod api { pub mod era { use super::runtime_types; #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, )] pub enum Era { Immortal, @@ -17234,7 +18451,7 @@ pub mod api { pub mod header { use super::runtime_types; #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, )] pub struct Header<_0, _1> { pub parent_hash: ::subxt::sp_core::H256, @@ -17252,7 +18469,7 @@ pub mod api { pub mod unchecked_extrinsic { use super::runtime_types; #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, )] pub struct UncheckedExtrinsic<_0, _1, _2, _3>( Vec, @@ -17262,9 +18479,7 @@ pub mod api { } pub mod multiaddress { use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub enum MultiAddress<_0, _1> { Id(_0), Index(_1), @@ -17275,18 +18490,16 @@ pub mod api { } pub mod traits { use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct BlakeTwo256 {} } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub enum ArithmeticError { Underflow, Overflow, DivisionByZero, } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub enum DispatchError { Other, CannotLookup, @@ -17297,19 +18510,13 @@ pub mod api { Token(runtime_types::sp_runtime::TokenError), Arithmetic(runtime_types::sp_runtime::ArithmeticError), } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub enum MultiSignature { Ed25519(runtime_types::sp_core::ed25519::Signature), Sr25519(runtime_types::sp_core::sr25519::Signature), Ecdsa(runtime_types::sp_core::ecdsa::Signature), } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] - pub enum MultiSigner { - Ed25519(runtime_types::sp_core::ed25519::Public), - Sr25519(runtime_types::sp_core::sr25519::Public), - Ecdsa(runtime_types::sp_core::ecdsa::Public), - } - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub enum TokenError { NoFunds, WouldDie, @@ -17322,7 +18529,7 @@ pub mod api { } pub mod sp_session { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct MembershipProof { pub session: u32, pub trie_nodes: Vec>, @@ -17333,18 +18540,24 @@ pub mod api { use super::runtime_types; pub mod offence { use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct OffenceDetails<_0, _1> { pub offender: _1, pub reporters: Vec<_0>, } } } + pub mod sp_transaction_storage_proof { + use super::runtime_types; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] + pub struct TransactionStorageProof { + pub chunk: Vec, + pub proof: Vec>, + } + } pub mod sp_version { use super::runtime_types; - #[derive(Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode)] + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode)] pub struct RuntimeVersion { pub spec_name: String, pub impl_name: String, @@ -17355,54 +18568,6 @@ pub mod api { pub transaction_version: u32, } } - pub mod xcm { - use super::runtime_types; - pub mod v2 { - use super::runtime_types; - pub mod traits { - use super::runtime_types; - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Error { - Overflow, - Unimplemented, - UntrustedReserveLocation, - UntrustedTeleportLocation, - MultiLocationFull, - MultiLocationNotInvertible, - BadOrigin, - InvalidLocation, - AssetNotFound, - FailedToTransactAsset, - NotWithdrawable, - LocationCannotHold, - ExceedsMaxMessageSize, - DestinationUnsupported, - Transport, - Unroutable, - UnknownClaim, - FailedToDecode, - TooMuchWeightRequired, - NotHoldingFees, - TooExpensive, - Trap(u64), - UnhandledXcmVersion, - WeightLimitReached(u64), - Barrier, - WeightNotComputable, - } - #[derive( - Debug, Eq, PartialEq, :: codec :: Encode, :: codec :: Decode, - )] - pub enum Outcome { - Complete(u64), - Incomplete(u64, runtime_types::xcm::v2::traits::Error), - Error(runtime_types::xcm::v2::traits::Error), - } - } - } - } } #[doc = r" Default configuration of common types for a target Substrate runtime."] #[derive(Clone, Debug, Default, Eq, PartialEq)] @@ -17477,15 +18642,15 @@ pub mod api { pub fn system(&self) -> system::storage::StorageApi<'a, T> { system::storage::StorageApi::new(self.client) } - pub fn scheduler(&self) -> scheduler::storage::StorageApi<'a, T> { - scheduler::storage::StorageApi::new(self.client) - } pub fn babe(&self) -> babe::storage::StorageApi<'a, T> { babe::storage::StorageApi::new(self.client) } pub fn timestamp(&self) -> timestamp::storage::StorageApi<'a, T> { timestamp::storage::StorageApi::new(self.client) } + pub fn authorship(&self) -> authorship::storage::StorageApi<'a, T> { + authorship::storage::StorageApi::new(self.client) + } pub fn indices(&self) -> indices::storage::StorageApi<'a, T> { indices::storage::StorageApi::new(self.client) } @@ -17497,24 +18662,17 @@ pub mod api { ) -> transaction_payment::storage::StorageApi<'a, T> { transaction_payment::storage::StorageApi::new(self.client) } - pub fn authorship(&self) -> authorship::storage::StorageApi<'a, T> { - authorship::storage::StorageApi::new(self.client) + pub fn election_provider_multi_phase( + &self, + ) -> election_provider_multi_phase::storage::StorageApi<'a, T> { + election_provider_multi_phase::storage::StorageApi::new(self.client) } pub fn staking(&self) -> staking::storage::StorageApi<'a, T> { staking::storage::StorageApi::new(self.client) } - pub fn offences(&self) -> offences::storage::StorageApi<'a, T> { - offences::storage::StorageApi::new(self.client) - } pub fn session(&self) -> session::storage::StorageApi<'a, T> { session::storage::StorageApi::new(self.client) } - pub fn grandpa(&self) -> grandpa::storage::StorageApi<'a, T> { - grandpa::storage::StorageApi::new(self.client) - } - pub fn im_online(&self) -> im_online::storage::StorageApi<'a, T> { - im_online::storage::StorageApi::new(self.client) - } pub fn democracy(&self) -> democracy::storage::StorageApi<'a, T> { democracy::storage::StorageApi::new(self.client) } @@ -17526,26 +18684,52 @@ pub mod api { ) -> technical_committee::storage::StorageApi<'a, T> { technical_committee::storage::StorageApi::new(self.client) } - pub fn phragmen_election(&self) -> phragmen_election::storage::StorageApi<'a, T> { - phragmen_election::storage::StorageApi::new(self.client) + pub fn elections(&self) -> elections::storage::StorageApi<'a, T> { + elections::storage::StorageApi::new(self.client) } pub fn technical_membership( &self, ) -> technical_membership::storage::StorageApi<'a, T> { technical_membership::storage::StorageApi::new(self.client) } + pub fn grandpa(&self) -> grandpa::storage::StorageApi<'a, T> { + grandpa::storage::StorageApi::new(self.client) + } pub fn treasury(&self) -> treasury::storage::StorageApi<'a, T> { treasury::storage::StorageApi::new(self.client) } - pub fn claims(&self) -> claims::storage::StorageApi<'a, T> { - claims::storage::StorageApi::new(self.client) + pub fn contracts(&self) -> contracts::storage::StorageApi<'a, T> { + contracts::storage::StorageApi::new(self.client) } - pub fn vesting(&self) -> vesting::storage::StorageApi<'a, T> { - vesting::storage::StorageApi::new(self.client) + pub fn sudo(&self) -> sudo::storage::StorageApi<'a, T> { + sudo::storage::StorageApi::new(self.client) + } + pub fn im_online(&self) -> im_online::storage::StorageApi<'a, T> { + im_online::storage::StorageApi::new(self.client) + } + pub fn offences(&self) -> offences::storage::StorageApi<'a, T> { + offences::storage::StorageApi::new(self.client) + } + pub fn randomness_collective_flip( + &self, + ) -> randomness_collective_flip::storage::StorageApi<'a, T> { + randomness_collective_flip::storage::StorageApi::new(self.client) } pub fn identity(&self) -> identity::storage::StorageApi<'a, T> { identity::storage::StorageApi::new(self.client) } + pub fn society(&self) -> society::storage::StorageApi<'a, T> { + society::storage::StorageApi::new(self.client) + } + pub fn recovery(&self) -> recovery::storage::StorageApi<'a, T> { + recovery::storage::StorageApi::new(self.client) + } + pub fn vesting(&self) -> vesting::storage::StorageApi<'a, T> { + vesting::storage::StorageApi::new(self.client) + } + pub fn scheduler(&self) -> scheduler::storage::StorageApi<'a, T> { + scheduler::storage::StorageApi::new(self.client) + } pub fn proxy(&self) -> proxy::storage::StorageApi<'a, T> { proxy::storage::StorageApi::new(self.client) } @@ -17558,55 +18742,28 @@ pub mod api { pub fn tips(&self) -> tips::storage::StorageApi<'a, T> { tips::storage::StorageApi::new(self.client) } - pub fn election_provider_multi_phase( - &self, - ) -> election_provider_multi_phase::storage::StorageApi<'a, T> { - election_provider_multi_phase::storage::StorageApi::new(self.client) - } - pub fn configuration(&self) -> configuration::storage::StorageApi<'a, T> { - configuration::storage::StorageApi::new(self.client) - } - pub fn paras_shared(&self) -> paras_shared::storage::StorageApi<'a, T> { - paras_shared::storage::StorageApi::new(self.client) - } - pub fn para_inclusion(&self) -> para_inclusion::storage::StorageApi<'a, T> { - para_inclusion::storage::StorageApi::new(self.client) - } - pub fn para_inherent(&self) -> para_inherent::storage::StorageApi<'a, T> { - para_inherent::storage::StorageApi::new(self.client) + pub fn assets(&self) -> assets::storage::StorageApi<'a, T> { + assets::storage::StorageApi::new(self.client) } - pub fn para_scheduler(&self) -> para_scheduler::storage::StorageApi<'a, T> { - para_scheduler::storage::StorageApi::new(self.client) + pub fn mmr(&self) -> mmr::storage::StorageApi<'a, T> { + mmr::storage::StorageApi::new(self.client) } - pub fn paras(&self) -> paras::storage::StorageApi<'a, T> { - paras::storage::StorageApi::new(self.client) + pub fn lottery(&self) -> lottery::storage::StorageApi<'a, T> { + lottery::storage::StorageApi::new(self.client) } - pub fn initializer(&self) -> initializer::storage::StorageApi<'a, T> { - initializer::storage::StorageApi::new(self.client) + pub fn gilt(&self) -> gilt::storage::StorageApi<'a, T> { + gilt::storage::StorageApi::new(self.client) } - pub fn dmp(&self) -> dmp::storage::StorageApi<'a, T> { - dmp::storage::StorageApi::new(self.client) + pub fn uniques(&self) -> uniques::storage::StorageApi<'a, T> { + uniques::storage::StorageApi::new(self.client) } - pub fn ump(&self) -> ump::storage::StorageApi<'a, T> { - ump::storage::StorageApi::new(self.client) - } - pub fn hrmp(&self) -> hrmp::storage::StorageApi<'a, T> { - hrmp::storage::StorageApi::new(self.client) - } - pub fn para_session_info(&self) -> para_session_info::storage::StorageApi<'a, T> { - para_session_info::storage::StorageApi::new(self.client) - } - pub fn registrar(&self) -> registrar::storage::StorageApi<'a, T> { - registrar::storage::StorageApi::new(self.client) - } - pub fn slots(&self) -> slots::storage::StorageApi<'a, T> { - slots::storage::StorageApi::new(self.client) - } - pub fn auctions(&self) -> auctions::storage::StorageApi<'a, T> { - auctions::storage::StorageApi::new(self.client) + pub fn transaction_storage( + &self, + ) -> transaction_storage::storage::StorageApi<'a, T> { + transaction_storage::storage::StorageApi::new(self.client) } - pub fn crowdloan(&self) -> crowdloan::storage::StorageApi<'a, T> { - crowdloan::storage::StorageApi::new(self.client) + pub fn bags_list(&self) -> bags_list::storage::StorageApi<'a, T> { + bags_list::storage::StorageApi::new(self.client) } } pub struct TransactionApi<'a, T: ::subxt::Config + ::subxt::ExtrinsicExtraData> { @@ -17619,8 +18776,8 @@ pub mod api { pub fn system(&self) -> system::calls::TransactionApi<'a, T> { system::calls::TransactionApi::new(self.client) } - pub fn scheduler(&self) -> scheduler::calls::TransactionApi<'a, T> { - scheduler::calls::TransactionApi::new(self.client) + pub fn utility(&self) -> utility::calls::TransactionApi<'a, T> { + utility::calls::TransactionApi::new(self.client) } pub fn babe(&self) -> babe::calls::TransactionApi<'a, T> { babe::calls::TransactionApi::new(self.client) @@ -17628,14 +18785,19 @@ pub mod api { pub fn timestamp(&self) -> timestamp::calls::TransactionApi<'a, T> { timestamp::calls::TransactionApi::new(self.client) } + pub fn authorship(&self) -> authorship::calls::TransactionApi<'a, T> { + authorship::calls::TransactionApi::new(self.client) + } pub fn indices(&self) -> indices::calls::TransactionApi<'a, T> { indices::calls::TransactionApi::new(self.client) } pub fn balances(&self) -> balances::calls::TransactionApi<'a, T> { balances::calls::TransactionApi::new(self.client) } - pub fn authorship(&self) -> authorship::calls::TransactionApi<'a, T> { - authorship::calls::TransactionApi::new(self.client) + pub fn election_provider_multi_phase( + &self, + ) -> election_provider_multi_phase::calls::TransactionApi<'a, T> { + election_provider_multi_phase::calls::TransactionApi::new(self.client) } pub fn staking(&self) -> staking::calls::TransactionApi<'a, T> { staking::calls::TransactionApi::new(self.client) @@ -17643,12 +18805,6 @@ pub mod api { pub fn session(&self) -> session::calls::TransactionApi<'a, T> { session::calls::TransactionApi::new(self.client) } - pub fn grandpa(&self) -> grandpa::calls::TransactionApi<'a, T> { - grandpa::calls::TransactionApi::new(self.client) - } - pub fn im_online(&self) -> im_online::calls::TransactionApi<'a, T> { - im_online::calls::TransactionApi::new(self.client) - } pub fn democracy(&self) -> democracy::calls::TransactionApi<'a, T> { democracy::calls::TransactionApi::new(self.client) } @@ -17660,31 +18816,44 @@ pub mod api { ) -> technical_committee::calls::TransactionApi<'a, T> { technical_committee::calls::TransactionApi::new(self.client) } - pub fn phragmen_election( - &self, - ) -> phragmen_election::calls::TransactionApi<'a, T> { - phragmen_election::calls::TransactionApi::new(self.client) + pub fn elections(&self) -> elections::calls::TransactionApi<'a, T> { + elections::calls::TransactionApi::new(self.client) } pub fn technical_membership( &self, ) -> technical_membership::calls::TransactionApi<'a, T> { technical_membership::calls::TransactionApi::new(self.client) } + pub fn grandpa(&self) -> grandpa::calls::TransactionApi<'a, T> { + grandpa::calls::TransactionApi::new(self.client) + } pub fn treasury(&self) -> treasury::calls::TransactionApi<'a, T> { treasury::calls::TransactionApi::new(self.client) } - pub fn claims(&self) -> claims::calls::TransactionApi<'a, T> { - claims::calls::TransactionApi::new(self.client) + pub fn contracts(&self) -> contracts::calls::TransactionApi<'a, T> { + contracts::calls::TransactionApi::new(self.client) } - pub fn vesting(&self) -> vesting::calls::TransactionApi<'a, T> { - vesting::calls::TransactionApi::new(self.client) + pub fn sudo(&self) -> sudo::calls::TransactionApi<'a, T> { + sudo::calls::TransactionApi::new(self.client) } - pub fn utility(&self) -> utility::calls::TransactionApi<'a, T> { - utility::calls::TransactionApi::new(self.client) + pub fn im_online(&self) -> im_online::calls::TransactionApi<'a, T> { + im_online::calls::TransactionApi::new(self.client) } pub fn identity(&self) -> identity::calls::TransactionApi<'a, T> { identity::calls::TransactionApi::new(self.client) } + pub fn society(&self) -> society::calls::TransactionApi<'a, T> { + society::calls::TransactionApi::new(self.client) + } + pub fn recovery(&self) -> recovery::calls::TransactionApi<'a, T> { + recovery::calls::TransactionApi::new(self.client) + } + pub fn vesting(&self) -> vesting::calls::TransactionApi<'a, T> { + vesting::calls::TransactionApi::new(self.client) + } + pub fn scheduler(&self) -> scheduler::calls::TransactionApi<'a, T> { + scheduler::calls::TransactionApi::new(self.client) + } pub fn proxy(&self) -> proxy::calls::TransactionApi<'a, T> { proxy::calls::TransactionApi::new(self.client) } @@ -17697,49 +18866,25 @@ pub mod api { pub fn tips(&self) -> tips::calls::TransactionApi<'a, T> { tips::calls::TransactionApi::new(self.client) } - pub fn election_provider_multi_phase( - &self, - ) -> election_provider_multi_phase::calls::TransactionApi<'a, T> { - election_provider_multi_phase::calls::TransactionApi::new(self.client) - } - pub fn configuration(&self) -> configuration::calls::TransactionApi<'a, T> { - configuration::calls::TransactionApi::new(self.client) + pub fn assets(&self) -> assets::calls::TransactionApi<'a, T> { + assets::calls::TransactionApi::new(self.client) } - pub fn paras_shared(&self) -> paras_shared::calls::TransactionApi<'a, T> { - paras_shared::calls::TransactionApi::new(self.client) + pub fn lottery(&self) -> lottery::calls::TransactionApi<'a, T> { + lottery::calls::TransactionApi::new(self.client) } - pub fn para_inclusion(&self) -> para_inclusion::calls::TransactionApi<'a, T> { - para_inclusion::calls::TransactionApi::new(self.client) + pub fn gilt(&self) -> gilt::calls::TransactionApi<'a, T> { + gilt::calls::TransactionApi::new(self.client) } - pub fn para_inherent(&self) -> para_inherent::calls::TransactionApi<'a, T> { - para_inherent::calls::TransactionApi::new(self.client) + pub fn uniques(&self) -> uniques::calls::TransactionApi<'a, T> { + uniques::calls::TransactionApi::new(self.client) } - pub fn paras(&self) -> paras::calls::TransactionApi<'a, T> { - paras::calls::TransactionApi::new(self.client) - } - pub fn initializer(&self) -> initializer::calls::TransactionApi<'a, T> { - initializer::calls::TransactionApi::new(self.client) - } - pub fn dmp(&self) -> dmp::calls::TransactionApi<'a, T> { - dmp::calls::TransactionApi::new(self.client) - } - pub fn ump(&self) -> ump::calls::TransactionApi<'a, T> { - ump::calls::TransactionApi::new(self.client) - } - pub fn hrmp(&self) -> hrmp::calls::TransactionApi<'a, T> { - hrmp::calls::TransactionApi::new(self.client) - } - pub fn registrar(&self) -> registrar::calls::TransactionApi<'a, T> { - registrar::calls::TransactionApi::new(self.client) - } - pub fn slots(&self) -> slots::calls::TransactionApi<'a, T> { - slots::calls::TransactionApi::new(self.client) - } - pub fn auctions(&self) -> auctions::calls::TransactionApi<'a, T> { - auctions::calls::TransactionApi::new(self.client) + pub fn transaction_storage( + &self, + ) -> transaction_storage::calls::TransactionApi<'a, T> { + transaction_storage::calls::TransactionApi::new(self.client) } - pub fn crowdloan(&self) -> crowdloan::calls::TransactionApi<'a, T> { - crowdloan::calls::TransactionApi::new(self.client) + pub fn bags_list(&self) -> bags_list::calls::TransactionApi<'a, T> { + bags_list::calls::TransactionApi::new(self.client) } } } diff --git a/tests/integration/frame/balances.rs b/tests/integration/frame/balances.rs index d1622b288d..e130a4bece 100644 --- a/tests/integration/frame/balances.rs +++ b/tests/integration/frame/balances.rs @@ -225,5 +225,5 @@ async fn constant_existential_deposit() { let balances_metadata = cxt.client().metadata().pallet("Balances").unwrap(); let constant_metadata = balances_metadata.constant("ExistentialDeposit").unwrap(); let existential_deposit = u128::decode(&mut &constant_metadata.value[..]).unwrap(); - assert_eq!(existential_deposit, 10_000_000_000); + assert_eq!(existential_deposit, 100_000_000_000_000); } diff --git a/tests/integration/frame/staking.rs b/tests/integration/frame/staking.rs index 25ea69359e..24071a0043 100644 --- a/tests/integration/frame/staking.rs +++ b/tests/integration/frame/staking.rs @@ -21,6 +21,7 @@ use crate::{ ValidatorPrefs, }, staking, + system, DefaultConfig, }, test_context, @@ -37,7 +38,6 @@ use subxt::{ Signer, }, Error, - ExtrinsicSuccess, RuntimeError, }; @@ -58,17 +58,16 @@ fn default_validator_prefs() -> ValidatorPrefs { async fn validate_with_controller_account() -> Result<(), Error> { let alice = PairSigner::::new(AccountKeyring::Alice.pair()); let cxt = test_context().await; - let announce_validator = cxt + let result = cxt .api .tx() .staking() .validate(default_validator_prefs()) .sign_and_submit_then_watch(&alice) - .await; - assert_matches!(announce_validator, Ok(ExtrinsicSuccess {block: _, extrinsic: _, events}) => { - // TOOD: this is unsatisfying – can we do better? - assert_eq!(events.len(), 2); - }); + .await?; + + let success = result.find_event::()?; + assert!(success.is_some()); Ok(()) } @@ -97,17 +96,17 @@ async fn nominate_with_controller_account() -> Result<(), Error> { let bob = PairSigner::::new(AccountKeyring::Bob.pair()); let cxt = test_context().await; - let nomination = cxt + let result = cxt .api .tx() .staking() .nominate(vec![bob.account_id().clone().into()]) .sign_and_submit_then_watch(&alice) - .await; - assert_matches!(nomination, Ok(ExtrinsicSuccess {block: _, extrinsic: _, events}) => { - // TOOD: this is unsatisfying – can we do better? - assert_eq!(events.len(), 2); - }); + .await?; + + let success = result.find_event::()?; + assert!(success.is_some()); + Ok(()) } diff --git a/tests/integration/runtime.rs b/tests/integration/runtime.rs index c3c368bced..1c1af2e044 100644 --- a/tests/integration/runtime.rs +++ b/tests/integration/runtime.rs @@ -14,5 +14,8 @@ // You should have received a copy of the GNU General Public License // along with subxt. If not, see . -#[subxt::subxt(runtime_metadata_path = "tests/integration/node_runtime.scale")] +#[subxt::subxt( + runtime_metadata_path = "tests/integration/node_runtime.scale", + generated_type_derives = "Debug, Eq, PartialEq", +)] pub mod node_runtime {}