You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: submit_proof.rs
    path of file: ./repos/nox/crates/chain-connector/src/function
    
    the code of the file until where you have to start completion: use chain_data::ChainFunction;

/// @dev Submits a proof for the commitment
/// @param unitId Compute unit id which provied the proof
/// @param globalUnitNonce The global nonce of the unit for calculating the targ
    
    fn function() -> ethabi::Function {
        #[allow(deprecated)]
        let function = ethabi::Function {
            name: "submitProof".to_string(),
            inputs: vec![
                ethabi::Param {
                    name: "unitId".to_string(),
                    kind: ethabi::ParamType::FixedBytes(32),
                    internal_type: None,
                },
                ethabi::Param {
                    name: "localUnitNonce".to_string(),
                    kind: ethabi::ParamType::FixedBytes(32),
                    internal_type: None,
                },
                ethabi::Param {
                    name: "targetHash".to_string(),
                    kind: ethabi::ParamType::FixedBytes(32),
                    internal_type: None,
                },
            ],
            outputs: vec![],
            constant: None,
            state_mutability: ethabi::StateMutability::NonPayable,
        };
        function
    }