From 42b0e234726b22f0335e31835283dcd47a7a3f88 Mon Sep 17 00:00:00 2001
From: Benoit Lavenier <benoit.lavenier@e-is.pro>
Date: Mon, 9 Dec 2019 08:48:08 +0100
Subject: [PATCH] [fix] Rename schema.graphql [enh] Block: Add blockchainTime
 and humanTime

---
 appendices/0003_RFC/{schema.graphqls => schema.graphql} | 4 +++-
 rfc/0003 RFC GraphQL API for Duniter Clients.md         | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)
 rename appendices/0003_RFC/{schema.graphqls => schema.graphql} (98%)

diff --git a/appendices/0003_RFC/schema.graphqls b/appendices/0003_RFC/schema.graphql
similarity index 98%
rename from appendices/0003_RFC/schema.graphqls
rename to appendices/0003_RFC/schema.graphql
index dd6f856..06d8dc4 100644
--- a/appendices/0003_RFC/schema.graphqls
+++ b/appendices/0003_RFC/schema.graphql
@@ -357,7 +357,9 @@ type Block {
   number: Int!
   powMin: Int!
   time: String!
-  mediantime: String!
+  medianTime: Int! @deprecated(reason: "Use `blockchainTime`.")
+  blockchainTime: Int!
+  humanTime: Int!
   membersCount: Int!
   monetaryMass: Int!
   unitBase: Int!
diff --git a/rfc/0003 RFC GraphQL API for Duniter Clients.md b/rfc/0003 RFC GraphQL API for Duniter Clients.md
index 759305a..a7b72dc 100644
--- a/rfc/0003 RFC GraphQL API for Duniter Clients.md	
+++ b/rfc/0003 RFC GraphQL API for Duniter Clients.md	
@@ -374,7 +374,7 @@ So the websoket channel path is automatically deducted from the optionnal path:
 
 ## API GraphQL Schema
 
-See [schema.gql](../appendices/0003_RFC/schema.graphqls)
+See [schema.gql](../appendices/0003_RFC/schema.graphql)
 
 ---
 End of the document.
-- 
GitLab