The huge gas supply contract agreed by China and Russia on Wednesday is worth $400 billion (290 billion euros) over 30 years, Russian television channels reported.