Matt Chapman, regarded as one of the best defensive infielders in baseball, agreed to a three-year, $54 million contract with the San Francisco Giants, sources confirmed to ESPN on Saturday.

The deal also includes opt-outs after the first and second year of the agreement.