From 502b02723558ec28eef7602d61f098ad01743dab Mon Sep 17 00:00:00 2001 From: gabaldon Date: Fri, 10 Dec 2021 10:33:09 +0100 Subject: [PATCH] fix: update data feeds config polling period --- packages/api/src/dataFeeds.json | 54 ++++++++++---------- packages/api/src/repository/ResultRequest.ts | 1 - packages/ui/components/DataFeedDetails.vue | 2 +- 3 files changed, 28 insertions(+), 29 deletions(-) diff --git a/packages/api/src/dataFeeds.json b/packages/api/src/dataFeeds.json index aa1eb5e5..1cff0a3d 100644 --- a/packages/api/src/dataFeeds.json +++ b/packages/api/src/dataFeeds.json @@ -6,7 +6,7 @@ "network": "ethereum-mainnet", "name": "btc/usd", "label": "$", - "pollingPeriod": 15000, + "pollingPeriod": 1500000, "color": "#8d5fd3", "blockExplorer": "https://etherscan.io/address/{address}", "deviation": 3.5, @@ -20,7 +20,7 @@ "network": "ethereum-mainnet", "name": "eth/usd", "label": "$", - "pollingPeriod": 15000, + "pollingPeriod": 1500000, "color": "#8d5fd3", "blockExplorer": "https://etherscan.io/address/{address}", "deviation": 3.5, @@ -34,7 +34,7 @@ "network": "ethereum-rinkeby", "name": "btc/usd", "label": "$", - "pollingPeriod": 15000, + "pollingPeriod": 1500000, "color": "#00d4aa", "blockExplorer": "https://rinkeby.etherscan.io/address/{address}", "deviation": 1, @@ -48,7 +48,7 @@ "network": "ethereum-rinkeby", "name": "eth/usd", "label": "$", - "pollingPeriod": 15000, + "pollingPeriod": 1500000, "color": "#00d4aa", "blockExplorer": "https://rinkeby.etherscan.io/address/{address}", "deviation": 1, @@ -62,7 +62,7 @@ "network": "ethereum-goerli", "name": "btc/usd", "label": "$", - "pollingPeriod": 15000, + "pollingPeriod": 1500000, "color": "#ff5599", "blockExplorer": "https://goerli.etherscan.io/address/{address}", "deviation": 1, @@ -76,7 +76,7 @@ "network": "ethereum-goerli", "name": "eth/usd", "label": "$", - "pollingPeriod": 15000, + "pollingPeriod": 1500000, "color": "#ff5599", "blockExplorer": "https://goerli.etherscan.io/address/{address}", "deviation": 1, @@ -90,7 +90,7 @@ "network": "conflux-testnet", "name": "cfx/usdt", "label": "₮", - "pollingPeriod": 3000, + "pollingPeriod": 300000, "color": "#6600ff", "blockExplorer": "https://testnet.confluxscan.io/address/{address}", "deviation": 1, @@ -104,7 +104,7 @@ "network": "conflux-testnet", "name": "btc/usd", "label": "$", - "pollingPeriod": 3000, + "pollingPeriod": 300000, "color": "#6600ff", "blockExplorer": "https://testnet.confluxscan.io/address/{address}", "deviation": 1, @@ -118,7 +118,7 @@ "network": "conflux-testnet", "name": "eth/usd", "label": "$", - "pollingPeriod": 3000, + "pollingPeriod": 300000, "color": "#6600ff", "blockExplorer": "https://testnet.confluxscan.io/address/{address}", "deviation": 1, @@ -132,7 +132,7 @@ "network": "conflux-mainnet", "name": "cfx/usdt", "label": "₮", - "pollingPeriod": 3000, + "pollingPeriod": 300000, "color": "#ff0000", "blockExplorer": "https://confluxscan.io/address/{address}", "deviation": 1, @@ -146,7 +146,7 @@ "network": "conflux-mainnet", "name": "btc/usd", "label": "$", - "pollingPeriod": 3000, + "pollingPeriod": 300000, "color": "#ff0000", "blockExplorer": "https://confluxscan.io/address/{address}", "deviation": 1, @@ -160,7 +160,7 @@ "network": "conflux-mainnet", "name": "eth/usd", "label": "$", - "pollingPeriod": 3000, + "pollingPeriod": 300000, "color": "#ff0000", "blockExplorer": "https://confluxscan.io/address/{address}", "deviation": 1, @@ -174,7 +174,7 @@ "network": "celo-alfajores", "name": "btc/usd", "label": "$", - "pollingPeriod": 3000, + "pollingPeriod": 300000, "color": "#1cd8d2", "blockExplorer": "https://alfajores-blockscout.celo-testnet.org/address/{address}", "deviation": 1, @@ -188,7 +188,7 @@ "network": "celo-alfajores", "name": "eth/usd", "label": "$", - "pollingPeriod": 3000, + "pollingPeriod": 300000, "color": "#1cd8d2", "blockExplorer": "https://alfajores-blockscout.celo-testnet.org/address/{address}", "deviation": 1, @@ -202,7 +202,7 @@ "network": "celo-alfajores", "name": "celo/usd", "label": "$", - "pollingPeriod": 3000, + "pollingPeriod": 300000, "color": "#1cd8d2", "blockExplorer": "https://alfajores-blockscout.celo-testnet.org/address/{address}", "deviation": 1, @@ -216,7 +216,7 @@ "network": "celo-alfajores", "name": "celo/eur", "label": "€", - "pollingPeriod": 3000, + "pollingPeriod": 300000, "color": "#1cd8d2", "blockExplorer": "https://alfajores-blockscout.celo-testnet.org/address/{address}", "deviation": 1, @@ -230,7 +230,7 @@ "network": "celo-mainnet", "name": "btc/usd", "label": "$", - "pollingPeriod": 3000, + "pollingPeriod": 300000, "color": "#ff8100", "blockExplorer": "https://explorer.celo.org/address/{address}", "deviation": 1, @@ -244,7 +244,7 @@ "network": "celo-mainnet", "name": "eth/usd", "label": "$", - "pollingPeriod": 3000, + "pollingPeriod": 300000, "color": "#ff8100", "blockExplorer": "https://explorer.celo.org/address/{address}", "deviation": 1, @@ -258,7 +258,7 @@ "network": "celo-mainnet", "name": "celo/eur", "label": "€", - "pollingPeriod": 3000, + "pollingPeriod": 300000, "color": "#ff8100", "blockExplorer": "https://explorer.celo.org/address/{address}", "deviation": 1, @@ -272,7 +272,7 @@ "network": "celo-mainnet", "name": "celo/usd", "label": "$", - "pollingPeriod": 3000, + "pollingPeriod": 300000, "color": "#ff8100", "blockExplorer": "https://explorer.celo.org/address/{address}", "deviation": 1, @@ -286,7 +286,7 @@ "network": "boba-rinkeby", "name": "btc/usd", "label": "$", - "pollingPeriod": 3000, + "pollingPeriod": 300000, "color": "#1cd83d", "blockExplorer": "https://blockexplorer.rinkeby.boba.network/address/{address}", "deviation": 1, @@ -300,7 +300,7 @@ "network": "boba-rinkeby", "name": "eth/usd", "label": "$", - "pollingPeriod": 3000, + "pollingPeriod": 300000, "color": "#1cd83d", "blockExplorer": "https://blockexplorer.rinkeby.boba.network/address/{address}", "deviation": 1, @@ -314,7 +314,7 @@ "network": "boba-rinkeby", "name": "omg/btc", "label": "₿", - "pollingPeriod": 3000, + "pollingPeriod": 300000, "color": "#1cd83d", "blockExplorer": "https://blockexplorer.rinkeby.boba.network/address/{address}", "deviation": 1, @@ -328,7 +328,7 @@ "network": "boba-rinkeby", "name": "omg/eth", "label": "Ξ", - "pollingPeriod": 3000, + "pollingPeriod": 300000, "color": "#1cd83d", "blockExplorer": "https://blockexplorer.rinkeby.boba.network/address/{address}", "deviation": 1, @@ -342,7 +342,7 @@ "network": "boba-rinkeby", "name": "omg/usdt", "label": "₮", - "pollingPeriod": 3000, + "pollingPeriod": 300000, "color": "#1cd83d", "blockExplorer": "https://blockexplorer.rinkeby.boba.network/address/{address}", "deviation": 1, @@ -356,7 +356,7 @@ "network": "boba-rinkeby", "name": "boba/usdt", "label": "₮", - "pollingPeriod": 3000, + "pollingPeriod": 300000, "color": "#1cd83d", "blockExplorer": "https://blockexplorer.rinkeby.boba.network/address/{address}", "deviation": 1, @@ -370,7 +370,7 @@ "network": "boba-mainnet", "name": "boba/usdt", "label": "₮", - "pollingPeriod": 3000, + "pollingPeriod": 300000, "color": "#007dff", "blockExplorer": "https://blockexplorer.boba.network/address/{address}", "deviation": 1, diff --git a/packages/api/src/repository/ResultRequest.ts b/packages/api/src/repository/ResultRequest.ts index fed58412..9ed824e2 100644 --- a/packages/api/src/repository/ResultRequest.ts +++ b/packages/api/src/repository/ResultRequest.ts @@ -45,7 +45,6 @@ export class ResultRequestRepository { page: number, size: number ): Promise> { - console.log('index information', await this.collection.indexInformation()) return ( await this.collection .find({ diff --git a/packages/ui/components/DataFeedDetails.vue b/packages/ui/components/DataFeedDetails.vue index 6aa7fb52..4731ba66 100644 --- a/packages/ui/components/DataFeedDetails.vue +++ b/packages/ui/components/DataFeedDetails.vue @@ -21,7 +21,7 @@ v-if="feed" class="chart" :data="chartData" - :last-result-timestamp="transactions[0].timestamp" + :last-result-timestamp="transactions ? transactions[0].timestamp : ''" :data-label="feed.label" :name="feedName" :deviation="deviation"