PopulateCompletedContracts function prototype