Supply chain contracts with endogenous information structure