The San Francisco Giants locked up a key piece of the franchise with a massive contract extension.