The San Francisco Giants and star free-agent shortstop Carlos Correa have agreed to a 13-year, $350-million contract, a source told ESPN’s Jeff Passan.

Correa’s deal includes a full no-trade clause and contains no opt-outs, according to Jon Heyman of the New York Post.

The contract is the fourth-largest by total value in baseball history, per Cot’s Contracts.