Skip to content

Commit

Permalink
fix: update data feeds config polling period
Browse files Browse the repository at this point in the history
  • Loading branch information
gabaldon committed Dec 10, 2021
1 parent 1d7cc85 commit 502b027
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 29 deletions.
54 changes: 27 additions & 27 deletions packages/api/src/dataFeeds.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand Down
1 change: 0 additions & 1 deletion packages/api/src/repository/ResultRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ export class ResultRequestRepository {
page: number,
size: number
): Promise<Array<ResultRequestDbObjectNormalized>> {
console.log('index information', await this.collection.indexInformation())
return (
await this.collection
.find({
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/components/DataFeedDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 502b027

Please sign in to comment.