The Chicago Cubs and shortstop Starlin Castro agreed to a seven-year contract with a club option for 2020.

Castro, 22, is a two-time All-Star and in just his second full major-league season. He led the National League in hits with 207 last season. Since making his major-league debut on May 7, 2010, Castro has more hits than any player in the NL with 486.

Castro, a career .296 hitter, was batting .276 this season with 12 homers and 63 RBI before Tuesday night’s game against Milwaukee.

Surgery to end Bautista’s season

Toronto Blue Jays slugger Jose Bautista will have season-ending surgery to stabilize a tendon in his left wrist. Bautista said that he would be ready to play long before the start of spring training.

The two-time defending AL home run champion was put on the disabled list Saturday. Hand specialist Dr. Thomas Graham in Cleveland will perform the operation next week.

Pirates release Bedard

The Pittsburgh Pirates released struggling left-handed starter Erik Bedard, two days after he lost his 14th game of the season, tied for the most in the majors this year.

Bedard, 33, went 7-14 with a 5.01 ERA for Pittsburgh after signing a one-year, $4.5 million contract in the offseason. Bedard got off to a strong start and went 4-1 in May before his numbers steadily declined. He went 4-10 over his final 14 starts.

More players on the move

The Chicago White Sox put right-handed starter Gavin Floyd on the 15-day disabled list with a right elbow flexor strain and recalled right-hander Dylan Axelrod from Triple-A Charlotte.… San Francisco Giants reliever Guillermo Mota was activated from the restricted list on Tuesday after serving a 100-game suspension for his second positive drug test. Left-hander Jeremy Affeldt has been placed on the paternity list

ESPN extends TV contract

Major League Baseball and ESPN extended their contract through 2021, a deal that almost doubles the amount of money the network will pay annually for baseball content to $700 million over eight years. It also all but eliminates blackouts of local broadcasts of ESPN games on Monday and Wednesday nights.