Jake Peavy has officially signed a two-year deal with the San Francisco Giants.

The contract includes a $4 million signing bonus, a full no-trade clause and award bonuses, according to a report.

Peavy is set to earn $7 million in 2015 and $13 million in 2016.