Civil-law contract for the extraction of minerals