mod decodable_values;
mod decode_with_error_tracing;
mod either;
mod encodable_values;
#[cfg(feature = "legacy")]
mod type_registry_from_metadata;
pub use decodable_values::{DecodableValues, IntoDecodableValues};
pub use encodable_values::{EncodableValues, IntoEncodableValues};
pub use decode_with_error_tracing::{DecodeErrorTrace, decode_with_error_tracing};
pub use either::Either;
#[cfg(feature = "legacy")]
pub use type_registry_from_metadata::{
ToTypeRegistry, type_registry_from_metadata, type_registry_from_metadata_any,
};
#[cfg(feature = "legacy")]
pub fn as_decoded<A, B>(item: &frame_metadata::decode_different::DecodeDifferent<A, B>) -> &B {
match item {
frame_metadata::decode_different::DecodeDifferent::Encode(_a) => {
panic!("Expecting decoded data")
}
frame_metadata::decode_different::DecodeDifferent::Decoded(b) => b,
}
}