mirror of
https://github.com/pezkuwichain/pezframe-metadata.git
synced 2026-06-15 08:01:05 +00:00
Abbreviate field names (docs, args) for consistency
This commit is contained in:
@@ -192,7 +192,7 @@ pub struct StorageEntryMetadata<T: Form = MetaForm> {
|
|||||||
pub modifier: StorageEntryModifier,
|
pub modifier: StorageEntryModifier,
|
||||||
pub ty: StorageEntryType<T>,
|
pub ty: StorageEntryType<T>,
|
||||||
pub default: Vec<u8>,
|
pub default: Vec<u8>,
|
||||||
pub documentation: Vec<T::String>,
|
pub docs: Vec<T::String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl IntoPortable for StorageEntryMetadata {
|
impl IntoPortable for StorageEntryMetadata {
|
||||||
@@ -204,7 +204,7 @@ impl IntoPortable for StorageEntryMetadata {
|
|||||||
modifier: self.modifier,
|
modifier: self.modifier,
|
||||||
ty: self.ty.into_portable(registry),
|
ty: self.ty.into_portable(registry),
|
||||||
default: self.default,
|
default: self.default,
|
||||||
documentation: registry.map_into_portable(self.documentation),
|
docs: registry.map_into_portable(self.docs),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -328,8 +328,8 @@ impl IntoPortable for PalletCallMetadata {
|
|||||||
)]
|
)]
|
||||||
pub struct FunctionMetadata<T: Form = MetaForm> {
|
pub struct FunctionMetadata<T: Form = MetaForm> {
|
||||||
pub name: T::String,
|
pub name: T::String,
|
||||||
pub arguments: Vec<FunctionArgumentMetadata<T>>,
|
pub args: Vec<FunctionArgumentMetadata<T>>,
|
||||||
pub documentation: Vec<T::String>,
|
pub docs: Vec<T::String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl IntoPortable for FunctionMetadata {
|
impl IntoPortable for FunctionMetadata {
|
||||||
@@ -338,8 +338,8 @@ impl IntoPortable for FunctionMetadata {
|
|||||||
fn into_portable(self, registry: &mut Registry) -> Self::Output {
|
fn into_portable(self, registry: &mut Registry) -> Self::Output {
|
||||||
FunctionMetadata {
|
FunctionMetadata {
|
||||||
name: self.name.into_portable(registry),
|
name: self.name.into_portable(registry),
|
||||||
arguments: registry.map_into_portable(self.arguments),
|
args: registry.map_into_portable(self.args),
|
||||||
documentation: registry.map_into_portable(self.documentation),
|
docs: registry.map_into_portable(self.docs),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -391,7 +391,7 @@ pub struct PalletConstantMetadata<T: Form = MetaForm> {
|
|||||||
pub name: T::String,
|
pub name: T::String,
|
||||||
pub ty: T::Type,
|
pub ty: T::Type,
|
||||||
pub value: Vec<u8>,
|
pub value: Vec<u8>,
|
||||||
pub documentation: Vec<T::String>,
|
pub docs: Vec<T::String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl IntoPortable for PalletConstantMetadata {
|
impl IntoPortable for PalletConstantMetadata {
|
||||||
@@ -402,7 +402,7 @@ impl IntoPortable for PalletConstantMetadata {
|
|||||||
name: self.name.into_portable(registry),
|
name: self.name.into_portable(registry),
|
||||||
ty: registry.register_type(&self.ty),
|
ty: registry.register_type(&self.ty),
|
||||||
value: self.value,
|
value: self.value,
|
||||||
documentation: registry.map_into_portable(self.documentation),
|
docs: registry.map_into_portable(self.docs),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user