Butler is also signing an extension with the Warriors as part of the deal.