Function build_deploy_function
Source fn build_deploy_function(
metadata: &FunctionMetadata,
constructors: &[&Function],
state_variables: &[StateVariableMetadata],
state_index_map: &HashMap<String, usize>,
state_types: &[ValueType],
defined_struct_types: &[ValueType],
event_index_map: &HashMap<String, usize>,
event_signature_map: &HashMap<String, Vec<ManifestType>>,
enum_variant_map: &HashMap<String, HashMap<String, u64>>,
contract_types: &HashSet<String>,
selector_registry: &SelectorRegistry,
function_names: &HashSet<String>,
function_overloads: &HashMap<(String, usize), String>,
function_param_names: &HashMap<(String, usize), Vec<String>>,
void_functions: &HashSet<String>,
super_method_map: &HashMap<String, String>,
) -> Result<Function, Vec<IrDiagnostic>>