mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-22 18:28:01 +00:00
a2b8dde5e6
* Add Static type which defers to Encode/Decode and impls EncodeAsType/DecodeAsType * rename to static_type and impl Deref/Mut * Improve type substitution in codegen so that concrete types can be swapped in * A couple of comment tweaks and no need for a macro export * Extend type substitution logic to work recursively on destination type * cargo fmt * Fix a couple of comments * update ui test outpuot * Add docs and missing_docs lint * Add test for replacing multiple of Ident * Update codegen/src/error.rs Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com> * update copyright year and fix ui test * simplify another error --------- Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com>
22 lines
847 B
Rust
22 lines
847 B
Rust
// Copyright 2019-2023 Parity Technologies (UK) Ltd.
|
|
// This file is dual-licensed as Apache-2.0 or GPL-3.0.
|
|
// see LICENSE for license details.
|
|
|
|
use crate::utils::{
|
|
dispatch_error::{ArrayDispatchError, LegacyDispatchError, NamedFieldDispatchError},
|
|
generate_metadata_from_pallets_custom_dispatch_error,
|
|
};
|
|
use frame_metadata::RuntimeMetadataPrefixed;
|
|
|
|
pub fn metadata_array_dispatch_error() -> RuntimeMetadataPrefixed {
|
|
generate_metadata_from_pallets_custom_dispatch_error::<ArrayDispatchError>(vec![])
|
|
}
|
|
|
|
pub fn metadata_legacy_dispatch_error() -> RuntimeMetadataPrefixed {
|
|
generate_metadata_from_pallets_custom_dispatch_error::<LegacyDispatchError>(vec![])
|
|
}
|
|
|
|
pub fn metadata_named_field_dispatch_error() -> RuntimeMetadataPrefixed {
|
|
generate_metadata_from_pallets_custom_dispatch_error::<NamedFieldDispatchError>(vec![])
|
|
}
|