diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 32519139c34..0fda1afd3ac 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -9,7 +9,7 @@ on: env: CARGO_TERM_COLOR: always # Use latest substrate for nightly runs: - SUBSTRATE_URL: https://releases.parity.io/substrate/x86_64-debian:stretch/latest/substrate/substrate + SUBSTRATE_URL: https://releases.parity.io/substrate/x86_64-debian:bullseye/latest/substrate/substrate jobs: tests: diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 628d0920bd5..699cbe6da67 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -19,7 +19,7 @@ concurrency: env: CARGO_TERM_COLOR: always # TODO: Currently pointing at latest substrate; is there a suitable binary we can pin to here? - SUBSTRATE_URL: https://releases.parity.io/substrate/x86_64-debian:stretch/latest/substrate/substrate + SUBSTRATE_URL: https://releases.parity.io/substrate/x86_64-debian:bullseye/latest/substrate/substrate jobs: build: @@ -169,7 +169,7 @@ jobs: nonwasm_light_client_tests: name: "Test Light Client" runs-on: ubuntu-latest-16-cores - timeout-minutes: 15 + timeout-minutes: 25 steps: - name: Checkout sources uses: actions/checkout@v3 diff --git a/Cargo.lock b/Cargo.lock index ec732527c3f..a2a8909e2a0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1373,6 +1373,17 @@ name = "frame-metadata" version = "15.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "878babb0b136e731cc77ec2fd883ff02745ff21e6fb662729953d44923df009c" +dependencies = [ + "cfg-if", + "parity-scale-codec", + "scale-info", +] + +[[package]] +name = "frame-metadata" +version = "16.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87cf1549fba25a6fcac22785b61698317d958e96cac72a59102ea45b9ae64692" dependencies = [ "cfg-if", "parity-scale-codec", @@ -1953,7 +1964,7 @@ name = "integration-tests" version = "0.29.0" dependencies = [ "assert_matches", - "frame-metadata", + "frame-metadata 16.0.0", "futures", "hex", "parity-scale-codec", @@ -3200,9 +3211,9 @@ dependencies = [ [[package]] name = "scale-info" -version = "2.8.0" +version = "2.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad560913365790f17cbf12479491169f01b9d46d29cfc7422bf8c64bdc61b731" +checksum = "35c0a159d0c45c12b20c5a844feb1fe4bea86e28f17b92a5f0c42193634d3782" dependencies = [ "bitvec", "cfg-if", @@ -3214,9 +3225,9 @@ dependencies = [ [[package]] name = "scale-info-derive" -version = "2.8.0" +version = "2.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "19df9bd9ace6cc2fe19387c96ce677e823e07d017ceed253e7bb3d1d1bd9c73b" +checksum = "912e55f6d20e0e80d63733872b40e1227c0bce1e1ab81ba67d696339bfd7fd29" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -3233,7 +3244,7 @@ dependencies = [ "base58", "blake2", "either", - "frame-metadata", + "frame-metadata 15.1.0", "parity-scale-codec", "scale-bits", "scale-decode", @@ -4157,7 +4168,7 @@ dependencies = [ "blake2", "derivative", "either", - "frame-metadata", + "frame-metadata 16.0.0", "futures", "futures-util", "getrandom 0.2.10", @@ -4195,7 +4206,7 @@ version = "0.29.0" dependencies = [ "clap 4.3.11", "color-eyre", - "frame-metadata", + "frame-metadata 16.0.0", "hex", "jsonrpsee", "parity-scale-codec", @@ -4215,7 +4226,7 @@ name = "subxt-codegen" version = "0.29.0" dependencies = [ "bitvec", - "frame-metadata", + "frame-metadata 16.0.0", "heck", "hex", "jsonrpsee", @@ -4244,9 +4255,10 @@ dependencies = [ name = "subxt-metadata" version = "0.29.0" dependencies = [ + "assert_matches", "bitvec", "criterion", - "frame-metadata", + "frame-metadata 16.0.0", "parity-scale-codec", "scale-info", "sp-core-hashing", @@ -4696,7 +4708,7 @@ checksum = "497961ef93d974e23eb6f433eb5fe1b7930b659f06d12dec6fc44a8f554c0bba" name = "ui-tests" version = "0.29.0" dependencies = [ - "frame-metadata", + "frame-metadata 16.0.0", "parity-scale-codec", "scale-info", "subxt", diff --git a/Cargo.toml b/Cargo.toml index 8f7e8580c55..371bc816a74 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -45,7 +45,7 @@ console_error_panic_hook = "0.1.7" darling = "0.20.0" derivative = "2.2.0" either = "1.8.1" -frame-metadata = { version = "15.1.0", features = ["v14", "v15-unstable", "std"] } +frame-metadata = { version = "16.0.0", default-features = false, features = ["current", "std"] } futures = { version = "0.3.27", default-features = false, features = ["std"] } getrandom = { version = "0.2", default-features = false } hex = "0.4.3" @@ -58,7 +58,7 @@ proc-macro-error = "1.0.4" proc-macro2 = "1.0.63" quote = "1.0.29" regex = "1.9.1" -scale-info = "2.8.0" +scale-info = "2.9.0" scale-value = "0.10.0" scale-bits = "0.3" scale-decode = "0.7.0" diff --git a/artifacts/polkadot_metadata_full.scale b/artifacts/polkadot_metadata_full.scale index b6be3b8f751..e49aa00fe61 100644 Binary files a/artifacts/polkadot_metadata_full.scale and b/artifacts/polkadot_metadata_full.scale differ diff --git a/artifacts/polkadot_metadata_small.scale b/artifacts/polkadot_metadata_small.scale index 3adf33c93a8..237be37538d 100644 Binary files a/artifacts/polkadot_metadata_small.scale and b/artifacts/polkadot_metadata_small.scale differ diff --git a/artifacts/polkadot_metadata_tiny.scale b/artifacts/polkadot_metadata_tiny.scale index c4a9bb285c5..10277b8f8da 100644 Binary files a/artifacts/polkadot_metadata_tiny.scale and b/artifacts/polkadot_metadata_tiny.scale differ diff --git a/cli/src/commands/explore/mod.rs b/cli/src/commands/explore/mod.rs index dba52364d88..fda0d3352ae 100644 --- a/cli/src/commands/explore/mod.rs +++ b/cli/src/commands/explore/mod.rs @@ -167,7 +167,7 @@ pub mod tests { async fn test_commands() { // show pallets: let output = simulate_run("").await; - assert_eq!(output.unwrap(), "Usage:\n subxt explore \n explore a specific pallet\n\nAvailable values are:\n Balances\n Multisig\n Staking\n System\n"); + assert_eq!(output.unwrap(), "Usage:\n subxt explore \n explore a specific pallet\n\nAvailable values are:\n Balances\n Multisig\n ParaInherent\n Staking\n System\n Timestamp\n"); // if incorrect pallet, error: let output = simulate_run("abc123").await; assert!(output.is_err()); diff --git a/codegen/src/api/mod.rs b/codegen/src/api/mod.rs index 3159115cc5f..da0645b880a 100644 --- a/codegen/src/api/mod.rs +++ b/codegen/src/api/mod.rs @@ -289,13 +289,12 @@ impl RuntimeGenerator { ) -> Result { let item_mod_attrs = item_mod.attrs.clone(); let item_mod_ir = ir::ItemMod::try_from(item_mod)?; - let default_derives = derives.default_derives(); let type_gen = TypeGenerator::new( self.metadata.types(), "runtime_types", type_substitutes, - derives.clone(), + derives, crate_path.clone(), should_gen_docs, ); @@ -382,118 +381,6 @@ impl RuntimeGenerator { }) .collect::, CodegenError>>()?; - let outer_event_variants = self.metadata.pallets().filter_map(|p| { - let variant_name = format_ident!("{}", p.name()); - let mod_name = format_ident!("{}", p.name().to_string().to_snake_case()); - let index = proc_macro2::Literal::u8_unsuffixed(p.index()); - - p.event_ty_id().map(|_| { - quote! { - #[codec(index = #index)] - #variant_name(#mod_name::Event), - } - }) - }); - - let outer_event = quote! { - #default_derives - pub enum Event { - #( #outer_event_variants )* - } - }; - - let outer_extrinsic_variants = self.metadata.pallets().filter_map(|p| { - let variant_name = format_ident!("{}", p.name()); - let mod_name = format_ident!("{}", p.name().to_string().to_snake_case()); - let index = proc_macro2::Literal::u8_unsuffixed(p.index()); - - p.call_ty_id().map(|_| { - quote! { - #[codec(index = #index)] - #variant_name(#mod_name::Call), - } - }) - }); - - let outer_extrinsic = quote! { - #default_derives - pub enum Call { - #( #outer_extrinsic_variants )* - } - }; - - let root_event_if_arms = self.metadata.pallets().filter_map(|p| { - let variant_name_str = &p.name(); - let variant_name = format_ident!("{}", variant_name_str); - let mod_name = format_ident!("{}", variant_name_str.to_string().to_snake_case()); - - p.event_ty_id().map(|_| { - // An 'if' arm for the RootEvent impl to match this variant name: - quote! { - if pallet_name == #variant_name_str { - return Ok(Event::#variant_name(#mod_name::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata - )?)); - } - } - }) - }); - - let root_extrinsic_if_arms = self.metadata.pallets().filter_map(|p| { - let variant_name_str = p.name(); - let variant_name = format_ident!("{}", variant_name_str); - let mod_name = format_ident!("{}", variant_name_str.to_string().to_snake_case()); - p.call_ty_id().map(|_| { - // An 'if' arm for the RootExtrinsic impl to match this variant name: - quote! { - if pallet_name == #variant_name_str { - return Ok(Call::#variant_name(#mod_name::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata - )?)); - } - } - }) - }); - - let outer_error_variants = self.metadata.pallets().filter_map(|p| { - let variant_name = format_ident!("{}", p.name()); - let mod_name = format_ident!("{}", p.name().to_string().to_snake_case()); - let index = proc_macro2::Literal::u8_unsuffixed(p.index()); - - p.error_ty_id().map(|_| { - quote! { - #[codec(index = #index)] - #variant_name(#mod_name::Error), - } - }) - }); - - let outer_error = quote! { - #default_derives - pub enum Error { - #( #outer_error_variants )* - } - }; - - let root_error_if_arms = self.metadata.pallets().filter_map(|p| { - let variant_name_str = &p.name(); - let variant_name = format_ident!("{}", variant_name_str); - let mod_name = format_ident!("{}", variant_name_str.to_string().to_snake_case()); - - p.error_ty_id().map(|type_id| { - quote! { - if pallet_name == #variant_name_str { - let variant_error = #mod_name::Error::decode_with_metadata(cursor, #type_id, metadata)?; - return Ok(Error::#variant_name(variant_error)); - } - } - }) - }); - let mod_ident = &item_mod_ir.ident; let pallets_with_constants: Vec<_> = pallets_with_mod_names .iter() @@ -526,6 +413,12 @@ impl RuntimeGenerator { should_gen_docs, )?; + // Fetch the paths of the outer enums. + // Substrate exposes those under `kitchensink_runtime`, while Polkadot under `polkadot_runtime`. + let call_path = type_gen.resolve_type_path(self.metadata.outer_enums().call_enum_ty()); + let event_path = type_gen.resolve_type_path(self.metadata.outer_enums().event_enum_ty()); + let error_path = type_gen.resolve_type_path(self.metadata.outer_enums().error_enum_ty()); + Ok(quote! { #( #item_mod_attrs )* #[allow(dead_code, unused_imports, non_camel_case_types)] @@ -551,36 +444,14 @@ impl RuntimeGenerator { /// The error type returned when there is a runtime issue. pub type DispatchError = #types_mod_ident::sp_runtime::DispatchError; - #outer_event + /// The outer event enum. + pub type Event = #event_path; - impl #crate_path::events::RootEvent for Event { - fn root_event(pallet_bytes: &[u8], pallet_name: &str, pallet_ty: u32, metadata: &#crate_path::Metadata) -> Result { - use #crate_path::metadata::DecodeWithMetadata; - #( #root_event_if_arms )* - Err(#crate_path::ext::scale_decode::Error::custom(format!("Pallet name '{}' not found in root Event enum", pallet_name)).into()) - } - } - - #outer_extrinsic + /// The outer extrinsic enum. + pub type Call = #call_path; - impl #crate_path::blocks::RootExtrinsic for Call { - fn root_extrinsic(pallet_bytes: &[u8], pallet_name: &str, pallet_ty: u32, metadata: &#crate_path::Metadata) -> Result { - use #crate_path::metadata::DecodeWithMetadata; - #( #root_extrinsic_if_arms )* - Err(#crate_path::ext::scale_decode::Error::custom(format!("Pallet name '{}' not found in root Call enum", pallet_name)).into()) - } - } - - #outer_error - - impl #crate_path::error::RootError for Error { - fn root_error(pallet_bytes: &[u8], pallet_name: &str, metadata: &#crate_path::Metadata) -> Result { - use #crate_path::metadata::DecodeWithMetadata; - let cursor = &mut &pallet_bytes[..]; - #( #root_error_if_arms )* - Err(#crate_path::ext::scale_decode::Error::custom(format!("Pallet name '{}' not found in root Error enum", pallet_name)).into()) - } - } + /// The outer error enum representing the DispatchError's Module variant. + pub type Error = #error_path; pub fn constants() -> ConstantsApi { ConstantsApi diff --git a/codegen/src/error.rs b/codegen/src/error.rs index 9a3d977332b..f293df2ee60 100644 --- a/codegen/src/error.rs +++ b/codegen/src/error.rs @@ -19,7 +19,7 @@ pub enum CodegenError { #[error("Failed IO for {0}, make sure that you are providing the correct file path for metadata: {1}")] Io(String, std::io::Error), /// Cannot decode the metadata bytes. - #[error("Could not decode metadata, only V14 metadata is supported: {0}")] + #[error("Could not decode metadata, only V14 and V15 metadata are supported: {0}")] Decode(#[from] codec::Error), /// Out of line modules are not supported. #[error("Out-of-line subxt modules are not supported, make sure you are providing a body to your module: pub mod polkadot {{ ... }}")] diff --git a/codegen/src/utils/fetch_metadata.rs b/codegen/src/utils/fetch_metadata.rs index 9d49e35ac4b..4c6f5fe90e4 100644 --- a/codegen/src/utils/fetch_metadata.rs +++ b/codegen/src/utils/fetch_metadata.rs @@ -204,12 +204,9 @@ async fn fetch_metadata( client: &impl ClientT, version: MetadataVersion, ) -> Result, FetchMetadataError> { - if !matches!( - version, - MetadataVersion::Latest | MetadataVersion::Version(14) - ) { + if !matches!(version, MetadataVersion::Version(14)) { return Err(FetchMetadataError::Other( - "The node can only return version 14 metadata but you've asked for something else" + "The node can only return version 14 metadata using the legacy API but you've asked for something else" .to_string(), )); } diff --git a/metadata/Cargo.toml b/metadata/Cargo.toml index 2024466d128..6e3669278d7 100644 --- a/metadata/Cargo.toml +++ b/metadata/Cargo.toml @@ -24,6 +24,7 @@ thiserror = { workspace = true } bitvec = { workspace = true, features = ["alloc"] } criterion = { workspace = true } scale-info = { workspace = true, features = ["bit-vec"] } +assert_matches = { workspace = true } [lib] # Without this, libtest cli opts interfere with criteron benches: diff --git a/metadata/src/from_into/v14.rs b/metadata/src/from_into/v14.rs index 677ebe27c74..6c0d286706c 100644 --- a/metadata/src/from_into/v14.rs +++ b/metadata/src/from_into/v14.rs @@ -2,6 +2,8 @@ // This file is dual-licensed as Apache-2.0 or GPL-3.0. // see LICENSE for license details. +use std::collections::HashMap; + use super::TryFromError; use crate::Metadata; use frame_metadata::{v14, v15}; @@ -21,7 +23,47 @@ impl From for v14::RuntimeMetadataV14 { } } -fn v15_to_v14(metadata: v15::RuntimeMetadataV15) -> v14::RuntimeMetadataV14 { +fn v15_to_v14(mut metadata: v15::RuntimeMetadataV15) -> v14::RuntimeMetadataV14 { + let types = &mut metadata.types; + + // In subxt we care about the `Address`, `Call`, `Signature` and `Extra` types. + let extrinsic_type = scale_info::Type { + path: scale_info::Path { + segments: vec![ + "primitives".to_string(), + "runtime".to_string(), + "generic".to_string(), + "UncheckedExtrinsic".to_string(), + ], + }, + type_params: vec![ + scale_info::TypeParameter:: { + name: "Address".to_string(), + ty: Some(metadata.extrinsic.address_ty), + }, + scale_info::TypeParameter:: { + name: "Call".to_string(), + ty: Some(metadata.extrinsic.call_ty), + }, + scale_info::TypeParameter:: { + name: "Signature".to_string(), + ty: Some(metadata.extrinsic.signature_ty), + }, + scale_info::TypeParameter:: { + name: "Extra".to_string(), + ty: Some(metadata.extrinsic.extra_ty), + }, + ], + type_def: scale_info::TypeDef::Composite(scale_info::TypeDefComposite { fields: vec![] }), + docs: vec![], + }; + let extrinsic_type_id = types.types.len() as u32; + + types.types.push(scale_info::PortableType { + id: extrinsic_type_id, + ty: extrinsic_type, + }); + v14::RuntimeMetadataV14 { types: metadata.types, pallets: metadata @@ -92,7 +134,7 @@ fn v15_to_v14(metadata: v15::RuntimeMetadataV15) -> v14::RuntimeMetadataV14 { }) .collect(), extrinsic: frame_metadata::v14::ExtrinsicMetadata { - ty: metadata.extrinsic.ty, + ty: extrinsic_type_id.into(), version: metadata.extrinsic.version, signed_extensions: metadata.extrinsic.signed_extensions.into_iter().map(|ext| { frame_metadata::v14::SignedExtensionMetadata { @@ -106,7 +148,13 @@ fn v15_to_v14(metadata: v15::RuntimeMetadataV15) -> v14::RuntimeMetadataV14 { } } -fn v14_to_v15(metadata: v14::RuntimeMetadataV14) -> v15::RuntimeMetadataV15 { +fn v14_to_v15(mut metadata: v14::RuntimeMetadataV14) -> v15::RuntimeMetadataV15 { + // Find the extrinsic types. + let extrinsic_parts = ExtrinsicPartTypeIds::new(&metadata) + .expect("Extrinsic types are always present on V14; qed"); + + let outer_enums = generate_outer_enums(&mut metadata); + v15::RuntimeMetadataV15 { types: metadata.types, pallets: metadata @@ -178,7 +226,6 @@ fn v14_to_v15(metadata: v14::RuntimeMetadataV14) -> v15::RuntimeMetadataV15 { }) .collect(), extrinsic: frame_metadata::v15::ExtrinsicMetadata { - ty: metadata.extrinsic.ty, version: metadata.extrinsic.version, signed_extensions: metadata.extrinsic.signed_extensions.into_iter().map(|ext| { frame_metadata::v15::SignedExtensionMetadata { @@ -186,9 +233,358 @@ fn v14_to_v15(metadata: v14::RuntimeMetadataV14) -> v15::RuntimeMetadataV15 { ty: ext.ty, additional_signed: ext.additional_signed, } - }).collect() + }).collect(), + address_ty: extrinsic_parts.address.into(), + call_ty: extrinsic_parts.call.into(), + signature_ty: extrinsic_parts.signature.into(), + extra_ty: extrinsic_parts.extra.into(), }, ty: metadata.ty, apis: Default::default(), + outer_enums, + custom: v15::CustomMetadata { + map: Default::default(), + }, + } +} + +/// The type IDs extracted from the metadata that represent the +/// generic type parameters passed to the `UncheckedExtrinsic` from +/// the substrate-based chain. +struct ExtrinsicPartTypeIds { + address: u32, + call: u32, + signature: u32, + extra: u32, +} + +impl ExtrinsicPartTypeIds { + /// Extract the generic type parameters IDs from the extrinsic type. + fn new(metadata: &v14::RuntimeMetadataV14) -> Result { + const ADDRESS: &str = "Address"; + const CALL: &str = "Call"; + const SIGNATURE: &str = "Signature"; + const EXTRA: &str = "Extra"; + + let extrinsic_id = metadata.extrinsic.ty.id; + let Some(extrinsic_ty) = metadata.types.resolve(extrinsic_id) else { + return Err("Missing extrinsic type".into()) + }; + + let params: HashMap<_, _> = extrinsic_ty + .type_params + .iter() + .map(|ty_param| { + let Some(ty) = ty_param.ty else { + return Err("Missing type param type from extrinsic".to_string()); + }; + + Ok((ty_param.name.as_str(), ty.id)) + }) + .collect::>()?; + + let Some(address) = params.get(ADDRESS) else { + return Err("Missing address type from extrinsic".into()); + }; + let Some(call) = params.get(CALL) else { + return Err("Missing call type from extrinsic".into()); + }; + let Some(signature) = params.get(SIGNATURE) else { + return Err("Missing signature type from extrinsic".into()); + }; + let Some(extra) = params.get(EXTRA) else { + return Err("Missing extra type from extrinsic".into()); + }; + + Ok(ExtrinsicPartTypeIds { + address: *address, + call: *call, + signature: *signature, + extra: *extra, + }) + } +} + +fn generate_outer_enums( + metadata: &mut v14::RuntimeMetadataV14, +) -> v15::OuterEnums { + let call_enum = metadata + .types + .types + .iter() + .find(|ty| { + let Some(ident) = ty.ty.path.ident() else { return false }; + ident == "RuntimeCall" + }) + .expect("RuntimeCall exists in V14; qed"); + + let event_enum = metadata + .types + .types + .iter() + .find(|ty| { + let Some(ident) = ty.ty.path.ident() else { return false }; + ident == "RuntimeEvent" + }) + .expect("RuntimeEvent exists in V14; qed"); + + let call_ty = call_enum.id.into(); + let event_ty = event_enum.id.into(); + + let mut path_segments = call_enum.ty.path.segments.clone(); + let last = path_segments + .last_mut() + .expect("Should have at least one segment checked above; qed"); + *last = "RuntimeError".to_string(); + + let error_ty_id = generate_runtime_error_type(metadata, path_segments); + + v15::OuterEnums { + call_enum_ty: call_ty, + event_enum_ty: event_ty, + error_enum_ty: error_ty_id.into(), + } +} + +/// Generate the `RuntimeError` type and add it to the metadata. +/// +/// Returns the `RuntimeError` Id from the registry. +fn generate_runtime_error_type( + metadata: &mut v14::RuntimeMetadataV14, + path_segments: Vec, +) -> u32 { + let variants: Vec<_> = metadata + .pallets + .iter() + .filter_map(|pallet| { + let Some(pallet_error) = &pallet.error else { return None }; + let path = format!("{}Error", pallet.name); + + Some(scale_info::Variant { + name: pallet.name.clone(), + fields: vec![scale_info::Field { + name: None, + ty: pallet_error.ty.id.into(), + type_name: Some(path), + docs: vec![], + }], + index: pallet.index, + docs: vec![], + }) + }) + .collect(); + + let error_type = scale_info::Type { + path: scale_info::Path { + segments: path_segments, + }, + type_params: vec![], + type_def: scale_info::TypeDef::Variant(scale_info::TypeDefVariant { variants }), + docs: vec![], + }; + + let error_type_id = metadata.types.types.len() as u32; + + metadata.types.types.push(scale_info::PortableType { + id: error_type_id, + ty: error_type, + }); + + error_type_id +} + +#[cfg(test)] +mod tests { + use super::*; + use codec::Decode; + use frame_metadata::{v15::RuntimeMetadataV15, RuntimeMetadata, RuntimeMetadataPrefixed}; + use scale_info::TypeDef; + use std::{fs, path::Path}; + + fn load_v15_metadata() -> RuntimeMetadataV15 { + let bytes = fs::read(Path::new("../artifacts/polkadot_metadata_full.scale")) + .expect("Cannot read metadata blob"); + let meta: RuntimeMetadataPrefixed = + Decode::decode(&mut &*bytes).expect("Cannot decode scale metadata"); + + match meta.1 { + RuntimeMetadata::V15(v15) => v15, + _ => panic!("Unsupported metadata version {:?}", meta.1), + } + } + + #[test] + fn test_extrinsic_id_generation() { + let v15 = load_v15_metadata(); + let v14 = v15_to_v14(v15.clone()); + + let ext_ty = v14.types.resolve(v14.extrinsic.ty.id).unwrap(); + let addr_id = ext_ty + .type_params + .iter() + .find_map(|ty| { + if ty.name == "Address" { + Some(ty.ty.unwrap().id) + } else { + None + } + }) + .unwrap(); + let call_id = ext_ty + .type_params + .iter() + .find_map(|ty| { + if ty.name == "Call" { + Some(ty.ty.unwrap().id) + } else { + None + } + }) + .unwrap(); + let extra_id = ext_ty + .type_params + .iter() + .find_map(|ty| { + if ty.name == "Extra" { + Some(ty.ty.unwrap().id) + } else { + None + } + }) + .unwrap(); + let signature_id = ext_ty + .type_params + .iter() + .find_map(|ty| { + if ty.name == "Signature" { + Some(ty.ty.unwrap().id) + } else { + None + } + }) + .unwrap(); + + // Position in type registry shouldn't change. + assert_eq!(v15.extrinsic.address_ty.id, addr_id); + assert_eq!(v15.extrinsic.call_ty.id, call_id); + assert_eq!(v15.extrinsic.extra_ty.id, extra_id); + assert_eq!(v15.extrinsic.signature_ty.id, signature_id); + + let v15_addr = v15.types.resolve(v15.extrinsic.address_ty.id).unwrap(); + let v14_addr = v14.types.resolve(addr_id).unwrap(); + assert_eq!(v15_addr, v14_addr); + + let v15_call = v15.types.resolve(v15.extrinsic.call_ty.id).unwrap(); + let v14_call = v14.types.resolve(call_id).unwrap(); + assert_eq!(v15_call, v14_call); + + let v15_extra = v15.types.resolve(v15.extrinsic.extra_ty.id).unwrap(); + let v14_extra = v14.types.resolve(extra_id).unwrap(); + assert_eq!(v15_extra, v14_extra); + + let v15_sign = v15.types.resolve(v15.extrinsic.signature_ty.id).unwrap(); + let v14_sign = v14.types.resolve(signature_id).unwrap(); + assert_eq!(v15_sign, v14_sign); + + // Ensure we don't lose the information when converting back to v15. + let converted_v15 = v14_to_v15(v14); + + let v15_addr = v15.types.resolve(v15.extrinsic.address_ty.id).unwrap(); + let converted_v15_addr = converted_v15 + .types + .resolve(converted_v15.extrinsic.address_ty.id) + .unwrap(); + assert_eq!(v15_addr, converted_v15_addr); + + let v15_call = v15.types.resolve(v15.extrinsic.call_ty.id).unwrap(); + let converted_v15_call = converted_v15 + .types + .resolve(converted_v15.extrinsic.call_ty.id) + .unwrap(); + assert_eq!(v15_call, converted_v15_call); + + let v15_extra = v15.types.resolve(v15.extrinsic.extra_ty.id).unwrap(); + let converted_v15_extra = converted_v15 + .types + .resolve(converted_v15.extrinsic.extra_ty.id) + .unwrap(); + assert_eq!(v15_extra, converted_v15_extra); + + let v15_sign = v15.types.resolve(v15.extrinsic.signature_ty.id).unwrap(); + let converted_v15_sign = converted_v15 + .types + .resolve(converted_v15.extrinsic.signature_ty.id) + .unwrap(); + assert_eq!(v15_sign, converted_v15_sign); + } + + #[test] + fn test_outer_enums_generation() { + let v15 = load_v15_metadata(); + let v14 = v15_to_v14(v15.clone()); + + // Convert back to v15 and expect to have the enum types properly generated. + let converted_v15 = v14_to_v15(v14); + + // RuntimeCall and RuntimeEvent were already present in the metadata v14. + let v15_call = v15.types.resolve(v15.outer_enums.call_enum_ty.id).unwrap(); + let converted_v15_call = converted_v15 + .types + .resolve(converted_v15.outer_enums.call_enum_ty.id) + .unwrap(); + assert_eq!(v15_call, converted_v15_call); + + let v15_event = v15.types.resolve(v15.outer_enums.event_enum_ty.id).unwrap(); + let converted_v15_event = converted_v15 + .types + .resolve(converted_v15.outer_enums.event_enum_ty.id) + .unwrap(); + assert_eq!(v15_event, converted_v15_event); + + let v15_error = v15.types.resolve(v15.outer_enums.error_enum_ty.id).unwrap(); + let converted_v15_error = converted_v15 + .types + .resolve(converted_v15.outer_enums.error_enum_ty.id) + .unwrap(); + + // Ensure they match in terms of variants and fields ids. + assert_eq!(v15_error.path, converted_v15_error.path); + + let TypeDef::Variant(v15_variant) = &v15_error.type_def else { + panic!("V15 error must be a variant"); + }; + + let TypeDef::Variant(converted_v15_variant) = &converted_v15_error.type_def else { + panic!("Converted V15 error must be a variant"); + }; + + assert_eq!( + v15_variant.variants.len(), + converted_v15_variant.variants.len() + ); + + for (v15_var, converted_v15_var) in v15_variant + .variants + .iter() + .zip(converted_v15_variant.variants.iter()) + { + // Variant name must match. + assert_eq!(v15_var.name, converted_v15_var.name); + assert_eq!(v15_var.fields.len(), converted_v15_var.fields.len()); + + // Fields must have the same type. + for (v15_field, converted_v15_field) in + v15_var.fields.iter().zip(converted_v15_var.fields.iter()) + { + assert_eq!(v15_field.ty.id, converted_v15_field.ty.id); + + let ty = v15.types.resolve(v15_field.ty.id).unwrap(); + let converted_ty = converted_v15 + .types + .resolve(converted_v15_field.ty.id) + .unwrap(); + assert_eq!(ty, converted_ty); + } + } } } diff --git a/metadata/src/from_into/v15.rs b/metadata/src/from_into/v15.rs index 50972cfbbe1..bb3b6a83bf6 100644 --- a/metadata/src/from_into/v15.rs +++ b/metadata/src/from_into/v15.rs @@ -6,7 +6,7 @@ use super::TryFromError; use crate::utils::variant_index::VariantIndex; use crate::{ utils::ordered_map::OrderedMap, ArcStr, ConstantMetadata, ExtrinsicMetadata, Metadata, - PalletMetadataInner, RuntimeApiMetadataInner, RuntimeApiMethodMetadata, + OuterEnumsMetadata, PalletMetadataInner, RuntimeApiMetadataInner, RuntimeApiMethodMetadata, RuntimeApiMethodParamMetadata, SignedExtensionMetadata, StorageEntryMetadata, StorageEntryModifier, StorageEntryType, StorageHasher, StorageMetadata, }; @@ -88,6 +88,11 @@ mod from_v15 { runtime_ty: m.ty.id, dispatch_error_ty, apis: apis.collect(), + outer_enums: OuterEnumsMetadata { + call_enum_ty: m.outer_enums.call_enum_ty.id, + event_enum_ty: m.outer_enums.event_enum_ty.id, + error_enum_ty: m.outer_enums.error_enum_ty.id, + }, }) } } @@ -104,13 +109,16 @@ mod from_v15 { fn from_extrinsic_metadata(value: v15::ExtrinsicMetadata) -> ExtrinsicMetadata { ExtrinsicMetadata { - ty: value.ty.id, version: value.version, signed_extensions: value .signed_extensions .into_iter() .map(from_signed_extension_metadata) .collect(), + address_ty: value.address_ty.id, + call_ty: value.call_ty.id, + signature_ty: value.signature_ty.id, + extra_ty: value.extra_ty.id, } } @@ -268,6 +276,14 @@ mod into_v15 { .into_iter() .map(from_runtime_api_metadata) .collect(), + outer_enums: v15::OuterEnums { + call_enum_ty: m.outer_enums.call_enum_ty.into(), + event_enum_ty: m.outer_enums.event_enum_ty.into(), + error_enum_ty: m.outer_enums.error_enum_ty.into(), + }, + custom: v15::CustomMetadata { + map: Default::default(), + }, } } } @@ -313,13 +329,16 @@ mod into_v15 { fn from_extrinsic_metadata(e: ExtrinsicMetadata) -> v15::ExtrinsicMetadata { v15::ExtrinsicMetadata { - ty: e.ty.into(), version: e.version, signed_extensions: e .signed_extensions .into_iter() .map(from_signed_extension_metadata) .collect(), + address_ty: e.address_ty.into(), + call_ty: e.call_ty.into(), + signature_ty: e.signature_ty.into(), + extra_ty: e.extra_ty.into(), } } diff --git a/metadata/src/lib.rs b/metadata/src/lib.rs index 4d6620d04e4..8403b33e00f 100644 --- a/metadata/src/lib.rs +++ b/metadata/src/lib.rs @@ -45,6 +45,8 @@ pub struct Metadata { extrinsic: ExtrinsicMetadata, /// The type ID of the `Runtime` type. runtime_ty: u32, + /// The types of the outer enums. + outer_enums: OuterEnumsMetadata, /// The type Id of the `DispatchError` type, which Subxt makes use of. dispatch_error_ty: Option, /// Details about each of the runtime API traits. @@ -77,6 +79,11 @@ impl Metadata { &self.extrinsic } + /// Return details about the outer enums. + pub fn outer_enums(&self) -> OuterEnumsMetadata { + self.outer_enums + } + /// An iterator over all of the available pallets. pub fn pallets(&self) -> impl ExactSizeIterator> { self.pallets.values().iter().map(|inner| PalletMetadata { @@ -440,8 +447,14 @@ impl ConstantMetadata { /// Metadata for the extrinsic type. #[derive(Debug, Clone)] pub struct ExtrinsicMetadata { - /// The type of the extrinsic. - ty: u32, + /// The type of the address that signs the extrinsic + address_ty: u32, + /// The type of the outermost Call enum. + call_ty: u32, + /// The type of the extrinsic's signature. + signature_ty: u32, + /// The type of the outermost Extra enum. + extra_ty: u32, /// Extrinsic version. version: u8, /// The signed extensions in the order they appear in the extrinsic. @@ -449,9 +462,22 @@ pub struct ExtrinsicMetadata { } impl ExtrinsicMetadata { - /// Type of the extrinsic. - pub fn ty(&self) -> u32 { - self.ty + /// The type of the address that signs the extrinsic + pub fn address_ty(&self) -> u32 { + self.address_ty + } + + /// The type of the outermost Call enum. + pub fn call_ty(&self) -> u32 { + self.call_ty + } + /// The type of the extrinsic's signature. + pub fn signature_ty(&self) -> u32 { + self.signature_ty + } + /// The type of the outermost Extra enum. + pub fn extra_ty(&self) -> u32 { + self.extra_ty } /// Extrinsic version. @@ -491,6 +517,34 @@ impl SignedExtensionMetadata { } } +/// Metadata for the outer enums. +#[derive(Debug, Clone, Copy)] +pub struct OuterEnumsMetadata { + /// The type of the outer call enum. + call_enum_ty: u32, + /// The type of the outer event enum. + event_enum_ty: u32, + /// The type of the outer error enum. + error_enum_ty: u32, +} + +impl OuterEnumsMetadata { + /// The type of the outer call enum. + pub fn call_enum_ty(&self) -> u32 { + self.call_enum_ty + } + + /// The type of the outer event enum. + pub fn event_enum_ty(&self) -> u32 { + self.event_enum_ty + } + + /// The type of the outer error enum. + pub fn error_enum_ty(&self) -> u32 { + self.error_enum_ty + } +} + /// Metadata for the available runtime APIs. #[derive(Debug, Clone, Copy)] pub struct RuntimeApiMetadata<'a> { diff --git a/metadata/src/utils/retain.rs b/metadata/src/utils/retain.rs index 9453d0e3098..d33315c2aa8 100644 --- a/metadata/src/utils/retain.rs +++ b/metadata/src/utils/retain.rs @@ -5,7 +5,8 @@ //! Utility functions to generate a subset of the metadata. use crate::{ - ExtrinsicMetadata, Metadata, PalletMetadataInner, RuntimeApiMetadataInner, StorageEntryType, + ExtrinsicMetadata, Metadata, OuterEnumsMetadata, PalletMetadataInner, RuntimeApiMetadataInner, + StorageEntryType, }; use scale_info::TypeDef; use std::collections::{BTreeMap, HashSet}; @@ -82,7 +83,10 @@ fn update_pallet_types(pallet: &mut PalletMetadataInner, map_ids: &BTreeMap) { - type_ids.insert(extrinsic.ty); + type_ids.insert(extrinsic.address_ty); + type_ids.insert(extrinsic.call_ty); + type_ids.insert(extrinsic.signature_ty); + type_ids.insert(extrinsic.extra_ty); for signed in &extrinsic.signed_extensions { type_ids.insert(signed.extra_ty); @@ -92,7 +96,10 @@ fn collect_extrinsic_types(extrinsic: &ExtrinsicMetadata, type_ids: &mut HashSet /// Update all type IDs of the provided extrinsic metadata using the new type IDs from the portable registry. fn update_extrinsic_types(extrinsic: &mut ExtrinsicMetadata, map_ids: &BTreeMap) { - update_type(&mut extrinsic.ty, map_ids); + update_type(&mut extrinsic.address_ty, map_ids); + update_type(&mut extrinsic.call_ty, map_ids); + update_type(&mut extrinsic.signature_ty, map_ids); + update_type(&mut extrinsic.extra_ty, map_ids); for signed in &mut extrinsic.signed_extensions { update_type(&mut signed.extra_ty, map_ids); @@ -122,6 +129,20 @@ fn update_runtime_api_types(apis: &mut [RuntimeApiMetadataInner], map_ids: &BTre } } +/// Collect the outer enums type IDs. +fn collect_outer_enums(enums: &OuterEnumsMetadata, type_ids: &mut HashSet) { + type_ids.insert(enums.call_enum_ty); + type_ids.insert(enums.event_enum_ty); + type_ids.insert(enums.error_enum_ty); +} + +/// Update all the type IDs for outer enums. +fn update_outer_enums(enums: &mut OuterEnumsMetadata, map_ids: &BTreeMap) { + update_type(&mut enums.call_enum_ty, map_ids); + update_type(&mut enums.event_enum_ty, map_ids); + update_type(&mut enums.error_enum_ty, map_ids); +} + /// Update the given type using the new type ID from the portable registry. /// /// # Panics @@ -136,38 +157,36 @@ fn update_type(ty: &mut u32, map_ids: &BTreeMap) { *ty = new_id; } -/// Strip any pallets out of the RuntimeCall type that aren't the ones we want to keep. -/// The RuntimeCall type is referenced in a bunch of places, so doing this prevents us from -/// holding on to stuff in pallets we've asked not to keep. -fn retain_pallets_in_runtime_call_type(metadata: &mut Metadata, mut filter: F) +/// Retain the enum type identified by ID and keep only the variants that +/// match the provided filter. +fn retain_variants_in_enum_type(metadata: &mut Metadata, id: u32, mut filter: F) where F: FnMut(&str) -> bool, { - let extrinsic_ty = metadata + let ty = metadata .types .types - .get_mut(metadata.extrinsic.ty as usize) - .expect("Metadata should contain extrinsic type in registry"); - - let Some(call_ty) = extrinsic_ty.ty.type_params - .iter_mut() - .find(|ty| ty.name == "Call") - .and_then(|ty| ty.ty) else { return; }; + .get_mut(id as usize) + .expect("Metadata should contain enum type in registry"); - let call_ty = metadata - .types - .types - .get_mut(call_ty.id as usize) - .expect("Metadata should contain Call type information"); - - let TypeDef::Variant(variant) = &mut call_ty.ty.type_def else { - panic!("Metadata Call type is expected to be a variant type"); + let TypeDef::Variant(variant) = &mut ty.ty.type_def else { + panic!("Metadata type is expected to be a variant type"); }; - // Remove all variants from the call type that aren't the pallet(s) we want to keep. + // Remove all variants from the type that aren't the pallet(s) we want to keep. variant.variants.retain(|v| filter(&v.name)); } +/// Strip any pallets out of the outer enum types that aren't the ones we want to keep. +fn retain_pallets_in_runtime_outer_types(metadata: &mut Metadata, mut filter: F) +where + F: FnMut(&str) -> bool, +{ + retain_variants_in_enum_type(metadata, metadata.outer_enums.call_enum_ty, &mut filter); + retain_variants_in_enum_type(metadata, metadata.outer_enums.event_enum_ty, &mut filter); + retain_variants_in_enum_type(metadata, metadata.outer_enums.error_enum_ty, &mut filter); +} + /// Generate a subset of the metadata that contains only the /// types needed to represent the provided pallets and runtime APIs. /// @@ -190,10 +209,13 @@ pub fn retain_metadata( { let mut type_ids = HashSet::new(); - // There is a special RuntimeCall type which points to all pallets and call types by default. + // There are special outer enum types that point to all pallets types (call, error, event) by default. // This brings in a significant chunk of types. We trim this down to only include variants // for the pallets we're retaining, to avoid this. - retain_pallets_in_runtime_call_type(metadata, &mut pallets_filter); + retain_pallets_in_runtime_outer_types(metadata, &mut pallets_filter); + + // Collect the stripped outer enums. + collect_outer_enums(&metadata.outer_enums, &mut type_ids); // Filter our pallet list to only those pallets we want to keep. Keep hold of all // type IDs in the pallets we're keeping. Retain all, if no filter specified. @@ -245,6 +267,7 @@ pub fn retain_metadata( let map_ids = metadata.types.retain(|id| type_ids.contains(&id)); // And finally, we can go and update all of our type IDs in the metadata as a result of this: + update_outer_enums(&mut metadata.outer_enums, &map_ids); for pallets in metadata.pallets.values_mut() { update_pallet_types(pallets, &map_ids); } @@ -257,6 +280,7 @@ pub fn retain_metadata( mod tests { use super::*; use crate::Metadata; + use assert_matches::assert_matches; use codec::Decode; use frame_metadata::{RuntimeMetadata, RuntimeMetadataPrefixed}; use std::{fs, path::Path}; @@ -281,6 +305,7 @@ mod tests { // Retain one pallet at a time ensuring the test does not panic. for pallet in metadata_cache.pallets() { let mut metadata = metadata_cache.clone(); + retain_metadata( &mut metadata, |pallet_name| pallet_name == pallet.name(), @@ -292,6 +317,21 @@ mod tests { &*metadata.pallets.get_by_index(0).unwrap().name, pallet.name() ); + + let id = metadata.outer_enums().call_enum_ty; + let ty = metadata.types.resolve(id).unwrap(); + let num_variants = if pallet.call_ty_id().is_some() { 1 } else { 0 }; + assert_matches!(&ty.type_def, TypeDef::Variant(variant) if variant.variants.len() == num_variants); + + let id = metadata.outer_enums().error_enum_ty; + let ty = metadata.types.resolve(id).unwrap(); + let num_variants = if pallet.error_ty_id().is_some() { 1 } else { 0 }; + assert_matches!(&ty.type_def, TypeDef::Variant(variant) if variant.variants.len() == num_variants); + + let id = metadata.outer_enums().event_enum_ty; + let ty = metadata.types.resolve(id).unwrap(); + let num_variants = if pallet.event_ty_id().is_some() { 1 } else { 0 }; + assert_matches!(&ty.type_def, TypeDef::Variant(variant) if variant.variants.len() == num_variants); } } diff --git a/metadata/src/utils/validation.rs b/metadata/src/utils/validation.rs index a16f33fae93..0ce0caf55d1 100644 --- a/metadata/src/utils/validation.rs +++ b/metadata/src/utils/validation.rs @@ -5,10 +5,10 @@ //! Utility functions for metadata validation. use crate::{ - ExtrinsicMetadata, Metadata, PalletMetadata, RuntimeApiMetadata, RuntimeApiMethodMetadata, - StorageEntryMetadata, StorageEntryType, + ExtrinsicMetadata, Metadata, OuterEnumsMetadata, PalletMetadata, RuntimeApiMetadata, + RuntimeApiMethodMetadata, StorageEntryMetadata, StorageEntryType, }; -use scale_info::{form::PortableForm, Field, PortableRegistry, TypeDef, Variant}; +use scale_info::{form::PortableForm, Field, PortableRegistry, TypeDef, TypeDefVariant, Variant}; use std::collections::HashSet; /// Predefined value to be returned when we already visited a type. @@ -104,6 +104,30 @@ fn get_variant_hash( concat_and_hash2(&variant_name_bytes, &variant_field_bytes) } +fn get_type_def_variant_hash( + registry: &PortableRegistry, + variant: &TypeDefVariant, + only_these_variants: Option<&[&str]>, + visited_ids: &mut HashSet, +) -> [u8; HASH_LEN] { + let variant_id_bytes = [TypeBeingHashed::Variant as u8; HASH_LEN]; + let variant_field_bytes = variant.variants.iter().fold([0u8; HASH_LEN], |bytes, var| { + // With EncodeAsType and DecodeAsType we no longer care which order the variants are in, + // as long as all of the names+types are there. XOR to not care about ordering. + let should_hash = only_these_variants + .as_ref() + .map(|only_these_variants| only_these_variants.contains(&var.name.as_str())) + .unwrap_or(true); + + if should_hash { + xor(bytes, get_variant_hash(registry, var, visited_ids)) + } else { + bytes + } + }); + concat_and_hash2(&variant_id_bytes, &variant_field_bytes) +} + /// Obtain the hash representation of a `scale_info::TypeDef`. fn get_type_def_hash( registry: &PortableRegistry, @@ -125,14 +149,7 @@ fn get_type_def_hash( concat_and_hash2(&composite_id_bytes, &composite_field_bytes) } TypeDef::Variant(variant) => { - let variant_id_bytes = [TypeBeingHashed::Variant as u8; HASH_LEN]; - let variant_field_bytes = - variant.variants.iter().fold([0u8; HASH_LEN], |bytes, var| { - // With EncodeAsType and DecodeAsType we no longer care which order the variants are in, - // as long as all of the names+types are there. XOR to not care about ordering. - xor(bytes, get_variant_hash(registry, var, visited_ids)) - }); - concat_and_hash2(&variant_id_bytes, &variant_field_bytes) + get_type_def_variant_hash(registry, variant, None, visited_ids) } TypeDef::Sequence(sequence) => concat_and_hash2( &[TypeBeingHashed::Sequence as u8; HASH_LEN], @@ -198,8 +215,16 @@ fn get_extrinsic_hash( ) -> [u8; HASH_LEN] { let mut visited_ids = HashSet::::new(); - let mut bytes = concat_and_hash2( - &get_type_hash(registry, extrinsic.ty, &mut visited_ids), + // Get the hashes of the extrinsic type. + let address_hash = get_type_hash(registry, extrinsic.address_ty, &mut visited_ids); + // The `RuntimeCall` type is intentionally omitted and hashed by the outer enums instead. + let signature_hash = get_type_hash(registry, extrinsic.signature_ty, &mut visited_ids); + let extra_hash = get_type_hash(registry, extrinsic.extra_ty, &mut visited_ids); + + let mut bytes = concat_and_hash4( + &address_hash, + &signature_hash, + &extra_hash, &[extrinsic.version; 32], ); @@ -215,6 +240,39 @@ fn get_extrinsic_hash( bytes } +/// Obtain the hash representation of the `frame_metadata::v15::OuterEnums`. +fn get_outer_enums_hash( + registry: &PortableRegistry, + enums: &OuterEnumsMetadata, + only_these_variants: Option<&[&str]>, +) -> [u8; HASH_LEN] { + /// Hash the provided enum type. + fn get_enum_hash( + registry: &PortableRegistry, + id: u32, + only_these_variants: Option<&[&str]>, + ) -> [u8; HASH_LEN] { + let ty = registry + .types + .get(id as usize) + .expect("Metadata should contain enum type in registry"); + + if let TypeDef::Variant(variant) = &ty.ty.type_def { + get_type_def_variant_hash(registry, variant, only_these_variants, &mut HashSet::new()) + } else { + get_type_hash(registry, id, &mut HashSet::new()) + } + } + + let call_hash = get_enum_hash(registry, enums.call_enum_ty, only_these_variants); + + let event_hash = get_enum_hash(registry, enums.event_enum_ty, only_these_variants); + + let error_hash = get_enum_hash(registry, enums.error_enum_ty, only_these_variants); + + concat_and_hash3(&call_hash, &event_hash, &error_hash) +} + /// Get the hash corresponding to a single storage entry. fn get_storage_entry_hash( registry: &PortableRegistry, @@ -441,8 +499,6 @@ impl<'a> MetadataHasher<'a> { /// Hash the given metadata. pub fn hash(&self) -> [u8; HASH_LEN] { - let mut visited_ids = HashSet::::new(); - let metadata = self.metadata; let pallet_hash = metadata.pallets().fold([0u8; HASH_LEN], |bytes, pallet| { @@ -480,9 +536,21 @@ impl<'a> MetadataHasher<'a> { }); let extrinsic_hash = get_extrinsic_hash(&metadata.types, &metadata.extrinsic); - let runtime_hash = get_type_hash(&metadata.types, metadata.runtime_ty(), &mut visited_ids); + let runtime_hash = + get_type_hash(&metadata.types, metadata.runtime_ty(), &mut HashSet::new()); + let outer_enums_hash = get_outer_enums_hash( + &metadata.types, + &metadata.outer_enums(), + self.specific_pallets.as_deref(), + ); - concat_and_hash4(&pallet_hash, &apis_hash, &extrinsic_hash, &runtime_hash) + concat_and_hash5( + &pallet_hash, + &apis_hash, + &extrinsic_hash, + &runtime_hash, + &outer_enums_hash, + ) } } @@ -552,9 +620,12 @@ mod tests { fn build_default_extrinsic() -> v15::ExtrinsicMetadata { v15::ExtrinsicMetadata { - ty: meta_type::<()>(), version: 0, signed_extensions: vec![], + address_ty: meta_type::<()>(), + call_ty: meta_type::<()>(), + signature_ty: meta_type::<()>(), + extra_ty: meta_type::<()>(), } } @@ -597,6 +668,14 @@ mod tests { build_default_extrinsic(), meta_type::<()>(), vec![], + v15::OuterEnums { + call_enum_ty: meta_type::<()>(), + event_enum_ty: meta_type::<()>(), + error_enum_ty: meta_type::<()>(), + }, + v15::CustomMetadata { + map: Default::default(), + }, ) .try_into() .expect("can build valid metadata") diff --git a/scripts/artifacts.sh b/scripts/artifacts.sh index f561228a2ae..cdf46ce10b3 100755 --- a/scripts/artifacts.sh +++ b/scripts/artifacts.sh @@ -12,10 +12,10 @@ # ``` # get the full metadata -cargo run --bin subxt metadata --version unstable > artifacts/polkadot_metadata_full.scale +cargo run --bin subxt metadata --version 15 > artifacts/polkadot_metadata_full.scale # use it to generate polkadot.rs -cargo run --bin subxt codegen --file artifacts/polkadot_metadata_full.scale | rustfmt > testing/integration-tests/src/codegen/polkadot.rs -# generate a metadata file that only contains the pallets Balances, Staking, System and Multisig -cargo run --bin subxt metadata --file artifacts/polkadot_metadata_full.scale --pallets "Balances,Staking,System,Multisig" > artifacts/polkadot_metadata_small.scale +cargo run --bin subxt codegen --file artifacts/polkadot_metadata_full.scale | rustfmt > testing/integration-tests/src/full_client/codegen/polkadot.rs +# generate a metadata file that only contains a few pallets that we need for our examples. +cargo run --bin subxt metadata --file artifacts/polkadot_metadata_full.scale --pallets "Balances,Staking,System,Multisig,Timestamp,ParaInherent" > artifacts/polkadot_metadata_small.scale # generate a metadata file that only contains no pallets cargo run --bin subxt metadata --file artifacts/polkadot_metadata_full.scale --pallets "" > artifacts/polkadot_metadata_tiny.scale diff --git a/subxt/src/blocks/extrinsic_types.rs b/subxt/src/blocks/extrinsic_types.rs index 92dc42c1961..78c470ac2db 100644 --- a/subxt/src/blocks/extrinsic_types.rs +++ b/subxt/src/blocks/extrinsic_types.rs @@ -15,8 +15,8 @@ use crate::{ use codec::Decode; use derivative::Derivative; -use scale_decode::DecodeAsFields; -use std::{collections::HashMap, sync::Arc}; +use scale_decode::{DecodeAsFields, DecodeAsType}; +use std::sync::Arc; /// Trait to uniquely identify the extrinsic's identity from the runtime metadata. /// @@ -36,23 +36,6 @@ pub trait StaticExtrinsic: DecodeAsFields { } } -/// This trait is implemented on the statically generated root extrinsic type, so that we're able -/// to decode it properly via a pallet that impls `DecodeAsMetadata`. This is necessary -/// because the "root extrinsic" type is generated using pallet info but doesn't actually exist in the -/// metadata types, so we have no easy way to decode things into it via type information and need a -/// little help via codegen. -#[doc(hidden)] -pub trait RootExtrinsic: Sized { - /// Given details of the pallet extrinsic we want to decode, and the name of the pallet, try to hand - /// back a "root extrinsic". - fn root_extrinsic( - pallet_bytes: &[u8], - pallet_name: &str, - pallet_extrinsic_ty: u32, - metadata: &Metadata, - ) -> Result; -} - /// The body of a block. pub struct Extrinsics { client: C, @@ -416,22 +399,17 @@ where } } - /// Attempt to decode these [`ExtrinsicDetails`] into a root extrinsic type (which includes + /// Attempt to decode these [`ExtrinsicDetails`] into an outer call enum type (which includes /// the pallet and extrinsic enum variants as well as the extrinsic fields). A compatible /// type for this is exposed via static codegen as a root level `Call` type. - pub fn as_root_extrinsic(&self) -> Result { - let md = self.extrinsic_metadata()?; - let pallet_extrinsic_ty = md.pallet.call_ty_id().ok_or_else(|| { - Error::Metadata(MetadataError::CallTypeNotFoundInPallet(md.pallet.index())) - })?; - - // Ignore root enum index. - E::root_extrinsic( - &self.call_bytes()[1..], - md.pallet.name(), - pallet_extrinsic_ty, - &self.metadata, - ) + pub fn as_root_extrinsic(&self) -> Result { + let decoded = E::decode_as_type( + &mut &self.call_bytes()[..], + self.metadata.outer_enums().call_enum_ty(), + self.metadata.types(), + )?; + + Ok(decoded) } } @@ -474,47 +452,11 @@ pub(crate) struct ExtrinsicPartTypeIds { impl ExtrinsicPartTypeIds { /// Extract the generic type parameters IDs from the extrinsic type. pub(crate) fn new(metadata: &Metadata) -> Result { - const ADDRESS: &str = "Address"; - const CALL: &str = "Call"; - const SIGNATURE: &str = "Signature"; - const EXTRA: &str = "Extra"; - - let id = metadata.extrinsic().ty(); - - let Some(ty) = metadata.types().resolve(id) else { - return Err(BlockError::MissingType); - }; - - let params: HashMap<_, _> = ty - .type_params - .iter() - .map(|ty_param| { - let Some(ty) = ty_param.ty else { - return Err(BlockError::MissingType); - }; - - Ok((ty_param.name.as_str(), ty.id)) - }) - .collect::>()?; - - let Some(address) = params.get(ADDRESS) else { - return Err(BlockError::MissingType); - }; - let Some(call) = params.get(CALL) else { - return Err(BlockError::MissingType); - }; - let Some(signature) = params.get(SIGNATURE) else { - return Err(BlockError::MissingType); - }; - let Some(extra) = params.get(EXTRA) else { - return Err(BlockError::MissingType); - }; - Ok(ExtrinsicPartTypeIds { - address: *address, - _call: *call, - signature: *signature, - extra: *extra, + address: metadata.extrinsic().address_ty(), + _call: metadata.extrinsic().call_ty(), + signature: metadata.extrinsic().signature_ty(), + extra: metadata.extrinsic().extra_ty(), }) } } @@ -616,10 +558,10 @@ impl ExtrinsicEvents { #[cfg(test)] mod tests { use super::*; - use crate::metadata::DecodeWithMetadata; use crate::{rpc::types::RuntimeVersion, OfflineClient, PolkadotConfig}; use assert_matches::assert_matches; use codec::{Decode, Encode}; + use frame_metadata::v15::{CustomMetadata, OuterEnums}; use frame_metadata::{ v15::{ExtrinsicMetadata, PalletCallMetadata, PalletMetadata, RuntimeMetadataV15}, RuntimeMetadataPrefixed, @@ -656,27 +598,6 @@ mod tests { Test(Pallet), } - // We need this in order to be able to decode into a root extrinsic type: - impl RootExtrinsic for RuntimeCall { - fn root_extrinsic( - mut pallet_bytes: &[u8], - pallet_name: &str, - pallet_extrinsic_ty: u32, - metadata: &Metadata, - ) -> Result { - if pallet_name == "Test" { - return Ok(RuntimeCall::Test(Pallet::decode_with_metadata( - &mut pallet_bytes, - pallet_extrinsic_ty, - metadata, - )?)); - } - panic!( - "Asked for pallet name '{pallet_name}', which isn't in our test RuntimeCall type" - ) - } - } - // The calls of the pallet. #[allow(unused)] #[derive( @@ -738,12 +659,28 @@ mod tests { }]; let extrinsic = ExtrinsicMetadata { - ty: meta_type::>(), version: 4, signed_extensions: vec![], + address_ty: meta_type::<()>(), + call_ty: meta_type::(), + signature_ty: meta_type::<()>(), + extra_ty: meta_type::<()>(), }; - let meta = RuntimeMetadataV15::new(pallets, extrinsic, meta_type::<()>(), vec![]); + let meta = RuntimeMetadataV15::new( + pallets, + extrinsic, + meta_type::<()>(), + vec![], + OuterEnums { + call_enum_ty: meta_type::(), + event_enum_ty: meta_type::<()>(), + error_enum_ty: meta_type::<()>(), + }, + CustomMetadata { + map: Default::default(), + }, + ); let runtime_metadata: RuntimeMetadataPrefixed = meta.into(); Metadata::new(runtime_metadata.try_into().unwrap()) diff --git a/subxt/src/blocks/mod.rs b/subxt/src/blocks/mod.rs index 3cb404a496b..085eebe9a50 100644 --- a/subxt/src/blocks/mod.rs +++ b/subxt/src/blocks/mod.rs @@ -10,6 +10,4 @@ mod extrinsic_types; pub use block_types::{Block, BlockBody}; pub use blocks_client::{subscribe_to_block_headers_filling_in_gaps, BlocksClient}; -pub use extrinsic_types::{ - ExtrinsicDetails, ExtrinsicEvents, Extrinsics, RootExtrinsic, StaticExtrinsic, -}; +pub use extrinsic_types::{ExtrinsicDetails, ExtrinsicEvents, Extrinsics, StaticExtrinsic}; diff --git a/subxt/src/client/online_client.rs b/subxt/src/client/online_client.rs index 244370a29d6..db242de3bff 100644 --- a/subxt/src/client/online_client.rs +++ b/subxt/src/client/online_client.rs @@ -129,16 +129,32 @@ impl OnlineClient { async fn fetch_metadata(rpc: &Rpc) -> Result { #[cfg(feature = "unstable-metadata")] { + /// The unstable metadata version number. + const UNSTABLE_METADATA_VERSION: u32 = u32::MAX; + // Try to fetch the latest unstable metadata, if that fails fall back to // fetching the latest stable metadata. - const V15_METADATA_VERSION: u32 = u32::MAX; - match rpc.metadata_at_version(V15_METADATA_VERSION).await { + match rpc.metadata_at_version(UNSTABLE_METADATA_VERSION).await { Ok(bytes) => Ok(bytes), - Err(_) => rpc.metadata().await, + Err(_) => OnlineClient::fetch_latest_stable_metadata(rpc).await, } } #[cfg(not(feature = "unstable-metadata"))] + OnlineClient::fetch_latest_stable_metadata(rpc).await + } + + /// Fetch the latest stable metadata from the node. + async fn fetch_latest_stable_metadata(rpc: &Rpc) -> Result { + // This is the latest stable metadata that subxt can utilize. + const V15_METADATA_VERSION: u32 = 15; + + // Try to fetch the metadata version. + if let Ok(bytes) = rpc.metadata_at_version(V15_METADATA_VERSION).await { + return Ok(bytes); + } + + // If that fails, fetch the metadata V14 using the old API. rpc.metadata().await } diff --git a/subxt/src/error/dispatch_error.rs b/subxt/src/error/dispatch_error.rs index eb5856620c5..b57986a13c4 100644 --- a/subxt/src/error/dispatch_error.rs +++ b/subxt/src/error/dispatch_error.rs @@ -7,11 +7,10 @@ use crate::metadata::{DecodeWithMetadata, Metadata}; use core::fmt::Debug; -use scale_decode::visitor::DecodeAsTypeResult; +use scale_decode::{visitor::DecodeAsTypeResult, DecodeAsType}; use std::borrow::Cow; use super::{Error, MetadataError}; -use crate::error::RootError; /// An error dispatching a transaction. #[derive(Debug, thiserror::Error, PartialEq, Eq)] @@ -127,13 +126,17 @@ pub enum TransactionalError { #[non_exhaustive] pub struct ModuleError { metadata: Metadata, - raw: RawModuleError, + /// Bytes representation: + /// - `bytes[0]`: pallet index + /// - `bytes[1]`: error index + /// - `bytes[2..]`: 3 bytes specific for the module error + bytes: [u8; 5], } impl PartialEq for ModuleError { fn eq(&self, other: &Self) -> bool { // A module error is the same if the raw underlying details are the same. - self.raw == other.raw + self.bytes == other.bytes } } @@ -154,27 +157,38 @@ impl std::fmt::Display for ModuleError { impl ModuleError { /// Return more details about this error. pub fn details(&self) -> Result { - let pallet = self.metadata.pallet_by_index_err(self.raw.pallet_index)?; + let pallet = self.metadata.pallet_by_index_err(self.pallet_index())?; let variant = pallet - .error_variant_by_index(self.raw.error[0]) - .ok_or_else(|| MetadataError::VariantIndexNotFound(self.raw.error[0]))?; + .error_variant_by_index(self.error_index()) + .ok_or_else(|| MetadataError::VariantIndexNotFound(self.error_index()))?; Ok(ModuleErrorDetails { pallet, variant }) } /// Return the underlying module error data that was decoded. - pub fn raw(&self) -> RawModuleError { - self.raw + pub fn bytes(&self) -> [u8; 5] { + self.bytes } - /// Attempts to decode the ModuleError into a value implementing the trait `RootError` - /// where the actual type of value is the generated top level enum `Error`. - pub fn as_root_error(&self) -> Result { - E::root_error( - &self.raw.error, - self.details()?.pallet.name(), - &self.metadata, - ) + /// Obtain the pallet index from the underlying byte data. + pub fn pallet_index(&self) -> u8 { + self.bytes[0] + } + + /// Obtain the error index from the underlying byte data. + pub fn error_index(&self) -> u8 { + self.bytes[1] + } + + /// Attempts to decode the ModuleError into the top outer Error enum. + pub fn as_root_error(&self) -> Result { + let decoded = E::decode_as_type( + &mut &self.bytes[..], + self.metadata.outer_enums().error_enum_ty(), + self.metadata.types(), + )?; + + Ok(decoded) } } @@ -186,25 +200,6 @@ pub struct ModuleErrorDetails<'a> { pub variant: &'a scale_info::Variant, } -/// The error details about a module error that has occurred. -/// -/// **Note**: Structure used to obtain the underlying bytes of a ModuleError. -#[derive(Clone, Copy, Debug, PartialEq, Eq)] -pub struct RawModuleError { - /// Index of the pallet that the error came from. - pub pallet_index: u8, - /// Raw error bytes. - pub error: [u8; 4], -} - -impl RawModuleError { - /// Obtain the error index from the underlying byte data. - pub fn error_index(&self) -> u8 { - // Error index is utilized as the first byte from the error array. - self.error[0] - } -} - impl DispatchError { /// Attempt to decode a runtime [`DispatchError`]. #[doc(hidden)] @@ -290,21 +285,16 @@ impl DispatchError { // The old version is 2 bytes; a pallet and error index. // The new version is 5 bytes; a pallet and error index and then 3 extra bytes. - let raw = if module_bytes.len() == 2 { - RawModuleError { - pallet_index: module_bytes[0], - error: [module_bytes[1], 0, 0, 0], - } + let bytes = if module_bytes.len() == 2 { + [module_bytes[0], module_bytes[1], 0, 0, 0] } else if module_bytes.len() == 5 { - RawModuleError { - pallet_index: module_bytes[0], - error: [ - module_bytes[1], - module_bytes[2], - module_bytes[3], - module_bytes[4], - ], - } + [ + module_bytes[0], + module_bytes[1], + module_bytes[2], + module_bytes[3], + module_bytes[4], + ] } else { tracing::warn!("Can't decode error sp_runtime::DispatchError: bytes do not match known shapes"); // Return _all_ of the bytes; every "unknown" return should be consistent. @@ -312,7 +302,7 @@ impl DispatchError { }; // And return our outward-facing version: - DispatchError::Module(ModuleError { metadata, raw }) + DispatchError::Module(ModuleError { metadata, bytes }) } }; diff --git a/subxt/src/error/mod.rs b/subxt/src/error/mod.rs index c47e27babc5..f6d5687cc93 100644 --- a/subxt/src/error/mod.rs +++ b/subxt/src/error/mod.rs @@ -13,7 +13,7 @@ pub use crate::client::LightClientError; // Re-export dispatch error types: pub use dispatch_error::{ - ArithmeticError, DispatchError, ModuleError, RawModuleError, TokenError, TransactionalError, + ArithmeticError, DispatchError, ModuleError, TokenError, TransactionalError, }; // Re-expose the errors we use from other crates here: @@ -225,15 +225,3 @@ pub enum MetadataError { #[error("The generated code is not compatible with the node")] IncompatibleCodegen, } - -/// This trait is implemented on the statically generated root ModuleError type -#[doc(hidden)] -pub trait RootError: Sized { - /// Given details of the pallet error we want to decode - fn root_error( - // typically a [u8; 4] encodes the error of a pallet - pallet_bytes: &[u8], - pallet_name: &str, - metadata: &Metadata, - ) -> Result; -} diff --git a/subxt/src/events/events_type.rs b/subxt/src/events/events_type.rs index 01bb5b8d062..784dd533be6 100644 --- a/subxt/src/events/events_type.rs +++ b/subxt/src/events/events_type.rs @@ -14,6 +14,7 @@ use crate::{ }; use codec::{Compact, Decode}; use derivative::Derivative; +use scale_decode::DecodeAsType; use std::sync::Arc; /// A collection of events obtained from a block, bundled with the necessary @@ -386,20 +387,16 @@ impl EventDetails { /// Attempt to decode these [`EventDetails`] into a root event type (which includes /// the pallet and event enum variants as well as the event fields). A compatible /// type for this is exposed via static codegen as a root level `Event` type. - pub fn as_root_event(&self) -> Result { - let ev_metadata = self.event_metadata(); - let pallet_bytes = &self.all_bytes[self.event_start_idx + 1..self.event_fields_end_idx]; - let pallet_event_ty = ev_metadata - .pallet - .event_ty_id() - .ok_or_else(|| MetadataError::EventTypeNotFoundInPallet(ev_metadata.pallet.index()))?; - - E::root_event( - pallet_bytes, - self.pallet_name(), - pallet_event_ty, - &self.metadata, - ) + pub fn as_root_event(&self) -> Result { + let bytes = &self.all_bytes[self.event_start_idx..self.event_fields_end_idx]; + + let decoded = E::decode_as_type( + &mut &bytes[..], + self.metadata.outer_enums().event_enum_ty(), + self.metadata.types(), + )?; + + Ok(decoded) } /// Return the topics associated with this event. @@ -414,32 +411,17 @@ pub struct EventMetadataDetails<'a> { pub variant: &'a scale_info::Variant, } -/// This trait is implemented on the statically generated root event type, so that we're able -/// to decode it properly via a pallet event that impls `DecodeAsMetadata`. This is necessary -/// becasue the "root event" type is generated using pallet info but doesn't actually exist in the -/// metadata types, so we have no easy way to decode things into it via type information and need a -/// little help via codegen. -#[doc(hidden)] -pub trait RootEvent: Sized { - /// Given details of the pallet event we want to decode, and the name of the pallet, try to hand - /// back a "root event". - fn root_event( - pallet_bytes: &[u8], - pallet_name: &str, - pallet_event_ty: u32, - metadata: &Metadata, - ) -> Result; -} - /// Event related test utilities used outside this module. #[cfg(test)] pub(crate) mod test_utils { use super::*; - use crate::metadata::DecodeWithMetadata; use crate::{Config, SubstrateConfig}; use codec::Encode; use frame_metadata::{ - v15::{ExtrinsicMetadata, PalletEventMetadata, PalletMetadata, RuntimeMetadataV15}, + v15::{ + CustomMetadata, ExtrinsicMetadata, OuterEnums, PalletEventMetadata, PalletMetadata, + RuntimeMetadataV15, + }, RuntimeMetadataPrefixed, }; use scale_info::{meta_type, TypeInfo}; @@ -460,25 +442,6 @@ pub(crate) mod test_utils { Test(Ev), } - // We need this in order to be able to decode into a root event type: - impl RootEvent for AllEvents { - fn root_event( - mut bytes: &[u8], - pallet_name: &str, - pallet_event_ty: u32, - metadata: &Metadata, - ) -> Result { - if pallet_name == "Test" { - return Ok(AllEvents::Test(Ev::decode_with_metadata( - &mut bytes, - pallet_event_ty, - metadata, - )?)); - } - panic!("Asked for pallet name '{pallet_name}', which isn't in our test AllEvents type") - } - } - /// This encodes to the same format an event is expected to encode to /// in node System.Events storage. #[derive(Encode)] @@ -546,12 +509,28 @@ pub(crate) mod test_utils { }]; let extrinsic = ExtrinsicMetadata { - ty: meta_type::>(), version: 0, signed_extensions: vec![], + address_ty: meta_type::<()>(), + call_ty: meta_type::(), + signature_ty: meta_type::<()>(), + extra_ty: meta_type::<()>(), }; - let meta = RuntimeMetadataV15::new(pallets, extrinsic, meta_type::<()>(), vec![]); + let meta = RuntimeMetadataV15::new( + pallets, + extrinsic, + meta_type::<()>(), + vec![], + OuterEnums { + call_enum_ty: meta_type::<()>(), + event_enum_ty: meta_type::>(), + error_enum_ty: meta_type::<()>(), + }, + CustomMetadata { + map: Default::default(), + }, + ); let runtime_metadata: RuntimeMetadataPrefixed = meta.into(); Metadata::new(runtime_metadata.try_into().unwrap()) diff --git a/subxt/src/events/mod.rs b/subxt/src/events/mod.rs index 52cb6436c0b..85ced23be92 100644 --- a/subxt/src/events/mod.rs +++ b/subxt/src/events/mod.rs @@ -11,12 +11,7 @@ mod events_type; use codec::{Decode, Encode}; pub use events_client::EventsClient; -pub use events_type::{ - EventDetails, - Events, - // Used in codegen but hidden from docs: - RootEvent, -}; +pub use events_type::{EventDetails, Events}; use scale_decode::DecodeAsFields; /// Trait to uniquely identify the events's identity from the runtime metadata. diff --git a/subxt/src/rpc/rpc.rs b/subxt/src/rpc/rpc.rs index 37dafb5f066..cf966b59a0f 100644 --- a/subxt/src/rpc/rpc.rs +++ b/subxt/src/rpc/rpc.rs @@ -365,6 +365,15 @@ impl Rpc { Ok(res) } + /// Provide a list of the supported metadata versions of the node. + pub async fn metadata_versions(&self) -> Result, Error> { + let versions = self + .state_call("Metadata_metadata_versions", None, None) + .await?; + + Ok(versions) + } + /// Execute runtime API call and return the specified runtime metadata version. pub async fn metadata_at_version(&self, version: u32) -> Result { let param = version.encode(); diff --git a/testing/integration-tests/src/full_client/codegen/polkadot.rs b/testing/integration-tests/src/full_client/codegen/polkadot.rs index bde0b56635c..b306c71f785 100644 --- a/testing/integration-tests/src/full_client/codegen/polkadot.rs +++ b/testing/integration-tests/src/full_client/codegen/polkadot.rs @@ -54,7 +54,6 @@ pub mod api { "Paras", "Initializer", "Dmp", - "Ump", "Hrmp", "ParaSessionInfo", "ParasDisputes", @@ -64,6 +63,7 @@ pub mod api { "Auctions", "Crowdloan", "XcmPallet", + "MessageQueue", ]; pub static RUNTIME_APIS: [&str; 17usize] = [ "Core", @@ -86,1252 +86,12 @@ pub mod api { ]; #[doc = r" The error type returned when there is a runtime issue."] pub type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Event { - #[codec(index = 0)] - System(system::Event), - #[codec(index = 1)] - Scheduler(scheduler::Event), - #[codec(index = 10)] - Preimage(preimage::Event), - #[codec(index = 4)] - Indices(indices::Event), - #[codec(index = 5)] - Balances(balances::Event), - #[codec(index = 32)] - TransactionPayment(transaction_payment::Event), - #[codec(index = 7)] - Staking(staking::Event), - #[codec(index = 8)] - Offences(offences::Event), - #[codec(index = 9)] - Session(session::Event), - #[codec(index = 11)] - Grandpa(grandpa::Event), - #[codec(index = 12)] - ImOnline(im_online::Event), - #[codec(index = 14)] - Democracy(democracy::Event), - #[codec(index = 15)] - Council(council::Event), - #[codec(index = 16)] - TechnicalCommittee(technical_committee::Event), - #[codec(index = 17)] - PhragmenElection(phragmen_election::Event), - #[codec(index = 18)] - TechnicalMembership(technical_membership::Event), - #[codec(index = 19)] - Treasury(treasury::Event), - #[codec(index = 20)] - ConvictionVoting(conviction_voting::Event), - #[codec(index = 21)] - Referenda(referenda::Event), - #[codec(index = 23)] - Whitelist(whitelist::Event), - #[codec(index = 24)] - Claims(claims::Event), - #[codec(index = 25)] - Vesting(vesting::Event), - #[codec(index = 26)] - Utility(utility::Event), - #[codec(index = 28)] - Identity(identity::Event), - #[codec(index = 29)] - Proxy(proxy::Event), - #[codec(index = 30)] - Multisig(multisig::Event), - #[codec(index = 34)] - Bounties(bounties::Event), - #[codec(index = 38)] - ChildBounties(child_bounties::Event), - #[codec(index = 35)] - Tips(tips::Event), - #[codec(index = 36)] - ElectionProviderMultiPhase(election_provider_multi_phase::Event), - #[codec(index = 37)] - VoterList(voter_list::Event), - #[codec(index = 39)] - NominationPools(nomination_pools::Event), - #[codec(index = 40)] - FastUnstake(fast_unstake::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 = 62)] - ParasDisputes(paras_disputes::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), - #[codec(index = 99)] - XcmPallet(xcm_pallet::Event), - } - impl ::subxt::events::RootEvent for Event { - fn root_event( - pallet_bytes: &[u8], - pallet_name: &str, - pallet_ty: u32, - metadata: &::subxt::Metadata, - ) -> Result { - use subxt::metadata::DecodeWithMetadata; - if pallet_name == "System" { - return Ok(Event::System(system::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Scheduler" { - return Ok(Event::Scheduler(scheduler::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Preimage" { - return Ok(Event::Preimage(preimage::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Indices" { - return Ok(Event::Indices(indices::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Balances" { - return Ok(Event::Balances(balances::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "TransactionPayment" { - return Ok(Event::TransactionPayment( - transaction_payment::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "Staking" { - return Ok(Event::Staking(staking::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Offences" { - return Ok(Event::Offences(offences::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Session" { - return Ok(Event::Session(session::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Grandpa" { - return Ok(Event::Grandpa(grandpa::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "ImOnline" { - return Ok(Event::ImOnline(im_online::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Democracy" { - return Ok(Event::Democracy(democracy::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Council" { - return Ok(Event::Council(council::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "TechnicalCommittee" { - return Ok(Event::TechnicalCommittee( - technical_committee::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "PhragmenElection" { - return Ok(Event::PhragmenElection( - phragmen_election::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "TechnicalMembership" { - return Ok(Event::TechnicalMembership( - technical_membership::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "Treasury" { - return Ok(Event::Treasury(treasury::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "ConvictionVoting" { - return Ok(Event::ConvictionVoting( - conviction_voting::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "Referenda" { - return Ok(Event::Referenda(referenda::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Whitelist" { - return Ok(Event::Whitelist(whitelist::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Claims" { - return Ok(Event::Claims(claims::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Vesting" { - return Ok(Event::Vesting(vesting::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Utility" { - return Ok(Event::Utility(utility::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Identity" { - return Ok(Event::Identity(identity::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Proxy" { - return Ok(Event::Proxy(proxy::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Multisig" { - return Ok(Event::Multisig(multisig::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Bounties" { - return Ok(Event::Bounties(bounties::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "ChildBounties" { - return Ok(Event::ChildBounties( - child_bounties::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "Tips" { - return Ok(Event::Tips(tips::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "ElectionProviderMultiPhase" { - return Ok(Event::ElectionProviderMultiPhase( - election_provider_multi_phase::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "VoterList" { - return Ok(Event::VoterList(voter_list::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "NominationPools" { - return Ok(Event::NominationPools( - nomination_pools::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "FastUnstake" { - return Ok(Event::FastUnstake( - fast_unstake::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "ParaInclusion" { - return Ok(Event::ParaInclusion( - para_inclusion::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "Paras" { - return Ok(Event::Paras(paras::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Ump" { - return Ok(Event::Ump(ump::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Hrmp" { - return Ok(Event::Hrmp(hrmp::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "ParasDisputes" { - return Ok(Event::ParasDisputes( - paras_disputes::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "Registrar" { - return Ok(Event::Registrar(registrar::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Slots" { - return Ok(Event::Slots(slots::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Auctions" { - return Ok(Event::Auctions(auctions::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Crowdloan" { - return Ok(Event::Crowdloan(crowdloan::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "XcmPallet" { - return Ok(Event::XcmPallet(xcm_pallet::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - Err(::subxt::ext::scale_decode::Error::custom(format!( - "Pallet name '{}' not found in root Event enum", - pallet_name - )) - .into()) - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Call { - #[codec(index = 0)] - System(system::Call), - #[codec(index = 1)] - Scheduler(scheduler::Call), - #[codec(index = 10)] - Preimage(preimage::Call), - #[codec(index = 2)] - Babe(babe::Call), - #[codec(index = 3)] - Timestamp(timestamp::Call), - #[codec(index = 4)] - Indices(indices::Call), - #[codec(index = 5)] - Balances(balances::Call), - #[codec(index = 7)] - Staking(staking::Call), - #[codec(index = 9)] - Session(session::Call), - #[codec(index = 11)] - Grandpa(grandpa::Call), - #[codec(index = 12)] - ImOnline(im_online::Call), - #[codec(index = 14)] - Democracy(democracy::Call), - #[codec(index = 15)] - Council(council::Call), - #[codec(index = 16)] - TechnicalCommittee(technical_committee::Call), - #[codec(index = 17)] - PhragmenElection(phragmen_election::Call), - #[codec(index = 18)] - TechnicalMembership(technical_membership::Call), - #[codec(index = 19)] - Treasury(treasury::Call), - #[codec(index = 20)] - ConvictionVoting(conviction_voting::Call), - #[codec(index = 21)] - Referenda(referenda::Call), - #[codec(index = 23)] - Whitelist(whitelist::Call), - #[codec(index = 24)] - Claims(claims::Call), - #[codec(index = 25)] - Vesting(vesting::Call), - #[codec(index = 26)] - Utility(utility::Call), - #[codec(index = 28)] - Identity(identity::Call), - #[codec(index = 29)] - Proxy(proxy::Call), - #[codec(index = 30)] - Multisig(multisig::Call), - #[codec(index = 34)] - Bounties(bounties::Call), - #[codec(index = 38)] - ChildBounties(child_bounties::Call), - #[codec(index = 35)] - Tips(tips::Call), - #[codec(index = 36)] - ElectionProviderMultiPhase(election_provider_multi_phase::Call), - #[codec(index = 37)] - VoterList(voter_list::Call), - #[codec(index = 39)] - NominationPools(nomination_pools::Call), - #[codec(index = 40)] - FastUnstake(fast_unstake::Call), - #[codec(index = 51)] - Configuration(configuration::Call), - #[codec(index = 52)] - ParasShared(paras_shared::Call), - #[codec(index = 53)] - ParaInclusion(para_inclusion::Call), - #[codec(index = 54)] - ParaInherent(para_inherent::Call), - #[codec(index = 56)] - Paras(paras::Call), - #[codec(index = 57)] - Initializer(initializer::Call), - #[codec(index = 59)] - Ump(ump::Call), - #[codec(index = 60)] - Hrmp(hrmp::Call), - #[codec(index = 62)] - ParasDisputes(paras_disputes::Call), - #[codec(index = 63)] - ParasSlashing(paras_slashing::Call), - #[codec(index = 70)] - Registrar(registrar::Call), - #[codec(index = 71)] - Slots(slots::Call), - #[codec(index = 72)] - Auctions(auctions::Call), - #[codec(index = 73)] - Crowdloan(crowdloan::Call), - #[codec(index = 99)] - XcmPallet(xcm_pallet::Call), - } - impl ::subxt::blocks::RootExtrinsic for Call { - fn root_extrinsic( - pallet_bytes: &[u8], - pallet_name: &str, - pallet_ty: u32, - metadata: &::subxt::Metadata, - ) -> Result { - use subxt::metadata::DecodeWithMetadata; - if pallet_name == "System" { - return Ok(Call::System(system::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Scheduler" { - return Ok(Call::Scheduler(scheduler::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Preimage" { - return Ok(Call::Preimage(preimage::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Babe" { - return Ok(Call::Babe(babe::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Timestamp" { - return Ok(Call::Timestamp(timestamp::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Indices" { - return Ok(Call::Indices(indices::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Balances" { - return Ok(Call::Balances(balances::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Staking" { - return Ok(Call::Staking(staking::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Session" { - return Ok(Call::Session(session::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Grandpa" { - return Ok(Call::Grandpa(grandpa::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "ImOnline" { - return Ok(Call::ImOnline(im_online::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Democracy" { - return Ok(Call::Democracy(democracy::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Council" { - return Ok(Call::Council(council::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "TechnicalCommittee" { - return Ok(Call::TechnicalCommittee( - technical_committee::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "PhragmenElection" { - return Ok(Call::PhragmenElection( - phragmen_election::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "TechnicalMembership" { - return Ok(Call::TechnicalMembership( - technical_membership::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "Treasury" { - return Ok(Call::Treasury(treasury::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "ConvictionVoting" { - return Ok(Call::ConvictionVoting( - conviction_voting::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "Referenda" { - return Ok(Call::Referenda(referenda::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Whitelist" { - return Ok(Call::Whitelist(whitelist::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Claims" { - return Ok(Call::Claims(claims::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Vesting" { - return Ok(Call::Vesting(vesting::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Utility" { - return Ok(Call::Utility(utility::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Identity" { - return Ok(Call::Identity(identity::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Proxy" { - return Ok(Call::Proxy(proxy::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Multisig" { - return Ok(Call::Multisig(multisig::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Bounties" { - return Ok(Call::Bounties(bounties::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "ChildBounties" { - return Ok(Call::ChildBounties( - child_bounties::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "Tips" { - return Ok(Call::Tips(tips::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "ElectionProviderMultiPhase" { - return Ok(Call::ElectionProviderMultiPhase( - election_provider_multi_phase::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "VoterList" { - return Ok(Call::VoterList(voter_list::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "NominationPools" { - return Ok(Call::NominationPools( - nomination_pools::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "FastUnstake" { - return Ok(Call::FastUnstake(fast_unstake::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Configuration" { - return Ok(Call::Configuration( - configuration::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "ParasShared" { - return Ok(Call::ParasShared(paras_shared::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "ParaInclusion" { - return Ok(Call::ParaInclusion( - para_inclusion::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "ParaInherent" { - return Ok(Call::ParaInherent( - para_inherent::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "Paras" { - return Ok(Call::Paras(paras::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Initializer" { - return Ok(Call::Initializer(initializer::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Ump" { - return Ok(Call::Ump(ump::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Hrmp" { - return Ok(Call::Hrmp(hrmp::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "ParasDisputes" { - return Ok(Call::ParasDisputes( - paras_disputes::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "ParasSlashing" { - return Ok(Call::ParasSlashing( - paras_slashing::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - )); - } - if pallet_name == "Registrar" { - return Ok(Call::Registrar(registrar::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Slots" { - return Ok(Call::Slots(slots::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Auctions" { - return Ok(Call::Auctions(auctions::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "Crowdloan" { - return Ok(Call::Crowdloan(crowdloan::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - if pallet_name == "XcmPallet" { - return Ok(Call::XcmPallet(xcm_pallet::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } - Err(::subxt::ext::scale_decode::Error::custom(format!( - "Pallet name '{}' not found in root Call enum", - pallet_name - )) - .into()) - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Error { - #[codec(index = 0)] - System(system::Error), - #[codec(index = 1)] - Scheduler(scheduler::Error), - #[codec(index = 10)] - Preimage(preimage::Error), - #[codec(index = 2)] - Babe(babe::Error), - #[codec(index = 4)] - Indices(indices::Error), - #[codec(index = 5)] - Balances(balances::Error), - #[codec(index = 7)] - Staking(staking::Error), - #[codec(index = 9)] - Session(session::Error), - #[codec(index = 11)] - Grandpa(grandpa::Error), - #[codec(index = 12)] - ImOnline(im_online::Error), - #[codec(index = 14)] - Democracy(democracy::Error), - #[codec(index = 15)] - Council(council::Error), - #[codec(index = 16)] - TechnicalCommittee(technical_committee::Error), - #[codec(index = 17)] - PhragmenElection(phragmen_election::Error), - #[codec(index = 18)] - TechnicalMembership(technical_membership::Error), - #[codec(index = 19)] - Treasury(treasury::Error), - #[codec(index = 20)] - ConvictionVoting(conviction_voting::Error), - #[codec(index = 21)] - Referenda(referenda::Error), - #[codec(index = 23)] - Whitelist(whitelist::Error), - #[codec(index = 24)] - Claims(claims::Error), - #[codec(index = 25)] - Vesting(vesting::Error), - #[codec(index = 26)] - Utility(utility::Error), - #[codec(index = 28)] - Identity(identity::Error), - #[codec(index = 29)] - Proxy(proxy::Error), - #[codec(index = 30)] - Multisig(multisig::Error), - #[codec(index = 34)] - Bounties(bounties::Error), - #[codec(index = 38)] - ChildBounties(child_bounties::Error), - #[codec(index = 35)] - Tips(tips::Error), - #[codec(index = 36)] - ElectionProviderMultiPhase(election_provider_multi_phase::Error), - #[codec(index = 37)] - VoterList(voter_list::Error), - #[codec(index = 39)] - NominationPools(nomination_pools::Error), - #[codec(index = 40)] - FastUnstake(fast_unstake::Error), - #[codec(index = 51)] - Configuration(configuration::Error), - #[codec(index = 53)] - ParaInclusion(para_inclusion::Error), - #[codec(index = 54)] - ParaInherent(para_inherent::Error), - #[codec(index = 56)] - Paras(paras::Error), - #[codec(index = 59)] - Ump(ump::Error), - #[codec(index = 60)] - Hrmp(hrmp::Error), - #[codec(index = 62)] - ParasDisputes(paras_disputes::Error), - #[codec(index = 63)] - ParasSlashing(paras_slashing::Error), - #[codec(index = 70)] - Registrar(registrar::Error), - #[codec(index = 71)] - Slots(slots::Error), - #[codec(index = 72)] - Auctions(auctions::Error), - #[codec(index = 73)] - Crowdloan(crowdloan::Error), - #[codec(index = 99)] - XcmPallet(xcm_pallet::Error), - } - impl ::subxt::error::RootError for Error { - fn root_error( - pallet_bytes: &[u8], - pallet_name: &str, - metadata: &::subxt::Metadata, - ) -> Result { - use subxt::metadata::DecodeWithMetadata; - let cursor = &mut &pallet_bytes[..]; - if pallet_name == "System" { - let variant_error = system::Error::decode_with_metadata(cursor, 491u32, metadata)?; - return Ok(Error::System(variant_error)); - } - if pallet_name == "Scheduler" { - let variant_error = - scheduler::Error::decode_with_metadata(cursor, 496u32, metadata)?; - return Ok(Error::Scheduler(variant_error)); - } - if pallet_name == "Preimage" { - let variant_error = - preimage::Error::decode_with_metadata(cursor, 501u32, metadata)?; - return Ok(Error::Preimage(variant_error)); - } - if pallet_name == "Babe" { - let variant_error = babe::Error::decode_with_metadata(cursor, 517u32, metadata)?; - return Ok(Error::Babe(variant_error)); - } - if pallet_name == "Indices" { - let variant_error = indices::Error::decode_with_metadata(cursor, 519u32, metadata)?; - return Ok(Error::Indices(variant_error)); - } - if pallet_name == "Balances" { - let variant_error = - balances::Error::decode_with_metadata(cursor, 530u32, metadata)?; - return Ok(Error::Balances(variant_error)); - } - if pallet_name == "Staking" { - let variant_error = staking::Error::decode_with_metadata(cursor, 554u32, metadata)?; - return Ok(Error::Staking(variant_error)); - } - if pallet_name == "Session" { - let variant_error = session::Error::decode_with_metadata(cursor, 561u32, metadata)?; - return Ok(Error::Session(variant_error)); - } - if pallet_name == "Grandpa" { - let variant_error = grandpa::Error::decode_with_metadata(cursor, 565u32, metadata)?; - return Ok(Error::Grandpa(variant_error)); - } - if pallet_name == "ImOnline" { - let variant_error = - im_online::Error::decode_with_metadata(cursor, 573u32, metadata)?; - return Ok(Error::ImOnline(variant_error)); - } - if pallet_name == "Democracy" { - let variant_error = - democracy::Error::decode_with_metadata(cursor, 590u32, metadata)?; - return Ok(Error::Democracy(variant_error)); - } - if pallet_name == "Council" { - let variant_error = council::Error::decode_with_metadata(cursor, 593u32, metadata)?; - return Ok(Error::Council(variant_error)); - } - if pallet_name == "TechnicalCommittee" { - let variant_error = - technical_committee::Error::decode_with_metadata(cursor, 595u32, metadata)?; - return Ok(Error::TechnicalCommittee(variant_error)); - } - if pallet_name == "PhragmenElection" { - let variant_error = - phragmen_election::Error::decode_with_metadata(cursor, 599u32, metadata)?; - return Ok(Error::PhragmenElection(variant_error)); - } - if pallet_name == "TechnicalMembership" { - let variant_error = - technical_membership::Error::decode_with_metadata(cursor, 601u32, metadata)?; - return Ok(Error::TechnicalMembership(variant_error)); - } - if pallet_name == "Treasury" { - let variant_error = - treasury::Error::decode_with_metadata(cursor, 607u32, metadata)?; - return Ok(Error::Treasury(variant_error)); - } - if pallet_name == "ConvictionVoting" { - let variant_error = - conviction_voting::Error::decode_with_metadata(cursor, 620u32, metadata)?; - return Ok(Error::ConvictionVoting(variant_error)); - } - if pallet_name == "Referenda" { - let variant_error = - referenda::Error::decode_with_metadata(cursor, 638u32, metadata)?; - return Ok(Error::Referenda(variant_error)); - } - if pallet_name == "Whitelist" { - let variant_error = - whitelist::Error::decode_with_metadata(cursor, 639u32, metadata)?; - return Ok(Error::Whitelist(variant_error)); - } - if pallet_name == "Claims" { - let variant_error = claims::Error::decode_with_metadata(cursor, 640u32, metadata)?; - return Ok(Error::Claims(variant_error)); - } - if pallet_name == "Vesting" { - let variant_error = vesting::Error::decode_with_metadata(cursor, 644u32, metadata)?; - return Ok(Error::Vesting(variant_error)); - } - if pallet_name == "Utility" { - let variant_error = utility::Error::decode_with_metadata(cursor, 645u32, metadata)?; - return Ok(Error::Utility(variant_error)); - } - if pallet_name == "Identity" { - let variant_error = - identity::Error::decode_with_metadata(cursor, 656u32, metadata)?; - return Ok(Error::Identity(variant_error)); - } - if pallet_name == "Proxy" { - let variant_error = proxy::Error::decode_with_metadata(cursor, 665u32, metadata)?; - return Ok(Error::Proxy(variant_error)); - } - if pallet_name == "Multisig" { - let variant_error = - multisig::Error::decode_with_metadata(cursor, 669u32, metadata)?; - return Ok(Error::Multisig(variant_error)); - } - if pallet_name == "Bounties" { - let variant_error = - bounties::Error::decode_with_metadata(cursor, 673u32, metadata)?; - return Ok(Error::Bounties(variant_error)); - } - if pallet_name == "ChildBounties" { - let variant_error = - child_bounties::Error::decode_with_metadata(cursor, 676u32, metadata)?; - return Ok(Error::ChildBounties(variant_error)); - } - if pallet_name == "Tips" { - let variant_error = tips::Error::decode_with_metadata(cursor, 678u32, metadata)?; - return Ok(Error::Tips(variant_error)); - } - if pallet_name == "ElectionProviderMultiPhase" { - let variant_error = election_provider_multi_phase::Error::decode_with_metadata( - cursor, 688u32, metadata, - )?; - return Ok(Error::ElectionProviderMultiPhase(variant_error)); - } - if pallet_name == "VoterList" { - let variant_error = - voter_list::Error::decode_with_metadata(cursor, 692u32, metadata)?; - return Ok(Error::VoterList(variant_error)); - } - if pallet_name == "NominationPools" { - let variant_error = - nomination_pools::Error::decode_with_metadata(cursor, 710u32, metadata)?; - return Ok(Error::NominationPools(variant_error)); - } - if pallet_name == "FastUnstake" { - let variant_error = - fast_unstake::Error::decode_with_metadata(cursor, 715u32, metadata)?; - return Ok(Error::FastUnstake(variant_error)); - } - if pallet_name == "Configuration" { - let variant_error = - configuration::Error::decode_with_metadata(cursor, 719u32, metadata)?; - return Ok(Error::Configuration(variant_error)); - } - if pallet_name == "ParaInclusion" { - let variant_error = - para_inclusion::Error::decode_with_metadata(cursor, 724u32, metadata)?; - return Ok(Error::ParaInclusion(variant_error)); - } - if pallet_name == "ParaInherent" { - let variant_error = - para_inherent::Error::decode_with_metadata(cursor, 730u32, metadata)?; - return Ok(Error::ParaInherent(variant_error)); - } - if pallet_name == "Paras" { - let variant_error = paras::Error::decode_with_metadata(cursor, 757u32, metadata)?; - return Ok(Error::Paras(variant_error)); - } - if pallet_name == "Ump" { - let variant_error = ump::Error::decode_with_metadata(cursor, 763u32, metadata)?; - return Ok(Error::Ump(variant_error)); - } - if pallet_name == "Hrmp" { - let variant_error = hrmp::Error::decode_with_metadata(cursor, 771u32, metadata)?; - return Ok(Error::Hrmp(variant_error)); - } - if pallet_name == "ParasDisputes" { - let variant_error = - paras_disputes::Error::decode_with_metadata(cursor, 780u32, metadata)?; - return Ok(Error::ParasDisputes(variant_error)); - } - if pallet_name == "ParasSlashing" { - let variant_error = - paras_slashing::Error::decode_with_metadata(cursor, 785u32, metadata)?; - return Ok(Error::ParasSlashing(variant_error)); - } - if pallet_name == "Registrar" { - let variant_error = - registrar::Error::decode_with_metadata(cursor, 787u32, metadata)?; - return Ok(Error::Registrar(variant_error)); - } - if pallet_name == "Slots" { - let variant_error = slots::Error::decode_with_metadata(cursor, 789u32, metadata)?; - return Ok(Error::Slots(variant_error)); - } - if pallet_name == "Auctions" { - let variant_error = - auctions::Error::decode_with_metadata(cursor, 794u32, metadata)?; - return Ok(Error::Auctions(variant_error)); - } - if pallet_name == "Crowdloan" { - let variant_error = - crowdloan::Error::decode_with_metadata(cursor, 797u32, metadata)?; - return Ok(Error::Crowdloan(variant_error)); - } - if pallet_name == "XcmPallet" { - let variant_error = - xcm_pallet::Error::decode_with_metadata(cursor, 816u32, metadata)?; - return Ok(Error::XcmPallet(variant_error)); - } - Err(::subxt::ext::scale_decode::Error::custom(format!( - "Pallet name '{}' not found in root Error enum", - pallet_name - )) - .into()) - } - } + #[doc = r" The outer event enum."] + pub type Event = runtime_types::polkadot_runtime::RuntimeEvent; + #[doc = r" The outer extrinsic enum."] + pub type Call = runtime_types::polkadot_runtime::RuntimeCall; + #[doc = r" The outer error enum representing the DispatchError's Module variant."] + pub type Error = runtime_types::polkadot_runtime::RuntimeError; pub fn constants() -> ConstantsApi { ConstantsApi } @@ -1647,10 +407,10 @@ pub mod api { "apply_extrinsic", types::ApplyExtrinsic { extrinsic }, [ - 103u8, 239u8, 152u8, 72u8, 246u8, 79u8, 116u8, 229u8, 172u8, 86u8, - 78u8, 239u8, 153u8, 135u8, 150u8, 250u8, 37u8, 149u8, 129u8, 188u8, - 20u8, 237u8, 108u8, 146u8, 164u8, 117u8, 199u8, 147u8, 199u8, 93u8, - 195u8, 101u8, + 194u8, 184u8, 67u8, 94u8, 64u8, 72u8, 93u8, 72u8, 96u8, 149u8, 129u8, + 222u8, 62u8, 97u8, 38u8, 93u8, 138u8, 205u8, 203u8, 209u8, 100u8, + 130u8, 254u8, 59u8, 207u8, 44u8, 235u8, 194u8, 91u8, 119u8, 138u8, + 196u8, ], ) } @@ -2025,7 +785,7 @@ pub mod api { &self, ) -> ::subxt::runtime_api::Payload< types::Validators, - ::std::vec::Vec, + ::std::vec::Vec, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", @@ -2048,9 +808,9 @@ pub mod api { types::ValidatorGroups, ( ::std::vec::Vec< - ::std::vec::Vec, + ::std::vec::Vec, >, - runtime_types::polkadot_primitives::v4::GroupRotationInfo< + runtime_types::polkadot_primitives::v5::GroupRotationInfo< ::core::primitive::u32, >, ), @@ -2073,7 +833,7 @@ pub mod api { ) -> ::subxt::runtime_api::Payload< types::AvailabilityCores, ::std::vec::Vec< - runtime_types::polkadot_primitives::v4::CoreState< + runtime_types::polkadot_primitives::v5::CoreState< ::subxt::utils::H256, ::core::primitive::u32, >, @@ -2098,11 +858,11 @@ pub mod api { pub fn persisted_validation_data( &self, para_id: runtime_types::polkadot_parachain::primitives::Id, - assumption: runtime_types::polkadot_primitives::v4::OccupiedCoreAssumption, + assumption: runtime_types::polkadot_primitives::v5::OccupiedCoreAssumption, ) -> ::subxt::runtime_api::Payload< types::PersistedValidationData, ::core::option::Option< - runtime_types::polkadot_primitives::v4::PersistedValidationData< + runtime_types::polkadot_primitives::v5::PersistedValidationData< ::subxt::utils::H256, ::core::primitive::u32, >, @@ -2132,7 +892,7 @@ pub mod api { ) -> ::subxt::runtime_api::Payload< types::AssumedValidationData, ::core::option::Option<( - runtime_types::polkadot_primitives::v4::PersistedValidationData< + runtime_types::polkadot_primitives::v5::PersistedValidationData< ::subxt::utils::H256, ::core::primitive::u32, >, @@ -2157,7 +917,7 @@ pub mod api { pub fn check_validation_outputs( &self, para_id: runtime_types::polkadot_parachain::primitives::Id, - outputs: runtime_types::polkadot_primitives::v4::CandidateCommitments< + outputs: runtime_types::polkadot_primitives::v5::CandidateCommitments< ::core::primitive::u32, >, ) -> ::subxt::runtime_api::Payload< @@ -2202,7 +962,7 @@ pub mod api { pub fn validation_code( &self, para_id: runtime_types::polkadot_parachain::primitives::Id, - assumption: runtime_types::polkadot_primitives::v4::OccupiedCoreAssumption, + assumption: runtime_types::polkadot_primitives::v5::OccupiedCoreAssumption, ) -> ::subxt::runtime_api::Payload< types::ValidationCode, ::core::option::Option< @@ -2232,7 +992,7 @@ pub mod api { ) -> ::subxt::runtime_api::Payload< types::CandidatePendingAvailability, ::core::option::Option< - runtime_types::polkadot_primitives::v4::CommittedCandidateReceipt< + runtime_types::polkadot_primitives::v5::CommittedCandidateReceipt< ::subxt::utils::H256, >, >, @@ -2254,7 +1014,7 @@ pub mod api { ) -> ::subxt::runtime_api::Payload< types::CandidateEvents, ::std::vec::Vec< - runtime_types::polkadot_primitives::v4::CandidateEvent< + runtime_types::polkadot_primitives::v5::CandidateEvent< ::subxt::utils::H256, >, >, @@ -2348,7 +1108,7 @@ pub mod api { ) -> ::subxt::runtime_api::Payload< types::OnChainVotes, ::core::option::Option< - runtime_types::polkadot_primitives::v4::ScrapedOnChainVotes< + runtime_types::polkadot_primitives::v5::ScrapedOnChainVotes< ::subxt::utils::H256, >, >, @@ -2373,7 +1133,7 @@ pub mod api { index: ::core::primitive::u32, ) -> ::subxt::runtime_api::Payload< types::SessionInfo, - ::core::option::Option, + ::core::option::Option, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", @@ -2391,8 +1151,8 @@ pub mod api { #[doc = " NOTE: This function is only available since parachain host version 2."] pub fn submit_pvf_check_statement( &self, - stmt: runtime_types::polkadot_primitives::v4::PvfCheckStatement, - signature: runtime_types::polkadot_primitives::v4::validator_app::Signature, + stmt: runtime_types::polkadot_primitives::v5::PvfCheckStatement, + signature: runtime_types::polkadot_primitives::v5::validator_app::Signature, ) -> ::subxt::runtime_api::Payload { ::subxt::runtime_api::Payload::new_static( @@ -2434,7 +1194,7 @@ pub mod api { pub fn validation_code_hash( &self, para_id: runtime_types::polkadot_parachain::primitives::Id, - assumption: runtime_types::polkadot_primitives::v4::OccupiedCoreAssumption, + assumption: runtime_types::polkadot_primitives::v5::OccupiedCoreAssumption, ) -> ::subxt::runtime_api::Payload< types::ValidationCodeHash, ::core::option::Option< @@ -2464,7 +1224,7 @@ pub mod api { ::std::vec::Vec<( ::core::primitive::u32, runtime_types::polkadot_core_primitives::CandidateHash, - runtime_types::polkadot_primitives::v4::DisputeState< + runtime_types::polkadot_primitives::v5::DisputeState< ::core::primitive::u32, >, )>, @@ -2488,7 +1248,7 @@ pub mod api { ) -> ::subxt::runtime_api::Payload< types::SessionExecutorParams, ::core::option::Option< - runtime_types::polkadot_primitives::v4::executor_params::ExecutorParams, + runtime_types::polkadot_primitives::v5::executor_params::ExecutorParams, >, > { ::subxt::runtime_api::Payload::new_static( @@ -2503,6 +1263,78 @@ pub mod api { ], ) } + #[doc = " Returns a list of validators that lost a past session dispute and need to be slashed."] + #[doc = " NOTE: This function is only available since parachain host version 5."] + pub fn unapplied_slashes( + &self, + ) -> ::subxt::runtime_api::Payload< + types::UnappliedSlashes, + ::std::vec::Vec<( + ::core::primitive::u32, + runtime_types::polkadot_core_primitives::CandidateHash, + runtime_types::polkadot_primitives::v5::slashing::PendingSlashes, + )>, + > { + ::subxt::runtime_api::Payload::new_static( + "ParachainHost", + "unapplied_slashes", + types::UnappliedSlashes {}, + [ + 133u8, 146u8, 7u8, 30u8, 251u8, 59u8, 90u8, 123u8, 77u8, 116u8, 105u8, + 109u8, 249u8, 226u8, 238u8, 95u8, 179u8, 251u8, 193u8, 200u8, 194u8, + 111u8, 21u8, 188u8, 19u8, 115u8, 119u8, 11u8, 172u8, 179u8, 142u8, + 159u8, + ], + ) + } + #[doc = " Returns a merkle proof of a validator session key."] + #[doc = " NOTE: This function is only available since parachain host version 5."] + pub fn key_ownership_proof( + &self, + validator_id: runtime_types::polkadot_primitives::v5::validator_app::Public, + ) -> ::subxt::runtime_api::Payload< + types::KeyOwnershipProof, + ::core::option::Option< + runtime_types::polkadot_primitives::v5::slashing::OpaqueKeyOwnershipProof, + >, + > { + ::subxt::runtime_api::Payload::new_static( + "ParachainHost", + "key_ownership_proof", + types::KeyOwnershipProof { validator_id }, + [ + 170u8, 101u8, 138u8, 1u8, 229u8, 13u8, 121u8, 167u8, 151u8, 112u8, + 197u8, 250u8, 189u8, 220u8, 67u8, 220u8, 42u8, 209u8, 173u8, 241u8, + 245u8, 167u8, 11u8, 3u8, 13u8, 223u8, 224u8, 12u8, 20u8, 210u8, 56u8, + 202u8, + ], + ) + } + #[doc = " Submit an unsigned extrinsic to slash validators who lost a dispute about"] + #[doc = " a candidate of a past session."] + #[doc = " NOTE: This function is only available since parachain host version 5."] + pub fn submit_report_dispute_lost( + &self, + dispute_proof: runtime_types::polkadot_primitives::v5::slashing::DisputeProof, + key_ownership_proof : runtime_types :: polkadot_primitives :: v5 :: slashing :: OpaqueKeyOwnershipProof, + ) -> ::subxt::runtime_api::Payload< + types::SubmitReportDisputeLost, + ::core::option::Option<()>, + > { + ::subxt::runtime_api::Payload::new_static( + "ParachainHost", + "submit_report_dispute_lost", + types::SubmitReportDisputeLost { + dispute_proof, + key_ownership_proof, + }, + [ + 108u8, 144u8, 248u8, 41u8, 84u8, 72u8, 122u8, 76u8, 193u8, 242u8, 6u8, + 18u8, 209u8, 6u8, 96u8, 131u8, 242u8, 252u8, 199u8, 222u8, 161u8, + 167u8, 52u8, 41u8, 252u8, 59u8, 26u8, 130u8, 48u8, 8u8, 68u8, 4u8, + ], + ) + } } pub mod types { use super::runtime_types; @@ -2551,7 +1383,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PersistedValidationData { pub para_id: runtime_types::polkadot_parachain::primitives::Id, - pub assumption: runtime_types::polkadot_primitives::v4::OccupiedCoreAssumption, + pub assumption: runtime_types::polkadot_primitives::v5::OccupiedCoreAssumption, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -2579,7 +1411,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CheckValidationOutputs { pub para_id: runtime_types::polkadot_parachain::primitives::Id, - pub outputs: runtime_types::polkadot_primitives::v4::CandidateCommitments< + pub outputs: runtime_types::polkadot_primitives::v5::CandidateCommitments< ::core::primitive::u32, >, } @@ -2606,7 +1438,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ValidationCode { pub para_id: runtime_types::polkadot_parachain::primitives::Id, - pub assumption: runtime_types::polkadot_primitives::v4::OccupiedCoreAssumption, + pub assumption: runtime_types::polkadot_primitives::v5::OccupiedCoreAssumption, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -2706,8 +1538,8 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SubmitPvfCheckStatement { - pub stmt: runtime_types::polkadot_primitives::v4::PvfCheckStatement, - pub signature: runtime_types::polkadot_primitives::v4::validator_app::Signature, + pub stmt: runtime_types::polkadot_primitives::v5::PvfCheckStatement, + pub signature: runtime_types::polkadot_primitives::v5::validator_app::Signature, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -2732,7 +1564,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ValidationCodeHash { pub para_id: runtime_types::polkadot_parachain::primitives::Id, - pub assumption: runtime_types::polkadot_primitives::v4::OccupiedCoreAssumption, + pub assumption: runtime_types::polkadot_primitives::v5::OccupiedCoreAssumption, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -2758,6 +1590,46 @@ pub mod api { pub struct SessionExecutorParams { pub session_index: ::core::primitive::u32, } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct UnappliedSlashes {} + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct KeyOwnershipProof { + pub validator_id: runtime_types::polkadot_primitives::v5::validator_app::Public, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SubmitReportDisputeLost { + pub dispute_proof: + runtime_types::polkadot_primitives::v5::slashing::DisputeProof, + pub key_ownership_proof: + runtime_types::polkadot_primitives::v5::slashing::OpaqueKeyOwnershipProof, + } } } pub mod beefy_api { @@ -3893,9 +2765,9 @@ pub mod api { "query_call_info", types::QueryCallInfo { call, len }, [ - 29u8, 82u8, 32u8, 251u8, 3u8, 82u8, 211u8, 160u8, 52u8, 215u8, 106u8, - 79u8, 177u8, 140u8, 42u8, 162u8, 112u8, 210u8, 88u8, 98u8, 197u8, 84u8, - 252u8, 67u8, 118u8, 163u8, 230u8, 207u8, 14u8, 119u8, 12u8, 15u8, + 202u8, 48u8, 37u8, 1u8, 188u8, 18u8, 83u8, 225u8, 140u8, 1u8, 106u8, + 66u8, 63u8, 99u8, 77u8, 121u8, 66u8, 35u8, 140u8, 165u8, 226u8, 52u8, + 116u8, 94u8, 203u8, 54u8, 61u8, 176u8, 230u8, 61u8, 153u8, 38u8, ], ) } @@ -3915,10 +2787,10 @@ pub mod api { "query_call_fee_details", types::QueryCallFeeDetails { call, len }, [ - 201u8, 59u8, 240u8, 67u8, 68u8, 119u8, 113u8, 28u8, 165u8, 247u8, - 174u8, 107u8, 143u8, 107u8, 97u8, 129u8, 145u8, 128u8, 211u8, 4u8, - 229u8, 154u8, 31u8, 108u8, 78u8, 9u8, 41u8, 153u8, 251u8, 115u8, 126u8, - 252u8, + 43u8, 223u8, 246u8, 145u8, 202u8, 27u8, 167u8, 160u8, 65u8, 144u8, + 236u8, 225u8, 125u8, 96u8, 135u8, 147u8, 188u8, 242u8, 81u8, 71u8, + 160u8, 228u8, 51u8, 204u8, 37u8, 118u8, 174u8, 6u8, 72u8, 149u8, 212u8, + 61u8, ], ) } @@ -4126,6 +2998,9 @@ pub mod api { pub fn crowdloan(&self) -> crowdloan::constants::ConstantsApi { crowdloan::constants::ConstantsApi } + pub fn message_queue(&self) -> message_queue::constants::ConstantsApi { + message_queue::constants::ConstantsApi + } } pub struct StorageApi; impl StorageApi { @@ -4260,9 +3135,6 @@ pub mod api { pub fn dmp(&self) -> dmp::storage::StorageApi { dmp::storage::StorageApi } - pub fn ump(&self) -> ump::storage::StorageApi { - ump::storage::StorageApi - } pub fn hrmp(&self) -> hrmp::storage::StorageApi { hrmp::storage::StorageApi } @@ -4290,6 +3162,9 @@ pub mod api { pub fn xcm_pallet(&self) -> xcm_pallet::storage::StorageApi { xcm_pallet::storage::StorageApi } + pub fn message_queue(&self) -> message_queue::storage::StorageApi { + message_queue::storage::StorageApi + } } pub struct TransactionApi; impl TransactionApi { @@ -4412,9 +3287,6 @@ pub mod api { pub fn initializer(&self) -> initializer::calls::TransactionApi { initializer::calls::TransactionApi } - pub fn ump(&self) -> ump::calls::TransactionApi { - ump::calls::TransactionApi - } pub fn hrmp(&self) -> hrmp::calls::TransactionApi { hrmp::calls::TransactionApi } @@ -4439,6 +3311,9 @@ pub mod api { pub fn xcm_pallet(&self) -> xcm_pallet::calls::TransactionApi { xcm_pallet::calls::TransactionApi } + pub fn message_queue(&self) -> message_queue::calls::TransactionApi { + message_queue::calls::TransactionApi + } } #[doc = r" check whether the metadata provided is aligned with this statically generated code."] pub fn is_codegen_valid_for(metadata: &::subxt::Metadata) -> bool { @@ -4449,9 +3324,9 @@ pub mod api { .hash(); runtime_metadata_hash == [ - 48u8, 175u8, 255u8, 171u8, 180u8, 123u8, 181u8, 54u8, 125u8, 74u8, 109u8, 140u8, - 192u8, 208u8, 131u8, 194u8, 195u8, 232u8, 33u8, 229u8, 178u8, 181u8, 236u8, 230u8, - 37u8, 97u8, 134u8, 144u8, 187u8, 127u8, 47u8, 237u8, + 80u8, 125u8, 154u8, 186u8, 171u8, 231u8, 42u8, 230u8, 79u8, 19u8, 171u8, 33u8, + 197u8, 210u8, 229u8, 209u8, 209u8, 153u8, 119u8, 91u8, 12u8, 56u8, 208u8, 175u8, + 102u8, 70u8, 20u8, 182u8, 102u8, 109u8, 97u8, 108u8, ] } pub mod system { @@ -4459,7 +3334,7 @@ pub mod api { use super::runtime_types; #[doc = "Error for the System pallet"] pub type Error = runtime_types::frame_system::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::frame_system::pallet::Call; pub mod calls { use super::root_mod; @@ -4611,10 +3486,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Make some on-chain remark."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(1)`"] + #[doc = "See [`Pallet::remark`]."] pub fn remark( &self, remark: ::std::vec::Vec<::core::primitive::u8>, @@ -4631,7 +3503,7 @@ pub mod api { ], ) } - #[doc = "Set the number of pages in the WebAssembly environment's heap."] + #[doc = "See [`Pallet::set_heap_pages`]."] pub fn set_heap_pages( &self, pages: ::core::primitive::u64, @@ -4648,10 +3520,7 @@ pub mod api { ], ) } - #[doc = "Set the new runtime code."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`"] + #[doc = "See [`Pallet::set_code`]."] pub fn set_code( &self, code: ::std::vec::Vec<::core::primitive::u8>, @@ -4667,10 +3536,7 @@ pub mod api { ], ) } - #[doc = "Set the new runtime code without doing any checks of the given `code`."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(C)` where `C` length of `code`"] + #[doc = "See [`Pallet::set_code_without_checks`]."] pub fn set_code_without_checks( &self, code: ::std::vec::Vec<::core::primitive::u8>, @@ -4687,7 +3553,7 @@ pub mod api { ], ) } - #[doc = "Set some items of storage."] + #[doc = "See [`Pallet::set_storage`]."] pub fn set_storage( &self, items: ::std::vec::Vec<( @@ -4706,7 +3572,7 @@ pub mod api { ], ) } - #[doc = "Kill some items from storage."] + #[doc = "See [`Pallet::kill_storage`]."] pub fn kill_storage( &self, keys: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, @@ -4723,10 +3589,7 @@ pub mod api { ], ) } - #[doc = "Kill all storage items with a key that starts with the given prefix."] - #[doc = ""] - #[doc = "**NOTE:** We rely on the Root origin to provide us the number of subkeys under"] - #[doc = "the prefix we are removing to accurately calculate the weight of this function."] + #[doc = "See [`Pallet::kill_prefix`]."] pub fn kill_prefix( &self, prefix: ::std::vec::Vec<::core::primitive::u8>, @@ -4744,7 +3607,7 @@ pub mod api { ], ) } - #[doc = "Make some on-chain remark and emit event."] + #[doc = "See [`Pallet::remark_with_event`]."] pub fn remark_with_event( &self, remark: ::std::vec::Vec<::core::primitive::u8>, @@ -5180,10 +4043,9 @@ pub mod api { "Events", vec![], [ - 144u8, 114u8, 184u8, 254u8, 50u8, 194u8, 165u8, 20u8, 204u8, 189u8, - 147u8, 226u8, 53u8, 106u8, 27u8, 98u8, 252u8, 31u8, 77u8, 158u8, 211u8, - 36u8, 67u8, 241u8, 139u8, 173u8, 171u8, 71u8, 146u8, 10u8, 157u8, - 200u8, + 148u8, 20u8, 105u8, 64u8, 150u8, 198u8, 189u8, 131u8, 76u8, 21u8, + 216u8, 82u8, 49u8, 183u8, 86u8, 192u8, 110u8, 228u8, 1u8, 219u8, 222u8, + 216u8, 71u8, 86u8, 23u8, 199u8, 98u8, 73u8, 105u8, 52u8, 229u8, 9u8, ], ) } @@ -5463,9 +4325,9 @@ pub mod api { pub mod scheduler { use super::root_mod; use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_scheduler::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_scheduler::pallet::Call; pub mod calls { use super::root_mod; @@ -5597,7 +4459,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Anonymously schedule a task."] + #[doc = "See [`Pallet::schedule`]."] pub fn schedule( &self, when: ::core::primitive::u32, @@ -5618,14 +4480,14 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 79u8, 205u8, 253u8, 246u8, 221u8, 94u8, 229u8, 6u8, 48u8, 3u8, 5u8, - 145u8, 225u8, 209u8, 208u8, 85u8, 151u8, 208u8, 235u8, 210u8, 131u8, - 195u8, 179u8, 14u8, 243u8, 47u8, 230u8, 128u8, 55u8, 226u8, 242u8, - 217u8, + 223u8, 106u8, 140u8, 197u8, 207u8, 197u8, 88u8, 231u8, 138u8, 226u8, + 212u8, 83u8, 231u8, 81u8, 145u8, 192u8, 16u8, 141u8, 58u8, 125u8, + 161u8, 216u8, 105u8, 181u8, 103u8, 165u8, 185u8, 184u8, 250u8, 113u8, + 81u8, 88u8, ], ) } - #[doc = "Cancel an anonymously scheduled task."] + #[doc = "See [`Pallet::cancel`]."] pub fn cancel( &self, when: ::core::primitive::u32, @@ -5643,7 +4505,7 @@ pub mod api { ], ) } - #[doc = "Schedule a named task."] + #[doc = "See [`Pallet::schedule_named`]."] pub fn schedule_named( &self, id: [::core::primitive::u8; 32usize], @@ -5666,14 +4528,14 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 34u8, 68u8, 235u8, 184u8, 76u8, 184u8, 201u8, 126u8, 239u8, 104u8, - 118u8, 155u8, 155u8, 195u8, 153u8, 121u8, 186u8, 241u8, 223u8, 173u8, - 65u8, 247u8, 11u8, 93u8, 83u8, 243u8, 231u8, 33u8, 57u8, 89u8, 73u8, - 182u8, + 146u8, 113u8, 28u8, 221u8, 67u8, 198u8, 215u8, 187u8, 217u8, 81u8, + 119u8, 41u8, 99u8, 182u8, 79u8, 222u8, 249u8, 116u8, 75u8, 103u8, 62u8, + 147u8, 145u8, 104u8, 74u8, 214u8, 193u8, 158u8, 119u8, 102u8, 249u8, + 53u8, ], ) } - #[doc = "Cancel a named scheduled task."] + #[doc = "See [`Pallet::cancel_named`]."] pub fn cancel_named( &self, id: [::core::primitive::u8; 32usize], @@ -5689,7 +4551,7 @@ pub mod api { ], ) } - #[doc = "Anonymously schedule a task after a delay."] + #[doc = "See [`Pallet::schedule_after`]."] pub fn schedule_after( &self, after: ::core::primitive::u32, @@ -5710,13 +4572,13 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 103u8, 222u8, 6u8, 157u8, 93u8, 110u8, 116u8, 140u8, 17u8, 239u8, 58u8, - 133u8, 241u8, 102u8, 182u8, 32u8, 113u8, 57u8, 116u8, 31u8, 127u8, - 156u8, 50u8, 8u8, 33u8, 94u8, 23u8, 86u8, 93u8, 169u8, 189u8, 203u8, + 215u8, 163u8, 5u8, 200u8, 192u8, 189u8, 157u8, 143u8, 141u8, 134u8, + 163u8, 0u8, 86u8, 31u8, 196u8, 206u8, 48u8, 162u8, 54u8, 252u8, 24u8, + 119u8, 62u8, 25u8, 1u8, 27u8, 44u8, 115u8, 48u8, 70u8, 136u8, 103u8, ], ) } - #[doc = "Schedule a named task after a delay."] + #[doc = "See [`Pallet::schedule_named_after`]."] pub fn schedule_named_after( &self, id: [::core::primitive::u8; 32usize], @@ -5739,10 +4601,10 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 242u8, 52u8, 21u8, 208u8, 40u8, 50u8, 170u8, 129u8, 232u8, 151u8, - 130u8, 105u8, 157u8, 156u8, 65u8, 224u8, 170u8, 65u8, 169u8, 223u8, - 27u8, 37u8, 136u8, 36u8, 250u8, 40u8, 134u8, 100u8, 138u8, 36u8, 86u8, - 226u8, + 45u8, 227u8, 228u8, 121u8, 89u8, 64u8, 235u8, 180u8, 113u8, 232u8, + 225u8, 66u8, 211u8, 234u8, 137u8, 122u8, 248u8, 183u8, 192u8, 187u8, + 26u8, 128u8, 69u8, 54u8, 90u8, 103u8, 209u8, 185u8, 213u8, 158u8, + 224u8, 92u8, ], ) } @@ -6060,9 +4922,9 @@ pub mod api { pub mod preimage { use super::root_mod; use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_preimage::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_preimage::pallet::Call; pub mod calls { use super::root_mod; @@ -6141,10 +5003,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Register a preimage on-chain."] - #[doc = ""] - #[doc = "If the preimage was previously requested, no fees or deposits are taken for providing"] - #[doc = "the preimage. Otherwise, a deposit is taken proportional to the size of the preimage."] + #[doc = "See [`Pallet::note_preimage`]."] pub fn note_preimage( &self, bytes: ::std::vec::Vec<::core::primitive::u8>, @@ -6160,12 +5019,7 @@ pub mod api { ], ) } - #[doc = "Clear an unrequested preimage from the runtime storage."] - #[doc = ""] - #[doc = "If `len` is provided, then it will be a much cheaper operation."] - #[doc = ""] - #[doc = "- `hash`: The hash of the preimage to be removed from the store."] - #[doc = "- `len`: The length of the preimage of `hash`."] + #[doc = "See [`Pallet::unnote_preimage`]."] pub fn unnote_preimage( &self, hash: ::subxt::utils::H256, @@ -6182,10 +5036,7 @@ pub mod api { ], ) } - #[doc = "Request a preimage be uploaded to the chain without paying any fees or deposits."] - #[doc = ""] - #[doc = "If the preimage requests has already been provided on-chain, we unreserve any deposit"] - #[doc = "a user may have paid, and take the control of the preimage out of their hands."] + #[doc = "See [`Pallet::request_preimage`]."] pub fn request_preimage( &self, hash: ::subxt::utils::H256, @@ -6201,9 +5052,7 @@ pub mod api { ], ) } - #[doc = "Clear a previously made request for a preimage."] - #[doc = ""] - #[doc = "NOTE: THIS MUST NOT BE CALLED ON `hash` MORE TIMES THAN `request_preimage`."] + #[doc = "See [`Pallet::unrequest_preimage`]."] pub fn unrequest_preimage( &self, hash: ::subxt::utils::H256, @@ -6222,7 +5071,7 @@ pub mod api { } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_preimage::pallet::Event; pub mod events { use super::runtime_types; @@ -6393,9 +5242,9 @@ pub mod api { pub mod babe { use super::root_mod; use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_babe::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_babe::pallet::Call; pub mod calls { use super::root_mod; @@ -6475,10 +5324,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Report authority equivocation/misbehavior. This method will verify"] - #[doc = "the equivocation proof and validate the given key ownership proof"] - #[doc = "against the extracted offender. If both are valid, the offence will"] - #[doc = "be reported."] + #[doc = "See [`Pallet::report_equivocation`]."] pub fn report_equivocation( &self, equivocation_proof: runtime_types::sp_consensus_slots::EquivocationProof< @@ -6504,14 +5350,7 @@ pub mod api { ], ) } - #[doc = "Report authority equivocation/misbehavior. This method will verify"] - #[doc = "the equivocation proof and validate the given key ownership proof"] - #[doc = "against the extracted offender. If both are valid, the offence will"] - #[doc = "be reported."] - #[doc = "This extrinsic must be called unsigned and it is expected that only"] - #[doc = "block authors will call it (validated in `ValidateUnsigned`), as such"] - #[doc = "if the block author is defined it will be defined as the equivocation"] - #[doc = "reporter."] + #[doc = "See [`Pallet::report_equivocation_unsigned`]."] pub fn report_equivocation_unsigned( &self, equivocation_proof: runtime_types::sp_consensus_slots::EquivocationProof< @@ -6538,10 +5377,7 @@ pub mod api { ], ) } - #[doc = "Plan an epoch config change. The epoch config change is recorded and will be enacted on"] - #[doc = "the next call to `enact_epoch_change`. The config will be activated one epoch after."] - #[doc = "Multiple calls to this method will replace any existing planned config change that had"] - #[doc = "not been enacted yet."] + #[doc = "See [`Pallet::plan_config_change`]."] pub fn plan_config_change( &self, config: runtime_types::sp_consensus_babe::digests::NextConfigDescriptor, @@ -7072,7 +5908,7 @@ pub mod api { pub mod timestamp { use super::root_mod; use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_timestamp::pallet::Call; pub mod calls { use super::root_mod; @@ -7101,21 +5937,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Set the current time."] - #[doc = ""] - #[doc = "This call should be invoked exactly once per block. It will panic at the finalization"] - #[doc = "phase, if this call hasn't been invoked by that time."] - #[doc = ""] - #[doc = "The timestamp should be greater than the previous one by the amount specified by"] - #[doc = "`MinimumPeriod`."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `Inherent`."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)"] - #[doc = "- 1 storage read and 1 storage mutation (codec `O(1)`). (because of `DidUpdate::take` in"] - #[doc = " `on_finalize`)"] - #[doc = "- 1 event handler `on_timestamp_set`. Must be `O(1)`."] + #[doc = "See [`Pallet::set`]."] pub fn set(&self, now: ::core::primitive::u64) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Timestamp", @@ -7207,9 +6029,9 @@ pub mod api { pub mod indices { use super::root_mod; use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_indices::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_indices::pallet::Call; pub mod calls { use super::root_mod; @@ -7311,18 +6133,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Assign an previously unassigned index."] - #[doc = ""] - #[doc = "Payment: `Deposit` is reserved from the sender account."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "- `index`: the index to be claimed. This must not be in use."] - #[doc = ""] - #[doc = "Emits `IndexAssigned` if successful."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(1)`."] + #[doc = "See [`Pallet::claim`]."] pub fn claim( &self, index: ::core::primitive::u32, @@ -7338,18 +6149,7 @@ pub mod api { ], ) } - #[doc = "Assign an index already owned by the sender to another account. The balance reservation"] - #[doc = "is effectively transferred to the new account."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "- `index`: the index to be re-assigned. This must be owned by the sender."] - #[doc = "- `new`: the new owner of the index. This function is a no-op if it is equal to sender."] - #[doc = ""] - #[doc = "Emits `IndexAssigned` if successful."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(1)`."] + #[doc = "See [`Pallet::transfer`]."] pub fn transfer( &self, new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -7366,18 +6166,7 @@ pub mod api { ], ) } - #[doc = "Free up an index owned by the sender."] - #[doc = ""] - #[doc = "Payment: Any previous deposit placed for the index is unreserved in the sender account."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must own the index."] - #[doc = ""] - #[doc = "- `index`: the index to be freed. This must be owned by the sender."] - #[doc = ""] - #[doc = "Emits `IndexFreed` if successful."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(1)`."] + #[doc = "See [`Pallet::free`]."] pub fn free( &self, index: ::core::primitive::u32, @@ -7394,19 +6183,7 @@ pub mod api { ], ) } - #[doc = "Force an index to an account. This doesn't require a deposit. If the index is already"] - #[doc = "held, then any deposit is reimbursed to its current owner."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Root_."] - #[doc = ""] - #[doc = "- `index`: the index to be (re-)assigned."] - #[doc = "- `new`: the new owner of the index. This function is a no-op if it is equal to sender."] - #[doc = "- `freeze`: if set to `true`, will freeze the index so it cannot be transferred."] - #[doc = ""] - #[doc = "Emits `IndexAssigned` if successful."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(1)`."] + #[doc = "See [`Pallet::force_transfer`]."] pub fn force_transfer( &self, new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -7425,18 +6202,7 @@ pub mod api { ], ) } - #[doc = "Freeze an index so it will always point to the sender account. This consumes the"] - #[doc = "deposit."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the signing account must have a"] - #[doc = "non-frozen account `index`."] - #[doc = ""] - #[doc = "- `index`: the index to be frozen in place."] - #[doc = ""] - #[doc = "Emits `IndexFrozen` if successful."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(1)`."] + #[doc = "See [`Pallet::freeze`]."] pub fn freeze( &self, index: ::core::primitive::u32, @@ -7455,7 +6221,7 @@ pub mod api { } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_indices::pallet::Event; pub mod events { use super::runtime_types; @@ -7600,9 +6366,9 @@ pub mod api { pub mod balances { use super::root_mod; use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_balances::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_balances::pallet::Call; pub mod calls { use super::root_mod; @@ -7783,13 +6549,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Transfer some liquid free balance to another account."] - #[doc = ""] - #[doc = "`transfer_allow_death` will set the `FreeBalance` of the sender and receiver."] - #[doc = "If the sender's account is below the existential deposit as a result"] - #[doc = "of the transfer, the account will be reaped."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `Signed` by the transactor."] + #[doc = "See [`Pallet::transfer_allow_death`]."] pub fn transfer_allow_death( &self, dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -7806,12 +6566,7 @@ pub mod api { ], ) } - #[doc = "Set the regular balance of a given account; it also takes a reserved balance but this"] - #[doc = "must be the same as the account's current reserved balance."] - #[doc = ""] - #[doc = "The dispatch origin for this call is `root`."] - #[doc = ""] - #[doc = "WARNING: This call is DEPRECATED! Use `force_set_balance` instead."] + #[doc = "See [`Pallet::set_balance_deprecated`]."] pub fn set_balance_deprecated( &self, who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -7833,8 +6588,7 @@ pub mod api { ], ) } - #[doc = "Exactly as `transfer_allow_death`, except the origin must be root and the source account"] - #[doc = "may be specified."] + #[doc = "See [`Pallet::force_transfer`]."] pub fn force_transfer( &self, source: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -7857,12 +6611,7 @@ pub mod api { ], ) } - #[doc = "Same as the [`transfer_allow_death`] call, but with a check that the transfer will not"] - #[doc = "kill the origin account."] - #[doc = ""] - #[doc = "99% of the time you want [`transfer_allow_death`] instead."] - #[doc = ""] - #[doc = "[`transfer_allow_death`]: struct.Pallet.html#method.transfer"] + #[doc = "See [`Pallet::transfer_keep_alive`]."] pub fn transfer_keep_alive( &self, dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -7880,21 +6629,7 @@ pub mod api { ], ) } - #[doc = "Transfer the entire transferable balance from the caller account."] - #[doc = ""] - #[doc = "NOTE: This function only attempts to transfer _transferable_ balances. This means that"] - #[doc = "any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be"] - #[doc = "transferred by this function. To ensure that this function results in a killed account,"] - #[doc = "you might need to prepare the account by removing any reference counters, storage"] - #[doc = "deposits, etc..."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be Signed."] - #[doc = ""] - #[doc = "- `dest`: The recipient of the transfer."] - #[doc = "- `keep_alive`: A boolean to determine if the `transfer_all` operation should send all"] - #[doc = " of the funds the account has, causing the sender account to be killed (false), or"] - #[doc = " transfer everything except at least the existential deposit, which will guarantee to"] - #[doc = " keep the sender account alive (true)."] + #[doc = "See [`Pallet::transfer_all`]."] pub fn transfer_all( &self, dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -7911,9 +6646,7 @@ pub mod api { ], ) } - #[doc = "Unreserve some balance from a user by force."] - #[doc = ""] - #[doc = "Can only be called by ROOT."] + #[doc = "See [`Pallet::force_unreserve`]."] pub fn force_unreserve( &self, who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -7930,14 +6663,7 @@ pub mod api { ], ) } - #[doc = "Upgrade a specified account."] - #[doc = ""] - #[doc = "- `origin`: Must be `Signed`."] - #[doc = "- `who`: The account to be upgraded."] - #[doc = ""] - #[doc = "This will waive the transaction fee if at least all but 10% of the accounts needed to"] - #[doc = "be upgraded. (We let some not have to be upgraded just in order to allow for the"] - #[doc = "possibililty of churn)."] + #[doc = "See [`Pallet::upgrade_accounts`]."] pub fn upgrade_accounts( &self, who: ::std::vec::Vec<::subxt::utils::AccountId32>, @@ -7953,9 +6679,7 @@ pub mod api { ], ) } - #[doc = "Alias for `transfer_allow_death`, provided only for name-wise compatibility."] - #[doc = ""] - #[doc = "WARNING: DEPRECATED! Will be released in approximately 3 months."] + #[doc = "See [`Pallet::transfer`]."] pub fn transfer( &self, dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -7972,9 +6696,7 @@ pub mod api { ], ) } - #[doc = "Set the regular balance of a given account."] - #[doc = ""] - #[doc = "The dispatch origin for this call is `root`."] + #[doc = "See [`Pallet::force_set_balance`]."] pub fn force_set_balance( &self, who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -7993,7 +6715,7 @@ pub mod api { } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_balances::pallet::Event; pub mod events { use super::runtime_types; @@ -8658,7 +7380,7 @@ pub mod api { ::subxt::storage::address::StaticStorageMapKey, runtime_types::bounded_collections::bounded_vec::BoundedVec< runtime_types::pallet_balances::types::IdAmount< - (), + runtime_types::polkadot_runtime::RuntimeHoldReason, ::core::primitive::u128, >, >, @@ -8673,10 +7395,9 @@ pub mod api { _0.borrow(), )], [ - 53u8, 126u8, 215u8, 237u8, 42u8, 223u8, 188u8, 150u8, 230u8, 107u8, - 95u8, 24u8, 26u8, 235u8, 158u8, 149u8, 193u8, 191u8, 10u8, 194u8, - 231u8, 59u8, 35u8, 167u8, 186u8, 89u8, 43u8, 126u8, 215u8, 117u8, 1u8, - 202u8, + 37u8, 176u8, 2u8, 18u8, 109u8, 26u8, 66u8, 81u8, 28u8, 104u8, 149u8, + 117u8, 119u8, 114u8, 196u8, 35u8, 172u8, 155u8, 66u8, 195u8, 98u8, + 37u8, 134u8, 22u8, 106u8, 221u8, 215u8, 97u8, 25u8, 28u8, 21u8, 206u8, ], ) } @@ -8687,7 +7408,7 @@ pub mod api { ::subxt::storage::address::StaticStorageMapKey, runtime_types::bounded_collections::bounded_vec::BoundedVec< runtime_types::pallet_balances::types::IdAmount< - (), + runtime_types::polkadot_runtime::RuntimeHoldReason, ::core::primitive::u128, >, >, @@ -8700,10 +7421,9 @@ pub mod api { "Holds", Vec::new(), [ - 53u8, 126u8, 215u8, 237u8, 42u8, 223u8, 188u8, 150u8, 230u8, 107u8, - 95u8, 24u8, 26u8, 235u8, 158u8, 149u8, 193u8, 191u8, 10u8, 194u8, - 231u8, 59u8, 35u8, 167u8, 186u8, 89u8, 43u8, 126u8, 215u8, 117u8, 1u8, - 202u8, + 37u8, 176u8, 2u8, 18u8, 109u8, 26u8, 66u8, 81u8, 28u8, 104u8, 149u8, + 117u8, 119u8, 114u8, 196u8, 35u8, 172u8, 155u8, 66u8, 195u8, 98u8, + 37u8, 134u8, 22u8, 106u8, 221u8, 215u8, 97u8, 25u8, 28u8, 21u8, 206u8, ], ) } @@ -8848,7 +7568,7 @@ pub mod api { pub mod transaction_payment { use super::root_mod; use super::runtime_types; - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_transaction_payment::pallet::Event; pub mod events { use super::runtime_types; @@ -8999,9 +7719,9 @@ pub mod api { pub mod staking { use super::root_mod; use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_staking::pallet::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_staking::pallet::pallet::Call; pub mod calls { use super::root_mod; @@ -9020,7 +7740,6 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Bond { - pub controller: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, #[codec(compact)] pub value: ::core::primitive::u128, pub payee: runtime_types::pallet_staking::RewardDestination< @@ -9165,9 +7884,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SetController { - pub controller: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - } + pub struct SetController; impl ::subxt::blocks::StaticExtrinsic for SetController { const PALLET: &'static str = "Staking"; const CALL: &'static str = "set_controller"; @@ -9486,24 +8203,9 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Take the origin account as a stash and lock up `value` of its balance. `controller` will"] - #[doc = "be the account that controls it."] - #[doc = ""] - #[doc = "`value` must be more than the `minimum_balance` specified by `T::Currency`."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ by the stash account."] - #[doc = ""] - #[doc = "Emits `Bonded`."] - #[doc = "## Complexity"] - #[doc = "- Independent of the arguments. Moderate complexity."] - #[doc = "- O(1)."] - #[doc = "- Three extra DB entries."] - #[doc = ""] - #[doc = "NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned"] - #[doc = "unless the `origin` falls below _existential deposit_ and gets removed as dust."] + #[doc = "See [`Pallet::bond`]."] pub fn bond( &self, - controller: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, value: ::core::primitive::u128, payee: runtime_types::pallet_staking::RewardDestination< ::subxt::utils::AccountId32, @@ -9512,32 +8214,15 @@ pub mod api { ::subxt::tx::Payload::new_static( "Staking", "bond", - types::Bond { - controller, - value, - payee, - }, + types::Bond { value, payee }, [ - 0u8, 34u8, 21u8, 115u8, 57u8, 40u8, 95u8, 125u8, 71u8, 15u8, 255u8, - 34u8, 125u8, 8u8, 192u8, 54u8, 185u8, 187u8, 193u8, 214u8, 222u8, - 202u8, 161u8, 115u8, 83u8, 46u8, 247u8, 75u8, 166u8, 209u8, 87u8, 91u8, + 45u8, 207u8, 34u8, 221u8, 252u8, 224u8, 162u8, 185u8, 67u8, 224u8, + 88u8, 91u8, 232u8, 114u8, 183u8, 44u8, 39u8, 5u8, 12u8, 163u8, 57u8, + 31u8, 251u8, 58u8, 37u8, 232u8, 206u8, 75u8, 164u8, 26u8, 170u8, 101u8, ], ) } - #[doc = "Add some extra amount that have appeared in the stash `free_balance` into the balance up"] - #[doc = "for staking."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ by the stash, not the controller."] - #[doc = ""] - #[doc = "Use this if there are additional funds in your stash account that you wish to bond."] - #[doc = "Unlike [`bond`](Self::bond) or [`unbond`](Self::unbond) this function does not impose"] - #[doc = "any limitation on the amount that can be added."] - #[doc = ""] - #[doc = "Emits `Bonded`."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- Independent of the arguments. Insignificant complexity."] - #[doc = "- O(1)."] + #[doc = "See [`Pallet::bond_extra`]."] pub fn bond_extra( &self, max_additional: ::core::primitive::u128, @@ -9553,25 +8238,7 @@ pub mod api { ], ) } - #[doc = "Schedule a portion of the stash to be unlocked ready for transfer out after the bond"] - #[doc = "period ends. If this leaves an amount actively bonded less than"] - #[doc = "T::Currency::minimum_balance(), then it is increased to the full amount."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] - #[doc = ""] - #[doc = "Once the unlock period is done, you can call `withdraw_unbonded` to actually move"] - #[doc = "the funds out of management ready for transfer."] - #[doc = ""] - #[doc = "No more than a limited number of unlocking chunks (see `MaxUnlockingChunks`)"] - #[doc = "can co-exists at the same time. If there are no unlocking chunks slots available"] - #[doc = "[`Call::withdraw_unbonded`] is called to remove some of the chunks (if possible)."] - #[doc = ""] - #[doc = "If a user encounters the `InsufficientBond` error when calling this extrinsic,"] - #[doc = "they should call `chill` first in order to free up their bonded funds."] - #[doc = ""] - #[doc = "Emits `Unbonded`."] - #[doc = ""] - #[doc = "See also [`Call::withdraw_unbonded`]."] + #[doc = "See [`Pallet::unbond`]."] pub fn unbond( &self, value: ::core::primitive::u128, @@ -9587,20 +8254,7 @@ pub mod api { ], ) } - #[doc = "Remove any unlocked chunks from the `unlocking` queue from our management."] - #[doc = ""] - #[doc = "This essentially frees up that balance to be used by the stash account to do"] - #[doc = "whatever it wants."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ by the controller."] - #[doc = ""] - #[doc = "Emits `Withdrawn`."] - #[doc = ""] - #[doc = "See also [`Call::unbond`]."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "O(S) where S is the number of slashing spans to remove"] - #[doc = "NOTE: Weight annotation is the kill scenario, we refund otherwise."] + #[doc = "See [`Pallet::withdraw_unbonded`]."] pub fn withdraw_unbonded( &self, num_slashing_spans: ::core::primitive::u32, @@ -9617,11 +8271,7 @@ pub mod api { ], ) } - #[doc = "Declare the desire to validate for the origin controller."] - #[doc = ""] - #[doc = "Effects will be felt at the beginning of the next era."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] + #[doc = "See [`Pallet::validate`]."] pub fn validate( &self, prefs: runtime_types::pallet_staking::ValidatorPrefs, @@ -9637,16 +8287,7 @@ pub mod api { ], ) } - #[doc = "Declare the desire to nominate `targets` for the origin controller."] - #[doc = ""] - #[doc = "Effects will be felt at the beginning of the next era."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- The transaction's complexity is proportional to the size of `targets` (N)"] - #[doc = "which is capped at CompactAssignments::LIMIT (T::MaxNominations)."] - #[doc = "- Both the reads and writes follow a similar pattern."] + #[doc = "See [`Pallet::nominate`]."] pub fn nominate( &self, targets: ::std::vec::Vec< @@ -9665,16 +8306,7 @@ pub mod api { ], ) } - #[doc = "Declare no desire to either validate or nominate."] - #[doc = ""] - #[doc = "Effects will be felt at the beginning of the next era."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- Independent of the arguments. Insignificant complexity."] - #[doc = "- Contains one read."] - #[doc = "- Writes are limited to the `origin` account key."] + #[doc = "See [`Pallet::chill`]."] pub fn chill(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", @@ -9687,18 +8319,7 @@ pub mod api { ], ) } - #[doc = "(Re-)set the payment target for a controller."] - #[doc = ""] - #[doc = "Effects will be felt instantly (as soon as this function is completed successfully)."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- O(1)"] - #[doc = "- Independent of the arguments. Insignificant complexity."] - #[doc = "- Contains a limited number of reads."] - #[doc = "- Writes are limited to the `origin` account key."] - #[doc = "---------"] + #[doc = "See [`Pallet::set_payee`]."] pub fn set_payee( &self, payee: runtime_types::pallet_staking::RewardDestination< @@ -9717,39 +8338,21 @@ pub mod api { ], ) } - #[doc = "(Re-)set the controller of a stash."] - #[doc = ""] - #[doc = "Effects will be felt instantly (as soon as this function is completed successfully)."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ by the stash, not the controller."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "O(1)"] - #[doc = "- Independent of the arguments. Insignificant complexity."] - #[doc = "- Contains a limited number of reads."] - #[doc = "- Writes are limited to the `origin` account key."] - pub fn set_controller( - &self, - controller: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - ) -> ::subxt::tx::Payload { + #[doc = "See [`Pallet::set_controller`]."] + pub fn set_controller(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", "set_controller", - types::SetController { controller }, + types::SetController {}, [ - 230u8, 253u8, 112u8, 246u8, 188u8, 255u8, 116u8, 241u8, 200u8, 175u8, - 185u8, 229u8, 191u8, 180u8, 37u8, 62u8, 114u8, 226u8, 90u8, 181u8, - 112u8, 7u8, 194u8, 42u8, 190u8, 161u8, 14u8, 9u8, 40u8, 32u8, 223u8, - 118u8, + 172u8, 27u8, 195u8, 188u8, 145u8, 203u8, 190u8, 174u8, 145u8, 43u8, + 253u8, 87u8, 11u8, 229u8, 112u8, 18u8, 57u8, 101u8, 84u8, 235u8, 109u8, + 228u8, 58u8, 129u8, 179u8, 174u8, 245u8, 169u8, 89u8, 240u8, 39u8, + 67u8, ], ) } - #[doc = "Sets the ideal number of validators."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "O(1)"] + #[doc = "See [`Pallet::set_validator_count`]."] pub fn set_validator_count( &self, new: ::core::primitive::u32, @@ -9766,13 +8369,7 @@ pub mod api { ], ) } - #[doc = "Increments the ideal number of validators upto maximum of"] - #[doc = "`ElectionProviderBase::MaxWinners`."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "Same as [`Self::set_validator_count`]."] + #[doc = "See [`Pallet::increase_validator_count`]."] pub fn increase_validator_count( &self, additional: ::core::primitive::u32, @@ -9789,13 +8386,7 @@ pub mod api { ], ) } - #[doc = "Scale up the ideal number of validators by a factor upto maximum of"] - #[doc = "`ElectionProviderBase::MaxWinners`."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "Same as [`Self::set_validator_count`]."] + #[doc = "See [`Pallet::scale_validator_count`]."] pub fn scale_validator_count( &self, factor: runtime_types::sp_arithmetic::per_things::Percent, @@ -9812,19 +8403,7 @@ pub mod api { ], ) } - #[doc = "Force there to be no new eras indefinitely."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] - #[doc = ""] - #[doc = "# Warning"] - #[doc = ""] - #[doc = "The election process starts multiple blocks before the end of the era."] - #[doc = "Thus the election process may be ongoing when this is called. In this case the"] - #[doc = "election will continue until the next era is triggered."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- No arguments."] - #[doc = "- Weight: O(1)"] + #[doc = "See [`Pallet::force_no_eras`]."] pub fn force_no_eras(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", @@ -9838,20 +8417,7 @@ pub mod api { ], ) } - #[doc = "Force there to be a new era at the end of the next session. After this, it will be"] - #[doc = "reset to normal (non-forced) behaviour."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] - #[doc = ""] - #[doc = "# Warning"] - #[doc = ""] - #[doc = "The election process starts multiple blocks before the end of the era."] - #[doc = "If this is called just before a new era is triggered, the election process may not"] - #[doc = "have enough blocks to get a result."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- No arguments."] - #[doc = "- Weight: O(1)"] + #[doc = "See [`Pallet::force_new_era`]."] pub fn force_new_era(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", @@ -9864,9 +8430,7 @@ pub mod api { ], ) } - #[doc = "Set the validators who cannot be slashed (if any)."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] + #[doc = "See [`Pallet::set_invulnerables`]."] pub fn set_invulnerables( &self, invulnerables: ::std::vec::Vec<::subxt::utils::AccountId32>, @@ -9882,9 +8446,7 @@ pub mod api { ], ) } - #[doc = "Force a current staker to become completely unstaked, immediately."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] + #[doc = "See [`Pallet::force_unstake`]."] pub fn force_unstake( &self, stash: ::subxt::utils::AccountId32, @@ -9904,15 +8466,7 @@ pub mod api { ], ) } - #[doc = "Force there to be a new era at the end of sessions indefinitely."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] - #[doc = ""] - #[doc = "# Warning"] - #[doc = ""] - #[doc = "The election process starts multiple blocks before the end of the era."] - #[doc = "If this is called just before a new era is triggered, the election process may not"] - #[doc = "have enough blocks to get a result."] + #[doc = "See [`Pallet::force_new_era_always`]."] pub fn force_new_era_always( &self, ) -> ::subxt::tx::Payload { @@ -9927,11 +8481,7 @@ pub mod api { ], ) } - #[doc = "Cancel enactment of a deferred slash."] - #[doc = ""] - #[doc = "Can be called by the `T::AdminOrigin`."] - #[doc = ""] - #[doc = "Parameters: era and indices of the slashes for that era to kill."] + #[doc = "See [`Pallet::cancel_deferred_slash`]."] pub fn cancel_deferred_slash( &self, era: ::core::primitive::u32, @@ -9949,17 +8499,7 @@ pub mod api { ], ) } - #[doc = "Pay out all the stakers behind a single validator for a single era."] - #[doc = ""] - #[doc = "- `validator_stash` is the stash account of the validator. Their nominators, up to"] - #[doc = " `T::MaxNominatorRewardedPerValidator`, will also receive their rewards."] - #[doc = "- `era` may be any era between `[current_era - history_depth; current_era]`."] - #[doc = ""] - #[doc = "The origin of this call must be _Signed_. Any account can call this function, even if"] - #[doc = "it is not one of the stakers."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- At most O(MaxNominatorRewardedPerValidator)."] + #[doc = "See [`Pallet::payout_stakers`]."] pub fn payout_stakers( &self, validator_stash: ::subxt::utils::AccountId32, @@ -9979,13 +8519,7 @@ pub mod api { ], ) } - #[doc = "Rebond a portion of the stash scheduled to be unlocked."] - #[doc = ""] - #[doc = "The dispatch origin must be signed by the controller."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- Time complexity: O(L), where L is unlocking chunks"] - #[doc = "- Bounded by `MaxUnlockingChunks`."] + #[doc = "See [`Pallet::rebond`]."] pub fn rebond( &self, value: ::core::primitive::u128, @@ -10001,18 +8535,7 @@ pub mod api { ], ) } - #[doc = "Remove all data structures concerning a staker/stash once it is at a state where it can"] - #[doc = "be considered `dust` in the staking system. The requirements are:"] - #[doc = ""] - #[doc = "1. the `total_balance` of the stash is below existential deposit."] - #[doc = "2. or, the `ledger.total` of the stash is below existential deposit."] - #[doc = ""] - #[doc = "The former can happen in cases like a slash; the latter when a fully unbonded account"] - #[doc = "is still receiving staking rewards in `RewardDestination::Staked`."] - #[doc = ""] - #[doc = "It can be called by anyone, as long as `stash` meets the above requirements."] - #[doc = ""] - #[doc = "Refunds the transaction fees upon successful execution."] + #[doc = "See [`Pallet::reap_stash`]."] pub fn reap_stash( &self, stash: ::subxt::utils::AccountId32, @@ -10032,17 +8555,7 @@ pub mod api { ], ) } - #[doc = "Remove the given nominations from the calling validator."] - #[doc = ""] - #[doc = "Effects will be felt at the beginning of the next era."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] - #[doc = ""] - #[doc = "- `who`: A list of nominator stash accounts who are nominating this validator which"] - #[doc = " should no longer be nominating this validator."] - #[doc = ""] - #[doc = "Note: Making this call only makes sense if you first set the validator preferences to"] - #[doc = "block any further nominations."] + #[doc = "See [`Pallet::kick`]."] pub fn kick( &self, who: ::std::vec::Vec< @@ -10060,23 +8573,7 @@ pub mod api { ], ) } - #[doc = "Update the various staking configurations ."] - #[doc = ""] - #[doc = "* `min_nominator_bond`: The minimum active bond needed to be a nominator."] - #[doc = "* `min_validator_bond`: The minimum active bond needed to be a validator."] - #[doc = "* `max_nominator_count`: The max number of users who can be a nominator at once. When"] - #[doc = " set to `None`, no limit is enforced."] - #[doc = "* `max_validator_count`: The max number of users who can be a validator at once. When"] - #[doc = " set to `None`, no limit is enforced."] - #[doc = "* `chill_threshold`: The ratio of `max_nominator_count` or `max_validator_count` which"] - #[doc = " should be filled in order for the `chill_other` transaction to work."] - #[doc = "* `min_commission`: The minimum amount of commission that each validators must maintain."] - #[doc = " This is checked only upon calling `validate`. Existing validators are not affected."] - #[doc = ""] - #[doc = "RuntimeOrigin must be Root to call this function."] - #[doc = ""] - #[doc = "NOTE: Existing nominators and validators will not be affected by this update."] - #[doc = "to kick people under the new limits, `chill_other` should be called."] + #[doc = "See [`Pallet::set_staking_configs`]."] pub fn set_staking_configs( &self, min_nominator_bond: runtime_types::pallet_staking::pallet::pallet::ConfigOp< @@ -10117,32 +8614,7 @@ pub mod api { ], ) } - #[doc = "Declare a `controller` to stop participating as either a validator or nominator."] - #[doc = ""] - #[doc = "Effects will be felt at the beginning of the next era."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_, but can be called by anyone."] - #[doc = ""] - #[doc = "If the caller is the same as the controller being targeted, then no further checks are"] - #[doc = "enforced, and this function behaves just like `chill`."] - #[doc = ""] - #[doc = "If the caller is different than the controller being targeted, the following conditions"] - #[doc = "must be met:"] - #[doc = ""] - #[doc = "* `controller` must belong to a nominator who has become non-decodable,"] - #[doc = ""] - #[doc = "Or:"] - #[doc = ""] - #[doc = "* A `ChillThreshold` must be set and checked which defines how close to the max"] - #[doc = " nominators or validators we must reach before users can start chilling one-another."] - #[doc = "* A `MaxNominatorCount` and `MaxValidatorCount` must be set which is used to determine"] - #[doc = " how close we are to the threshold."] - #[doc = "* A `MinNominatorBond` and `MinValidatorBond` must be set and checked, which determines"] - #[doc = " if this is a person that should be chilled because they have not met the threshold"] - #[doc = " bond required."] - #[doc = ""] - #[doc = "This can be helpful if bond requirements are updated, and we need to remove old users"] - #[doc = "who do not satisfy these requirements."] + #[doc = "See [`Pallet::chill_other`]."] pub fn chill_other( &self, controller: ::subxt::utils::AccountId32, @@ -10158,9 +8630,7 @@ pub mod api { ], ) } - #[doc = "Force a validator to have at least the minimum commission. This will not affect a"] - #[doc = "validator who already has a commission greater than or equal to the minimum. Any account"] - #[doc = "can call this."] + #[doc = "See [`Pallet::force_apply_min_commission`]."] pub fn force_apply_min_commission( &self, validator_stash: ::subxt::utils::AccountId32, @@ -10176,10 +8646,7 @@ pub mod api { ], ) } - #[doc = "Sets the minimum amount of commission that each validators must maintain."] - #[doc = ""] - #[doc = "This call has lower privilege requirements than `set_staking_config` and can be called"] - #[doc = "by the `T::AdminOrigin`. Root can always call this."] + #[doc = "See [`Pallet::set_min_commission`]."] pub fn set_min_commission( &self, new: runtime_types::sp_arithmetic::per_things::Perbill, @@ -10198,7 +8665,7 @@ pub mod api { } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_staking::pallet::pallet::Event; pub mod events { use super::runtime_types; @@ -12186,7 +10653,7 @@ pub mod api { use super::runtime_types; #[doc = "Error for the session pallet."] pub type Error = runtime_types::pallet_session::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_session::pallet::Call; pub mod calls { use super::root_mod; @@ -12230,15 +10697,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Sets the session key(s) of the function caller to `keys`."] - #[doc = "Allows an account to set its session key prior to becoming a validator."] - #[doc = "This doesn't take effect until the next session."] - #[doc = ""] - #[doc = "The dispatch origin of this function must be signed."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is"] - #[doc = " fixed."] + #[doc = "See [`Pallet::set_keys`]."] pub fn set_keys( &self, keys: runtime_types::polkadot_runtime::SessionKeys, @@ -12255,18 +10714,7 @@ pub mod api { ], ) } - #[doc = "Removes any session key(s) of the function caller."] - #[doc = ""] - #[doc = "This doesn't take effect until the next session."] - #[doc = ""] - #[doc = "The dispatch origin of this function must be Signed and the account must be either be"] - #[doc = "convertible to a validator ID using the chain's typical addressing system (this usually"] - #[doc = "means being a controller account) or directly convertible into a validator ID (which"] - #[doc = "usually means being a stash account)."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(1)` in number of key types. Actual cost depends on the number of length of"] - #[doc = " `T::Keys::key_ids()` which is fixed."] + #[doc = "See [`Pallet::purge_keys`]."] pub fn purge_keys(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Session", @@ -12282,7 +10730,7 @@ pub mod api { } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_session::pallet::Event; pub mod events { use super::runtime_types; @@ -12527,9 +10975,9 @@ pub mod api { pub mod grandpa { use super::root_mod; use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_grandpa::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_grandpa::pallet::Call; pub mod calls { use super::root_mod; @@ -12604,10 +11052,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Report voter equivocation/misbehavior. This method will verify the"] - #[doc = "equivocation proof and validate the given key ownership proof"] - #[doc = "against the extracted offender. If both are valid, the offence"] - #[doc = "will be reported."] + #[doc = "See [`Pallet::report_equivocation`]."] pub fn report_equivocation( &self, equivocation_proof: runtime_types::sp_consensus_grandpa::EquivocationProof< @@ -12631,15 +11076,7 @@ pub mod api { ], ) } - #[doc = "Report voter equivocation/misbehavior. This method will verify the"] - #[doc = "equivocation proof and validate the given key ownership proof"] - #[doc = "against the extracted offender. If both are valid, the offence"] - #[doc = "will be reported."] - #[doc = ""] - #[doc = "This extrinsic must be called unsigned and it is expected that only"] - #[doc = "block authors will call it (validated in `ValidateUnsigned`), as such"] - #[doc = "if the block author is defined it will be defined as the equivocation"] - #[doc = "reporter."] + #[doc = "See [`Pallet::report_equivocation_unsigned`]."] pub fn report_equivocation_unsigned( &self, equivocation_proof: runtime_types::sp_consensus_grandpa::EquivocationProof< @@ -12662,18 +11099,7 @@ pub mod api { ], ) } - #[doc = "Note that the current authority set of the GRANDPA finality gadget has stalled."] - #[doc = ""] - #[doc = "This will trigger a forced authority set change at the beginning of the next session, to"] - #[doc = "be enacted `delay` blocks after that. The `delay` should be high enough to safely assume"] - #[doc = "that the block signalling the forced change will not be re-orged e.g. 1000 blocks."] - #[doc = "The block production rate (which may be slowed down because of finality lagging) should"] - #[doc = "be taken into account when choosing the `delay`. The GRANDPA voters based on the new"] - #[doc = "authority will start voting on top of `best_finalized_block_number` for new finalized"] - #[doc = "blocks. `best_finalized_block_number` should be the highest of the latest finalized"] - #[doc = "block of all validators of the new authority set."] - #[doc = ""] - #[doc = "Only callable by root."] + #[doc = "See [`Pallet::note_stalled`]."] pub fn note_stalled( &self, delay: ::core::primitive::u32, @@ -12696,7 +11122,7 @@ pub mod api { } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_grandpa::pallet::Event; pub mod events { use super::runtime_types; @@ -12975,9 +11401,9 @@ pub mod api { pub mod im_online { use super::root_mod; use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_im_online::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_im_online::pallet::Call; pub mod calls { use super::root_mod; @@ -13007,11 +11433,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "## Complexity:"] - #[doc = "- `O(K + E)` where K is length of `Keys` (heartbeat.validators_len) and E is length of"] - #[doc = " `heartbeat.network_state.external_address`"] - #[doc = " - `O(K)`: decoding of length `K`"] - #[doc = " - `O(E)`: decoding/encoding of length `E`"] + #[doc = "See [`Pallet::heartbeat`]."] pub fn heartbeat( &self, heartbeat: runtime_types::pallet_im_online::Heartbeat<::core::primitive::u32>, @@ -13025,16 +11447,16 @@ pub mod api { signature, }, [ - 191u8, 155u8, 217u8, 65u8, 8u8, 34u8, 41u8, 185u8, 187u8, 199u8, 164u8, - 48u8, 76u8, 123u8, 235u8, 182u8, 85u8, 107u8, 48u8, 158u8, 110u8, - 206u8, 145u8, 119u8, 165u8, 253u8, 27u8, 59u8, 0u8, 112u8, 241u8, - 242u8, + 145u8, 227u8, 53u8, 178u8, 195u8, 173u8, 7u8, 209u8, 148u8, 82u8, + 125u8, 236u8, 128u8, 10u8, 134u8, 114u8, 95u8, 104u8, 111u8, 202u8, + 59u8, 192u8, 178u8, 182u8, 102u8, 86u8, 88u8, 50u8, 92u8, 66u8, 144u8, + 131u8, ], ) } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_im_online::pallet::Event; pub mod events { use super::runtime_types; @@ -13156,17 +11578,14 @@ pub mod api { ], ) } - #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex` to"] - #[doc = " `WrapperOpaque`."] + #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`."] pub fn received_heartbeats( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, _1: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::frame_support::traits::misc::WrapperOpaque< - runtime_types::pallet_im_online::BoundedOpaqueNetworkState, - >, + ::core::primitive::bool, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, @@ -13179,22 +11598,18 @@ pub mod api { ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), ], [ - 244u8, 195u8, 226u8, 146u8, 31u8, 109u8, 70u8, 31u8, 198u8, 97u8, - 116u8, 249u8, 115u8, 191u8, 13u8, 96u8, 12u8, 200u8, 235u8, 254u8, 3u8, - 36u8, 51u8, 43u8, 224u8, 251u8, 76u8, 197u8, 157u8, 173u8, 125u8, - 161u8, + 123u8, 182u8, 145u8, 49u8, 90u8, 110u8, 80u8, 53u8, 62u8, 45u8, 173u8, + 252u8, 126u8, 163u8, 229u8, 173u8, 54u8, 169u8, 61u8, 128u8, 10u8, + 33u8, 254u8, 78u8, 145u8, 134u8, 235u8, 26u8, 177u8, 55u8, 7u8, 75u8, ], ) } - #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex` to"] - #[doc = " `WrapperOpaque`."] + #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`."] pub fn received_heartbeats_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::frame_support::traits::misc::WrapperOpaque< - runtime_types::pallet_im_online::BoundedOpaqueNetworkState, - >, + ::core::primitive::bool, (), (), ::subxt::storage::address::Yes, @@ -13204,10 +11619,9 @@ pub mod api { "ReceivedHeartbeats", Vec::new(), [ - 244u8, 195u8, 226u8, 146u8, 31u8, 109u8, 70u8, 31u8, 198u8, 97u8, - 116u8, 249u8, 115u8, 191u8, 13u8, 96u8, 12u8, 200u8, 235u8, 254u8, 3u8, - 36u8, 51u8, 43u8, 224u8, 251u8, 76u8, 197u8, 157u8, 173u8, 125u8, - 161u8, + 123u8, 182u8, 145u8, 49u8, 90u8, 110u8, 80u8, 53u8, 62u8, 45u8, 173u8, + 252u8, 126u8, 163u8, 229u8, 173u8, 54u8, 169u8, 61u8, 128u8, 10u8, + 33u8, 254u8, 78u8, 145u8, 134u8, 235u8, 26u8, 177u8, 55u8, 7u8, 75u8, ], ) } @@ -13296,9 +11710,9 @@ pub mod api { pub mod democracy { use super::root_mod; use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_democracy::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_democracy::pallet::Call; pub mod calls { use super::root_mod; @@ -13653,15 +12067,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Propose a sensitive action to be taken."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_ and the sender must"] - #[doc = "have funds to cover the deposit."] - #[doc = ""] - #[doc = "- `proposal_hash`: The hash of the proposal preimage."] - #[doc = "- `value`: The amount of deposit (must be at least `MinimumDeposit`)."] - #[doc = ""] - #[doc = "Emits `Proposed`."] + #[doc = "See [`Pallet::propose`]."] pub fn propose( &self, proposal: runtime_types::frame_support::traits::preimages::Bounded< @@ -13681,12 +12087,7 @@ pub mod api { ], ) } - #[doc = "Signals agreement with a particular proposal."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_ and the sender"] - #[doc = "must have funds to cover the deposit, equal to the original deposit."] - #[doc = ""] - #[doc = "- `proposal`: The index of the proposal to second."] + #[doc = "See [`Pallet::second`]."] pub fn second( &self, proposal: ::core::primitive::u32, @@ -13703,13 +12104,7 @@ pub mod api { ], ) } - #[doc = "Vote in a referendum. If `vote.is_aye()`, the vote is to enact the proposal;"] - #[doc = "otherwise it is a vote to keep the status quo."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_."] - #[doc = ""] - #[doc = "- `ref_index`: The index of the referendum to vote for."] - #[doc = "- `vote`: The vote configuration."] + #[doc = "See [`Pallet::vote`]."] pub fn vote( &self, ref_index: ::core::primitive::u32, @@ -13729,14 +12124,7 @@ pub mod api { ], ) } - #[doc = "Schedule an emergency cancellation of a referendum. Cannot happen twice to the same"] - #[doc = "referendum."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be `CancellationOrigin`."] - #[doc = ""] - #[doc = "-`ref_index`: The index of the referendum to cancel."] - #[doc = ""] - #[doc = "Weight: `O(1)`."] + #[doc = "See [`Pallet::emergency_cancel`]."] pub fn emergency_cancel( &self, ref_index: ::core::primitive::u32, @@ -13752,12 +12140,7 @@ pub mod api { ], ) } - #[doc = "Schedule a referendum to be tabled once it is legal to schedule an external"] - #[doc = "referendum."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be `ExternalOrigin`."] - #[doc = ""] - #[doc = "- `proposal_hash`: The preimage hash of the proposal."] + #[doc = "See [`Pallet::external_propose`]."] pub fn external_propose( &self, proposal: runtime_types::frame_support::traits::preimages::Bounded< @@ -13776,17 +12159,7 @@ pub mod api { ], ) } - #[doc = "Schedule a majority-carries referendum to be tabled next once it is legal to schedule"] - #[doc = "an external referendum."] - #[doc = ""] - #[doc = "The dispatch of this call must be `ExternalMajorityOrigin`."] - #[doc = ""] - #[doc = "- `proposal_hash`: The preimage hash of the proposal."] - #[doc = ""] - #[doc = "Unlike `external_propose`, blacklisting has no effect on this and it may replace a"] - #[doc = "pre-scheduled `external_propose` call."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] + #[doc = "See [`Pallet::external_propose_majority`]."] pub fn external_propose_majority( &self, proposal: runtime_types::frame_support::traits::preimages::Bounded< @@ -13805,17 +12178,7 @@ pub mod api { ], ) } - #[doc = "Schedule a negative-turnout-bias referendum to be tabled next once it is legal to"] - #[doc = "schedule an external referendum."] - #[doc = ""] - #[doc = "The dispatch of this call must be `ExternalDefaultOrigin`."] - #[doc = ""] - #[doc = "- `proposal_hash`: The preimage hash of the proposal."] - #[doc = ""] - #[doc = "Unlike `external_propose`, blacklisting has no effect on this and it may replace a"] - #[doc = "pre-scheduled `external_propose` call."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] + #[doc = "See [`Pallet::external_propose_default`]."] pub fn external_propose_default( &self, proposal: runtime_types::frame_support::traits::preimages::Bounded< @@ -13834,22 +12197,7 @@ pub mod api { ], ) } - #[doc = "Schedule the currently externally-proposed majority-carries referendum to be tabled"] - #[doc = "immediately. If there is no externally-proposed referendum currently, or if there is one"] - #[doc = "but it is not a majority-carries referendum then it fails."] - #[doc = ""] - #[doc = "The dispatch of this call must be `FastTrackOrigin`."] - #[doc = ""] - #[doc = "- `proposal_hash`: The hash of the current external proposal."] - #[doc = "- `voting_period`: The period that is allowed for voting on this proposal. Increased to"] - #[doc = "\tMust be always greater than zero."] - #[doc = "\tFor `FastTrackOrigin` must be equal or greater than `FastTrackVotingPeriod`."] - #[doc = "- `delay`: The number of block after voting has ended in approval and this should be"] - #[doc = " enacted. This doesn't have a minimum amount."] - #[doc = ""] - #[doc = "Emits `Started`."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] + #[doc = "See [`Pallet::fast_track`]."] pub fn fast_track( &self, proposal_hash: ::subxt::utils::H256, @@ -13872,15 +12220,7 @@ pub mod api { ], ) } - #[doc = "Veto and blacklist the external proposal hash."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be `VetoOrigin`."] - #[doc = ""] - #[doc = "- `proposal_hash`: The preimage hash of the proposal to veto and blacklist."] - #[doc = ""] - #[doc = "Emits `Vetoed`."] - #[doc = ""] - #[doc = "Weight: `O(V + log(V))` where V is number of `existing vetoers`"] + #[doc = "See [`Pallet::veto_external`]."] pub fn veto_external( &self, proposal_hash: ::subxt::utils::H256, @@ -13897,13 +12237,7 @@ pub mod api { ], ) } - #[doc = "Remove a referendum."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Root_."] - #[doc = ""] - #[doc = "- `ref_index`: The index of the referendum to cancel."] - #[doc = ""] - #[doc = "# Weight: `O(1)`."] + #[doc = "See [`Pallet::cancel_referendum`]."] pub fn cancel_referendum( &self, ref_index: ::core::primitive::u32, @@ -13920,26 +12254,7 @@ pub mod api { ], ) } - #[doc = "Delegate the voting power (with some given conviction) of the sending account."] - #[doc = ""] - #[doc = "The balance delegated is locked for as long as it's delegated, and thereafter for the"] - #[doc = "time appropriate for the conviction's lock period."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_, and the signing account must either:"] - #[doc = " - be delegating already; or"] - #[doc = " - have no voting activity (if there is, then it will need to be removed/consolidated"] - #[doc = " through `reap_vote` or `unvote`)."] - #[doc = ""] - #[doc = "- `to`: The account whose voting the `target` account's voting power will follow."] - #[doc = "- `conviction`: The conviction that will be attached to the delegated votes. When the"] - #[doc = " account is undelegated, the funds will be locked for the corresponding period."] - #[doc = "- `balance`: The amount of the account's balance to be used in delegating. This must not"] - #[doc = " be more than the account's current balance."] - #[doc = ""] - #[doc = "Emits `Delegated`."] - #[doc = ""] - #[doc = "Weight: `O(R)` where R is the number of referendums the voter delegating to has"] - #[doc = " voted on. Weight is charged as if maximum votes."] + #[doc = "See [`Pallet::delegate`]."] pub fn delegate( &self, to: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -13961,18 +12276,7 @@ pub mod api { ], ) } - #[doc = "Undelegate the voting power of the sending account."] - #[doc = ""] - #[doc = "Tokens may be unlocked following once an amount of time consistent with the lock period"] - #[doc = "of the conviction with which the delegation was issued."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_ and the signing account must be"] - #[doc = "currently delegating."] - #[doc = ""] - #[doc = "Emits `Undelegated`."] - #[doc = ""] - #[doc = "Weight: `O(R)` where R is the number of referendums the voter delegating to has"] - #[doc = " voted on. Weight is charged as if maximum votes."] + #[doc = "See [`Pallet::undelegate`]."] pub fn undelegate(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Democracy", @@ -13986,11 +12290,7 @@ pub mod api { ], ) } - #[doc = "Clears all public proposals."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Root_."] - #[doc = ""] - #[doc = "Weight: `O(1)`."] + #[doc = "See [`Pallet::clear_public_proposals`]."] pub fn clear_public_proposals( &self, ) -> ::subxt::tx::Payload { @@ -14006,13 +12306,7 @@ pub mod api { ], ) } - #[doc = "Unlock tokens that have an expired lock."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_."] - #[doc = ""] - #[doc = "- `target`: The account to remove the lock on."] - #[doc = ""] - #[doc = "Weight: `O(R)` with R number of vote of target."] + #[doc = "See [`Pallet::unlock`]."] pub fn unlock( &self, target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -14028,33 +12322,7 @@ pub mod api { ], ) } - #[doc = "Remove a vote for a referendum."] - #[doc = ""] - #[doc = "If:"] - #[doc = "- the referendum was cancelled, or"] - #[doc = "- the referendum is ongoing, or"] - #[doc = "- the referendum has ended such that"] - #[doc = " - the vote of the account was in opposition to the result; or"] - #[doc = " - there was no conviction to the account's vote; or"] - #[doc = " - the account made a split vote"] - #[doc = "...then the vote is removed cleanly and a following call to `unlock` may result in more"] - #[doc = "funds being available."] - #[doc = ""] - #[doc = "If, however, the referendum has ended and:"] - #[doc = "- it finished corresponding to the vote of the account, and"] - #[doc = "- the account made a standard vote with conviction, and"] - #[doc = "- the lock period of the conviction is not over"] - #[doc = "...then the lock will be aggregated into the overall account's lock, which may involve"] - #[doc = "*overlocking* (where the two locks are combined into a single lock that is the maximum"] - #[doc = "of both the amount locked and the time is it locked for)."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_, and the signer must have a vote"] - #[doc = "registered for referendum `index`."] - #[doc = ""] - #[doc = "- `index`: The index of referendum of the vote to be removed."] - #[doc = ""] - #[doc = "Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on."] - #[doc = " Weight is calculated for the maximum number of vote."] + #[doc = "See [`Pallet::remove_vote`]."] pub fn remove_vote( &self, index: ::core::primitive::u32, @@ -14071,21 +12339,7 @@ pub mod api { ], ) } - #[doc = "Remove a vote for a referendum."] - #[doc = ""] - #[doc = "If the `target` is equal to the signer, then this function is exactly equivalent to"] - #[doc = "`remove_vote`. If not equal to the signer, then the vote must have expired,"] - #[doc = "either because the referendum was cancelled, because the voter lost the referendum or"] - #[doc = "because the conviction period is over."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_."] - #[doc = ""] - #[doc = "- `target`: The account of the vote to be removed; this account must have voted for"] - #[doc = " referendum `index`."] - #[doc = "- `index`: The index of referendum of the vote to be removed."] - #[doc = ""] - #[doc = "Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on."] - #[doc = " Weight is calculated for the maximum number of vote."] + #[doc = "See [`Pallet::remove_other_vote`]."] pub fn remove_other_vote( &self, target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -14102,21 +12356,7 @@ pub mod api { ], ) } - #[doc = "Permanently place a proposal into the blacklist. This prevents it from ever being"] - #[doc = "proposed again."] - #[doc = ""] - #[doc = "If called on a queued public or external proposal, then this will result in it being"] - #[doc = "removed. If the `ref_index` supplied is an active referendum with the proposal hash,"] - #[doc = "then it will be cancelled."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be `BlacklistOrigin`."] - #[doc = ""] - #[doc = "- `proposal_hash`: The proposal hash to blacklist permanently."] - #[doc = "- `ref_index`: An ongoing referendum whose hash is `proposal_hash`, which will be"] - #[doc = "cancelled."] - #[doc = ""] - #[doc = "Weight: `O(p)` (though as this is an high-privilege dispatch, we assume it has a"] - #[doc = " reasonable value)."] + #[doc = "See [`Pallet::blacklist`]."] pub fn blacklist( &self, proposal_hash: ::subxt::utils::H256, @@ -14137,13 +12377,7 @@ pub mod api { ], ) } - #[doc = "Remove a proposal."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be `CancelProposalOrigin`."] - #[doc = ""] - #[doc = "- `prop_index`: The index of the proposal to cancel."] - #[doc = ""] - #[doc = "Weight: `O(p)` where `p = PublicProps::::decode_len()`"] + #[doc = "See [`Pallet::cancel_proposal`]."] pub fn cancel_proposal( &self, prop_index: ::core::primitive::u32, @@ -14159,21 +12393,7 @@ pub mod api { ], ) } - #[doc = "Set or clear a metadata of a proposal or a referendum."] - #[doc = ""] - #[doc = "Parameters:"] - #[doc = "- `origin`: Must correspond to the `MetadataOwner`."] - #[doc = " - `ExternalOrigin` for an external proposal with the `SuperMajorityApprove`"] - #[doc = " threshold."] - #[doc = " - `ExternalDefaultOrigin` for an external proposal with the `SuperMajorityAgainst`"] - #[doc = " threshold."] - #[doc = " - `ExternalMajorityOrigin` for an external proposal with the `SimpleMajority`"] - #[doc = " threshold."] - #[doc = " - `Signed` by a creator for a public proposal."] - #[doc = " - `Signed` to clear a metadata for a finished referendum."] - #[doc = " - `Root` to set a metadata for an ongoing referendum."] - #[doc = "- `owner`: an identifier of a metadata owner."] - #[doc = "- `maybe_hash`: The hash of an on-chain stored preimage. `None` to clear a metadata."] + #[doc = "See [`Pallet::set_metadata`]."] pub fn set_metadata( &self, owner: runtime_types::pallet_democracy::types::MetadataOwner, @@ -14193,7 +12413,7 @@ pub mod api { } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_democracy::pallet::Event; pub mod events { use super::runtime_types; @@ -15206,9 +13426,9 @@ pub mod api { pub mod council { use super::root_mod; use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_collective::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_collective::pallet::Call; pub mod calls { use super::root_mod; @@ -15337,30 +13557,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Set the collective's membership."] - #[doc = ""] - #[doc = "- `new_members`: The new member list. Be nice to the chain and provide it sorted."] - #[doc = "- `prime`: The prime member whose vote sets the default."] - #[doc = "- `old_count`: The upper bound for the previous number of members in storage. Used for"] - #[doc = " weight estimation."] - #[doc = ""] - #[doc = "The dispatch of this call must be `SetMembersOrigin`."] - #[doc = ""] - #[doc = "NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but"] - #[doc = " the weight estimations rely on it to estimate dispatchable weight."] - #[doc = ""] - #[doc = "# WARNING:"] - #[doc = ""] - #[doc = "The `pallet-collective` can also be managed by logic outside of the pallet through the"] - #[doc = "implementation of the trait [`ChangeMembers`]."] - #[doc = "Any call to `set_members` must be careful that the member set doesn't get out of sync"] - #[doc = "with other logic managing the member set."] - #[doc = ""] - #[doc = "## Complexity:"] - #[doc = "- `O(MP + N)` where:"] - #[doc = " - `M` old-members-count (code- and governance-bounded)"] - #[doc = " - `N` new-members-count (code- and governance-bounded)"] - #[doc = " - `P` proposals-count (code-bounded)"] + #[doc = "See [`Pallet::set_members`]."] pub fn set_members( &self, new_members: ::std::vec::Vec<::subxt::utils::AccountId32>, @@ -15383,15 +13580,7 @@ pub mod api { ], ) } - #[doc = "Dispatch a proposal from a member using the `Member` origin."] - #[doc = ""] - #[doc = "Origin must be a member of the collective."] - #[doc = ""] - #[doc = "## Complexity:"] - #[doc = "- `O(B + M + P)` where:"] - #[doc = "- `B` is `proposal` size in bytes (length-fee-bounded)"] - #[doc = "- `M` members-count (code-bounded)"] - #[doc = "- `P` complexity of dispatching `proposal`"] + #[doc = "See [`Pallet::execute`]."] pub fn execute( &self, proposal: runtime_types::polkadot_runtime::RuntimeCall, @@ -15405,27 +13594,14 @@ pub mod api { length_bound, }, [ - 118u8, 178u8, 220u8, 249u8, 127u8, 175u8, 151u8, 231u8, 41u8, 91u8, - 48u8, 28u8, 181u8, 249u8, 95u8, 131u8, 89u8, 144u8, 70u8, 9u8, 58u8, - 172u8, 78u8, 224u8, 166u8, 166u8, 159u8, 110u8, 248u8, 32u8, 35u8, - 213u8, + 216u8, 185u8, 245u8, 220u8, 244u8, 26u8, 114u8, 10u8, 254u8, 75u8, + 64u8, 229u8, 195u8, 48u8, 61u8, 16u8, 185u8, 129u8, 188u8, 228u8, + 166u8, 252u8, 206u8, 236u8, 92u8, 0u8, 113u8, 196u8, 225u8, 148u8, 5u8, + 22u8, ], ) } - #[doc = "Add a new proposal to either be voted on or executed directly."] - #[doc = ""] - #[doc = "Requires the sender to be member."] - #[doc = ""] - #[doc = "`threshold` determines whether `proposal` is executed directly (`threshold < 2`)"] - #[doc = "or put up for voting."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(B + M + P1)` or `O(B + M + P2)` where:"] - #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] - #[doc = " - `M` is members-count (code- and governance-bounded)"] - #[doc = " - branching is influenced by `threshold` where:"] - #[doc = " - `P1` is proposal execution complexity (`threshold < 2`)"] - #[doc = " - `P2` is proposals-count (code-bounded) (`threshold >= 2`)"] + #[doc = "See [`Pallet::propose`]."] pub fn propose( &self, threshold: ::core::primitive::u32, @@ -15441,21 +13617,14 @@ pub mod api { length_bound, }, [ - 196u8, 235u8, 52u8, 130u8, 42u8, 10u8, 1u8, 177u8, 190u8, 43u8, 229u8, - 23u8, 17u8, 69u8, 209u8, 120u8, 238u8, 245u8, 250u8, 237u8, 137u8, - 42u8, 100u8, 193u8, 18u8, 89u8, 81u8, 108u8, 30u8, 0u8, 253u8, 92u8, + 95u8, 215u8, 116u8, 248u8, 230u8, 207u8, 176u8, 74u8, 234u8, 82u8, + 78u8, 234u8, 167u8, 233u8, 93u8, 88u8, 94u8, 144u8, 59u8, 3u8, 88u8, + 139u8, 175u8, 111u8, 255u8, 193u8, 97u8, 43u8, 197u8, 143u8, 68u8, + 217u8, ], ) } - #[doc = "Add an aye or nay vote for the sender to the given proposal."] - #[doc = ""] - #[doc = "Requires the sender to be a member."] - #[doc = ""] - #[doc = "Transaction fees will be waived if the member is voting on any particular proposal"] - #[doc = "for the first time and the call is successful. Subsequent vote changes will charge a"] - #[doc = "fee."] - #[doc = "## Complexity"] - #[doc = "- `O(M)` where `M` is members-count (code- and governance-bounded)"] + #[doc = "See [`Pallet::vote`]."] pub fn vote( &self, proposal: ::subxt::utils::H256, @@ -15478,16 +13647,7 @@ pub mod api { ], ) } - #[doc = "Disapprove a proposal, close, and remove it from the system, regardless of its current"] - #[doc = "state."] - #[doc = ""] - #[doc = "Must be called by the Root origin."] - #[doc = ""] - #[doc = "Parameters:"] - #[doc = "* `proposal_hash`: The hash of the proposal that should be disapproved."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "O(P) where P is the number of max proposals"] + #[doc = "See [`Pallet::disapprove_proposal`]."] pub fn disapprove_proposal( &self, proposal_hash: ::subxt::utils::H256, @@ -15503,30 +13663,7 @@ pub mod api { ], ) } - #[doc = "Close a vote that is either approved, disapproved or whose voting period has ended."] - #[doc = ""] - #[doc = "May be called by any signed account in order to finish voting and close the proposal."] - #[doc = ""] - #[doc = "If called before the end of the voting period it will only close the vote if it is"] - #[doc = "has enough votes to be approved or disapproved."] - #[doc = ""] - #[doc = "If called after the end of the voting period abstentions are counted as rejections"] - #[doc = "unless there is a prime member set and the prime member cast an approval."] - #[doc = ""] - #[doc = "If the close operation completes successfully with disapproval, the transaction fee will"] - #[doc = "be waived. Otherwise execution of the approved operation will be charged to the caller."] - #[doc = ""] - #[doc = "+ `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed"] - #[doc = "proposal."] - #[doc = "+ `length_bound`: The upper bound for the length of the proposal in storage. Checked via"] - #[doc = "`storage::read` so it is `size_of::() == 4` larger than the pure length."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(B + M + P1 + P2)` where:"] - #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] - #[doc = " - `M` is members-count (code- and governance-bounded)"] - #[doc = " - `P1` is the complexity of `proposal` preimage."] - #[doc = " - `P2` is proposal-count (code-bounded)"] + #[doc = "See [`Pallet::close`]."] pub fn close( &self, proposal_hash: ::subxt::utils::H256, @@ -15552,7 +13689,7 @@ pub mod api { } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_collective::pallet::Event; pub mod events { use super::runtime_types; @@ -15741,10 +13878,10 @@ pub mod api { _0.borrow(), )], [ - 121u8, 123u8, 184u8, 84u8, 246u8, 113u8, 189u8, 253u8, 37u8, 96u8, - 99u8, 188u8, 43u8, 159u8, 53u8, 140u8, 148u8, 127u8, 87u8, 178u8, - 240u8, 104u8, 9u8, 10u8, 84u8, 21u8, 217u8, 6u8, 247u8, 69u8, 87u8, - 151u8, + 1u8, 24u8, 41u8, 101u8, 123u8, 154u8, 94u8, 31u8, 199u8, 5u8, 126u8, + 198u8, 32u8, 45u8, 176u8, 214u8, 29u8, 47u8, 226u8, 226u8, 232u8, + 138u8, 155u8, 128u8, 113u8, 171u8, 248u8, 244u8, 59u8, 212u8, 167u8, + 50u8, ], ) } @@ -15763,10 +13900,10 @@ pub mod api { "ProposalOf", Vec::new(), [ - 121u8, 123u8, 184u8, 84u8, 246u8, 113u8, 189u8, 253u8, 37u8, 96u8, - 99u8, 188u8, 43u8, 159u8, 53u8, 140u8, 148u8, 127u8, 87u8, 178u8, - 240u8, 104u8, 9u8, 10u8, 84u8, 21u8, 217u8, 6u8, 247u8, 69u8, 87u8, - 151u8, + 1u8, 24u8, 41u8, 101u8, 123u8, 154u8, 94u8, 31u8, 199u8, 5u8, 126u8, + 198u8, 32u8, 45u8, 176u8, 214u8, 29u8, 47u8, 226u8, 226u8, 232u8, + 138u8, 155u8, 128u8, 113u8, 171u8, 248u8, 244u8, 59u8, 212u8, 167u8, + 50u8, ], ) } @@ -15911,9 +14048,9 @@ pub mod api { pub mod technical_committee { use super::root_mod; use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_collective::pallet::Error2; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_collective::pallet::Call2; pub mod calls { use super::root_mod; @@ -16042,30 +14179,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Set the collective's membership."] - #[doc = ""] - #[doc = "- `new_members`: The new member list. Be nice to the chain and provide it sorted."] - #[doc = "- `prime`: The prime member whose vote sets the default."] - #[doc = "- `old_count`: The upper bound for the previous number of members in storage. Used for"] - #[doc = " weight estimation."] - #[doc = ""] - #[doc = "The dispatch of this call must be `SetMembersOrigin`."] - #[doc = ""] - #[doc = "NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but"] - #[doc = " the weight estimations rely on it to estimate dispatchable weight."] - #[doc = ""] - #[doc = "# WARNING:"] - #[doc = ""] - #[doc = "The `pallet-collective` can also be managed by logic outside of the pallet through the"] - #[doc = "implementation of the trait [`ChangeMembers`]."] - #[doc = "Any call to `set_members` must be careful that the member set doesn't get out of sync"] - #[doc = "with other logic managing the member set."] - #[doc = ""] - #[doc = "## Complexity:"] - #[doc = "- `O(MP + N)` where:"] - #[doc = " - `M` old-members-count (code- and governance-bounded)"] - #[doc = " - `N` new-members-count (code- and governance-bounded)"] - #[doc = " - `P` proposals-count (code-bounded)"] + #[doc = "See [`Pallet::set_members`]."] pub fn set_members( &self, new_members: ::std::vec::Vec<::subxt::utils::AccountId32>, @@ -16088,15 +14202,7 @@ pub mod api { ], ) } - #[doc = "Dispatch a proposal from a member using the `Member` origin."] - #[doc = ""] - #[doc = "Origin must be a member of the collective."] - #[doc = ""] - #[doc = "## Complexity:"] - #[doc = "- `O(B + M + P)` where:"] - #[doc = "- `B` is `proposal` size in bytes (length-fee-bounded)"] - #[doc = "- `M` members-count (code-bounded)"] - #[doc = "- `P` complexity of dispatching `proposal`"] + #[doc = "See [`Pallet::execute`]."] pub fn execute( &self, proposal: runtime_types::polkadot_runtime::RuntimeCall, @@ -16110,27 +14216,14 @@ pub mod api { length_bound, }, [ - 118u8, 178u8, 220u8, 249u8, 127u8, 175u8, 151u8, 231u8, 41u8, 91u8, - 48u8, 28u8, 181u8, 249u8, 95u8, 131u8, 89u8, 144u8, 70u8, 9u8, 58u8, - 172u8, 78u8, 224u8, 166u8, 166u8, 159u8, 110u8, 248u8, 32u8, 35u8, - 213u8, + 216u8, 185u8, 245u8, 220u8, 244u8, 26u8, 114u8, 10u8, 254u8, 75u8, + 64u8, 229u8, 195u8, 48u8, 61u8, 16u8, 185u8, 129u8, 188u8, 228u8, + 166u8, 252u8, 206u8, 236u8, 92u8, 0u8, 113u8, 196u8, 225u8, 148u8, 5u8, + 22u8, ], ) } - #[doc = "Add a new proposal to either be voted on or executed directly."] - #[doc = ""] - #[doc = "Requires the sender to be member."] - #[doc = ""] - #[doc = "`threshold` determines whether `proposal` is executed directly (`threshold < 2`)"] - #[doc = "or put up for voting."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(B + M + P1)` or `O(B + M + P2)` where:"] - #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] - #[doc = " - `M` is members-count (code- and governance-bounded)"] - #[doc = " - branching is influenced by `threshold` where:"] - #[doc = " - `P1` is proposal execution complexity (`threshold < 2`)"] - #[doc = " - `P2` is proposals-count (code-bounded) (`threshold >= 2`)"] + #[doc = "See [`Pallet::propose`]."] pub fn propose( &self, threshold: ::core::primitive::u32, @@ -16146,21 +14239,14 @@ pub mod api { length_bound, }, [ - 196u8, 235u8, 52u8, 130u8, 42u8, 10u8, 1u8, 177u8, 190u8, 43u8, 229u8, - 23u8, 17u8, 69u8, 209u8, 120u8, 238u8, 245u8, 250u8, 237u8, 137u8, - 42u8, 100u8, 193u8, 18u8, 89u8, 81u8, 108u8, 30u8, 0u8, 253u8, 92u8, + 95u8, 215u8, 116u8, 248u8, 230u8, 207u8, 176u8, 74u8, 234u8, 82u8, + 78u8, 234u8, 167u8, 233u8, 93u8, 88u8, 94u8, 144u8, 59u8, 3u8, 88u8, + 139u8, 175u8, 111u8, 255u8, 193u8, 97u8, 43u8, 197u8, 143u8, 68u8, + 217u8, ], ) } - #[doc = "Add an aye or nay vote for the sender to the given proposal."] - #[doc = ""] - #[doc = "Requires the sender to be a member."] - #[doc = ""] - #[doc = "Transaction fees will be waived if the member is voting on any particular proposal"] - #[doc = "for the first time and the call is successful. Subsequent vote changes will charge a"] - #[doc = "fee."] - #[doc = "## Complexity"] - #[doc = "- `O(M)` where `M` is members-count (code- and governance-bounded)"] + #[doc = "See [`Pallet::vote`]."] pub fn vote( &self, proposal: ::subxt::utils::H256, @@ -16183,16 +14269,7 @@ pub mod api { ], ) } - #[doc = "Disapprove a proposal, close, and remove it from the system, regardless of its current"] - #[doc = "state."] - #[doc = ""] - #[doc = "Must be called by the Root origin."] - #[doc = ""] - #[doc = "Parameters:"] - #[doc = "* `proposal_hash`: The hash of the proposal that should be disapproved."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "O(P) where P is the number of max proposals"] + #[doc = "See [`Pallet::disapprove_proposal`]."] pub fn disapprove_proposal( &self, proposal_hash: ::subxt::utils::H256, @@ -16208,30 +14285,7 @@ pub mod api { ], ) } - #[doc = "Close a vote that is either approved, disapproved or whose voting period has ended."] - #[doc = ""] - #[doc = "May be called by any signed account in order to finish voting and close the proposal."] - #[doc = ""] - #[doc = "If called before the end of the voting period it will only close the vote if it is"] - #[doc = "has enough votes to be approved or disapproved."] - #[doc = ""] - #[doc = "If called after the end of the voting period abstentions are counted as rejections"] - #[doc = "unless there is a prime member set and the prime member cast an approval."] - #[doc = ""] - #[doc = "If the close operation completes successfully with disapproval, the transaction fee will"] - #[doc = "be waived. Otherwise execution of the approved operation will be charged to the caller."] - #[doc = ""] - #[doc = "+ `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed"] - #[doc = "proposal."] - #[doc = "+ `length_bound`: The upper bound for the length of the proposal in storage. Checked via"] - #[doc = "`storage::read` so it is `size_of::() == 4` larger than the pure length."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(B + M + P1 + P2)` where:"] - #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] - #[doc = " - `M` is members-count (code- and governance-bounded)"] - #[doc = " - `P1` is the complexity of `proposal` preimage."] - #[doc = " - `P2` is proposal-count (code-bounded)"] + #[doc = "See [`Pallet::close`]."] pub fn close( &self, proposal_hash: ::subxt::utils::H256, @@ -16257,7 +14311,7 @@ pub mod api { } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_collective::pallet::Event2; pub mod events { use super::runtime_types; @@ -16446,10 +14500,10 @@ pub mod api { _0.borrow(), )], [ - 121u8, 123u8, 184u8, 84u8, 246u8, 113u8, 189u8, 253u8, 37u8, 96u8, - 99u8, 188u8, 43u8, 159u8, 53u8, 140u8, 148u8, 127u8, 87u8, 178u8, - 240u8, 104u8, 9u8, 10u8, 84u8, 21u8, 217u8, 6u8, 247u8, 69u8, 87u8, - 151u8, + 1u8, 24u8, 41u8, 101u8, 123u8, 154u8, 94u8, 31u8, 199u8, 5u8, 126u8, + 198u8, 32u8, 45u8, 176u8, 214u8, 29u8, 47u8, 226u8, 226u8, 232u8, + 138u8, 155u8, 128u8, 113u8, 171u8, 248u8, 244u8, 59u8, 212u8, 167u8, + 50u8, ], ) } @@ -16468,10 +14522,10 @@ pub mod api { "ProposalOf", Vec::new(), [ - 121u8, 123u8, 184u8, 84u8, 246u8, 113u8, 189u8, 253u8, 37u8, 96u8, - 99u8, 188u8, 43u8, 159u8, 53u8, 140u8, 148u8, 127u8, 87u8, 178u8, - 240u8, 104u8, 9u8, 10u8, 84u8, 21u8, 217u8, 6u8, 247u8, 69u8, 87u8, - 151u8, + 1u8, 24u8, 41u8, 101u8, 123u8, 154u8, 94u8, 31u8, 199u8, 5u8, 126u8, + 198u8, 32u8, 45u8, 176u8, 214u8, 29u8, 47u8, 226u8, 226u8, 232u8, + 138u8, 155u8, 128u8, 113u8, 171u8, 248u8, 244u8, 59u8, 212u8, 167u8, + 50u8, ], ) } @@ -16616,9 +14670,9 @@ pub mod api { pub mod phragmen_election { use super::root_mod; use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_elections_phragmen::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_elections_phragmen::pallet::Call; pub mod calls { use super::root_mod; @@ -16735,25 +14789,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Vote for a set of candidates for the upcoming round of election. This can be called to"] - #[doc = "set the initial votes, or update already existing votes."] - #[doc = ""] - #[doc = "Upon initial voting, `value` units of `who`'s balance is locked and a deposit amount is"] - #[doc = "reserved. The deposit is based on the number of votes and can be updated over time."] - #[doc = ""] - #[doc = "The `votes` should:"] - #[doc = " - not be empty."] - #[doc = " - be less than the number of possible candidates. Note that all current members and"] - #[doc = " runners-up are also automatically candidates for the next round."] - #[doc = ""] - #[doc = "If `value` is more than `who`'s free balance, then the maximum of the two is used."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed."] - #[doc = ""] - #[doc = "### Warning"] - #[doc = ""] - #[doc = "It is the responsibility of the caller to **NOT** place all of their balance into the"] - #[doc = "lock and keep some for further operations."] + #[doc = "See [`Pallet::vote`]."] pub fn vote( &self, votes: ::std::vec::Vec<::subxt::utils::AccountId32>, @@ -16770,11 +14806,7 @@ pub mod api { ], ) } - #[doc = "Remove `origin` as a voter."] - #[doc = ""] - #[doc = "This removes the lock and returns the deposit."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed and be a voter."] + #[doc = "See [`Pallet::remove_voter`]."] pub fn remove_voter(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "PhragmenElection", @@ -16788,21 +14820,7 @@ pub mod api { ], ) } - #[doc = "Submit oneself for candidacy. A fixed amount of deposit is recorded."] - #[doc = ""] - #[doc = "All candidates are wiped at the end of the term. They either become a member/runner-up,"] - #[doc = "or leave the system while their deposit is slashed."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed."] - #[doc = ""] - #[doc = "### Warning"] - #[doc = ""] - #[doc = "Even if a candidate ends up being a member, they must call [`Call::renounce_candidacy`]"] - #[doc = "to get their deposit back. Losing the spot in an election will always lead to a slash."] - #[doc = ""] - #[doc = "The number of current candidates must be provided as witness data."] - #[doc = "## Complexity"] - #[doc = "O(C + log(C)) where C is candidate_count."] + #[doc = "See [`Pallet::submit_candidacy`]."] pub fn submit_candidacy( &self, candidate_count: ::core::primitive::u32, @@ -16819,26 +14837,7 @@ pub mod api { ], ) } - #[doc = "Renounce one's intention to be a candidate for the next election round. 3 potential"] - #[doc = "outcomes exist:"] - #[doc = ""] - #[doc = "- `origin` is a candidate and not elected in any set. In this case, the deposit is"] - #[doc = " unreserved, returned and origin is removed as a candidate."] - #[doc = "- `origin` is a current runner-up. In this case, the deposit is unreserved, returned and"] - #[doc = " origin is removed as a runner-up."] - #[doc = "- `origin` is a current member. In this case, the deposit is unreserved and origin is"] - #[doc = " removed as a member, consequently not being a candidate for the next round anymore."] - #[doc = " Similar to [`remove_member`](Self::remove_member), if replacement runners exists, they"] - #[doc = " are immediately used. If the prime is renouncing, then no prime will exist until the"] - #[doc = " next round."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed, and have one of the above roles."] - #[doc = "The type of renouncing must be provided as witness data."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = " - Renouncing::Candidate(count): O(count + log(count))"] - #[doc = " - Renouncing::Member: O(1)"] - #[doc = " - Renouncing::RunnerUp: O(1)"] + #[doc = "See [`Pallet::renounce_candidacy`]."] pub fn renounce_candidacy( &self, renouncing: runtime_types::pallet_elections_phragmen::Renouncing, @@ -16855,22 +14854,7 @@ pub mod api { ], ) } - #[doc = "Remove a particular member from the set. This is effective immediately and the bond of"] - #[doc = "the outgoing member is slashed."] - #[doc = ""] - #[doc = "If a runner-up is available, then the best runner-up will be removed and replaces the"] - #[doc = "outgoing member. Otherwise, if `rerun_election` is `true`, a new phragmen election is"] - #[doc = "started, else, nothing happens."] - #[doc = ""] - #[doc = "If `slash_bond` is set to true, the bond of the member being removed is slashed. Else,"] - #[doc = "it is returned."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be root."] - #[doc = ""] - #[doc = "Note that this does not affect the designated block number of the next election."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- Check details of remove_and_replace_member() and do_phragmen()."] + #[doc = "See [`Pallet::remove_member`]."] pub fn remove_member( &self, who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -16892,15 +14876,7 @@ pub mod api { ], ) } - #[doc = "Clean all voters who are defunct (i.e. they do not serve any purpose at all). The"] - #[doc = "deposit of the removed voters are returned."] - #[doc = ""] - #[doc = "This is an root function to be used only for cleaning the state."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be root."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- Check is_defunct_voter() details."] + #[doc = "See [`Pallet::clean_defunct_voters`]."] pub fn clean_defunct_voters( &self, num_voters: ::core::primitive::u32, @@ -16923,7 +14899,7 @@ pub mod api { } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_elections_phragmen::pallet::Event; pub mod events { use super::runtime_types; @@ -17399,9 +15375,9 @@ pub mod api { pub mod technical_membership { use super::root_mod; use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_membership::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_membership::pallet::Call; pub mod calls { use super::root_mod; @@ -17530,9 +15506,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Add a member `who` to the set."] - #[doc = ""] - #[doc = "May only be called from `T::AddOrigin`."] + #[doc = "See [`Pallet::add_member`]."] pub fn add_member( &self, who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -17549,9 +15523,7 @@ pub mod api { ], ) } - #[doc = "Remove a member `who` from the set."] - #[doc = ""] - #[doc = "May only be called from `T::RemoveOrigin`."] + #[doc = "See [`Pallet::remove_member`]."] pub fn remove_member( &self, who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -17567,11 +15539,7 @@ pub mod api { ], ) } - #[doc = "Swap out one member `remove` for another `add`."] - #[doc = ""] - #[doc = "May only be called from `T::SwapOrigin`."] - #[doc = ""] - #[doc = "Prime membership is *not* passed from `remove` to `add`, if extant."] + #[doc = "See [`Pallet::swap_member`]."] pub fn swap_member( &self, remove: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -17588,10 +15556,7 @@ pub mod api { ], ) } - #[doc = "Change the membership to a new set, disregarding the existing membership. Be nice and"] - #[doc = "pass `members` pre-sorted."] - #[doc = ""] - #[doc = "May only be called from `T::ResetOrigin`."] + #[doc = "See [`Pallet::reset_members`]."] pub fn reset_members( &self, members: ::std::vec::Vec<::subxt::utils::AccountId32>, @@ -17607,11 +15572,7 @@ pub mod api { ], ) } - #[doc = "Swap out the sending member for some other key `new`."] - #[doc = ""] - #[doc = "May only be called from `Signed` origin of a current member."] - #[doc = ""] - #[doc = "Prime membership is passed from the origin account to `new`, if extant."] + #[doc = "See [`Pallet::change_key`]."] pub fn change_key( &self, new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -17628,9 +15589,7 @@ pub mod api { ], ) } - #[doc = "Set the prime member. Must be a current member."] - #[doc = ""] - #[doc = "May only be called from `T::PrimeOrigin`."] + #[doc = "See [`Pallet::set_prime`]."] pub fn set_prime( &self, who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -17647,9 +15606,7 @@ pub mod api { ], ) } - #[doc = "Remove the prime member if it exists."] - #[doc = ""] - #[doc = "May only be called from `T::PrimeOrigin`."] + #[doc = "See [`Pallet::clear_prime`]."] pub fn clear_prime(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "TechnicalMembership", @@ -17664,7 +15621,7 @@ pub mod api { } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_membership::pallet::Event; pub mod events { use super::runtime_types; @@ -17822,7 +15779,7 @@ pub mod api { use super::runtime_types; #[doc = "Error for the treasury pallet."] pub type Error = runtime_types::pallet_treasury::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_treasury::pallet::Call; pub mod calls { use super::root_mod; @@ -17925,12 +15882,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Put forward a suggestion for spending. A deposit proportional to the value"] - #[doc = "is reserved and slashed if the proposal is rejected. It is returned once the"] - #[doc = "proposal is awarded."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- O(1)"] + #[doc = "See [`Pallet::propose_spend`]."] pub fn propose_spend( &self, value: ::core::primitive::u128, @@ -17948,12 +15900,7 @@ pub mod api { ], ) } - #[doc = "Reject a proposed spend. The original deposit will be slashed."] - #[doc = ""] - #[doc = "May only be called from `T::RejectOrigin`."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- O(1)"] + #[doc = "See [`Pallet::reject_proposal`]."] pub fn reject_proposal( &self, proposal_id: ::core::primitive::u32, @@ -17969,13 +15916,7 @@ pub mod api { ], ) } - #[doc = "Approve a proposal. At a later time, the proposal will be allocated to the beneficiary"] - #[doc = "and the original deposit will be returned."] - #[doc = ""] - #[doc = "May only be called from `T::ApproveOrigin`."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = " - O(1)."] + #[doc = "See [`Pallet::approve_proposal`]."] pub fn approve_proposal( &self, proposal_id: ::core::primitive::u32, @@ -17991,14 +15932,7 @@ pub mod api { ], ) } - #[doc = "Propose and approve a spend of treasury funds."] - #[doc = ""] - #[doc = "- `origin`: Must be `SpendOrigin` with the `Success` value being at least `amount`."] - #[doc = "- `amount`: The amount to be transferred from the treasury to the `beneficiary`."] - #[doc = "- `beneficiary`: The destination account for the transfer."] - #[doc = ""] - #[doc = "NOTE: For record-keeping purposes, the proposer is deemed to be equivalent to the"] - #[doc = "beneficiary."] + #[doc = "See [`Pallet::spend`]."] pub fn spend( &self, amount: ::core::primitive::u128, @@ -18019,19 +15953,7 @@ pub mod api { ], ) } - #[doc = "Force a previously approved proposal to be removed from the approval queue."] - #[doc = "The original deposit will no longer be returned."] - #[doc = ""] - #[doc = "May only be called from `T::RejectOrigin`."] - #[doc = "- `proposal_id`: The index of a proposal"] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- O(A) where `A` is the number of approvals"] - #[doc = ""] - #[doc = "Errors:"] - #[doc = "- `ProposalNotApproved`: The `proposal_id` supplied was not found in the approval queue,"] - #[doc = "i.e., the proposal has not been approved. This could also mean the proposal does not"] - #[doc = "exist altogether, thus there is no way it would have been approved in the first place."] + #[doc = "See [`Pallet::remove_approval`]."] pub fn remove_approval( &self, proposal_id: ::core::primitive::u32, @@ -18050,7 +15972,7 @@ pub mod api { } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_treasury::pallet::Event; pub mod events { use super::runtime_types; @@ -18465,9 +16387,9 @@ pub mod api { pub mod conviction_voting { use super::root_mod; use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_conviction_voting::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_conviction_voting::pallet::Call; pub mod calls { use super::root_mod; @@ -18592,15 +16514,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Vote in a poll. If `vote.is_aye()`, the vote is to enact the proposal;"] - #[doc = "otherwise it is a vote to keep the status quo."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_."] - #[doc = ""] - #[doc = "- `poll_index`: The index of the poll to vote for."] - #[doc = "- `vote`: The vote configuration."] - #[doc = ""] - #[doc = "Weight: `O(R)` where R is the number of polls the voter has voted on."] + #[doc = "See [`Pallet::vote`]."] pub fn vote( &self, poll_index: ::core::primitive::u32, @@ -18619,29 +16533,7 @@ pub mod api { ], ) } - #[doc = "Delegate the voting power (with some given conviction) of the sending account for a"] - #[doc = "particular class of polls."] - #[doc = ""] - #[doc = "The balance delegated is locked for as long as it's delegated, and thereafter for the"] - #[doc = "time appropriate for the conviction's lock period."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_, and the signing account must either:"] - #[doc = " - be delegating already; or"] - #[doc = " - have no voting activity (if there is, then it will need to be removed/consolidated"] - #[doc = " through `reap_vote` or `unvote`)."] - #[doc = ""] - #[doc = "- `to`: The account whose voting the `target` account's voting power will follow."] - #[doc = "- `class`: The class of polls to delegate. To delegate multiple classes, multiple calls"] - #[doc = " to this function are required."] - #[doc = "- `conviction`: The conviction that will be attached to the delegated votes. When the"] - #[doc = " account is undelegated, the funds will be locked for the corresponding period."] - #[doc = "- `balance`: The amount of the account's balance to be used in delegating. This must not"] - #[doc = " be more than the account's current balance."] - #[doc = ""] - #[doc = "Emits `Delegated`."] - #[doc = ""] - #[doc = "Weight: `O(R)` where R is the number of polls the voter delegating to has"] - #[doc = " voted on. Weight is initially charged as if maximum votes, but is refunded later."] + #[doc = "See [`Pallet::delegate`]."] pub fn delegate( &self, class: ::core::primitive::u16, @@ -18665,20 +16557,7 @@ pub mod api { ], ) } - #[doc = "Undelegate the voting power of the sending account for a particular class of polls."] - #[doc = ""] - #[doc = "Tokens may be unlocked following once an amount of time consistent with the lock period"] - #[doc = "of the conviction with which the delegation was issued has passed."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_ and the signing account must be"] - #[doc = "currently delegating."] - #[doc = ""] - #[doc = "- `class`: The class of polls to remove the delegation from."] - #[doc = ""] - #[doc = "Emits `Undelegated`."] - #[doc = ""] - #[doc = "Weight: `O(R)` where R is the number of polls the voter delegating to has"] - #[doc = " voted on. Weight is initially charged as if maximum votes, but is refunded later."] + #[doc = "See [`Pallet::undelegate`]."] pub fn undelegate( &self, class: ::core::primitive::u16, @@ -18695,15 +16574,7 @@ pub mod api { ], ) } - #[doc = "Remove the lock caused by prior voting/delegating which has expired within a particular"] - #[doc = "class."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_."] - #[doc = ""] - #[doc = "- `class`: The class of polls to unlock."] - #[doc = "- `target`: The account to remove the lock on."] - #[doc = ""] - #[doc = "Weight: `O(R)` with R number of vote of target."] + #[doc = "See [`Pallet::unlock`]."] pub fn unlock( &self, class: ::core::primitive::u16, @@ -18720,35 +16591,7 @@ pub mod api { ], ) } - #[doc = "Remove a vote for a poll."] - #[doc = ""] - #[doc = "If:"] - #[doc = "- the poll was cancelled, or"] - #[doc = "- the poll is ongoing, or"] - #[doc = "- the poll has ended such that"] - #[doc = " - the vote of the account was in opposition to the result; or"] - #[doc = " - there was no conviction to the account's vote; or"] - #[doc = " - the account made a split vote"] - #[doc = "...then the vote is removed cleanly and a following call to `unlock` may result in more"] - #[doc = "funds being available."] - #[doc = ""] - #[doc = "If, however, the poll has ended and:"] - #[doc = "- it finished corresponding to the vote of the account, and"] - #[doc = "- the account made a standard vote with conviction, and"] - #[doc = "- the lock period of the conviction is not over"] - #[doc = "...then the lock will be aggregated into the overall account's lock, which may involve"] - #[doc = "*overlocking* (where the two locks are combined into a single lock that is the maximum"] - #[doc = "of both the amount locked and the time is it locked for)."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_, and the signer must have a vote"] - #[doc = "registered for poll `index`."] - #[doc = ""] - #[doc = "- `index`: The index of poll of the vote to be removed."] - #[doc = "- `class`: Optional parameter, if given it indicates the class of the poll. For polls"] - #[doc = " which have finished or are cancelled, this must be `Some`."] - #[doc = ""] - #[doc = "Weight: `O(R + log R)` where R is the number of polls that `target` has voted on."] - #[doc = " Weight is calculated for the maximum number of vote."] + #[doc = "See [`Pallet::remove_vote`]."] pub fn remove_vote( &self, class: ::core::option::Option<::core::primitive::u16>, @@ -18766,22 +16609,7 @@ pub mod api { ], ) } - #[doc = "Remove a vote for a poll."] - #[doc = ""] - #[doc = "If the `target` is equal to the signer, then this function is exactly equivalent to"] - #[doc = "`remove_vote`. If not equal to the signer, then the vote must have expired,"] - #[doc = "either because the poll was cancelled, because the voter lost the poll or"] - #[doc = "because the conviction period is over."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_."] - #[doc = ""] - #[doc = "- `target`: The account of the vote to be removed; this account must have voted for poll"] - #[doc = " `index`."] - #[doc = "- `index`: The index of poll of the vote to be removed."] - #[doc = "- `class`: The class of the poll."] - #[doc = ""] - #[doc = "Weight: `O(R + log R)` where R is the number of polls that `target` has voted on."] - #[doc = " Weight is calculated for the maximum number of vote."] + #[doc = "See [`Pallet::remove_other_vote`]."] pub fn remove_other_vote( &self, target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -18806,7 +16634,7 @@ pub mod api { } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_conviction_voting::pallet::Event; pub mod events { use super::runtime_types; @@ -19010,9 +16838,9 @@ pub mod api { pub mod referenda { use super::root_mod; use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_referenda::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_referenda::pallet::Call; pub mod calls { use super::root_mod; @@ -19192,15 +17020,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Propose a referendum on a privileged action."] - #[doc = ""] - #[doc = "- `origin`: must be `SubmitOrigin` and the account must have `SubmissionDeposit` funds"] - #[doc = " available."] - #[doc = "- `proposal_origin`: The origin from which the proposal should be executed."] - #[doc = "- `proposal`: The proposal."] - #[doc = "- `enactment_moment`: The moment that the proposal should be enacted."] - #[doc = ""] - #[doc = "Emits `Submitted`."] + #[doc = "See [`Pallet::submit`]."] pub fn submit( &self, proposal_origin: runtime_types::polkadot_runtime::OriginCaller, @@ -19227,14 +17047,7 @@ pub mod api { ], ) } - #[doc = "Post the Decision Deposit for a referendum."] - #[doc = ""] - #[doc = "- `origin`: must be `Signed` and the account must have funds available for the"] - #[doc = " referendum's track's Decision Deposit."] - #[doc = "- `index`: The index of the submitted referendum whose Decision Deposit is yet to be"] - #[doc = " posted."] - #[doc = ""] - #[doc = "Emits `DecisionDepositPlaced`."] + #[doc = "See [`Pallet::place_decision_deposit`]."] pub fn place_decision_deposit( &self, index: ::core::primitive::u32, @@ -19250,13 +17063,7 @@ pub mod api { ], ) } - #[doc = "Refund the Decision Deposit for a closed referendum back to the depositor."] - #[doc = ""] - #[doc = "- `origin`: must be `Signed` or `Root`."] - #[doc = "- `index`: The index of a closed referendum whose Decision Deposit has not yet been"] - #[doc = " refunded."] - #[doc = ""] - #[doc = "Emits `DecisionDepositRefunded`."] + #[doc = "See [`Pallet::refund_decision_deposit`]."] pub fn refund_decision_deposit( &self, index: ::core::primitive::u32, @@ -19272,12 +17079,7 @@ pub mod api { ], ) } - #[doc = "Cancel an ongoing referendum."] - #[doc = ""] - #[doc = "- `origin`: must be the `CancelOrigin`."] - #[doc = "- `index`: The index of the referendum to be cancelled."] - #[doc = ""] - #[doc = "Emits `Cancelled`."] + #[doc = "See [`Pallet::cancel`]."] pub fn cancel( &self, index: ::core::primitive::u32, @@ -19294,12 +17096,7 @@ pub mod api { ], ) } - #[doc = "Cancel an ongoing referendum and slash the deposits."] - #[doc = ""] - #[doc = "- `origin`: must be the `KillOrigin`."] - #[doc = "- `index`: The index of the referendum to be cancelled."] - #[doc = ""] - #[doc = "Emits `Killed` and `DepositSlashed`."] + #[doc = "See [`Pallet::kill`]."] pub fn kill( &self, index: ::core::primitive::u32, @@ -19316,10 +17113,7 @@ pub mod api { ], ) } - #[doc = "Advance a referendum onto its next logical state. Only used internally."] - #[doc = ""] - #[doc = "- `origin`: must be `Root`."] - #[doc = "- `index`: the referendum to be advanced."] + #[doc = "See [`Pallet::nudge_referendum`]."] pub fn nudge_referendum( &self, index: ::core::primitive::u32, @@ -19336,15 +17130,7 @@ pub mod api { ], ) } - #[doc = "Advance a track onto its next logical state. Only used internally."] - #[doc = ""] - #[doc = "- `origin`: must be `Root`."] - #[doc = "- `track`: the track to be advanced."] - #[doc = ""] - #[doc = "Action item for when there is now one fewer referendum in the deciding phase and the"] - #[doc = "`DecidingCount` is not yet updated. This means that we should either:"] - #[doc = "- begin deciding another referendum (and leave `DecidingCount` alone); or"] - #[doc = "- decrement `DecidingCount`."] + #[doc = "See [`Pallet::one_fewer_deciding`]."] pub fn one_fewer_deciding( &self, track: ::core::primitive::u16, @@ -19361,13 +17147,7 @@ pub mod api { ], ) } - #[doc = "Refund the Submission Deposit for a closed referendum back to the depositor."] - #[doc = ""] - #[doc = "- `origin`: must be `Signed` or `Root`."] - #[doc = "- `index`: The index of a closed referendum whose Submission Deposit has not yet been"] - #[doc = " refunded."] - #[doc = ""] - #[doc = "Emits `SubmissionDepositRefunded`."] + #[doc = "See [`Pallet::refund_submission_deposit`]."] pub fn refund_submission_deposit( &self, index: ::core::primitive::u32, @@ -19383,13 +17163,7 @@ pub mod api { ], ) } - #[doc = "Set or clear metadata of a referendum."] - #[doc = ""] - #[doc = "Parameters:"] - #[doc = "- `origin`: Must be `Signed` by a creator of a referendum or by anyone to clear a"] - #[doc = " metadata of a finished referendum."] - #[doc = "- `index`: The index of a referendum to set or clear metadata for."] - #[doc = "- `maybe_hash`: The hash of an on-chain stored preimage. `None` to clear a metadata."] + #[doc = "See [`Pallet::set_metadata`]."] pub fn set_metadata( &self, index: ::core::primitive::u32, @@ -19409,7 +17183,7 @@ pub mod api { } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_referenda::pallet::Event; pub mod events { use super::runtime_types; @@ -20085,9 +17859,9 @@ pub mod api { pub mod whitelist { use super::root_mod; use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_whitelist::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_whitelist::pallet::Call; pub mod calls { use super::root_mod; @@ -20168,6 +17942,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { + #[doc = "See [`Pallet::whitelist_call`]."] pub fn whitelist_call( &self, call_hash: ::subxt::utils::H256, @@ -20184,6 +17959,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::remove_whitelisted_call`]."] pub fn remove_whitelisted_call( &self, call_hash: ::subxt::utils::H256, @@ -20200,6 +17976,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::dispatch_whitelisted_call`]."] pub fn dispatch_whitelisted_call( &self, call_hash: ::subxt::utils::H256, @@ -20222,6 +17999,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::dispatch_whitelisted_call_with_preimage`]."] pub fn dispatch_whitelisted_call_with_preimage( &self, call: runtime_types::polkadot_runtime::RuntimeCall, @@ -20234,16 +18012,16 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 165u8, 145u8, 232u8, 196u8, 0u8, 120u8, 40u8, 224u8, 54u8, 58u8, 90u8, - 6u8, 161u8, 131u8, 151u8, 169u8, 150u8, 219u8, 126u8, 151u8, 27u8, - 96u8, 237u8, 148u8, 119u8, 137u8, 130u8, 144u8, 133u8, 223u8, 133u8, - 86u8, + 67u8, 177u8, 224u8, 225u8, 229u8, 76u8, 167u8, 239u8, 201u8, 47u8, 1u8, + 73u8, 248u8, 123u8, 100u8, 220u8, 49u8, 190u8, 10u8, 116u8, 81u8, + 209u8, 1u8, 207u8, 206u8, 190u8, 168u8, 180u8, 171u8, 238u8, 132u8, + 145u8, ], ) } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_whitelist::pallet::Event; pub mod events { use super::runtime_types; @@ -20358,9 +18136,9 @@ pub mod api { pub mod claims { use super::root_mod; use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::polkadot_runtime_common::claims::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::polkadot_runtime_common::claims::pallet::Call; pub mod calls { use super::root_mod; @@ -20472,30 +18250,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Make a claim to collect your DOTs."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _None_."] - #[doc = ""] - #[doc = "Unsigned Validation:"] - #[doc = "A call to claim is deemed valid if the signature provided matches"] - #[doc = "the expected signed message of:"] - #[doc = ""] - #[doc = "> Ethereum Signed Message:"] - #[doc = "> (configured prefix string)(address)"] - #[doc = ""] - #[doc = "and `address` matches the `dest` account."] - #[doc = ""] - #[doc = "Parameters:"] - #[doc = "- `dest`: The destination account to payout the claim."] - #[doc = "- `ethereum_signature`: The signature of an ethereum signed message"] - #[doc = " matching the format described above."] - #[doc = ""] - #[doc = ""] - #[doc = "The weight of this call is invariant over the input parameters."] - #[doc = "Weight includes logic to validate unsigned `claim` call."] - #[doc = ""] - #[doc = "Total Complexity: O(1)"] - #[doc = ""] + #[doc = "See [`Pallet::claim`]."] pub fn claim( &self, dest: ::subxt::utils::AccountId32, @@ -20516,21 +18271,7 @@ pub mod api { ], ) } - #[doc = "Mint a new claim to collect DOTs."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Root_."] - #[doc = ""] - #[doc = "Parameters:"] - #[doc = "- `who`: The Ethereum address allowed to collect this claim."] - #[doc = "- `value`: The number of DOTs that will be claimed."] - #[doc = "- `vesting_schedule`: An optional vesting schedule for these DOTs."] - #[doc = ""] - #[doc = ""] - #[doc = "The weight of this call is invariant over the input parameters."] - #[doc = "We assume worst case that both vesting and statement is being inserted."] - #[doc = ""] - #[doc = "Total Complexity: O(1)"] - #[doc = ""] + #[doc = "See [`Pallet::mint_claim`]."] pub fn mint_claim( &self, who: runtime_types::polkadot_runtime_common::claims::EthereumAddress, @@ -20560,32 +18301,7 @@ pub mod api { ], ) } - #[doc = "Make a claim to collect your DOTs by signing a statement."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _None_."] - #[doc = ""] - #[doc = "Unsigned Validation:"] - #[doc = "A call to `claim_attest` is deemed valid if the signature provided matches"] - #[doc = "the expected signed message of:"] - #[doc = ""] - #[doc = "> Ethereum Signed Message:"] - #[doc = "> (configured prefix string)(address)(statement)"] - #[doc = ""] - #[doc = "and `address` matches the `dest` account; the `statement` must match that which is"] - #[doc = "expected according to your purchase arrangement."] - #[doc = ""] - #[doc = "Parameters:"] - #[doc = "- `dest`: The destination account to payout the claim."] - #[doc = "- `ethereum_signature`: The signature of an ethereum signed message"] - #[doc = " matching the format described above."] - #[doc = "- `statement`: The identity of the statement which is being attested to in the signature."] - #[doc = ""] - #[doc = ""] - #[doc = "The weight of this call is invariant over the input parameters."] - #[doc = "Weight includes logic to validate unsigned `claim_attest` call."] - #[doc = ""] - #[doc = "Total Complexity: O(1)"] - #[doc = ""] + #[doc = "See [`Pallet::claim_attest`]."] pub fn claim_attest( &self, dest: ::subxt::utils::AccountId32, @@ -20607,23 +18323,7 @@ pub mod api { ], ) } - #[doc = "Attest to a statement, needed to finalize the claims process."] - #[doc = ""] - #[doc = "WARNING: Insecure unless your chain includes `PrevalidateAttests` as a `SignedExtension`."] - #[doc = ""] - #[doc = "Unsigned Validation:"] - #[doc = "A call to attest is deemed valid if the sender has a `Preclaim` registered"] - #[doc = "and provides a `statement` which is expected for the account."] - #[doc = ""] - #[doc = "Parameters:"] - #[doc = "- `statement`: The identity of the statement which is being attested to in the signature."] - #[doc = ""] - #[doc = ""] - #[doc = "The weight of this call is invariant over the input parameters."] - #[doc = "Weight includes logic to do pre-validation on `attest` call."] - #[doc = ""] - #[doc = "Total Complexity: O(1)"] - #[doc = ""] + #[doc = "See [`Pallet::attest`]."] pub fn attest( &self, statement: ::std::vec::Vec<::core::primitive::u8>, @@ -20640,6 +18340,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::move_claim`]."] pub fn move_claim( &self, old: runtime_types::polkadot_runtime_common::claims::EthereumAddress, @@ -20663,7 +18364,7 @@ pub mod api { } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::polkadot_runtime_common::claims::pallet::Event; pub mod events { use super::runtime_types; @@ -20945,7 +18646,7 @@ pub mod api { use super::runtime_types; #[doc = "Error for the vesting pallet."] pub type Error = runtime_types::pallet_vesting::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_vesting::pallet::Call; pub mod calls { use super::root_mod; @@ -21049,15 +18750,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Unlock any vested funds of the sender account."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have funds still"] - #[doc = "locked under this pallet."] - #[doc = ""] - #[doc = "Emits either `VestingCompleted` or `VestingUpdated`."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(1)`."] + #[doc = "See [`Pallet::vest`]."] pub fn vest(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Vesting", @@ -21071,17 +18764,7 @@ pub mod api { ], ) } - #[doc = "Unlock any vested funds of a `target` account."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "- `target`: The account whose vested funds should be unlocked. Must have funds still"] - #[doc = "locked under this pallet."] - #[doc = ""] - #[doc = "Emits either `VestingCompleted` or `VestingUpdated`."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(1)`."] + #[doc = "See [`Pallet::vest_other`]."] pub fn vest_other( &self, target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -21098,19 +18781,7 @@ pub mod api { ], ) } - #[doc = "Create a vested transfer."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "- `target`: The account receiving the vested funds."] - #[doc = "- `schedule`: The vesting schedule attached to the transfer."] - #[doc = ""] - #[doc = "Emits `VestingCreated`."] - #[doc = ""] - #[doc = "NOTE: This will unlock all schedules through the current block."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(1)`."] + #[doc = "See [`Pallet::vested_transfer`]."] pub fn vested_transfer( &self, target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -21131,20 +18802,7 @@ pub mod api { ], ) } - #[doc = "Force a vested transfer."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Root_."] - #[doc = ""] - #[doc = "- `source`: The account whose funds should be transferred."] - #[doc = "- `target`: The account that should be transferred the vested funds."] - #[doc = "- `schedule`: The vesting schedule attached to the transfer."] - #[doc = ""] - #[doc = "Emits `VestingCreated`."] - #[doc = ""] - #[doc = "NOTE: This will unlock all schedules through the current block."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(1)`."] + #[doc = "See [`Pallet::force_vested_transfer`]."] pub fn force_vested_transfer( &self, source: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -21169,27 +18827,7 @@ pub mod api { ], ) } - #[doc = "Merge two vesting schedules together, creating a new vesting schedule that unlocks over"] - #[doc = "the highest possible start and end blocks. If both schedules have already started the"] - #[doc = "current block will be used as the schedule start; with the caveat that if one schedule"] - #[doc = "is finished by the current block, the other will be treated as the new merged schedule,"] - #[doc = "unmodified."] - #[doc = ""] - #[doc = "NOTE: If `schedule1_index == schedule2_index` this is a no-op."] - #[doc = "NOTE: This will unlock all schedules through the current block prior to merging."] - #[doc = "NOTE: If both schedules have ended by the current block, no new schedule will be created"] - #[doc = "and both will be removed."] - #[doc = ""] - #[doc = "Merged schedule attributes:"] - #[doc = "- `starting_block`: `MAX(schedule1.starting_block, scheduled2.starting_block,"] - #[doc = " current_block)`."] - #[doc = "- `ending_block`: `MAX(schedule1.ending_block, schedule2.ending_block)`."] - #[doc = "- `locked`: `schedule1.locked_at(current_block) + schedule2.locked_at(current_block)`."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "- `schedule1_index`: index of the first schedule to merge."] - #[doc = "- `schedule2_index`: index of the second schedule to merge."] + #[doc = "See [`Pallet::merge_schedules`]."] pub fn merge_schedules( &self, schedule1_index: ::core::primitive::u32, @@ -21211,7 +18849,7 @@ pub mod api { } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_vesting::pallet::Event; pub mod events { use super::runtime_types; @@ -21378,9 +19016,9 @@ pub mod api { pub mod utility { use super::root_mod; use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_utility::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_utility::pallet::Call; pub mod calls { use super::root_mod; @@ -21496,24 +19134,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Send a batch of dispatch calls."] - #[doc = ""] - #[doc = "May be called from any origin except `None`."] - #[doc = ""] - #[doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] - #[doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."] - #[doc = ""] - #[doc = "If origin is root then the calls are dispatched without checking origin filter. (This"] - #[doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- O(C) where C is the number of calls to be batched."] - #[doc = ""] - #[doc = "This will return `Ok` in all circumstances. To determine the success of the batch, an"] - #[doc = "event is deposited. If a call failed and the batch was interrupted, then the"] - #[doc = "`BatchInterrupted` event is deposited, along with the number of successful calls made"] - #[doc = "and the error of the failed call. If all were successful, then the `BatchCompleted`"] - #[doc = "event is deposited."] + #[doc = "See [`Pallet::batch`]."] pub fn batch( &self, calls: ::std::vec::Vec, @@ -21523,25 +19144,13 @@ pub mod api { "batch", types::Batch { calls }, [ - 206u8, 63u8, 238u8, 29u8, 17u8, 76u8, 147u8, 42u8, 207u8, 102u8, 254u8, - 73u8, 66u8, 84u8, 193u8, 60u8, 123u8, 228u8, 202u8, 16u8, 252u8, 116u8, - 254u8, 116u8, 224u8, 201u8, 68u8, 81u8, 83u8, 52u8, 140u8, 162u8, + 77u8, 176u8, 65u8, 208u8, 62u8, 46u8, 243u8, 25u8, 21u8, 163u8, 136u8, + 35u8, 237u8, 84u8, 7u8, 246u8, 18u8, 145u8, 88u8, 23u8, 26u8, 138u8, + 101u8, 206u8, 245u8, 95u8, 167u8, 53u8, 206u8, 47u8, 196u8, 120u8, ], ) } - #[doc = "Send a call through an indexed pseudonym of the sender."] - #[doc = ""] - #[doc = "Filter from origin are passed along. The call will be dispatched with an origin which"] - #[doc = "use the same filter as the origin of this call."] - #[doc = ""] - #[doc = "NOTE: If you need to ensure that any account-based filtering is not honored (i.e."] - #[doc = "because you expect `proxy` to have been used prior in the call stack and you do not want"] - #[doc = "the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1`"] - #[doc = "in the Multisig pallet instead."] - #[doc = ""] - #[doc = "NOTE: Prior to version *12, this was called `as_limited_sub`."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = "See [`Pallet::as_derivative`]."] pub fn as_derivative( &self, index: ::core::primitive::u16, @@ -21555,25 +19164,14 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 198u8, 130u8, 194u8, 65u8, 34u8, 1u8, 245u8, 50u8, 14u8, 19u8, 185u8, - 163u8, 167u8, 10u8, 3u8, 14u8, 86u8, 151u8, 235u8, 254u8, 187u8, 119u8, - 238u8, 234u8, 66u8, 171u8, 240u8, 29u8, 2u8, 12u8, 128u8, 232u8, + 167u8, 253u8, 240u8, 160u8, 45u8, 115u8, 192u8, 78u8, 43u8, 14u8, + 164u8, 226u8, 46u8, 222u8, 226u8, 203u8, 97u8, 166u8, 230u8, 168u8, + 210u8, 196u8, 133u8, 37u8, 213u8, 247u8, 230u8, 143u8, 98u8, 88u8, + 246u8, 207u8, ], ) } - #[doc = "Send a batch of dispatch calls and atomically execute them."] - #[doc = "The whole transaction will rollback and fail if any of the calls failed."] - #[doc = ""] - #[doc = "May be called from any origin except `None`."] - #[doc = ""] - #[doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] - #[doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."] - #[doc = ""] - #[doc = "If origin is root then the calls are dispatched without checking origin filter. (This"] - #[doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- O(C) where C is the number of calls to be batched."] + #[doc = "See [`Pallet::batch_all`]."] pub fn batch_all( &self, calls: ::std::vec::Vec, @@ -21583,18 +19181,13 @@ pub mod api { "batch_all", types::BatchAll { calls }, [ - 111u8, 232u8, 44u8, 90u8, 148u8, 170u8, 209u8, 220u8, 197u8, 196u8, - 75u8, 202u8, 206u8, 19u8, 42u8, 90u8, 76u8, 85u8, 28u8, 113u8, 182u8, - 62u8, 194u8, 52u8, 54u8, 14u8, 250u8, 178u8, 121u8, 132u8, 52u8, 244u8, + 60u8, 32u8, 11u8, 20u8, 78u8, 183u8, 127u8, 35u8, 234u8, 221u8, 81u8, + 6u8, 234u8, 90u8, 114u8, 47u8, 160u8, 78u8, 241u8, 45u8, 200u8, 71u8, + 216u8, 135u8, 185u8, 227u8, 60u8, 215u8, 119u8, 131u8, 105u8, 168u8, ], ) } - #[doc = "Dispatches a function call with a provided origin."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Root_."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- O(1)."] + #[doc = "See [`Pallet::dispatch_as`]."] pub fn dispatch_as( &self, as_origin: runtime_types::polkadot_runtime::OriginCaller, @@ -21608,26 +19201,13 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 202u8, 82u8, 213u8, 197u8, 129u8, 136u8, 23u8, 223u8, 214u8, 54u8, - 73u8, 126u8, 227u8, 240u8, 52u8, 222u8, 105u8, 46u8, 255u8, 66u8, - 199u8, 200u8, 2u8, 226u8, 107u8, 98u8, 142u8, 44u8, 135u8, 220u8, 13u8, - 62u8, + 215u8, 96u8, 253u8, 135u8, 162u8, 215u8, 57u8, 11u8, 29u8, 252u8, 69u8, + 209u8, 113u8, 29u8, 127u8, 248u8, 254u8, 187u8, 107u8, 191u8, 174u8, + 100u8, 25u8, 114u8, 126u8, 17u8, 73u8, 44u8, 43u8, 202u8, 76u8, 250u8, ], ) } - #[doc = "Send a batch of dispatch calls."] - #[doc = "Unlike `batch`, it allows errors and won't interrupt."] - #[doc = ""] - #[doc = "May be called from any origin except `None`."] - #[doc = ""] - #[doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] - #[doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."] - #[doc = ""] - #[doc = "If origin is root then the calls are dispatch without checking origin filter. (This"] - #[doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- O(C) where C is the number of calls to be batched."] + #[doc = "See [`Pallet::force_batch`]."] pub fn force_batch( &self, calls: ::std::vec::Vec, @@ -21637,19 +19217,13 @@ pub mod api { "force_batch", types::ForceBatch { calls }, [ - 5u8, 6u8, 194u8, 167u8, 95u8, 10u8, 18u8, 236u8, 102u8, 157u8, 249u8, - 104u8, 170u8, 77u8, 215u8, 111u8, 95u8, 141u8, 65u8, 43u8, 227u8, - 242u8, 24u8, 19u8, 241u8, 248u8, 191u8, 180u8, 157u8, 145u8, 140u8, - 148u8, + 59u8, 36u8, 137u8, 152u8, 227u8, 218u8, 8u8, 223u8, 44u8, 44u8, 149u8, + 31u8, 249u8, 124u8, 170u8, 185u8, 9u8, 166u8, 147u8, 238u8, 10u8, 58u8, + 229u8, 10u8, 236u8, 171u8, 114u8, 242u8, 255u8, 107u8, 138u8, 59u8, ], ) } - #[doc = "Dispatch a function call with a specified weight."] - #[doc = ""] - #[doc = "This function does not check the weight of the call, and instead allows the"] - #[doc = "Root origin to specify the weight of the call."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Root_."] + #[doc = "See [`Pallet::with_weight`]."] pub fn with_weight( &self, call: runtime_types::polkadot_runtime::RuntimeCall, @@ -21663,15 +19237,15 @@ pub mod api { weight, }, [ - 249u8, 241u8, 154u8, 18u8, 125u8, 189u8, 176u8, 39u8, 201u8, 244u8, - 174u8, 187u8, 248u8, 48u8, 44u8, 144u8, 87u8, 67u8, 80u8, 108u8, 136u8, - 181u8, 224u8, 45u8, 146u8, 9u8, 58u8, 132u8, 43u8, 222u8, 36u8, 20u8, + 18u8, 188u8, 157u8, 217u8, 79u8, 197u8, 24u8, 199u8, 167u8, 6u8, 194u8, + 8u8, 54u8, 41u8, 74u8, 47u8, 111u8, 200u8, 76u8, 210u8, 23u8, 125u8, + 14u8, 162u8, 193u8, 217u8, 200u8, 99u8, 57u8, 235u8, 128u8, 244u8, ], ) } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_utility::pallet::Event; pub mod events { use super::runtime_types; @@ -21805,7 +19379,7 @@ pub mod api { pub mod identity { use super::root_mod; use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_identity::pallet::Error; #[doc = "Identity pallet declaration."] pub type Call = runtime_types::pallet_identity::pallet::Call; @@ -22093,16 +19667,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Add a registrar to the system."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `T::RegistrarOrigin`."] - #[doc = ""] - #[doc = "- `account`: the account of the registrar."] - #[doc = ""] - #[doc = "Emits `RegistrarAdded` if successful."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(R)` where `R` registrar-count (governance-bounded and code-bounded)."] + #[doc = "See [`Pallet::add_registrar`]."] pub fn add_registrar( &self, account: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -22119,21 +19684,7 @@ pub mod api { ], ) } - #[doc = "Set an account's identity information and reserve the appropriate deposit."] - #[doc = ""] - #[doc = "If the account already has identity information, the deposit is taken as part payment"] - #[doc = "for the new deposit."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "- `info`: The identity information."] - #[doc = ""] - #[doc = "Emits `IdentitySet` if successful."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(X + X' + R)`"] - #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)"] - #[doc = " - where `R` judgements-count (registrar-count-bounded)"] + #[doc = "See [`Pallet::set_identity`]."] pub fn set_identity( &self, info: runtime_types::pallet_identity::types::IdentityInfo, @@ -22151,20 +19702,7 @@ pub mod api { ], ) } - #[doc = "Set the sub-accounts of the sender."] - #[doc = ""] - #[doc = "Payment: Any aggregate balance reserved by previous `set_subs` calls will be returned"] - #[doc = "and an amount `SubAccountDeposit` will be reserved for each item in `subs`."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] - #[doc = "identity."] - #[doc = ""] - #[doc = "- `subs`: The identity's (new) sub-accounts."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(P + S)`"] - #[doc = " - where `P` old-subs-count (hard- and deposit-bounded)."] - #[doc = " - where `S` subs-count (hard- and deposit-bounded)."] + #[doc = "See [`Pallet::set_subs`]."] pub fn set_subs( &self, subs: ::std::vec::Vec<( @@ -22184,20 +19722,7 @@ pub mod api { ], ) } - #[doc = "Clear an account's identity info and all sub-accounts and return all deposits."] - #[doc = ""] - #[doc = "Payment: All reserved balances on the account are returned."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] - #[doc = "identity."] - #[doc = ""] - #[doc = "Emits `IdentityCleared` if successful."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(R + S + X)`"] - #[doc = " - where `R` registrar-count (governance-bounded)."] - #[doc = " - where `S` subs-count (hard- and deposit-bounded)."] - #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] + #[doc = "See [`Pallet::clear_identity`]."] pub fn clear_identity(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Identity", @@ -22211,27 +19736,7 @@ pub mod api { ], ) } - #[doc = "Request a judgement from a registrar."] - #[doc = ""] - #[doc = "Payment: At most `max_fee` will be reserved for payment to the registrar if judgement"] - #[doc = "given."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a"] - #[doc = "registered identity."] - #[doc = ""] - #[doc = "- `reg_index`: The index of the registrar whose judgement is requested."] - #[doc = "- `max_fee`: The maximum fee that may be paid. This should just be auto-populated as:"] - #[doc = ""] - #[doc = "```nocompile"] - #[doc = "Self::registrars().get(reg_index).unwrap().fee"] - #[doc = "```"] - #[doc = ""] - #[doc = "Emits `JudgementRequested` if successful."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(R + X)`."] - #[doc = " - where `R` registrar-count (governance-bounded)."] - #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] + #[doc = "See [`Pallet::request_judgement`]."] pub fn request_judgement( &self, reg_index: ::core::primitive::u32, @@ -22248,21 +19753,7 @@ pub mod api { ], ) } - #[doc = "Cancel a previous request."] - #[doc = ""] - #[doc = "Payment: A previously reserved deposit is returned on success."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a"] - #[doc = "registered identity."] - #[doc = ""] - #[doc = "- `reg_index`: The index of the registrar whose judgement is no longer requested."] - #[doc = ""] - #[doc = "Emits `JudgementUnrequested` if successful."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(R + X)`."] - #[doc = " - where `R` registrar-count (governance-bounded)."] - #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] + #[doc = "See [`Pallet::cancel_request`]."] pub fn cancel_request( &self, reg_index: ::core::primitive::u32, @@ -22279,17 +19770,7 @@ pub mod api { ], ) } - #[doc = "Set the fee required for a judgement to be requested from a registrar."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] - #[doc = "of the registrar whose index is `index`."] - #[doc = ""] - #[doc = "- `index`: the index of the registrar whose fee is to be set."] - #[doc = "- `fee`: the new fee."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(R)`."] - #[doc = " - where `R` registrar-count (governance-bounded)."] + #[doc = "See [`Pallet::set_fee`]."] pub fn set_fee( &self, index: ::core::primitive::u32, @@ -22307,17 +19788,7 @@ pub mod api { ], ) } - #[doc = "Change the account associated with a registrar."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] - #[doc = "of the registrar whose index is `index`."] - #[doc = ""] - #[doc = "- `index`: the index of the registrar whose fee is to be set."] - #[doc = "- `new`: the new account ID."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(R)`."] - #[doc = " - where `R` registrar-count (governance-bounded)."] + #[doc = "See [`Pallet::set_account_id`]."] pub fn set_account_id( &self, index: ::core::primitive::u32, @@ -22334,17 +19805,7 @@ pub mod api { ], ) } - #[doc = "Set the field information for a registrar."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] - #[doc = "of the registrar whose index is `index`."] - #[doc = ""] - #[doc = "- `index`: the index of the registrar whose fee is to be set."] - #[doc = "- `fields`: the fields that the registrar concerns themselves with."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(R)`."] - #[doc = " - where `R` registrar-count (governance-bounded)."] + #[doc = "See [`Pallet::set_fields`]."] pub fn set_fields( &self, index: ::core::primitive::u32, @@ -22363,23 +19824,7 @@ pub mod api { ], ) } - #[doc = "Provide a judgement for an account's identity."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] - #[doc = "of the registrar whose index is `reg_index`."] - #[doc = ""] - #[doc = "- `reg_index`: the index of the registrar whose judgement is being made."] - #[doc = "- `target`: the account whose identity the judgement is upon. This must be an account"] - #[doc = " with a registered identity."] - #[doc = "- `judgement`: the judgement of the registrar of index `reg_index` about `target`."] - #[doc = "- `identity`: The hash of the [`IdentityInfo`] for that the judgement is provided."] - #[doc = ""] - #[doc = "Emits `JudgementGiven` if successful."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(R + X)`."] - #[doc = " - where `R` registrar-count (governance-bounded)."] - #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] + #[doc = "See [`Pallet::provide_judgement`]."] pub fn provide_judgement( &self, reg_index: ::core::primitive::u32, @@ -22405,24 +19850,7 @@ pub mod api { ], ) } - #[doc = "Remove an account's identity and sub-account information and slash the deposits."] - #[doc = ""] - #[doc = "Payment: Reserved balances from `set_subs` and `set_identity` are slashed and handled by"] - #[doc = "`Slash`. Verification request deposits are not returned; they should be cancelled"] - #[doc = "manually using `cancel_request`."] - #[doc = ""] - #[doc = "The dispatch origin for this call must match `T::ForceOrigin`."] - #[doc = ""] - #[doc = "- `target`: the account whose identity the judgement is upon. This must be an account"] - #[doc = " with a registered identity."] - #[doc = ""] - #[doc = "Emits `IdentityKilled` if successful."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(R + S + X)`"] - #[doc = " - where `R` registrar-count (governance-bounded)."] - #[doc = " - where `S` subs-count (hard- and deposit-bounded)."] - #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] + #[doc = "See [`Pallet::kill_identity`]."] pub fn kill_identity( &self, target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -22438,13 +19866,7 @@ pub mod api { ], ) } - #[doc = "Add the given account to the sender's subs."] - #[doc = ""] - #[doc = "Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated"] - #[doc = "to the sender."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] - #[doc = "sub identity of `sub`."] + #[doc = "See [`Pallet::add_sub`]."] pub fn add_sub( &self, sub: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -22462,10 +19884,7 @@ pub mod api { ], ) } - #[doc = "Alter the associated name of the given sub-account."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] - #[doc = "sub identity of `sub`."] + #[doc = "See [`Pallet::rename_sub`]."] pub fn rename_sub( &self, sub: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -22482,13 +19901,7 @@ pub mod api { ], ) } - #[doc = "Remove the given account from the sender's subs."] - #[doc = ""] - #[doc = "Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated"] - #[doc = "to the sender."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] - #[doc = "sub identity of `sub`."] + #[doc = "See [`Pallet::remove_sub`]."] pub fn remove_sub( &self, sub: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -22505,16 +19918,7 @@ pub mod api { ], ) } - #[doc = "Remove the sender as a sub-account."] - #[doc = ""] - #[doc = "Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated"] - #[doc = "to the sender (*not* the original depositor)."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] - #[doc = "super-identity."] - #[doc = ""] - #[doc = "NOTE: This should not normally be used, but is provided in the case that the non-"] - #[doc = "controller of an account is maliciously registered as a sub-account."] + #[doc = "See [`Pallet::quit_sub`]."] pub fn quit_sub(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Identity", @@ -22530,7 +19934,7 @@ pub mod api { } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_identity::pallet::Event; pub mod events { use super::runtime_types; @@ -23034,9 +20438,9 @@ pub mod api { pub mod proxy { use super::root_mod; use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_proxy::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_proxy::pallet::Call; pub mod calls { use super::root_mod; @@ -23237,15 +20641,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Dispatch the given `call` from an account that the sender is authorised for through"] - #[doc = "`add_proxy`."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "Parameters:"] - #[doc = "- `real`: The account that the proxy will make a call on behalf of."] - #[doc = "- `force_proxy_type`: Specify the exact proxy type to be used and checked for this call."] - #[doc = "- `call`: The call to be made by the `real` account."] + #[doc = "See [`Pallet::proxy`]."] pub fn proxy( &self, real: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -23263,22 +20659,13 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 136u8, 248u8, 134u8, 224u8, 164u8, 120u8, 212u8, 244u8, 156u8, 137u8, - 17u8, 57u8, 50u8, 88u8, 91u8, 32u8, 12u8, 224u8, 82u8, 129u8, 146u8, - 223u8, 93u8, 202u8, 130u8, 40u8, 231u8, 46u8, 126u8, 127u8, 201u8, - 154u8, + 171u8, 10u8, 194u8, 30u8, 89u8, 182u8, 54u8, 142u8, 107u8, 66u8, 194u8, + 115u8, 67u8, 5u8, 103u8, 93u8, 51u8, 7u8, 252u8, 55u8, 128u8, 197u8, + 17u8, 156u8, 74u8, 48u8, 223u8, 40u8, 51u8, 55u8, 39u8, 240u8, ], ) } - #[doc = "Register a proxy account for the sender that is able to make calls on its behalf."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "Parameters:"] - #[doc = "- `proxy`: The account that the `caller` would like to make a proxy."] - #[doc = "- `proxy_type`: The permissions allowed for this proxy account."] - #[doc = "- `delay`: The announcement period required of the initial proxy. Will generally be"] - #[doc = "zero."] + #[doc = "See [`Pallet::add_proxy`]."] pub fn add_proxy( &self, delegate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -23300,13 +20687,7 @@ pub mod api { ], ) } - #[doc = "Unregister a proxy account for the sender."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "Parameters:"] - #[doc = "- `proxy`: The account that the `caller` would like to remove as a proxy."] - #[doc = "- `proxy_type`: The permissions currently enabled for the removed proxy account."] + #[doc = "See [`Pallet::remove_proxy`]."] pub fn remove_proxy( &self, delegate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -23328,12 +20709,7 @@ pub mod api { ], ) } - #[doc = "Unregister all proxy accounts for the sender."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "WARNING: This may be called on accounts created by `pure`, however if done, then"] - #[doc = "the unreserved fees will be inaccessible. **All access to this account will be lost.**"] + #[doc = "See [`Pallet::remove_proxies`]."] pub fn remove_proxies(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Proxy", @@ -23347,24 +20723,7 @@ pub mod api { ], ) } - #[doc = "Spawn a fresh new account that is guaranteed to be otherwise inaccessible, and"] - #[doc = "initialize it with a proxy of `proxy_type` for `origin` sender."] - #[doc = ""] - #[doc = "Requires a `Signed` origin."] - #[doc = ""] - #[doc = "- `proxy_type`: The type of the proxy that the sender will be registered as over the"] - #[doc = "new account. This will almost always be the most permissive `ProxyType` possible to"] - #[doc = "allow for maximum flexibility."] - #[doc = "- `index`: A disambiguation index, in case this is called multiple times in the same"] - #[doc = "transaction (e.g. with `utility::batch`). Unless you're using `batch` you probably just"] - #[doc = "want to use `0`."] - #[doc = "- `delay`: The announcement period required of the initial proxy. Will generally be"] - #[doc = "zero."] - #[doc = ""] - #[doc = "Fails with `Duplicate` if this has already been called in this transaction, from the"] - #[doc = "same sender, with the same parameters."] - #[doc = ""] - #[doc = "Fails if there are insufficient funds to pay for deposit."] + #[doc = "See [`Pallet::create_pure`]."] pub fn create_pure( &self, proxy_type: runtime_types::polkadot_runtime::ProxyType, @@ -23386,22 +20745,7 @@ pub mod api { ], ) } - #[doc = "Removes a previously spawned pure proxy."] - #[doc = ""] - #[doc = "WARNING: **All access to this account will be lost.** Any funds held in it will be"] - #[doc = "inaccessible."] - #[doc = ""] - #[doc = "Requires a `Signed` origin, and the sender account must have been created by a call to"] - #[doc = "`pure` with corresponding parameters."] - #[doc = ""] - #[doc = "- `spawner`: The account that originally called `pure` to create this account."] - #[doc = "- `index`: The disambiguation index originally passed to `pure`. Probably `0`."] - #[doc = "- `proxy_type`: The proxy type originally passed to `pure`."] - #[doc = "- `height`: The height of the chain when the call to `pure` was processed."] - #[doc = "- `ext_index`: The extrinsic index in which the call to `pure` was processed."] - #[doc = ""] - #[doc = "Fails with `NoPermission` in case the caller is not a previously created pure"] - #[doc = "account whose `pure` call has corresponding parameters."] + #[doc = "See [`Pallet::kill_pure`]."] pub fn kill_pure( &self, spawner: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -23427,21 +20771,7 @@ pub mod api { ], ) } - #[doc = "Publish the hash of a proxy-call that will be made in the future."] - #[doc = ""] - #[doc = "This must be called some number of blocks before the corresponding `proxy` is attempted"] - #[doc = "if the delay associated with the proxy relationship is greater than zero."] - #[doc = ""] - #[doc = "No more than `MaxPending` announcements may be made at any one time."] - #[doc = ""] - #[doc = "This will take a deposit of `AnnouncementDepositFactor` as well as"] - #[doc = "`AnnouncementDepositBase` if there are no other pending announcements."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and a proxy of `real`."] - #[doc = ""] - #[doc = "Parameters:"] - #[doc = "- `real`: The account that the proxy will make a call on behalf of."] - #[doc = "- `call_hash`: The hash of the call to be made by the `real` account."] + #[doc = "See [`Pallet::announce`]."] pub fn announce( &self, real: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -23458,16 +20788,7 @@ pub mod api { ], ) } - #[doc = "Remove a given announcement."] - #[doc = ""] - #[doc = "May be called by a proxy account to remove a call they previously announced and return"] - #[doc = "the deposit."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "Parameters:"] - #[doc = "- `real`: The account that the proxy will make a call on behalf of."] - #[doc = "- `call_hash`: The hash of the call to be made by the `real` account."] + #[doc = "See [`Pallet::remove_announcement`]."] pub fn remove_announcement( &self, real: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -23485,16 +20806,7 @@ pub mod api { ], ) } - #[doc = "Remove the given announcement of a delegate."] - #[doc = ""] - #[doc = "May be called by a target (proxied) account to remove a call that one of their delegates"] - #[doc = "(`delegate`) has announced they want to execute. The deposit is returned."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "Parameters:"] - #[doc = "- `delegate`: The account that previously announced the call."] - #[doc = "- `call_hash`: The hash of the call to be made."] + #[doc = "See [`Pallet::reject_announcement`]."] pub fn reject_announcement( &self, delegate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -23515,17 +20827,7 @@ pub mod api { ], ) } - #[doc = "Dispatch the given `call` from an account that the sender is authorized for through"] - #[doc = "`add_proxy`."] - #[doc = ""] - #[doc = "Removes any corresponding announcement(s)."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "Parameters:"] - #[doc = "- `real`: The account that the proxy will make a call on behalf of."] - #[doc = "- `force_proxy_type`: Specify the exact proxy type to be used and checked for this call."] - #[doc = "- `call`: The call to be made by the `real` account."] + #[doc = "See [`Pallet::proxy_announced`]."] pub fn proxy_announced( &self, delegate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -23545,16 +20847,16 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 12u8, 189u8, 0u8, 232u8, 151u8, 222u8, 217u8, 130u8, 186u8, 212u8, - 144u8, 137u8, 55u8, 81u8, 253u8, 63u8, 150u8, 52u8, 246u8, 57u8, 82u8, - 121u8, 233u8, 175u8, 22u8, 171u8, 167u8, 216u8, 221u8, 135u8, 40u8, - 237u8, + 92u8, 39u8, 178u8, 161u8, 128u8, 239u8, 29u8, 145u8, 200u8, 189u8, + 89u8, 198u8, 22u8, 244u8, 222u8, 227u8, 145u8, 146u8, 34u8, 181u8, + 118u8, 140u8, 99u8, 3u8, 102u8, 195u8, 214u8, 126u8, 178u8, 193u8, + 190u8, 13u8, ], ) } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_proxy::pallet::Event; pub mod events { use super::runtime_types; @@ -23900,9 +21202,9 @@ pub mod api { pub mod multisig { use super::root_mod; use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_multisig::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_multisig::pallet::Call; pub mod calls { use super::root_mod; @@ -23998,18 +21300,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Immediately dispatch a multi-signature call using a single approval from the caller."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "- `other_signatories`: The accounts (other than the sender) who are part of the"] - #[doc = "multi-signature, but do not participate in the approval process."] - #[doc = "- `call`: The call to be executed."] - #[doc = ""] - #[doc = "Result is equivalent to the dispatched result."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "O(Z + C) where Z is the length of the call and C its execution weight."] + #[doc = "See [`Pallet::as_multi_threshold_1`]."] pub fn as_multi_threshold_1( &self, other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, @@ -24023,52 +21314,13 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 85u8, 252u8, 181u8, 111u8, 73u8, 191u8, 121u8, 79u8, 167u8, 59u8, - 107u8, 66u8, 196u8, 206u8, 156u8, 114u8, 145u8, 184u8, 113u8, 83u8, - 205u8, 195u8, 196u8, 222u8, 157u8, 177u8, 147u8, 250u8, 43u8, 112u8, - 213u8, 176u8, + 226u8, 172u8, 123u8, 77u8, 159u8, 140u8, 46u8, 141u8, 46u8, 45u8, 98u8, + 81u8, 191u8, 89u8, 131u8, 13u8, 79u8, 171u8, 163u8, 218u8, 146u8, 38u8, + 178u8, 88u8, 155u8, 239u8, 247u8, 241u8, 80u8, 230u8, 254u8, 17u8, ], ) } - #[doc = "Register approval for a dispatch to be made from a deterministic composite account if"] - #[doc = "approved by a total of `threshold - 1` of `other_signatories`."] - #[doc = ""] - #[doc = "If there are enough, then dispatch the call."] - #[doc = ""] - #[doc = "Payment: `DepositBase` will be reserved if this is the first approval, plus"] - #[doc = "`threshold` times `DepositFactor`. It is returned once this dispatch happens or"] - #[doc = "is cancelled."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] - #[doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] - #[doc = "dispatch. May not be empty."] - #[doc = "- `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is"] - #[doc = "not the first approval, then it must be `Some`, with the timepoint (block number and"] - #[doc = "transaction index) of the first approval transaction."] - #[doc = "- `call`: The call to be executed."] - #[doc = ""] - #[doc = "NOTE: Unless this is the final approval, you will generally want to use"] - #[doc = "`approve_as_multi` instead, since it only requires a hash of the call."] - #[doc = ""] - #[doc = "Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise"] - #[doc = "on success, result is `Ok` and the result from the interior call, if it was executed,"] - #[doc = "may be found in the deposited `MultisigExecuted` event."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(S + Z + Call)`."] - #[doc = "- Up to one balance-reserve or unreserve operation."] - #[doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] - #[doc = " signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] - #[doc = "- One call encode & hash, both of complexity `O(Z)` where `Z` is tx-len."] - #[doc = "- One encode & hash, both of complexity `O(S)`."] - #[doc = "- Up to one binary search and insert (`O(logS + S)`)."] - #[doc = "- I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove."] - #[doc = "- One event."] - #[doc = "- The weight of the `call`."] - #[doc = "- Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit"] - #[doc = " taken for its lifetime of `DepositBase + threshold * DepositFactor`."] + #[doc = "See [`Pallet::as_multi`]."] pub fn as_multi( &self, threshold: ::core::primitive::u16, @@ -24090,42 +21342,14 @@ pub mod api { max_weight, }, [ - 139u8, 231u8, 146u8, 130u8, 22u8, 182u8, 37u8, 110u8, 242u8, 10u8, - 200u8, 68u8, 29u8, 116u8, 237u8, 231u8, 7u8, 85u8, 232u8, 192u8, 180u8, - 187u8, 25u8, 109u8, 90u8, 58u8, 93u8, 164u8, 20u8, 190u8, 120u8, 226u8, + 66u8, 36u8, 54u8, 163u8, 207u8, 134u8, 214u8, 214u8, 241u8, 81u8, + 199u8, 26u8, 57u8, 248u8, 207u8, 249u8, 249u8, 45u8, 212u8, 2u8, 59u8, + 132u8, 114u8, 193u8, 62u8, 66u8, 183u8, 201u8, 5u8, 210u8, 221u8, + 111u8, ], ) } - #[doc = "Register approval for a dispatch to be made from a deterministic composite account if"] - #[doc = "approved by a total of `threshold - 1` of `other_signatories`."] - #[doc = ""] - #[doc = "Payment: `DepositBase` will be reserved if this is the first approval, plus"] - #[doc = "`threshold` times `DepositFactor`. It is returned once this dispatch happens or"] - #[doc = "is cancelled."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] - #[doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] - #[doc = "dispatch. May not be empty."] - #[doc = "- `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is"] - #[doc = "not the first approval, then it must be `Some`, with the timepoint (block number and"] - #[doc = "transaction index) of the first approval transaction."] - #[doc = "- `call_hash`: The hash of the call to be executed."] - #[doc = ""] - #[doc = "NOTE: If this is the final approval, you will want to use `as_multi` instead."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(S)`."] - #[doc = "- Up to one balance-reserve or unreserve operation."] - #[doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] - #[doc = " signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] - #[doc = "- One encode & hash, both of complexity `O(S)`."] - #[doc = "- Up to one binary search and insert (`O(logS + S)`)."] - #[doc = "- I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove."] - #[doc = "- One event."] - #[doc = "- Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit"] - #[doc = " taken for its lifetime of `DepositBase + threshold * DepositFactor`."] + #[doc = "See [`Pallet::approve_as_multi`]."] pub fn approve_as_multi( &self, threshold: ::core::primitive::u16, @@ -24153,27 +21377,7 @@ pub mod api { ], ) } - #[doc = "Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously"] - #[doc = "for this operation will be unreserved on success."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] - #[doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] - #[doc = "dispatch. May not be empty."] - #[doc = "- `timepoint`: The timepoint (block number and transaction index) of the first approval"] - #[doc = "transaction for this dispatch."] - #[doc = "- `call_hash`: The hash of the call to be executed."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(S)`."] - #[doc = "- Up to one balance-reserve or unreserve operation."] - #[doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] - #[doc = " signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] - #[doc = "- One encode & hash, both of complexity `O(S)`."] - #[doc = "- One event."] - #[doc = "- I/O: 1 read `O(S)`, one remove."] - #[doc = "- Storage: removes one item."] + #[doc = "See [`Pallet::cancel_as_multi`]."] pub fn cancel_as_multi( &self, threshold: ::core::primitive::u16, @@ -24200,7 +21404,7 @@ pub mod api { } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_multisig::pallet::Event; pub mod events { use super::runtime_types; @@ -24408,9 +21612,9 @@ pub mod api { pub mod bounties { use super::root_mod; use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_bounties::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_bounties::pallet::Call; pub mod calls { use super::root_mod; @@ -24589,18 +21793,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Propose a new bounty."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "Payment: `TipReportDepositBase` will be reserved from the origin account, as well as"] - #[doc = "`DataDepositPerByte` for each byte in `reason`. It will be unreserved upon approval,"] - #[doc = "or slashed when rejected."] - #[doc = ""] - #[doc = "- `curator`: The curator account whom will manage this bounty."] - #[doc = "- `fee`: The curator fee."] - #[doc = "- `value`: The total payment amount of this bounty, curator fee included."] - #[doc = "- `description`: The description of this bounty."] + #[doc = "See [`Pallet::propose_bounty`]."] pub fn propose_bounty( &self, value: ::core::primitive::u128, @@ -24617,13 +21810,7 @@ pub mod api { ], ) } - #[doc = "Approve a bounty proposal. At a later time, the bounty will be funded and become active"] - #[doc = "and the original deposit will be returned."] - #[doc = ""] - #[doc = "May only be called from `T::SpendOrigin`."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- O(1)."] + #[doc = "See [`Pallet::approve_bounty`]."] pub fn approve_bounty( &self, bounty_id: ::core::primitive::u32, @@ -24640,12 +21827,7 @@ pub mod api { ], ) } - #[doc = "Assign a curator to a funded bounty."] - #[doc = ""] - #[doc = "May only be called from `T::SpendOrigin`."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- O(1)."] + #[doc = "See [`Pallet::propose_curator`]."] pub fn propose_curator( &self, bounty_id: ::core::primitive::u32, @@ -24668,23 +21850,7 @@ pub mod api { ], ) } - #[doc = "Unassign curator from a bounty."] - #[doc = ""] - #[doc = "This function can only be called by the `RejectOrigin` a signed origin."] - #[doc = ""] - #[doc = "If this function is called by the `RejectOrigin`, we assume that the curator is"] - #[doc = "malicious or inactive. As a result, we will slash the curator when possible."] - #[doc = ""] - #[doc = "If the origin is the curator, we take this as a sign they are unable to do their job and"] - #[doc = "they willingly give up. We could slash them, but for now we allow them to recover their"] - #[doc = "deposit and exit without issue. (We may want to change this if it is abused.)"] - #[doc = ""] - #[doc = "Finally, the origin can be anyone if and only if the curator is \"inactive\". This allows"] - #[doc = "anyone in the community to call out that a curator is not doing their due diligence, and"] - #[doc = "we should pick a new curator. In this case the curator should also be slashed."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- O(1)."] + #[doc = "See [`Pallet::unassign_curator`]."] pub fn unassign_curator( &self, bounty_id: ::core::primitive::u32, @@ -24701,13 +21867,7 @@ pub mod api { ], ) } - #[doc = "Accept the curator role for a bounty."] - #[doc = "A deposit will be reserved from curator and refund upon successful payout."] - #[doc = ""] - #[doc = "May only be called from the curator."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- O(1)."] + #[doc = "See [`Pallet::accept_curator`]."] pub fn accept_curator( &self, bounty_id: ::core::primitive::u32, @@ -24723,16 +21883,7 @@ pub mod api { ], ) } - #[doc = "Award bounty to a beneficiary account. The beneficiary will be able to claim the funds"] - #[doc = "after a delay."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be the curator of this bounty."] - #[doc = ""] - #[doc = "- `bounty_id`: Bounty ID to award."] - #[doc = "- `beneficiary`: The beneficiary account whom will receive the payout."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- O(1)."] + #[doc = "See [`Pallet::award_bounty`]."] pub fn award_bounty( &self, bounty_id: ::core::primitive::u32, @@ -24753,14 +21904,7 @@ pub mod api { ], ) } - #[doc = "Claim the payout from an awarded bounty after payout delay."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be the beneficiary of this bounty."] - #[doc = ""] - #[doc = "- `bounty_id`: Bounty ID to claim."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- O(1)."] + #[doc = "See [`Pallet::claim_bounty`]."] pub fn claim_bounty( &self, bounty_id: ::core::primitive::u32, @@ -24777,15 +21921,7 @@ pub mod api { ], ) } - #[doc = "Cancel a proposed or active bounty. All the funds will be sent to treasury and"] - #[doc = "the curator deposit will be unreserved if possible."] - #[doc = ""] - #[doc = "Only `T::RejectOrigin` is able to cancel a bounty."] - #[doc = ""] - #[doc = "- `bounty_id`: Bounty ID to cancel."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- O(1)."] + #[doc = "See [`Pallet::close_bounty`]."] pub fn close_bounty( &self, bounty_id: ::core::primitive::u32, @@ -24802,15 +21938,7 @@ pub mod api { ], ) } - #[doc = "Extend the expiry time of an active bounty."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be the curator of this bounty."] - #[doc = ""] - #[doc = "- `bounty_id`: Bounty ID to extend."] - #[doc = "- `remark`: additional information."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- O(1)."] + #[doc = "See [`Pallet::extend_bounty_expiry`]."] pub fn extend_bounty_expiry( &self, bounty_id: ::core::primitive::u32, @@ -24830,7 +21958,7 @@ pub mod api { } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_bounties::pallet::Event; pub mod events { use super::runtime_types; @@ -25273,9 +22401,9 @@ pub mod api { pub mod child_bounties { use super::root_mod; use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_child_bounties::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_child_bounties::pallet::Call; pub mod calls { use super::root_mod; @@ -25431,25 +22559,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Add a new child-bounty."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be the curator of parent"] - #[doc = "bounty and the parent bounty must be in \"active\" state."] - #[doc = ""] - #[doc = "Child-bounty gets added successfully & fund gets transferred from"] - #[doc = "parent bounty to child-bounty account, if parent bounty has enough"] - #[doc = "funds, else the call fails."] - #[doc = ""] - #[doc = "Upper bound to maximum number of active child bounties that can be"] - #[doc = "added are managed via runtime trait config"] - #[doc = "[`Config::MaxActiveChildBountyCount`]."] - #[doc = ""] - #[doc = "If the call is success, the status of child-bounty is updated to"] - #[doc = "\"Added\"."] - #[doc = ""] - #[doc = "- `parent_bounty_id`: Index of parent bounty for which child-bounty is being added."] - #[doc = "- `value`: Value for executing the proposal."] - #[doc = "- `description`: Text description for the child-bounty."] + #[doc = "See [`Pallet::add_child_bounty`]."] pub fn add_child_bounty( &self, parent_bounty_id: ::core::primitive::u32, @@ -25472,21 +22582,7 @@ pub mod api { ], ) } - #[doc = "Propose curator for funded child-bounty."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be curator of parent bounty."] - #[doc = ""] - #[doc = "Parent bounty must be in active state, for this child-bounty call to"] - #[doc = "work."] - #[doc = ""] - #[doc = "Child-bounty must be in \"Added\" state, for processing the call. And"] - #[doc = "state of child-bounty is moved to \"CuratorProposed\" on successful"] - #[doc = "call completion."] - #[doc = ""] - #[doc = "- `parent_bounty_id`: Index of parent bounty."] - #[doc = "- `child_bounty_id`: Index of child bounty."] - #[doc = "- `curator`: Address of child-bounty curator."] - #[doc = "- `fee`: payment fee to child-bounty curator for execution."] + #[doc = "See [`Pallet::propose_curator`]."] pub fn propose_curator( &self, parent_bounty_id: ::core::primitive::u32, @@ -25510,25 +22606,7 @@ pub mod api { ], ) } - #[doc = "Accept the curator role for the child-bounty."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be the curator of this"] - #[doc = "child-bounty."] - #[doc = ""] - #[doc = "A deposit will be reserved from the curator and refund upon"] - #[doc = "successful payout or cancellation."] - #[doc = ""] - #[doc = "Fee for curator is deducted from curator fee of parent bounty."] - #[doc = ""] - #[doc = "Parent bounty must be in active state, for this child-bounty call to"] - #[doc = "work."] - #[doc = ""] - #[doc = "Child-bounty must be in \"CuratorProposed\" state, for processing the"] - #[doc = "call. And state of child-bounty is moved to \"Active\" on successful"] - #[doc = "call completion."] - #[doc = ""] - #[doc = "- `parent_bounty_id`: Index of parent bounty."] - #[doc = "- `child_bounty_id`: Index of child bounty."] + #[doc = "See [`Pallet::accept_curator`]."] pub fn accept_curator( &self, parent_bounty_id: ::core::primitive::u32, @@ -25548,40 +22626,7 @@ pub mod api { ], ) } - #[doc = "Unassign curator from a child-bounty."] - #[doc = ""] - #[doc = "The dispatch origin for this call can be either `RejectOrigin`, or"] - #[doc = "the curator of the parent bounty, or any signed origin."] - #[doc = ""] - #[doc = "For the origin other than T::RejectOrigin and the child-bounty"] - #[doc = "curator, parent bounty must be in active state, for this call to"] - #[doc = "work. We allow child-bounty curator and T::RejectOrigin to execute"] - #[doc = "this call irrespective of the parent bounty state."] - #[doc = ""] - #[doc = "If this function is called by the `RejectOrigin` or the"] - #[doc = "parent bounty curator, we assume that the child-bounty curator is"] - #[doc = "malicious or inactive. As a result, child-bounty curator deposit is"] - #[doc = "slashed."] - #[doc = ""] - #[doc = "If the origin is the child-bounty curator, we take this as a sign"] - #[doc = "that they are unable to do their job, and are willingly giving up."] - #[doc = "We could slash the deposit, but for now we allow them to unreserve"] - #[doc = "their deposit and exit without issue. (We may want to change this if"] - #[doc = "it is abused.)"] - #[doc = ""] - #[doc = "Finally, the origin can be anyone iff the child-bounty curator is"] - #[doc = "\"inactive\". Expiry update due of parent bounty is used to estimate"] - #[doc = "inactive state of child-bounty curator."] - #[doc = ""] - #[doc = "This allows anyone in the community to call out that a child-bounty"] - #[doc = "curator is not doing their due diligence, and we should pick a new"] - #[doc = "one. In this case the child-bounty curator deposit is slashed."] - #[doc = ""] - #[doc = "State of child-bounty is moved to Added state on successful call"] - #[doc = "completion."] - #[doc = ""] - #[doc = "- `parent_bounty_id`: Index of parent bounty."] - #[doc = "- `child_bounty_id`: Index of child bounty."] + #[doc = "See [`Pallet::unassign_curator`]."] pub fn unassign_curator( &self, parent_bounty_id: ::core::primitive::u32, @@ -25602,23 +22647,7 @@ pub mod api { ], ) } - #[doc = "Award child-bounty to a beneficiary."] - #[doc = ""] - #[doc = "The beneficiary will be able to claim the funds after a delay."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be the parent curator or"] - #[doc = "curator of this child-bounty."] - #[doc = ""] - #[doc = "Parent bounty must be in active state, for this child-bounty call to"] - #[doc = "work."] - #[doc = ""] - #[doc = "Child-bounty must be in active state, for processing the call. And"] - #[doc = "state of child-bounty is moved to \"PendingPayout\" on successful call"] - #[doc = "completion."] - #[doc = ""] - #[doc = "- `parent_bounty_id`: Index of parent bounty."] - #[doc = "- `child_bounty_id`: Index of child bounty."] - #[doc = "- `beneficiary`: Beneficiary account."] + #[doc = "See [`Pallet::award_child_bounty`]."] pub fn award_child_bounty( &self, parent_bounty_id: ::core::primitive::u32, @@ -25641,22 +22670,7 @@ pub mod api { ], ) } - #[doc = "Claim the payout from an awarded child-bounty after payout delay."] - #[doc = ""] - #[doc = "The dispatch origin for this call may be any signed origin."] - #[doc = ""] - #[doc = "Call works independent of parent bounty state, No need for parent"] - #[doc = "bounty to be in active state."] - #[doc = ""] - #[doc = "The Beneficiary is paid out with agreed bounty value. Curator fee is"] - #[doc = "paid & curator deposit is unreserved."] - #[doc = ""] - #[doc = "Child-bounty must be in \"PendingPayout\" state, for processing the"] - #[doc = "call. And instance of child-bounty is removed from the state on"] - #[doc = "successful call completion."] - #[doc = ""] - #[doc = "- `parent_bounty_id`: Index of parent bounty."] - #[doc = "- `child_bounty_id`: Index of child bounty."] + #[doc = "See [`Pallet::claim_child_bounty`]."] pub fn claim_child_bounty( &self, parent_bounty_id: ::core::primitive::u32, @@ -25676,28 +22690,7 @@ pub mod api { ], ) } - #[doc = "Cancel a proposed or active child-bounty. Child-bounty account funds"] - #[doc = "are transferred to parent bounty account. The child-bounty curator"] - #[doc = "deposit may be unreserved if possible."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be either parent curator or"] - #[doc = "`T::RejectOrigin`."] - #[doc = ""] - #[doc = "If the state of child-bounty is `Active`, curator deposit is"] - #[doc = "unreserved."] - #[doc = ""] - #[doc = "If the state of child-bounty is `PendingPayout`, call fails &"] - #[doc = "returns `PendingPayout` error."] - #[doc = ""] - #[doc = "For the origin other than T::RejectOrigin, parent bounty must be in"] - #[doc = "active state, for this child-bounty call to work. For origin"] - #[doc = "T::RejectOrigin execution is forced."] - #[doc = ""] - #[doc = "Instance of child-bounty is removed from the state on successful"] - #[doc = "call completion."] - #[doc = ""] - #[doc = "- `parent_bounty_id`: Index of parent bounty."] - #[doc = "- `child_bounty_id`: Index of child bounty."] + #[doc = "See [`Pallet::close_child_bounty`]."] pub fn close_child_bounty( &self, parent_bounty_id: ::core::primitive::u32, @@ -25719,7 +22712,7 @@ pub mod api { } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_child_bounties::pallet::Event; pub mod events { use super::runtime_types; @@ -26069,9 +23062,9 @@ pub mod api { pub mod tips { use super::root_mod; use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_tips::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_tips::pallet::Call; pub mod calls { use super::root_mod; @@ -26190,22 +23183,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Report something `reason` that deserves a tip and claim any eventual the finder's fee."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "Payment: `TipReportDepositBase` will be reserved from the origin account, as well as"] - #[doc = "`DataDepositPerByte` for each byte in `reason`."] - #[doc = ""] - #[doc = "- `reason`: The reason for, or the thing that deserves, the tip; generally this will be"] - #[doc = " a UTF-8-encoded URL."] - #[doc = "- `who`: The account which should be credited for the tip."] - #[doc = ""] - #[doc = "Emits `NewTip` if successful."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(R)` where `R` length of `reason`."] - #[doc = " - encoding and hashing of 'reason'"] + #[doc = "See [`Pallet::report_awesome`]."] pub fn report_awesome( &self, reason: ::std::vec::Vec<::core::primitive::u8>, @@ -26222,22 +23200,7 @@ pub mod api { ], ) } - #[doc = "Retract a prior tip-report from `report_awesome`, and cancel the process of tipping."] - #[doc = ""] - #[doc = "If successful, the original deposit will be unreserved."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the tip identified by `hash`"] - #[doc = "must have been reported by the signing account through `report_awesome` (and not"] - #[doc = "through `tip_new`)."] - #[doc = ""] - #[doc = "- `hash`: The identity of the open tip for which a tip value is declared. This is formed"] - #[doc = " as the hash of the tuple of the original tip `reason` and the beneficiary account ID."] - #[doc = ""] - #[doc = "Emits `TipRetracted` if successful."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(1)`"] - #[doc = " - Depends on the length of `T::Hash` which is fixed."] + #[doc = "See [`Pallet::retract_tip`]."] pub fn retract_tip( &self, hash: ::subxt::utils::H256, @@ -26254,25 +23217,7 @@ pub mod api { ], ) } - #[doc = "Give a tip for something new; no finder's fee will be taken."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the signing account must be a"] - #[doc = "member of the `Tippers` set."] - #[doc = ""] - #[doc = "- `reason`: The reason for, or the thing that deserves, the tip; generally this will be"] - #[doc = " a UTF-8-encoded URL."] - #[doc = "- `who`: The account which should be credited for the tip."] - #[doc = "- `tip_value`: The amount of tip that the sender would like to give. The median tip"] - #[doc = " value of active tippers will be given to the `who`."] - #[doc = ""] - #[doc = "Emits `NewTip` if successful."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(R + T)` where `R` length of `reason`, `T` is the number of tippers."] - #[doc = " - `O(T)`: decoding `Tipper` vec of length `T`. `T` is charged as upper bound given by"] - #[doc = " `ContainsLengthBound`. The actual cost depends on the implementation of"] - #[doc = " `T::Tippers`."] - #[doc = " - `O(R)`: hashing and encoding of reason of length `R`"] + #[doc = "See [`Pallet::tip_new`]."] pub fn tip_new( &self, reason: ::std::vec::Vec<::core::primitive::u8>, @@ -26295,27 +23240,7 @@ pub mod api { ], ) } - #[doc = "Declare a tip value for an already-open tip."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the signing account must be a"] - #[doc = "member of the `Tippers` set."] - #[doc = ""] - #[doc = "- `hash`: The identity of the open tip for which a tip value is declared. This is formed"] - #[doc = " as the hash of the tuple of the hash of the original tip `reason` and the beneficiary"] - #[doc = " account ID."] - #[doc = "- `tip_value`: The amount of tip that the sender would like to give. The median tip"] - #[doc = " value of active tippers will be given to the `who`."] - #[doc = ""] - #[doc = "Emits `TipClosing` if the threshold of tippers has been reached and the countdown period"] - #[doc = "has started."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length `T`, insert"] - #[doc = " tip and check closing, `T` is charged as upper bound given by `ContainsLengthBound`."] - #[doc = " The actual cost depends on the implementation of `T::Tippers`."] - #[doc = ""] - #[doc = " Actually weight could be lower as it depends on how many tips are in `OpenTip` but it"] - #[doc = " is weighted as if almost full i.e of length `T-1`."] + #[doc = "See [`Pallet::tip`]."] pub fn tip( &self, hash: ::subxt::utils::H256, @@ -26333,19 +23258,7 @@ pub mod api { ], ) } - #[doc = "Close and payout a tip."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "The tip identified by `hash` must have finished its countdown period."] - #[doc = ""] - #[doc = "- `hash`: The identity of the open tip for which a tip value is declared. This is formed"] - #[doc = " as the hash of the tuple of the original tip `reason` and the beneficiary account ID."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- : `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length `T`. `T`"] - #[doc = " is charged as upper bound given by `ContainsLengthBound`. The actual cost depends on"] - #[doc = " the implementation of `T::Tippers`."] + #[doc = "See [`Pallet::close_tip`]."] pub fn close_tip( &self, hash: ::subxt::utils::H256, @@ -26362,16 +23275,7 @@ pub mod api { ], ) } - #[doc = "Remove and slash an already-open tip."] - #[doc = ""] - #[doc = "May only be called from `T::RejectOrigin`."] - #[doc = ""] - #[doc = "As a result, the finder is slashed and the deposits are lost."] - #[doc = ""] - #[doc = "Emits `TipSlashed` if successful."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- O(1)."] + #[doc = "See [`Pallet::slash_tip`]."] pub fn slash_tip( &self, hash: ::subxt::utils::H256, @@ -26390,7 +23294,7 @@ pub mod api { } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_tips::pallet::Event; pub mod events { use super::runtime_types; @@ -26689,7 +23593,7 @@ pub mod api { use super::runtime_types; #[doc = "Error of the pallet that can be returned in response to dispatches."] pub type Error = runtime_types::pallet_election_provider_multi_phase::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_election_provider_multi_phase::pallet::Call; pub mod calls { use super::root_mod; @@ -26800,20 +23704,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Submit a solution for the unsigned phase."] - #[doc = ""] - #[doc = "The dispatch origin fo this call must be __none__."] - #[doc = ""] - #[doc = "This submission is checked on the fly. Moreover, this unsigned solution is only"] - #[doc = "validated when submitted to the pool from the **local** node. Effectively, this means"] - #[doc = "that only active validators can submit this transaction when authoring a block (similar"] - #[doc = "to an inherent)."] - #[doc = ""] - #[doc = "To prevent any incorrect solution (and thus wasted time/weight), this transaction will"] - #[doc = "panic if the solution submitted by the validator is invalid in any way, effectively"] - #[doc = "putting their authoring reward at risk."] - #[doc = ""] - #[doc = "No deposit or reward is associated with this submission."] + #[doc = "See [`Pallet::submit_unsigned`]."] pub fn submit_unsigned( &self, raw_solution: runtime_types::pallet_election_provider_multi_phase::RawSolution< @@ -26835,11 +23726,7 @@ pub mod api { ], ) } - #[doc = "Set a new value for `MinimumUntrustedScore`."] - #[doc = ""] - #[doc = "Dispatch origin must be aligned with `T::ForceOrigin`."] - #[doc = ""] - #[doc = "This check can be turned off by setting the value to `None`."] + #[doc = "See [`Pallet::set_minimum_untrusted_score`]."] pub fn set_minimum_untrusted_score( &self, maybe_next_score: ::core::option::Option< @@ -26858,14 +23745,7 @@ pub mod api { ], ) } - #[doc = "Set a solution in the queue, to be handed out to the client of this pallet in the next"] - #[doc = "call to `ElectionProvider::elect`."] - #[doc = ""] - #[doc = "This can only be set by `T::ForceOrigin`, and only when the phase is `Emergency`."] - #[doc = ""] - #[doc = "The solution is not checked for any feasibility and is assumed to be trustworthy, as any"] - #[doc = "feasibility check itself can in principle cause the election process to fail (due to"] - #[doc = "memory/weight constrains)."] + #[doc = "See [`Pallet::set_emergency_election_result`]."] pub fn set_emergency_election_result( &self, supports: ::std::vec::Vec<( @@ -26884,15 +23764,7 @@ pub mod api { ], ) } - #[doc = "Submit a solution for the signed phase."] - #[doc = ""] - #[doc = "The dispatch origin fo this call must be __signed__."] - #[doc = ""] - #[doc = "The solution is potentially queued, based on the claimed score and processed at the end"] - #[doc = "of the signed phase."] - #[doc = ""] - #[doc = "A deposit is reserved and recorded for the solution. Based on the outcome, the solution"] - #[doc = "might be rewarded, slashed, or get all or a part of the deposit back."] + #[doc = "See [`Pallet::submit`]."] pub fn submit( &self, raw_solution: runtime_types::pallet_election_provider_multi_phase::RawSolution< @@ -26912,10 +23784,7 @@ pub mod api { ], ) } - #[doc = "Trigger the governance fallback."] - #[doc = ""] - #[doc = "This can only be called when [`Phase::Emergency`] is enabled, as an alternative to"] - #[doc = "calling [`Call::set_emergency_election_result`]."] + #[doc = "See [`Pallet::governance_fallback`]."] pub fn governance_fallback( &self, maybe_max_voters: ::core::option::Option<::core::primitive::u32>, @@ -26938,7 +23807,7 @@ pub mod api { } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_election_provider_multi_phase::pallet::Event; pub mod events { use super::runtime_types; @@ -27694,9 +24563,9 @@ pub mod api { pub mod voter_list { use super::root_mod; use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_bags_list::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_bags_list::pallet::Call; pub mod calls { use super::root_mod; @@ -27741,16 +24610,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Declare that some `dislocated` account has, through rewards or penalties, sufficiently"] - #[doc = "changed its score that it should properly fall into a different bag than its current"] - #[doc = "one."] - #[doc = ""] - #[doc = "Anyone can call this function about any potentially dislocated account."] - #[doc = ""] - #[doc = "Will always update the stored score of `dislocated` to the correct score, based on"] - #[doc = "`ScoreProvider`."] - #[doc = ""] - #[doc = "If `dislocated` does not exists, it returns an error."] + #[doc = "See [`Pallet::rebag`]."] pub fn rebag( &self, dislocated: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -27767,14 +24627,7 @@ pub mod api { ], ) } - #[doc = "Move the caller's Id directly in front of `lighter`."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and can only be called by the Id of"] - #[doc = "the account going in front of `lighter`."] - #[doc = ""] - #[doc = "Only works if"] - #[doc = "- both nodes are within the same bag,"] - #[doc = "- and `origin` has a greater `Score` than `lighter`."] + #[doc = "See [`Pallet::put_in_front_of`]."] pub fn put_in_front_of( &self, lighter: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -27793,7 +24646,7 @@ pub mod api { } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_bags_list::pallet::Event; pub mod events { use super::runtime_types; @@ -28032,9 +24885,9 @@ pub mod api { pub mod nomination_pools { use super::root_mod; use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_nomination_pools::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_nomination_pools::pallet::Call; pub mod calls { use super::root_mod; @@ -28454,16 +25307,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Stake funds with a pool. The amount to bond is transferred from the member to the"] - #[doc = "pools account and immediately increases the pools bond."] - #[doc = ""] - #[doc = "# Note"] - #[doc = ""] - #[doc = "* An account can only be a member of a single pool."] - #[doc = "* An account cannot join the same pool multiple times."] - #[doc = "* This call will *not* dust the member account, so the member must have at least"] - #[doc = " `existential deposit + amount` in their account."] - #[doc = "* Only a pool with [`PoolState::Open`] can be joined"] + #[doc = "See [`Pallet::join`]."] pub fn join( &self, amount: ::core::primitive::u128, @@ -28480,13 +25324,7 @@ pub mod api { ], ) } - #[doc = "Bond `extra` more funds from `origin` into the pool to which they already belong."] - #[doc = ""] - #[doc = "Additional funds can come from either the free balance of the account, of from the"] - #[doc = "accumulated rewards, see [`BondExtra`]."] - #[doc = ""] - #[doc = "Bonding extra funds implies an automatic payout of all pending rewards as well."] - #[doc = "See `bond_extra_other` to bond pending rewards of `other` members."] + #[doc = "See [`Pallet::bond_extra`]."] pub fn bond_extra( &self, extra: runtime_types::pallet_nomination_pools::BondExtra< @@ -28505,14 +25343,7 @@ pub mod api { ], ) } - #[doc = "A bonded member can use this to claim their payout based on the rewards that the pool"] - #[doc = "has accumulated since their last claimed payout (OR since joining if this is their first"] - #[doc = "time claiming rewards). The payout will be transferred to the member's account."] - #[doc = ""] - #[doc = "The member will earn rewards pro rata based on the members stake vs the sum of the"] - #[doc = "members in the pools stake. Rewards do not \"expire\"."] - #[doc = ""] - #[doc = "See `claim_payout_other` to caim rewards on bahalf of some `other` pool member."] + #[doc = "See [`Pallet::claim_payout`]."] pub fn claim_payout(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NominationPools", @@ -28525,37 +25356,7 @@ pub mod api { ], ) } - #[doc = "Unbond up to `unbonding_points` of the `member_account`'s funds from the pool. It"] - #[doc = "implicitly collects the rewards one last time, since not doing so would mean some"] - #[doc = "rewards would be forfeited."] - #[doc = ""] - #[doc = "Under certain conditions, this call can be dispatched permissionlessly (i.e. by any"] - #[doc = "account)."] - #[doc = ""] - #[doc = "# Conditions for a permissionless dispatch."] - #[doc = ""] - #[doc = "* The pool is blocked and the caller is either the root or bouncer. This is refereed to"] - #[doc = " as a kick."] - #[doc = "* The pool is destroying and the member is not the depositor."] - #[doc = "* The pool is destroying, the member is the depositor and no other members are in the"] - #[doc = " pool."] - #[doc = ""] - #[doc = "## Conditions for permissioned dispatch (i.e. the caller is also the"] - #[doc = "`member_account`):"] - #[doc = ""] - #[doc = "* The caller is not the depositor."] - #[doc = "* The caller is the depositor, the pool is destroying and no other members are in the"] - #[doc = " pool."] - #[doc = ""] - #[doc = "# Note"] - #[doc = ""] - #[doc = "If there are too many unlocking chunks to unbond with the pool account,"] - #[doc = "[`Call::pool_withdraw_unbonded`] can be called to try and minimize unlocking chunks."] - #[doc = "The [`StakingInterface::unbond`] will implicitly call [`Call::pool_withdraw_unbonded`]"] - #[doc = "to try to free chunks if necessary (ie. if unbound was called and no unlocking chunks"] - #[doc = "are available). However, it may not be possible to release the current unlocking chunks,"] - #[doc = "in which case, the result of this call will likely be the `NoMoreChunks` error from the"] - #[doc = "staking system."] + #[doc = "See [`Pallet::unbond`]."] pub fn unbond( &self, member_account: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -28575,12 +25376,7 @@ pub mod api { ], ) } - #[doc = "Call `withdraw_unbonded` for the pools account. This call can be made by any account."] - #[doc = ""] - #[doc = "This is useful if their are too many unlocking chunks to call `unbond`, and some"] - #[doc = "can be cleared by withdrawing. In the case there are too many unlocking chunks, the user"] - #[doc = "would probably see an error like `NoMoreChunks` emitted from the staking system when"] - #[doc = "they attempt to unbond."] + #[doc = "See [`Pallet::pool_withdraw_unbonded`]."] pub fn pool_withdraw_unbonded( &self, pool_id: ::core::primitive::u32, @@ -28600,25 +25396,7 @@ pub mod api { ], ) } - #[doc = "Withdraw unbonded funds from `member_account`. If no bonded funds can be unbonded, an"] - #[doc = "error is returned."] - #[doc = ""] - #[doc = "Under certain conditions, this call can be dispatched permissionlessly (i.e. by any"] - #[doc = "account)."] - #[doc = ""] - #[doc = "# Conditions for a permissionless dispatch"] - #[doc = ""] - #[doc = "* The pool is in destroy mode and the target is not the depositor."] - #[doc = "* The target is the depositor and they are the only member in the sub pools."] - #[doc = "* The pool is blocked and the caller is either the root or bouncer."] - #[doc = ""] - #[doc = "# Conditions for permissioned dispatch"] - #[doc = ""] - #[doc = "* The caller is the target and they are not the depositor."] - #[doc = ""] - #[doc = "# Note"] - #[doc = ""] - #[doc = "If the target is the depositor, the pool will be destroyed."] + #[doc = "See [`Pallet::withdraw_unbonded`]."] pub fn withdraw_unbonded( &self, member_account: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -28638,23 +25416,7 @@ pub mod api { ], ) } - #[doc = "Create a new delegation pool."] - #[doc = ""] - #[doc = "# Arguments"] - #[doc = ""] - #[doc = "* `amount` - The amount of funds to delegate to the pool. This also acts of a sort of"] - #[doc = " deposit since the pools creator cannot fully unbond funds until the pool is being"] - #[doc = " destroyed."] - #[doc = "* `index` - A disambiguation index for creating the account. Likely only useful when"] - #[doc = " creating multiple pools in the same extrinsic."] - #[doc = "* `root` - The account to set as [`PoolRoles::root`]."] - #[doc = "* `nominator` - The account to set as the [`PoolRoles::nominator`]."] - #[doc = "* `bouncer` - The account to set as the [`PoolRoles::bouncer`]."] - #[doc = ""] - #[doc = "# Note"] - #[doc = ""] - #[doc = "In addition to `amount`, the caller will transfer the existential deposit; so the caller"] - #[doc = "needs at have at least `amount + existential_deposit` transferrable."] + #[doc = "See [`Pallet::create`]."] pub fn create( &self, amount: ::core::primitive::u128, @@ -28678,12 +25440,7 @@ pub mod api { ], ) } - #[doc = "Create a new delegation pool with a previously used pool id"] - #[doc = ""] - #[doc = "# Arguments"] - #[doc = ""] - #[doc = "same as `create` with the inclusion of"] - #[doc = "* `pool_id` - `A valid PoolId."] + #[doc = "See [`Pallet::create_with_pool_id`]."] pub fn create_with_pool_id( &self, amount: ::core::primitive::u128, @@ -28710,13 +25467,7 @@ pub mod api { ], ) } - #[doc = "Nominate on behalf of the pool."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed by the pool nominator or the pool"] - #[doc = "root role."] - #[doc = ""] - #[doc = "This directly forward the call to the staking pallet, on behalf of the pool bonded"] - #[doc = "account."] + #[doc = "See [`Pallet::nominate`]."] pub fn nominate( &self, pool_id: ::core::primitive::u32, @@ -28736,16 +25487,7 @@ pub mod api { ], ) } - #[doc = "Set a new state for the pool."] - #[doc = ""] - #[doc = "If a pool is already in the `Destroying` state, then under no condition can its state"] - #[doc = "change again."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be either:"] - #[doc = ""] - #[doc = "1. signed by the bouncer, or the root role of the pool,"] - #[doc = "2. if the pool conditions to be open are NOT met (as described by `ok_to_be_open`), and"] - #[doc = " then the state of the pool can be permissionlessly changed to `Destroying`."] + #[doc = "See [`Pallet::set_state`]."] pub fn set_state( &self, pool_id: ::core::primitive::u32, @@ -28762,10 +25504,7 @@ pub mod api { ], ) } - #[doc = "Set a new metadata for the pool."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed by the bouncer, or the root role of the"] - #[doc = "pool."] + #[doc = "See [`Pallet::set_metadata`]."] pub fn set_metadata( &self, pool_id: ::core::primitive::u32, @@ -28782,17 +25521,7 @@ pub mod api { ], ) } - #[doc = "Update configurations for the nomination pools. The origin for this call must be"] - #[doc = "Root."] - #[doc = ""] - #[doc = "# Arguments"] - #[doc = ""] - #[doc = "* `min_join_bond` - Set [`MinJoinBond`]."] - #[doc = "* `min_create_bond` - Set [`MinCreateBond`]."] - #[doc = "* `max_pools` - Set [`MaxPools`]."] - #[doc = "* `max_members` - Set [`MaxPoolMembers`]."] - #[doc = "* `max_members_per_pool` - Set [`MaxPoolMembersPerPool`]."] - #[doc = "* `global_max_commission` - Set [`GlobalMaxCommission`]."] + #[doc = "See [`Pallet::set_configs`]."] pub fn set_configs( &self, min_join_bond: runtime_types::pallet_nomination_pools::ConfigOp< @@ -28832,13 +25561,7 @@ pub mod api { ], ) } - #[doc = "Update the roles of the pool."] - #[doc = ""] - #[doc = "The root is the only entity that can change any of the roles, including itself,"] - #[doc = "excluding the depositor, who can never change."] - #[doc = ""] - #[doc = "It emits an event, notifying UIs of the role change. This event is quite relevant to"] - #[doc = "most pool members and they should be informed of changes to pool roles."] + #[doc = "See [`Pallet::update_roles`]."] pub fn update_roles( &self, pool_id: ::core::primitive::u32, @@ -28868,13 +25591,7 @@ pub mod api { ], ) } - #[doc = "Chill on behalf of the pool."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed by the pool nominator or the pool"] - #[doc = "root role, same as [`Pallet::nominate`]."] - #[doc = ""] - #[doc = "This directly forward the call to the staking pallet, on behalf of the pool bonded"] - #[doc = "account."] + #[doc = "See [`Pallet::chill`]."] pub fn chill( &self, pool_id: ::core::primitive::u32, @@ -28890,15 +25607,7 @@ pub mod api { ], ) } - #[doc = "`origin` bonds funds from `extra` for some pool member `member` into their respective"] - #[doc = "pools."] - #[doc = ""] - #[doc = "`origin` can bond extra funds from free balance or pending rewards when `origin =="] - #[doc = "other`."] - #[doc = ""] - #[doc = "In the case of `origin != other`, `origin` can only bond extra pending rewards of"] - #[doc = "`other` members assuming set_claim_permission for the given member is"] - #[doc = "`PermissionlessAll` or `PermissionlessCompound`."] + #[doc = "See [`Pallet::bond_extra_other`]."] pub fn bond_extra_other( &self, member: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -28918,18 +25627,7 @@ pub mod api { ], ) } - #[doc = "Allows a pool member to set a claim permission to allow or disallow permissionless"] - #[doc = "bonding and withdrawing."] - #[doc = ""] - #[doc = "By default, this is `Permissioned`, which implies only the pool member themselves can"] - #[doc = "claim their pending rewards. If a pool member wishes so, they can set this to"] - #[doc = "`PermissionlessAll` to allow any account to claim their rewards and bond extra to the"] - #[doc = "pool."] - #[doc = ""] - #[doc = "# Arguments"] - #[doc = ""] - #[doc = "* `origin` - Member of a pool."] - #[doc = "* `actor` - Account to claim reward. // improve this"] + #[doc = "See [`Pallet::set_claim_permission`]."] pub fn set_claim_permission( &self, permission: runtime_types::pallet_nomination_pools::ClaimPermission, @@ -28945,10 +25643,7 @@ pub mod api { ], ) } - #[doc = "`origin` can claim payouts on some pool member `other`'s behalf."] - #[doc = ""] - #[doc = "Pool member `other` must have a `PermissionlessAll` or `PermissionlessWithdraw` in order"] - #[doc = "for this call to be successful."] + #[doc = "See [`Pallet::claim_payout_other`]."] pub fn claim_payout_other( &self, other: ::subxt::utils::AccountId32, @@ -28965,11 +25660,7 @@ pub mod api { ], ) } - #[doc = "Set the commission of a pool."] - #[doc = "Both a commission percentage and a commission payee must be provided in the `current`"] - #[doc = "tuple. Where a `current` of `None` is provided, any current commission will be removed."] - #[doc = ""] - #[doc = "- If a `None` is supplied to `new_commission`, existing commission will be removed."] + #[doc = "See [`Pallet::set_commission`]."] pub fn set_commission( &self, pool_id: ::core::primitive::u32, @@ -28993,11 +25684,7 @@ pub mod api { ], ) } - #[doc = "Set the maximum commission of a pool."] - #[doc = ""] - #[doc = "- Initial max can be set to any `Perbill`, and only smaller values thereafter."] - #[doc = "- Current commission will be lowered in the event it is higher than a new max"] - #[doc = " commission."] + #[doc = "See [`Pallet::set_commission_max`]."] pub fn set_commission_max( &self, pool_id: ::core::primitive::u32, @@ -29017,10 +25704,7 @@ pub mod api { ], ) } - #[doc = "Set the commission change rate for a pool."] - #[doc = ""] - #[doc = "Initial change rate is not bounded, whereas subsequent updates can only be more"] - #[doc = "restrictive than the current."] + #[doc = "See [`Pallet::set_commission_change_rate`]."] pub fn set_commission_change_rate( &self, pool_id: ::core::primitive::u32, @@ -29043,11 +25727,7 @@ pub mod api { ], ) } - #[doc = "Claim pending commission."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed by the `root` role of the pool. Pending"] - #[doc = "commission is paid out and added to total claimed commission`. Total pending commission"] - #[doc = "is reset to zero. the current."] + #[doc = "See [`Pallet::claim_commission`]."] pub fn claim_commission( &self, pool_id: ::core::primitive::u32, @@ -30076,9 +26756,9 @@ pub mod api { pub mod fast_unstake { use super::root_mod; use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_fast_unstake::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_fast_unstake::pallet::Call; pub mod calls { use super::root_mod; @@ -30137,24 +26817,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Register oneself for fast-unstake."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed by the controller account, similar to"] - #[doc = "`staking::unbond`."] - #[doc = ""] - #[doc = "The stash associated with the origin must have no ongoing unlocking chunks. If"] - #[doc = "successful, this will fully unbond and chill the stash. Then, it will enqueue the stash"] - #[doc = "to be checked in further blocks."] - #[doc = ""] - #[doc = "If by the time this is called, the stash is actually eligible for fast-unstake, then"] - #[doc = "they are guaranteed to remain eligible, because the call will chill them as well."] - #[doc = ""] - #[doc = "If the check works, the entire staking data is removed, i.e. the stash is fully"] - #[doc = "unstaked."] - #[doc = ""] - #[doc = "If the check fails, the stash remains chilled and waiting for being unbonded as in with"] - #[doc = "the normal staking system, but they lose part of their unbonding chunks due to consuming"] - #[doc = "the chain's resources."] + #[doc = "See [`Pallet::register_fast_unstake`]."] pub fn register_fast_unstake( &self, ) -> ::subxt::tx::Payload { @@ -30169,13 +26832,7 @@ pub mod api { ], ) } - #[doc = "Deregister oneself from the fast-unstake."] - #[doc = ""] - #[doc = "This is useful if one is registered, they are still waiting, and they change their mind."] - #[doc = ""] - #[doc = "Note that the associated stash is still fully unbonded and chilled as a consequence of"] - #[doc = "calling `register_fast_unstake`. This should probably be followed by a call to"] - #[doc = "`Staking::rebond`."] + #[doc = "See [`Pallet::deregister`]."] pub fn deregister(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "FastUnstake", @@ -30188,9 +26845,7 @@ pub mod api { ], ) } - #[doc = "Control the operation of this pallet."] - #[doc = ""] - #[doc = "Dispatch origin must be signed by the [`Config::ControlOrigin`]."] + #[doc = "See [`Pallet::control`]."] pub fn control( &self, eras_to_check: ::core::primitive::u32, @@ -30208,7 +26863,7 @@ pub mod api { } } } - #[doc = "The events of this pallet."] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_fast_unstake::pallet::Event; pub mod events { use super::runtime_types; @@ -30260,22 +26915,6 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An internal error happened. Operations will be paused now."] - pub struct InternalError; - impl ::subxt::events::StaticEvent for InternalError { - const PALLET: &'static str = "FastUnstake"; - const EVENT: &'static str = "InternalError"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A batch was partially checked for the given eras, but the process did not finish."] pub struct BatchChecked { pub eras: ::std::vec::Vec<::core::primitive::u32>, @@ -30306,12 +26945,30 @@ pub mod api { const PALLET: &'static str = "FastUnstake"; const EVENT: &'static str = "BatchFinished"; } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An internal error happened. Operations will be paused now."] + pub struct InternalError; + impl ::subxt::events::StaticEvent for InternalError { + const PALLET: &'static str = "FastUnstake"; + const EVENT: &'static str = "InternalError"; + } } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { #[doc = " The current \"head of the queue\" being unstaked."] + #[doc = ""] + #[doc = " The head in itself can be a batch of up to [`Config::BatchSize`] stakers."] pub fn head( &self, ) -> ::subxt::storage::address::Address< @@ -30335,8 +26992,6 @@ pub mod api { #[doc = " The map of all accounts wishing to be unstaked."] #[doc = ""] #[doc = " Keeps track of `AccountId` wishing to unstake and it's corresponding deposit."] - #[doc = ""] - #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn queue( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, @@ -30364,8 +27019,6 @@ pub mod api { #[doc = " The map of all accounts wishing to be unstaked."] #[doc = ""] #[doc = " Keeps track of `AccountId` wishing to unstake and it's corresponding deposit."] - #[doc = ""] - #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn queue_root( &self, ) -> ::subxt::storage::address::Address< @@ -30411,10 +27064,12 @@ pub mod api { } #[doc = " Number of eras to check per block."] #[doc = ""] - #[doc = " If set to 0, this pallet does absolutely nothing."] + #[doc = " If set to 0, this pallet does absolutely nothing. Cannot be set to more than"] + #[doc = " [`Config::MaxErasToCheckPerBlock`]."] #[doc = ""] - #[doc = " Based on the amount of weight available at `on_idle`, up to this many eras of a single"] - #[doc = " nominator might be checked."] + #[doc = " Based on the amount of weight available at [`Pallet::on_idle`], up to this many eras are"] + #[doc = " checked. The checking is represented by updating [`UnstakeRequest::checked`], which is"] + #[doc = " stored in [`Head`]."] pub fn eras_to_check_per_block( &self, ) -> ::subxt::storage::address::Address< @@ -30464,9 +27119,9 @@ pub mod api { pub mod configuration { use super::root_mod; use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::polkadot_runtime_parachains::configuration::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::polkadot_runtime_parachains::configuration::pallet::Call; pub mod calls { use super::root_mod; @@ -30904,23 +27559,6 @@ pub mod api { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_max_downward_message_size"; } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SetUmpServiceTotalWeight { - pub new: runtime_types::sp_weights::weight_v2::Weight, - } - impl ::subxt::blocks::StaticExtrinsic for SetUmpServiceTotalWeight { - const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_ump_service_total_weight"; - } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, @@ -31165,23 +27803,6 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SetUmpMaxIndividualWeight { - pub new: runtime_types::sp_weights::weight_v2::Weight, - } - impl ::subxt::blocks::StaticExtrinsic for SetUmpMaxIndividualWeight { - const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_ump_max_individual_weight"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetPvfCheckingEnabled { pub new: ::core::primitive::bool, } @@ -31271,7 +27892,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetExecutorParams { pub new: - runtime_types::polkadot_primitives::v4::executor_params::ExecutorParams, + runtime_types::polkadot_primitives::v5::executor_params::ExecutorParams, } impl ::subxt::blocks::StaticExtrinsic for SetExecutorParams { const PALLET: &'static str = "Configuration"; @@ -31280,7 +27901,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Set the validation upgrade cooldown."] + #[doc = "See [`Pallet::set_validation_upgrade_cooldown`]."] pub fn set_validation_upgrade_cooldown( &self, new: ::core::primitive::u32, @@ -31297,7 +27918,7 @@ pub mod api { ], ) } - #[doc = "Set the validation upgrade delay."] + #[doc = "See [`Pallet::set_validation_upgrade_delay`]."] pub fn set_validation_upgrade_delay( &self, new: ::core::primitive::u32, @@ -31313,7 +27934,7 @@ pub mod api { ], ) } - #[doc = "Set the acceptance period for an included candidate."] + #[doc = "See [`Pallet::set_code_retention_period`]."] pub fn set_code_retention_period( &self, new: ::core::primitive::u32, @@ -31330,7 +27951,7 @@ pub mod api { ], ) } - #[doc = "Set the max validation code size for incoming upgrades."] + #[doc = "See [`Pallet::set_max_code_size`]."] pub fn set_max_code_size( &self, new: ::core::primitive::u32, @@ -31347,7 +27968,7 @@ pub mod api { ], ) } - #[doc = "Set the max POV block size for incoming upgrades."] + #[doc = "See [`Pallet::set_max_pov_size`]."] pub fn set_max_pov_size( &self, new: ::core::primitive::u32, @@ -31363,7 +27984,7 @@ pub mod api { ], ) } - #[doc = "Set the max head data size for paras."] + #[doc = "See [`Pallet::set_max_head_data_size`]."] pub fn set_max_head_data_size( &self, new: ::core::primitive::u32, @@ -31380,7 +28001,7 @@ pub mod api { ], ) } - #[doc = "Set the number of parathread execution cores."] + #[doc = "See [`Pallet::set_parathread_cores`]."] pub fn set_parathread_cores( &self, new: ::core::primitive::u32, @@ -31397,7 +28018,7 @@ pub mod api { ], ) } - #[doc = "Set the number of retries for a particular parathread."] + #[doc = "See [`Pallet::set_parathread_retries`]."] pub fn set_parathread_retries( &self, new: ::core::primitive::u32, @@ -31414,7 +28035,7 @@ pub mod api { ], ) } - #[doc = "Set the parachain validator-group rotation frequency"] + #[doc = "See [`Pallet::set_group_rotation_frequency`]."] pub fn set_group_rotation_frequency( &self, new: ::core::primitive::u32, @@ -31430,7 +28051,7 @@ pub mod api { ], ) } - #[doc = "Set the availability period for parachains."] + #[doc = "See [`Pallet::set_chain_availability_period`]."] pub fn set_chain_availability_period( &self, new: ::core::primitive::u32, @@ -31447,7 +28068,7 @@ pub mod api { ], ) } - #[doc = "Set the availability period for parathreads."] + #[doc = "See [`Pallet::set_thread_availability_period`]."] pub fn set_thread_availability_period( &self, new: ::core::primitive::u32, @@ -31464,7 +28085,7 @@ pub mod api { ], ) } - #[doc = "Set the scheduling lookahead, in expected number of blocks at peak throughput."] + #[doc = "See [`Pallet::set_scheduling_lookahead`]."] pub fn set_scheduling_lookahead( &self, new: ::core::primitive::u32, @@ -31481,7 +28102,7 @@ pub mod api { ], ) } - #[doc = "Set the maximum number of validators to assign to any core."] + #[doc = "See [`Pallet::set_max_validators_per_core`]."] pub fn set_max_validators_per_core( &self, new: ::core::option::Option<::core::primitive::u32>, @@ -31498,7 +28119,7 @@ pub mod api { ], ) } - #[doc = "Set the maximum number of validators to use in parachain consensus."] + #[doc = "See [`Pallet::set_max_validators`]."] pub fn set_max_validators( &self, new: ::core::option::Option<::core::primitive::u32>, @@ -31515,7 +28136,7 @@ pub mod api { ], ) } - #[doc = "Set the dispute period, in number of sessions to keep for disputes."] + #[doc = "See [`Pallet::set_dispute_period`]."] pub fn set_dispute_period( &self, new: ::core::primitive::u32, @@ -31532,7 +28153,7 @@ pub mod api { ], ) } - #[doc = "Set the dispute post conclusion acceptance period."] + #[doc = "See [`Pallet::set_dispute_post_conclusion_acceptance_period`]."] pub fn set_dispute_post_conclusion_acceptance_period( &self, new: ::core::primitive::u32, @@ -31550,8 +28171,7 @@ pub mod api { ], ) } - #[doc = "Set the no show slots, in number of number of consensus slots."] - #[doc = "Must be at least 1."] + #[doc = "See [`Pallet::set_no_show_slots`]."] pub fn set_no_show_slots( &self, new: ::core::primitive::u32, @@ -31567,7 +28187,7 @@ pub mod api { ], ) } - #[doc = "Set the total number of delay tranches."] + #[doc = "See [`Pallet::set_n_delay_tranches`]."] pub fn set_n_delay_tranches( &self, new: ::core::primitive::u32, @@ -31584,7 +28204,7 @@ pub mod api { ], ) } - #[doc = "Set the zeroth delay tranche width."] + #[doc = "See [`Pallet::set_zeroth_delay_tranche_width`]."] pub fn set_zeroth_delay_tranche_width( &self, new: ::core::primitive::u32, @@ -31600,7 +28220,7 @@ pub mod api { ], ) } - #[doc = "Set the number of validators needed to approve a block."] + #[doc = "See [`Pallet::set_needed_approvals`]."] pub fn set_needed_approvals( &self, new: ::core::primitive::u32, @@ -31616,7 +28236,7 @@ pub mod api { ], ) } - #[doc = "Set the number of samples to do of the `RelayVRFModulo` approval assignment criterion."] + #[doc = "See [`Pallet::set_relay_vrf_modulo_samples`]."] pub fn set_relay_vrf_modulo_samples( &self, new: ::core::primitive::u32, @@ -31633,7 +28253,7 @@ pub mod api { ], ) } - #[doc = "Sets the maximum items that can present in a upward dispatch queue at once."] + #[doc = "See [`Pallet::set_max_upward_queue_count`]."] pub fn set_max_upward_queue_count( &self, new: ::core::primitive::u32, @@ -31650,7 +28270,7 @@ pub mod api { ], ) } - #[doc = "Sets the maximum total size of items that can present in a upward dispatch queue at once."] + #[doc = "See [`Pallet::set_max_upward_queue_size`]."] pub fn set_max_upward_queue_size( &self, new: ::core::primitive::u32, @@ -31667,7 +28287,7 @@ pub mod api { ], ) } - #[doc = "Set the critical downward message size."] + #[doc = "See [`Pallet::set_max_downward_message_size`]."] pub fn set_max_downward_message_size( &self, new: ::core::primitive::u32, @@ -31683,24 +28303,7 @@ pub mod api { ], ) } - #[doc = "Sets the soft limit for the phase of dispatching dispatchable upward messages."] - pub fn set_ump_service_total_weight( - &self, - new: runtime_types::sp_weights::weight_v2::Weight, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_ump_service_total_weight", - types::SetUmpServiceTotalWeight { new }, - [ - 198u8, 49u8, 252u8, 136u8, 11u8, 109u8, 37u8, 234u8, 110u8, 90u8, - 143u8, 149u8, 95u8, 123u8, 73u8, 48u8, 150u8, 28u8, 252u8, 134u8, - 227u8, 236u8, 23u8, 66u8, 154u8, 92u8, 150u8, 218u8, 178u8, 132u8, - 82u8, 111u8, - ], - ) - } - #[doc = "Sets the maximum size of an upward message that can be sent by a candidate."] + #[doc = "See [`Pallet::set_max_upward_message_size`]."] pub fn set_max_upward_message_size( &self, new: ::core::primitive::u32, @@ -31717,7 +28320,7 @@ pub mod api { ], ) } - #[doc = "Sets the maximum number of messages that a candidate can contain."] + #[doc = "See [`Pallet::set_max_upward_message_num_per_candidate`]."] pub fn set_max_upward_message_num_per_candidate( &self, new: ::core::primitive::u32, @@ -31734,7 +28337,7 @@ pub mod api { ], ) } - #[doc = "Sets the number of sessions after which an HRMP open channel request expires."] + #[doc = "See [`Pallet::set_hrmp_open_request_ttl`]."] pub fn set_hrmp_open_request_ttl( &self, new: ::core::primitive::u32, @@ -31750,7 +28353,7 @@ pub mod api { ], ) } - #[doc = "Sets the amount of funds that the sender should provide for opening an HRMP channel."] + #[doc = "See [`Pallet::set_hrmp_sender_deposit`]."] pub fn set_hrmp_sender_deposit( &self, new: ::core::primitive::u128, @@ -31766,8 +28369,7 @@ pub mod api { ], ) } - #[doc = "Sets the amount of funds that the recipient should provide for accepting opening an HRMP"] - #[doc = "channel."] + #[doc = "See [`Pallet::set_hrmp_recipient_deposit`]."] pub fn set_hrmp_recipient_deposit( &self, new: ::core::primitive::u128, @@ -31784,7 +28386,7 @@ pub mod api { ], ) } - #[doc = "Sets the maximum number of messages allowed in an HRMP channel at once."] + #[doc = "See [`Pallet::set_hrmp_channel_max_capacity`]."] pub fn set_hrmp_channel_max_capacity( &self, new: ::core::primitive::u32, @@ -31801,7 +28403,7 @@ pub mod api { ], ) } - #[doc = "Sets the maximum total size of messages in bytes allowed in an HRMP channel at once."] + #[doc = "See [`Pallet::set_hrmp_channel_max_total_size`]."] pub fn set_hrmp_channel_max_total_size( &self, new: ::core::primitive::u32, @@ -31817,7 +28419,7 @@ pub mod api { ], ) } - #[doc = "Sets the maximum number of inbound HRMP channels a parachain is allowed to accept."] + #[doc = "See [`Pallet::set_hrmp_max_parachain_inbound_channels`]."] pub fn set_hrmp_max_parachain_inbound_channels( &self, new: ::core::primitive::u32, @@ -31834,7 +28436,7 @@ pub mod api { ], ) } - #[doc = "Sets the maximum number of inbound HRMP channels a parathread is allowed to accept."] + #[doc = "See [`Pallet::set_hrmp_max_parathread_inbound_channels`]."] pub fn set_hrmp_max_parathread_inbound_channels( &self, new: ::core::primitive::u32, @@ -31851,7 +28453,7 @@ pub mod api { ], ) } - #[doc = "Sets the maximum size of a message that could ever be put into an HRMP channel."] + #[doc = "See [`Pallet::set_hrmp_channel_max_message_size`]."] pub fn set_hrmp_channel_max_message_size( &self, new: ::core::primitive::u32, @@ -31868,7 +28470,7 @@ pub mod api { ], ) } - #[doc = "Sets the maximum number of outbound HRMP channels a parachain is allowed to open."] + #[doc = "See [`Pallet::set_hrmp_max_parachain_outbound_channels`]."] pub fn set_hrmp_max_parachain_outbound_channels( &self, new: ::core::primitive::u32, @@ -31885,7 +28487,7 @@ pub mod api { ], ) } - #[doc = "Sets the maximum number of outbound HRMP channels a parathread is allowed to open."] + #[doc = "See [`Pallet::set_hrmp_max_parathread_outbound_channels`]."] pub fn set_hrmp_max_parathread_outbound_channels( &self, new: ::core::primitive::u32, @@ -31903,7 +28505,7 @@ pub mod api { ], ) } - #[doc = "Sets the maximum number of outbound HRMP messages can be sent by a candidate."] + #[doc = "See [`Pallet::set_hrmp_max_message_num_per_candidate`]."] pub fn set_hrmp_max_message_num_per_candidate( &self, new: ::core::primitive::u32, @@ -31919,23 +28521,7 @@ pub mod api { ], ) } - #[doc = "Sets the maximum amount of weight any individual upward message may consume."] - pub fn set_ump_max_individual_weight( - &self, - new: runtime_types::sp_weights::weight_v2::Weight, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_ump_max_individual_weight", - types::SetUmpMaxIndividualWeight { new }, - [ - 124u8, 187u8, 87u8, 136u8, 129u8, 119u8, 52u8, 135u8, 241u8, 73u8, - 115u8, 215u8, 94u8, 41u8, 8u8, 130u8, 137u8, 142u8, 220u8, 39u8, 96u8, - 88u8, 223u8, 48u8, 222u8, 157u8, 72u8, 170u8, 45u8, 72u8, 28u8, 43u8, - ], - ) - } - #[doc = "Enable or disable PVF pre-checking. Consult the field documentation prior executing."] + #[doc = "See [`Pallet::set_pvf_checking_enabled`]."] pub fn set_pvf_checking_enabled( &self, new: ::core::primitive::bool, @@ -31952,7 +28538,7 @@ pub mod api { ], ) } - #[doc = "Set the number of session changes after which a PVF pre-checking voting is rejected."] + #[doc = "See [`Pallet::set_pvf_voting_ttl`]."] pub fn set_pvf_voting_ttl( &self, new: ::core::primitive::u32, @@ -31969,10 +28555,7 @@ pub mod api { ], ) } - #[doc = "Sets the minimum delay between announcing the upgrade block for a parachain until the"] - #[doc = "upgrade taking place."] - #[doc = ""] - #[doc = "See the field documentation for information and constraints for the new value."] + #[doc = "See [`Pallet::set_minimum_validation_upgrade_delay`]."] pub fn set_minimum_validation_upgrade_delay( &self, new: ::core::primitive::u32, @@ -31989,8 +28572,7 @@ pub mod api { ], ) } - #[doc = "Setting this to true will disable consistency checks for the configuration setters."] - #[doc = "Use with caution."] + #[doc = "See [`Pallet::set_bypass_consistency_check`]."] pub fn set_bypass_consistency_check( &self, new: ::core::primitive::bool, @@ -32007,7 +28589,7 @@ pub mod api { ], ) } - #[doc = "Set the asynchronous backing parameters."] + #[doc = "See [`Pallet::set_async_backing_params`]."] pub fn set_async_backing_params( &self, new: runtime_types::polkadot_primitives::vstaging::AsyncBackingParams, @@ -32024,10 +28606,10 @@ pub mod api { ], ) } - #[doc = "Set PVF executor parameters."] + #[doc = "See [`Pallet::set_executor_params`]."] pub fn set_executor_params( &self, - new: runtime_types::polkadot_primitives::v4::executor_params::ExecutorParams, + new: runtime_types::polkadot_primitives::v5::executor_params::ExecutorParams, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", @@ -32063,9 +28645,9 @@ pub mod api { "ActiveConfig", vec![], [ - 164u8, 67u8, 83u8, 62u8, 158u8, 33u8, 83u8, 109u8, 221u8, 5u8, 39u8, - 179u8, 247u8, 254u8, 8u8, 1u8, 34u8, 160u8, 41u8, 196u8, 17u8, 145u8, - 24u8, 245u8, 166u8, 96u8, 168u8, 243u8, 189u8, 3u8, 95u8, 176u8, + 89u8, 95u8, 12u8, 140u8, 199u8, 69u8, 117u8, 230u8, 44u8, 83u8, 251u8, + 153u8, 0u8, 172u8, 66u8, 55u8, 233u8, 90u8, 135u8, 33u8, 35u8, 23u8, + 36u8, 91u8, 3u8, 212u8, 213u8, 181u8, 37u8, 171u8, 100u8, 170u8, ], ) } @@ -32081,10 +28663,10 @@ pub mod api { "PendingConfigs", vec![], [ - 123u8, 141u8, 170u8, 164u8, 206u8, 115u8, 189u8, 253u8, 248u8, 82u8, - 252u8, 235u8, 116u8, 173u8, 79u8, 79u8, 204u8, 155u8, 236u8, 233u8, - 48u8, 216u8, 32u8, 10u8, 169u8, 251u8, 126u8, 110u8, 36u8, 21u8, 207u8, - 5u8, + 132u8, 122u8, 170u8, 26u8, 208u8, 3u8, 156u8, 114u8, 149u8, 231u8, + 177u8, 142u8, 254u8, 142u8, 172u8, 209u8, 43u8, 233u8, 218u8, 142u8, + 249u8, 25u8, 39u8, 89u8, 97u8, 165u8, 210u8, 23u8, 170u8, 114u8, 12u8, + 222u8, ], ) } @@ -32117,7 +28699,7 @@ pub mod api { pub mod paras_shared { use super::root_mod; use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::polkadot_runtime_parachains::shared::pallet::Call; pub mod calls { use super::root_mod; @@ -32161,7 +28743,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec, + ::std::vec::Vec, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -32183,7 +28765,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec, + ::std::vec::Vec, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -32206,9 +28788,9 @@ pub mod api { pub mod para_inclusion { use super::root_mod; use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::polkadot_runtime_parachains::inclusion::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::polkadot_runtime_parachains::inclusion::pallet::Call; pub mod calls { use super::root_mod; @@ -32220,7 +28802,7 @@ pub mod api { pub struct TransactionApi; impl TransactionApi {} } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::polkadot_runtime_parachains::inclusion::pallet::Event; pub mod events { use super::runtime_types; @@ -32236,10 +28818,10 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A candidate was backed. `[candidate, head_data]`"] pub struct CandidateBacked( - pub runtime_types::polkadot_primitives::v4::CandidateReceipt<::subxt::utils::H256>, + pub runtime_types::polkadot_primitives::v5::CandidateReceipt<::subxt::utils::H256>, pub runtime_types::polkadot_parachain::primitives::HeadData, - pub runtime_types::polkadot_primitives::v4::CoreIndex, - pub runtime_types::polkadot_primitives::v4::GroupIndex, + pub runtime_types::polkadot_primitives::v5::CoreIndex, + pub runtime_types::polkadot_primitives::v5::GroupIndex, ); impl ::subxt::events::StaticEvent for CandidateBacked { const PALLET: &'static str = "ParaInclusion"; @@ -32257,10 +28839,10 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A candidate was included. `[candidate, head_data]`"] pub struct CandidateIncluded( - pub runtime_types::polkadot_primitives::v4::CandidateReceipt<::subxt::utils::H256>, + pub runtime_types::polkadot_primitives::v5::CandidateReceipt<::subxt::utils::H256>, pub runtime_types::polkadot_parachain::primitives::HeadData, - pub runtime_types::polkadot_primitives::v4::CoreIndex, - pub runtime_types::polkadot_primitives::v4::GroupIndex, + pub runtime_types::polkadot_primitives::v5::CoreIndex, + pub runtime_types::polkadot_primitives::v5::GroupIndex, ); impl ::subxt::events::StaticEvent for CandidateIncluded { const PALLET: &'static str = "ParaInclusion"; @@ -32278,20 +28860,39 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A candidate timed out. `[candidate, head_data]`"] pub struct CandidateTimedOut( - pub runtime_types::polkadot_primitives::v4::CandidateReceipt<::subxt::utils::H256>, + pub runtime_types::polkadot_primitives::v5::CandidateReceipt<::subxt::utils::H256>, pub runtime_types::polkadot_parachain::primitives::HeadData, - pub runtime_types::polkadot_primitives::v4::CoreIndex, + pub runtime_types::polkadot_primitives::v5::CoreIndex, ); impl ::subxt::events::StaticEvent for CandidateTimedOut { const PALLET: &'static str = "ParaInclusion"; const EVENT: &'static str = "CandidateTimedOut"; } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some upward messages have been received and will be processed."] + pub struct UpwardMessagesReceived { + pub from: runtime_types::polkadot_parachain::primitives::Id, + pub count: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for UpwardMessagesReceived { + const PALLET: &'static str = "ParaInclusion"; + const EVENT: &'static str = "UpwardMessagesReceived"; + } } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { - #[doc = " The latest bitfield for each validator, referred to by their index in the validator set."] pub fn availability_bitfields (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: polkadot_primitives :: v4 :: ValidatorIndex > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: polkadot_runtime_parachains :: inclusion :: AvailabilityBitfieldRecord < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ + #[doc = " The latest bitfield for each validator, referred to by their index in the validator set."] pub fn availability_bitfields (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: polkadot_primitives :: v5 :: ValidatorIndex > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: polkadot_runtime_parachains :: inclusion :: AvailabilityBitfieldRecord < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ ::subxt::storage::address::Address::new_static( "ParaInclusion", "AvailabilityBitfields", @@ -32351,7 +28952,7 @@ pub mod api { _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_primitives::v4::CandidateCommitments< + runtime_types::polkadot_primitives::v5::CandidateCommitments< ::core::primitive::u32, >, ::subxt::storage::address::Yes, @@ -32376,7 +28977,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_primitives::v4::CandidateCommitments< + runtime_types::polkadot_primitives::v5::CandidateCommitments< ::core::primitive::u32, >, (), @@ -32400,9 +29001,9 @@ pub mod api { pub mod para_inherent { use super::root_mod; use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::polkadot_runtime_parachains::paras_inherent::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::polkadot_runtime_parachains::paras_inherent::pallet::Call; pub mod calls { use super::root_mod; @@ -32421,7 +29022,7 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Enter { - pub data: runtime_types::polkadot_primitives::v4::InherentData< + pub data: runtime_types::polkadot_primitives::v5::InherentData< runtime_types::sp_runtime::generic::header::Header< ::core::primitive::u32, runtime_types::sp_runtime::traits::BlakeTwo256, @@ -32435,10 +29036,10 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Enter the paras inherent. This will process bitfields and backed candidates."] + #[doc = "See [`Pallet::enter`]."] pub fn enter( &self, - data: runtime_types::polkadot_primitives::v4::InherentData< + data: runtime_types::polkadot_primitives::v5::InherentData< runtime_types::sp_runtime::generic::header::Header< ::core::primitive::u32, runtime_types::sp_runtime::traits::BlakeTwo256, @@ -32493,7 +29094,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_primitives::v4::ScrapedOnChainVotes< + runtime_types::polkadot_primitives::v5::ScrapedOnChainVotes< ::subxt::utils::H256, >, ::subxt::storage::address::Yes, @@ -32532,7 +29133,7 @@ pub mod api { ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec< - ::std::vec::Vec, + ::std::vec::Vec, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -32588,7 +29189,7 @@ pub mod api { ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec< ::core::option::Option< - runtime_types::polkadot_primitives::v4::CoreOccupied, + runtime_types::polkadot_primitives::v5::CoreOccupied, >, >, ::subxt::storage::address::Yes, @@ -32692,9 +29293,9 @@ pub mod api { pub mod paras { use super::root_mod; use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::polkadot_runtime_parachains::paras::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::polkadot_runtime_parachains::paras::pallet::Call; pub mod calls { use super::root_mod; @@ -32839,8 +29440,8 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct IncludePvfCheckStatement { - pub stmt: runtime_types::polkadot_primitives::v4::PvfCheckStatement, - pub signature: runtime_types::polkadot_primitives::v4::validator_app::Signature, + pub stmt: runtime_types::polkadot_primitives::v5::PvfCheckStatement, + pub signature: runtime_types::polkadot_primitives::v5::validator_app::Signature, } impl ::subxt::blocks::StaticExtrinsic for IncludePvfCheckStatement { const PALLET: &'static str = "Paras"; @@ -32849,7 +29450,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Set the storage for the parachain validation code immediately."] + #[doc = "See [`Pallet::force_set_current_code`]."] pub fn force_set_current_code( &self, para: runtime_types::polkadot_parachain::primitives::Id, @@ -32867,7 +29468,7 @@ pub mod api { ], ) } - #[doc = "Set the storage for the current parachain head data immediately."] + #[doc = "See [`Pallet::force_set_current_head`]."] pub fn force_set_current_head( &self, para: runtime_types::polkadot_parachain::primitives::Id, @@ -32885,7 +29486,7 @@ pub mod api { ], ) } - #[doc = "Schedule an upgrade as if it was scheduled in the given relay parent block."] + #[doc = "See [`Pallet::force_schedule_code_upgrade`]."] pub fn force_schedule_code_upgrade( &self, para: runtime_types::polkadot_parachain::primitives::Id, @@ -32907,7 +29508,7 @@ pub mod api { ], ) } - #[doc = "Note a new block head for para within the context of the current block."] + #[doc = "See [`Pallet::force_note_new_head`]."] pub fn force_note_new_head( &self, para: runtime_types::polkadot_parachain::primitives::Id, @@ -32924,9 +29525,7 @@ pub mod api { ], ) } - #[doc = "Put a parachain directly into the next session's action queue."] - #[doc = "We can't queue it any sooner than this without going into the"] - #[doc = "initializer..."] + #[doc = "See [`Pallet::force_queue_action`]."] pub fn force_queue_action( &self, para: runtime_types::polkadot_parachain::primitives::Id, @@ -32943,19 +29542,7 @@ pub mod api { ], ) } - #[doc = "Adds the validation code to the storage."] - #[doc = ""] - #[doc = "The code will not be added if it is already present. Additionally, if PVF pre-checking"] - #[doc = "is running for that code, it will be instantly accepted."] - #[doc = ""] - #[doc = "Otherwise, the code will be added into the storage. Note that the code will be added"] - #[doc = "into storage with reference count 0. This is to account the fact that there are no users"] - #[doc = "for this code yet. The caller will have to make sure that this code eventually gets"] - #[doc = "used by some parachain or removed from the storage to avoid storage leaks. For the latter"] - #[doc = "prefer to use the `poke_unused_validation_code` dispatchable to raw storage manipulation."] - #[doc = ""] - #[doc = "This function is mainly meant to be used for upgrading parachains that do not follow"] - #[doc = "the go-ahead signal while the PVF pre-checking feature is enabled."] + #[doc = "See [`Pallet::add_trusted_validation_code`]."] pub fn add_trusted_validation_code( &self, validation_code: runtime_types::polkadot_parachain::primitives::ValidationCode, @@ -32972,11 +29559,7 @@ pub mod api { ], ) } - #[doc = "Remove the validation code from the storage iff the reference count is 0."] - #[doc = ""] - #[doc = "This is better than removing the storage directly, because it will not remove the code"] - #[doc = "that was suddenly got used by some parachain while this dispatchable was pending"] - #[doc = "dispatching."] + #[doc = "See [`Pallet::poke_unused_validation_code`]."] pub fn poke_unused_validation_code( &self, validation_code_hash : runtime_types :: polkadot_parachain :: primitives :: ValidationCodeHash, @@ -32994,12 +29577,11 @@ pub mod api { ], ) } - #[doc = "Includes a statement for a PVF pre-checking vote. Potentially, finalizes the vote and"] - #[doc = "enacts the results if that was the last vote before achieving the supermajority."] + #[doc = "See [`Pallet::include_pvf_check_statement`]."] pub fn include_pvf_check_statement( &self, - stmt: runtime_types::polkadot_primitives::v4::PvfCheckStatement, - signature: runtime_types::polkadot_primitives::v4::validator_app::Signature, + stmt: runtime_types::polkadot_primitives::v5::PvfCheckStatement, + signature: runtime_types::polkadot_primitives::v5::validator_app::Signature, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Paras", @@ -33014,7 +29596,7 @@ pub mod api { } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::polkadot_runtime_parachains::paras::pallet::Event; pub mod events { use super::runtime_types; @@ -33664,7 +30246,7 @@ pub mod api { _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_primitives::v4::UpgradeGoAhead, + runtime_types::polkadot_primitives::v5::UpgradeGoAhead, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, @@ -33696,7 +30278,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_primitives::v4::UpgradeGoAhead, + runtime_types::polkadot_primitives::v5::UpgradeGoAhead, (), (), ::subxt::storage::address::Yes, @@ -33727,7 +30309,7 @@ pub mod api { _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_primitives::v4::UpgradeRestriction, + runtime_types::polkadot_primitives::v5::UpgradeRestriction, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, @@ -33759,7 +30341,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_primitives::v4::UpgradeRestriction, + runtime_types::polkadot_primitives::v5::UpgradeRestriction, (), (), ::subxt::storage::address::Yes, @@ -34057,7 +30639,7 @@ pub mod api { pub mod initializer { use super::root_mod; use super::runtime_types; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::polkadot_runtime_parachains::initializer::pallet::Call; pub mod calls { use super::root_mod; @@ -34086,9 +30668,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Issue a signal to the consensus engine to forcibly act as though all parachain"] - #[doc = "blocks in all relay chain blocks up to and including the given number in the current"] - #[doc = "chain are valid and should be finalized."] + #[doc = "See [`Pallet::force_approve`]."] pub fn force_approve( &self, up_to: ::core::primitive::u32, @@ -34325,509 +30905,12 @@ pub mod api { } } } - pub mod ump { - use super::root_mod; - use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub type Error = runtime_types::polkadot_runtime_parachains::ump::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub type Call = runtime_types::polkadot_runtime_parachains::ump::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ServiceOverweight { - pub index: ::core::primitive::u64, - pub weight_limit: runtime_types::sp_weights::weight_v2::Weight, - } - impl ::subxt::blocks::StaticExtrinsic for ServiceOverweight { - const PALLET: &'static str = "Ump"; - const CALL: &'static str = "service_overweight"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Service a single overweight upward message."] - #[doc = ""] - #[doc = "- `origin`: Must pass `ExecuteOverweightOrigin`."] - #[doc = "- `index`: The index of the overweight message to service."] - #[doc = "- `weight_limit`: The amount of weight that message execution may take."] - #[doc = ""] - #[doc = "Errors:"] - #[doc = "- `UnknownMessageIndex`: Message of `index` is unknown."] - #[doc = "- `WeightOverLimit`: Message execution may use greater than `weight_limit`."] - #[doc = ""] - #[doc = "Events:"] - #[doc = "- `OverweightServiced`: On success."] - pub fn service_overweight( - &self, - index: ::core::primitive::u64, - weight_limit: runtime_types::sp_weights::weight_v2::Weight, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Ump", - "service_overweight", - types::ServiceOverweight { - index, - weight_limit, - }, - [ - 191u8, 141u8, 229u8, 214u8, 12u8, 111u8, 251u8, 4u8, 8u8, 118u8, 217u8, - 193u8, 106u8, 182u8, 233u8, 130u8, 149u8, 201u8, 245u8, 3u8, 81u8, - 217u8, 33u8, 24u8, 198u8, 138u8, 206u8, 141u8, 105u8, 31u8, 81u8, 9u8, - ], - ) - } - } - } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub type Event = runtime_types::polkadot_runtime_parachains::ump::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Upward message is invalid XCM."] - #[doc = "\\[ id \\]"] - pub struct InvalidFormat(pub [::core::primitive::u8; 32usize]); - impl ::subxt::events::StaticEvent for InvalidFormat { - const PALLET: &'static str = "Ump"; - const EVENT: &'static str = "InvalidFormat"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Upward message is unsupported version of XCM."] - #[doc = "\\[ id \\]"] - pub struct UnsupportedVersion(pub [::core::primitive::u8; 32usize]); - impl ::subxt::events::StaticEvent for UnsupportedVersion { - const PALLET: &'static str = "Ump"; - const EVENT: &'static str = "UnsupportedVersion"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Upward message executed with the given outcome."] - #[doc = "\\[ id, outcome \\]"] - pub struct ExecutedUpward( - pub [::core::primitive::u8; 32usize], - pub runtime_types::xcm::v3::traits::Outcome, - ); - impl ::subxt::events::StaticEvent for ExecutedUpward { - const PALLET: &'static str = "Ump"; - const EVENT: &'static str = "ExecutedUpward"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The weight limit for handling upward messages was reached."] - #[doc = "\\[ id, remaining, required \\]"] - pub struct WeightExhausted( - pub [::core::primitive::u8; 32usize], - pub runtime_types::sp_weights::weight_v2::Weight, - pub runtime_types::sp_weights::weight_v2::Weight, - ); - impl ::subxt::events::StaticEvent for WeightExhausted { - const PALLET: &'static str = "Ump"; - const EVENT: &'static str = "WeightExhausted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some upward messages have been received and will be processed."] - #[doc = "\\[ para, count, size \\]"] - pub struct UpwardMessagesReceived( - pub runtime_types::polkadot_parachain::primitives::Id, - pub ::core::primitive::u32, - pub ::core::primitive::u32, - ); - impl ::subxt::events::StaticEvent for UpwardMessagesReceived { - const PALLET: &'static str = "Ump"; - const EVENT: &'static str = "UpwardMessagesReceived"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The weight budget was exceeded for an individual upward message."] - #[doc = ""] - #[doc = "This message can be later dispatched manually using `service_overweight` dispatchable"] - #[doc = "using the assigned `overweight_index`."] - #[doc = ""] - #[doc = "\\[ para, id, overweight_index, required \\]"] - pub struct OverweightEnqueued( - pub runtime_types::polkadot_parachain::primitives::Id, - pub [::core::primitive::u8; 32usize], - pub ::core::primitive::u64, - pub runtime_types::sp_weights::weight_v2::Weight, - ); - impl ::subxt::events::StaticEvent for OverweightEnqueued { - const PALLET: &'static str = "Ump"; - const EVENT: &'static str = "OverweightEnqueued"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Upward message from the overweight queue was executed with the given actual weight"] - #[doc = "used."] - #[doc = ""] - #[doc = "\\[ overweight_index, used \\]"] - pub struct OverweightServiced( - pub ::core::primitive::u64, - pub runtime_types::sp_weights::weight_v2::Weight, - ); - impl ::subxt::events::StaticEvent for OverweightServiced { - const PALLET: &'static str = "Ump"; - const EVENT: &'static str = "OverweightServiced"; - } - } - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - #[doc = " The messages waiting to be handled by the relay-chain originating from a certain parachain."] - #[doc = ""] - #[doc = " Note that some upward messages might have been already processed by the inclusion logic. E.g."] - #[doc = " channel management messages."] - #[doc = ""] - #[doc = " The messages are processed in FIFO order."] - pub fn relay_dispatch_queues( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Ump", - "RelayDispatchQueues", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 117u8, 144u8, 164u8, 105u8, 205u8, 216u8, 78u8, 58u8, 222u8, 31u8, - 134u8, 149u8, 46u8, 41u8, 152u8, 160u8, 166u8, 144u8, 206u8, 161u8, - 216u8, 196u8, 3u8, 34u8, 79u8, 78u8, 229u8, 15u8, 106u8, 23u8, 252u8, - 206u8, - ], - ) - } - #[doc = " The messages waiting to be handled by the relay-chain originating from a certain parachain."] - #[doc = ""] - #[doc = " Note that some upward messages might have been already processed by the inclusion logic. E.g."] - #[doc = " channel management messages."] - #[doc = ""] - #[doc = " The messages are processed in FIFO order."] - pub fn relay_dispatch_queues_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Ump", - "RelayDispatchQueues", - Vec::new(), - [ - 117u8, 144u8, 164u8, 105u8, 205u8, 216u8, 78u8, 58u8, 222u8, 31u8, - 134u8, 149u8, 46u8, 41u8, 152u8, 160u8, 166u8, 144u8, 206u8, 161u8, - 216u8, 196u8, 3u8, 34u8, 79u8, 78u8, 229u8, 15u8, 106u8, 23u8, 252u8, - 206u8, - ], - ) - } - #[doc = " Size of the dispatch queues. Caches sizes of the queues in `RelayDispatchQueue`."] - #[doc = ""] - #[doc = " First item in the tuple is the count of messages and second"] - #[doc = " is the total length (in bytes) of the message payloads."] - #[doc = ""] - #[doc = " Note that this is an auxiliary mapping: it's possible to tell the byte size and the number of"] - #[doc = " messages only looking at `RelayDispatchQueues`. This mapping is separate to avoid the cost of"] - #[doc = " loading the whole message queue if only the total size and count are required."] - #[doc = ""] - #[doc = " Invariant:"] - #[doc = " - The set of keys should exactly match the set of keys of `RelayDispatchQueues`."] - pub fn relay_dispatch_queue_size( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - (::core::primitive::u32, ::core::primitive::u32), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Ump", - "RelayDispatchQueueSize", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 246u8, 251u8, 184u8, 161u8, 3u8, 254u8, 219u8, 108u8, 106u8, 140u8, - 163u8, 118u8, 188u8, 62u8, 148u8, 157u8, 94u8, 70u8, 133u8, 142u8, - 232u8, 152u8, 98u8, 131u8, 241u8, 87u8, 137u8, 61u8, 136u8, 21u8, - 153u8, 50u8, - ], - ) - } - #[doc = " Size of the dispatch queues. Caches sizes of the queues in `RelayDispatchQueue`."] - #[doc = ""] - #[doc = " First item in the tuple is the count of messages and second"] - #[doc = " is the total length (in bytes) of the message payloads."] - #[doc = ""] - #[doc = " Note that this is an auxiliary mapping: it's possible to tell the byte size and the number of"] - #[doc = " messages only looking at `RelayDispatchQueues`. This mapping is separate to avoid the cost of"] - #[doc = " loading the whole message queue if only the total size and count are required."] - #[doc = ""] - #[doc = " Invariant:"] - #[doc = " - The set of keys should exactly match the set of keys of `RelayDispatchQueues`."] - pub fn relay_dispatch_queue_size_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - (::core::primitive::u32, ::core::primitive::u32), - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Ump", - "RelayDispatchQueueSize", - Vec::new(), - [ - 246u8, 251u8, 184u8, 161u8, 3u8, 254u8, 219u8, 108u8, 106u8, 140u8, - 163u8, 118u8, 188u8, 62u8, 148u8, 157u8, 94u8, 70u8, 133u8, 142u8, - 232u8, 152u8, 98u8, 131u8, 241u8, 87u8, 137u8, 61u8, 136u8, 21u8, - 153u8, 50u8, - ], - ) - } - #[doc = " The ordered list of `ParaId`s that have a `RelayDispatchQueue` entry."] - #[doc = ""] - #[doc = " Invariant:"] - #[doc = " - The set of items from this vector should be exactly the set of the keys in"] - #[doc = " `RelayDispatchQueues` and `RelayDispatchQueueSize`."] - pub fn needs_dispatch( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Ump", - "NeedsDispatch", - vec![], - [ - 50u8, 216u8, 202u8, 249u8, 219u8, 62u8, 14u8, 219u8, 16u8, 53u8, 78u8, - 189u8, 94u8, 99u8, 210u8, 208u8, 122u8, 87u8, 105u8, 3u8, 148u8, 12u8, - 90u8, 60u8, 86u8, 106u8, 56u8, 249u8, 1u8, 21u8, 238u8, 176u8, - ], - ) - } - #[doc = " This is the para that gets will get dispatched first during the next upward dispatchable queue"] - #[doc = " execution round."] - #[doc = ""] - #[doc = " Invariant:"] - #[doc = " - If `Some(para)`, then `para` must be present in `NeedsDispatch`."] - pub fn next_dispatch_round_start_with( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_parachain::primitives::Id, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Ump", - "NextDispatchRoundStartWith", - vec![], - [ - 162u8, 216u8, 216u8, 238u8, 153u8, 44u8, 124u8, 137u8, 170u8, 63u8, - 254u8, 73u8, 219u8, 221u8, 130u8, 130u8, 63u8, 94u8, 144u8, 250u8, - 168u8, 222u8, 7u8, 17u8, 197u8, 32u8, 104u8, 83u8, 60u8, 18u8, 46u8, - 243u8, - ], - ) - } - #[doc = " The messages that exceeded max individual message weight budget."] - #[doc = ""] - #[doc = " These messages stay there until manually dispatched."] - pub fn overweight( - &self, - _0: impl ::std::borrow::Borrow<::core::primitive::u64>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ( - runtime_types::polkadot_parachain::primitives::Id, - ::std::vec::Vec<::core::primitive::u8>, - ), - ::subxt::storage::address::Yes, - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Ump", - "Overweight", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 99u8, 253u8, 98u8, 255u8, 15u8, 188u8, 128u8, 101u8, 165u8, 13u8, 95u8, - 43u8, 18u8, 20u8, 119u8, 235u8, 92u8, 145u8, 78u8, 10u8, 35u8, 88u8, - 23u8, 255u8, 208u8, 237u8, 204u8, 203u8, 207u8, 185u8, 214u8, 37u8, - ], - ) - } - #[doc = " The messages that exceeded max individual message weight budget."] - #[doc = ""] - #[doc = " These messages stay there until manually dispatched."] - pub fn overweight_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ( - runtime_types::polkadot_parachain::primitives::Id, - ::std::vec::Vec<::core::primitive::u8>, - ), - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Ump", - "Overweight", - Vec::new(), - [ - 99u8, 253u8, 98u8, 255u8, 15u8, 188u8, 128u8, 101u8, 165u8, 13u8, 95u8, - 43u8, 18u8, 20u8, 119u8, 235u8, 92u8, 145u8, 78u8, 10u8, 35u8, 88u8, - 23u8, 255u8, 208u8, 237u8, 204u8, 203u8, 207u8, 185u8, 214u8, 37u8, - ], - ) - } - #[doc = "Counter for the related counted storage map"] - pub fn counter_for_overweight( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Ump", - "CounterForOverweight", - vec![], - [ - 44u8, 249u8, 133u8, 204u8, 169u8, 253u8, 23u8, 157u8, 132u8, 193u8, - 28u8, 178u8, 156u8, 176u8, 206u8, 46u8, 79u8, 254u8, 174u8, 236u8, - 143u8, 219u8, 59u8, 43u8, 36u8, 109u8, 244u8, 206u8, 48u8, 126u8, - 247u8, 0u8, - ], - ) - } - #[doc = " The number of overweight messages ever recorded in `Overweight` (and thus the lowest free"] - #[doc = " index)."] - pub fn overweight_count( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u64, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Ump", - "OverweightCount", - vec![], - [ - 28u8, 72u8, 218u8, 167u8, 253u8, 30u8, 10u8, 51u8, 49u8, 101u8, 86u8, - 26u8, 146u8, 2u8, 153u8, 232u8, 129u8, 38u8, 111u8, 105u8, 246u8, 84u8, - 192u8, 157u8, 193u8, 57u8, 222u8, 122u8, 38u8, 160u8, 56u8, 39u8, - ], - ) - } - } - } - } pub mod hrmp { use super::root_mod; use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::polkadot_runtime_parachains::hrmp::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::polkadot_runtime_parachains::hrmp::pallet::Call; pub mod calls { use super::root_mod; @@ -34984,16 +31067,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Initiate opening a channel from a parachain to a given recipient with given channel"] - #[doc = "parameters."] - #[doc = ""] - #[doc = "- `proposed_max_capacity` - specifies how many messages can be in the channel at once."] - #[doc = "- `proposed_max_message_size` - specifies the maximum size of the messages."] - #[doc = ""] - #[doc = "These numbers are a subject to the relay-chain configuration limits."] - #[doc = ""] - #[doc = "The channel can be opened only after the recipient confirms it and only on a session"] - #[doc = "change."] + #[doc = "See [`Pallet::hrmp_init_open_channel`]."] pub fn hrmp_init_open_channel( &self, recipient: runtime_types::polkadot_parachain::primitives::Id, @@ -35016,9 +31090,7 @@ pub mod api { ], ) } - #[doc = "Accept a pending open channel request from the given sender."] - #[doc = ""] - #[doc = "The channel will be opened only on the next session boundary."] + #[doc = "See [`Pallet::hrmp_accept_open_channel`]."] pub fn hrmp_accept_open_channel( &self, sender: runtime_types::polkadot_parachain::primitives::Id, @@ -35034,10 +31106,7 @@ pub mod api { ], ) } - #[doc = "Initiate unilateral closing of a channel. The origin must be either the sender or the"] - #[doc = "recipient in the channel being closed."] - #[doc = ""] - #[doc = "The closure can only happen on a session change."] + #[doc = "See [`Pallet::hrmp_close_channel`]."] pub fn hrmp_close_channel( &self, channel_id: runtime_types::polkadot_parachain::primitives::HrmpChannelId, @@ -35053,13 +31122,7 @@ pub mod api { ], ) } - #[doc = "This extrinsic triggers the cleanup of all the HRMP storage items that"] - #[doc = "a para may have. Normally this happens once per session, but this allows"] - #[doc = "you to trigger the cleanup immediately for a specific parachain."] - #[doc = ""] - #[doc = "Origin must be Root."] - #[doc = ""] - #[doc = "Number of inbound and outbound channels for `para` must be provided as witness data of weighing."] + #[doc = "See [`Pallet::force_clean_hrmp`]."] pub fn force_clean_hrmp( &self, para: runtime_types::polkadot_parachain::primitives::Id, @@ -35082,12 +31145,7 @@ pub mod api { ], ) } - #[doc = "Force process HRMP open channel requests."] - #[doc = ""] - #[doc = "If there are pending HRMP open channel requests, you can use this"] - #[doc = "function process all of those requests immediately."] - #[doc = ""] - #[doc = "Total number of opening channels must be provided as witness data of weighing."] + #[doc = "See [`Pallet::force_process_hrmp_open`]."] pub fn force_process_hrmp_open( &self, channels: ::core::primitive::u32, @@ -35104,12 +31162,7 @@ pub mod api { ], ) } - #[doc = "Force process HRMP close channel requests."] - #[doc = ""] - #[doc = "If there are pending HRMP close channel requests, you can use this"] - #[doc = "function process all of those requests immediately."] - #[doc = ""] - #[doc = "Total number of closing channels must be provided as witness data of weighing."] + #[doc = "See [`Pallet::force_process_hrmp_close`]."] pub fn force_process_hrmp_close( &self, channels: ::core::primitive::u32, @@ -35126,14 +31179,7 @@ pub mod api { ], ) } - #[doc = "This cancels a pending open channel request. It can be canceled by either of the sender"] - #[doc = "or the recipient for that request. The origin must be either of those."] - #[doc = ""] - #[doc = "The cancellation happens immediately. It is not possible to cancel the request if it is"] - #[doc = "already accepted."] - #[doc = ""] - #[doc = "Total number of open requests (i.e. `HrmpOpenChannelRequestsList`) must be provided as"] - #[doc = "witness data."] + #[doc = "See [`Pallet::hrmp_cancel_open_request`]."] pub fn hrmp_cancel_open_request( &self, channel_id: runtime_types::polkadot_parachain::primitives::HrmpChannelId, @@ -35154,12 +31200,7 @@ pub mod api { ], ) } - #[doc = "Open a channel from a `sender` to a `recipient` `ParaId` using the Root origin. Although"] - #[doc = "opened by Root, the `max_capacity` and `max_message_size` are still subject to the Relay"] - #[doc = "Chain's configured limits."] - #[doc = ""] - #[doc = "Expected use is when one of the `ParaId`s involved in the channel is governed by the"] - #[doc = "Relay Chain, e.g. a common good parachain."] + #[doc = "See [`Pallet::force_open_hrmp_channel`]."] pub fn force_open_hrmp_channel( &self, sender: runtime_types::polkadot_parachain::primitives::Id, @@ -35185,7 +31226,7 @@ pub mod api { } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::polkadot_runtime_parachains::hrmp::pallet::Event; pub mod events { use super::runtime_types; @@ -35904,7 +31945,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec, + ::std::vec::Vec, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -35949,7 +31990,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_primitives::v4::SessionInfo, + runtime_types::polkadot_primitives::v5::SessionInfo, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, @@ -35974,7 +32015,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_primitives::v4::SessionInfo, + runtime_types::polkadot_primitives::v5::SessionInfo, (), (), ::subxt::storage::address::Yes, @@ -36043,7 +32084,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_primitives::v4::executor_params::ExecutorParams, + runtime_types::polkadot_primitives::v5::executor_params::ExecutorParams, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, @@ -36066,7 +32107,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_primitives::v4::executor_params::ExecutorParams, + runtime_types::polkadot_primitives::v5::executor_params::ExecutorParams, (), (), ::subxt::storage::address::Yes, @@ -36088,9 +32129,9 @@ pub mod api { pub mod paras_disputes { use super::root_mod; use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::polkadot_runtime_parachains::disputes::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::polkadot_runtime_parachains::disputes::pallet::Call; pub mod calls { use super::root_mod; @@ -36116,6 +32157,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { + #[doc = "See [`Pallet::force_unfreeze`]."] pub fn force_unfreeze(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ParasDisputes", @@ -36130,7 +32172,7 @@ pub mod api { } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::polkadot_runtime_parachains::disputes::pallet::Event; pub mod events { use super::runtime_types; @@ -36230,7 +32272,7 @@ pub mod api { >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_primitives::v4::DisputeState<::core::primitive::u32>, + runtime_types::polkadot_primitives::v5::DisputeState<::core::primitive::u32>, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, @@ -36255,7 +32297,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_primitives::v4::DisputeState<::core::primitive::u32>, + runtime_types::polkadot_primitives::v5::DisputeState<::core::primitive::u32>, (), (), ::subxt::storage::address::Yes, @@ -36282,7 +32324,7 @@ pub mod api { >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec, + ::std::vec::Vec, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, @@ -36308,7 +32350,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec, + ::std::vec::Vec, (), (), ::subxt::storage::address::Yes, @@ -36408,10 +32450,10 @@ pub mod api { pub mod paras_slashing { use super::root_mod; use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::polkadot_runtime_parachains::disputes::slashing::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::polkadot_runtime_parachains::disputes::slashing::pallet::Call; pub mod calls { @@ -36430,7 +32472,12 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ReportDisputeLostUnsigned { pub dispute_proof : :: std :: boxed :: Box < runtime_types :: polkadot_runtime_parachains :: disputes :: slashing :: DisputeProof > , pub key_owner_proof : runtime_types :: sp_session :: MembershipProof , } + pub struct ReportDisputeLostUnsigned { + pub dispute_proof: ::std::boxed::Box< + runtime_types::polkadot_primitives::v5::slashing::DisputeProof, + >, + pub key_owner_proof: runtime_types::sp_session::MembershipProof, + } impl ::subxt::blocks::StaticExtrinsic for ReportDisputeLostUnsigned { const PALLET: &'static str = "ParasSlashing"; const CALL: &'static str = "report_dispute_lost_unsigned"; @@ -36438,9 +32485,10 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { + #[doc = "See [`Pallet::report_dispute_lost_unsigned`]."] pub fn report_dispute_lost_unsigned( &self, - dispute_proof : runtime_types :: polkadot_runtime_parachains :: disputes :: slashing :: DisputeProof, + dispute_proof: runtime_types::polkadot_primitives::v5::slashing::DisputeProof, key_owner_proof: runtime_types::sp_session::MembershipProof, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( @@ -36473,7 +32521,7 @@ pub mod api { >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_runtime_parachains::disputes::slashing::PendingSlashes, + runtime_types::polkadot_primitives::v5::slashing::PendingSlashes, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, @@ -36498,7 +32546,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::polkadot_runtime_parachains::disputes::slashing::PendingSlashes, + runtime_types::polkadot_primitives::v5::slashing::PendingSlashes, (), (), ::subxt::storage::address::Yes, @@ -36566,9 +32614,9 @@ pub mod api { pub mod registrar { use super::root_mod; use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::polkadot_runtime_common::paras_registrar::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::polkadot_runtime_common::paras_registrar::pallet::Call; pub mod calls { use super::root_mod; @@ -36741,20 +32789,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Register head data and validation code for a reserved Para Id."] - #[doc = ""] - #[doc = "## Arguments"] - #[doc = "- `origin`: Must be called by a `Signed` origin."] - #[doc = "- `id`: The para ID. Must be owned/managed by the `origin` signing account."] - #[doc = "- `genesis_head`: The genesis head data of the parachain/thread."] - #[doc = "- `validation_code`: The initial validation code of the parachain/thread."] - #[doc = ""] - #[doc = "## Deposits/Fees"] - #[doc = "The origin signed account must reserve a corresponding deposit for the registration. Anything already"] - #[doc = "reserved previously for this para ID is accounted for."] - #[doc = ""] - #[doc = "## Events"] - #[doc = "The `Registered` event is emitted in case of success."] + #[doc = "See [`Pallet::register`]."] pub fn register( &self, id: runtime_types::polkadot_parachain::primitives::Id, @@ -36776,12 +32811,7 @@ pub mod api { ], ) } - #[doc = "Force the registration of a Para Id on the relay chain."] - #[doc = ""] - #[doc = "This function must be called by a Root origin."] - #[doc = ""] - #[doc = "The deposit taken can be specified for this registration. Any `ParaId`"] - #[doc = "can be registered, including sub-1000 IDs which are System Parachains."] + #[doc = "See [`Pallet::force_register`]."] pub fn force_register( &self, who: ::subxt::utils::AccountId32, @@ -36807,9 +32837,7 @@ pub mod api { ], ) } - #[doc = "Deregister a Para Id, freeing all data and returning any deposit."] - #[doc = ""] - #[doc = "The caller must be Root, the `para` owner, or the `para` itself. The para must be a parathread."] + #[doc = "See [`Pallet::deregister`]."] pub fn deregister( &self, id: runtime_types::polkadot_parachain::primitives::Id, @@ -36825,17 +32853,7 @@ pub mod api { ], ) } - #[doc = "Swap a parachain with another parachain or parathread."] - #[doc = ""] - #[doc = "The origin must be Root, the `para` owner, or the `para` itself."] - #[doc = ""] - #[doc = "The swap will happen only if there is already an opposite swap pending. If there is not,"] - #[doc = "the swap will be stored in the pending swaps map, ready for a later confirmatory swap."] - #[doc = ""] - #[doc = "The `ParaId`s remain mapped to the same head data and code so external code can rely on"] - #[doc = "`ParaId` to be a long-term identifier of a notional \"parachain\". However, their"] - #[doc = "scheduling info (i.e. whether they're a parathread or parachain), auction information"] - #[doc = "and the auction deposit are switched."] + #[doc = "See [`Pallet::swap`]."] pub fn swap( &self, id: runtime_types::polkadot_parachain::primitives::Id, @@ -36853,10 +32871,7 @@ pub mod api { ], ) } - #[doc = "Remove a manager lock from a para. This will allow the manager of a"] - #[doc = "previously locked para to deregister or swap a para without using governance."] - #[doc = ""] - #[doc = "Can only be called by the Root origin or the parachain."] + #[doc = "See [`Pallet::remove_lock`]."] pub fn remove_lock( &self, para: runtime_types::polkadot_parachain::primitives::Id, @@ -36872,20 +32887,7 @@ pub mod api { ], ) } - #[doc = "Reserve a Para Id on the relay chain."] - #[doc = ""] - #[doc = "This function will reserve a new Para Id to be owned/managed by the origin account."] - #[doc = "The origin account is able to register head data and validation code using `register` to create"] - #[doc = "a parathread. Using the Slots pallet, a parathread can then be upgraded to get a parachain slot."] - #[doc = ""] - #[doc = "## Arguments"] - #[doc = "- `origin`: Must be called by a `Signed` origin. Becomes the manager/owner of the new para ID."] - #[doc = ""] - #[doc = "## Deposits/Fees"] - #[doc = "The origin must reserve a deposit of `ParaDeposit` for the registration."] - #[doc = ""] - #[doc = "## Events"] - #[doc = "The `Reserved` event is emitted in case of success, which provides the ID reserved for use."] + #[doc = "See [`Pallet::reserve`]."] pub fn reserve(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Registrar", @@ -36898,10 +32900,7 @@ pub mod api { ], ) } - #[doc = "Add a manager lock from a para. This will prevent the manager of a"] - #[doc = "para to deregister or swap a para."] - #[doc = ""] - #[doc = "Can be called by Root, the parachain, or the parachain manager if the parachain is unlocked."] + #[doc = "See [`Pallet::add_lock`]."] pub fn add_lock( &self, para: runtime_types::polkadot_parachain::primitives::Id, @@ -36917,9 +32916,7 @@ pub mod api { ], ) } - #[doc = "Schedule a parachain upgrade."] - #[doc = ""] - #[doc = "Can be called by Root, the parachain, or the parachain manager if the parachain is unlocked."] + #[doc = "See [`Pallet::schedule_code_upgrade`]."] pub fn schedule_code_upgrade( &self, para: runtime_types::polkadot_parachain::primitives::Id, @@ -36937,9 +32934,7 @@ pub mod api { ], ) } - #[doc = "Set the parachain's current head."] - #[doc = ""] - #[doc = "Can be called by Root, the parachain, or the parachain manager if the parachain is unlocked."] + #[doc = "See [`Pallet::set_current_head`]."] pub fn set_current_head( &self, para: runtime_types::polkadot_parachain::primitives::Id, @@ -36959,7 +32954,7 @@ pub mod api { } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::polkadot_runtime_common::paras_registrar::pallet::Event; pub mod events { use super::runtime_types; @@ -37202,9 +33197,9 @@ pub mod api { pub mod slots { use super::root_mod; use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::polkadot_runtime_common::slots::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::polkadot_runtime_common::slots::pallet::Call; pub mod calls { use super::root_mod; @@ -37270,10 +33265,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Just a connect into the `lease_out` call, in case Root wants to force some lease to happen"] - #[doc = "independently of any other on-chain mechanism to use it."] - #[doc = ""] - #[doc = "The dispatch origin for this call must match `T::ForceOrigin`."] + #[doc = "See [`Pallet::force_lease`]."] pub fn force_lease( &self, para: runtime_types::polkadot_parachain::primitives::Id, @@ -37300,9 +33292,7 @@ pub mod api { ], ) } - #[doc = "Clear all leases for a Para Id, refunding any deposits back to the original owners."] - #[doc = ""] - #[doc = "The dispatch origin for this call must match `T::ForceOrigin`."] + #[doc = "See [`Pallet::clear_all_leases`]."] pub fn clear_all_leases( &self, para: runtime_types::polkadot_parachain::primitives::Id, @@ -37318,13 +33308,7 @@ pub mod api { ], ) } - #[doc = "Try to onboard a parachain that has a lease for the current lease period."] - #[doc = ""] - #[doc = "This function can be useful if there was some state issue with a para that should"] - #[doc = "have onboarded, but was unable to. As long as they have a lease period, we can"] - #[doc = "let them onboard from here."] - #[doc = ""] - #[doc = "Origin must be signed, but can be called by anyone."] + #[doc = "See [`Pallet::trigger_onboard`]."] pub fn trigger_onboard( &self, para: runtime_types::polkadot_parachain::primitives::Id, @@ -37342,7 +33326,7 @@ pub mod api { } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::polkadot_runtime_common::slots::pallet::Event; pub mod events { use super::runtime_types; @@ -37520,9 +33504,9 @@ pub mod api { pub mod auctions { use super::root_mod; use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::polkadot_runtime_common::auctions::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::polkadot_runtime_common::auctions::pallet::Call; pub mod calls { use super::root_mod; @@ -37594,11 +33578,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Create a new auction."] - #[doc = ""] - #[doc = "This can only happen when there isn't already an auction in progress and may only be"] - #[doc = "called by the root origin. Accepts the `duration` of this auction and the"] - #[doc = "`lease_period_index` of the initial lease period of the four that are to be auctioned."] + #[doc = "See [`Pallet::new_auction`]."] pub fn new_auction( &self, duration: ::core::primitive::u32, @@ -37619,22 +33599,7 @@ pub mod api { ], ) } - #[doc = "Make a new bid from an account (including a parachain account) for deploying a new"] - #[doc = "parachain."] - #[doc = ""] - #[doc = "Multiple simultaneous bids from the same bidder are allowed only as long as all active"] - #[doc = "bids overlap each other (i.e. are mutually exclusive). Bids cannot be redacted."] - #[doc = ""] - #[doc = "- `sub` is the sub-bidder ID, allowing for multiple competing bids to be made by (and"] - #[doc = "funded by) the same account."] - #[doc = "- `auction_index` is the index of the auction to bid on. Should just be the present"] - #[doc = "value of `AuctionCounter`."] - #[doc = "- `first_slot` is the first lease period index of the range to bid on. This is the"] - #[doc = "absolute lease period index value, not an auction-specific offset."] - #[doc = "- `last_slot` is the last lease period index of the range to bid on. This is the"] - #[doc = "absolute lease period index value, not an auction-specific offset."] - #[doc = "- `amount` is the amount to bid to be held as deposit for the parachain should the"] - #[doc = "bid win. This amount is held throughout the range."] + #[doc = "See [`Pallet::bid`]."] pub fn bid( &self, para: runtime_types::polkadot_parachain::primitives::Id, @@ -37661,9 +33626,7 @@ pub mod api { ], ) } - #[doc = "Cancel an in-progress auction."] - #[doc = ""] - #[doc = "Can only be called by Root origin."] + #[doc = "See [`Pallet::cancel_auction`]."] pub fn cancel_auction(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Auctions", @@ -37678,7 +33641,7 @@ pub mod api { } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::polkadot_runtime_common::auctions::pallet::Event; pub mod events { use super::runtime_types; @@ -38051,9 +34014,9 @@ pub mod api { pub mod crowdloan { use super::root_mod; use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::polkadot_runtime_common::crowdloan::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::polkadot_runtime_common::crowdloan::pallet::Call; pub mod calls { use super::root_mod; @@ -38250,10 +34213,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Create a new crowdloaning campaign for a parachain slot with the given lease period range."] - #[doc = ""] - #[doc = "This applies a lock to your parachain configuration, ensuring that it cannot be changed"] - #[doc = "by the parachain manager."] + #[doc = "See [`Pallet::create`]."] pub fn create( &self, index: runtime_types::polkadot_parachain::primitives::Id, @@ -38281,8 +34241,7 @@ pub mod api { ], ) } - #[doc = "Contribute to a crowd sale. This will transfer some balance over to fund a parachain"] - #[doc = "slot. It will be withdrawable when the crowdloan has ended and the funds are unused."] + #[doc = "See [`Pallet::contribute`]."] pub fn contribute( &self, index: runtime_types::polkadot_parachain::primitives::Id, @@ -38304,23 +34263,7 @@ pub mod api { ], ) } - #[doc = "Withdraw full balance of a specific contributor."] - #[doc = ""] - #[doc = "Origin must be signed, but can come from anyone."] - #[doc = ""] - #[doc = "The fund must be either in, or ready for, retirement. For a fund to be *in* retirement, then the retirement"] - #[doc = "flag must be set. For a fund to be ready for retirement, then:"] - #[doc = "- it must not already be in retirement;"] - #[doc = "- the amount of raised funds must be bigger than the _free_ balance of the account;"] - #[doc = "- and either:"] - #[doc = " - the block number must be at least `end`; or"] - #[doc = " - the current lease period must be greater than the fund's `last_period`."] - #[doc = ""] - #[doc = "In this case, the fund's retirement flag is set and its `end` is reset to the current block"] - #[doc = "number."] - #[doc = ""] - #[doc = "- `who`: The account whose contribution should be withdrawn."] - #[doc = "- `index`: The parachain to whose crowdloan the contribution was made."] + #[doc = "See [`Pallet::withdraw`]."] pub fn withdraw( &self, who: ::subxt::utils::AccountId32, @@ -38337,11 +34280,7 @@ pub mod api { ], ) } - #[doc = "Automatically refund contributors of an ended crowdloan."] - #[doc = "Due to weight restrictions, this function may need to be called multiple"] - #[doc = "times to fully refund all users. We will refund `RemoveKeysLimit` users at a time."] - #[doc = ""] - #[doc = "Origin must be signed, but can come from anyone."] + #[doc = "See [`Pallet::refund`]."] pub fn refund( &self, index: runtime_types::polkadot_parachain::primitives::Id, @@ -38358,7 +34297,7 @@ pub mod api { ], ) } - #[doc = "Remove a fund after the retirement period has ended and all funds have been returned."] + #[doc = "See [`Pallet::dissolve`]."] pub fn dissolve( &self, index: runtime_types::polkadot_parachain::primitives::Id, @@ -38375,9 +34314,7 @@ pub mod api { ], ) } - #[doc = "Edit the configuration for an in-progress crowdloan."] - #[doc = ""] - #[doc = "Can only be called by Root origin."] + #[doc = "See [`Pallet::edit`]."] pub fn edit( &self, index: runtime_types::polkadot_parachain::primitives::Id, @@ -38405,9 +34342,7 @@ pub mod api { ], ) } - #[doc = "Add an optional memo to an existing crowdloan contribution."] - #[doc = ""] - #[doc = "Origin must be Signed, and the user must have contributed to the crowdloan."] + #[doc = "See [`Pallet::add_memo`]."] pub fn add_memo( &self, index: runtime_types::polkadot_parachain::primitives::Id, @@ -38425,9 +34360,7 @@ pub mod api { ], ) } - #[doc = "Poke the fund into `NewRaise`"] - #[doc = ""] - #[doc = "Origin must be Signed, and the fund has non-zero raise."] + #[doc = "See [`Pallet::poke`]."] pub fn poke( &self, index: runtime_types::polkadot_parachain::primitives::Id, @@ -38444,8 +34377,7 @@ pub mod api { ], ) } - #[doc = "Contribute your entire balance to a crowd sale. This will transfer the entire balance of a user over to fund a parachain"] - #[doc = "slot. It will be withdrawable when the crowdloan has ended and the funds are unused."] + #[doc = "See [`Pallet::contribute_all`]."] pub fn contribute_all( &self, index: runtime_types::polkadot_parachain::primitives::Id, @@ -38465,7 +34397,7 @@ pub mod api { } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::polkadot_runtime_common::crowdloan::pallet::Event; pub mod events { use super::runtime_types; @@ -38842,9 +34774,9 @@ pub mod api { pub mod xcm_pallet { use super::root_mod; use super::runtime_types; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_xcm::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_xcm::pallet::Call; pub mod calls { use super::root_mod; @@ -38941,7 +34873,7 @@ pub mod api { pub struct ForceXcmVersion { pub location: ::std::boxed::Box, - pub xcm_version: ::core::primitive::u32, + pub version: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for ForceXcmVersion { const PALLET: &'static str = "XcmPallet"; @@ -39060,6 +34992,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { + #[doc = "See [`Pallet::send`]."] pub fn send( &self, dest: runtime_types::xcm::VersionedMultiLocation, @@ -39079,21 +35012,7 @@ pub mod api { ], ) } - #[doc = "Teleport some assets from the local chain to some destination chain."] - #[doc = ""] - #[doc = "Fee payment on the destination side is made from the asset in the `assets` vector of"] - #[doc = "index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited,"] - #[doc = "with all fees taken as needed from the asset."] - #[doc = ""] - #[doc = "- `origin`: Must be capable of withdrawing the `assets` and executing XCM."] - #[doc = "- `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send"] - #[doc = " from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain."] - #[doc = "- `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be"] - #[doc = " an `AccountId32` value."] - #[doc = "- `assets`: The assets to be withdrawn. The first item should be the currency used to to pay the fee on the"] - #[doc = " `dest` side. May not be empty."] - #[doc = "- `fee_asset_item`: The index into `assets` of the item which should be used to pay"] - #[doc = " fees."] + #[doc = "See [`Pallet::teleport_assets`]."] pub fn teleport_assets( &self, dest: runtime_types::xcm::VersionedMultiLocation, @@ -39117,22 +35036,7 @@ pub mod api { ], ) } - #[doc = "Transfer some assets from the local chain to the sovereign account of a destination"] - #[doc = "chain and forward a notification XCM."] - #[doc = ""] - #[doc = "Fee payment on the destination side is made from the asset in the `assets` vector of"] - #[doc = "index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited,"] - #[doc = "with all fees taken as needed from the asset."] - #[doc = ""] - #[doc = "- `origin`: Must be capable of withdrawing the `assets` and executing XCM."] - #[doc = "- `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send"] - #[doc = " from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain."] - #[doc = "- `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be"] - #[doc = " an `AccountId32` value."] - #[doc = "- `assets`: The assets to be withdrawn. This should include the assets used to pay the fee on the"] - #[doc = " `dest` side."] - #[doc = "- `fee_asset_item`: The index into `assets` of the item which should be used to pay"] - #[doc = " fees."] + #[doc = "See [`Pallet::reserve_transfer_assets`]."] pub fn reserve_transfer_assets( &self, dest: runtime_types::xcm::VersionedMultiLocation, @@ -39156,17 +35060,7 @@ pub mod api { ], ) } - #[doc = "Execute an XCM message from a local, signed, origin."] - #[doc = ""] - #[doc = "An event is deposited indicating whether `msg` could be executed completely or only"] - #[doc = "partially."] - #[doc = ""] - #[doc = "No more than `max_weight` will be used in its attempted execution. If this is less than the"] - #[doc = "maximum amount of weight that the message could take to be executed, then no execution"] - #[doc = "attempt will be made."] - #[doc = ""] - #[doc = "NOTE: A successful return to this does *not* imply that the `msg` was executed successfully"] - #[doc = "to completion; only that *some* of it was executed."] + #[doc = "See [`Pallet::execute`]."] pub fn execute( &self, message: runtime_types::xcm::VersionedXcm2, @@ -39186,36 +35080,28 @@ pub mod api { ], ) } - #[doc = "Extoll that a particular destination can be communicated with through a particular"] - #[doc = "version of XCM."] - #[doc = ""] - #[doc = "- `origin`: Must be an origin specified by AdminOrigin."] - #[doc = "- `location`: The destination that is being described."] - #[doc = "- `xcm_version`: The latest version of XCM that `location` supports."] + #[doc = "See [`Pallet::force_xcm_version`]."] pub fn force_xcm_version( &self, location: runtime_types::xcm::v3::multilocation::MultiLocation, - xcm_version: ::core::primitive::u32, + version: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "XcmPallet", "force_xcm_version", types::ForceXcmVersion { location: ::std::boxed::Box::new(location), - xcm_version, + version, }, [ - 31u8, 152u8, 219u8, 67u8, 212u8, 13u8, 162u8, 129u8, 151u8, 183u8, - 18u8, 2u8, 5u8, 229u8, 94u8, 37u8, 135u8, 69u8, 111u8, 100u8, 177u8, - 96u8, 57u8, 124u8, 53u8, 172u8, 245u8, 29u8, 156u8, 135u8, 42u8, 125u8, + 152u8, 107u8, 91u8, 62u8, 69u8, 11u8, 101u8, 87u8, 34u8, 11u8, 184u8, + 34u8, 179u8, 114u8, 190u8, 93u8, 47u8, 161u8, 177u8, 121u8, 219u8, + 155u8, 203u8, 253u8, 207u8, 217u8, 134u8, 101u8, 170u8, 31u8, 76u8, + 240u8, ], ) } - #[doc = "Set a safe XCM version (the version that XCM should be encoded with if the most recent"] - #[doc = "version a destination can accept is unknown)."] - #[doc = ""] - #[doc = "- `origin`: Must be an origin specified by AdminOrigin."] - #[doc = "- `maybe_xcm_version`: The default XCM encoding version, or `None` to disable."] + #[doc = "See [`Pallet::force_default_xcm_version`]."] pub fn force_default_xcm_version( &self, maybe_xcm_version: ::core::option::Option<::core::primitive::u32>, @@ -39232,10 +35118,7 @@ pub mod api { ], ) } - #[doc = "Ask a location to notify us regarding their XCM version and any changes to it."] - #[doc = ""] - #[doc = "- `origin`: Must be an origin specified by AdminOrigin."] - #[doc = "- `location`: The location to which we should subscribe for XCM version notifications."] + #[doc = "See [`Pallet::force_subscribe_version_notify`]."] pub fn force_subscribe_version_notify( &self, location: runtime_types::xcm::VersionedMultiLocation, @@ -39253,12 +35136,7 @@ pub mod api { ], ) } - #[doc = "Require that a particular destination should no longer notify us regarding any XCM"] - #[doc = "version changes."] - #[doc = ""] - #[doc = "- `origin`: Must be an origin specified by AdminOrigin."] - #[doc = "- `location`: The location to which we are currently subscribed for XCM version"] - #[doc = " notifications which we no longer desire."] + #[doc = "See [`Pallet::force_unsubscribe_version_notify`]."] pub fn force_unsubscribe_version_notify( &self, location: runtime_types::xcm::VersionedMultiLocation, @@ -39276,24 +35154,7 @@ pub mod api { ], ) } - #[doc = "Transfer some assets from the local chain to the sovereign account of a destination"] - #[doc = "chain and forward a notification XCM."] - #[doc = ""] - #[doc = "Fee payment on the destination side is made from the asset in the `assets` vector of"] - #[doc = "index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight"] - #[doc = "is needed than `weight_limit`, then the operation will fail and the assets send may be"] - #[doc = "at risk."] - #[doc = ""] - #[doc = "- `origin`: Must be capable of withdrawing the `assets` and executing XCM."] - #[doc = "- `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send"] - #[doc = " from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain."] - #[doc = "- `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be"] - #[doc = " an `AccountId32` value."] - #[doc = "- `assets`: The assets to be withdrawn. This should include the assets used to pay the fee on the"] - #[doc = " `dest` side."] - #[doc = "- `fee_asset_item`: The index into `assets` of the item which should be used to pay"] - #[doc = " fees."] - #[doc = "- `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase."] + #[doc = "See [`Pallet::limited_reserve_transfer_assets`]."] pub fn limited_reserve_transfer_assets( &self, dest: runtime_types::xcm::VersionedMultiLocation, @@ -39320,23 +35181,7 @@ pub mod api { ], ) } - #[doc = "Teleport some assets from the local chain to some destination chain."] - #[doc = ""] - #[doc = "Fee payment on the destination side is made from the asset in the `assets` vector of"] - #[doc = "index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight"] - #[doc = "is needed than `weight_limit`, then the operation will fail and the assets send may be"] - #[doc = "at risk."] - #[doc = ""] - #[doc = "- `origin`: Must be capable of withdrawing the `assets` and executing XCM."] - #[doc = "- `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send"] - #[doc = " from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain."] - #[doc = "- `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be"] - #[doc = " an `AccountId32` value."] - #[doc = "- `assets`: The assets to be withdrawn. The first item should be the currency used to to pay the fee on the"] - #[doc = " `dest` side. May not be empty."] - #[doc = "- `fee_asset_item`: The index into `assets` of the item which should be used to pay"] - #[doc = " fees."] - #[doc = "- `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase."] + #[doc = "See [`Pallet::limited_teleport_assets`]."] pub fn limited_teleport_assets( &self, dest: runtime_types::xcm::VersionedMultiLocation, @@ -39363,10 +35208,7 @@ pub mod api { ], ) } - #[doc = "Set or unset the global suspension state of the XCM executor."] - #[doc = ""] - #[doc = "- `origin`: Must be an origin specified by AdminOrigin."] - #[doc = "- `suspended`: `true` to suspend, `false` to resume."] + #[doc = "See [`Pallet::force_suspension`]."] pub fn force_suspension( &self, suspended: ::core::primitive::bool, @@ -39384,7 +35226,7 @@ pub mod api { } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_xcm::pallet::Event; pub mod events { use super::runtime_types; @@ -39399,9 +35241,9 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Execution of an XCM message was attempted."] - #[doc = ""] - #[doc = "\\[ outcome \\]"] - pub struct Attempted(pub runtime_types::xcm::v3::traits::Outcome); + pub struct Attempted { + pub outcome: runtime_types::xcm::v3::traits::Outcome, + } impl ::subxt::events::StaticEvent for Attempted { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "Attempted"; @@ -39417,13 +35259,12 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A XCM message was sent."] - #[doc = ""] - #[doc = "\\[ origin, destination, message \\]"] - pub struct Sent( - pub runtime_types::xcm::v3::multilocation::MultiLocation, - pub runtime_types::xcm::v3::multilocation::MultiLocation, - pub runtime_types::xcm::v3::Xcm, - ); + pub struct Sent { + pub origin: runtime_types::xcm::v3::multilocation::MultiLocation, + pub destination: runtime_types::xcm::v3::multilocation::MultiLocation, + pub message: runtime_types::xcm::v3::Xcm, + pub message_id: [::core::primitive::u8; 32usize], + } impl ::subxt::events::StaticEvent for Sent { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "Sent"; @@ -39441,12 +35282,10 @@ pub mod api { #[doc = "Query response received which does not match a registered query. This may be because a"] #[doc = "matching query was never registered, it may be because it is a duplicate response, or"] #[doc = "because the query timed out."] - #[doc = ""] - #[doc = "\\[ origin location, id \\]"] - pub struct UnexpectedResponse( - pub runtime_types::xcm::v3::multilocation::MultiLocation, - pub ::core::primitive::u64, - ); + pub struct UnexpectedResponse { + pub origin: runtime_types::xcm::v3::multilocation::MultiLocation, + pub query_id: ::core::primitive::u64, + } impl ::subxt::events::StaticEvent for UnexpectedResponse { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "UnexpectedResponse"; @@ -39463,12 +35302,10 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Query response has been received and is ready for taking with `take_response`. There is"] #[doc = "no registered notification call."] - #[doc = ""] - #[doc = "\\[ id, response \\]"] - pub struct ResponseReady( - pub ::core::primitive::u64, - pub runtime_types::xcm::v3::Response, - ); + pub struct ResponseReady { + pub query_id: ::core::primitive::u64, + pub response: runtime_types::xcm::v3::Response, + } impl ::subxt::events::StaticEvent for ResponseReady { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "ResponseReady"; @@ -39485,13 +35322,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Query response has been received and query is removed. The registered notification has"] #[doc = "been dispatched and executed successfully."] - #[doc = ""] - #[doc = "\\[ id, pallet index, call index \\]"] - pub struct Notified( - pub ::core::primitive::u64, - pub ::core::primitive::u8, - pub ::core::primitive::u8, - ); + pub struct Notified { + pub query_id: ::core::primitive::u64, + pub pallet_index: ::core::primitive::u8, + pub call_index: ::core::primitive::u8, + } impl ::subxt::events::StaticEvent for Notified { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "Notified"; @@ -39509,15 +35344,13 @@ pub mod api { #[doc = "Query response has been received and query is removed. The registered notification could"] #[doc = "not be dispatched because the dispatch weight is greater than the maximum weight"] #[doc = "originally budgeted by this runtime for the query result."] - #[doc = ""] - #[doc = "\\[ id, pallet index, call index, actual weight, max budgeted weight \\]"] - pub struct NotifyOverweight( - pub ::core::primitive::u64, - pub ::core::primitive::u8, - pub ::core::primitive::u8, - pub runtime_types::sp_weights::weight_v2::Weight, - pub runtime_types::sp_weights::weight_v2::Weight, - ); + pub struct NotifyOverweight { + pub query_id: ::core::primitive::u64, + pub pallet_index: ::core::primitive::u8, + pub call_index: ::core::primitive::u8, + pub actual_weight: runtime_types::sp_weights::weight_v2::Weight, + pub max_budgeted_weight: runtime_types::sp_weights::weight_v2::Weight, + } impl ::subxt::events::StaticEvent for NotifyOverweight { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "NotifyOverweight"; @@ -39534,13 +35367,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Query response has been received and query is removed. There was a general error with"] #[doc = "dispatching the notification call."] - #[doc = ""] - #[doc = "\\[ id, pallet index, call index \\]"] - pub struct NotifyDispatchError( - pub ::core::primitive::u64, - pub ::core::primitive::u8, - pub ::core::primitive::u8, - ); + pub struct NotifyDispatchError { + pub query_id: ::core::primitive::u64, + pub pallet_index: ::core::primitive::u8, + pub call_index: ::core::primitive::u8, + } impl ::subxt::events::StaticEvent for NotifyDispatchError { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "NotifyDispatchError"; @@ -39558,13 +35389,11 @@ pub mod api { #[doc = "Query response has been received and query is removed. The dispatch was unable to be"] #[doc = "decoded into a `Call`; this might be due to dispatch function having a signature which"] #[doc = "is not `(origin, QueryId, Response)`."] - #[doc = ""] - #[doc = "\\[ id, pallet index, call index \\]"] - pub struct NotifyDecodeFailed( - pub ::core::primitive::u64, - pub ::core::primitive::u8, - pub ::core::primitive::u8, - ); + pub struct NotifyDecodeFailed { + pub query_id: ::core::primitive::u64, + pub pallet_index: ::core::primitive::u8, + pub call_index: ::core::primitive::u8, + } impl ::subxt::events::StaticEvent for NotifyDecodeFailed { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "NotifyDecodeFailed"; @@ -39582,13 +35411,12 @@ pub mod api { #[doc = "Expected query response has been received but the origin location of the response does"] #[doc = "not match that expected. The query remains registered for a later, valid, response to"] #[doc = "be received and acted upon."] - #[doc = ""] - #[doc = "\\[ origin location, id, expected location \\]"] - pub struct InvalidResponder( - pub runtime_types::xcm::v3::multilocation::MultiLocation, - pub ::core::primitive::u64, - pub ::core::option::Option, - ); + pub struct InvalidResponder { + pub origin: runtime_types::xcm::v3::multilocation::MultiLocation, + pub query_id: ::core::primitive::u64, + pub expected_location: + ::core::option::Option, + } impl ::subxt::events::StaticEvent for InvalidResponder { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "InvalidResponder"; @@ -39610,12 +35438,10 @@ pub mod api { #[doc = "runtime should be readable prior to query timeout) and dangerous since the possibly"] #[doc = "valid response will be dropped. Manual governance intervention is probably going to be"] #[doc = "needed."] - #[doc = ""] - #[doc = "\\[ origin location, id \\]"] - pub struct InvalidResponderVersion( - pub runtime_types::xcm::v3::multilocation::MultiLocation, - pub ::core::primitive::u64, - ); + pub struct InvalidResponderVersion { + pub origin: runtime_types::xcm::v3::multilocation::MultiLocation, + pub query_id: ::core::primitive::u64, + } impl ::subxt::events::StaticEvent for InvalidResponderVersion { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "InvalidResponderVersion"; @@ -39632,9 +35458,9 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Received query response has been read and removed."] - #[doc = ""] - #[doc = "\\[ id \\]"] - pub struct ResponseTaken(pub ::core::primitive::u64); + pub struct ResponseTaken { + pub query_id: ::core::primitive::u64, + } impl ::subxt::events::StaticEvent for ResponseTaken { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "ResponseTaken"; @@ -39650,13 +35476,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some assets have been placed in an asset trap."] - #[doc = ""] - #[doc = "\\[ hash, origin, assets \\]"] - pub struct AssetsTrapped( - pub ::subxt::utils::H256, - pub runtime_types::xcm::v3::multilocation::MultiLocation, - pub runtime_types::xcm::VersionedMultiAssets, - ); + pub struct AssetsTrapped { + pub hash: ::subxt::utils::H256, + pub origin: runtime_types::xcm::v3::multilocation::MultiLocation, + pub assets: runtime_types::xcm::VersionedMultiAssets, + } impl ::subxt::events::StaticEvent for AssetsTrapped { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "AssetsTrapped"; @@ -39674,13 +35498,12 @@ pub mod api { #[doc = "An XCM version change notification message has been attempted to be sent."] #[doc = ""] #[doc = "The cost of sending it (borne by the chain) is included."] - #[doc = ""] - #[doc = "\\[ destination, result, cost \\]"] - pub struct VersionChangeNotified( - pub runtime_types::xcm::v3::multilocation::MultiLocation, - pub ::core::primitive::u32, - pub runtime_types::xcm::v3::multiasset::MultiAssets, - ); + pub struct VersionChangeNotified { + pub destination: runtime_types::xcm::v3::multilocation::MultiLocation, + pub result: ::core::primitive::u32, + pub cost: runtime_types::xcm::v3::multiasset::MultiAssets, + pub message_id: [::core::primitive::u8; 32usize], + } impl ::subxt::events::StaticEvent for VersionChangeNotified { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "VersionChangeNotified"; @@ -39697,12 +35520,10 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The supported version of a location has been changed. This might be through an"] #[doc = "automatic notification or a manual intervention."] - #[doc = ""] - #[doc = "\\[ location, XCM version \\]"] - pub struct SupportedVersionChanged( - pub runtime_types::xcm::v3::multilocation::MultiLocation, - pub ::core::primitive::u32, - ); + pub struct SupportedVersionChanged { + pub location: runtime_types::xcm::v3::multilocation::MultiLocation, + pub version: ::core::primitive::u32, + } impl ::subxt::events::StaticEvent for SupportedVersionChanged { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "SupportedVersionChanged"; @@ -39719,13 +35540,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A given location which had a version change subscription was dropped owing to an error"] #[doc = "sending the notification to it."] - #[doc = ""] - #[doc = "\\[ location, query ID, error \\]"] - pub struct NotifyTargetSendFail( - pub runtime_types::xcm::v3::multilocation::MultiLocation, - pub ::core::primitive::u64, - pub runtime_types::xcm::v3::traits::Error, - ); + pub struct NotifyTargetSendFail { + pub location: runtime_types::xcm::v3::multilocation::MultiLocation, + pub query_id: ::core::primitive::u64, + pub error: runtime_types::xcm::v3::traits::Error, + } impl ::subxt::events::StaticEvent for NotifyTargetSendFail { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "NotifyTargetSendFail"; @@ -39742,12 +35561,10 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A given location which had a version change subscription was dropped owing to an error"] #[doc = "migrating the location to our new XCM format."] - #[doc = ""] - #[doc = "\\[ location, query ID \\]"] - pub struct NotifyTargetMigrationFail( - pub runtime_types::xcm::VersionedMultiLocation, - pub ::core::primitive::u64, - ); + pub struct NotifyTargetMigrationFail { + pub location: runtime_types::xcm::VersionedMultiLocation, + pub query_id: ::core::primitive::u64, + } impl ::subxt::events::StaticEvent for NotifyTargetMigrationFail { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "NotifyTargetMigrationFail"; @@ -39769,12 +35586,10 @@ pub mod api { #[doc = "runtime should be readable prior to query timeout) and dangerous since the possibly"] #[doc = "valid response will be dropped. Manual governance intervention is probably going to be"] #[doc = "needed."] - #[doc = ""] - #[doc = "\\[ origin location, id \\]"] - pub struct InvalidQuerierVersion( - pub runtime_types::xcm::v3::multilocation::MultiLocation, - pub ::core::primitive::u64, - ); + pub struct InvalidQuerierVersion { + pub origin: runtime_types::xcm::v3::multilocation::MultiLocation, + pub query_id: ::core::primitive::u64, + } impl ::subxt::events::StaticEvent for InvalidQuerierVersion { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "InvalidQuerierVersion"; @@ -39792,14 +35607,13 @@ pub mod api { #[doc = "Expected query response has been received but the querier location of the response does"] #[doc = "not match the expected. The query remains registered for a later, valid, response to"] #[doc = "be received and acted upon."] - #[doc = ""] - #[doc = "\\[ origin location, id, expected querier, maybe actual querier \\]"] - pub struct InvalidQuerier( - pub runtime_types::xcm::v3::multilocation::MultiLocation, - pub ::core::primitive::u64, - pub runtime_types::xcm::v3::multilocation::MultiLocation, - pub ::core::option::Option, - ); + pub struct InvalidQuerier { + pub origin: runtime_types::xcm::v3::multilocation::MultiLocation, + pub query_id: ::core::primitive::u64, + pub expected_querier: runtime_types::xcm::v3::multilocation::MultiLocation, + pub maybe_actual_querier: + ::core::option::Option, + } impl ::subxt::events::StaticEvent for InvalidQuerier { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "InvalidQuerier"; @@ -39816,12 +35630,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A remote has requested XCM version change notification from us and we have honored it."] #[doc = "A version information message is sent to them and its cost is included."] - #[doc = ""] - #[doc = "\\[ destination location, cost \\]"] - pub struct VersionNotifyStarted( - pub runtime_types::xcm::v3::multilocation::MultiLocation, - pub runtime_types::xcm::v3::multiasset::MultiAssets, - ); + pub struct VersionNotifyStarted { + pub destination: runtime_types::xcm::v3::multilocation::MultiLocation, + pub cost: runtime_types::xcm::v3::multiasset::MultiAssets, + pub message_id: [::core::primitive::u8; 32usize], + } impl ::subxt::events::StaticEvent for VersionNotifyStarted { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "VersionNotifyStarted"; @@ -39836,13 +35649,12 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "We have requested that a remote chain sends us XCM version change notifications."] - #[doc = ""] - #[doc = "\\[ destination location, cost \\]"] - pub struct VersionNotifyRequested( - pub runtime_types::xcm::v3::multilocation::MultiLocation, - pub runtime_types::xcm::v3::multiasset::MultiAssets, - ); + #[doc = "We have requested that a remote chain send us XCM version change notifications."] + pub struct VersionNotifyRequested { + pub destination: runtime_types::xcm::v3::multilocation::MultiLocation, + pub cost: runtime_types::xcm::v3::multiasset::MultiAssets, + pub message_id: [::core::primitive::u8; 32usize], + } impl ::subxt::events::StaticEvent for VersionNotifyRequested { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "VersionNotifyRequested"; @@ -39858,12 +35670,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "We have requested that a remote chain stops sending us XCM version change notifications."] - #[doc = ""] - #[doc = "\\[ destination location, cost \\]"] - pub struct VersionNotifyUnrequested( - pub runtime_types::xcm::v3::multilocation::MultiLocation, - pub runtime_types::xcm::v3::multiasset::MultiAssets, - ); + pub struct VersionNotifyUnrequested { + pub destination: runtime_types::xcm::v3::multilocation::MultiLocation, + pub cost: runtime_types::xcm::v3::multiasset::MultiAssets, + pub message_id: [::core::primitive::u8; 32usize], + } impl ::subxt::events::StaticEvent for VersionNotifyUnrequested { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "VersionNotifyUnrequested"; @@ -39879,12 +35690,10 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Fees were paid from a location for an operation (often for using `SendXcm`)."] - #[doc = ""] - #[doc = "\\[ paying location, fees \\]"] - pub struct FeesPaid( - pub runtime_types::xcm::v3::multilocation::MultiLocation, - pub runtime_types::xcm::v3::multiasset::MultiAssets, - ); + pub struct FeesPaid { + pub paying: runtime_types::xcm::v3::multilocation::MultiLocation, + pub fees: runtime_types::xcm::v3::multiasset::MultiAssets, + } impl ::subxt::events::StaticEvent for FeesPaid { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "FeesPaid"; @@ -39900,13 +35709,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some assets have been claimed from an asset trap"] - #[doc = ""] - #[doc = "\\[ hash, origin, assets \\]"] - pub struct AssetsClaimed( - pub ::subxt::utils::H256, - pub runtime_types::xcm::v3::multilocation::MultiLocation, - pub runtime_types::xcm::VersionedMultiAssets, - ); + pub struct AssetsClaimed { + pub hash: ::subxt::utils::H256, + pub origin: runtime_types::xcm::v3::multilocation::MultiLocation, + pub assets: runtime_types::xcm::VersionedMultiAssets, + } impl ::subxt::events::StaticEvent for AssetsClaimed { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "AssetsClaimed"; @@ -40268,7 +36075,7 @@ pub mod api { _2: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_xcm::pallet::RemoteLockedFungibleRecord, + runtime_types::pallet_xcm::pallet::RemoteLockedFungibleRecord<()>, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, @@ -40282,10 +36089,10 @@ pub mod api { ::subxt::storage::address::make_static_storage_map_key(_2.borrow()), ], [ - 84u8, 68u8, 77u8, 93u8, 197u8, 135u8, 4u8, 75u8, 163u8, 6u8, 230u8, - 249u8, 85u8, 42u8, 202u8, 173u8, 25u8, 188u8, 245u8, 145u8, 114u8, - 106u8, 112u8, 17u8, 155u8, 50u8, 198u8, 174u8, 253u8, 75u8, 40u8, - 145u8, + 100u8, 88u8, 111u8, 249u8, 153u8, 101u8, 193u8, 52u8, 201u8, 73u8, + 121u8, 226u8, 175u8, 108u8, 169u8, 225u8, 10u8, 105u8, 27u8, 5u8, + 174u8, 129u8, 53u8, 59u8, 80u8, 171u8, 133u8, 99u8, 102u8, 148u8, + 206u8, 159u8, ], ) } @@ -40294,7 +36101,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_xcm::pallet::RemoteLockedFungibleRecord, + runtime_types::pallet_xcm::pallet::RemoteLockedFungibleRecord<()>, (), (), ::subxt::storage::address::Yes, @@ -40304,10 +36111,10 @@ pub mod api { "RemoteLockedFungibles", Vec::new(), [ - 84u8, 68u8, 77u8, 93u8, 197u8, 135u8, 4u8, 75u8, 163u8, 6u8, 230u8, - 249u8, 85u8, 42u8, 202u8, 173u8, 25u8, 188u8, 245u8, 145u8, 114u8, - 106u8, 112u8, 17u8, 155u8, 50u8, 198u8, 174u8, 253u8, 75u8, 40u8, - 145u8, + 100u8, 88u8, 111u8, 249u8, 153u8, 101u8, 193u8, 52u8, 201u8, 73u8, + 121u8, 226u8, 175u8, 108u8, 169u8, 225u8, 10u8, 105u8, 27u8, 5u8, + 174u8, 129u8, 53u8, 59u8, 80u8, 171u8, 133u8, 99u8, 102u8, 148u8, + 206u8, 159u8, ], ) } @@ -40388,6 +36195,352 @@ pub mod api { } } } + pub mod message_queue { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Error` enum of this pallet."] + pub type Error = runtime_types::pallet_message_queue::pallet::Error; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::pallet_message_queue::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ReapPage { pub message_origin : runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin , pub page_index : :: core :: primitive :: u32 , } + impl ::subxt::blocks::StaticExtrinsic for ReapPage { + const PALLET: &'static str = "MessageQueue"; + const CALL: &'static str = "reap_page"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ExecuteOverweight { pub message_origin : runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin , pub page : :: core :: primitive :: u32 , pub index : :: core :: primitive :: u32 , pub weight_limit : runtime_types :: sp_weights :: weight_v2 :: Weight , } + impl ::subxt::blocks::StaticExtrinsic for ExecuteOverweight { + const PALLET: &'static str = "MessageQueue"; + const CALL: &'static str = "execute_overweight"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::reap_page`]."] + pub fn reap_page( + &self, + message_origin : runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin, + page_index: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "MessageQueue", + "reap_page", + types::ReapPage { + message_origin, + page_index, + }, + [ + 249u8, 194u8, 53u8, 213u8, 95u8, 100u8, 212u8, 239u8, 81u8, 202u8, + 106u8, 81u8, 201u8, 156u8, 154u8, 28u8, 222u8, 45u8, 25u8, 233u8, + 166u8, 127u8, 62u8, 64u8, 46u8, 159u8, 202u8, 208u8, 90u8, 12u8, 60u8, + 215u8, + ], + ) + } + #[doc = "See [`Pallet::execute_overweight`]."] + pub fn execute_overweight( + &self, + message_origin : runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin, + page: ::core::primitive::u32, + index: ::core::primitive::u32, + weight_limit: runtime_types::sp_weights::weight_v2::Weight, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "MessageQueue", + "execute_overweight", + types::ExecuteOverweight { + message_origin, + page, + index, + weight_limit, + }, + [ + 228u8, 182u8, 171u8, 224u8, 60u8, 224u8, 190u8, 13u8, 132u8, 62u8, + 212u8, 117u8, 103u8, 23u8, 74u8, 45u8, 173u8, 26u8, 43u8, 95u8, 84u8, + 168u8, 113u8, 63u8, 198u8, 24u8, 161u8, 5u8, 217u8, 68u8, 88u8, 129u8, + ], + ) + } + } + } + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_message_queue::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Message discarded due to an error in the `MessageProcessor` (usually a format error)."] + pub struct ProcessingFailed { + pub id: [::core::primitive::u8; 32usize], + pub origin: + runtime_types::polkadot_runtime_parachains::inclusion::AggregateMessageOrigin, + pub error: runtime_types::frame_support::traits::messages::ProcessMessageError, + } + impl ::subxt::events::StaticEvent for ProcessingFailed { + const PALLET: &'static str = "MessageQueue"; + const EVENT: &'static str = "ProcessingFailed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Message is processed."] + pub struct Processed { + pub id: [::core::primitive::u8; 32usize], + pub origin: + runtime_types::polkadot_runtime_parachains::inclusion::AggregateMessageOrigin, + pub weight_used: runtime_types::sp_weights::weight_v2::Weight, + pub success: ::core::primitive::bool, + } + impl ::subxt::events::StaticEvent for Processed { + const PALLET: &'static str = "MessageQueue"; + const EVENT: &'static str = "Processed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Message placed in overweight queue."] + pub struct OverweightEnqueued { + pub id: [::core::primitive::u8; 32usize], + pub origin: + runtime_types::polkadot_runtime_parachains::inclusion::AggregateMessageOrigin, + pub page_index: ::core::primitive::u32, + pub message_index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for OverweightEnqueued { + const PALLET: &'static str = "MessageQueue"; + const EVENT: &'static str = "OverweightEnqueued"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "This page was reaped."] + pub struct PageReaped { + pub origin: + runtime_types::polkadot_runtime_parachains::inclusion::AggregateMessageOrigin, + pub index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for PageReaped { + const PALLET: &'static str = "MessageQueue"; + const EVENT: &'static str = "PageReaped"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + #[doc = " The index of the first and last (non-empty) pages."] pub fn book_state_for (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_message_queue :: BookState < runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ + ::subxt::storage::address::Address::new_static( + "MessageQueue", + "BookStateFor", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 101u8, 219u8, 156u8, 174u8, 20u8, 72u8, 40u8, 71u8, 155u8, 127u8, + 201u8, 72u8, 65u8, 29u8, 95u8, 70u8, 6u8, 97u8, 22u8, 129u8, 165u8, + 66u8, 70u8, 89u8, 170u8, 75u8, 148u8, 121u8, 139u8, 230u8, 20u8, 128u8, + ], + ) + } + #[doc = " The index of the first and last (non-empty) pages."] pub fn book_state_for_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: pallet_message_queue :: BookState < runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin > , () , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes >{ + ::subxt::storage::address::Address::new_static( + "MessageQueue", + "BookStateFor", + Vec::new(), + [ + 101u8, 219u8, 156u8, 174u8, 20u8, 72u8, 40u8, 71u8, 155u8, 127u8, + 201u8, 72u8, 65u8, 29u8, 95u8, 70u8, 6u8, 97u8, 22u8, 129u8, 165u8, + 66u8, 70u8, 89u8, 170u8, 75u8, 148u8, 121u8, 139u8, 230u8, 20u8, 128u8, + ], + ) + } + #[doc = " The origin at which we should begin servicing."] + pub fn service_head( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::polkadot_runtime_parachains::inclusion::AggregateMessageOrigin, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "MessageQueue", + "ServiceHead", + vec![], + [ + 17u8, 130u8, 229u8, 193u8, 127u8, 237u8, 60u8, 232u8, 99u8, 109u8, + 102u8, 228u8, 124u8, 103u8, 24u8, 188u8, 151u8, 121u8, 55u8, 97u8, + 85u8, 63u8, 131u8, 60u8, 99u8, 12u8, 88u8, 230u8, 86u8, 50u8, 12u8, + 75u8, + ], + ) + } + #[doc = " The map of page indices to pages."] + pub fn pages( + &self, + _0 : impl :: std :: borrow :: Borrow < runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin >, + _1: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_message_queue::Page<::core::primitive::u32>, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "MessageQueue", + "Pages", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 134u8, 234u8, 133u8, 236u8, 120u8, 91u8, 243u8, 213u8, 115u8, 249u8, + 242u8, 242u8, 118u8, 114u8, 113u8, 106u8, 2u8, 32u8, 18u8, 197u8, 57u8, + 105u8, 49u8, 161u8, 171u8, 254u8, 155u8, 34u8, 82u8, 73u8, 126u8, + 210u8, + ], + ) + } + #[doc = " The map of page indices to pages."] + pub fn pages_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_message_queue::Page<::core::primitive::u32>, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "MessageQueue", + "Pages", + Vec::new(), + [ + 134u8, 234u8, 133u8, 236u8, 120u8, 91u8, 243u8, 213u8, 115u8, 249u8, + 242u8, 242u8, 118u8, 114u8, 113u8, 106u8, 2u8, 32u8, 18u8, 197u8, 57u8, + 105u8, 49u8, 161u8, 171u8, 254u8, 155u8, 34u8, 82u8, 73u8, 126u8, + 210u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The size of the page; this implies the maximum message size which can be sent."] + #[doc = ""] + #[doc = " A good value depends on the expected message sizes, their weights, the weight that is"] + #[doc = " available for processing them and the maximal needed message size. The maximal message"] + #[doc = " size is slightly lower than this as defined by [`MaxMessageLenOf`]."] + pub fn heap_size(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "MessageQueue", + "HeapSize", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The maximum number of stale pages (i.e. of overweight messages) allowed before culling"] + #[doc = " can happen. Once there are more stale pages than this, then historical pages may be"] + #[doc = " dropped, even if they contain unprocessed overweight messages."] + pub fn max_stale(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "MessageQueue", + "MaxStale", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The amount of weight (if any) which should be provided to the message queue for"] + #[doc = " servicing enqueued items."] + #[doc = ""] + #[doc = " This may be legitimately `None` in the case that you will call"] + #[doc = " `ServiceQueues::service_queues` manually."] + pub fn service_weight( + &self, + ) -> ::subxt::constants::Address< + ::core::option::Option, + > { + ::subxt::constants::Address::new_static( + "MessageQueue", + "ServiceWeight", + [ + 194u8, 157u8, 162u8, 120u8, 24u8, 204u8, 63u8, 167u8, 187u8, 244u8, + 45u8, 182u8, 177u8, 32u8, 34u8, 72u8, 204u8, 252u8, 202u8, 221u8, + 201u8, 158u8, 136u8, 75u8, 213u8, 102u8, 145u8, 143u8, 88u8, 141u8, + 83u8, 195u8, + ], + ) + } + } + } + } pub mod runtime_types { use super::runtime_types; pub mod bounded_collections { @@ -40586,7 +36739,7 @@ pub mod api { } pub mod traits { use super::runtime_types; - pub mod misc { + pub mod messages { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, @@ -40598,10 +36751,18 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct WrapperOpaque<_0>( - #[codec(compact)] pub ::core::primitive::u32, - pub _0, - ); + pub enum ProcessMessageError { + #[codec(index = 0)] + BadFormat, + #[codec(index = 1)] + Corrupt, + #[codec(index = 2)] + Unsupported, + #[codec(index = 3)] + Overweight(runtime_types::sp_weights::weight_v2::Weight), + #[codec(index = 4)] + Yield, + } } pub mod preimages { use super::runtime_types; @@ -40857,37 +37018,28 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Make some on-chain remark."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(1)`"] + #[doc = "See [`Pallet::remark`]."] remark { remark: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 1)] - #[doc = "Set the number of pages in the WebAssembly environment's heap."] + #[doc = "See [`Pallet::set_heap_pages`]."] set_heap_pages { pages: ::core::primitive::u64 }, #[codec(index = 2)] - #[doc = "Set the new runtime code."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`"] + #[doc = "See [`Pallet::set_code`]."] set_code { code: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 3)] - #[doc = "Set the new runtime code without doing any checks of the given `code`."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(C)` where `C` length of `code`"] + #[doc = "See [`Pallet::set_code_without_checks`]."] set_code_without_checks { code: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 4)] - #[doc = "Set some items of storage."] + #[doc = "See [`Pallet::set_storage`]."] set_storage { items: ::std::vec::Vec<( ::std::vec::Vec<::core::primitive::u8>, @@ -40895,21 +37047,18 @@ pub mod api { )>, }, #[codec(index = 5)] - #[doc = "Kill some items from storage."] + #[doc = "See [`Pallet::kill_storage`]."] kill_storage { keys: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, }, #[codec(index = 6)] - #[doc = "Kill all storage items with a key that starts with the given prefix."] - #[doc = ""] - #[doc = "**NOTE:** We rely on the Root origin to provide us the number of subkeys under"] - #[doc = "the prefix we are removing to accurately calculate the weight of this function."] + #[doc = "See [`Pallet::kill_prefix`]."] kill_prefix { prefix: ::std::vec::Vec<::core::primitive::u8>, subkeys: ::core::primitive::u32, }, #[codec(index = 7)] - #[doc = "Make some on-chain remark and emit event."] + #[doc = "See [`Pallet::remark_with_event`]."] remark_with_event { remark: ::std::vec::Vec<::core::primitive::u8>, }, @@ -41005,9 +37154,9 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AccountInfo<_0, _1> { pub nonce: _0, - pub consumers: _0, - pub providers: _0, - pub sufficients: _0, + pub consumers: ::core::primitive::u32, + pub providers: ::core::primitive::u32, + pub sufficients: ::core::primitive::u32, pub data: _1, } #[derive( @@ -41073,13 +37222,10 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Report authority equivocation/misbehavior. This method will verify"] - #[doc = "the equivocation proof and validate the given key ownership proof"] - #[doc = "against the extracted offender. If both are valid, the offence will"] - #[doc = "be reported."] + #[doc = "See [`Pallet::report_equivocation`]."] report_equivocation { equivocation_proof: ::std::boxed::Box< runtime_types::sp_consensus_slots::EquivocationProof< @@ -41093,14 +37239,7 @@ pub mod api { key_owner_proof: runtime_types::sp_session::MembershipProof, }, #[codec(index = 1)] - #[doc = "Report authority equivocation/misbehavior. This method will verify"] - #[doc = "the equivocation proof and validate the given key ownership proof"] - #[doc = "against the extracted offender. If both are valid, the offence will"] - #[doc = "be reported."] - #[doc = "This extrinsic must be called unsigned and it is expected that only"] - #[doc = "block authors will call it (validated in `ValidateUnsigned`), as such"] - #[doc = "if the block author is defined it will be defined as the equivocation"] - #[doc = "reporter."] + #[doc = "See [`Pallet::report_equivocation_unsigned`]."] report_equivocation_unsigned { equivocation_proof: ::std::boxed::Box< runtime_types::sp_consensus_slots::EquivocationProof< @@ -41114,10 +37253,7 @@ pub mod api { key_owner_proof: runtime_types::sp_session::MembershipProof, }, #[codec(index = 2)] - #[doc = "Plan an epoch config change. The epoch config change is recorded and will be enacted on"] - #[doc = "the next call to `enact_epoch_change`. The config will be activated one epoch after."] - #[doc = "Multiple calls to this method will replace any existing planned config change that had"] - #[doc = "not been enacted yet."] + #[doc = "See [`Pallet::plan_config_change`]."] plan_config_change { config: runtime_types::sp_consensus_babe::digests::NextConfigDescriptor, }, @@ -41132,7 +37268,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "An equivocation proof provided as part of an equivocation report is invalid."] @@ -41217,31 +37353,15 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Declare that some `dislocated` account has, through rewards or penalties, sufficiently"] - #[doc = "changed its score that it should properly fall into a different bag than its current"] - #[doc = "one."] - #[doc = ""] - #[doc = "Anyone can call this function about any potentially dislocated account."] - #[doc = ""] - #[doc = "Will always update the stored score of `dislocated` to the correct score, based on"] - #[doc = "`ScoreProvider`."] - #[doc = ""] - #[doc = "If `dislocated` does not exists, it returns an error."] + #[doc = "See [`Pallet::rebag`]."] rebag { dislocated: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, }, #[codec(index = 1)] - #[doc = "Move the caller's Id directly in front of `lighter`."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and can only be called by the Id of"] - #[doc = "the account going in front of `lighter`."] - #[doc = ""] - #[doc = "Only works if"] - #[doc = "- both nodes are within the same bag,"] - #[doc = "- and `origin` has a greater `Score` than `lighter`."] + #[doc = "See [`Pallet::put_in_front_of`]."] put_in_front_of { lighter: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, }, @@ -41256,7 +37376,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "A error in the list interface implementation."] @@ -41272,7 +37392,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "Moved an account from one bag to another."] @@ -41304,28 +37424,17 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Transfer some liquid free balance to another account."] - #[doc = ""] - #[doc = "`transfer_allow_death` will set the `FreeBalance` of the sender and receiver."] - #[doc = "If the sender's account is below the existential deposit as a result"] - #[doc = "of the transfer, the account will be reaped."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `Signed` by the transactor."] + #[doc = "See [`Pallet::transfer_allow_death`]."] transfer_allow_death { dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, #[codec(compact)] value: ::core::primitive::u128, }, #[codec(index = 1)] - #[doc = "Set the regular balance of a given account; it also takes a reserved balance but this"] - #[doc = "must be the same as the account's current reserved balance."] - #[doc = ""] - #[doc = "The dispatch origin for this call is `root`."] - #[doc = ""] - #[doc = "WARNING: This call is DEPRECATED! Use `force_set_balance` instead."] + #[doc = "See [`Pallet::set_balance_deprecated`]."] set_balance_deprecated { who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, #[codec(compact)] @@ -41334,8 +37443,7 @@ pub mod api { old_reserved: ::core::primitive::u128, }, #[codec(index = 2)] - #[doc = "Exactly as `transfer_allow_death`, except the origin must be root and the source account"] - #[doc = "may be specified."] + #[doc = "See [`Pallet::force_transfer`]."] force_transfer { source: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -41343,70 +37451,38 @@ pub mod api { value: ::core::primitive::u128, }, #[codec(index = 3)] - #[doc = "Same as the [`transfer_allow_death`] call, but with a check that the transfer will not"] - #[doc = "kill the origin account."] - #[doc = ""] - #[doc = "99% of the time you want [`transfer_allow_death`] instead."] - #[doc = ""] - #[doc = "[`transfer_allow_death`]: struct.Pallet.html#method.transfer"] + #[doc = "See [`Pallet::transfer_keep_alive`]."] transfer_keep_alive { dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, #[codec(compact)] value: ::core::primitive::u128, }, #[codec(index = 4)] - #[doc = "Transfer the entire transferable balance from the caller account."] - #[doc = ""] - #[doc = "NOTE: This function only attempts to transfer _transferable_ balances. This means that"] - #[doc = "any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be"] - #[doc = "transferred by this function. To ensure that this function results in a killed account,"] - #[doc = "you might need to prepare the account by removing any reference counters, storage"] - #[doc = "deposits, etc..."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be Signed."] - #[doc = ""] - #[doc = "- `dest`: The recipient of the transfer."] - #[doc = "- `keep_alive`: A boolean to determine if the `transfer_all` operation should send all"] - #[doc = " of the funds the account has, causing the sender account to be killed (false), or"] - #[doc = " transfer everything except at least the existential deposit, which will guarantee to"] - #[doc = " keep the sender account alive (true)."] + #[doc = "See [`Pallet::transfer_all`]."] transfer_all { dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, keep_alive: ::core::primitive::bool, }, #[codec(index = 5)] - #[doc = "Unreserve some balance from a user by force."] - #[doc = ""] - #[doc = "Can only be called by ROOT."] + #[doc = "See [`Pallet::force_unreserve`]."] force_unreserve { who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, amount: ::core::primitive::u128, }, #[codec(index = 6)] - #[doc = "Upgrade a specified account."] - #[doc = ""] - #[doc = "- `origin`: Must be `Signed`."] - #[doc = "- `who`: The account to be upgraded."] - #[doc = ""] - #[doc = "This will waive the transaction fee if at least all but 10% of the accounts needed to"] - #[doc = "be upgraded. (We let some not have to be upgraded just in order to allow for the"] - #[doc = "possibililty of churn)."] + #[doc = "See [`Pallet::upgrade_accounts`]."] upgrade_accounts { who: ::std::vec::Vec<::subxt::utils::AccountId32>, }, #[codec(index = 7)] - #[doc = "Alias for `transfer_allow_death`, provided only for name-wise compatibility."] - #[doc = ""] - #[doc = "WARNING: DEPRECATED! Will be released in approximately 3 months."] + #[doc = "See [`Pallet::transfer`]."] transfer { dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, #[codec(compact)] value: ::core::primitive::u128, }, #[codec(index = 8)] - #[doc = "Set the regular balance of a given account."] - #[doc = ""] - #[doc = "The dispatch origin for this call is `root`."] + #[doc = "See [`Pallet::force_set_balance`]."] force_set_balance { who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, #[codec(compact)] @@ -41423,7 +37499,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "Vesting balance too high to send value."] @@ -41466,7 +37542,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "An account was created with some free balance."] @@ -41700,45 +37776,23 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Propose a new bounty."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "Payment: `TipReportDepositBase` will be reserved from the origin account, as well as"] - #[doc = "`DataDepositPerByte` for each byte in `reason`. It will be unreserved upon approval,"] - #[doc = "or slashed when rejected."] - #[doc = ""] - #[doc = "- `curator`: The curator account whom will manage this bounty."] - #[doc = "- `fee`: The curator fee."] - #[doc = "- `value`: The total payment amount of this bounty, curator fee included."] - #[doc = "- `description`: The description of this bounty."] + #[doc = "See [`Pallet::propose_bounty`]."] propose_bounty { #[codec(compact)] value: ::core::primitive::u128, description: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 1)] - #[doc = "Approve a bounty proposal. At a later time, the bounty will be funded and become active"] - #[doc = "and the original deposit will be returned."] - #[doc = ""] - #[doc = "May only be called from `T::SpendOrigin`."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- O(1)."] + #[doc = "See [`Pallet::approve_bounty`]."] approve_bounty { #[codec(compact)] bounty_id: ::core::primitive::u32, }, #[codec(index = 2)] - #[doc = "Assign a curator to a funded bounty."] - #[doc = ""] - #[doc = "May only be called from `T::SpendOrigin`."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- O(1)."] + #[doc = "See [`Pallet::propose_curator`]."] propose_curator { #[codec(compact)] bounty_id: ::core::primitive::u32, @@ -41747,92 +37801,38 @@ pub mod api { fee: ::core::primitive::u128, }, #[codec(index = 3)] - #[doc = "Unassign curator from a bounty."] - #[doc = ""] - #[doc = "This function can only be called by the `RejectOrigin` a signed origin."] - #[doc = ""] - #[doc = "If this function is called by the `RejectOrigin`, we assume that the curator is"] - #[doc = "malicious or inactive. As a result, we will slash the curator when possible."] - #[doc = ""] - #[doc = "If the origin is the curator, we take this as a sign they are unable to do their job and"] - #[doc = "they willingly give up. We could slash them, but for now we allow them to recover their"] - #[doc = "deposit and exit without issue. (We may want to change this if it is abused.)"] - #[doc = ""] - #[doc = "Finally, the origin can be anyone if and only if the curator is \"inactive\". This allows"] - #[doc = "anyone in the community to call out that a curator is not doing their due diligence, and"] - #[doc = "we should pick a new curator. In this case the curator should also be slashed."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- O(1)."] + #[doc = "See [`Pallet::unassign_curator`]."] unassign_curator { #[codec(compact)] bounty_id: ::core::primitive::u32, }, #[codec(index = 4)] - #[doc = "Accept the curator role for a bounty."] - #[doc = "A deposit will be reserved from curator and refund upon successful payout."] - #[doc = ""] - #[doc = "May only be called from the curator."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- O(1)."] + #[doc = "See [`Pallet::accept_curator`]."] accept_curator { #[codec(compact)] bounty_id: ::core::primitive::u32, }, #[codec(index = 5)] - #[doc = "Award bounty to a beneficiary account. The beneficiary will be able to claim the funds"] - #[doc = "after a delay."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be the curator of this bounty."] - #[doc = ""] - #[doc = "- `bounty_id`: Bounty ID to award."] - #[doc = "- `beneficiary`: The beneficiary account whom will receive the payout."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- O(1)."] + #[doc = "See [`Pallet::award_bounty`]."] award_bounty { #[codec(compact)] bounty_id: ::core::primitive::u32, beneficiary: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, }, #[codec(index = 6)] - #[doc = "Claim the payout from an awarded bounty after payout delay."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be the beneficiary of this bounty."] - #[doc = ""] - #[doc = "- `bounty_id`: Bounty ID to claim."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- O(1)."] + #[doc = "See [`Pallet::claim_bounty`]."] claim_bounty { #[codec(compact)] bounty_id: ::core::primitive::u32, }, #[codec(index = 7)] - #[doc = "Cancel a proposed or active bounty. All the funds will be sent to treasury and"] - #[doc = "the curator deposit will be unreserved if possible."] - #[doc = ""] - #[doc = "Only `T::RejectOrigin` is able to cancel a bounty."] - #[doc = ""] - #[doc = "- `bounty_id`: Bounty ID to cancel."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- O(1)."] + #[doc = "See [`Pallet::close_bounty`]."] close_bounty { #[codec(compact)] bounty_id: ::core::primitive::u32, }, #[codec(index = 8)] - #[doc = "Extend the expiry time of an active bounty."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be the curator of this bounty."] - #[doc = ""] - #[doc = "- `bounty_id`: Bounty ID to extend."] - #[doc = "- `remark`: additional information."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- O(1)."] + #[doc = "See [`Pallet::extend_bounty_expiry`]."] extend_bounty_expiry { #[codec(compact)] bounty_id: ::core::primitive::u32, @@ -41849,7 +37849,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "Proposer's balance is too low."] @@ -41896,7 +37896,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "New bounty proposal."] @@ -41992,28 +37992,10 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Add a new child-bounty."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be the curator of parent"] - #[doc = "bounty and the parent bounty must be in \"active\" state."] - #[doc = ""] - #[doc = "Child-bounty gets added successfully & fund gets transferred from"] - #[doc = "parent bounty to child-bounty account, if parent bounty has enough"] - #[doc = "funds, else the call fails."] - #[doc = ""] - #[doc = "Upper bound to maximum number of active child bounties that can be"] - #[doc = "added are managed via runtime trait config"] - #[doc = "[`Config::MaxActiveChildBountyCount`]."] - #[doc = ""] - #[doc = "If the call is success, the status of child-bounty is updated to"] - #[doc = "\"Added\"."] - #[doc = ""] - #[doc = "- `parent_bounty_id`: Index of parent bounty for which child-bounty is being added."] - #[doc = "- `value`: Value for executing the proposal."] - #[doc = "- `description`: Text description for the child-bounty."] + #[doc = "See [`Pallet::add_child_bounty`]."] add_child_bounty { #[codec(compact)] parent_bounty_id: ::core::primitive::u32, @@ -42022,21 +38004,7 @@ pub mod api { description: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 1)] - #[doc = "Propose curator for funded child-bounty."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be curator of parent bounty."] - #[doc = ""] - #[doc = "Parent bounty must be in active state, for this child-bounty call to"] - #[doc = "work."] - #[doc = ""] - #[doc = "Child-bounty must be in \"Added\" state, for processing the call. And"] - #[doc = "state of child-bounty is moved to \"CuratorProposed\" on successful"] - #[doc = "call completion."] - #[doc = ""] - #[doc = "- `parent_bounty_id`: Index of parent bounty."] - #[doc = "- `child_bounty_id`: Index of child bounty."] - #[doc = "- `curator`: Address of child-bounty curator."] - #[doc = "- `fee`: payment fee to child-bounty curator for execution."] + #[doc = "See [`Pallet::propose_curator`]."] propose_curator { #[codec(compact)] parent_bounty_id: ::core::primitive::u32, @@ -42047,25 +38015,7 @@ pub mod api { fee: ::core::primitive::u128, }, #[codec(index = 2)] - #[doc = "Accept the curator role for the child-bounty."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be the curator of this"] - #[doc = "child-bounty."] - #[doc = ""] - #[doc = "A deposit will be reserved from the curator and refund upon"] - #[doc = "successful payout or cancellation."] - #[doc = ""] - #[doc = "Fee for curator is deducted from curator fee of parent bounty."] - #[doc = ""] - #[doc = "Parent bounty must be in active state, for this child-bounty call to"] - #[doc = "work."] - #[doc = ""] - #[doc = "Child-bounty must be in \"CuratorProposed\" state, for processing the"] - #[doc = "call. And state of child-bounty is moved to \"Active\" on successful"] - #[doc = "call completion."] - #[doc = ""] - #[doc = "- `parent_bounty_id`: Index of parent bounty."] - #[doc = "- `child_bounty_id`: Index of child bounty."] + #[doc = "See [`Pallet::accept_curator`]."] accept_curator { #[codec(compact)] parent_bounty_id: ::core::primitive::u32, @@ -42073,40 +38023,7 @@ pub mod api { child_bounty_id: ::core::primitive::u32, }, #[codec(index = 3)] - #[doc = "Unassign curator from a child-bounty."] - #[doc = ""] - #[doc = "The dispatch origin for this call can be either `RejectOrigin`, or"] - #[doc = "the curator of the parent bounty, or any signed origin."] - #[doc = ""] - #[doc = "For the origin other than T::RejectOrigin and the child-bounty"] - #[doc = "curator, parent bounty must be in active state, for this call to"] - #[doc = "work. We allow child-bounty curator and T::RejectOrigin to execute"] - #[doc = "this call irrespective of the parent bounty state."] - #[doc = ""] - #[doc = "If this function is called by the `RejectOrigin` or the"] - #[doc = "parent bounty curator, we assume that the child-bounty curator is"] - #[doc = "malicious or inactive. As a result, child-bounty curator deposit is"] - #[doc = "slashed."] - #[doc = ""] - #[doc = "If the origin is the child-bounty curator, we take this as a sign"] - #[doc = "that they are unable to do their job, and are willingly giving up."] - #[doc = "We could slash the deposit, but for now we allow them to unreserve"] - #[doc = "their deposit and exit without issue. (We may want to change this if"] - #[doc = "it is abused.)"] - #[doc = ""] - #[doc = "Finally, the origin can be anyone iff the child-bounty curator is"] - #[doc = "\"inactive\". Expiry update due of parent bounty is used to estimate"] - #[doc = "inactive state of child-bounty curator."] - #[doc = ""] - #[doc = "This allows anyone in the community to call out that a child-bounty"] - #[doc = "curator is not doing their due diligence, and we should pick a new"] - #[doc = "one. In this case the child-bounty curator deposit is slashed."] - #[doc = ""] - #[doc = "State of child-bounty is moved to Added state on successful call"] - #[doc = "completion."] - #[doc = ""] - #[doc = "- `parent_bounty_id`: Index of parent bounty."] - #[doc = "- `child_bounty_id`: Index of child bounty."] + #[doc = "See [`Pallet::unassign_curator`]."] unassign_curator { #[codec(compact)] parent_bounty_id: ::core::primitive::u32, @@ -42114,23 +38031,7 @@ pub mod api { child_bounty_id: ::core::primitive::u32, }, #[codec(index = 4)] - #[doc = "Award child-bounty to a beneficiary."] - #[doc = ""] - #[doc = "The beneficiary will be able to claim the funds after a delay."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be the parent curator or"] - #[doc = "curator of this child-bounty."] - #[doc = ""] - #[doc = "Parent bounty must be in active state, for this child-bounty call to"] - #[doc = "work."] - #[doc = ""] - #[doc = "Child-bounty must be in active state, for processing the call. And"] - #[doc = "state of child-bounty is moved to \"PendingPayout\" on successful call"] - #[doc = "completion."] - #[doc = ""] - #[doc = "- `parent_bounty_id`: Index of parent bounty."] - #[doc = "- `child_bounty_id`: Index of child bounty."] - #[doc = "- `beneficiary`: Beneficiary account."] + #[doc = "See [`Pallet::award_child_bounty`]."] award_child_bounty { #[codec(compact)] parent_bounty_id: ::core::primitive::u32, @@ -42139,22 +38040,7 @@ pub mod api { beneficiary: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, }, #[codec(index = 5)] - #[doc = "Claim the payout from an awarded child-bounty after payout delay."] - #[doc = ""] - #[doc = "The dispatch origin for this call may be any signed origin."] - #[doc = ""] - #[doc = "Call works independent of parent bounty state, No need for parent"] - #[doc = "bounty to be in active state."] - #[doc = ""] - #[doc = "The Beneficiary is paid out with agreed bounty value. Curator fee is"] - #[doc = "paid & curator deposit is unreserved."] - #[doc = ""] - #[doc = "Child-bounty must be in \"PendingPayout\" state, for processing the"] - #[doc = "call. And instance of child-bounty is removed from the state on"] - #[doc = "successful call completion."] - #[doc = ""] - #[doc = "- `parent_bounty_id`: Index of parent bounty."] - #[doc = "- `child_bounty_id`: Index of child bounty."] + #[doc = "See [`Pallet::claim_child_bounty`]."] claim_child_bounty { #[codec(compact)] parent_bounty_id: ::core::primitive::u32, @@ -42162,28 +38048,7 @@ pub mod api { child_bounty_id: ::core::primitive::u32, }, #[codec(index = 6)] - #[doc = "Cancel a proposed or active child-bounty. Child-bounty account funds"] - #[doc = "are transferred to parent bounty account. The child-bounty curator"] - #[doc = "deposit may be unreserved if possible."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be either parent curator or"] - #[doc = "`T::RejectOrigin`."] - #[doc = ""] - #[doc = "If the state of child-bounty is `Active`, curator deposit is"] - #[doc = "unreserved."] - #[doc = ""] - #[doc = "If the state of child-bounty is `PendingPayout`, call fails &"] - #[doc = "returns `PendingPayout` error."] - #[doc = ""] - #[doc = "For the origin other than T::RejectOrigin, parent bounty must be in"] - #[doc = "active state, for this child-bounty call to work. For origin"] - #[doc = "T::RejectOrigin execution is forced."] - #[doc = ""] - #[doc = "Instance of child-bounty is removed from the state on successful"] - #[doc = "call completion."] - #[doc = ""] - #[doc = "- `parent_bounty_id`: Index of parent bounty."] - #[doc = "- `child_bounty_id`: Index of child bounty."] + #[doc = "See [`Pallet::close_child_bounty`]."] close_child_bounty { #[codec(compact)] parent_bounty_id: ::core::primitive::u32, @@ -42201,7 +38066,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "The parent bounty is not in active state."] @@ -42223,7 +38088,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "A child-bounty is added."] @@ -42265,7 +38130,7 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ChildBounty<_0, _1, _2> { - pub parent_bounty: _2, + pub parent_bounty: ::core::primitive::u32, pub value: _1, pub fee: _1, pub curator_deposit: _1, @@ -42310,68 +38175,24 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Set the collective's membership."] - #[doc = ""] - #[doc = "- `new_members`: The new member list. Be nice to the chain and provide it sorted."] - #[doc = "- `prime`: The prime member whose vote sets the default."] - #[doc = "- `old_count`: The upper bound for the previous number of members in storage. Used for"] - #[doc = " weight estimation."] - #[doc = ""] - #[doc = "The dispatch of this call must be `SetMembersOrigin`."] - #[doc = ""] - #[doc = "NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but"] - #[doc = " the weight estimations rely on it to estimate dispatchable weight."] - #[doc = ""] - #[doc = "# WARNING:"] - #[doc = ""] - #[doc = "The `pallet-collective` can also be managed by logic outside of the pallet through the"] - #[doc = "implementation of the trait [`ChangeMembers`]."] - #[doc = "Any call to `set_members` must be careful that the member set doesn't get out of sync"] - #[doc = "with other logic managing the member set."] - #[doc = ""] - #[doc = "## Complexity:"] - #[doc = "- `O(MP + N)` where:"] - #[doc = " - `M` old-members-count (code- and governance-bounded)"] - #[doc = " - `N` new-members-count (code- and governance-bounded)"] - #[doc = " - `P` proposals-count (code-bounded)"] + #[doc = "See [`Pallet::set_members`]."] set_members { new_members: ::std::vec::Vec<::subxt::utils::AccountId32>, prime: ::core::option::Option<::subxt::utils::AccountId32>, old_count: ::core::primitive::u32, }, #[codec(index = 1)] - #[doc = "Dispatch a proposal from a member using the `Member` origin."] - #[doc = ""] - #[doc = "Origin must be a member of the collective."] - #[doc = ""] - #[doc = "## Complexity:"] - #[doc = "- `O(B + M + P)` where:"] - #[doc = "- `B` is `proposal` size in bytes (length-fee-bounded)"] - #[doc = "- `M` members-count (code-bounded)"] - #[doc = "- `P` complexity of dispatching `proposal`"] + #[doc = "See [`Pallet::execute`]."] execute { proposal: ::std::boxed::Box, #[codec(compact)] length_bound: ::core::primitive::u32, }, #[codec(index = 2)] - #[doc = "Add a new proposal to either be voted on or executed directly."] - #[doc = ""] - #[doc = "Requires the sender to be member."] - #[doc = ""] - #[doc = "`threshold` determines whether `proposal` is executed directly (`threshold < 2`)"] - #[doc = "or put up for voting."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(B + M + P1)` or `O(B + M + P2)` where:"] - #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] - #[doc = " - `M` is members-count (code- and governance-bounded)"] - #[doc = " - branching is influenced by `threshold` where:"] - #[doc = " - `P1` is proposal execution complexity (`threshold < 2`)"] - #[doc = " - `P2` is proposals-count (code-bounded) (`threshold >= 2`)"] + #[doc = "See [`Pallet::propose`]."] propose { #[codec(compact)] threshold: ::core::primitive::u32, @@ -42380,15 +38201,7 @@ pub mod api { length_bound: ::core::primitive::u32, }, #[codec(index = 3)] - #[doc = "Add an aye or nay vote for the sender to the given proposal."] - #[doc = ""] - #[doc = "Requires the sender to be a member."] - #[doc = ""] - #[doc = "Transaction fees will be waived if the member is voting on any particular proposal"] - #[doc = "for the first time and the call is successful. Subsequent vote changes will charge a"] - #[doc = "fee."] - #[doc = "## Complexity"] - #[doc = "- `O(M)` where `M` is members-count (code- and governance-bounded)"] + #[doc = "See [`Pallet::vote`]."] vote { proposal: ::subxt::utils::H256, #[codec(compact)] @@ -42396,42 +38209,10 @@ pub mod api { approve: ::core::primitive::bool, }, #[codec(index = 5)] - #[doc = "Disapprove a proposal, close, and remove it from the system, regardless of its current"] - #[doc = "state."] - #[doc = ""] - #[doc = "Must be called by the Root origin."] - #[doc = ""] - #[doc = "Parameters:"] - #[doc = "* `proposal_hash`: The hash of the proposal that should be disapproved."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "O(P) where P is the number of max proposals"] + #[doc = "See [`Pallet::disapprove_proposal`]."] disapprove_proposal { proposal_hash: ::subxt::utils::H256 }, #[codec(index = 6)] - #[doc = "Close a vote that is either approved, disapproved or whose voting period has ended."] - #[doc = ""] - #[doc = "May be called by any signed account in order to finish voting and close the proposal."] - #[doc = ""] - #[doc = "If called before the end of the voting period it will only close the vote if it is"] - #[doc = "has enough votes to be approved or disapproved."] - #[doc = ""] - #[doc = "If called after the end of the voting period abstentions are counted as rejections"] - #[doc = "unless there is a prime member set and the prime member cast an approval."] - #[doc = ""] - #[doc = "If the close operation completes successfully with disapproval, the transaction fee will"] - #[doc = "be waived. Otherwise execution of the approved operation will be charged to the caller."] - #[doc = ""] - #[doc = "+ `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed"] - #[doc = "proposal."] - #[doc = "+ `length_bound`: The upper bound for the length of the proposal in storage. Checked via"] - #[doc = "`storage::read` so it is `size_of::() == 4` larger than the pure length."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(B + M + P1 + P2)` where:"] - #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] - #[doc = " - `M` is members-count (code- and governance-bounded)"] - #[doc = " - `P1` is the complexity of `proposal` preimage."] - #[doc = " - `P2` is proposal-count (code-bounded)"] + #[doc = "See [`Pallet::close`]."] close { proposal_hash: ::subxt::utils::H256, #[codec(compact)] @@ -42451,68 +38232,24 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call2 { #[codec(index = 0)] - #[doc = "Set the collective's membership."] - #[doc = ""] - #[doc = "- `new_members`: The new member list. Be nice to the chain and provide it sorted."] - #[doc = "- `prime`: The prime member whose vote sets the default."] - #[doc = "- `old_count`: The upper bound for the previous number of members in storage. Used for"] - #[doc = " weight estimation."] - #[doc = ""] - #[doc = "The dispatch of this call must be `SetMembersOrigin`."] - #[doc = ""] - #[doc = "NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but"] - #[doc = " the weight estimations rely on it to estimate dispatchable weight."] - #[doc = ""] - #[doc = "# WARNING:"] - #[doc = ""] - #[doc = "The `pallet-collective` can also be managed by logic outside of the pallet through the"] - #[doc = "implementation of the trait [`ChangeMembers`]."] - #[doc = "Any call to `set_members` must be careful that the member set doesn't get out of sync"] - #[doc = "with other logic managing the member set."] - #[doc = ""] - #[doc = "## Complexity:"] - #[doc = "- `O(MP + N)` where:"] - #[doc = " - `M` old-members-count (code- and governance-bounded)"] - #[doc = " - `N` new-members-count (code- and governance-bounded)"] - #[doc = " - `P` proposals-count (code-bounded)"] + #[doc = "See [`Pallet::set_members`]."] set_members { new_members: ::std::vec::Vec<::subxt::utils::AccountId32>, prime: ::core::option::Option<::subxt::utils::AccountId32>, old_count: ::core::primitive::u32, }, #[codec(index = 1)] - #[doc = "Dispatch a proposal from a member using the `Member` origin."] - #[doc = ""] - #[doc = "Origin must be a member of the collective."] - #[doc = ""] - #[doc = "## Complexity:"] - #[doc = "- `O(B + M + P)` where:"] - #[doc = "- `B` is `proposal` size in bytes (length-fee-bounded)"] - #[doc = "- `M` members-count (code-bounded)"] - #[doc = "- `P` complexity of dispatching `proposal`"] + #[doc = "See [`Pallet::execute`]."] execute { proposal: ::std::boxed::Box, #[codec(compact)] length_bound: ::core::primitive::u32, }, #[codec(index = 2)] - #[doc = "Add a new proposal to either be voted on or executed directly."] - #[doc = ""] - #[doc = "Requires the sender to be member."] - #[doc = ""] - #[doc = "`threshold` determines whether `proposal` is executed directly (`threshold < 2`)"] - #[doc = "or put up for voting."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(B + M + P1)` or `O(B + M + P2)` where:"] - #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] - #[doc = " - `M` is members-count (code- and governance-bounded)"] - #[doc = " - branching is influenced by `threshold` where:"] - #[doc = " - `P1` is proposal execution complexity (`threshold < 2`)"] - #[doc = " - `P2` is proposals-count (code-bounded) (`threshold >= 2`)"] + #[doc = "See [`Pallet::propose`]."] propose { #[codec(compact)] threshold: ::core::primitive::u32, @@ -42521,15 +38258,7 @@ pub mod api { length_bound: ::core::primitive::u32, }, #[codec(index = 3)] - #[doc = "Add an aye or nay vote for the sender to the given proposal."] - #[doc = ""] - #[doc = "Requires the sender to be a member."] - #[doc = ""] - #[doc = "Transaction fees will be waived if the member is voting on any particular proposal"] - #[doc = "for the first time and the call is successful. Subsequent vote changes will charge a"] - #[doc = "fee."] - #[doc = "## Complexity"] - #[doc = "- `O(M)` where `M` is members-count (code- and governance-bounded)"] + #[doc = "See [`Pallet::vote`]."] vote { proposal: ::subxt::utils::H256, #[codec(compact)] @@ -42537,42 +38266,10 @@ pub mod api { approve: ::core::primitive::bool, }, #[codec(index = 5)] - #[doc = "Disapprove a proposal, close, and remove it from the system, regardless of its current"] - #[doc = "state."] - #[doc = ""] - #[doc = "Must be called by the Root origin."] - #[doc = ""] - #[doc = "Parameters:"] - #[doc = "* `proposal_hash`: The hash of the proposal that should be disapproved."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "O(P) where P is the number of max proposals"] + #[doc = "See [`Pallet::disapprove_proposal`]."] disapprove_proposal { proposal_hash: ::subxt::utils::H256 }, #[codec(index = 6)] - #[doc = "Close a vote that is either approved, disapproved or whose voting period has ended."] - #[doc = ""] - #[doc = "May be called by any signed account in order to finish voting and close the proposal."] - #[doc = ""] - #[doc = "If called before the end of the voting period it will only close the vote if it is"] - #[doc = "has enough votes to be approved or disapproved."] - #[doc = ""] - #[doc = "If called after the end of the voting period abstentions are counted as rejections"] - #[doc = "unless there is a prime member set and the prime member cast an approval."] - #[doc = ""] - #[doc = "If the close operation completes successfully with disapproval, the transaction fee will"] - #[doc = "be waived. Otherwise execution of the approved operation will be charged to the caller."] - #[doc = ""] - #[doc = "+ `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed"] - #[doc = "proposal."] - #[doc = "+ `length_bound`: The upper bound for the length of the proposal in storage. Checked via"] - #[doc = "`storage::read` so it is `size_of::() == 4` larger than the pure length."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(B + M + P1 + P2)` where:"] - #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] - #[doc = " - `M` is members-count (code- and governance-bounded)"] - #[doc = " - `P1` is the complexity of `proposal` preimage."] - #[doc = " - `P2` is proposal-count (code-bounded)"] + #[doc = "See [`Pallet::close`]."] close { proposal_hash: ::subxt::utils::H256, #[codec(compact)] @@ -42592,7 +38289,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "Account is not a member"] @@ -42635,7 +38332,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error2 { #[codec(index = 0)] #[doc = "Account is not a member"] @@ -42678,7 +38375,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "A motion (given hash) has been proposed (by given account) with a threshold (given"] @@ -42737,7 +38434,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event2 { #[codec(index = 0)] #[doc = "A motion (given hash) has been proposed (by given account) with a threshold (given"] @@ -42816,8 +38513,8 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Votes<_0, _1> { - pub index: _1, - pub threshold: _1, + pub index: ::core::primitive::u32, + pub threshold: ::core::primitive::u32, pub ayes: ::std::vec::Vec<_0>, pub nays: ::std::vec::Vec<_0>, pub end: _1, @@ -42866,18 +38563,10 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Vote in a poll. If `vote.is_aye()`, the vote is to enact the proposal;"] - #[doc = "otherwise it is a vote to keep the status quo."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_."] - #[doc = ""] - #[doc = "- `poll_index`: The index of the poll to vote for."] - #[doc = "- `vote`: The vote configuration."] - #[doc = ""] - #[doc = "Weight: `O(R)` where R is the number of polls the voter has voted on."] + #[doc = "See [`Pallet::vote`]."] vote { #[codec(compact)] poll_index: ::core::primitive::u32, @@ -42886,29 +38575,7 @@ pub mod api { >, }, #[codec(index = 1)] - #[doc = "Delegate the voting power (with some given conviction) of the sending account for a"] - #[doc = "particular class of polls."] - #[doc = ""] - #[doc = "The balance delegated is locked for as long as it's delegated, and thereafter for the"] - #[doc = "time appropriate for the conviction's lock period."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_, and the signing account must either:"] - #[doc = " - be delegating already; or"] - #[doc = " - have no voting activity (if there is, then it will need to be removed/consolidated"] - #[doc = " through `reap_vote` or `unvote`)."] - #[doc = ""] - #[doc = "- `to`: The account whose voting the `target` account's voting power will follow."] - #[doc = "- `class`: The class of polls to delegate. To delegate multiple classes, multiple calls"] - #[doc = " to this function are required."] - #[doc = "- `conviction`: The conviction that will be attached to the delegated votes. When the"] - #[doc = " account is undelegated, the funds will be locked for the corresponding period."] - #[doc = "- `balance`: The amount of the account's balance to be used in delegating. This must not"] - #[doc = " be more than the account's current balance."] - #[doc = ""] - #[doc = "Emits `Delegated`."] - #[doc = ""] - #[doc = "Weight: `O(R)` where R is the number of polls the voter delegating to has"] - #[doc = " voted on. Weight is initially charged as if maximum votes, but is refunded later."] + #[doc = "See [`Pallet::delegate`]."] delegate { class: ::core::primitive::u16, to: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -42916,86 +38583,22 @@ pub mod api { balance: ::core::primitive::u128, }, #[codec(index = 2)] - #[doc = "Undelegate the voting power of the sending account for a particular class of polls."] - #[doc = ""] - #[doc = "Tokens may be unlocked following once an amount of time consistent with the lock period"] - #[doc = "of the conviction with which the delegation was issued has passed."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_ and the signing account must be"] - #[doc = "currently delegating."] - #[doc = ""] - #[doc = "- `class`: The class of polls to remove the delegation from."] - #[doc = ""] - #[doc = "Emits `Undelegated`."] - #[doc = ""] - #[doc = "Weight: `O(R)` where R is the number of polls the voter delegating to has"] - #[doc = " voted on. Weight is initially charged as if maximum votes, but is refunded later."] + #[doc = "See [`Pallet::undelegate`]."] undelegate { class: ::core::primitive::u16 }, #[codec(index = 3)] - #[doc = "Remove the lock caused by prior voting/delegating which has expired within a particular"] - #[doc = "class."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_."] - #[doc = ""] - #[doc = "- `class`: The class of polls to unlock."] - #[doc = "- `target`: The account to remove the lock on."] - #[doc = ""] - #[doc = "Weight: `O(R)` with R number of vote of target."] + #[doc = "See [`Pallet::unlock`]."] unlock { class: ::core::primitive::u16, target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, }, #[codec(index = 4)] - #[doc = "Remove a vote for a poll."] - #[doc = ""] - #[doc = "If:"] - #[doc = "- the poll was cancelled, or"] - #[doc = "- the poll is ongoing, or"] - #[doc = "- the poll has ended such that"] - #[doc = " - the vote of the account was in opposition to the result; or"] - #[doc = " - there was no conviction to the account's vote; or"] - #[doc = " - the account made a split vote"] - #[doc = "...then the vote is removed cleanly and a following call to `unlock` may result in more"] - #[doc = "funds being available."] - #[doc = ""] - #[doc = "If, however, the poll has ended and:"] - #[doc = "- it finished corresponding to the vote of the account, and"] - #[doc = "- the account made a standard vote with conviction, and"] - #[doc = "- the lock period of the conviction is not over"] - #[doc = "...then the lock will be aggregated into the overall account's lock, which may involve"] - #[doc = "*overlocking* (where the two locks are combined into a single lock that is the maximum"] - #[doc = "of both the amount locked and the time is it locked for)."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_, and the signer must have a vote"] - #[doc = "registered for poll `index`."] - #[doc = ""] - #[doc = "- `index`: The index of poll of the vote to be removed."] - #[doc = "- `class`: Optional parameter, if given it indicates the class of the poll. For polls"] - #[doc = " which have finished or are cancelled, this must be `Some`."] - #[doc = ""] - #[doc = "Weight: `O(R + log R)` where R is the number of polls that `target` has voted on."] - #[doc = " Weight is calculated for the maximum number of vote."] + #[doc = "See [`Pallet::remove_vote`]."] remove_vote { class: ::core::option::Option<::core::primitive::u16>, index: ::core::primitive::u32, }, #[codec(index = 5)] - #[doc = "Remove a vote for a poll."] - #[doc = ""] - #[doc = "If the `target` is equal to the signer, then this function is exactly equivalent to"] - #[doc = "`remove_vote`. If not equal to the signer, then the vote must have expired,"] - #[doc = "either because the poll was cancelled, because the voter lost the poll or"] - #[doc = "because the conviction period is over."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_."] - #[doc = ""] - #[doc = "- `target`: The account of the vote to be removed; this account must have voted for poll"] - #[doc = " `index`."] - #[doc = "- `index`: The index of poll of the vote to be removed."] - #[doc = "- `class`: The class of the poll."] - #[doc = ""] - #[doc = "Weight: `O(R + log R)` where R is the number of polls that `target` has voted on."] - #[doc = " Weight is calculated for the maximum number of vote."] + #[doc = "See [`Pallet::remove_other_vote`]."] remove_other_vote { target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, class: ::core::primitive::u16, @@ -43012,7 +38615,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "Poll is not ongoing."] @@ -43062,7 +38665,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "An account has delegated their vote to another account. \\[who, target\\]"] @@ -43253,18 +38856,10 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Propose a sensitive action to be taken."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_ and the sender must"] - #[doc = "have funds to cover the deposit."] - #[doc = ""] - #[doc = "- `proposal_hash`: The hash of the proposal preimage."] - #[doc = "- `value`: The amount of deposit (must be at least `MinimumDeposit`)."] - #[doc = ""] - #[doc = "Emits `Proposed`."] + #[doc = "See [`Pallet::propose`]."] propose { proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::polkadot_runtime::RuntimeCall, @@ -43273,24 +38868,13 @@ pub mod api { value: ::core::primitive::u128, }, #[codec(index = 1)] - #[doc = "Signals agreement with a particular proposal."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_ and the sender"] - #[doc = "must have funds to cover the deposit, equal to the original deposit."] - #[doc = ""] - #[doc = "- `proposal`: The index of the proposal to second."] + #[doc = "See [`Pallet::second`]."] second { #[codec(compact)] proposal: ::core::primitive::u32, }, #[codec(index = 2)] - #[doc = "Vote in a referendum. If `vote.is_aye()`, the vote is to enact the proposal;"] - #[doc = "otherwise it is a vote to keep the status quo."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_."] - #[doc = ""] - #[doc = "- `ref_index`: The index of the referendum to vote for."] - #[doc = "- `vote`: The vote configuration."] + #[doc = "See [`Pallet::vote`]."] vote { #[codec(compact)] ref_index: ::core::primitive::u32, @@ -43299,261 +38883,86 @@ pub mod api { >, }, #[codec(index = 3)] - #[doc = "Schedule an emergency cancellation of a referendum. Cannot happen twice to the same"] - #[doc = "referendum."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be `CancellationOrigin`."] - #[doc = ""] - #[doc = "-`ref_index`: The index of the referendum to cancel."] - #[doc = ""] - #[doc = "Weight: `O(1)`."] + #[doc = "See [`Pallet::emergency_cancel`]."] emergency_cancel { ref_index: ::core::primitive::u32 }, #[codec(index = 4)] - #[doc = "Schedule a referendum to be tabled once it is legal to schedule an external"] - #[doc = "referendum."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be `ExternalOrigin`."] - #[doc = ""] - #[doc = "- `proposal_hash`: The preimage hash of the proposal."] + #[doc = "See [`Pallet::external_propose`]."] external_propose { proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::polkadot_runtime::RuntimeCall, >, }, #[codec(index = 5)] - #[doc = "Schedule a majority-carries referendum to be tabled next once it is legal to schedule"] - #[doc = "an external referendum."] - #[doc = ""] - #[doc = "The dispatch of this call must be `ExternalMajorityOrigin`."] - #[doc = ""] - #[doc = "- `proposal_hash`: The preimage hash of the proposal."] - #[doc = ""] - #[doc = "Unlike `external_propose`, blacklisting has no effect on this and it may replace a"] - #[doc = "pre-scheduled `external_propose` call."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] + #[doc = "See [`Pallet::external_propose_majority`]."] external_propose_majority { proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::polkadot_runtime::RuntimeCall, >, }, #[codec(index = 6)] - #[doc = "Schedule a negative-turnout-bias referendum to be tabled next once it is legal to"] - #[doc = "schedule an external referendum."] - #[doc = ""] - #[doc = "The dispatch of this call must be `ExternalDefaultOrigin`."] - #[doc = ""] - #[doc = "- `proposal_hash`: The preimage hash of the proposal."] - #[doc = ""] - #[doc = "Unlike `external_propose`, blacklisting has no effect on this and it may replace a"] - #[doc = "pre-scheduled `external_propose` call."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] + #[doc = "See [`Pallet::external_propose_default`]."] external_propose_default { proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::polkadot_runtime::RuntimeCall, >, }, #[codec(index = 7)] - #[doc = "Schedule the currently externally-proposed majority-carries referendum to be tabled"] - #[doc = "immediately. If there is no externally-proposed referendum currently, or if there is one"] - #[doc = "but it is not a majority-carries referendum then it fails."] - #[doc = ""] - #[doc = "The dispatch of this call must be `FastTrackOrigin`."] - #[doc = ""] - #[doc = "- `proposal_hash`: The hash of the current external proposal."] - #[doc = "- `voting_period`: The period that is allowed for voting on this proposal. Increased to"] - #[doc = "\tMust be always greater than zero."] - #[doc = "\tFor `FastTrackOrigin` must be equal or greater than `FastTrackVotingPeriod`."] - #[doc = "- `delay`: The number of block after voting has ended in approval and this should be"] - #[doc = " enacted. This doesn't have a minimum amount."] - #[doc = ""] - #[doc = "Emits `Started`."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] + #[doc = "See [`Pallet::fast_track`]."] fast_track { proposal_hash: ::subxt::utils::H256, voting_period: ::core::primitive::u32, delay: ::core::primitive::u32, }, #[codec(index = 8)] - #[doc = "Veto and blacklist the external proposal hash."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be `VetoOrigin`."] - #[doc = ""] - #[doc = "- `proposal_hash`: The preimage hash of the proposal to veto and blacklist."] - #[doc = ""] - #[doc = "Emits `Vetoed`."] - #[doc = ""] - #[doc = "Weight: `O(V + log(V))` where V is number of `existing vetoers`"] + #[doc = "See [`Pallet::veto_external`]."] veto_external { proposal_hash: ::subxt::utils::H256 }, #[codec(index = 9)] - #[doc = "Remove a referendum."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Root_."] - #[doc = ""] - #[doc = "- `ref_index`: The index of the referendum to cancel."] - #[doc = ""] - #[doc = "# Weight: `O(1)`."] + #[doc = "See [`Pallet::cancel_referendum`]."] cancel_referendum { #[codec(compact)] ref_index: ::core::primitive::u32, }, #[codec(index = 10)] - #[doc = "Delegate the voting power (with some given conviction) of the sending account."] - #[doc = ""] - #[doc = "The balance delegated is locked for as long as it's delegated, and thereafter for the"] - #[doc = "time appropriate for the conviction's lock period."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_, and the signing account must either:"] - #[doc = " - be delegating already; or"] - #[doc = " - have no voting activity (if there is, then it will need to be removed/consolidated"] - #[doc = " through `reap_vote` or `unvote`)."] - #[doc = ""] - #[doc = "- `to`: The account whose voting the `target` account's voting power will follow."] - #[doc = "- `conviction`: The conviction that will be attached to the delegated votes. When the"] - #[doc = " account is undelegated, the funds will be locked for the corresponding period."] - #[doc = "- `balance`: The amount of the account's balance to be used in delegating. This must not"] - #[doc = " be more than the account's current balance."] - #[doc = ""] - #[doc = "Emits `Delegated`."] - #[doc = ""] - #[doc = "Weight: `O(R)` where R is the number of referendums the voter delegating to has"] - #[doc = " voted on. Weight is charged as if maximum votes."] + #[doc = "See [`Pallet::delegate`]."] delegate { to: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, conviction: runtime_types::pallet_democracy::conviction::Conviction, balance: ::core::primitive::u128, }, #[codec(index = 11)] - #[doc = "Undelegate the voting power of the sending account."] - #[doc = ""] - #[doc = "Tokens may be unlocked following once an amount of time consistent with the lock period"] - #[doc = "of the conviction with which the delegation was issued."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_ and the signing account must be"] - #[doc = "currently delegating."] - #[doc = ""] - #[doc = "Emits `Undelegated`."] - #[doc = ""] - #[doc = "Weight: `O(R)` where R is the number of referendums the voter delegating to has"] - #[doc = " voted on. Weight is charged as if maximum votes."] + #[doc = "See [`Pallet::undelegate`]."] undelegate, #[codec(index = 12)] - #[doc = "Clears all public proposals."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Root_."] - #[doc = ""] - #[doc = "Weight: `O(1)`."] + #[doc = "See [`Pallet::clear_public_proposals`]."] clear_public_proposals, #[codec(index = 13)] - #[doc = "Unlock tokens that have an expired lock."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_."] - #[doc = ""] - #[doc = "- `target`: The account to remove the lock on."] - #[doc = ""] - #[doc = "Weight: `O(R)` with R number of vote of target."] + #[doc = "See [`Pallet::unlock`]."] unlock { target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, }, #[codec(index = 14)] - #[doc = "Remove a vote for a referendum."] - #[doc = ""] - #[doc = "If:"] - #[doc = "- the referendum was cancelled, or"] - #[doc = "- the referendum is ongoing, or"] - #[doc = "- the referendum has ended such that"] - #[doc = " - the vote of the account was in opposition to the result; or"] - #[doc = " - there was no conviction to the account's vote; or"] - #[doc = " - the account made a split vote"] - #[doc = "...then the vote is removed cleanly and a following call to `unlock` may result in more"] - #[doc = "funds being available."] - #[doc = ""] - #[doc = "If, however, the referendum has ended and:"] - #[doc = "- it finished corresponding to the vote of the account, and"] - #[doc = "- the account made a standard vote with conviction, and"] - #[doc = "- the lock period of the conviction is not over"] - #[doc = "...then the lock will be aggregated into the overall account's lock, which may involve"] - #[doc = "*overlocking* (where the two locks are combined into a single lock that is the maximum"] - #[doc = "of both the amount locked and the time is it locked for)."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_, and the signer must have a vote"] - #[doc = "registered for referendum `index`."] - #[doc = ""] - #[doc = "- `index`: The index of referendum of the vote to be removed."] - #[doc = ""] - #[doc = "Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on."] - #[doc = " Weight is calculated for the maximum number of vote."] + #[doc = "See [`Pallet::remove_vote`]."] remove_vote { index: ::core::primitive::u32 }, #[codec(index = 15)] - #[doc = "Remove a vote for a referendum."] - #[doc = ""] - #[doc = "If the `target` is equal to the signer, then this function is exactly equivalent to"] - #[doc = "`remove_vote`. If not equal to the signer, then the vote must have expired,"] - #[doc = "either because the referendum was cancelled, because the voter lost the referendum or"] - #[doc = "because the conviction period is over."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_."] - #[doc = ""] - #[doc = "- `target`: The account of the vote to be removed; this account must have voted for"] - #[doc = " referendum `index`."] - #[doc = "- `index`: The index of referendum of the vote to be removed."] - #[doc = ""] - #[doc = "Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on."] - #[doc = " Weight is calculated for the maximum number of vote."] + #[doc = "See [`Pallet::remove_other_vote`]."] remove_other_vote { target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, index: ::core::primitive::u32, }, #[codec(index = 16)] - #[doc = "Permanently place a proposal into the blacklist. This prevents it from ever being"] - #[doc = "proposed again."] - #[doc = ""] - #[doc = "If called on a queued public or external proposal, then this will result in it being"] - #[doc = "removed. If the `ref_index` supplied is an active referendum with the proposal hash,"] - #[doc = "then it will be cancelled."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be `BlacklistOrigin`."] - #[doc = ""] - #[doc = "- `proposal_hash`: The proposal hash to blacklist permanently."] - #[doc = "- `ref_index`: An ongoing referendum whose hash is `proposal_hash`, which will be"] - #[doc = "cancelled."] - #[doc = ""] - #[doc = "Weight: `O(p)` (though as this is an high-privilege dispatch, we assume it has a"] - #[doc = " reasonable value)."] + #[doc = "See [`Pallet::blacklist`]."] blacklist { proposal_hash: ::subxt::utils::H256, maybe_ref_index: ::core::option::Option<::core::primitive::u32>, }, #[codec(index = 17)] - #[doc = "Remove a proposal."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be `CancelProposalOrigin`."] - #[doc = ""] - #[doc = "- `prop_index`: The index of the proposal to cancel."] - #[doc = ""] - #[doc = "Weight: `O(p)` where `p = PublicProps::::decode_len()`"] + #[doc = "See [`Pallet::cancel_proposal`]."] cancel_proposal { #[codec(compact)] prop_index: ::core::primitive::u32, }, #[codec(index = 18)] - #[doc = "Set or clear a metadata of a proposal or a referendum."] - #[doc = ""] - #[doc = "Parameters:"] - #[doc = "- `origin`: Must correspond to the `MetadataOwner`."] - #[doc = " - `ExternalOrigin` for an external proposal with the `SuperMajorityApprove`"] - #[doc = " threshold."] - #[doc = " - `ExternalDefaultOrigin` for an external proposal with the `SuperMajorityAgainst`"] - #[doc = " threshold."] - #[doc = " - `ExternalMajorityOrigin` for an external proposal with the `SimpleMajority`"] - #[doc = " threshold."] - #[doc = " - `Signed` by a creator for a public proposal."] - #[doc = " - `Signed` to clear a metadata for a finished referendum."] - #[doc = " - `Root` to set a metadata for an ongoing referendum."] - #[doc = "- `owner`: an identifier of a metadata owner."] - #[doc = "- `maybe_hash`: The hash of an on-chain stored preimage. `None` to clear a metadata."] + #[doc = "See [`Pallet::set_metadata`]."] set_metadata { owner: runtime_types::pallet_democracy::types::MetadataOwner, maybe_hash: ::core::option::Option<::subxt::utils::H256>, @@ -43569,7 +38978,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "Value too low"] @@ -43655,7 +39064,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "A motion has been proposed by a public account."] @@ -43943,9 +39352,9 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { - # [codec (index = 0)] # [doc = "Submit a solution for the unsigned phase."] # [doc = ""] # [doc = "The dispatch origin fo this call must be __none__."] # [doc = ""] # [doc = "This submission is checked on the fly. Moreover, this unsigned solution is only"] # [doc = "validated when submitted to the pool from the **local** node. Effectively, this means"] # [doc = "that only active validators can submit this transaction when authoring a block (similar"] # [doc = "to an inherent)."] # [doc = ""] # [doc = "To prevent any incorrect solution (and thus wasted time/weight), this transaction will"] # [doc = "panic if the solution submitted by the validator is invalid in any way, effectively"] # [doc = "putting their authoring reward at risk."] # [doc = ""] # [doc = "No deposit or reward is associated with this submission."] submit_unsigned { raw_solution : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: polkadot_runtime :: NposCompactSolution16 > > , witness : runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize , } , # [codec (index = 1)] # [doc = "Set a new value for `MinimumUntrustedScore`."] # [doc = ""] # [doc = "Dispatch origin must be aligned with `T::ForceOrigin`."] # [doc = ""] # [doc = "This check can be turned off by setting the value to `None`."] set_minimum_untrusted_score { maybe_next_score : :: core :: option :: Option < runtime_types :: sp_npos_elections :: ElectionScore > , } , # [codec (index = 2)] # [doc = "Set a solution in the queue, to be handed out to the client of this pallet in the next"] # [doc = "call to `ElectionProvider::elect`."] # [doc = ""] # [doc = "This can only be set by `T::ForceOrigin`, and only when the phase is `Emergency`."] # [doc = ""] # [doc = "The solution is not checked for any feasibility and is assumed to be trustworthy, as any"] # [doc = "feasibility check itself can in principle cause the election process to fail (due to"] # [doc = "memory/weight constrains)."] set_emergency_election_result { supports : :: std :: vec :: Vec < (:: subxt :: utils :: AccountId32 , runtime_types :: sp_npos_elections :: Support < :: subxt :: utils :: AccountId32 > ,) > , } , # [codec (index = 3)] # [doc = "Submit a solution for the signed phase."] # [doc = ""] # [doc = "The dispatch origin fo this call must be __signed__."] # [doc = ""] # [doc = "The solution is potentially queued, based on the claimed score and processed at the end"] # [doc = "of the signed phase."] # [doc = ""] # [doc = "A deposit is reserved and recorded for the solution. Based on the outcome, the solution"] # [doc = "might be rewarded, slashed, or get all or a part of the deposit back."] submit { raw_solution : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: polkadot_runtime :: NposCompactSolution16 > > , } , # [codec (index = 4)] # [doc = "Trigger the governance fallback."] # [doc = ""] # [doc = "This can only be called when [`Phase::Emergency`] is enabled, as an alternative to"] # [doc = "calling [`Call::set_emergency_election_result`]."] governance_fallback { maybe_max_voters : :: core :: option :: Option < :: core :: primitive :: u32 > , maybe_max_targets : :: core :: option :: Option < :: core :: primitive :: u32 > , } , } + # [codec (index = 0)] # [doc = "See [`Pallet::submit_unsigned`]."] submit_unsigned { raw_solution : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: polkadot_runtime :: NposCompactSolution16 > > , witness : runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize , } , # [codec (index = 1)] # [doc = "See [`Pallet::set_minimum_untrusted_score`]."] set_minimum_untrusted_score { maybe_next_score : :: core :: option :: Option < runtime_types :: sp_npos_elections :: ElectionScore > , } , # [codec (index = 2)] # [doc = "See [`Pallet::set_emergency_election_result`]."] set_emergency_election_result { supports : :: std :: vec :: Vec < (:: subxt :: utils :: AccountId32 , runtime_types :: sp_npos_elections :: Support < :: subxt :: utils :: AccountId32 > ,) > , } , # [codec (index = 3)] # [doc = "See [`Pallet::submit`]."] submit { raw_solution : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: polkadot_runtime :: NposCompactSolution16 > > , } , # [codec (index = 4)] # [doc = "See [`Pallet::governance_fallback`]."] governance_fallback { maybe_max_voters : :: core :: option :: Option < :: core :: primitive :: u32 > , maybe_max_targets : :: core :: option :: Option < :: core :: primitive :: u32 > , } , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -44011,7 +39420,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "A solution was stored with the given compute."] @@ -44204,116 +39613,38 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Vote for a set of candidates for the upcoming round of election. This can be called to"] - #[doc = "set the initial votes, or update already existing votes."] - #[doc = ""] - #[doc = "Upon initial voting, `value` units of `who`'s balance is locked and a deposit amount is"] - #[doc = "reserved. The deposit is based on the number of votes and can be updated over time."] - #[doc = ""] - #[doc = "The `votes` should:"] - #[doc = " - not be empty."] - #[doc = " - be less than the number of possible candidates. Note that all current members and"] - #[doc = " runners-up are also automatically candidates for the next round."] - #[doc = ""] - #[doc = "If `value` is more than `who`'s free balance, then the maximum of the two is used."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed."] - #[doc = ""] - #[doc = "### Warning"] - #[doc = ""] - #[doc = "It is the responsibility of the caller to **NOT** place all of their balance into the"] - #[doc = "lock and keep some for further operations."] + #[doc = "See [`Pallet::vote`]."] vote { votes: ::std::vec::Vec<::subxt::utils::AccountId32>, #[codec(compact)] value: ::core::primitive::u128, }, #[codec(index = 1)] - #[doc = "Remove `origin` as a voter."] - #[doc = ""] - #[doc = "This removes the lock and returns the deposit."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed and be a voter."] + #[doc = "See [`Pallet::remove_voter`]."] remove_voter, #[codec(index = 2)] - #[doc = "Submit oneself for candidacy. A fixed amount of deposit is recorded."] - #[doc = ""] - #[doc = "All candidates are wiped at the end of the term. They either become a member/runner-up,"] - #[doc = "or leave the system while their deposit is slashed."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed."] - #[doc = ""] - #[doc = "### Warning"] - #[doc = ""] - #[doc = "Even if a candidate ends up being a member, they must call [`Call::renounce_candidacy`]"] - #[doc = "to get their deposit back. Losing the spot in an election will always lead to a slash."] - #[doc = ""] - #[doc = "The number of current candidates must be provided as witness data."] - #[doc = "## Complexity"] - #[doc = "O(C + log(C)) where C is candidate_count."] + #[doc = "See [`Pallet::submit_candidacy`]."] submit_candidacy { #[codec(compact)] candidate_count: ::core::primitive::u32, }, #[codec(index = 3)] - #[doc = "Renounce one's intention to be a candidate for the next election round. 3 potential"] - #[doc = "outcomes exist:"] - #[doc = ""] - #[doc = "- `origin` is a candidate and not elected in any set. In this case, the deposit is"] - #[doc = " unreserved, returned and origin is removed as a candidate."] - #[doc = "- `origin` is a current runner-up. In this case, the deposit is unreserved, returned and"] - #[doc = " origin is removed as a runner-up."] - #[doc = "- `origin` is a current member. In this case, the deposit is unreserved and origin is"] - #[doc = " removed as a member, consequently not being a candidate for the next round anymore."] - #[doc = " Similar to [`remove_member`](Self::remove_member), if replacement runners exists, they"] - #[doc = " are immediately used. If the prime is renouncing, then no prime will exist until the"] - #[doc = " next round."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed, and have one of the above roles."] - #[doc = "The type of renouncing must be provided as witness data."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = " - Renouncing::Candidate(count): O(count + log(count))"] - #[doc = " - Renouncing::Member: O(1)"] - #[doc = " - Renouncing::RunnerUp: O(1)"] + #[doc = "See [`Pallet::renounce_candidacy`]."] renounce_candidacy { renouncing: runtime_types::pallet_elections_phragmen::Renouncing, }, #[codec(index = 4)] - #[doc = "Remove a particular member from the set. This is effective immediately and the bond of"] - #[doc = "the outgoing member is slashed."] - #[doc = ""] - #[doc = "If a runner-up is available, then the best runner-up will be removed and replaces the"] - #[doc = "outgoing member. Otherwise, if `rerun_election` is `true`, a new phragmen election is"] - #[doc = "started, else, nothing happens."] - #[doc = ""] - #[doc = "If `slash_bond` is set to true, the bond of the member being removed is slashed. Else,"] - #[doc = "it is returned."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be root."] - #[doc = ""] - #[doc = "Note that this does not affect the designated block number of the next election."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- Check details of remove_and_replace_member() and do_phragmen()."] + #[doc = "See [`Pallet::remove_member`]."] remove_member { who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, slash_bond: ::core::primitive::bool, rerun_election: ::core::primitive::bool, }, #[codec(index = 5)] - #[doc = "Clean all voters who are defunct (i.e. they do not serve any purpose at all). The"] - #[doc = "deposit of the removed voters are returned."] - #[doc = ""] - #[doc = "This is an root function to be used only for cleaning the state."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be root."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- Check is_defunct_voter() details."] + #[doc = "See [`Pallet::clean_defunct_voters`]."] clean_defunct_voters { num_voters: ::core::primitive::u32, num_defunct: ::core::primitive::u32, @@ -44329,7 +39660,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "Cannot vote when no candidates or members exist."] @@ -44393,7 +39724,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "A new term with new_members. This indicates that enough candidates existed to run"] @@ -44501,41 +39832,16 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Register oneself for fast-unstake."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed by the controller account, similar to"] - #[doc = "`staking::unbond`."] - #[doc = ""] - #[doc = "The stash associated with the origin must have no ongoing unlocking chunks. If"] - #[doc = "successful, this will fully unbond and chill the stash. Then, it will enqueue the stash"] - #[doc = "to be checked in further blocks."] - #[doc = ""] - #[doc = "If by the time this is called, the stash is actually eligible for fast-unstake, then"] - #[doc = "they are guaranteed to remain eligible, because the call will chill them as well."] - #[doc = ""] - #[doc = "If the check works, the entire staking data is removed, i.e. the stash is fully"] - #[doc = "unstaked."] - #[doc = ""] - #[doc = "If the check fails, the stash remains chilled and waiting for being unbonded as in with"] - #[doc = "the normal staking system, but they lose part of their unbonding chunks due to consuming"] - #[doc = "the chain's resources."] + #[doc = "See [`Pallet::register_fast_unstake`]."] register_fast_unstake, #[codec(index = 1)] - #[doc = "Deregister oneself from the fast-unstake."] - #[doc = ""] - #[doc = "This is useful if one is registered, they are still waiting, and they change their mind."] - #[doc = ""] - #[doc = "Note that the associated stash is still fully unbonded and chilled as a consequence of"] - #[doc = "calling `register_fast_unstake`. This should probably be followed by a call to"] - #[doc = "`Staking::rebond`."] + #[doc = "See [`Pallet::deregister`]."] deregister, #[codec(index = 2)] - #[doc = "Control the operation of this pallet."] - #[doc = ""] - #[doc = "Dispatch origin must be signed by the [`Config::ControlOrigin`]."] + #[doc = "See [`Pallet::control`]."] control { eras_to_check: ::core::primitive::u32, }, @@ -44550,7 +39856,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "The provided Controller account was not found."] @@ -44583,7 +39889,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The events of this pallet."] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "A staker was unstaked."] @@ -44599,19 +39905,19 @@ pub mod api { amount: ::core::primitive::u128, }, #[codec(index = 2)] - #[doc = "An internal error happened. Operations will be paused now."] - InternalError, - #[codec(index = 3)] #[doc = "A batch was partially checked for the given eras, but the process did not finish."] BatchChecked { eras: ::std::vec::Vec<::core::primitive::u32>, }, - #[codec(index = 4)] + #[codec(index = 3)] #[doc = "A batch of a given size was terminated."] #[doc = ""] #[doc = "This is always follows by a number of `Unstaked` or `Slashed` events, marking the end"] #[doc = "of the batch. A new batch will be created upon next block."] BatchFinished { size: ::core::primitive::u32 }, + #[codec(index = 4)] + #[doc = "An internal error happened. Operations will be paused now."] + InternalError, } } pub mod types { @@ -44651,13 +39957,10 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Report voter equivocation/misbehavior. This method will verify the"] - #[doc = "equivocation proof and validate the given key ownership proof"] - #[doc = "against the extracted offender. If both are valid, the offence"] - #[doc = "will be reported."] + #[doc = "See [`Pallet::report_equivocation`]."] report_equivocation { equivocation_proof: ::std::boxed::Box< runtime_types::sp_consensus_grandpa::EquivocationProof< @@ -44668,15 +39971,7 @@ pub mod api { key_owner_proof: runtime_types::sp_session::MembershipProof, }, #[codec(index = 1)] - #[doc = "Report voter equivocation/misbehavior. This method will verify the"] - #[doc = "equivocation proof and validate the given key ownership proof"] - #[doc = "against the extracted offender. If both are valid, the offence"] - #[doc = "will be reported."] - #[doc = ""] - #[doc = "This extrinsic must be called unsigned and it is expected that only"] - #[doc = "block authors will call it (validated in `ValidateUnsigned`), as such"] - #[doc = "if the block author is defined it will be defined as the equivocation"] - #[doc = "reporter."] + #[doc = "See [`Pallet::report_equivocation_unsigned`]."] report_equivocation_unsigned { equivocation_proof: ::std::boxed::Box< runtime_types::sp_consensus_grandpa::EquivocationProof< @@ -44687,18 +39982,7 @@ pub mod api { key_owner_proof: runtime_types::sp_session::MembershipProof, }, #[codec(index = 2)] - #[doc = "Note that the current authority set of the GRANDPA finality gadget has stalled."] - #[doc = ""] - #[doc = "This will trigger a forced authority set change at the beginning of the next session, to"] - #[doc = "be enacted `delay` blocks after that. The `delay` should be high enough to safely assume"] - #[doc = "that the block signalling the forced change will not be re-orged e.g. 1000 blocks."] - #[doc = "The block production rate (which may be slowed down because of finality lagging) should"] - #[doc = "be taken into account when choosing the `delay`. The GRANDPA voters based on the new"] - #[doc = "authority will start voting on top of `best_finalized_block_number` for new finalized"] - #[doc = "blocks. `best_finalized_block_number` should be the highest of the latest finalized"] - #[doc = "block of all validators of the new authority set."] - #[doc = ""] - #[doc = "Only callable by root."] + #[doc = "See [`Pallet::note_stalled`]."] note_stalled { delay: ::core::primitive::u32, best_finalized_block_number: ::core::primitive::u32, @@ -44714,7 +39998,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "Attempt to signal GRANDPA pause when the authority set isn't live"] @@ -44750,7 +40034,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "New authority set has been applied."] @@ -44826,54 +40110,18 @@ pub mod api { #[doc = "Identity pallet declaration."] pub enum Call { #[codec(index = 0)] - #[doc = "Add a registrar to the system."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `T::RegistrarOrigin`."] - #[doc = ""] - #[doc = "- `account`: the account of the registrar."] - #[doc = ""] - #[doc = "Emits `RegistrarAdded` if successful."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(R)` where `R` registrar-count (governance-bounded and code-bounded)."] + #[doc = "See [`Pallet::add_registrar`]."] add_registrar { account: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, }, #[codec(index = 1)] - #[doc = "Set an account's identity information and reserve the appropriate deposit."] - #[doc = ""] - #[doc = "If the account already has identity information, the deposit is taken as part payment"] - #[doc = "for the new deposit."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "- `info`: The identity information."] - #[doc = ""] - #[doc = "Emits `IdentitySet` if successful."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(X + X' + R)`"] - #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)"] - #[doc = " - where `R` judgements-count (registrar-count-bounded)"] + #[doc = "See [`Pallet::set_identity`]."] set_identity { info: ::std::boxed::Box, }, #[codec(index = 2)] - #[doc = "Set the sub-accounts of the sender."] - #[doc = ""] - #[doc = "Payment: Any aggregate balance reserved by previous `set_subs` calls will be returned"] - #[doc = "and an amount `SubAccountDeposit` will be reserved for each item in `subs`."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] - #[doc = "identity."] - #[doc = ""] - #[doc = "- `subs`: The identity's (new) sub-accounts."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(P + S)`"] - #[doc = " - where `P` old-subs-count (hard- and deposit-bounded)."] - #[doc = " - where `S` subs-count (hard- and deposit-bounded)."] + #[doc = "See [`Pallet::set_subs`]."] set_subs { subs: ::std::vec::Vec<( ::subxt::utils::AccountId32, @@ -44881,43 +40129,10 @@ pub mod api { )>, }, #[codec(index = 3)] - #[doc = "Clear an account's identity info and all sub-accounts and return all deposits."] - #[doc = ""] - #[doc = "Payment: All reserved balances on the account are returned."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] - #[doc = "identity."] - #[doc = ""] - #[doc = "Emits `IdentityCleared` if successful."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(R + S + X)`"] - #[doc = " - where `R` registrar-count (governance-bounded)."] - #[doc = " - where `S` subs-count (hard- and deposit-bounded)."] - #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] + #[doc = "See [`Pallet::clear_identity`]."] clear_identity, #[codec(index = 4)] - #[doc = "Request a judgement from a registrar."] - #[doc = ""] - #[doc = "Payment: At most `max_fee` will be reserved for payment to the registrar if judgement"] - #[doc = "given."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a"] - #[doc = "registered identity."] - #[doc = ""] - #[doc = "- `reg_index`: The index of the registrar whose judgement is requested."] - #[doc = "- `max_fee`: The maximum fee that may be paid. This should just be auto-populated as:"] - #[doc = ""] - #[doc = "```nocompile"] - #[doc = "Self::registrars().get(reg_index).unwrap().fee"] - #[doc = "```"] - #[doc = ""] - #[doc = "Emits `JudgementRequested` if successful."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(R + X)`."] - #[doc = " - where `R` registrar-count (governance-bounded)."] - #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] + #[doc = "See [`Pallet::request_judgement`]."] request_judgement { #[codec(compact)] reg_index: ::core::primitive::u32, @@ -44925,34 +40140,10 @@ pub mod api { max_fee: ::core::primitive::u128, }, #[codec(index = 5)] - #[doc = "Cancel a previous request."] - #[doc = ""] - #[doc = "Payment: A previously reserved deposit is returned on success."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a"] - #[doc = "registered identity."] - #[doc = ""] - #[doc = "- `reg_index`: The index of the registrar whose judgement is no longer requested."] - #[doc = ""] - #[doc = "Emits `JudgementUnrequested` if successful."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(R + X)`."] - #[doc = " - where `R` registrar-count (governance-bounded)."] - #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] + #[doc = "See [`Pallet::cancel_request`]."] cancel_request { reg_index: ::core::primitive::u32 }, #[codec(index = 6)] - #[doc = "Set the fee required for a judgement to be requested from a registrar."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] - #[doc = "of the registrar whose index is `index`."] - #[doc = ""] - #[doc = "- `index`: the index of the registrar whose fee is to be set."] - #[doc = "- `fee`: the new fee."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(R)`."] - #[doc = " - where `R` registrar-count (governance-bounded)."] + #[doc = "See [`Pallet::set_fee`]."] set_fee { #[codec(compact)] index: ::core::primitive::u32, @@ -44960,34 +40151,14 @@ pub mod api { fee: ::core::primitive::u128, }, #[codec(index = 7)] - #[doc = "Change the account associated with a registrar."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] - #[doc = "of the registrar whose index is `index`."] - #[doc = ""] - #[doc = "- `index`: the index of the registrar whose fee is to be set."] - #[doc = "- `new`: the new account ID."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(R)`."] - #[doc = " - where `R` registrar-count (governance-bounded)."] + #[doc = "See [`Pallet::set_account_id`]."] set_account_id { #[codec(compact)] index: ::core::primitive::u32, new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, }, #[codec(index = 8)] - #[doc = "Set the field information for a registrar."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] - #[doc = "of the registrar whose index is `index`."] - #[doc = ""] - #[doc = "- `index`: the index of the registrar whose fee is to be set."] - #[doc = "- `fields`: the fields that the registrar concerns themselves with."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(R)`."] - #[doc = " - where `R` registrar-count (governance-bounded)."] + #[doc = "See [`Pallet::set_fields`]."] set_fields { #[codec(compact)] index: ::core::primitive::u32, @@ -44996,23 +40167,7 @@ pub mod api { >, }, #[codec(index = 9)] - #[doc = "Provide a judgement for an account's identity."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] - #[doc = "of the registrar whose index is `reg_index`."] - #[doc = ""] - #[doc = "- `reg_index`: the index of the registrar whose judgement is being made."] - #[doc = "- `target`: the account whose identity the judgement is upon. This must be an account"] - #[doc = " with a registered identity."] - #[doc = "- `judgement`: the judgement of the registrar of index `reg_index` about `target`."] - #[doc = "- `identity`: The hash of the [`IdentityInfo`] for that the judgement is provided."] - #[doc = ""] - #[doc = "Emits `JudgementGiven` if successful."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(R + X)`."] - #[doc = " - where `R` registrar-count (governance-bounded)."] - #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] + #[doc = "See [`Pallet::provide_judgement`]."] provide_judgement { #[codec(compact)] reg_index: ::core::primitive::u32, @@ -45023,70 +40178,29 @@ pub mod api { identity: ::subxt::utils::H256, }, #[codec(index = 10)] - #[doc = "Remove an account's identity and sub-account information and slash the deposits."] - #[doc = ""] - #[doc = "Payment: Reserved balances from `set_subs` and `set_identity` are slashed and handled by"] - #[doc = "`Slash`. Verification request deposits are not returned; they should be cancelled"] - #[doc = "manually using `cancel_request`."] - #[doc = ""] - #[doc = "The dispatch origin for this call must match `T::ForceOrigin`."] - #[doc = ""] - #[doc = "- `target`: the account whose identity the judgement is upon. This must be an account"] - #[doc = " with a registered identity."] - #[doc = ""] - #[doc = "Emits `IdentityKilled` if successful."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(R + S + X)`"] - #[doc = " - where `R` registrar-count (governance-bounded)."] - #[doc = " - where `S` subs-count (hard- and deposit-bounded)."] - #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] + #[doc = "See [`Pallet::kill_identity`]."] kill_identity { target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, }, #[codec(index = 11)] - #[doc = "Add the given account to the sender's subs."] - #[doc = ""] - #[doc = "Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated"] - #[doc = "to the sender."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] - #[doc = "sub identity of `sub`."] + #[doc = "See [`Pallet::add_sub`]."] add_sub { sub: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, data: runtime_types::pallet_identity::types::Data, }, #[codec(index = 12)] - #[doc = "Alter the associated name of the given sub-account."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] - #[doc = "sub identity of `sub`."] + #[doc = "See [`Pallet::rename_sub`]."] rename_sub { sub: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, data: runtime_types::pallet_identity::types::Data, }, #[codec(index = 13)] - #[doc = "Remove the given account from the sender's subs."] - #[doc = ""] - #[doc = "Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated"] - #[doc = "to the sender."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] - #[doc = "sub identity of `sub`."] + #[doc = "See [`Pallet::remove_sub`]."] remove_sub { sub: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, }, #[codec(index = 14)] - #[doc = "Remove the sender as a sub-account."] - #[doc = ""] - #[doc = "Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated"] - #[doc = "to the sender (*not* the original depositor)."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] - #[doc = "super-identity."] - #[doc = ""] - #[doc = "NOTE: This should not normally be used, but is provided in the case that the non-"] - #[doc = "controller of an account is maliciously registered as a sub-account."] + #[doc = "See [`Pallet::quit_sub`]."] quit_sub, } #[derive( @@ -45099,7 +40213,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "Too many subs-accounts."] @@ -45166,7 +40280,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "A name was set or reset (which will remove all judgements)."] @@ -45464,14 +40578,10 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "## Complexity:"] - #[doc = "- `O(K + E)` where K is length of `Keys` (heartbeat.validators_len) and E is length of"] - #[doc = " `heartbeat.network_state.external_address`"] - #[doc = " - `O(K)`: decoding of length `K`"] - #[doc = " - `O(E)`: decoding/encoding of length `E`"] + #[doc = "See [`Pallet::heartbeat`]."] heartbeat { heartbeat: runtime_types::pallet_im_online::Heartbeat<::core::primitive::u32>, @@ -45488,7 +40598,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "Non existent public key."] @@ -45507,7 +40617,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "A new heartbeat was received from `AuthorityId`."] @@ -45568,33 +40678,11 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct BoundedOpaqueNetworkState { - pub peer_id: runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec< - ::core::primitive::u8, - >, - pub external_addresses: - runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec< - runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec< - ::core::primitive::u8, - >, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub 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 session_index: ::core::primitive::u32, + pub authority_index: ::core::primitive::u32, + pub validators_len: ::core::primitive::u32, } } pub mod pallet_indices { @@ -45611,85 +40699,29 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Assign an previously unassigned index."] - #[doc = ""] - #[doc = "Payment: `Deposit` is reserved from the sender account."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "- `index`: the index to be claimed. This must not be in use."] - #[doc = ""] - #[doc = "Emits `IndexAssigned` if successful."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(1)`."] + #[doc = "See [`Pallet::claim`]."] claim { index: ::core::primitive::u32 }, #[codec(index = 1)] - #[doc = "Assign an index already owned by the sender to another account. The balance reservation"] - #[doc = "is effectively transferred to the new account."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "- `index`: the index to be re-assigned. This must be owned by the sender."] - #[doc = "- `new`: the new owner of the index. This function is a no-op if it is equal to sender."] - #[doc = ""] - #[doc = "Emits `IndexAssigned` if successful."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(1)`."] + #[doc = "See [`Pallet::transfer`]."] transfer { new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, index: ::core::primitive::u32, }, #[codec(index = 2)] - #[doc = "Free up an index owned by the sender."] - #[doc = ""] - #[doc = "Payment: Any previous deposit placed for the index is unreserved in the sender account."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must own the index."] - #[doc = ""] - #[doc = "- `index`: the index to be freed. This must be owned by the sender."] - #[doc = ""] - #[doc = "Emits `IndexFreed` if successful."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(1)`."] + #[doc = "See [`Pallet::free`]."] free { index: ::core::primitive::u32 }, #[codec(index = 3)] - #[doc = "Force an index to an account. This doesn't require a deposit. If the index is already"] - #[doc = "held, then any deposit is reimbursed to its current owner."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Root_."] - #[doc = ""] - #[doc = "- `index`: the index to be (re-)assigned."] - #[doc = "- `new`: the new owner of the index. This function is a no-op if it is equal to sender."] - #[doc = "- `freeze`: if set to `true`, will freeze the index so it cannot be transferred."] - #[doc = ""] - #[doc = "Emits `IndexAssigned` if successful."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(1)`."] + #[doc = "See [`Pallet::force_transfer`]."] force_transfer { new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, index: ::core::primitive::u32, freeze: ::core::primitive::bool, }, #[codec(index = 4)] - #[doc = "Freeze an index so it will always point to the sender account. This consumes the"] - #[doc = "deposit."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the signing account must have a"] - #[doc = "non-frozen account `index`."] - #[doc = ""] - #[doc = "- `index`: the index to be frozen in place."] - #[doc = ""] - #[doc = "Emits `IndexFrozen` if successful."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(1)`."] + #[doc = "See [`Pallet::freeze`]."] freeze { index: ::core::primitive::u32 }, } #[derive( @@ -45702,7 +40734,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "The index was not already assigned."] @@ -45730,7 +40762,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "A account index was assigned."] @@ -45764,60 +40796,41 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Add a member `who` to the set."] - #[doc = ""] - #[doc = "May only be called from `T::AddOrigin`."] + #[doc = "See [`Pallet::add_member`]."] add_member { who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, }, #[codec(index = 1)] - #[doc = "Remove a member `who` from the set."] - #[doc = ""] - #[doc = "May only be called from `T::RemoveOrigin`."] + #[doc = "See [`Pallet::remove_member`]."] remove_member { who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, }, #[codec(index = 2)] - #[doc = "Swap out one member `remove` for another `add`."] - #[doc = ""] - #[doc = "May only be called from `T::SwapOrigin`."] - #[doc = ""] - #[doc = "Prime membership is *not* passed from `remove` to `add`, if extant."] + #[doc = "See [`Pallet::swap_member`]."] swap_member { remove: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, add: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, }, #[codec(index = 3)] - #[doc = "Change the membership to a new set, disregarding the existing membership. Be nice and"] - #[doc = "pass `members` pre-sorted."] - #[doc = ""] - #[doc = "May only be called from `T::ResetOrigin`."] + #[doc = "See [`Pallet::reset_members`]."] reset_members { members: ::std::vec::Vec<::subxt::utils::AccountId32>, }, #[codec(index = 4)] - #[doc = "Swap out the sending member for some other key `new`."] - #[doc = ""] - #[doc = "May only be called from `Signed` origin of a current member."] - #[doc = ""] - #[doc = "Prime membership is passed from the origin account to `new`, if extant."] + #[doc = "See [`Pallet::change_key`]."] change_key { new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, }, #[codec(index = 5)] - #[doc = "Set the prime member. Must be a current member."] - #[doc = ""] - #[doc = "May only be called from `T::PrimeOrigin`."] + #[doc = "See [`Pallet::set_prime`]."] set_prime { who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, }, #[codec(index = 6)] - #[doc = "Remove the prime member if it exists."] - #[doc = ""] - #[doc = "May only be called from `T::PrimeOrigin`."] + #[doc = "See [`Pallet::clear_prime`]."] clear_prime, } #[derive( @@ -45830,7 +40843,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "Already a member."] @@ -45852,7 +40865,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "The given member was added; see the transaction for who."] @@ -45875,7 +40888,7 @@ pub mod api { } } } - pub mod pallet_multisig { + pub mod pallet_message_queue { use super::runtime_types; pub mod pallet { use super::runtime_types; @@ -45889,65 +40902,144 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { + # [codec (index = 0)] # [doc = "See [`Pallet::reap_page`]."] reap_page { message_origin : runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin , page_index : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "See [`Pallet::execute_overweight`]."] execute_overweight { message_origin : runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin , page : :: core :: primitive :: u32 , index : :: core :: primitive :: u32 , weight_limit : runtime_types :: sp_weights :: weight_v2 :: Weight , } , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Error` enum of this pallet."] + pub enum Error { #[codec(index = 0)] - #[doc = "Immediately dispatch a multi-signature call using a single approval from the caller."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "- `other_signatories`: The accounts (other than the sender) who are part of the"] - #[doc = "multi-signature, but do not participate in the approval process."] - #[doc = "- `call`: The call to be executed."] + #[doc = "Page is not reapable because it has items remaining to be processed and is not old"] + #[doc = "enough."] + NotReapable, + #[codec(index = 1)] + #[doc = "Page to be reaped does not exist."] + NoPage, + #[codec(index = 2)] + #[doc = "The referenced message could not be found."] + NoMessage, + #[codec(index = 3)] + #[doc = "The message was already processed and cannot be processed again."] + AlreadyProcessed, + #[codec(index = 4)] + #[doc = "The message is queued for future execution."] + Queued, + #[codec(index = 5)] + #[doc = "There is temporarily not enough weight to continue servicing messages."] + InsufficientWeight, + #[codec(index = 6)] + #[doc = "This message is temporarily unprocessable."] #[doc = ""] - #[doc = "Result is equivalent to the dispatched result."] + #[doc = "Such errors are expected, but not guaranteed, to resolve themselves eventually through"] + #[doc = "retrying."] + TemporarilyUnprocessable, + #[codec(index = 7)] + #[doc = "The queue is paused and no message can be executed from it."] #[doc = ""] - #[doc = "## Complexity"] - #[doc = "O(Z + C) where Z is the length of the call and C its execution weight."] + #[doc = "This can change at any time and may resolve in the future by re-trying."] + QueuePaused, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Event` enum of this pallet"] + pub enum Event { + # [codec (index = 0)] # [doc = "Message discarded due to an error in the `MessageProcessor` (usually a format error)."] ProcessingFailed { id : [:: core :: primitive :: u8 ; 32usize] , origin : runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin , error : runtime_types :: frame_support :: traits :: messages :: ProcessMessageError , } , # [codec (index = 1)] # [doc = "Message is processed."] Processed { id : [:: core :: primitive :: u8 ; 32usize] , origin : runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin , weight_used : runtime_types :: sp_weights :: weight_v2 :: Weight , success : :: core :: primitive :: bool , } , # [codec (index = 2)] # [doc = "Message placed in overweight queue."] OverweightEnqueued { id : [:: core :: primitive :: u8 ; 32usize] , origin : runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin , page_index : :: core :: primitive :: u32 , message_index : :: core :: primitive :: u32 , } , # [codec (index = 3)] # [doc = "This page was reaped."] PageReaped { origin : runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin , index : :: core :: primitive :: u32 , } , } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct BookState<_0> { + pub begin: ::core::primitive::u32, + pub end: ::core::primitive::u32, + pub count: ::core::primitive::u32, + pub ready_neighbours: + ::core::option::Option>, + pub message_count: ::core::primitive::u64, + pub size: ::core::primitive::u64, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Neighbours<_0> { + pub prev: _0, + pub next: _0, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Page<_0> { + pub remaining: _0, + pub remaining_size: _0, + pub first_index: _0, + pub first: _0, + pub last: _0, + pub heap: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + } + } + pub mod pallet_multisig { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call { + #[codec(index = 0)] + #[doc = "See [`Pallet::as_multi_threshold_1`]."] as_multi_threshold_1 { other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, call: ::std::boxed::Box, }, #[codec(index = 1)] - #[doc = "Register approval for a dispatch to be made from a deterministic composite account if"] - #[doc = "approved by a total of `threshold - 1` of `other_signatories`."] - #[doc = ""] - #[doc = "If there are enough, then dispatch the call."] - #[doc = ""] - #[doc = "Payment: `DepositBase` will be reserved if this is the first approval, plus"] - #[doc = "`threshold` times `DepositFactor`. It is returned once this dispatch happens or"] - #[doc = "is cancelled."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] - #[doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] - #[doc = "dispatch. May not be empty."] - #[doc = "- `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is"] - #[doc = "not the first approval, then it must be `Some`, with the timepoint (block number and"] - #[doc = "transaction index) of the first approval transaction."] - #[doc = "- `call`: The call to be executed."] - #[doc = ""] - #[doc = "NOTE: Unless this is the final approval, you will generally want to use"] - #[doc = "`approve_as_multi` instead, since it only requires a hash of the call."] - #[doc = ""] - #[doc = "Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise"] - #[doc = "on success, result is `Ok` and the result from the interior call, if it was executed,"] - #[doc = "may be found in the deposited `MultisigExecuted` event."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(S + Z + Call)`."] - #[doc = "- Up to one balance-reserve or unreserve operation."] - #[doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] - #[doc = " signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] - #[doc = "- One call encode & hash, both of complexity `O(Z)` where `Z` is tx-len."] - #[doc = "- One encode & hash, both of complexity `O(S)`."] - #[doc = "- Up to one binary search and insert (`O(logS + S)`)."] - #[doc = "- I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove."] - #[doc = "- One event."] - #[doc = "- The weight of the `call`."] - #[doc = "- Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit"] - #[doc = " taken for its lifetime of `DepositBase + threshold * DepositFactor`."] + #[doc = "See [`Pallet::as_multi`]."] as_multi { threshold: ::core::primitive::u16, other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, @@ -45958,36 +41050,7 @@ pub mod api { max_weight: runtime_types::sp_weights::weight_v2::Weight, }, #[codec(index = 2)] - #[doc = "Register approval for a dispatch to be made from a deterministic composite account if"] - #[doc = "approved by a total of `threshold - 1` of `other_signatories`."] - #[doc = ""] - #[doc = "Payment: `DepositBase` will be reserved if this is the first approval, plus"] - #[doc = "`threshold` times `DepositFactor`. It is returned once this dispatch happens or"] - #[doc = "is cancelled."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] - #[doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] - #[doc = "dispatch. May not be empty."] - #[doc = "- `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is"] - #[doc = "not the first approval, then it must be `Some`, with the timepoint (block number and"] - #[doc = "transaction index) of the first approval transaction."] - #[doc = "- `call_hash`: The hash of the call to be executed."] - #[doc = ""] - #[doc = "NOTE: If this is the final approval, you will want to use `as_multi` instead."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(S)`."] - #[doc = "- Up to one balance-reserve or unreserve operation."] - #[doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] - #[doc = " signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] - #[doc = "- One encode & hash, both of complexity `O(S)`."] - #[doc = "- Up to one binary search and insert (`O(logS + S)`)."] - #[doc = "- I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove."] - #[doc = "- One event."] - #[doc = "- Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit"] - #[doc = " taken for its lifetime of `DepositBase + threshold * DepositFactor`."] + #[doc = "See [`Pallet::approve_as_multi`]."] approve_as_multi { threshold: ::core::primitive::u16, other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, @@ -45998,27 +41061,7 @@ pub mod api { max_weight: runtime_types::sp_weights::weight_v2::Weight, }, #[codec(index = 3)] - #[doc = "Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously"] - #[doc = "for this operation will be unreserved on success."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] - #[doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] - #[doc = "dispatch. May not be empty."] - #[doc = "- `timepoint`: The timepoint (block number and transaction index) of the first approval"] - #[doc = "transaction for this dispatch."] - #[doc = "- `call_hash`: The hash of the call to be executed."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(S)`."] - #[doc = "- Up to one balance-reserve or unreserve operation."] - #[doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] - #[doc = " signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] - #[doc = "- One encode & hash, both of complexity `O(S)`."] - #[doc = "- One event."] - #[doc = "- I/O: 1 read `O(S)`, one remove."] - #[doc = "- Storage: removes one item."] + #[doc = "See [`Pallet::cancel_as_multi`]."] cancel_as_multi { threshold: ::core::primitive::u16, other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, @@ -46037,7 +41080,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "Threshold must be 2 or greater."] @@ -46092,7 +41135,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "A new multisig operation has begun."] @@ -46160,7 +41203,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Timepoint<_0> { pub height: _0, - pub index: _0, + pub index: ::core::primitive::u32, } } pub mod pallet_nomination_pools { @@ -46177,79 +41220,27 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Stake funds with a pool. The amount to bond is transferred from the member to the"] - #[doc = "pools account and immediately increases the pools bond."] - #[doc = ""] - #[doc = "# Note"] - #[doc = ""] - #[doc = "* An account can only be a member of a single pool."] - #[doc = "* An account cannot join the same pool multiple times."] - #[doc = "* This call will *not* dust the member account, so the member must have at least"] - #[doc = " `existential deposit + amount` in their account."] - #[doc = "* Only a pool with [`PoolState::Open`] can be joined"] + #[doc = "See [`Pallet::join`]."] join { #[codec(compact)] amount: ::core::primitive::u128, pool_id: ::core::primitive::u32, }, #[codec(index = 1)] - #[doc = "Bond `extra` more funds from `origin` into the pool to which they already belong."] - #[doc = ""] - #[doc = "Additional funds can come from either the free balance of the account, of from the"] - #[doc = "accumulated rewards, see [`BondExtra`]."] - #[doc = ""] - #[doc = "Bonding extra funds implies an automatic payout of all pending rewards as well."] - #[doc = "See `bond_extra_other` to bond pending rewards of `other` members."] + #[doc = "See [`Pallet::bond_extra`]."] bond_extra { extra: runtime_types::pallet_nomination_pools::BondExtra< ::core::primitive::u128, >, }, #[codec(index = 2)] - #[doc = "A bonded member can use this to claim their payout based on the rewards that the pool"] - #[doc = "has accumulated since their last claimed payout (OR since joining if this is their first"] - #[doc = "time claiming rewards). The payout will be transferred to the member's account."] - #[doc = ""] - #[doc = "The member will earn rewards pro rata based on the members stake vs the sum of the"] - #[doc = "members in the pools stake. Rewards do not \"expire\"."] - #[doc = ""] - #[doc = "See `claim_payout_other` to caim rewards on bahalf of some `other` pool member."] + #[doc = "See [`Pallet::claim_payout`]."] claim_payout, #[codec(index = 3)] - #[doc = "Unbond up to `unbonding_points` of the `member_account`'s funds from the pool. It"] - #[doc = "implicitly collects the rewards one last time, since not doing so would mean some"] - #[doc = "rewards would be forfeited."] - #[doc = ""] - #[doc = "Under certain conditions, this call can be dispatched permissionlessly (i.e. by any"] - #[doc = "account)."] - #[doc = ""] - #[doc = "# Conditions for a permissionless dispatch."] - #[doc = ""] - #[doc = "* The pool is blocked and the caller is either the root or bouncer. This is refereed to"] - #[doc = " as a kick."] - #[doc = "* The pool is destroying and the member is not the depositor."] - #[doc = "* The pool is destroying, the member is the depositor and no other members are in the"] - #[doc = " pool."] - #[doc = ""] - #[doc = "## Conditions for permissioned dispatch (i.e. the caller is also the"] - #[doc = "`member_account`):"] - #[doc = ""] - #[doc = "* The caller is not the depositor."] - #[doc = "* The caller is the depositor, the pool is destroying and no other members are in the"] - #[doc = " pool."] - #[doc = ""] - #[doc = "# Note"] - #[doc = ""] - #[doc = "If there are too many unlocking chunks to unbond with the pool account,"] - #[doc = "[`Call::pool_withdraw_unbonded`] can be called to try and minimize unlocking chunks."] - #[doc = "The [`StakingInterface::unbond`] will implicitly call [`Call::pool_withdraw_unbonded`]"] - #[doc = "to try to free chunks if necessary (ie. if unbound was called and no unlocking chunks"] - #[doc = "are available). However, it may not be possible to release the current unlocking chunks,"] - #[doc = "in which case, the result of this call will likely be the `NoMoreChunks` error from the"] - #[doc = "staking system."] + #[doc = "See [`Pallet::unbond`]."] unbond { member_account: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -46257,59 +41248,20 @@ pub mod api { unbonding_points: ::core::primitive::u128, }, #[codec(index = 4)] - #[doc = "Call `withdraw_unbonded` for the pools account. This call can be made by any account."] - #[doc = ""] - #[doc = "This is useful if their are too many unlocking chunks to call `unbond`, and some"] - #[doc = "can be cleared by withdrawing. In the case there are too many unlocking chunks, the user"] - #[doc = "would probably see an error like `NoMoreChunks` emitted from the staking system when"] - #[doc = "they attempt to unbond."] + #[doc = "See [`Pallet::pool_withdraw_unbonded`]."] pool_withdraw_unbonded { pool_id: ::core::primitive::u32, num_slashing_spans: ::core::primitive::u32, }, #[codec(index = 5)] - #[doc = "Withdraw unbonded funds from `member_account`. If no bonded funds can be unbonded, an"] - #[doc = "error is returned."] - #[doc = ""] - #[doc = "Under certain conditions, this call can be dispatched permissionlessly (i.e. by any"] - #[doc = "account)."] - #[doc = ""] - #[doc = "# Conditions for a permissionless dispatch"] - #[doc = ""] - #[doc = "* The pool is in destroy mode and the target is not the depositor."] - #[doc = "* The target is the depositor and they are the only member in the sub pools."] - #[doc = "* The pool is blocked and the caller is either the root or bouncer."] - #[doc = ""] - #[doc = "# Conditions for permissioned dispatch"] - #[doc = ""] - #[doc = "* The caller is the target and they are not the depositor."] - #[doc = ""] - #[doc = "# Note"] - #[doc = ""] - #[doc = "If the target is the depositor, the pool will be destroyed."] + #[doc = "See [`Pallet::withdraw_unbonded`]."] withdraw_unbonded { member_account: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, num_slashing_spans: ::core::primitive::u32, }, #[codec(index = 6)] - #[doc = "Create a new delegation pool."] - #[doc = ""] - #[doc = "# Arguments"] - #[doc = ""] - #[doc = "* `amount` - The amount of funds to delegate to the pool. This also acts of a sort of"] - #[doc = " deposit since the pools creator cannot fully unbond funds until the pool is being"] - #[doc = " destroyed."] - #[doc = "* `index` - A disambiguation index for creating the account. Likely only useful when"] - #[doc = " creating multiple pools in the same extrinsic."] - #[doc = "* `root` - The account to set as [`PoolRoles::root`]."] - #[doc = "* `nominator` - The account to set as the [`PoolRoles::nominator`]."] - #[doc = "* `bouncer` - The account to set as the [`PoolRoles::bouncer`]."] - #[doc = ""] - #[doc = "# Note"] - #[doc = ""] - #[doc = "In addition to `amount`, the caller will transfer the existential deposit; so the caller"] - #[doc = "needs at have at least `amount + existential_deposit` transferrable."] + #[doc = "See [`Pallet::create`]."] create { #[codec(compact)] amount: ::core::primitive::u128, @@ -46318,12 +41270,7 @@ pub mod api { bouncer: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, }, #[codec(index = 7)] - #[doc = "Create a new delegation pool with a previously used pool id"] - #[doc = ""] - #[doc = "# Arguments"] - #[doc = ""] - #[doc = "same as `create` with the inclusion of"] - #[doc = "* `pool_id` - `A valid PoolId."] + #[doc = "See [`Pallet::create_with_pool_id`]."] create_with_pool_id { #[codec(compact)] amount: ::core::primitive::u128, @@ -46333,53 +41280,25 @@ pub mod api { pool_id: ::core::primitive::u32, }, #[codec(index = 8)] - #[doc = "Nominate on behalf of the pool."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed by the pool nominator or the pool"] - #[doc = "root role."] - #[doc = ""] - #[doc = "This directly forward the call to the staking pallet, on behalf of the pool bonded"] - #[doc = "account."] + #[doc = "See [`Pallet::nominate`]."] nominate { pool_id: ::core::primitive::u32, validators: ::std::vec::Vec<::subxt::utils::AccountId32>, }, #[codec(index = 9)] - #[doc = "Set a new state for the pool."] - #[doc = ""] - #[doc = "If a pool is already in the `Destroying` state, then under no condition can its state"] - #[doc = "change again."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be either:"] - #[doc = ""] - #[doc = "1. signed by the bouncer, or the root role of the pool,"] - #[doc = "2. if the pool conditions to be open are NOT met (as described by `ok_to_be_open`), and"] - #[doc = " then the state of the pool can be permissionlessly changed to `Destroying`."] + #[doc = "See [`Pallet::set_state`]."] set_state { pool_id: ::core::primitive::u32, state: runtime_types::pallet_nomination_pools::PoolState, }, #[codec(index = 10)] - #[doc = "Set a new metadata for the pool."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed by the bouncer, or the root role of the"] - #[doc = "pool."] + #[doc = "See [`Pallet::set_metadata`]."] set_metadata { pool_id: ::core::primitive::u32, metadata: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 11)] - #[doc = "Update configurations for the nomination pools. The origin for this call must be"] - #[doc = "Root."] - #[doc = ""] - #[doc = "# Arguments"] - #[doc = ""] - #[doc = "* `min_join_bond` - Set [`MinJoinBond`]."] - #[doc = "* `min_create_bond` - Set [`MinCreateBond`]."] - #[doc = "* `max_pools` - Set [`MaxPools`]."] - #[doc = "* `max_members` - Set [`MaxPoolMembers`]."] - #[doc = "* `max_members_per_pool` - Set [`MaxPoolMembersPerPool`]."] - #[doc = "* `global_max_commission` - Set [`GlobalMaxCommission`]."] + #[doc = "See [`Pallet::set_configs`]."] set_configs { min_join_bond: runtime_types::pallet_nomination_pools::ConfigOp< ::core::primitive::u128, @@ -46401,13 +41320,7 @@ pub mod api { >, }, #[codec(index = 12)] - #[doc = "Update the roles of the pool."] - #[doc = ""] - #[doc = "The root is the only entity that can change any of the roles, including itself,"] - #[doc = "excluding the depositor, who can never change."] - #[doc = ""] - #[doc = "It emits an event, notifying UIs of the role change. This event is quite relevant to"] - #[doc = "most pool members and they should be informed of changes to pool roles."] + #[doc = "See [`Pallet::update_roles`]."] update_roles { pool_id: ::core::primitive::u32, new_root: runtime_types::pallet_nomination_pools::ConfigOp< @@ -46421,24 +41334,10 @@ pub mod api { >, }, #[codec(index = 13)] - #[doc = "Chill on behalf of the pool."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed by the pool nominator or the pool"] - #[doc = "root role, same as [`Pallet::nominate`]."] - #[doc = ""] - #[doc = "This directly forward the call to the staking pallet, on behalf of the pool bonded"] - #[doc = "account."] + #[doc = "See [`Pallet::chill`]."] chill { pool_id: ::core::primitive::u32 }, #[codec(index = 14)] - #[doc = "`origin` bonds funds from `extra` for some pool member `member` into their respective"] - #[doc = "pools."] - #[doc = ""] - #[doc = "`origin` can bond extra funds from free balance or pending rewards when `origin =="] - #[doc = "other`."] - #[doc = ""] - #[doc = "In the case of `origin != other`, `origin` can only bond extra pending rewards of"] - #[doc = "`other` members assuming set_claim_permission for the given member is"] - #[doc = "`PermissionlessAll` or `PermissionlessCompound`."] + #[doc = "See [`Pallet::bond_extra_other`]."] bond_extra_other { member: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, extra: runtime_types::pallet_nomination_pools::BondExtra< @@ -46446,33 +41345,15 @@ pub mod api { >, }, #[codec(index = 15)] - #[doc = "Allows a pool member to set a claim permission to allow or disallow permissionless"] - #[doc = "bonding and withdrawing."] - #[doc = ""] - #[doc = "By default, this is `Permissioned`, which implies only the pool member themselves can"] - #[doc = "claim their pending rewards. If a pool member wishes so, they can set this to"] - #[doc = "`PermissionlessAll` to allow any account to claim their rewards and bond extra to the"] - #[doc = "pool."] - #[doc = ""] - #[doc = "# Arguments"] - #[doc = ""] - #[doc = "* `origin` - Member of a pool."] - #[doc = "* `actor` - Account to claim reward. // improve this"] + #[doc = "See [`Pallet::set_claim_permission`]."] set_claim_permission { permission: runtime_types::pallet_nomination_pools::ClaimPermission, }, #[codec(index = 16)] - #[doc = "`origin` can claim payouts on some pool member `other`'s behalf."] - #[doc = ""] - #[doc = "Pool member `other` must have a `PermissionlessAll` or `PermissionlessWithdraw` in order"] - #[doc = "for this call to be successful."] + #[doc = "See [`Pallet::claim_payout_other`]."] claim_payout_other { other: ::subxt::utils::AccountId32 }, #[codec(index = 17)] - #[doc = "Set the commission of a pool."] - #[doc = "Both a commission percentage and a commission payee must be provided in the `current`"] - #[doc = "tuple. Where a `current` of `None` is provided, any current commission will be removed."] - #[doc = ""] - #[doc = "- If a `None` is supplied to `new_commission`, existing commission will be removed."] + #[doc = "See [`Pallet::set_commission`]."] set_commission { pool_id: ::core::primitive::u32, new_commission: ::core::option::Option<( @@ -46481,20 +41362,13 @@ pub mod api { )>, }, #[codec(index = 18)] - #[doc = "Set the maximum commission of a pool."] - #[doc = ""] - #[doc = "- Initial max can be set to any `Perbill`, and only smaller values thereafter."] - #[doc = "- Current commission will be lowered in the event it is higher than a new max"] - #[doc = " commission."] + #[doc = "See [`Pallet::set_commission_max`]."] set_commission_max { pool_id: ::core::primitive::u32, max_commission: runtime_types::sp_arithmetic::per_things::Perbill, }, #[codec(index = 19)] - #[doc = "Set the commission change rate for a pool."] - #[doc = ""] - #[doc = "Initial change rate is not bounded, whereas subsequent updates can only be more"] - #[doc = "restrictive than the current."] + #[doc = "See [`Pallet::set_commission_change_rate`]."] set_commission_change_rate { pool_id: ::core::primitive::u32, change_rate: runtime_types::pallet_nomination_pools::CommissionChangeRate< @@ -46502,11 +41376,7 @@ pub mod api { >, }, #[codec(index = 20)] - #[doc = "Claim pending commission."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed by the `root` role of the pool. Pending"] - #[doc = "commission is paid out and added to total claimed commission`. Total pending commission"] - #[doc = "is reset to zero. the current."] + #[doc = "See [`Pallet::claim_commission`]."] claim_commission { pool_id: ::core::primitive::u32 }, } #[derive( @@ -46541,7 +41411,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "A (bonded) pool id does not exist."] @@ -47032,34 +41902,21 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Register a preimage on-chain."] - #[doc = ""] - #[doc = "If the preimage was previously requested, no fees or deposits are taken for providing"] - #[doc = "the preimage. Otherwise, a deposit is taken proportional to the size of the preimage."] + #[doc = "See [`Pallet::note_preimage`]."] note_preimage { bytes: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 1)] - #[doc = "Clear an unrequested preimage from the runtime storage."] - #[doc = ""] - #[doc = "If `len` is provided, then it will be a much cheaper operation."] - #[doc = ""] - #[doc = "- `hash`: The hash of the preimage to be removed from the store."] - #[doc = "- `len`: The length of the preimage of `hash`."] + #[doc = "See [`Pallet::unnote_preimage`]."] unnote_preimage { hash: ::subxt::utils::H256 }, #[codec(index = 2)] - #[doc = "Request a preimage be uploaded to the chain without paying any fees or deposits."] - #[doc = ""] - #[doc = "If the preimage requests has already been provided on-chain, we unreserve any deposit"] - #[doc = "a user may have paid, and take the control of the preimage out of their hands."] + #[doc = "See [`Pallet::request_preimage`]."] request_preimage { hash: ::subxt::utils::H256 }, #[codec(index = 3)] - #[doc = "Clear a previously made request for a preimage."] - #[doc = ""] - #[doc = "NOTE: THIS MUST NOT BE CALLED ON `hash` MORE TIMES THAN `request_preimage`."] + #[doc = "See [`Pallet::unrequest_preimage`]."] unrequest_preimage { hash: ::subxt::utils::H256 }, } #[derive( @@ -47072,7 +41929,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "Preimage is too large to store on-chain."] @@ -47103,7 +41960,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "A preimage has been noted."] @@ -47154,18 +42011,10 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Dispatch the given `call` from an account that the sender is authorised for through"] - #[doc = "`add_proxy`."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "Parameters:"] - #[doc = "- `real`: The account that the proxy will make a call on behalf of."] - #[doc = "- `force_proxy_type`: Specify the exact proxy type to be used and checked for this call."] - #[doc = "- `call`: The call to be made by the `real` account."] + #[doc = "See [`Pallet::proxy`]."] proxy { real: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, force_proxy_type: @@ -47173,82 +42022,31 @@ pub mod api { call: ::std::boxed::Box, }, #[codec(index = 1)] - #[doc = "Register a proxy account for the sender that is able to make calls on its behalf."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "Parameters:"] - #[doc = "- `proxy`: The account that the `caller` would like to make a proxy."] - #[doc = "- `proxy_type`: The permissions allowed for this proxy account."] - #[doc = "- `delay`: The announcement period required of the initial proxy. Will generally be"] - #[doc = "zero."] + #[doc = "See [`Pallet::add_proxy`]."] add_proxy { delegate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, proxy_type: runtime_types::polkadot_runtime::ProxyType, delay: ::core::primitive::u32, }, #[codec(index = 2)] - #[doc = "Unregister a proxy account for the sender."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "Parameters:"] - #[doc = "- `proxy`: The account that the `caller` would like to remove as a proxy."] - #[doc = "- `proxy_type`: The permissions currently enabled for the removed proxy account."] + #[doc = "See [`Pallet::remove_proxy`]."] remove_proxy { delegate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, proxy_type: runtime_types::polkadot_runtime::ProxyType, delay: ::core::primitive::u32, }, #[codec(index = 3)] - #[doc = "Unregister all proxy accounts for the sender."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "WARNING: This may be called on accounts created by `pure`, however if done, then"] - #[doc = "the unreserved fees will be inaccessible. **All access to this account will be lost.**"] + #[doc = "See [`Pallet::remove_proxies`]."] remove_proxies, #[codec(index = 4)] - #[doc = "Spawn a fresh new account that is guaranteed to be otherwise inaccessible, and"] - #[doc = "initialize it with a proxy of `proxy_type` for `origin` sender."] - #[doc = ""] - #[doc = "Requires a `Signed` origin."] - #[doc = ""] - #[doc = "- `proxy_type`: The type of the proxy that the sender will be registered as over the"] - #[doc = "new account. This will almost always be the most permissive `ProxyType` possible to"] - #[doc = "allow for maximum flexibility."] - #[doc = "- `index`: A disambiguation index, in case this is called multiple times in the same"] - #[doc = "transaction (e.g. with `utility::batch`). Unless you're using `batch` you probably just"] - #[doc = "want to use `0`."] - #[doc = "- `delay`: The announcement period required of the initial proxy. Will generally be"] - #[doc = "zero."] - #[doc = ""] - #[doc = "Fails with `Duplicate` if this has already been called in this transaction, from the"] - #[doc = "same sender, with the same parameters."] - #[doc = ""] - #[doc = "Fails if there are insufficient funds to pay for deposit."] + #[doc = "See [`Pallet::create_pure`]."] create_pure { proxy_type: runtime_types::polkadot_runtime::ProxyType, delay: ::core::primitive::u32, index: ::core::primitive::u16, }, #[codec(index = 5)] - #[doc = "Removes a previously spawned pure proxy."] - #[doc = ""] - #[doc = "WARNING: **All access to this account will be lost.** Any funds held in it will be"] - #[doc = "inaccessible."] - #[doc = ""] - #[doc = "Requires a `Signed` origin, and the sender account must have been created by a call to"] - #[doc = "`pure` with corresponding parameters."] - #[doc = ""] - #[doc = "- `spawner`: The account that originally called `pure` to create this account."] - #[doc = "- `index`: The disambiguation index originally passed to `pure`. Probably `0`."] - #[doc = "- `proxy_type`: The proxy type originally passed to `pure`."] - #[doc = "- `height`: The height of the chain when the call to `pure` was processed."] - #[doc = "- `ext_index`: The extrinsic index in which the call to `pure` was processed."] - #[doc = ""] - #[doc = "Fails with `NoPermission` in case the caller is not a previously created pure"] - #[doc = "account whose `pure` call has corresponding parameters."] + #[doc = "See [`Pallet::kill_pure`]."] kill_pure { spawner: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, proxy_type: runtime_types::polkadot_runtime::ProxyType, @@ -47259,67 +42057,25 @@ pub mod api { ext_index: ::core::primitive::u32, }, #[codec(index = 6)] - #[doc = "Publish the hash of a proxy-call that will be made in the future."] - #[doc = ""] - #[doc = "This must be called some number of blocks before the corresponding `proxy` is attempted"] - #[doc = "if the delay associated with the proxy relationship is greater than zero."] - #[doc = ""] - #[doc = "No more than `MaxPending` announcements may be made at any one time."] - #[doc = ""] - #[doc = "This will take a deposit of `AnnouncementDepositFactor` as well as"] - #[doc = "`AnnouncementDepositBase` if there are no other pending announcements."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and a proxy of `real`."] - #[doc = ""] - #[doc = "Parameters:"] - #[doc = "- `real`: The account that the proxy will make a call on behalf of."] - #[doc = "- `call_hash`: The hash of the call to be made by the `real` account."] + #[doc = "See [`Pallet::announce`]."] announce { real: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, call_hash: ::subxt::utils::H256, }, #[codec(index = 7)] - #[doc = "Remove a given announcement."] - #[doc = ""] - #[doc = "May be called by a proxy account to remove a call they previously announced and return"] - #[doc = "the deposit."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "Parameters:"] - #[doc = "- `real`: The account that the proxy will make a call on behalf of."] - #[doc = "- `call_hash`: The hash of the call to be made by the `real` account."] + #[doc = "See [`Pallet::remove_announcement`]."] remove_announcement { real: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, call_hash: ::subxt::utils::H256, }, #[codec(index = 8)] - #[doc = "Remove the given announcement of a delegate."] - #[doc = ""] - #[doc = "May be called by a target (proxied) account to remove a call that one of their delegates"] - #[doc = "(`delegate`) has announced they want to execute. The deposit is returned."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "Parameters:"] - #[doc = "- `delegate`: The account that previously announced the call."] - #[doc = "- `call_hash`: The hash of the call to be made."] + #[doc = "See [`Pallet::reject_announcement`]."] reject_announcement { delegate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, call_hash: ::subxt::utils::H256, }, #[codec(index = 9)] - #[doc = "Dispatch the given `call` from an account that the sender is authorized for through"] - #[doc = "`add_proxy`."] - #[doc = ""] - #[doc = "Removes any corresponding announcement(s)."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "Parameters:"] - #[doc = "- `real`: The account that the proxy will make a call on behalf of."] - #[doc = "- `force_proxy_type`: Specify the exact proxy type to be used and checked for this call."] - #[doc = "- `call`: The call to be made by the `real` account."] + #[doc = "See [`Pallet::proxy_announced`]."] proxy_announced { delegate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, real: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -47338,7 +42094,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "There are too many proxies registered or too many announcements pending."] @@ -47375,7 +42131,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "A proxy was executed correctly, with the given."] @@ -47462,18 +42218,10 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Propose a referendum on a privileged action."] - #[doc = ""] - #[doc = "- `origin`: must be `SubmitOrigin` and the account must have `SubmissionDeposit` funds"] - #[doc = " available."] - #[doc = "- `proposal_origin`: The origin from which the proposal should be executed."] - #[doc = "- `proposal`: The proposal."] - #[doc = "- `enactment_moment`: The moment that the proposal should be enacted."] - #[doc = ""] - #[doc = "Emits `Submitted`."] + #[doc = "See [`Pallet::submit`]."] submit { proposal_origin: ::std::boxed::Box, @@ -47486,74 +42234,28 @@ pub mod api { >, }, #[codec(index = 1)] - #[doc = "Post the Decision Deposit for a referendum."] - #[doc = ""] - #[doc = "- `origin`: must be `Signed` and the account must have funds available for the"] - #[doc = " referendum's track's Decision Deposit."] - #[doc = "- `index`: The index of the submitted referendum whose Decision Deposit is yet to be"] - #[doc = " posted."] - #[doc = ""] - #[doc = "Emits `DecisionDepositPlaced`."] + #[doc = "See [`Pallet::place_decision_deposit`]."] place_decision_deposit { index: ::core::primitive::u32 }, #[codec(index = 2)] - #[doc = "Refund the Decision Deposit for a closed referendum back to the depositor."] - #[doc = ""] - #[doc = "- `origin`: must be `Signed` or `Root`."] - #[doc = "- `index`: The index of a closed referendum whose Decision Deposit has not yet been"] - #[doc = " refunded."] - #[doc = ""] - #[doc = "Emits `DecisionDepositRefunded`."] + #[doc = "See [`Pallet::refund_decision_deposit`]."] refund_decision_deposit { index: ::core::primitive::u32 }, #[codec(index = 3)] - #[doc = "Cancel an ongoing referendum."] - #[doc = ""] - #[doc = "- `origin`: must be the `CancelOrigin`."] - #[doc = "- `index`: The index of the referendum to be cancelled."] - #[doc = ""] - #[doc = "Emits `Cancelled`."] + #[doc = "See [`Pallet::cancel`]."] cancel { index: ::core::primitive::u32 }, #[codec(index = 4)] - #[doc = "Cancel an ongoing referendum and slash the deposits."] - #[doc = ""] - #[doc = "- `origin`: must be the `KillOrigin`."] - #[doc = "- `index`: The index of the referendum to be cancelled."] - #[doc = ""] - #[doc = "Emits `Killed` and `DepositSlashed`."] + #[doc = "See [`Pallet::kill`]."] kill { index: ::core::primitive::u32 }, #[codec(index = 5)] - #[doc = "Advance a referendum onto its next logical state. Only used internally."] - #[doc = ""] - #[doc = "- `origin`: must be `Root`."] - #[doc = "- `index`: the referendum to be advanced."] + #[doc = "See [`Pallet::nudge_referendum`]."] nudge_referendum { index: ::core::primitive::u32 }, #[codec(index = 6)] - #[doc = "Advance a track onto its next logical state. Only used internally."] - #[doc = ""] - #[doc = "- `origin`: must be `Root`."] - #[doc = "- `track`: the track to be advanced."] - #[doc = ""] - #[doc = "Action item for when there is now one fewer referendum in the deciding phase and the"] - #[doc = "`DecidingCount` is not yet updated. This means that we should either:"] - #[doc = "- begin deciding another referendum (and leave `DecidingCount` alone); or"] - #[doc = "- decrement `DecidingCount`."] + #[doc = "See [`Pallet::one_fewer_deciding`]."] one_fewer_deciding { track: ::core::primitive::u16 }, #[codec(index = 7)] - #[doc = "Refund the Submission Deposit for a closed referendum back to the depositor."] - #[doc = ""] - #[doc = "- `origin`: must be `Signed` or `Root`."] - #[doc = "- `index`: The index of a closed referendum whose Submission Deposit has not yet been"] - #[doc = " refunded."] - #[doc = ""] - #[doc = "Emits `SubmissionDepositRefunded`."] + #[doc = "See [`Pallet::refund_submission_deposit`]."] refund_submission_deposit { index: ::core::primitive::u32 }, #[codec(index = 8)] - #[doc = "Set or clear metadata of a referendum."] - #[doc = ""] - #[doc = "Parameters:"] - #[doc = "- `origin`: Must be `Signed` by a creator of a referendum or by anyone to clear a"] - #[doc = " metadata of a finished referendum."] - #[doc = "- `index`: The index of a referendum to set or clear metadata for."] - #[doc = "- `maybe_hash`: The hash of an on-chain stored preimage. `None` to clear a metadata."] + #[doc = "See [`Pallet::set_metadata`]."] set_metadata { index: ::core::primitive::u32, maybe_hash: ::core::option::Option<::subxt::utils::H256>, @@ -47569,7 +42271,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "Referendum is not ongoing."] @@ -47621,7 +42323,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "A referendum has been submitted."] @@ -47899,7 +42601,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct TrackInfo<_0, _1> { pub name: ::std::string::String, - pub max_deciding: _1, + pub max_deciding: ::core::primitive::u32, pub decision_deposit: _0, pub prepare_period: _1, pub decision_period: _1, @@ -47924,10 +42626,10 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Anonymously schedule a task."] + #[doc = "See [`Pallet::schedule`]."] schedule { when: ::core::primitive::u32, maybe_periodic: ::core::option::Option<( @@ -47938,13 +42640,13 @@ pub mod api { call: ::std::boxed::Box, }, #[codec(index = 1)] - #[doc = "Cancel an anonymously scheduled task."] + #[doc = "See [`Pallet::cancel`]."] cancel { when: ::core::primitive::u32, index: ::core::primitive::u32, }, #[codec(index = 2)] - #[doc = "Schedule a named task."] + #[doc = "See [`Pallet::schedule_named`]."] schedule_named { id: [::core::primitive::u8; 32usize], when: ::core::primitive::u32, @@ -47956,12 +42658,12 @@ pub mod api { call: ::std::boxed::Box, }, #[codec(index = 3)] - #[doc = "Cancel a named scheduled task."] + #[doc = "See [`Pallet::cancel_named`]."] cancel_named { id: [::core::primitive::u8; 32usize], }, #[codec(index = 4)] - #[doc = "Anonymously schedule a task after a delay."] + #[doc = "See [`Pallet::schedule_after`]."] schedule_after { after: ::core::primitive::u32, maybe_periodic: ::core::option::Option<( @@ -47972,7 +42674,7 @@ pub mod api { call: ::std::boxed::Box, }, #[codec(index = 5)] - #[doc = "Schedule a named task after a delay."] + #[doc = "See [`Pallet::schedule_named_after`]."] schedule_named_after { id: [::core::primitive::u8; 32usize], after: ::core::primitive::u32, @@ -47994,7 +42696,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "Failed to schedule a call"] @@ -48098,35 +42800,16 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Sets the session key(s) of the function caller to `keys`."] - #[doc = "Allows an account to set its session key prior to becoming a validator."] - #[doc = "This doesn't take effect until the next session."] - #[doc = ""] - #[doc = "The dispatch origin of this function must be signed."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is"] - #[doc = " fixed."] + #[doc = "See [`Pallet::set_keys`]."] set_keys { keys: runtime_types::polkadot_runtime::SessionKeys, proof: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 1)] - #[doc = "Removes any session key(s) of the function caller."] - #[doc = ""] - #[doc = "This doesn't take effect until the next session."] - #[doc = ""] - #[doc = "The dispatch origin of this function must be Signed and the account must be either be"] - #[doc = "convertible to a validator ID using the chain's typical addressing system (this usually"] - #[doc = "means being a controller account) or directly convertible into a validator ID (which"] - #[doc = "usually means being a stash account)."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(1)` in number of key types. Actual cost depends on the number of length of"] - #[doc = " `T::Keys::key_ids()` which is fixed."] + #[doc = "See [`Pallet::purge_keys`]."] purge_keys, } #[derive( @@ -48167,7 +42850,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "New session has happened. Note that the argument is the session index, not the"] @@ -48194,27 +42877,11 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Take the origin account as a stash and lock up `value` of its balance. `controller` will"] - #[doc = "be the account that controls it."] - #[doc = ""] - #[doc = "`value` must be more than the `minimum_balance` specified by `T::Currency`."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ by the stash account."] - #[doc = ""] - #[doc = "Emits `Bonded`."] - #[doc = "## Complexity"] - #[doc = "- Independent of the arguments. Moderate complexity."] - #[doc = "- O(1)."] - #[doc = "- Three extra DB entries."] - #[doc = ""] - #[doc = "NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned"] - #[doc = "unless the `origin` falls below _existential deposit_ and gets removed as dust."] + #[doc = "See [`Pallet::bond`]."] bond { - controller: - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, #[codec(compact)] value: ::core::primitive::u128, payee: runtime_types::pallet_staking::RewardDestination< @@ -48222,318 +42889,117 @@ pub mod api { >, }, #[codec(index = 1)] - #[doc = "Add some extra amount that have appeared in the stash `free_balance` into the balance up"] - #[doc = "for staking."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ by the stash, not the controller."] - #[doc = ""] - #[doc = "Use this if there are additional funds in your stash account that you wish to bond."] - #[doc = "Unlike [`bond`](Self::bond) or [`unbond`](Self::unbond) this function does not impose"] - #[doc = "any limitation on the amount that can be added."] - #[doc = ""] - #[doc = "Emits `Bonded`."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- Independent of the arguments. Insignificant complexity."] - #[doc = "- O(1)."] + #[doc = "See [`Pallet::bond_extra`]."] bond_extra { #[codec(compact)] max_additional: ::core::primitive::u128, }, #[codec(index = 2)] - #[doc = "Schedule a portion of the stash to be unlocked ready for transfer out after the bond"] - #[doc = "period ends. If this leaves an amount actively bonded less than"] - #[doc = "T::Currency::minimum_balance(), then it is increased to the full amount."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] - #[doc = ""] - #[doc = "Once the unlock period is done, you can call `withdraw_unbonded` to actually move"] - #[doc = "the funds out of management ready for transfer."] - #[doc = ""] - #[doc = "No more than a limited number of unlocking chunks (see `MaxUnlockingChunks`)"] - #[doc = "can co-exists at the same time. If there are no unlocking chunks slots available"] - #[doc = "[`Call::withdraw_unbonded`] is called to remove some of the chunks (if possible)."] - #[doc = ""] - #[doc = "If a user encounters the `InsufficientBond` error when calling this extrinsic,"] - #[doc = "they should call `chill` first in order to free up their bonded funds."] - #[doc = ""] - #[doc = "Emits `Unbonded`."] - #[doc = ""] - #[doc = "See also [`Call::withdraw_unbonded`]."] + #[doc = "See [`Pallet::unbond`]."] unbond { #[codec(compact)] value: ::core::primitive::u128, }, #[codec(index = 3)] - #[doc = "Remove any unlocked chunks from the `unlocking` queue from our management."] - #[doc = ""] - #[doc = "This essentially frees up that balance to be used by the stash account to do"] - #[doc = "whatever it wants."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ by the controller."] - #[doc = ""] - #[doc = "Emits `Withdrawn`."] - #[doc = ""] - #[doc = "See also [`Call::unbond`]."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "O(S) where S is the number of slashing spans to remove"] - #[doc = "NOTE: Weight annotation is the kill scenario, we refund otherwise."] + #[doc = "See [`Pallet::withdraw_unbonded`]."] withdraw_unbonded { num_slashing_spans: ::core::primitive::u32, }, #[codec(index = 4)] - #[doc = "Declare the desire to validate for the origin controller."] - #[doc = ""] - #[doc = "Effects will be felt at the beginning of the next era."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] + #[doc = "See [`Pallet::validate`]."] validate { prefs: runtime_types::pallet_staking::ValidatorPrefs, }, #[codec(index = 5)] - #[doc = "Declare the desire to nominate `targets` for the origin controller."] - #[doc = ""] - #[doc = "Effects will be felt at the beginning of the next era."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- The transaction's complexity is proportional to the size of `targets` (N)"] - #[doc = "which is capped at CompactAssignments::LIMIT (T::MaxNominations)."] - #[doc = "- Both the reads and writes follow a similar pattern."] + #[doc = "See [`Pallet::nominate`]."] nominate { targets: ::std::vec::Vec< ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, >, }, #[codec(index = 6)] - #[doc = "Declare no desire to either validate or nominate."] - #[doc = ""] - #[doc = "Effects will be felt at the beginning of the next era."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- Independent of the arguments. Insignificant complexity."] - #[doc = "- Contains one read."] - #[doc = "- Writes are limited to the `origin` account key."] + #[doc = "See [`Pallet::chill`]."] chill, #[codec(index = 7)] - #[doc = "(Re-)set the payment target for a controller."] - #[doc = ""] - #[doc = "Effects will be felt instantly (as soon as this function is completed successfully)."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- O(1)"] - #[doc = "- Independent of the arguments. Insignificant complexity."] - #[doc = "- Contains a limited number of reads."] - #[doc = "- Writes are limited to the `origin` account key."] - #[doc = "---------"] + #[doc = "See [`Pallet::set_payee`]."] set_payee { payee: runtime_types::pallet_staking::RewardDestination< ::subxt::utils::AccountId32, >, }, #[codec(index = 8)] - #[doc = "(Re-)set the controller of a stash."] - #[doc = ""] - #[doc = "Effects will be felt instantly (as soon as this function is completed successfully)."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ by the stash, not the controller."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "O(1)"] - #[doc = "- Independent of the arguments. Insignificant complexity."] - #[doc = "- Contains a limited number of reads."] - #[doc = "- Writes are limited to the `origin` account key."] - set_controller { - controller: - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - }, + #[doc = "See [`Pallet::set_controller`]."] + set_controller, #[codec(index = 9)] - #[doc = "Sets the ideal number of validators."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "O(1)"] + #[doc = "See [`Pallet::set_validator_count`]."] set_validator_count { #[codec(compact)] new: ::core::primitive::u32, }, #[codec(index = 10)] - #[doc = "Increments the ideal number of validators upto maximum of"] - #[doc = "`ElectionProviderBase::MaxWinners`."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "Same as [`Self::set_validator_count`]."] + #[doc = "See [`Pallet::increase_validator_count`]."] increase_validator_count { #[codec(compact)] additional: ::core::primitive::u32, }, #[codec(index = 11)] - #[doc = "Scale up the ideal number of validators by a factor upto maximum of"] - #[doc = "`ElectionProviderBase::MaxWinners`."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "Same as [`Self::set_validator_count`]."] + #[doc = "See [`Pallet::scale_validator_count`]."] scale_validator_count { factor: runtime_types::sp_arithmetic::per_things::Percent, }, #[codec(index = 12)] - #[doc = "Force there to be no new eras indefinitely."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] - #[doc = ""] - #[doc = "# Warning"] - #[doc = ""] - #[doc = "The election process starts multiple blocks before the end of the era."] - #[doc = "Thus the election process may be ongoing when this is called. In this case the"] - #[doc = "election will continue until the next era is triggered."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- No arguments."] - #[doc = "- Weight: O(1)"] + #[doc = "See [`Pallet::force_no_eras`]."] force_no_eras, #[codec(index = 13)] - #[doc = "Force there to be a new era at the end of the next session. After this, it will be"] - #[doc = "reset to normal (non-forced) behaviour."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] - #[doc = ""] - #[doc = "# Warning"] - #[doc = ""] - #[doc = "The election process starts multiple blocks before the end of the era."] - #[doc = "If this is called just before a new era is triggered, the election process may not"] - #[doc = "have enough blocks to get a result."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- No arguments."] - #[doc = "- Weight: O(1)"] + #[doc = "See [`Pallet::force_new_era`]."] force_new_era, #[codec(index = 14)] - #[doc = "Set the validators who cannot be slashed (if any)."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] + #[doc = "See [`Pallet::set_invulnerables`]."] set_invulnerables { invulnerables: ::std::vec::Vec<::subxt::utils::AccountId32>, }, #[codec(index = 15)] - #[doc = "Force a current staker to become completely unstaked, immediately."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] + #[doc = "See [`Pallet::force_unstake`]."] force_unstake { stash: ::subxt::utils::AccountId32, num_slashing_spans: ::core::primitive::u32, }, #[codec(index = 16)] - #[doc = "Force there to be a new era at the end of sessions indefinitely."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] - #[doc = ""] - #[doc = "# Warning"] - #[doc = ""] - #[doc = "The election process starts multiple blocks before the end of the era."] - #[doc = "If this is called just before a new era is triggered, the election process may not"] - #[doc = "have enough blocks to get a result."] + #[doc = "See [`Pallet::force_new_era_always`]."] force_new_era_always, #[codec(index = 17)] - #[doc = "Cancel enactment of a deferred slash."] - #[doc = ""] - #[doc = "Can be called by the `T::AdminOrigin`."] - #[doc = ""] - #[doc = "Parameters: era and indices of the slashes for that era to kill."] + #[doc = "See [`Pallet::cancel_deferred_slash`]."] cancel_deferred_slash { era: ::core::primitive::u32, slash_indices: ::std::vec::Vec<::core::primitive::u32>, }, #[codec(index = 18)] - #[doc = "Pay out all the stakers behind a single validator for a single era."] - #[doc = ""] - #[doc = "- `validator_stash` is the stash account of the validator. Their nominators, up to"] - #[doc = " `T::MaxNominatorRewardedPerValidator`, will also receive their rewards."] - #[doc = "- `era` may be any era between `[current_era - history_depth; current_era]`."] - #[doc = ""] - #[doc = "The origin of this call must be _Signed_. Any account can call this function, even if"] - #[doc = "it is not one of the stakers."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- At most O(MaxNominatorRewardedPerValidator)."] + #[doc = "See [`Pallet::payout_stakers`]."] payout_stakers { validator_stash: ::subxt::utils::AccountId32, era: ::core::primitive::u32, }, #[codec(index = 19)] - #[doc = "Rebond a portion of the stash scheduled to be unlocked."] - #[doc = ""] - #[doc = "The dispatch origin must be signed by the controller."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- Time complexity: O(L), where L is unlocking chunks"] - #[doc = "- Bounded by `MaxUnlockingChunks`."] + #[doc = "See [`Pallet::rebond`]."] rebond { #[codec(compact)] value: ::core::primitive::u128, }, #[codec(index = 20)] - #[doc = "Remove all data structures concerning a staker/stash once it is at a state where it can"] - #[doc = "be considered `dust` in the staking system. The requirements are:"] - #[doc = ""] - #[doc = "1. the `total_balance` of the stash is below existential deposit."] - #[doc = "2. or, the `ledger.total` of the stash is below existential deposit."] - #[doc = ""] - #[doc = "The former can happen in cases like a slash; the latter when a fully unbonded account"] - #[doc = "is still receiving staking rewards in `RewardDestination::Staked`."] - #[doc = ""] - #[doc = "It can be called by anyone, as long as `stash` meets the above requirements."] - #[doc = ""] - #[doc = "Refunds the transaction fees upon successful execution."] + #[doc = "See [`Pallet::reap_stash`]."] reap_stash { stash: ::subxt::utils::AccountId32, num_slashing_spans: ::core::primitive::u32, }, #[codec(index = 21)] - #[doc = "Remove the given nominations from the calling validator."] - #[doc = ""] - #[doc = "Effects will be felt at the beginning of the next era."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] - #[doc = ""] - #[doc = "- `who`: A list of nominator stash accounts who are nominating this validator which"] - #[doc = " should no longer be nominating this validator."] - #[doc = ""] - #[doc = "Note: Making this call only makes sense if you first set the validator preferences to"] - #[doc = "block any further nominations."] + #[doc = "See [`Pallet::kick`]."] kick { who: ::std::vec::Vec< ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, >, }, #[codec(index = 22)] - #[doc = "Update the various staking configurations ."] - #[doc = ""] - #[doc = "* `min_nominator_bond`: The minimum active bond needed to be a nominator."] - #[doc = "* `min_validator_bond`: The minimum active bond needed to be a validator."] - #[doc = "* `max_nominator_count`: The max number of users who can be a nominator at once. When"] - #[doc = " set to `None`, no limit is enforced."] - #[doc = "* `max_validator_count`: The max number of users who can be a validator at once. When"] - #[doc = " set to `None`, no limit is enforced."] - #[doc = "* `chill_threshold`: The ratio of `max_nominator_count` or `max_validator_count` which"] - #[doc = " should be filled in order for the `chill_other` transaction to work."] - #[doc = "* `min_commission`: The minimum amount of commission that each validators must maintain."] - #[doc = " This is checked only upon calling `validate`. Existing validators are not affected."] - #[doc = ""] - #[doc = "RuntimeOrigin must be Root to call this function."] - #[doc = ""] - #[doc = "NOTE: Existing nominators and validators will not be affected by this update."] - #[doc = "to kick people under the new limits, `chill_other` should be called."] + #[doc = "See [`Pallet::set_staking_configs`]."] set_staking_configs { min_nominator_bond: runtime_types::pallet_staking::pallet::pallet::ConfigOp< @@ -48560,47 +43026,17 @@ pub mod api { >, }, #[codec(index = 23)] - #[doc = "Declare a `controller` to stop participating as either a validator or nominator."] - #[doc = ""] - #[doc = "Effects will be felt at the beginning of the next era."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_, but can be called by anyone."] - #[doc = ""] - #[doc = "If the caller is the same as the controller being targeted, then no further checks are"] - #[doc = "enforced, and this function behaves just like `chill`."] - #[doc = ""] - #[doc = "If the caller is different than the controller being targeted, the following conditions"] - #[doc = "must be met:"] - #[doc = ""] - #[doc = "* `controller` must belong to a nominator who has become non-decodable,"] - #[doc = ""] - #[doc = "Or:"] - #[doc = ""] - #[doc = "* A `ChillThreshold` must be set and checked which defines how close to the max"] - #[doc = " nominators or validators we must reach before users can start chilling one-another."] - #[doc = "* A `MaxNominatorCount` and `MaxValidatorCount` must be set which is used to determine"] - #[doc = " how close we are to the threshold."] - #[doc = "* A `MinNominatorBond` and `MinValidatorBond` must be set and checked, which determines"] - #[doc = " if this is a person that should be chilled because they have not met the threshold"] - #[doc = " bond required."] - #[doc = ""] - #[doc = "This can be helpful if bond requirements are updated, and we need to remove old users"] - #[doc = "who do not satisfy these requirements."] + #[doc = "See [`Pallet::chill_other`]."] chill_other { controller: ::subxt::utils::AccountId32, }, #[codec(index = 24)] - #[doc = "Force a validator to have at least the minimum commission. This will not affect a"] - #[doc = "validator who already has a commission greater than or equal to the minimum. Any account"] - #[doc = "can call this."] + #[doc = "See [`Pallet::force_apply_min_commission`]."] force_apply_min_commission { validator_stash: ::subxt::utils::AccountId32, }, #[codec(index = 25)] - #[doc = "Sets the minimum amount of commission that each validators must maintain."] - #[doc = ""] - #[doc = "This call has lower privilege requirements than `set_staking_config` and can be called"] - #[doc = "by the `T::AdminOrigin`. Root can always call this."] + #[doc = "See [`Pallet::set_min_commission`]."] set_min_commission { new: runtime_types::sp_arithmetic::per_things::Perbill, }, @@ -48633,7 +43069,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "Not a controller account."] @@ -48725,7 +43161,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "The era payout has been set; the first balance is the validator-payout; the second is"] @@ -49057,24 +43493,10 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Set the current time."] - #[doc = ""] - #[doc = "This call should be invoked exactly once per block. It will panic at the finalization"] - #[doc = "phase, if this call hasn't been invoked by that time."] - #[doc = ""] - #[doc = "The timestamp should be greater than the previous one by the amount specified by"] - #[doc = "`MinimumPeriod`."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `Inherent`."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)"] - #[doc = "- 1 storage read and 1 storage mutation (codec `O(1)`). (because of `DidUpdate::take` in"] - #[doc = " `on_finalize`)"] - #[doc = "- 1 event handler `on_timestamp_set`. Must be `O(1)`."] + #[doc = "See [`Pallet::set`]."] set { #[codec(compact)] now: ::core::primitive::u64, @@ -49096,67 +43518,19 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Report something `reason` that deserves a tip and claim any eventual the finder's fee."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "Payment: `TipReportDepositBase` will be reserved from the origin account, as well as"] - #[doc = "`DataDepositPerByte` for each byte in `reason`."] - #[doc = ""] - #[doc = "- `reason`: The reason for, or the thing that deserves, the tip; generally this will be"] - #[doc = " a UTF-8-encoded URL."] - #[doc = "- `who`: The account which should be credited for the tip."] - #[doc = ""] - #[doc = "Emits `NewTip` if successful."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(R)` where `R` length of `reason`."] - #[doc = " - encoding and hashing of 'reason'"] + #[doc = "See [`Pallet::report_awesome`]."] report_awesome { reason: ::std::vec::Vec<::core::primitive::u8>, who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, }, #[codec(index = 1)] - #[doc = "Retract a prior tip-report from `report_awesome`, and cancel the process of tipping."] - #[doc = ""] - #[doc = "If successful, the original deposit will be unreserved."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the tip identified by `hash`"] - #[doc = "must have been reported by the signing account through `report_awesome` (and not"] - #[doc = "through `tip_new`)."] - #[doc = ""] - #[doc = "- `hash`: The identity of the open tip for which a tip value is declared. This is formed"] - #[doc = " as the hash of the tuple of the original tip `reason` and the beneficiary account ID."] - #[doc = ""] - #[doc = "Emits `TipRetracted` if successful."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(1)`"] - #[doc = " - Depends on the length of `T::Hash` which is fixed."] + #[doc = "See [`Pallet::retract_tip`]."] retract_tip { hash: ::subxt::utils::H256 }, #[codec(index = 2)] - #[doc = "Give a tip for something new; no finder's fee will be taken."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the signing account must be a"] - #[doc = "member of the `Tippers` set."] - #[doc = ""] - #[doc = "- `reason`: The reason for, or the thing that deserves, the tip; generally this will be"] - #[doc = " a UTF-8-encoded URL."] - #[doc = "- `who`: The account which should be credited for the tip."] - #[doc = "- `tip_value`: The amount of tip that the sender would like to give. The median tip"] - #[doc = " value of active tippers will be given to the `who`."] - #[doc = ""] - #[doc = "Emits `NewTip` if successful."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(R + T)` where `R` length of `reason`, `T` is the number of tippers."] - #[doc = " - `O(T)`: decoding `Tipper` vec of length `T`. `T` is charged as upper bound given by"] - #[doc = " `ContainsLengthBound`. The actual cost depends on the implementation of"] - #[doc = " `T::Tippers`."] - #[doc = " - `O(R)`: hashing and encoding of reason of length `R`"] + #[doc = "See [`Pallet::tip_new`]."] tip_new { reason: ::std::vec::Vec<::core::primitive::u8>, who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -49164,58 +43538,17 @@ pub mod api { tip_value: ::core::primitive::u128, }, #[codec(index = 3)] - #[doc = "Declare a tip value for an already-open tip."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the signing account must be a"] - #[doc = "member of the `Tippers` set."] - #[doc = ""] - #[doc = "- `hash`: The identity of the open tip for which a tip value is declared. This is formed"] - #[doc = " as the hash of the tuple of the hash of the original tip `reason` and the beneficiary"] - #[doc = " account ID."] - #[doc = "- `tip_value`: The amount of tip that the sender would like to give. The median tip"] - #[doc = " value of active tippers will be given to the `who`."] - #[doc = ""] - #[doc = "Emits `TipClosing` if the threshold of tippers has been reached and the countdown period"] - #[doc = "has started."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length `T`, insert"] - #[doc = " tip and check closing, `T` is charged as upper bound given by `ContainsLengthBound`."] - #[doc = " The actual cost depends on the implementation of `T::Tippers`."] - #[doc = ""] - #[doc = " Actually weight could be lower as it depends on how many tips are in `OpenTip` but it"] - #[doc = " is weighted as if almost full i.e of length `T-1`."] + #[doc = "See [`Pallet::tip`]."] tip { hash: ::subxt::utils::H256, #[codec(compact)] tip_value: ::core::primitive::u128, }, #[codec(index = 4)] - #[doc = "Close and payout a tip."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "The tip identified by `hash` must have finished its countdown period."] - #[doc = ""] - #[doc = "- `hash`: The identity of the open tip for which a tip value is declared. This is formed"] - #[doc = " as the hash of the tuple of the original tip `reason` and the beneficiary account ID."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- : `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length `T`. `T`"] - #[doc = " is charged as upper bound given by `ContainsLengthBound`. The actual cost depends on"] - #[doc = " the implementation of `T::Tippers`."] + #[doc = "See [`Pallet::close_tip`]."] close_tip { hash: ::subxt::utils::H256 }, #[codec(index = 5)] - #[doc = "Remove and slash an already-open tip."] - #[doc = ""] - #[doc = "May only be called from `T::RejectOrigin`."] - #[doc = ""] - #[doc = "As a result, the finder is slashed and the deposits are lost."] - #[doc = ""] - #[doc = "Emits `TipSlashed` if successful."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- O(1)."] + #[doc = "See [`Pallet::slash_tip`]."] slash_tip { hash: ::subxt::utils::H256 }, } #[derive( @@ -49228,7 +43561,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "The reason given is just too big."] @@ -49259,7 +43592,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "A new tip suggestion has been opened."] @@ -49320,7 +43653,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,"] @@ -49423,71 +43756,36 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Put forward a suggestion for spending. A deposit proportional to the value"] - #[doc = "is reserved and slashed if the proposal is rejected. It is returned once the"] - #[doc = "proposal is awarded."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- O(1)"] + #[doc = "See [`Pallet::propose_spend`]."] propose_spend { #[codec(compact)] value: ::core::primitive::u128, beneficiary: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, }, #[codec(index = 1)] - #[doc = "Reject a proposed spend. The original deposit will be slashed."] - #[doc = ""] - #[doc = "May only be called from `T::RejectOrigin`."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- O(1)"] + #[doc = "See [`Pallet::reject_proposal`]."] reject_proposal { #[codec(compact)] proposal_id: ::core::primitive::u32, }, #[codec(index = 2)] - #[doc = "Approve a proposal. At a later time, the proposal will be allocated to the beneficiary"] - #[doc = "and the original deposit will be returned."] - #[doc = ""] - #[doc = "May only be called from `T::ApproveOrigin`."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = " - O(1)."] + #[doc = "See [`Pallet::approve_proposal`]."] approve_proposal { #[codec(compact)] proposal_id: ::core::primitive::u32, }, #[codec(index = 3)] - #[doc = "Propose and approve a spend of treasury funds."] - #[doc = ""] - #[doc = "- `origin`: Must be `SpendOrigin` with the `Success` value being at least `amount`."] - #[doc = "- `amount`: The amount to be transferred from the treasury to the `beneficiary`."] - #[doc = "- `beneficiary`: The destination account for the transfer."] - #[doc = ""] - #[doc = "NOTE: For record-keeping purposes, the proposer is deemed to be equivalent to the"] - #[doc = "beneficiary."] + #[doc = "See [`Pallet::spend`]."] spend { #[codec(compact)] amount: ::core::primitive::u128, beneficiary: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, }, #[codec(index = 4)] - #[doc = "Force a previously approved proposal to be removed from the approval queue."] - #[doc = "The original deposit will no longer be returned."] - #[doc = ""] - #[doc = "May only be called from `T::RejectOrigin`."] - #[doc = "- `proposal_id`: The index of a proposal"] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- O(A) where `A` is the number of approvals"] - #[doc = ""] - #[doc = "Errors:"] - #[doc = "- `ProposalNotApproved`: The `proposal_id` supplied was not found in the approval queue,"] - #[doc = "i.e., the proposal has not been approved. This could also mean the proposal does not"] - #[doc = "exist altogether, thus there is no way it would have been approved in the first place."] + #[doc = "See [`Pallet::remove_approval`]."] remove_approval { #[codec(compact)] proposal_id: ::core::primitive::u32, @@ -49532,7 +43830,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "New proposal."] @@ -49616,100 +43914,37 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Send a batch of dispatch calls."] - #[doc = ""] - #[doc = "May be called from any origin except `None`."] - #[doc = ""] - #[doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] - #[doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."] - #[doc = ""] - #[doc = "If origin is root then the calls are dispatched without checking origin filter. (This"] - #[doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- O(C) where C is the number of calls to be batched."] - #[doc = ""] - #[doc = "This will return `Ok` in all circumstances. To determine the success of the batch, an"] - #[doc = "event is deposited. If a call failed and the batch was interrupted, then the"] - #[doc = "`BatchInterrupted` event is deposited, along with the number of successful calls made"] - #[doc = "and the error of the failed call. If all were successful, then the `BatchCompleted`"] - #[doc = "event is deposited."] + #[doc = "See [`Pallet::batch`]."] batch { calls: ::std::vec::Vec, }, #[codec(index = 1)] - #[doc = "Send a call through an indexed pseudonym of the sender."] - #[doc = ""] - #[doc = "Filter from origin are passed along. The call will be dispatched with an origin which"] - #[doc = "use the same filter as the origin of this call."] - #[doc = ""] - #[doc = "NOTE: If you need to ensure that any account-based filtering is not honored (i.e."] - #[doc = "because you expect `proxy` to have been used prior in the call stack and you do not want"] - #[doc = "the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1`"] - #[doc = "in the Multisig pallet instead."] - #[doc = ""] - #[doc = "NOTE: Prior to version *12, this was called `as_limited_sub`."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = "See [`Pallet::as_derivative`]."] as_derivative { index: ::core::primitive::u16, call: ::std::boxed::Box, }, #[codec(index = 2)] - #[doc = "Send a batch of dispatch calls and atomically execute them."] - #[doc = "The whole transaction will rollback and fail if any of the calls failed."] - #[doc = ""] - #[doc = "May be called from any origin except `None`."] - #[doc = ""] - #[doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] - #[doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."] - #[doc = ""] - #[doc = "If origin is root then the calls are dispatched without checking origin filter. (This"] - #[doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- O(C) where C is the number of calls to be batched."] + #[doc = "See [`Pallet::batch_all`]."] batch_all { calls: ::std::vec::Vec, }, #[codec(index = 3)] - #[doc = "Dispatches a function call with a provided origin."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Root_."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- O(1)."] + #[doc = "See [`Pallet::dispatch_as`]."] dispatch_as { as_origin: ::std::boxed::Box, call: ::std::boxed::Box, }, #[codec(index = 4)] - #[doc = "Send a batch of dispatch calls."] - #[doc = "Unlike `batch`, it allows errors and won't interrupt."] - #[doc = ""] - #[doc = "May be called from any origin except `None`."] - #[doc = ""] - #[doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] - #[doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."] - #[doc = ""] - #[doc = "If origin is root then the calls are dispatch without checking origin filter. (This"] - #[doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- O(C) where C is the number of calls to be batched."] + #[doc = "See [`Pallet::force_batch`]."] force_batch { calls: ::std::vec::Vec, }, #[codec(index = 5)] - #[doc = "Dispatch a function call with a specified weight."] - #[doc = ""] - #[doc = "This function does not check the weight of the call, and instead allows the"] - #[doc = "Root origin to specify the weight of the call."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Root_."] + #[doc = "See [`Pallet::with_weight`]."] with_weight { call: ::std::boxed::Box, weight: runtime_types::sp_weights::weight_v2::Weight, @@ -49725,7 +43960,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "Too many calls batched."] @@ -49741,7 +43976,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "Batch of dispatches did not complete fully. Index of first failing dispatch given, as"] @@ -49787,48 +44022,18 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Unlock any vested funds of the sender account."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have funds still"] - #[doc = "locked under this pallet."] - #[doc = ""] - #[doc = "Emits either `VestingCompleted` or `VestingUpdated`."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(1)`."] + #[doc = "See [`Pallet::vest`]."] vest, #[codec(index = 1)] - #[doc = "Unlock any vested funds of a `target` account."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "- `target`: The account whose vested funds should be unlocked. Must have funds still"] - #[doc = "locked under this pallet."] - #[doc = ""] - #[doc = "Emits either `VestingCompleted` or `VestingUpdated`."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(1)`."] + #[doc = "See [`Pallet::vest_other`]."] vest_other { target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, }, #[codec(index = 2)] - #[doc = "Create a vested transfer."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "- `target`: The account receiving the vested funds."] - #[doc = "- `schedule`: The vesting schedule attached to the transfer."] - #[doc = ""] - #[doc = "Emits `VestingCreated`."] - #[doc = ""] - #[doc = "NOTE: This will unlock all schedules through the current block."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(1)`."] + #[doc = "See [`Pallet::vested_transfer`]."] vested_transfer { target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, schedule: runtime_types::pallet_vesting::vesting_info::VestingInfo< @@ -49837,20 +44042,7 @@ pub mod api { >, }, #[codec(index = 3)] - #[doc = "Force a vested transfer."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Root_."] - #[doc = ""] - #[doc = "- `source`: The account whose funds should be transferred."] - #[doc = "- `target`: The account that should be transferred the vested funds."] - #[doc = "- `schedule`: The vesting schedule attached to the transfer."] - #[doc = ""] - #[doc = "Emits `VestingCreated`."] - #[doc = ""] - #[doc = "NOTE: This will unlock all schedules through the current block."] - #[doc = ""] - #[doc = "## Complexity"] - #[doc = "- `O(1)`."] + #[doc = "See [`Pallet::force_vested_transfer`]."] force_vested_transfer { source: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, @@ -49860,27 +44052,7 @@ pub mod api { >, }, #[codec(index = 4)] - #[doc = "Merge two vesting schedules together, creating a new vesting schedule that unlocks over"] - #[doc = "the highest possible start and end blocks. If both schedules have already started the"] - #[doc = "current block will be used as the schedule start; with the caveat that if one schedule"] - #[doc = "is finished by the current block, the other will be treated as the new merged schedule,"] - #[doc = "unmodified."] - #[doc = ""] - #[doc = "NOTE: If `schedule1_index == schedule2_index` this is a no-op."] - #[doc = "NOTE: This will unlock all schedules through the current block prior to merging."] - #[doc = "NOTE: If both schedules have ended by the current block, no new schedule will be created"] - #[doc = "and both will be removed."] - #[doc = ""] - #[doc = "Merged schedule attributes:"] - #[doc = "- `starting_block`: `MAX(schedule1.starting_block, scheduled2.starting_block,"] - #[doc = " current_block)`."] - #[doc = "- `ending_block`: `MAX(schedule1.ending_block, schedule2.ending_block)`."] - #[doc = "- `locked`: `schedule1.locked_at(current_block) + schedule2.locked_at(current_block)`."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "- `schedule1_index`: index of the first schedule to merge."] - #[doc = "- `schedule2_index`: index of the second schedule to merge."] + #[doc = "See [`Pallet::merge_schedules`]."] merge_schedules { schedule1_index: ::core::primitive::u32, schedule2_index: ::core::primitive::u32, @@ -49925,7 +44097,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "The amount vested has been updated. This could indicate a change in funds available."] @@ -49990,19 +44162,23 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] + #[doc = "See [`Pallet::whitelist_call`]."] whitelist_call { call_hash: ::subxt::utils::H256 }, #[codec(index = 1)] + #[doc = "See [`Pallet::remove_whitelisted_call`]."] remove_whitelisted_call { call_hash: ::subxt::utils::H256 }, #[codec(index = 2)] + #[doc = "See [`Pallet::dispatch_whitelisted_call`]."] dispatch_whitelisted_call { call_hash: ::subxt::utils::H256, call_encoded_len: ::core::primitive::u32, call_weight_witness: runtime_types::sp_weights::weight_v2::Weight, }, #[codec(index = 3)] + #[doc = "See [`Pallet::dispatch_whitelisted_call_with_preimage`]."] dispatch_whitelisted_call_with_preimage { call: ::std::boxed::Box, }, @@ -50017,7 +44193,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "The preimage of the call hash could not be loaded."] @@ -50045,7 +44221,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] CallWhitelisted { call_hash: ::subxt::utils::H256 }, @@ -50078,29 +44254,16 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] + #[doc = "See [`Pallet::send`]."] send { dest: ::std::boxed::Box, message: ::std::boxed::Box, }, #[codec(index = 1)] - #[doc = "Teleport some assets from the local chain to some destination chain."] - #[doc = ""] - #[doc = "Fee payment on the destination side is made from the asset in the `assets` vector of"] - #[doc = "index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited,"] - #[doc = "with all fees taken as needed from the asset."] - #[doc = ""] - #[doc = "- `origin`: Must be capable of withdrawing the `assets` and executing XCM."] - #[doc = "- `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send"] - #[doc = " from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain."] - #[doc = "- `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be"] - #[doc = " an `AccountId32` value."] - #[doc = "- `assets`: The assets to be withdrawn. The first item should be the currency used to to pay the fee on the"] - #[doc = " `dest` side. May not be empty."] - #[doc = "- `fee_asset_item`: The index into `assets` of the item which should be used to pay"] - #[doc = " fees."] + #[doc = "See [`Pallet::teleport_assets`]."] teleport_assets { dest: ::std::boxed::Box, beneficiary: ::std::boxed::Box, @@ -50108,22 +44271,7 @@ pub mod api { fee_asset_item: ::core::primitive::u32, }, #[codec(index = 2)] - #[doc = "Transfer some assets from the local chain to the sovereign account of a destination"] - #[doc = "chain and forward a notification XCM."] - #[doc = ""] - #[doc = "Fee payment on the destination side is made from the asset in the `assets` vector of"] - #[doc = "index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited,"] - #[doc = "with all fees taken as needed from the asset."] - #[doc = ""] - #[doc = "- `origin`: Must be capable of withdrawing the `assets` and executing XCM."] - #[doc = "- `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send"] - #[doc = " from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain."] - #[doc = "- `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be"] - #[doc = " an `AccountId32` value."] - #[doc = "- `assets`: The assets to be withdrawn. This should include the assets used to pay the fee on the"] - #[doc = " `dest` side."] - #[doc = "- `fee_asset_item`: The index into `assets` of the item which should be used to pay"] - #[doc = " fees."] + #[doc = "See [`Pallet::reserve_transfer_assets`]."] reserve_transfer_assets { dest: ::std::boxed::Box, beneficiary: ::std::boxed::Box, @@ -50131,79 +44279,35 @@ pub mod api { fee_asset_item: ::core::primitive::u32, }, #[codec(index = 3)] - #[doc = "Execute an XCM message from a local, signed, origin."] - #[doc = ""] - #[doc = "An event is deposited indicating whether `msg` could be executed completely or only"] - #[doc = "partially."] - #[doc = ""] - #[doc = "No more than `max_weight` will be used in its attempted execution. If this is less than the"] - #[doc = "maximum amount of weight that the message could take to be executed, then no execution"] - #[doc = "attempt will be made."] - #[doc = ""] - #[doc = "NOTE: A successful return to this does *not* imply that the `msg` was executed successfully"] - #[doc = "to completion; only that *some* of it was executed."] + #[doc = "See [`Pallet::execute`]."] execute { message: ::std::boxed::Box, max_weight: runtime_types::sp_weights::weight_v2::Weight, }, #[codec(index = 4)] - #[doc = "Extoll that a particular destination can be communicated with through a particular"] - #[doc = "version of XCM."] - #[doc = ""] - #[doc = "- `origin`: Must be an origin specified by AdminOrigin."] - #[doc = "- `location`: The destination that is being described."] - #[doc = "- `xcm_version`: The latest version of XCM that `location` supports."] + #[doc = "See [`Pallet::force_xcm_version`]."] force_xcm_version { location: ::std::boxed::Box, - xcm_version: ::core::primitive::u32, + version: ::core::primitive::u32, }, #[codec(index = 5)] - #[doc = "Set a safe XCM version (the version that XCM should be encoded with if the most recent"] - #[doc = "version a destination can accept is unknown)."] - #[doc = ""] - #[doc = "- `origin`: Must be an origin specified by AdminOrigin."] - #[doc = "- `maybe_xcm_version`: The default XCM encoding version, or `None` to disable."] + #[doc = "See [`Pallet::force_default_xcm_version`]."] force_default_xcm_version { maybe_xcm_version: ::core::option::Option<::core::primitive::u32>, }, #[codec(index = 6)] - #[doc = "Ask a location to notify us regarding their XCM version and any changes to it."] - #[doc = ""] - #[doc = "- `origin`: Must be an origin specified by AdminOrigin."] - #[doc = "- `location`: The location to which we should subscribe for XCM version notifications."] + #[doc = "See [`Pallet::force_subscribe_version_notify`]."] force_subscribe_version_notify { location: ::std::boxed::Box, }, #[codec(index = 7)] - #[doc = "Require that a particular destination should no longer notify us regarding any XCM"] - #[doc = "version changes."] - #[doc = ""] - #[doc = "- `origin`: Must be an origin specified by AdminOrigin."] - #[doc = "- `location`: The location to which we are currently subscribed for XCM version"] - #[doc = " notifications which we no longer desire."] + #[doc = "See [`Pallet::force_unsubscribe_version_notify`]."] force_unsubscribe_version_notify { location: ::std::boxed::Box, }, #[codec(index = 8)] - #[doc = "Transfer some assets from the local chain to the sovereign account of a destination"] - #[doc = "chain and forward a notification XCM."] - #[doc = ""] - #[doc = "Fee payment on the destination side is made from the asset in the `assets` vector of"] - #[doc = "index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight"] - #[doc = "is needed than `weight_limit`, then the operation will fail and the assets send may be"] - #[doc = "at risk."] - #[doc = ""] - #[doc = "- `origin`: Must be capable of withdrawing the `assets` and executing XCM."] - #[doc = "- `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send"] - #[doc = " from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain."] - #[doc = "- `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be"] - #[doc = " an `AccountId32` value."] - #[doc = "- `assets`: The assets to be withdrawn. This should include the assets used to pay the fee on the"] - #[doc = " `dest` side."] - #[doc = "- `fee_asset_item`: The index into `assets` of the item which should be used to pay"] - #[doc = " fees."] - #[doc = "- `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase."] + #[doc = "See [`Pallet::limited_reserve_transfer_assets`]."] limited_reserve_transfer_assets { dest: ::std::boxed::Box, beneficiary: ::std::boxed::Box, @@ -50212,23 +44316,7 @@ pub mod api { weight_limit: runtime_types::xcm::v3::WeightLimit, }, #[codec(index = 9)] - #[doc = "Teleport some assets from the local chain to some destination chain."] - #[doc = ""] - #[doc = "Fee payment on the destination side is made from the asset in the `assets` vector of"] - #[doc = "index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight"] - #[doc = "is needed than `weight_limit`, then the operation will fail and the assets send may be"] - #[doc = "at risk."] - #[doc = ""] - #[doc = "- `origin`: Must be capable of withdrawing the `assets` and executing XCM."] - #[doc = "- `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send"] - #[doc = " from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain."] - #[doc = "- `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be"] - #[doc = " an `AccountId32` value."] - #[doc = "- `assets`: The assets to be withdrawn. The first item should be the currency used to to pay the fee on the"] - #[doc = " `dest` side. May not be empty."] - #[doc = "- `fee_asset_item`: The index into `assets` of the item which should be used to pay"] - #[doc = " fees."] - #[doc = "- `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase."] + #[doc = "See [`Pallet::limited_teleport_assets`]."] limited_teleport_assets { dest: ::std::boxed::Box, beneficiary: ::std::boxed::Box, @@ -50237,10 +44325,7 @@ pub mod api { weight_limit: runtime_types::xcm::v3::WeightLimit, }, #[codec(index = 10)] - #[doc = "Set or unset the global suspension state of the XCM executor."] - #[doc = ""] - #[doc = "- `origin`: Must be an origin specified by AdminOrigin."] - #[doc = "- `suspended`: `true` to suspend, `false` to resume."] + #[doc = "See [`Pallet::force_suspension`]."] force_suspension { suspended: ::core::primitive::bool }, } #[derive( @@ -50253,7 +44338,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "The desired destination was unreachable, generally because there is a no way of routing"] @@ -50316,7 +44401,7 @@ pub mod api { #[doc = "A remote lock with the corresponding data could not be found."] LockNotFound, #[codec(index = 19)] - #[doc = "The unlock operation cannot succeed because there are still users of the lock."] + #[doc = "The unlock operation cannot succeed because there are still consumers of the lock."] InUse, } #[derive( @@ -50329,95 +44414,83 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "Execution of an XCM message was attempted."] - #[doc = ""] - #[doc = "\\[ outcome \\]"] - Attempted(runtime_types::xcm::v3::traits::Outcome), + Attempted { + outcome: runtime_types::xcm::v3::traits::Outcome, + }, #[codec(index = 1)] #[doc = "A XCM message was sent."] - #[doc = ""] - #[doc = "\\[ origin, destination, message \\]"] - Sent( - runtime_types::xcm::v3::multilocation::MultiLocation, - runtime_types::xcm::v3::multilocation::MultiLocation, - runtime_types::xcm::v3::Xcm, - ), + Sent { + origin: runtime_types::xcm::v3::multilocation::MultiLocation, + destination: runtime_types::xcm::v3::multilocation::MultiLocation, + message: runtime_types::xcm::v3::Xcm, + message_id: [::core::primitive::u8; 32usize], + }, #[codec(index = 2)] #[doc = "Query response received which does not match a registered query. This may be because a"] #[doc = "matching query was never registered, it may be because it is a duplicate response, or"] #[doc = "because the query timed out."] - #[doc = ""] - #[doc = "\\[ origin location, id \\]"] - UnexpectedResponse( - runtime_types::xcm::v3::multilocation::MultiLocation, - ::core::primitive::u64, - ), + UnexpectedResponse { + origin: runtime_types::xcm::v3::multilocation::MultiLocation, + query_id: ::core::primitive::u64, + }, #[codec(index = 3)] #[doc = "Query response has been received and is ready for taking with `take_response`. There is"] #[doc = "no registered notification call."] - #[doc = ""] - #[doc = "\\[ id, response \\]"] - ResponseReady(::core::primitive::u64, runtime_types::xcm::v3::Response), + ResponseReady { + query_id: ::core::primitive::u64, + response: runtime_types::xcm::v3::Response, + }, #[codec(index = 4)] #[doc = "Query response has been received and query is removed. The registered notification has"] #[doc = "been dispatched and executed successfully."] - #[doc = ""] - #[doc = "\\[ id, pallet index, call index \\]"] - Notified( - ::core::primitive::u64, - ::core::primitive::u8, - ::core::primitive::u8, - ), + Notified { + query_id: ::core::primitive::u64, + pallet_index: ::core::primitive::u8, + call_index: ::core::primitive::u8, + }, #[codec(index = 5)] #[doc = "Query response has been received and query is removed. The registered notification could"] #[doc = "not be dispatched because the dispatch weight is greater than the maximum weight"] #[doc = "originally budgeted by this runtime for the query result."] - #[doc = ""] - #[doc = "\\[ id, pallet index, call index, actual weight, max budgeted weight \\]"] - NotifyOverweight( - ::core::primitive::u64, - ::core::primitive::u8, - ::core::primitive::u8, - runtime_types::sp_weights::weight_v2::Weight, - runtime_types::sp_weights::weight_v2::Weight, - ), + NotifyOverweight { + query_id: ::core::primitive::u64, + pallet_index: ::core::primitive::u8, + call_index: ::core::primitive::u8, + actual_weight: runtime_types::sp_weights::weight_v2::Weight, + max_budgeted_weight: runtime_types::sp_weights::weight_v2::Weight, + }, #[codec(index = 6)] #[doc = "Query response has been received and query is removed. There was a general error with"] #[doc = "dispatching the notification call."] - #[doc = ""] - #[doc = "\\[ id, pallet index, call index \\]"] - NotifyDispatchError( - ::core::primitive::u64, - ::core::primitive::u8, - ::core::primitive::u8, - ), + NotifyDispatchError { + query_id: ::core::primitive::u64, + pallet_index: ::core::primitive::u8, + call_index: ::core::primitive::u8, + }, #[codec(index = 7)] #[doc = "Query response has been received and query is removed. The dispatch was unable to be"] #[doc = "decoded into a `Call`; this might be due to dispatch function having a signature which"] #[doc = "is not `(origin, QueryId, Response)`."] - #[doc = ""] - #[doc = "\\[ id, pallet index, call index \\]"] - NotifyDecodeFailed( - ::core::primitive::u64, - ::core::primitive::u8, - ::core::primitive::u8, - ), + NotifyDecodeFailed { + query_id: ::core::primitive::u64, + pallet_index: ::core::primitive::u8, + call_index: ::core::primitive::u8, + }, #[codec(index = 8)] #[doc = "Expected query response has been received but the origin location of the response does"] #[doc = "not match that expected. The query remains registered for a later, valid, response to"] #[doc = "be received and acted upon."] - #[doc = ""] - #[doc = "\\[ origin location, id, expected location \\]"] - InvalidResponder( - runtime_types::xcm::v3::multilocation::MultiLocation, - ::core::primitive::u64, - ::core::option::Option< + InvalidResponder { + origin: runtime_types::xcm::v3::multilocation::MultiLocation, + query_id: ::core::primitive::u64, + expected_location: ::core::option::Option< runtime_types::xcm::v3::multilocation::MultiLocation, >, - ), + }, #[codec(index = 9)] #[doc = "Expected query response has been received but the expected origin location placed in"] #[doc = "storage by this runtime previously cannot be decoded. The query remains registered."] @@ -50426,65 +44499,52 @@ pub mod api { #[doc = "runtime should be readable prior to query timeout) and dangerous since the possibly"] #[doc = "valid response will be dropped. Manual governance intervention is probably going to be"] #[doc = "needed."] - #[doc = ""] - #[doc = "\\[ origin location, id \\]"] - InvalidResponderVersion( - runtime_types::xcm::v3::multilocation::MultiLocation, - ::core::primitive::u64, - ), + InvalidResponderVersion { + origin: runtime_types::xcm::v3::multilocation::MultiLocation, + query_id: ::core::primitive::u64, + }, #[codec(index = 10)] #[doc = "Received query response has been read and removed."] - #[doc = ""] - #[doc = "\\[ id \\]"] - ResponseTaken(::core::primitive::u64), + ResponseTaken { query_id: ::core::primitive::u64 }, #[codec(index = 11)] #[doc = "Some assets have been placed in an asset trap."] - #[doc = ""] - #[doc = "\\[ hash, origin, assets \\]"] - AssetsTrapped( - ::subxt::utils::H256, - runtime_types::xcm::v3::multilocation::MultiLocation, - runtime_types::xcm::VersionedMultiAssets, - ), + AssetsTrapped { + hash: ::subxt::utils::H256, + origin: runtime_types::xcm::v3::multilocation::MultiLocation, + assets: runtime_types::xcm::VersionedMultiAssets, + }, #[codec(index = 12)] #[doc = "An XCM version change notification message has been attempted to be sent."] #[doc = ""] #[doc = "The cost of sending it (borne by the chain) is included."] - #[doc = ""] - #[doc = "\\[ destination, result, cost \\]"] - VersionChangeNotified( - runtime_types::xcm::v3::multilocation::MultiLocation, - ::core::primitive::u32, - runtime_types::xcm::v3::multiasset::MultiAssets, - ), + VersionChangeNotified { + destination: runtime_types::xcm::v3::multilocation::MultiLocation, + result: ::core::primitive::u32, + cost: runtime_types::xcm::v3::multiasset::MultiAssets, + message_id: [::core::primitive::u8; 32usize], + }, #[codec(index = 13)] #[doc = "The supported version of a location has been changed. This might be through an"] #[doc = "automatic notification or a manual intervention."] - #[doc = ""] - #[doc = "\\[ location, XCM version \\]"] - SupportedVersionChanged( - runtime_types::xcm::v3::multilocation::MultiLocation, - ::core::primitive::u32, - ), + SupportedVersionChanged { + location: runtime_types::xcm::v3::multilocation::MultiLocation, + version: ::core::primitive::u32, + }, #[codec(index = 14)] #[doc = "A given location which had a version change subscription was dropped owing to an error"] #[doc = "sending the notification to it."] - #[doc = ""] - #[doc = "\\[ location, query ID, error \\]"] - NotifyTargetSendFail( - runtime_types::xcm::v3::multilocation::MultiLocation, - ::core::primitive::u64, - runtime_types::xcm::v3::traits::Error, - ), + NotifyTargetSendFail { + location: runtime_types::xcm::v3::multilocation::MultiLocation, + query_id: ::core::primitive::u64, + error: runtime_types::xcm::v3::traits::Error, + }, #[codec(index = 15)] #[doc = "A given location which had a version change subscription was dropped owing to an error"] #[doc = "migrating the location to our new XCM format."] - #[doc = ""] - #[doc = "\\[ location, query ID \\]"] - NotifyTargetMigrationFail( - runtime_types::xcm::VersionedMultiLocation, - ::core::primitive::u64, - ), + NotifyTargetMigrationFail { + location: runtime_types::xcm::VersionedMultiLocation, + query_id: ::core::primitive::u64, + }, #[codec(index = 16)] #[doc = "Expected query response has been received but the expected querier location placed in"] #[doc = "storage by this runtime previously cannot be decoded. The query remains registered."] @@ -50493,68 +44553,57 @@ pub mod api { #[doc = "runtime should be readable prior to query timeout) and dangerous since the possibly"] #[doc = "valid response will be dropped. Manual governance intervention is probably going to be"] #[doc = "needed."] - #[doc = ""] - #[doc = "\\[ origin location, id \\]"] - InvalidQuerierVersion( - runtime_types::xcm::v3::multilocation::MultiLocation, - ::core::primitive::u64, - ), + InvalidQuerierVersion { + origin: runtime_types::xcm::v3::multilocation::MultiLocation, + query_id: ::core::primitive::u64, + }, #[codec(index = 17)] #[doc = "Expected query response has been received but the querier location of the response does"] #[doc = "not match the expected. The query remains registered for a later, valid, response to"] #[doc = "be received and acted upon."] - #[doc = ""] - #[doc = "\\[ origin location, id, expected querier, maybe actual querier \\]"] - InvalidQuerier( - runtime_types::xcm::v3::multilocation::MultiLocation, - ::core::primitive::u64, - runtime_types::xcm::v3::multilocation::MultiLocation, - ::core::option::Option< + InvalidQuerier { + origin: runtime_types::xcm::v3::multilocation::MultiLocation, + query_id: ::core::primitive::u64, + expected_querier: runtime_types::xcm::v3::multilocation::MultiLocation, + maybe_actual_querier: ::core::option::Option< runtime_types::xcm::v3::multilocation::MultiLocation, >, - ), + }, #[codec(index = 18)] #[doc = "A remote has requested XCM version change notification from us and we have honored it."] #[doc = "A version information message is sent to them and its cost is included."] - #[doc = ""] - #[doc = "\\[ destination location, cost \\]"] - VersionNotifyStarted( - runtime_types::xcm::v3::multilocation::MultiLocation, - runtime_types::xcm::v3::multiasset::MultiAssets, - ), + VersionNotifyStarted { + destination: runtime_types::xcm::v3::multilocation::MultiLocation, + cost: runtime_types::xcm::v3::multiasset::MultiAssets, + message_id: [::core::primitive::u8; 32usize], + }, #[codec(index = 19)] - #[doc = "We have requested that a remote chain sends us XCM version change notifications."] - #[doc = ""] - #[doc = "\\[ destination location, cost \\]"] - VersionNotifyRequested( - runtime_types::xcm::v3::multilocation::MultiLocation, - runtime_types::xcm::v3::multiasset::MultiAssets, - ), + #[doc = "We have requested that a remote chain send us XCM version change notifications."] + VersionNotifyRequested { + destination: runtime_types::xcm::v3::multilocation::MultiLocation, + cost: runtime_types::xcm::v3::multiasset::MultiAssets, + message_id: [::core::primitive::u8; 32usize], + }, #[codec(index = 20)] #[doc = "We have requested that a remote chain stops sending us XCM version change notifications."] - #[doc = ""] - #[doc = "\\[ destination location, cost \\]"] - VersionNotifyUnrequested( - runtime_types::xcm::v3::multilocation::MultiLocation, - runtime_types::xcm::v3::multiasset::MultiAssets, - ), + VersionNotifyUnrequested { + destination: runtime_types::xcm::v3::multilocation::MultiLocation, + cost: runtime_types::xcm::v3::multiasset::MultiAssets, + message_id: [::core::primitive::u8; 32usize], + }, #[codec(index = 21)] #[doc = "Fees were paid from a location for an operation (often for using `SendXcm`)."] - #[doc = ""] - #[doc = "\\[ paying location, fees \\]"] - FeesPaid( - runtime_types::xcm::v3::multilocation::MultiLocation, - runtime_types::xcm::v3::multiasset::MultiAssets, - ), + FeesPaid { + paying: runtime_types::xcm::v3::multilocation::MultiLocation, + fees: runtime_types::xcm::v3::multiasset::MultiAssets, + }, #[codec(index = 22)] #[doc = "Some assets have been claimed from an asset trap"] - #[doc = ""] - #[doc = "\\[ hash, origin, assets \\]"] - AssetsClaimed( - ::subxt::utils::H256, - runtime_types::xcm::v3::multilocation::MultiLocation, - runtime_types::xcm::VersionedMultiAssets, - ), + AssetsClaimed { + hash: ::subxt::utils::H256, + origin: runtime_types::xcm::v3::multilocation::MultiLocation, + assets: runtime_types::xcm::VersionedMultiAssets, + }, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -50613,11 +44662,14 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct RemoteLockedFungibleRecord { + pub struct RemoteLockedFungibleRecord<_0> { pub amount: ::core::primitive::u128, pub owner: runtime_types::xcm::VersionedMultiLocation, pub locker: runtime_types::xcm::VersionedMultiLocation, - pub users: ::core::primitive::u32, + pub consumers: runtime_types::bounded_collections::bounded_vec::BoundedVec<( + _0, + ::core::primitive::u128, + )>, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -50766,7 +44818,7 @@ pub mod api { } pub mod polkadot_primitives { use super::runtime_types; - pub mod v4 { + pub mod v5 { use super::runtime_types; pub mod assignment_app { use super::runtime_types; @@ -50830,12 +44882,12 @@ pub mod api { PrecheckingMaxMemory(::core::primitive::u64), #[codec(index = 5)] PvfPrepTimeout( - runtime_types::polkadot_primitives::v4::PvfPrepTimeoutKind, + runtime_types::polkadot_primitives::v5::PvfPrepTimeoutKind, ::core::primitive::u64, ), #[codec(index = 6)] PvfExecTimeout( - runtime_types::polkadot_primitives::v4::PvfExecTimeoutKind, + runtime_types::polkadot_primitives::v5::PvfExecTimeoutKind, ::core::primitive::u64, ), #[codec(index = 7)] @@ -50853,7 +44905,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ExecutorParams( pub ::std::vec::Vec< - runtime_types::polkadot_primitives::v4::executor_params::ExecutorParam, + runtime_types::polkadot_primitives::v5::executor_params::ExecutorParam, >, ); } @@ -50871,13 +44923,94 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UncheckedSigned<_0, _1> { pub payload: _0, - pub validator_index: runtime_types::polkadot_primitives::v4::ValidatorIndex, + pub validator_index: runtime_types::polkadot_primitives::v5::ValidatorIndex, pub signature: - runtime_types::polkadot_primitives::v4::validator_app::Signature, + runtime_types::polkadot_primitives::v5::validator_app::Signature, #[codec(skip)] pub __subxt_unused_type_params: ::core::marker::PhantomData<_1>, } } + pub mod slashing { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct DisputeProof { + pub time_slot: + runtime_types::polkadot_primitives::v5::slashing::DisputesTimeSlot, + pub kind: + runtime_types::polkadot_primitives::v5::slashing::SlashingOffenceKind, + pub validator_index: runtime_types::polkadot_primitives::v5::ValidatorIndex, + pub validator_id: + runtime_types::polkadot_primitives::v5::validator_app::Public, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct DisputesTimeSlot { + pub session_index: ::core::primitive::u32, + pub candidate_hash: runtime_types::polkadot_core_primitives::CandidateHash, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct OpaqueKeyOwnershipProof(pub ::std::vec::Vec<::core::primitive::u8>); + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct PendingSlashes { + pub keys: ::subxt::utils::KeyedVec< + runtime_types::polkadot_primitives::v5::ValidatorIndex, + runtime_types::polkadot_primitives::v5::validator_app::Public, + >, + pub kind: + runtime_types::polkadot_primitives::v5::slashing::SlashingOffenceKind, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum SlashingOffenceKind { + #[codec(index = 0)] + ForInvalid, + #[codec(index = 1)] + AgainstValid, + } + } pub mod validator_app { use super::runtime_types; #[derive( @@ -50931,9 +45064,9 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BackedCandidate<_0> { pub candidate: - runtime_types::polkadot_primitives::v4::CommittedCandidateReceipt<_0>, + runtime_types::polkadot_primitives::v5::CommittedCandidateReceipt<_0>, pub validity_votes: ::std::vec::Vec< - runtime_types::polkadot_primitives::v4::ValidityAttestation, + runtime_types::polkadot_primitives::v5::ValidityAttestation, >, pub validator_indices: ::subxt::utils::bits::DecodedBits< ::core::primitive::u8, @@ -50965,7 +45098,7 @@ pub mod api { runtime_types::polkadot_parachain::primitives::ValidationCode, >, pub head_data: runtime_types::polkadot_parachain::primitives::HeadData, - pub processed_downward_messages: _0, + pub processed_downward_messages: ::core::primitive::u32, pub hrmp_watermark: _0, } #[derive( @@ -50981,12 +45114,12 @@ pub mod api { pub struct CandidateDescriptor<_0> { pub para_id: runtime_types::polkadot_parachain::primitives::Id, pub relay_parent: _0, - pub collator: runtime_types::polkadot_primitives::v4::collator_app::Public, - pub persisted_validation_data_hash: _0, - pub pov_hash: _0, - pub erasure_root: _0, - pub signature: runtime_types::polkadot_primitives::v4::collator_app::Signature, - pub para_head: _0, + pub collator: runtime_types::polkadot_primitives::v5::collator_app::Public, + pub persisted_validation_data_hash: ::subxt::utils::H256, + pub pov_hash: ::subxt::utils::H256, + pub erasure_root: ::subxt::utils::H256, + pub signature: runtime_types::polkadot_primitives::v5::collator_app::Signature, + pub para_head: ::subxt::utils::H256, pub validation_code_hash: runtime_types::polkadot_parachain::primitives::ValidationCodeHash, } @@ -51003,23 +45136,23 @@ pub mod api { pub enum CandidateEvent<_0> { #[codec(index = 0)] CandidateBacked( - runtime_types::polkadot_primitives::v4::CandidateReceipt<_0>, + runtime_types::polkadot_primitives::v5::CandidateReceipt<_0>, runtime_types::polkadot_parachain::primitives::HeadData, - runtime_types::polkadot_primitives::v4::CoreIndex, - runtime_types::polkadot_primitives::v4::GroupIndex, + runtime_types::polkadot_primitives::v5::CoreIndex, + runtime_types::polkadot_primitives::v5::GroupIndex, ), #[codec(index = 1)] CandidateIncluded( - runtime_types::polkadot_primitives::v4::CandidateReceipt<_0>, + runtime_types::polkadot_primitives::v5::CandidateReceipt<_0>, runtime_types::polkadot_parachain::primitives::HeadData, - runtime_types::polkadot_primitives::v4::CoreIndex, - runtime_types::polkadot_primitives::v4::GroupIndex, + runtime_types::polkadot_primitives::v5::CoreIndex, + runtime_types::polkadot_primitives::v5::GroupIndex, ), #[codec(index = 2)] CandidateTimedOut( - runtime_types::polkadot_primitives::v4::CandidateReceipt<_0>, + runtime_types::polkadot_primitives::v5::CandidateReceipt<_0>, runtime_types::polkadot_parachain::primitives::HeadData, - runtime_types::polkadot_primitives::v4::CoreIndex, + runtime_types::polkadot_primitives::v5::CoreIndex, ), } #[derive( @@ -51033,8 +45166,8 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CandidateReceipt<_0> { - pub descriptor: runtime_types::polkadot_primitives::v4::CandidateDescriptor<_0>, - pub commitments_hash: _0, + pub descriptor: runtime_types::polkadot_primitives::v5::CandidateDescriptor<_0>, + pub commitments_hash: ::subxt::utils::H256, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -51047,8 +45180,8 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CommittedCandidateReceipt<_0> { - pub descriptor: runtime_types::polkadot_primitives::v4::CandidateDescriptor<_0>, - pub commitments: runtime_types::polkadot_primitives::v4::CandidateCommitments< + pub descriptor: runtime_types::polkadot_primitives::v5::CandidateDescriptor<_0>, + pub commitments: runtime_types::polkadot_primitives::v5::CandidateCommitments< ::core::primitive::u32, >, } @@ -51076,7 +45209,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum CoreOccupied { #[codec(index = 0)] - Parathread(runtime_types::polkadot_primitives::v4::ParathreadEntry), + Parathread(runtime_types::polkadot_primitives::v5::ParathreadEntry), #[codec(index = 1)] Parachain, } @@ -51092,9 +45225,9 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum CoreState<_0, _1> { #[codec(index = 0)] - Occupied(runtime_types::polkadot_primitives::v4::OccupiedCore<_0, _1>), + Occupied(runtime_types::polkadot_primitives::v5::OccupiedCore<_0, _1>), #[codec(index = 1)] - Scheduled(runtime_types::polkadot_primitives::v4::ScheduledCore), + Scheduled(runtime_types::polkadot_primitives::v5::ScheduledCore), #[codec(index = 2)] Free, } @@ -51132,9 +45265,9 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum DisputeStatement { #[codec(index = 0)] - Valid(runtime_types::polkadot_primitives::v4::ValidDisputeStatementKind), + Valid(runtime_types::polkadot_primitives::v5::ValidDisputeStatementKind), #[codec(index = 1)] - Invalid(runtime_types::polkadot_primitives::v4::InvalidDisputeStatementKind), + Invalid(runtime_types::polkadot_primitives::v5::InvalidDisputeStatementKind), } #[derive( :: subxt :: ext :: codec :: Decode, @@ -51150,9 +45283,9 @@ pub mod api { pub candidate_hash: runtime_types::polkadot_core_primitives::CandidateHash, pub session: ::core::primitive::u32, pub statements: ::std::vec::Vec<( - runtime_types::polkadot_primitives::v4::DisputeStatement, - runtime_types::polkadot_primitives::v4::ValidatorIndex, - runtime_types::polkadot_primitives::v4::validator_app::Signature, + runtime_types::polkadot_primitives::v5::DisputeStatement, + runtime_types::polkadot_primitives::v5::ValidatorIndex, + runtime_types::polkadot_primitives::v5::validator_app::Signature, )>, } #[derive( @@ -51208,18 +45341,18 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct InherentData<_0> { pub bitfields: ::std::vec::Vec< - runtime_types::polkadot_primitives::v4::signed::UncheckedSigned< - runtime_types::polkadot_primitives::v4::AvailabilityBitfield, - runtime_types::polkadot_primitives::v4::AvailabilityBitfield, + runtime_types::polkadot_primitives::v5::signed::UncheckedSigned< + runtime_types::polkadot_primitives::v5::AvailabilityBitfield, + runtime_types::polkadot_primitives::v5::AvailabilityBitfield, >, >, pub backed_candidates: ::std::vec::Vec< - runtime_types::polkadot_primitives::v4::BackedCandidate< + runtime_types::polkadot_primitives::v5::BackedCandidate< ::subxt::utils::H256, >, >, pub disputes: ::std::vec::Vec< - runtime_types::polkadot_primitives::v4::DisputeStatementSet, + runtime_types::polkadot_primitives::v5::DisputeStatementSet, >, pub parent_header: _0, } @@ -51249,21 +45382,21 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct OccupiedCore<_0, _1> { pub next_up_on_available: ::core::option::Option< - runtime_types::polkadot_primitives::v4::ScheduledCore, + runtime_types::polkadot_primitives::v5::ScheduledCore, >, pub occupied_since: _1, pub time_out_at: _1, pub next_up_on_time_out: ::core::option::Option< - runtime_types::polkadot_primitives::v4::ScheduledCore, + runtime_types::polkadot_primitives::v5::ScheduledCore, >, pub availability: ::subxt::utils::bits::DecodedBits< ::core::primitive::u8, ::subxt::utils::bits::Lsb0, >, - pub group_responsible: runtime_types::polkadot_primitives::v4::GroupIndex, + pub group_responsible: runtime_types::polkadot_primitives::v5::GroupIndex, pub candidate_hash: runtime_types::polkadot_core_primitives::CandidateHash, pub candidate_descriptor: - runtime_types::polkadot_primitives::v4::CandidateDescriptor<_0>, + runtime_types::polkadot_primitives::v5::CandidateDescriptor<_0>, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -51295,7 +45428,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ParathreadClaim( pub runtime_types::polkadot_parachain::primitives::Id, - pub runtime_types::polkadot_primitives::v4::collator_app::Public, + pub runtime_types::polkadot_primitives::v5::collator_app::Public, ); #[derive( :: subxt :: ext :: codec :: Decode, @@ -51308,7 +45441,7 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ParathreadEntry { - pub claim: runtime_types::polkadot_primitives::v4::ParathreadClaim, + pub claim: runtime_types::polkadot_primitives::v5::ParathreadClaim, pub retries: ::core::primitive::u32, } #[derive( @@ -51325,7 +45458,7 @@ pub mod api { pub parent_head: runtime_types::polkadot_parachain::primitives::HeadData, pub relay_parent_number: _1, pub relay_parent_storage_root: _0, - pub max_pov_size: _1, + pub max_pov_size: ::core::primitive::u32, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -51341,7 +45474,7 @@ pub mod api { pub accept: ::core::primitive::bool, pub subject: runtime_types::polkadot_parachain::primitives::ValidationCodeHash, pub session_index: ::core::primitive::u32, - pub validator_index: runtime_types::polkadot_primitives::v4::ValidatorIndex, + pub validator_index: runtime_types::polkadot_primitives::v5::ValidatorIndex, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -51388,7 +45521,7 @@ pub mod api { pub struct ScheduledCore { pub para_id: runtime_types::polkadot_parachain::primitives::Id, pub collator: ::core::option::Option< - runtime_types::polkadot_primitives::v4::collator_app::Public, + runtime_types::polkadot_primitives::v5::collator_app::Public, >, } #[derive( @@ -51404,14 +45537,14 @@ pub mod api { pub struct ScrapedOnChainVotes<_0> { pub session: ::core::primitive::u32, pub backing_validators_per_candidate: ::std::vec::Vec<( - runtime_types::polkadot_primitives::v4::CandidateReceipt<_0>, + runtime_types::polkadot_primitives::v5::CandidateReceipt<_0>, ::std::vec::Vec<( - runtime_types::polkadot_primitives::v4::ValidatorIndex, - runtime_types::polkadot_primitives::v4::ValidityAttestation, + runtime_types::polkadot_primitives::v5::ValidatorIndex, + runtime_types::polkadot_primitives::v5::ValidityAttestation, )>, )>, pub disputes: ::std::vec::Vec< - runtime_types::polkadot_primitives::v4::DisputeStatementSet, + runtime_types::polkadot_primitives::v5::DisputeStatementSet, >, } #[derive( @@ -51426,21 +45559,21 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SessionInfo { pub active_validator_indices: - ::std::vec::Vec, + ::std::vec::Vec, pub random_seed: [::core::primitive::u8; 32usize], pub dispute_period: ::core::primitive::u32, - pub validators: runtime_types::polkadot_primitives::v4::IndexedVec< - runtime_types::polkadot_primitives::v4::ValidatorIndex, - runtime_types::polkadot_primitives::v4::validator_app::Public, + pub validators: runtime_types::polkadot_primitives::v5::IndexedVec< + runtime_types::polkadot_primitives::v5::ValidatorIndex, + runtime_types::polkadot_primitives::v5::validator_app::Public, >, pub discovery_keys: ::std::vec::Vec, pub assignment_keys: ::std::vec::Vec< - runtime_types::polkadot_primitives::v4::assignment_app::Public, + runtime_types::polkadot_primitives::v5::assignment_app::Public, >, - pub validator_groups: runtime_types::polkadot_primitives::v4::IndexedVec< - runtime_types::polkadot_primitives::v4::GroupIndex, - ::std::vec::Vec, + pub validator_groups: runtime_types::polkadot_primitives::v5::IndexedVec< + runtime_types::polkadot_primitives::v5::GroupIndex, + ::std::vec::Vec, >, pub n_cores: ::core::primitive::u32, pub zeroth_delay_tranche_width: ::core::primitive::u32, @@ -51523,9 +45656,9 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ValidityAttestation { #[codec(index = 1)] - Implicit(runtime_types::polkadot_primitives::v4::validator_app::Signature), + Implicit(runtime_types::polkadot_primitives::v5::validator_app::Signature), #[codec(index = 2)] - Explicit(runtime_types::polkadot_primitives::v4::validator_app::Signature), + Explicit(runtime_types::polkadot_primitives::v5::validator_app::Signature), } } pub mod vstaging { @@ -51909,8 +46042,6 @@ pub mod api { Paras(runtime_types::polkadot_runtime_parachains::paras::pallet::Call), #[codec(index = 57)] Initializer(runtime_types::polkadot_runtime_parachains::initializer::pallet::Call), - #[codec(index = 59)] - Ump(runtime_types::polkadot_runtime_parachains::ump::pallet::Call), #[codec(index = 60)] Hrmp(runtime_types::polkadot_runtime_parachains::hrmp::pallet::Call), #[codec(index = 62)] @@ -51929,6 +46060,118 @@ pub mod api { Crowdloan(runtime_types::polkadot_runtime_common::crowdloan::pallet::Call), #[codec(index = 99)] XcmPallet(runtime_types::pallet_xcm::pallet::Call), + #[codec(index = 100)] + MessageQueue(runtime_types::pallet_message_queue::pallet::Call), + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum RuntimeError { + #[codec(index = 0)] + System(runtime_types::frame_system::pallet::Error), + #[codec(index = 1)] + Scheduler(runtime_types::pallet_scheduler::pallet::Error), + #[codec(index = 10)] + Preimage(runtime_types::pallet_preimage::pallet::Error), + #[codec(index = 2)] + Babe(runtime_types::pallet_babe::pallet::Error), + #[codec(index = 4)] + Indices(runtime_types::pallet_indices::pallet::Error), + #[codec(index = 5)] + Balances(runtime_types::pallet_balances::pallet::Error), + #[codec(index = 7)] + Staking(runtime_types::pallet_staking::pallet::pallet::Error), + #[codec(index = 9)] + Session(runtime_types::pallet_session::pallet::Error), + #[codec(index = 11)] + Grandpa(runtime_types::pallet_grandpa::pallet::Error), + #[codec(index = 12)] + ImOnline(runtime_types::pallet_im_online::pallet::Error), + #[codec(index = 14)] + Democracy(runtime_types::pallet_democracy::pallet::Error), + #[codec(index = 15)] + Council(runtime_types::pallet_collective::pallet::Error), + #[codec(index = 16)] + TechnicalCommittee(runtime_types::pallet_collective::pallet::Error2), + #[codec(index = 17)] + PhragmenElection(runtime_types::pallet_elections_phragmen::pallet::Error), + #[codec(index = 18)] + TechnicalMembership(runtime_types::pallet_membership::pallet::Error), + #[codec(index = 19)] + Treasury(runtime_types::pallet_treasury::pallet::Error), + #[codec(index = 20)] + ConvictionVoting(runtime_types::pallet_conviction_voting::pallet::Error), + #[codec(index = 21)] + Referenda(runtime_types::pallet_referenda::pallet::Error), + #[codec(index = 23)] + Whitelist(runtime_types::pallet_whitelist::pallet::Error), + #[codec(index = 24)] + Claims(runtime_types::polkadot_runtime_common::claims::pallet::Error), + #[codec(index = 25)] + Vesting(runtime_types::pallet_vesting::pallet::Error), + #[codec(index = 26)] + Utility(runtime_types::pallet_utility::pallet::Error), + #[codec(index = 28)] + Identity(runtime_types::pallet_identity::pallet::Error), + #[codec(index = 29)] + Proxy(runtime_types::pallet_proxy::pallet::Error), + #[codec(index = 30)] + Multisig(runtime_types::pallet_multisig::pallet::Error), + #[codec(index = 34)] + Bounties(runtime_types::pallet_bounties::pallet::Error), + #[codec(index = 38)] + ChildBounties(runtime_types::pallet_child_bounties::pallet::Error), + #[codec(index = 35)] + Tips(runtime_types::pallet_tips::pallet::Error), + #[codec(index = 36)] + ElectionProviderMultiPhase( + runtime_types::pallet_election_provider_multi_phase::pallet::Error, + ), + #[codec(index = 37)] + VoterList(runtime_types::pallet_bags_list::pallet::Error), + #[codec(index = 39)] + NominationPools(runtime_types::pallet_nomination_pools::pallet::Error), + #[codec(index = 40)] + FastUnstake(runtime_types::pallet_fast_unstake::pallet::Error), + #[codec(index = 51)] + Configuration( + runtime_types::polkadot_runtime_parachains::configuration::pallet::Error, + ), + #[codec(index = 53)] + ParaInclusion(runtime_types::polkadot_runtime_parachains::inclusion::pallet::Error), + #[codec(index = 54)] + ParaInherent( + runtime_types::polkadot_runtime_parachains::paras_inherent::pallet::Error, + ), + #[codec(index = 56)] + Paras(runtime_types::polkadot_runtime_parachains::paras::pallet::Error), + #[codec(index = 60)] + Hrmp(runtime_types::polkadot_runtime_parachains::hrmp::pallet::Error), + #[codec(index = 62)] + ParasDisputes(runtime_types::polkadot_runtime_parachains::disputes::pallet::Error), + #[codec(index = 63)] + ParasSlashing( + runtime_types::polkadot_runtime_parachains::disputes::slashing::pallet::Error, + ), + #[codec(index = 70)] + Registrar(runtime_types::polkadot_runtime_common::paras_registrar::pallet::Error), + #[codec(index = 71)] + Slots(runtime_types::polkadot_runtime_common::slots::pallet::Error), + #[codec(index = 72)] + Auctions(runtime_types::polkadot_runtime_common::auctions::pallet::Error), + #[codec(index = 73)] + Crowdloan(runtime_types::polkadot_runtime_common::crowdloan::pallet::Error), + #[codec(index = 99)] + XcmPallet(runtime_types::pallet_xcm::pallet::Error), + #[codec(index = 100)] + MessageQueue(runtime_types::pallet_message_queue::pallet::Error), } #[derive( :: subxt :: ext :: codec :: Decode, @@ -52013,8 +46256,6 @@ pub mod api { ParaInclusion(runtime_types::polkadot_runtime_parachains::inclusion::pallet::Event), #[codec(index = 56)] Paras(runtime_types::polkadot_runtime_parachains::paras::pallet::Event), - #[codec(index = 59)] - Ump(runtime_types::polkadot_runtime_parachains::ump::pallet::Event), #[codec(index = 60)] Hrmp(runtime_types::polkadot_runtime_parachains::hrmp::pallet::Event), #[codec(index = 62)] @@ -52029,6 +46270,8 @@ pub mod api { Crowdloan(runtime_types::polkadot_runtime_common::crowdloan::pallet::Event), #[codec(index = 99)] XcmPallet(runtime_types::pallet_xcm::pallet::Event), + #[codec(index = 100)] + MessageQueue(runtime_types::pallet_message_queue::pallet::Event), } #[derive( :: subxt :: ext :: codec :: Decode, @@ -52040,12 +46283,23 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum RuntimeHoldReason {} + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SessionKeys { pub grandpa: runtime_types::sp_consensus_grandpa::app::Public, pub babe: runtime_types::sp_consensus_babe::app::Public, pub im_online: runtime_types::pallet_im_online::sr25519::app_sr25519::Public, - pub para_validator: runtime_types::polkadot_primitives::v4::validator_app::Public, - pub para_assignment: runtime_types::polkadot_primitives::v4::assignment_app::Public, + pub para_validator: runtime_types::polkadot_primitives::v5::validator_app::Public, + pub para_assignment: runtime_types::polkadot_primitives::v5::assignment_app::Public, pub authority_discovery: runtime_types::sp_authority_discovery::app::Public, } } @@ -52065,14 +46319,10 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Create a new auction."] - #[doc = ""] - #[doc = "This can only happen when there isn't already an auction in progress and may only be"] - #[doc = "called by the root origin. Accepts the `duration` of this auction and the"] - #[doc = "`lease_period_index` of the initial lease period of the four that are to be auctioned."] + #[doc = "See [`Pallet::new_auction`]."] new_auction { #[codec(compact)] duration: ::core::primitive::u32, @@ -52080,22 +46330,7 @@ pub mod api { lease_period_index: ::core::primitive::u32, }, #[codec(index = 1)] - #[doc = "Make a new bid from an account (including a parachain account) for deploying a new"] - #[doc = "parachain."] - #[doc = ""] - #[doc = "Multiple simultaneous bids from the same bidder are allowed only as long as all active"] - #[doc = "bids overlap each other (i.e. are mutually exclusive). Bids cannot be redacted."] - #[doc = ""] - #[doc = "- `sub` is the sub-bidder ID, allowing for multiple competing bids to be made by (and"] - #[doc = "funded by) the same account."] - #[doc = "- `auction_index` is the index of the auction to bid on. Should just be the present"] - #[doc = "value of `AuctionCounter`."] - #[doc = "- `first_slot` is the first lease period index of the range to bid on. This is the"] - #[doc = "absolute lease period index value, not an auction-specific offset."] - #[doc = "- `last_slot` is the last lease period index of the range to bid on. This is the"] - #[doc = "absolute lease period index value, not an auction-specific offset."] - #[doc = "- `amount` is the amount to bid to be held as deposit for the parachain should the"] - #[doc = "bid win. This amount is held throughout the range."] + #[doc = "See [`Pallet::bid`]."] bid { #[codec(compact)] para: runtime_types::polkadot_parachain::primitives::Id, @@ -52109,9 +46344,7 @@ pub mod api { amount: ::core::primitive::u128, }, #[codec(index = 2)] - #[doc = "Cancel an in-progress auction."] - #[doc = ""] - #[doc = "Can only be called by Root origin."] + #[doc = "See [`Pallet::cancel_auction`]."] cancel_auction, } #[derive( @@ -52124,7 +46357,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "This auction is already in progress."] @@ -52158,7 +46391,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "An auction started. Provides its index and the block number where it will begin to"] @@ -52227,54 +46460,17 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Make a claim to collect your DOTs."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _None_."] - #[doc = ""] - #[doc = "Unsigned Validation:"] - #[doc = "A call to claim is deemed valid if the signature provided matches"] - #[doc = "the expected signed message of:"] - #[doc = ""] - #[doc = "> Ethereum Signed Message:"] - #[doc = "> (configured prefix string)(address)"] - #[doc = ""] - #[doc = "and `address` matches the `dest` account."] - #[doc = ""] - #[doc = "Parameters:"] - #[doc = "- `dest`: The destination account to payout the claim."] - #[doc = "- `ethereum_signature`: The signature of an ethereum signed message"] - #[doc = " matching the format described above."] - #[doc = ""] - #[doc = ""] - #[doc = "The weight of this call is invariant over the input parameters."] - #[doc = "Weight includes logic to validate unsigned `claim` call."] - #[doc = ""] - #[doc = "Total Complexity: O(1)"] - #[doc = ""] + #[doc = "See [`Pallet::claim`]."] claim { dest: ::subxt::utils::AccountId32, ethereum_signature: runtime_types::polkadot_runtime_common::claims::EcdsaSignature, }, #[codec(index = 1)] - #[doc = "Mint a new claim to collect DOTs."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Root_."] - #[doc = ""] - #[doc = "Parameters:"] - #[doc = "- `who`: The Ethereum address allowed to collect this claim."] - #[doc = "- `value`: The number of DOTs that will be claimed."] - #[doc = "- `vesting_schedule`: An optional vesting schedule for these DOTs."] - #[doc = ""] - #[doc = ""] - #[doc = "The weight of this call is invariant over the input parameters."] - #[doc = "We assume worst case that both vesting and statement is being inserted."] - #[doc = ""] - #[doc = "Total Complexity: O(1)"] - #[doc = ""] + #[doc = "See [`Pallet::mint_claim`]."] mint_claim { who: runtime_types::polkadot_runtime_common::claims::EthereumAddress, value: ::core::primitive::u128, @@ -52288,32 +46484,7 @@ pub mod api { >, }, #[codec(index = 2)] - #[doc = "Make a claim to collect your DOTs by signing a statement."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _None_."] - #[doc = ""] - #[doc = "Unsigned Validation:"] - #[doc = "A call to `claim_attest` is deemed valid if the signature provided matches"] - #[doc = "the expected signed message of:"] - #[doc = ""] - #[doc = "> Ethereum Signed Message:"] - #[doc = "> (configured prefix string)(address)(statement)"] - #[doc = ""] - #[doc = "and `address` matches the `dest` account; the `statement` must match that which is"] - #[doc = "expected according to your purchase arrangement."] - #[doc = ""] - #[doc = "Parameters:"] - #[doc = "- `dest`: The destination account to payout the claim."] - #[doc = "- `ethereum_signature`: The signature of an ethereum signed message"] - #[doc = " matching the format described above."] - #[doc = "- `statement`: The identity of the statement which is being attested to in the signature."] - #[doc = ""] - #[doc = ""] - #[doc = "The weight of this call is invariant over the input parameters."] - #[doc = "Weight includes logic to validate unsigned `claim_attest` call."] - #[doc = ""] - #[doc = "Total Complexity: O(1)"] - #[doc = ""] + #[doc = "See [`Pallet::claim_attest`]."] claim_attest { dest: ::subxt::utils::AccountId32, ethereum_signature: @@ -52321,27 +46492,12 @@ pub mod api { statement: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 3)] - #[doc = "Attest to a statement, needed to finalize the claims process."] - #[doc = ""] - #[doc = "WARNING: Insecure unless your chain includes `PrevalidateAttests` as a `SignedExtension`."] - #[doc = ""] - #[doc = "Unsigned Validation:"] - #[doc = "A call to attest is deemed valid if the sender has a `Preclaim` registered"] - #[doc = "and provides a `statement` which is expected for the account."] - #[doc = ""] - #[doc = "Parameters:"] - #[doc = "- `statement`: The identity of the statement which is being attested to in the signature."] - #[doc = ""] - #[doc = ""] - #[doc = "The weight of this call is invariant over the input parameters."] - #[doc = "Weight includes logic to do pre-validation on `attest` call."] - #[doc = ""] - #[doc = "Total Complexity: O(1)"] - #[doc = ""] + #[doc = "See [`Pallet::attest`]."] attest { statement: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 4)] + #[doc = "See [`Pallet::move_claim`]."] move_claim { old: runtime_types::polkadot_runtime_common::claims::EthereumAddress, new: runtime_types::polkadot_runtime_common::claims::EthereumAddress, @@ -52358,7 +46514,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "Invalid Ethereum signature."] @@ -52390,7 +46546,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "Someone claimed some DOTs."] @@ -52466,13 +46622,10 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Create a new crowdloaning campaign for a parachain slot with the given lease period range."] - #[doc = ""] - #[doc = "This applies a lock to your parachain configuration, ensuring that it cannot be changed"] - #[doc = "by the parachain manager."] + #[doc = "See [`Pallet::create`]."] create { #[codec(compact)] index: runtime_types::polkadot_parachain::primitives::Id, @@ -52488,8 +46641,7 @@ pub mod api { ::core::option::Option, }, #[codec(index = 1)] - #[doc = "Contribute to a crowd sale. This will transfer some balance over to fund a parachain"] - #[doc = "slot. It will be withdrawable when the crowdloan has ended and the funds are unused."] + #[doc = "See [`Pallet::contribute`]."] contribute { #[codec(compact)] index: runtime_types::polkadot_parachain::primitives::Id, @@ -52499,48 +46651,26 @@ pub mod api { ::core::option::Option, }, #[codec(index = 2)] - #[doc = "Withdraw full balance of a specific contributor."] - #[doc = ""] - #[doc = "Origin must be signed, but can come from anyone."] - #[doc = ""] - #[doc = "The fund must be either in, or ready for, retirement. For a fund to be *in* retirement, then the retirement"] - #[doc = "flag must be set. For a fund to be ready for retirement, then:"] - #[doc = "- it must not already be in retirement;"] - #[doc = "- the amount of raised funds must be bigger than the _free_ balance of the account;"] - #[doc = "- and either:"] - #[doc = " - the block number must be at least `end`; or"] - #[doc = " - the current lease period must be greater than the fund's `last_period`."] - #[doc = ""] - #[doc = "In this case, the fund's retirement flag is set and its `end` is reset to the current block"] - #[doc = "number."] - #[doc = ""] - #[doc = "- `who`: The account whose contribution should be withdrawn."] - #[doc = "- `index`: The parachain to whose crowdloan the contribution was made."] + #[doc = "See [`Pallet::withdraw`]."] withdraw { who: ::subxt::utils::AccountId32, #[codec(compact)] index: runtime_types::polkadot_parachain::primitives::Id, }, #[codec(index = 3)] - #[doc = "Automatically refund contributors of an ended crowdloan."] - #[doc = "Due to weight restrictions, this function may need to be called multiple"] - #[doc = "times to fully refund all users. We will refund `RemoveKeysLimit` users at a time."] - #[doc = ""] - #[doc = "Origin must be signed, but can come from anyone."] + #[doc = "See [`Pallet::refund`]."] refund { #[codec(compact)] index: runtime_types::polkadot_parachain::primitives::Id, }, #[codec(index = 4)] - #[doc = "Remove a fund after the retirement period has ended and all funds have been returned."] + #[doc = "See [`Pallet::dissolve`]."] dissolve { #[codec(compact)] index: runtime_types::polkadot_parachain::primitives::Id, }, #[codec(index = 5)] - #[doc = "Edit the configuration for an in-progress crowdloan."] - #[doc = ""] - #[doc = "Can only be called by Root origin."] + #[doc = "See [`Pallet::edit`]."] edit { #[codec(compact)] index: runtime_types::polkadot_parachain::primitives::Id, @@ -52556,23 +46686,18 @@ pub mod api { ::core::option::Option, }, #[codec(index = 6)] - #[doc = "Add an optional memo to an existing crowdloan contribution."] - #[doc = ""] - #[doc = "Origin must be Signed, and the user must have contributed to the crowdloan."] + #[doc = "See [`Pallet::add_memo`]."] add_memo { index: runtime_types::polkadot_parachain::primitives::Id, memo: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 7)] - #[doc = "Poke the fund into `NewRaise`"] - #[doc = ""] - #[doc = "Origin must be Signed, and the fund has non-zero raise."] + #[doc = "See [`Pallet::poke`]."] poke { index: runtime_types::polkadot_parachain::primitives::Id, }, #[codec(index = 8)] - #[doc = "Contribute your entire balance to a crowd sale. This will transfer the entire balance of a user over to fund a parachain"] - #[doc = "slot. It will be withdrawable when the crowdloan has ended and the funds are unused."] + #[doc = "See [`Pallet::contribute_all`]."] contribute_all { #[codec(compact)] index: runtime_types::polkadot_parachain::primitives::Id, @@ -52590,7 +46715,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "The current lease period is more than the first lease period."] @@ -52672,7 +46797,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "Create a new crowdloaning campaign."] @@ -52756,11 +46881,9 @@ pub mod api { pub cap: _1, pub last_contribution: runtime_types::polkadot_runtime_common::crowdloan::LastContribution<_2>, - pub first_period: _2, - pub last_period: _2, - pub fund_index: _2, - #[codec(skip)] - pub __subxt_unused_type_params: ::core::marker::PhantomData<_3>, + pub first_period: _3, + pub last_period: _3, + pub fund_index: ::core::primitive::u32, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -52776,7 +46899,7 @@ pub mod api { #[codec(index = 0)] Never, #[codec(index = 1)] - PreEnding(_0), + PreEnding(::core::primitive::u32), #[codec(index = 2)] Ending(_0), } @@ -52795,23 +46918,10 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Register head data and validation code for a reserved Para Id."] - #[doc = ""] - #[doc = "## Arguments"] - #[doc = "- `origin`: Must be called by a `Signed` origin."] - #[doc = "- `id`: The para ID. Must be owned/managed by the `origin` signing account."] - #[doc = "- `genesis_head`: The genesis head data of the parachain/thread."] - #[doc = "- `validation_code`: The initial validation code of the parachain/thread."] - #[doc = ""] - #[doc = "## Deposits/Fees"] - #[doc = "The origin signed account must reserve a corresponding deposit for the registration. Anything already"] - #[doc = "reserved previously for this para ID is accounted for."] - #[doc = ""] - #[doc = "## Events"] - #[doc = "The `Registered` event is emitted in case of success."] + #[doc = "See [`Pallet::register`]."] register { id: runtime_types::polkadot_parachain::primitives::Id, genesis_head: runtime_types::polkadot_parachain::primitives::HeadData, @@ -52819,12 +46929,7 @@ pub mod api { runtime_types::polkadot_parachain::primitives::ValidationCode, }, #[codec(index = 1)] - #[doc = "Force the registration of a Para Id on the relay chain."] - #[doc = ""] - #[doc = "This function must be called by a Root origin."] - #[doc = ""] - #[doc = "The deposit taken can be specified for this registration. Any `ParaId`"] - #[doc = "can be registered, including sub-1000 IDs which are System Parachains."] + #[doc = "See [`Pallet::force_register`]."] force_register { who: ::subxt::utils::AccountId32, deposit: ::core::primitive::u128, @@ -52834,72 +46939,37 @@ pub mod api { runtime_types::polkadot_parachain::primitives::ValidationCode, }, #[codec(index = 2)] - #[doc = "Deregister a Para Id, freeing all data and returning any deposit."] - #[doc = ""] - #[doc = "The caller must be Root, the `para` owner, or the `para` itself. The para must be a parathread."] + #[doc = "See [`Pallet::deregister`]."] deregister { id: runtime_types::polkadot_parachain::primitives::Id, }, #[codec(index = 3)] - #[doc = "Swap a parachain with another parachain or parathread."] - #[doc = ""] - #[doc = "The origin must be Root, the `para` owner, or the `para` itself."] - #[doc = ""] - #[doc = "The swap will happen only if there is already an opposite swap pending. If there is not,"] - #[doc = "the swap will be stored in the pending swaps map, ready for a later confirmatory swap."] - #[doc = ""] - #[doc = "The `ParaId`s remain mapped to the same head data and code so external code can rely on"] - #[doc = "`ParaId` to be a long-term identifier of a notional \"parachain\". However, their"] - #[doc = "scheduling info (i.e. whether they're a parathread or parachain), auction information"] - #[doc = "and the auction deposit are switched."] + #[doc = "See [`Pallet::swap`]."] swap { id: runtime_types::polkadot_parachain::primitives::Id, other: runtime_types::polkadot_parachain::primitives::Id, }, #[codec(index = 4)] - #[doc = "Remove a manager lock from a para. This will allow the manager of a"] - #[doc = "previously locked para to deregister or swap a para without using governance."] - #[doc = ""] - #[doc = "Can only be called by the Root origin or the parachain."] + #[doc = "See [`Pallet::remove_lock`]."] remove_lock { para: runtime_types::polkadot_parachain::primitives::Id, }, #[codec(index = 5)] - #[doc = "Reserve a Para Id on the relay chain."] - #[doc = ""] - #[doc = "This function will reserve a new Para Id to be owned/managed by the origin account."] - #[doc = "The origin account is able to register head data and validation code using `register` to create"] - #[doc = "a parathread. Using the Slots pallet, a parathread can then be upgraded to get a parachain slot."] - #[doc = ""] - #[doc = "## Arguments"] - #[doc = "- `origin`: Must be called by a `Signed` origin. Becomes the manager/owner of the new para ID."] - #[doc = ""] - #[doc = "## Deposits/Fees"] - #[doc = "The origin must reserve a deposit of `ParaDeposit` for the registration."] - #[doc = ""] - #[doc = "## Events"] - #[doc = "The `Reserved` event is emitted in case of success, which provides the ID reserved for use."] + #[doc = "See [`Pallet::reserve`]."] reserve, #[codec(index = 6)] - #[doc = "Add a manager lock from a para. This will prevent the manager of a"] - #[doc = "para to deregister or swap a para."] - #[doc = ""] - #[doc = "Can be called by Root, the parachain, or the parachain manager if the parachain is unlocked."] + #[doc = "See [`Pallet::add_lock`]."] add_lock { para: runtime_types::polkadot_parachain::primitives::Id, }, #[codec(index = 7)] - #[doc = "Schedule a parachain upgrade."] - #[doc = ""] - #[doc = "Can be called by Root, the parachain, or the parachain manager if the parachain is unlocked."] + #[doc = "See [`Pallet::schedule_code_upgrade`]."] schedule_code_upgrade { para: runtime_types::polkadot_parachain::primitives::Id, new_code: runtime_types::polkadot_parachain::primitives::ValidationCode, }, #[codec(index = 8)] - #[doc = "Set the parachain's current head."] - #[doc = ""] - #[doc = "Can be called by Root, the parachain, or the parachain manager if the parachain is unlocked."] + #[doc = "See [`Pallet::set_current_head`]."] set_current_head { para: runtime_types::polkadot_parachain::primitives::Id, new_head: runtime_types::polkadot_parachain::primitives::HeadData, @@ -52915,7 +46985,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "The ID is not registered."] @@ -52971,7 +47041,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] Registered { @@ -53024,13 +47094,10 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Just a connect into the `lease_out` call, in case Root wants to force some lease to happen"] - #[doc = "independently of any other on-chain mechanism to use it."] - #[doc = ""] - #[doc = "The dispatch origin for this call must match `T::ForceOrigin`."] + #[doc = "See [`Pallet::force_lease`]."] force_lease { para: runtime_types::polkadot_parachain::primitives::Id, leaser: ::subxt::utils::AccountId32, @@ -53039,20 +47106,12 @@ pub mod api { period_count: ::core::primitive::u32, }, #[codec(index = 1)] - #[doc = "Clear all leases for a Para Id, refunding any deposits back to the original owners."] - #[doc = ""] - #[doc = "The dispatch origin for this call must match `T::ForceOrigin`."] + #[doc = "See [`Pallet::clear_all_leases`]."] clear_all_leases { para: runtime_types::polkadot_parachain::primitives::Id, }, #[codec(index = 2)] - #[doc = "Try to onboard a parachain that has a lease for the current lease period."] - #[doc = ""] - #[doc = "This function can be useful if there was some state issue with a para that should"] - #[doc = "have onboarded, but was unable to. As long as they have a lease period, we can"] - #[doc = "let them onboard from here."] - #[doc = ""] - #[doc = "Origin must be signed, but can be called by anyone."] + #[doc = "See [`Pallet::trigger_onboard`]."] trigger_onboard { para: runtime_types::polkadot_parachain::primitives::Id, }, @@ -53067,7 +47126,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "The parachain ID is not onboarding."] @@ -53086,7 +47145,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "A new `[lease_period]` is beginning."] @@ -53125,9 +47184,9 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { - # [codec (index = 0)] # [doc = "Set the validation upgrade cooldown."] set_validation_upgrade_cooldown { new : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "Set the validation upgrade delay."] set_validation_upgrade_delay { new : :: core :: primitive :: u32 , } , # [codec (index = 2)] # [doc = "Set the acceptance period for an included candidate."] set_code_retention_period { new : :: core :: primitive :: u32 , } , # [codec (index = 3)] # [doc = "Set the max validation code size for incoming upgrades."] set_max_code_size { new : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "Set the max POV block size for incoming upgrades."] set_max_pov_size { new : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "Set the max head data size for paras."] set_max_head_data_size { new : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "Set the number of parathread execution cores."] set_parathread_cores { new : :: core :: primitive :: u32 , } , # [codec (index = 7)] # [doc = "Set the number of retries for a particular parathread."] set_parathread_retries { new : :: core :: primitive :: u32 , } , # [codec (index = 8)] # [doc = "Set the parachain validator-group rotation frequency"] set_group_rotation_frequency { new : :: core :: primitive :: u32 , } , # [codec (index = 9)] # [doc = "Set the availability period for parachains."] set_chain_availability_period { new : :: core :: primitive :: u32 , } , # [codec (index = 10)] # [doc = "Set the availability period for parathreads."] set_thread_availability_period { new : :: core :: primitive :: u32 , } , # [codec (index = 11)] # [doc = "Set the scheduling lookahead, in expected number of blocks at peak throughput."] set_scheduling_lookahead { new : :: core :: primitive :: u32 , } , # [codec (index = 12)] # [doc = "Set the maximum number of validators to assign to any core."] set_max_validators_per_core { new : :: core :: option :: Option < :: core :: primitive :: u32 > , } , # [codec (index = 13)] # [doc = "Set the maximum number of validators to use in parachain consensus."] set_max_validators { new : :: core :: option :: Option < :: core :: primitive :: u32 > , } , # [codec (index = 14)] # [doc = "Set the dispute period, in number of sessions to keep for disputes."] set_dispute_period { new : :: core :: primitive :: u32 , } , # [codec (index = 15)] # [doc = "Set the dispute post conclusion acceptance period."] set_dispute_post_conclusion_acceptance_period { new : :: core :: primitive :: u32 , } , # [codec (index = 18)] # [doc = "Set the no show slots, in number of number of consensus slots."] # [doc = "Must be at least 1."] set_no_show_slots { new : :: core :: primitive :: u32 , } , # [codec (index = 19)] # [doc = "Set the total number of delay tranches."] set_n_delay_tranches { new : :: core :: primitive :: u32 , } , # [codec (index = 20)] # [doc = "Set the zeroth delay tranche width."] set_zeroth_delay_tranche_width { new : :: core :: primitive :: u32 , } , # [codec (index = 21)] # [doc = "Set the number of validators needed to approve a block."] set_needed_approvals { new : :: core :: primitive :: u32 , } , # [codec (index = 22)] # [doc = "Set the number of samples to do of the `RelayVRFModulo` approval assignment criterion."] set_relay_vrf_modulo_samples { new : :: core :: primitive :: u32 , } , # [codec (index = 23)] # [doc = "Sets the maximum items that can present in a upward dispatch queue at once."] set_max_upward_queue_count { new : :: core :: primitive :: u32 , } , # [codec (index = 24)] # [doc = "Sets the maximum total size of items that can present in a upward dispatch queue at once."] set_max_upward_queue_size { new : :: core :: primitive :: u32 , } , # [codec (index = 25)] # [doc = "Set the critical downward message size."] set_max_downward_message_size { new : :: core :: primitive :: u32 , } , # [codec (index = 26)] # [doc = "Sets the soft limit for the phase of dispatching dispatchable upward messages."] set_ump_service_total_weight { new : runtime_types :: sp_weights :: weight_v2 :: Weight , } , # [codec (index = 27)] # [doc = "Sets the maximum size of an upward message that can be sent by a candidate."] set_max_upward_message_size { new : :: core :: primitive :: u32 , } , # [codec (index = 28)] # [doc = "Sets the maximum number of messages that a candidate can contain."] set_max_upward_message_num_per_candidate { new : :: core :: primitive :: u32 , } , # [codec (index = 29)] # [doc = "Sets the number of sessions after which an HRMP open channel request expires."] set_hrmp_open_request_ttl { new : :: core :: primitive :: u32 , } , # [codec (index = 30)] # [doc = "Sets the amount of funds that the sender should provide for opening an HRMP channel."] set_hrmp_sender_deposit { new : :: core :: primitive :: u128 , } , # [codec (index = 31)] # [doc = "Sets the amount of funds that the recipient should provide for accepting opening an HRMP"] # [doc = "channel."] set_hrmp_recipient_deposit { new : :: core :: primitive :: u128 , } , # [codec (index = 32)] # [doc = "Sets the maximum number of messages allowed in an HRMP channel at once."] set_hrmp_channel_max_capacity { new : :: core :: primitive :: u32 , } , # [codec (index = 33)] # [doc = "Sets the maximum total size of messages in bytes allowed in an HRMP channel at once."] set_hrmp_channel_max_total_size { new : :: core :: primitive :: u32 , } , # [codec (index = 34)] # [doc = "Sets the maximum number of inbound HRMP channels a parachain is allowed to accept."] set_hrmp_max_parachain_inbound_channels { new : :: core :: primitive :: u32 , } , # [codec (index = 35)] # [doc = "Sets the maximum number of inbound HRMP channels a parathread is allowed to accept."] set_hrmp_max_parathread_inbound_channels { new : :: core :: primitive :: u32 , } , # [codec (index = 36)] # [doc = "Sets the maximum size of a message that could ever be put into an HRMP channel."] set_hrmp_channel_max_message_size { new : :: core :: primitive :: u32 , } , # [codec (index = 37)] # [doc = "Sets the maximum number of outbound HRMP channels a parachain is allowed to open."] set_hrmp_max_parachain_outbound_channels { new : :: core :: primitive :: u32 , } , # [codec (index = 38)] # [doc = "Sets the maximum number of outbound HRMP channels a parathread is allowed to open."] set_hrmp_max_parathread_outbound_channels { new : :: core :: primitive :: u32 , } , # [codec (index = 39)] # [doc = "Sets the maximum number of outbound HRMP messages can be sent by a candidate."] set_hrmp_max_message_num_per_candidate { new : :: core :: primitive :: u32 , } , # [codec (index = 40)] # [doc = "Sets the maximum amount of weight any individual upward message may consume."] set_ump_max_individual_weight { new : runtime_types :: sp_weights :: weight_v2 :: Weight , } , # [codec (index = 41)] # [doc = "Enable or disable PVF pre-checking. Consult the field documentation prior executing."] set_pvf_checking_enabled { new : :: core :: primitive :: bool , } , # [codec (index = 42)] # [doc = "Set the number of session changes after which a PVF pre-checking voting is rejected."] set_pvf_voting_ttl { new : :: core :: primitive :: u32 , } , # [codec (index = 43)] # [doc = "Sets the minimum delay between announcing the upgrade block for a parachain until the"] # [doc = "upgrade taking place."] # [doc = ""] # [doc = "See the field documentation for information and constraints for the new value."] set_minimum_validation_upgrade_delay { new : :: core :: primitive :: u32 , } , # [codec (index = 44)] # [doc = "Setting this to true will disable consistency checks for the configuration setters."] # [doc = "Use with caution."] set_bypass_consistency_check { new : :: core :: primitive :: bool , } , # [codec (index = 45)] # [doc = "Set the asynchronous backing parameters."] set_async_backing_params { new : runtime_types :: polkadot_primitives :: vstaging :: AsyncBackingParams , } , # [codec (index = 46)] # [doc = "Set PVF executor parameters."] set_executor_params { new : runtime_types :: polkadot_primitives :: v4 :: executor_params :: ExecutorParams , } , } + # [codec (index = 0)] # [doc = "See [`Pallet::set_validation_upgrade_cooldown`]."] set_validation_upgrade_cooldown { new : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "See [`Pallet::set_validation_upgrade_delay`]."] set_validation_upgrade_delay { new : :: core :: primitive :: u32 , } , # [codec (index = 2)] # [doc = "See [`Pallet::set_code_retention_period`]."] set_code_retention_period { new : :: core :: primitive :: u32 , } , # [codec (index = 3)] # [doc = "See [`Pallet::set_max_code_size`]."] set_max_code_size { new : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "See [`Pallet::set_max_pov_size`]."] set_max_pov_size { new : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "See [`Pallet::set_max_head_data_size`]."] set_max_head_data_size { new : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "See [`Pallet::set_parathread_cores`]."] set_parathread_cores { new : :: core :: primitive :: u32 , } , # [codec (index = 7)] # [doc = "See [`Pallet::set_parathread_retries`]."] set_parathread_retries { new : :: core :: primitive :: u32 , } , # [codec (index = 8)] # [doc = "See [`Pallet::set_group_rotation_frequency`]."] set_group_rotation_frequency { new : :: core :: primitive :: u32 , } , # [codec (index = 9)] # [doc = "See [`Pallet::set_chain_availability_period`]."] set_chain_availability_period { new : :: core :: primitive :: u32 , } , # [codec (index = 10)] # [doc = "See [`Pallet::set_thread_availability_period`]."] set_thread_availability_period { new : :: core :: primitive :: u32 , } , # [codec (index = 11)] # [doc = "See [`Pallet::set_scheduling_lookahead`]."] set_scheduling_lookahead { new : :: core :: primitive :: u32 , } , # [codec (index = 12)] # [doc = "See [`Pallet::set_max_validators_per_core`]."] set_max_validators_per_core { new : :: core :: option :: Option < :: core :: primitive :: u32 > , } , # [codec (index = 13)] # [doc = "See [`Pallet::set_max_validators`]."] set_max_validators { new : :: core :: option :: Option < :: core :: primitive :: u32 > , } , # [codec (index = 14)] # [doc = "See [`Pallet::set_dispute_period`]."] set_dispute_period { new : :: core :: primitive :: u32 , } , # [codec (index = 15)] # [doc = "See [`Pallet::set_dispute_post_conclusion_acceptance_period`]."] set_dispute_post_conclusion_acceptance_period { new : :: core :: primitive :: u32 , } , # [codec (index = 18)] # [doc = "See [`Pallet::set_no_show_slots`]."] set_no_show_slots { new : :: core :: primitive :: u32 , } , # [codec (index = 19)] # [doc = "See [`Pallet::set_n_delay_tranches`]."] set_n_delay_tranches { new : :: core :: primitive :: u32 , } , # [codec (index = 20)] # [doc = "See [`Pallet::set_zeroth_delay_tranche_width`]."] set_zeroth_delay_tranche_width { new : :: core :: primitive :: u32 , } , # [codec (index = 21)] # [doc = "See [`Pallet::set_needed_approvals`]."] set_needed_approvals { new : :: core :: primitive :: u32 , } , # [codec (index = 22)] # [doc = "See [`Pallet::set_relay_vrf_modulo_samples`]."] set_relay_vrf_modulo_samples { new : :: core :: primitive :: u32 , } , # [codec (index = 23)] # [doc = "See [`Pallet::set_max_upward_queue_count`]."] set_max_upward_queue_count { new : :: core :: primitive :: u32 , } , # [codec (index = 24)] # [doc = "See [`Pallet::set_max_upward_queue_size`]."] set_max_upward_queue_size { new : :: core :: primitive :: u32 , } , # [codec (index = 25)] # [doc = "See [`Pallet::set_max_downward_message_size`]."] set_max_downward_message_size { new : :: core :: primitive :: u32 , } , # [codec (index = 27)] # [doc = "See [`Pallet::set_max_upward_message_size`]."] set_max_upward_message_size { new : :: core :: primitive :: u32 , } , # [codec (index = 28)] # [doc = "See [`Pallet::set_max_upward_message_num_per_candidate`]."] set_max_upward_message_num_per_candidate { new : :: core :: primitive :: u32 , } , # [codec (index = 29)] # [doc = "See [`Pallet::set_hrmp_open_request_ttl`]."] set_hrmp_open_request_ttl { new : :: core :: primitive :: u32 , } , # [codec (index = 30)] # [doc = "See [`Pallet::set_hrmp_sender_deposit`]."] set_hrmp_sender_deposit { new : :: core :: primitive :: u128 , } , # [codec (index = 31)] # [doc = "See [`Pallet::set_hrmp_recipient_deposit`]."] set_hrmp_recipient_deposit { new : :: core :: primitive :: u128 , } , # [codec (index = 32)] # [doc = "See [`Pallet::set_hrmp_channel_max_capacity`]."] set_hrmp_channel_max_capacity { new : :: core :: primitive :: u32 , } , # [codec (index = 33)] # [doc = "See [`Pallet::set_hrmp_channel_max_total_size`]."] set_hrmp_channel_max_total_size { new : :: core :: primitive :: u32 , } , # [codec (index = 34)] # [doc = "See [`Pallet::set_hrmp_max_parachain_inbound_channels`]."] set_hrmp_max_parachain_inbound_channels { new : :: core :: primitive :: u32 , } , # [codec (index = 35)] # [doc = "See [`Pallet::set_hrmp_max_parathread_inbound_channels`]."] set_hrmp_max_parathread_inbound_channels { new : :: core :: primitive :: u32 , } , # [codec (index = 36)] # [doc = "See [`Pallet::set_hrmp_channel_max_message_size`]."] set_hrmp_channel_max_message_size { new : :: core :: primitive :: u32 , } , # [codec (index = 37)] # [doc = "See [`Pallet::set_hrmp_max_parachain_outbound_channels`]."] set_hrmp_max_parachain_outbound_channels { new : :: core :: primitive :: u32 , } , # [codec (index = 38)] # [doc = "See [`Pallet::set_hrmp_max_parathread_outbound_channels`]."] set_hrmp_max_parathread_outbound_channels { new : :: core :: primitive :: u32 , } , # [codec (index = 39)] # [doc = "See [`Pallet::set_hrmp_max_message_num_per_candidate`]."] set_hrmp_max_message_num_per_candidate { new : :: core :: primitive :: u32 , } , # [codec (index = 41)] # [doc = "See [`Pallet::set_pvf_checking_enabled`]."] set_pvf_checking_enabled { new : :: core :: primitive :: bool , } , # [codec (index = 42)] # [doc = "See [`Pallet::set_pvf_voting_ttl`]."] set_pvf_voting_ttl { new : :: core :: primitive :: u32 , } , # [codec (index = 43)] # [doc = "See [`Pallet::set_minimum_validation_upgrade_delay`]."] set_minimum_validation_upgrade_delay { new : :: core :: primitive :: u32 , } , # [codec (index = 44)] # [doc = "See [`Pallet::set_bypass_consistency_check`]."] set_bypass_consistency_check { new : :: core :: primitive :: bool , } , # [codec (index = 45)] # [doc = "See [`Pallet::set_async_backing_params`]."] set_async_backing_params { new : runtime_types :: polkadot_primitives :: vstaging :: AsyncBackingParams , } , # [codec (index = 46)] # [doc = "See [`Pallet::set_executor_params`]."] set_executor_params { new : runtime_types :: polkadot_primitives :: v5 :: executor_params :: ExecutorParams , } , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -53138,7 +47197,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "The new value for a configuration parameter is invalid."] @@ -53156,50 +47215,48 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] 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 max_code_size: ::core::primitive::u32, + pub max_head_data_size: ::core::primitive::u32, + pub max_upward_queue_count: ::core::primitive::u32, + pub max_upward_queue_size: ::core::primitive::u32, + pub max_upward_message_size: ::core::primitive::u32, + pub max_upward_message_num_per_candidate: ::core::primitive::u32, + pub hrmp_max_message_num_per_candidate: ::core::primitive::u32, pub validation_upgrade_cooldown: _0, pub validation_upgrade_delay: _0, pub async_backing_params: runtime_types::polkadot_primitives::vstaging::AsyncBackingParams, - pub max_pov_size: _0, - pub max_downward_message_size: _0, - pub ump_service_total_weight: runtime_types::sp_weights::weight_v2::Weight, - pub hrmp_max_parachain_outbound_channels: _0, - pub hrmp_max_parathread_outbound_channels: _0, + pub max_pov_size: ::core::primitive::u32, + pub max_downward_message_size: ::core::primitive::u32, + pub hrmp_max_parachain_outbound_channels: ::core::primitive::u32, + pub hrmp_max_parathread_outbound_channels: ::core::primitive::u32, pub hrmp_sender_deposit: ::core::primitive::u128, pub hrmp_recipient_deposit: ::core::primitive::u128, - pub hrmp_channel_max_capacity: _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 hrmp_channel_max_capacity: ::core::primitive::u32, + pub hrmp_channel_max_total_size: ::core::primitive::u32, + pub hrmp_max_parachain_inbound_channels: ::core::primitive::u32, + pub hrmp_max_parathread_inbound_channels: ::core::primitive::u32, + pub hrmp_channel_max_message_size: ::core::primitive::u32, pub executor_params: - runtime_types::polkadot_primitives::v4::executor_params::ExecutorParams, + runtime_types::polkadot_primitives::v5::executor_params::ExecutorParams, pub code_retention_period: _0, - pub parathread_cores: _0, - pub parathread_retries: _0, + pub parathread_cores: ::core::primitive::u32, + pub parathread_retries: ::core::primitive::u32, pub group_rotation_frequency: _0, pub chain_availability_period: _0, pub thread_availability_period: _0, - pub scheduling_lookahead: _0, + pub scheduling_lookahead: ::core::primitive::u32, pub max_validators_per_core: ::core::option::Option<_0>, pub max_validators: ::core::option::Option<_0>, - pub dispute_period: _0, + pub dispute_period: ::core::primitive::u32, pub dispute_post_conclusion_acceptance_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: runtime_types::sp_weights::weight_v2::Weight, + pub no_show_slots: ::core::primitive::u32, + pub n_delay_tranches: ::core::primitive::u32, + pub zeroth_delay_tranche_width: ::core::primitive::u32, + pub needed_approvals: ::core::primitive::u32, + pub relay_vrf_modulo_samples: ::core::primitive::u32, pub pvf_checking_enabled: ::core::primitive::bool, - pub pvf_voting_ttl: _0, + pub pvf_voting_ttl: ::core::primitive::u32, pub minimum_validation_upgrade_delay: _0, } } @@ -53217,9 +47274,10 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] + #[doc = "See [`Pallet::force_unfreeze`]."] force_unfreeze, } #[derive( @@ -53232,7 +47290,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "Duplicate dispute statement sets provided."] @@ -53272,7 +47330,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "A dispute has been initiated. \\[candidate hash, dispute location\\]"] @@ -53309,9 +47367,17 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { - # [codec (index = 0)] report_dispute_lost_unsigned { dispute_proof : :: std :: boxed :: Box < runtime_types :: polkadot_runtime_parachains :: disputes :: slashing :: DisputeProof > , key_owner_proof : runtime_types :: sp_session :: MembershipProof , } , } + #[codec(index = 0)] + #[doc = "See [`Pallet::report_dispute_lost_unsigned`]."] + report_dispute_lost_unsigned { + dispute_proof: ::std::boxed::Box< + runtime_types::polkadot_primitives::v5::slashing::DisputeProof, + >, + key_owner_proof: runtime_types::sp_session::MembershipProof, + }, + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -53322,7 +47388,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "The key ownership proof is invalid."] @@ -53345,58 +47411,6 @@ pub mod api { DuplicateSlashingReport, } } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct DisputeProof { pub time_slot : runtime_types :: polkadot_runtime_parachains :: disputes :: slashing :: DisputesTimeSlot , pub kind : runtime_types :: polkadot_runtime_parachains :: disputes :: slashing :: SlashingOffenceKind , pub validator_index : runtime_types :: polkadot_primitives :: v4 :: ValidatorIndex , pub validator_id : runtime_types :: polkadot_primitives :: v4 :: validator_app :: Public , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct DisputesTimeSlot { - pub session_index: ::core::primitive::u32, - pub candidate_hash: runtime_types::polkadot_core_primitives::CandidateHash, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct PendingSlashes { pub keys : :: subxt :: utils :: KeyedVec < runtime_types :: polkadot_primitives :: v4 :: ValidatorIndex , runtime_types :: polkadot_primitives :: v4 :: validator_app :: Public > , pub kind : runtime_types :: polkadot_runtime_parachains :: disputes :: slashing :: SlashingOffenceKind , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum SlashingOffenceKind { - #[codec(index = 0)] - ForInvalid, - #[codec(index = 1)] - AgainstValid, - } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -53445,90 +47459,48 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Initiate opening a channel from a parachain to a given recipient with given channel"] - #[doc = "parameters."] - #[doc = ""] - #[doc = "- `proposed_max_capacity` - specifies how many messages can be in the channel at once."] - #[doc = "- `proposed_max_message_size` - specifies the maximum size of the messages."] - #[doc = ""] - #[doc = "These numbers are a subject to the relay-chain configuration limits."] - #[doc = ""] - #[doc = "The channel can be opened only after the recipient confirms it and only on a session"] - #[doc = "change."] + #[doc = "See [`Pallet::hrmp_init_open_channel`]."] hrmp_init_open_channel { recipient: runtime_types::polkadot_parachain::primitives::Id, proposed_max_capacity: ::core::primitive::u32, proposed_max_message_size: ::core::primitive::u32, }, #[codec(index = 1)] - #[doc = "Accept a pending open channel request from the given sender."] - #[doc = ""] - #[doc = "The channel will be opened only on the next session boundary."] + #[doc = "See [`Pallet::hrmp_accept_open_channel`]."] hrmp_accept_open_channel { sender: runtime_types::polkadot_parachain::primitives::Id, }, #[codec(index = 2)] - #[doc = "Initiate unilateral closing of a channel. The origin must be either the sender or the"] - #[doc = "recipient in the channel being closed."] - #[doc = ""] - #[doc = "The closure can only happen on a session change."] + #[doc = "See [`Pallet::hrmp_close_channel`]."] hrmp_close_channel { channel_id: runtime_types::polkadot_parachain::primitives::HrmpChannelId, }, #[codec(index = 3)] - #[doc = "This extrinsic triggers the cleanup of all the HRMP storage items that"] - #[doc = "a para may have. Normally this happens once per session, but this allows"] - #[doc = "you to trigger the cleanup immediately for a specific parachain."] - #[doc = ""] - #[doc = "Origin must be Root."] - #[doc = ""] - #[doc = "Number of inbound and outbound channels for `para` must be provided as witness data of weighing."] + #[doc = "See [`Pallet::force_clean_hrmp`]."] force_clean_hrmp { para: runtime_types::polkadot_parachain::primitives::Id, inbound: ::core::primitive::u32, outbound: ::core::primitive::u32, }, #[codec(index = 4)] - #[doc = "Force process HRMP open channel requests."] - #[doc = ""] - #[doc = "If there are pending HRMP open channel requests, you can use this"] - #[doc = "function process all of those requests immediately."] - #[doc = ""] - #[doc = "Total number of opening channels must be provided as witness data of weighing."] + #[doc = "See [`Pallet::force_process_hrmp_open`]."] force_process_hrmp_open { channels: ::core::primitive::u32 }, #[codec(index = 5)] - #[doc = "Force process HRMP close channel requests."] - #[doc = ""] - #[doc = "If there are pending HRMP close channel requests, you can use this"] - #[doc = "function process all of those requests immediately."] - #[doc = ""] - #[doc = "Total number of closing channels must be provided as witness data of weighing."] + #[doc = "See [`Pallet::force_process_hrmp_close`]."] force_process_hrmp_close { channels: ::core::primitive::u32 }, #[codec(index = 6)] - #[doc = "This cancels a pending open channel request. It can be canceled by either of the sender"] - #[doc = "or the recipient for that request. The origin must be either of those."] - #[doc = ""] - #[doc = "The cancellation happens immediately. It is not possible to cancel the request if it is"] - #[doc = "already accepted."] - #[doc = ""] - #[doc = "Total number of open requests (i.e. `HrmpOpenChannelRequestsList`) must be provided as"] - #[doc = "witness data."] + #[doc = "See [`Pallet::hrmp_cancel_open_request`]."] hrmp_cancel_open_request { channel_id: runtime_types::polkadot_parachain::primitives::HrmpChannelId, open_requests: ::core::primitive::u32, }, #[codec(index = 7)] - #[doc = "Open a channel from a `sender` to a `recipient` `ParaId` using the Root origin. Although"] - #[doc = "opened by Root, the `max_capacity` and `max_message_size` are still subject to the Relay"] - #[doc = "Chain's configured limits."] - #[doc = ""] - #[doc = "Expected use is when one of the `ParaId`s involved in the channel is governed by the"] - #[doc = "Relay Chain, e.g. a common good parachain."] + #[doc = "See [`Pallet::force_open_hrmp_channel`]."] force_open_hrmp_channel { sender: runtime_types::polkadot_parachain::primitives::Id, recipient: runtime_types::polkadot_parachain::primitives::Id, @@ -53546,7 +47518,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "The sender tried to open a channel to themselves."] @@ -53616,7 +47588,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "Open HRMP channel requested."] @@ -53710,7 +47682,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call {} #[derive( :: subxt :: ext :: codec :: Decode, @@ -53722,7 +47694,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "Validator indices are out of order or contains duplicates."] @@ -53825,37 +47797,43 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "A candidate was backed. `[candidate, head_data]`"] CandidateBacked( - runtime_types::polkadot_primitives::v4::CandidateReceipt< + runtime_types::polkadot_primitives::v5::CandidateReceipt< ::subxt::utils::H256, >, runtime_types::polkadot_parachain::primitives::HeadData, - runtime_types::polkadot_primitives::v4::CoreIndex, - runtime_types::polkadot_primitives::v4::GroupIndex, + runtime_types::polkadot_primitives::v5::CoreIndex, + runtime_types::polkadot_primitives::v5::GroupIndex, ), #[codec(index = 1)] #[doc = "A candidate was included. `[candidate, head_data]`"] CandidateIncluded( - runtime_types::polkadot_primitives::v4::CandidateReceipt< + runtime_types::polkadot_primitives::v5::CandidateReceipt< ::subxt::utils::H256, >, runtime_types::polkadot_parachain::primitives::HeadData, - runtime_types::polkadot_primitives::v4::CoreIndex, - runtime_types::polkadot_primitives::v4::GroupIndex, + runtime_types::polkadot_primitives::v5::CoreIndex, + runtime_types::polkadot_primitives::v5::GroupIndex, ), #[codec(index = 2)] #[doc = "A candidate timed out. `[candidate, head_data]`"] CandidateTimedOut( - runtime_types::polkadot_primitives::v4::CandidateReceipt< + runtime_types::polkadot_primitives::v5::CandidateReceipt< ::subxt::utils::H256, >, runtime_types::polkadot_parachain::primitives::HeadData, - runtime_types::polkadot_primitives::v4::CoreIndex, + runtime_types::polkadot_primitives::v5::CoreIndex, ), + #[codec(index = 3)] + #[doc = "Some upward messages have been received and will be processed."] + UpwardMessagesReceived { + from: runtime_types::polkadot_parachain::primitives::Id, + count: ::core::primitive::u32, + }, } } #[derive( @@ -53868,8 +47846,22 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum AggregateMessageOrigin { + #[codec(index = 0)] + Ump(runtime_types::polkadot_runtime_parachains::inclusion::UmpQueueId), + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AvailabilityBitfieldRecord<_0> { - pub bitfield: runtime_types::polkadot_primitives::v4::AvailabilityBitfield, + pub bitfield: runtime_types::polkadot_primitives::v5::AvailabilityBitfield, pub submitted_at: _0, } #[derive( @@ -53883,9 +47875,9 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CandidatePendingAvailability<_0, _1> { - pub core: runtime_types::polkadot_primitives::v4::CoreIndex, + pub core: runtime_types::polkadot_primitives::v5::CoreIndex, pub hash: runtime_types::polkadot_core_primitives::CandidateHash, - pub descriptor: runtime_types::polkadot_primitives::v4::CandidateDescriptor<_0>, + pub descriptor: runtime_types::polkadot_primitives::v5::CandidateDescriptor<_0>, pub availability_votes: ::subxt::utils::bits::DecodedBits< ::core::primitive::u8, ::subxt::utils::bits::Lsb0, @@ -53896,7 +47888,21 @@ pub mod api { >, pub relay_parent_number: _1, pub backed_in_number: _1, - pub backing_group: runtime_types::polkadot_primitives::v4::GroupIndex, + pub backing_group: runtime_types::polkadot_primitives::v5::GroupIndex, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum UmpQueueId { + #[codec(index = 0)] + Para(runtime_types::polkadot_parachain::primitives::Id), } } pub mod initializer { @@ -53913,12 +47919,10 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Issue a signal to the consensus engine to forcibly act as though all parachain"] - #[doc = "blocks in all relay chain blocks up to and including the given number in the current"] - #[doc = "chain are valid and should be finalized."] + #[doc = "See [`Pallet::force_approve`]."] force_approve { up_to: ::core::primitive::u32 }, } } @@ -53934,10 +47938,10 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BufferedSessionChange { pub validators: ::std::vec::Vec< - runtime_types::polkadot_primitives::v4::validator_app::Public, + runtime_types::polkadot_primitives::v5::validator_app::Public, >, pub queued: ::std::vec::Vec< - runtime_types::polkadot_primitives::v4::validator_app::Public, + runtime_types::polkadot_primitives::v5::validator_app::Public, >, pub session_index: ::core::primitive::u32, } @@ -53976,75 +47980,56 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Set the storage for the parachain validation code immediately."] + #[doc = "See [`Pallet::force_set_current_code`]."] force_set_current_code { para: runtime_types::polkadot_parachain::primitives::Id, new_code: runtime_types::polkadot_parachain::primitives::ValidationCode, }, #[codec(index = 1)] - #[doc = "Set the storage for the current parachain head data immediately."] + #[doc = "See [`Pallet::force_set_current_head`]."] force_set_current_head { para: runtime_types::polkadot_parachain::primitives::Id, new_head: runtime_types::polkadot_parachain::primitives::HeadData, }, #[codec(index = 2)] - #[doc = "Schedule an upgrade as if it was scheduled in the given relay parent block."] + #[doc = "See [`Pallet::force_schedule_code_upgrade`]."] force_schedule_code_upgrade { para: runtime_types::polkadot_parachain::primitives::Id, new_code: runtime_types::polkadot_parachain::primitives::ValidationCode, relay_parent_number: ::core::primitive::u32, }, #[codec(index = 3)] - #[doc = "Note a new block head for para within the context of the current block."] + #[doc = "See [`Pallet::force_note_new_head`]."] force_note_new_head { para: runtime_types::polkadot_parachain::primitives::Id, new_head: runtime_types::polkadot_parachain::primitives::HeadData, }, #[codec(index = 4)] - #[doc = "Put a parachain directly into the next session's action queue."] - #[doc = "We can't queue it any sooner than this without going into the"] - #[doc = "initializer..."] + #[doc = "See [`Pallet::force_queue_action`]."] force_queue_action { para: runtime_types::polkadot_parachain::primitives::Id, }, #[codec(index = 5)] - #[doc = "Adds the validation code to the storage."] - #[doc = ""] - #[doc = "The code will not be added if it is already present. Additionally, if PVF pre-checking"] - #[doc = "is running for that code, it will be instantly accepted."] - #[doc = ""] - #[doc = "Otherwise, the code will be added into the storage. Note that the code will be added"] - #[doc = "into storage with reference count 0. This is to account the fact that there are no users"] - #[doc = "for this code yet. The caller will have to make sure that this code eventually gets"] - #[doc = "used by some parachain or removed from the storage to avoid storage leaks. For the latter"] - #[doc = "prefer to use the `poke_unused_validation_code` dispatchable to raw storage manipulation."] - #[doc = ""] - #[doc = "This function is mainly meant to be used for upgrading parachains that do not follow"] - #[doc = "the go-ahead signal while the PVF pre-checking feature is enabled."] + #[doc = "See [`Pallet::add_trusted_validation_code`]."] add_trusted_validation_code { validation_code: runtime_types::polkadot_parachain::primitives::ValidationCode, }, #[codec(index = 6)] - #[doc = "Remove the validation code from the storage iff the reference count is 0."] - #[doc = ""] - #[doc = "This is better than removing the storage directly, because it will not remove the code"] - #[doc = "that was suddenly got used by some parachain while this dispatchable was pending"] - #[doc = "dispatching."] + #[doc = "See [`Pallet::poke_unused_validation_code`]."] poke_unused_validation_code { validation_code_hash: runtime_types::polkadot_parachain::primitives::ValidationCodeHash, }, #[codec(index = 7)] - #[doc = "Includes a statement for a PVF pre-checking vote. Potentially, finalizes the vote and"] - #[doc = "enacts the results if that was the last vote before achieving the supermajority."] + #[doc = "See [`Pallet::include_pvf_check_statement`]."] include_pvf_check_statement { - stmt: runtime_types::polkadot_primitives::v4::PvfCheckStatement, + stmt: runtime_types::polkadot_primitives::v5::PvfCheckStatement, signature: - runtime_types::polkadot_primitives::v4::validator_app::Signature, + runtime_types::polkadot_primitives::v5::validator_app::Signature, }, } #[derive( @@ -54057,7 +48042,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "Para is not registered in our system."] @@ -54093,10 +48078,6 @@ pub mod api { #[doc = "The given PVF does not exist at the moment of process a vote."] PvfCheckSubjectInvalid, #[codec(index = 11)] - #[doc = "The PVF pre-checking statement cannot be included since the PVF pre-checking mechanism"] - #[doc = "is disabled."] - PvfCheckDisabled, - #[codec(index = 12)] #[doc = "Parachain cannot currently schedule a code upgrade."] CannotUpgradeCode, } @@ -54110,7 +48091,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "Current code has been updated for a Para. `para_id`"] @@ -54230,7 +48211,7 @@ pub mod api { ::core::primitive::u8, ::subxt::utils::bits::Lsb0, >, - pub age: _0, + pub age: ::core::primitive::u32, pub created_at: _0, pub causes: ::std::vec::Vec< runtime_types::polkadot_runtime_parachains::paras::PvfCheckCause<_0>, @@ -54284,12 +48265,12 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Enter the paras inherent. This will process bitfields and backed candidates."] + #[doc = "See [`Pallet::enter`]."] enter { - data: runtime_types::polkadot_primitives::v4::InherentData< + data: runtime_types::polkadot_primitives::v5::InherentData< runtime_types::sp_runtime::generic::header::Header< ::core::primitive::u32, runtime_types::sp_runtime::traits::BlakeTwo256, @@ -54307,7 +48288,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "Inclusion inherent called more than once per block."] @@ -54348,7 +48329,7 @@ pub mod api { Parachain, #[codec(index = 1)] Parathread( - runtime_types::polkadot_primitives::v4::collator_app::Public, + runtime_types::polkadot_primitives::v5::collator_app::Public, ::core::primitive::u32, ), } @@ -54363,10 +48344,10 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CoreAssignment { - pub core: runtime_types::polkadot_primitives::v4::CoreIndex, + pub core: runtime_types::polkadot_primitives::v5::CoreIndex, pub para_id: runtime_types::polkadot_parachain::primitives::Id, pub kind: runtime_types::polkadot_runtime_parachains::scheduler::AssignmentKind, - pub group_idx: runtime_types::polkadot_primitives::v4::GroupIndex, + pub group_idx: runtime_types::polkadot_primitives::v5::GroupIndex, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -54395,7 +48376,7 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct QueuedParathread { - pub claim: runtime_types::polkadot_primitives::v4::ParathreadEntry, + pub claim: runtime_types::polkadot_primitives::v5::ParathreadEntry, pub core_offset: ::core::primitive::u32, } } @@ -54413,131 +48394,10 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call {} } } - pub mod ump { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - #[codec(index = 0)] - #[doc = "Service a single overweight upward message."] - #[doc = ""] - #[doc = "- `origin`: Must pass `ExecuteOverweightOrigin`."] - #[doc = "- `index`: The index of the overweight message to service."] - #[doc = "- `weight_limit`: The amount of weight that message execution may take."] - #[doc = ""] - #[doc = "Errors:"] - #[doc = "- `UnknownMessageIndex`: Message of `index` is unknown."] - #[doc = "- `WeightOverLimit`: Message execution may use greater than `weight_limit`."] - #[doc = ""] - #[doc = "Events:"] - #[doc = "- `OverweightServiced`: On success."] - service_overweight { - index: ::core::primitive::u64, - weight_limit: runtime_types::sp_weights::weight_v2::Weight, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "The message index given is unknown."] - UnknownMessageIndex, - #[codec(index = 1)] - #[doc = "The amount of weight given is possibly not enough for executing the message."] - WeightOverLimit, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] - pub enum Event { - #[codec(index = 0)] - #[doc = "Upward message is invalid XCM."] - #[doc = "\\[ id \\]"] - InvalidFormat([::core::primitive::u8; 32usize]), - #[codec(index = 1)] - #[doc = "Upward message is unsupported version of XCM."] - #[doc = "\\[ id \\]"] - UnsupportedVersion([::core::primitive::u8; 32usize]), - #[codec(index = 2)] - #[doc = "Upward message executed with the given outcome."] - #[doc = "\\[ id, outcome \\]"] - ExecutedUpward( - [::core::primitive::u8; 32usize], - runtime_types::xcm::v3::traits::Outcome, - ), - #[codec(index = 3)] - #[doc = "The weight limit for handling upward messages was reached."] - #[doc = "\\[ id, remaining, required \\]"] - WeightExhausted( - [::core::primitive::u8; 32usize], - runtime_types::sp_weights::weight_v2::Weight, - runtime_types::sp_weights::weight_v2::Weight, - ), - #[codec(index = 4)] - #[doc = "Some upward messages have been received and will be processed."] - #[doc = "\\[ para, count, size \\]"] - UpwardMessagesReceived( - runtime_types::polkadot_parachain::primitives::Id, - ::core::primitive::u32, - ::core::primitive::u32, - ), - #[codec(index = 5)] - #[doc = "The weight budget was exceeded for an individual upward message."] - #[doc = ""] - #[doc = "This message can be later dispatched manually using `service_overweight` dispatchable"] - #[doc = "using the assigned `overweight_index`."] - #[doc = ""] - #[doc = "\\[ para, id, overweight_index, required \\]"] - OverweightEnqueued( - runtime_types::polkadot_parachain::primitives::Id, - [::core::primitive::u8; 32usize], - ::core::primitive::u64, - runtime_types::sp_weights::weight_v2::Weight, - ), - #[codec(index = 6)] - #[doc = "Upward message from the overweight queue was executed with the given actual weight"] - #[doc = "used."] - #[doc = ""] - #[doc = "\\[ overweight_index, used \\]"] - OverweightServiced( - ::core::primitive::u64, - runtime_types::sp_weights::weight_v2::Weight, - ), - } - } - } } pub mod sp_arithmetic { use super::runtime_types; @@ -55137,35 +48997,6 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Signature(pub [::core::primitive::u8; 64usize]); } - pub mod offchain { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct OpaqueMultiaddr(pub ::std::vec::Vec<::core::primitive::u8>); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct OpaqueNetworkState { - pub peer_id: runtime_types::sp_core::OpaquePeerId, - pub external_addresses: - ::std::vec::Vec, - } - } pub mod sr25519 { use super::runtime_types; pub mod vrf { @@ -55229,17 +49060,6 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct OpaquePeerId(pub ::std::vec::Vec<::core::primitive::u8>); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Void {} } pub mod sp_inherents { @@ -56259,6 +50079,8 @@ pub mod api { CannotCreateHold, #[codec(index = 8)] NotExpendable, + #[codec(index = 9)] + Blocked, } #[derive( :: subxt :: ext :: codec :: Decode, diff --git a/testing/integration-tests/src/full_client/frame/balances.rs b/testing/integration-tests/src/full_client/frame/balances.rs index 4c4dc99ba8e..35e4a0ab03f 100644 --- a/testing/integration-tests/src/full_client/frame/balances.rs +++ b/testing/integration-tests/src/full_client/frame/balances.rs @@ -269,12 +269,10 @@ async fn storage_total_issuance() { async fn storage_balance_lock() -> Result<(), subxt::Error> { let bob_signer = dev::bob(); let bob: AccountId32 = dev::bob().public_key().into(); - let charlie: AccountId32 = dev::charlie().public_key().into(); let ctx = test_context().await; let api = ctx.client(); let tx = node_runtime::tx().staking().bond( - charlie.into(), 100_000_000_000_000, runtime_types::pallet_staking::RewardDestination::Stash, ); diff --git a/testing/integration-tests/src/full_client/frame/contracts.rs b/testing/integration-tests/src/full_client/frame/contracts.rs index fc2ee413400..47d3bea9e07 100644 --- a/testing/integration-tests/src/full_client/frame/contracts.rs +++ b/testing/integration-tests/src/full_client/frame/contracts.rs @@ -22,10 +22,12 @@ struct ContractsTestContext { type Hash = ::Hash; type AccountId = ::AccountId; +/// A dummy contract which does nothing at all. const CONTRACT: &str = r#" (module - (func (export "call")) + (import "env" "memory" (memory 1 1)) (func (export "deploy")) + (func (export "call")) ) "#; diff --git a/testing/integration-tests/src/full_client/frame/staking.rs b/testing/integration-tests/src/full_client/frame/staking.rs index d7eeb066113..7d285faa8a8 100644 --- a/testing/integration-tests/src/full_client/frame/staking.rs +++ b/testing/integration-tests/src/full_client/frame/staking.rs @@ -35,18 +35,18 @@ fn default_validator_prefs() -> ValidatorPrefs { } #[tokio::test] -async fn validate_with_controller_account() { +async fn validate_with_stash_account() { let ctx = test_context().await; let api = ctx.client(); - let alice = dev::alice(); + let alice_stash = get_from_seed("Alice//stash"); let tx = node_runtime::tx() .staking() .validate(default_validator_prefs()); api.tx() - .sign_and_submit_then_watch_default(&tx, &alice) + .sign_and_submit_then_watch_default(&tx, &alice_stash) .await .unwrap() .wait_for_finalized_success() @@ -55,11 +55,11 @@ async fn validate_with_controller_account() { } #[tokio::test] -async fn validate_not_possible_for_stash_account() -> Result<(), Error> { +async fn validate_not_possible_for_controller_account() -> Result<(), Error> { let ctx = test_context().await; let api = ctx.client(); - let alice_stash = get_from_seed("Alice//stash"); + let alice = dev::alice(); let tx = node_runtime::tx() .staking() @@ -67,7 +67,7 @@ async fn validate_not_possible_for_stash_account() -> Result<(), Error> { let announce_validator = api .tx() - .sign_and_submit_then_watch_default(&tx, &alice_stash) + .sign_and_submit_then_watch_default(&tx, &alice) .await? .wait_for_finalized_success() .await; @@ -80,11 +80,11 @@ async fn validate_not_possible_for_stash_account() -> Result<(), Error> { } #[tokio::test] -async fn nominate_with_controller_account() { +async fn nominate_with_stash_account() { let ctx = test_context().await; let api = ctx.client(); - let alice = dev::alice(); + let alice_stash = get_from_seed("Alice//stash"); let bob = dev::bob(); let tx = node_runtime::tx() @@ -92,7 +92,7 @@ async fn nominate_with_controller_account() { .nominate(vec![bob.public_key().to_address()]); api.tx() - .sign_and_submit_then_watch_default(&tx, &alice) + .sign_and_submit_then_watch_default(&tx, &alice_stash) .await .unwrap() .wait_for_finalized_success() @@ -101,11 +101,11 @@ async fn nominate_with_controller_account() { } #[tokio::test] -async fn nominate_not_possible_for_stash_account() -> Result<(), Error> { +async fn nominate_not_possible_for_controller_account() -> Result<(), Error> { let ctx = test_context().await; let api = ctx.client(); - let alice_stash = get_from_seed("Alice//stash"); + let alice = dev::alice(); let bob = dev::bob(); let tx = node_runtime::tx() @@ -114,7 +114,7 @@ async fn nominate_not_possible_for_stash_account() -> Result<(), Error> { let nomination = api .tx() - .sign_and_submit_then_watch_default(&tx, &alice_stash) + .sign_and_submit_then_watch_default(&tx, &alice) .await .unwrap() .wait_for_finalized_success() @@ -129,7 +129,7 @@ async fn nominate_not_possible_for_stash_account() -> Result<(), Error> { } #[tokio::test] -async fn chill_works_for_controller_only() -> Result<(), Error> { +async fn chill_works_for_stash_only() -> Result<(), Error> { let ctx = test_context().await; let api = ctx.client(); @@ -142,14 +142,14 @@ async fn chill_works_for_controller_only() -> Result<(), Error> { .staking() .nominate(vec![bob_stash.public_key().to_address()]); api.tx() - .sign_and_submit_then_watch_default(&nominate_tx, &alice) + .sign_and_submit_then_watch_default(&nominate_tx, &alice_stash) .await? .wait_for_finalized_success() .await?; let ledger_addr = node_runtime::storage() .staking() - .ledger(alice.public_key().to_account_id()); + .ledger(alice_stash.public_key().to_account_id()); let ledger = api .storage() .at_latest() @@ -163,7 +163,7 @@ async fn chill_works_for_controller_only() -> Result<(), Error> { let chill = api .tx() - .sign_and_submit_then_watch_default(&chill_tx, &alice_stash) + .sign_and_submit_then_watch_default(&chill_tx, &alice) .await? .wait_for_finalized_success() .await; @@ -176,7 +176,7 @@ async fn chill_works_for_controller_only() -> Result<(), Error> { let is_chilled = api .tx() - .sign_and_submit_then_watch_default(&chill_tx, &alice) + .sign_and_submit_then_watch_default(&chill_tx, &alice_stash) .await? .wait_for_finalized_success() .await? @@ -193,11 +193,9 @@ async fn tx_bond() -> Result<(), Error> { let alice = dev::alice(); - let bond_tx = node_runtime::tx().staking().bond( - dev::bob().public_key().into(), - 100_000_000_000_000, - RewardDestination::Stash, - ); + let bond_tx = node_runtime::tx() + .staking() + .bond(100_000_000_000_000, RewardDestination::Stash); let bond = api .tx() diff --git a/testing/integration-tests/src/full_client/metadata/validation.rs b/testing/integration-tests/src/full_client/metadata/validation.rs index a263378ccf4..e10e953d76d 100644 --- a/testing/integration-tests/src/full_client/metadata/validation.rs +++ b/testing/integration-tests/src/full_client/metadata/validation.rs @@ -4,8 +4,9 @@ use crate::{node_runtime, test_context, TestContext}; use frame_metadata::v15::{ - ExtrinsicMetadata, PalletCallMetadata, PalletMetadata, PalletStorageMetadata, - RuntimeMetadataV15, StorageEntryMetadata, StorageEntryModifier, StorageEntryType, + CustomMetadata, ExtrinsicMetadata, OuterEnums, PalletCallMetadata, PalletMetadata, + PalletStorageMetadata, RuntimeMetadataV15, StorageEntryMetadata, StorageEntryModifier, + StorageEntryType, }; use scale_info::{ build::{Fields, Variants}, @@ -76,12 +77,23 @@ fn pallets_to_metadata(pallets: Vec) -> Metadata { v15_to_metadata(RuntimeMetadataV15::new( pallets, ExtrinsicMetadata { - ty: meta_type::>(), version: 0, signed_extensions: vec![], + address_ty: meta_type::<()>(), + call_ty: meta_type::(), + signature_ty: meta_type::<()>(), + extra_ty: meta_type::<()>(), }, meta_type::<()>(), vec![], + OuterEnums { + call_enum_ty: meta_type::<()>(), + event_enum_ty: meta_type::<()>(), + error_enum_ty: meta_type::<()>(), + }, + CustomMetadata { + map: Default::default(), + }, )) } @@ -114,7 +126,7 @@ async fn constant_values_are_not_validated() { // Modify the metadata. let metadata = modified_metadata(api.metadata(), |md| { - let mut existential = md + let existential = md .pallets .iter_mut() .find(|pallet| pallet.name == "Balances") diff --git a/testing/test-runtime/build.rs b/testing/test-runtime/build.rs index bdd45d08bc0..3d3513dc81e 100644 --- a/testing/test-runtime/build.rs +++ b/testing/test-runtime/build.rs @@ -37,7 +37,7 @@ async fn run() { // Download metadata from binary. Avoid Subxt dep on `subxt::rpc::types::Bytes`and just impl here. // This may at least prevent this script from running so often (ie whenever we change Subxt). - const V15_METADATA_VERSION: u32 = u32::MAX; + const V15_METADATA_VERSION: u32 = 15; let bytes = V15_METADATA_VERSION.encode(); let version: String = format!("0x{}", hex::encode(&bytes)); let raw: String = { diff --git a/testing/ui-tests/src/utils/mod.rs b/testing/ui-tests/src/utils/mod.rs index 5200b42d691..798c602a8fe 100644 --- a/testing/ui-tests/src/utils/mod.rs +++ b/testing/ui-tests/src/utils/mod.rs @@ -7,8 +7,8 @@ mod metadata_test_runner; use frame_metadata::{ v15::{ - ExtrinsicMetadata, PalletMetadata, PalletStorageMetadata, RuntimeMetadataV15, - StorageEntryMetadata, + CustomMetadata, ExtrinsicMetadata, OuterEnums, PalletMetadata, PalletStorageMetadata, + RuntimeMetadataV15, StorageEntryMetadata, }, RuntimeMetadataPrefixed, }; @@ -24,9 +24,12 @@ pub fn generate_metadata_from_pallets_custom_dispatch_error RuntimeMetadataPrefixed { // We don't care about the extrinsic type. let extrinsic = ExtrinsicMetadata { - ty: meta_type::<()>(), version: 0, signed_extensions: vec![], + address_ty: meta_type::<()>(), + call_ty: meta_type::<()>(), + signature_ty: meta_type::<()>(), + extra_ty: meta_type::<()>(), }; // Construct metadata manually from our types (See `RuntimeMetadataV15::new()`). @@ -41,10 +44,13 @@ pub fn generate_metadata_from_pallets_custom_dispatch_error()); - registry.register_type(&meta_type::()); - registry.register_type(&meta_type::()); + let runtime_call = registry.register_type(&meta_type::()); + let runtime_event = registry.register_type(&meta_type::()); + let runtime_error = registry.register_type(&meta_type::()); // Metadata needs to contain this DispatchError, since codegen looks for it. registry.register_type(&meta_type::()); @@ -55,6 +61,14 @@ pub fn generate_metadata_from_pallets_custom_dispatch_error