Warranty for power adapter and earpod
According to Apple's Service FAQ:


  Apple accessories (including the power adapter and Apple iPhone cases) are also covered by Apple's One Year Limited Warranty. Online service might not be available through Apple for all accessories. Contact your carrier, Apple, or an Apple Authorized Service Provider for details.
  Read Apple’s One Year Limited Warranty for iPhone Accessories


Warranty coverage may vary depending on the country you are in, so please verify this for your country.