From a56047f85dc81be3ca689e2a6dff720f14a46782 Mon Sep 17 00:00:00 2001 From: "raja.blaze" Date: Wed, 4 Sep 2019 18:42:14 +0530 Subject: [PATCH] commit-for-adding-api-menu-in-ui --- server.ts | 22 +++++++++++++++---- .../components/footer/footer.component.html | 1 + .../components/header/header.component.html | 2 ++ 3 files changed, 21 insertions(+), 4 deletions(-) diff --git a/server.ts b/server.ts index ee5be69..aafdff5 100644 --- a/server.ts +++ b/server.ts @@ -122,10 +122,24 @@ controllers.forEach(controller => { app.get("/api", async (req, res) => { let blockDetails = await latestBlockDetails(); - let result = { "Name": "Epic Cash", "Symbol": "EPIC", "TotalSupply": 21000000, "CurrentSupply": blockDetails.coin_existence, "CurrentBlockReward": blockDetails.currentReward, - "Algorithms": "Cuckoo, RandomX, Pogprow", - "Target_Difficulty": { "Cuckoo": blockDetails.targetdifficultycuckaroo + blockDetails.targetdifficultycuckatoo, "RandomX": blockDetails.targetdifficultyrandomx, "Pogprow": blockDetails.targetdifficultyprogpow }, - "Total_Difficulty": { "Cuckoo": blockDetails.TotalCuckoo, "RandomX": blockDetails.TotalDifficultyRandomx, "Pogprow": blockDetails.TotalDifficultyProgpow }, + let result = { "Name": "Epic Cash", + "Symbol": "EPIC", + "TotalSupply": 21000000, + "CurrentSupply": blockDetails.coin_existence, + "ChainReward": 16, + "FoundationContribution" : blockDetails.foundationReward, + "CurrentBlockReward": blockDetails.userReward, + "Algorithms": "Cuckoo, RandomX, ProgPow", + "Target_Difficulty": { + "Cuckoo": blockDetails.targetdifficultycuckaroo + blockDetails.targetdifficultycuckatoo, + "RandomX": blockDetails.targetdifficultyrandomx, + "ProgPow": blockDetails.targetdifficultyprogpow + }, + "Total_Difficulty": { + "Cuckoo": blockDetails.TotalCuckoo, + "RandomX": blockDetails.TotalDifficultyRandomx, + "ProgPow": blockDetails.TotalDifficultyProgpow + }, "BlockHeight": blockDetails.block_height, "Blockchain": "MimbleWimble", "Homepage": "https://epic.tech", diff --git a/src/app/shared/components/footer/footer.component.html b/src/app/shared/components/footer/footer.component.html index 1cca9d7..e9b7a4d 100644 --- a/src/app/shared/components/footer/footer.component.html +++ b/src/app/shared/components/footer/footer.component.html @@ -27,6 +27,7 @@
+ API