Get workspace compiling via 'cargo check'

This commit is contained in:
James Wilson
2025-12-12 12:30:42 +00:00
parent 6215b15fdf
commit 37d4cf7524
35 changed files with 179 additions and 131 deletions
+2 -2
View File
@@ -92,8 +92,8 @@ pub fn generate_calls(
pub fn #fn_name(
&self,
#( #call_fn_args, )*
) -> #crate_path::transactions::payload::StaticPayload<types::#struct_name> {
#crate_path::transactions::payload::StaticPayload::new_static(
) -> #crate_path::transactions::StaticPayload<types::#struct_name> {
#crate_path::transactions::StaticPayload::new_static(
#pallet_name,
#call_name,
types::#struct_name { #( #call_args, )* },
+2 -2
View File
@@ -68,8 +68,8 @@ pub fn generate_constants(
Ok(quote! {
#docs
pub fn #fn_name(&self) -> #crate_path::constants::address::StaticAddress<#return_ty> {
#crate_path::constants::address::StaticAddress::new_static(
pub fn #fn_name(&self) -> #crate_path::constants::StaticAddress<#return_ty> {
#crate_path::constants::StaticAddress::new_static(
#pallet_name,
#constant_name,
[#(#constant_hash,)*]
+2 -2
View File
@@ -71,8 +71,8 @@ fn generate_custom_value_fn(
};
Some(quote!(
pub fn #fn_name_ident(&self) -> #crate_path::custom_values::address::StaticAddress<#return_ty, #decodable> {
#crate_path::custom_values::address::StaticAddress::new_static(#name, [#(#custom_value_hash,)*])
pub fn #fn_name_ident(&self) -> #crate_path::custom_values::StaticAddress<#return_ty, #decodable> {
#crate_path::custom_values::StaticAddress::new_static(#name, [#(#custom_value_hash,)*])
}
))
}
+2 -2
View File
@@ -167,11 +167,11 @@ fn generate_pallet_view_function(
pub fn #view_function_name_ident(
&self,
#(#input_args),*
) -> #crate_path::view_functions::payload::StaticPayload<
) -> #crate_path::view_functions::StaticPayload<
(#(#input_tuple_types,)*),
#view_function_name_ident::output::Output
> {
#crate_path::view_functions::payload::StaticPayload::new_static(
#crate_path::view_functions::StaticPayload::new_static(
#pallet_name,
#view_function_name_str,
(#(#input_param_names,)*),
+2 -2
View File
@@ -183,11 +183,11 @@ fn generate_runtime_api(
pub fn #method_name(
&self,
#(#input_args),*
) -> #crate_path::runtime_apis::payload::StaticPayload<
) -> #crate_path::runtime_apis::StaticPayload<
(#(#input_tuple_types,)*),
#method_name::output::Output
> {
#crate_path::runtime_apis::payload::StaticPayload::new_static(
#crate_path::runtime_apis::StaticPayload::new_static(
#trait_name_str,
#method_name_str,
(#(#input_param_names,)*),
+2 -2
View File
@@ -153,12 +153,12 @@ fn generate_storage_entry_fns(
let storage_entry_method = quote!(
#docs
pub fn #storage_entry_snake_case_ident(&self) -> #crate_path::storage::address::StaticAddress<
pub fn #storage_entry_snake_case_ident(&self) -> #crate_path::storage::StaticAddress<
(#(#storage_key_tuple_types,)*),
#storage_entry_snake_case_ident::output::Output,
#is_plain
> {
#crate_path::storage::address::StaticAddress::new_static(
#crate_path::storage::StaticAddress::new_static(
#pallet_name,
#storage_entry_name_str,
[#(#validation_hash,)*],