The taxation of the sale depends on the agreement. Did you sell only s corp stock? Did the agreement contain a non compete provision? Did the agreement contain a purchase of receivables? Did the s corp have hot assets?
Did the agreement contain an amount for fixed assets and or goodwill? All of these items have specific tax treatments.
Good luck!
Frank E Sands