Here's a breakdown:
* writing: This is the present participle of the verb "to write," acting as a gerund.
* to inform: This is an infinitive phrase acting as the object of the gerund "writing."
* you: This is the indirect object of the verb "to inform."
* have been awarded: This is a present perfect passive verb phrase, acting as the object of the infinitive "to inform."
* the contract: This is the direct object of the verb "have been awarded."
Therefore, the entire phrase functions as a verb phrase, indicating the action of writing to communicate the information about the awarded contract.