Skip to content

Commit

Permalink
feat: add boba/usdt feed in mainnet and rinkeby
Browse files Browse the repository at this point in the history
  • Loading branch information
gabaldon committed Nov 30, 2021
1 parent f8acb27 commit 0ecd3f6
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 17 deletions.
45 changes: 29 additions & 16 deletions packages/api/src/dataFeeds.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,19 +103,6 @@
"deviation": 1,
"heartbeat": 4500000
},
{
"feedFullName": "conflux-testnet_btc-usd_6",
"abi": "./src/abi/PriceFeed.json",
"address": "0x8594B74645644b6a5fdE15597D3ADc15C77284A1",
"network": "conflux-testnet",
"name": "btc/usd",
"label": "$",
"pollingPeriod": 300000,
"color": "#6600ff",
"blockExplorer": "https://testnet.confluxscan.io/address/{address}",
"deviation": 1,
"heartbeat": 4500000
},
{
"feedFullName": "conflux-testnet_eth-usd_6",
"abi": "./src/abi/PriceFeed.json",
Expand All @@ -137,7 +124,7 @@
"name": "cfx/usdt",
"label": "",
"pollingPeriod": 300000,
"color": "#6600ff",
"color": "#ff0000",
"blockExplorer": "https://confluxscan.io/address/{address}",
"deviation": 1,
"heartbeat": 87300000
Expand All @@ -150,7 +137,7 @@
"name": "btc/usd",
"label": "$",
"pollingPeriod": 300000,
"color": "#6600ff",
"color": "#ff0000",
"blockExplorer": "https://confluxscan.io/address/{address}",
"deviation": 1,
"heartbeat": 87300000
Expand All @@ -163,7 +150,7 @@
"name": "eth/usd",
"label": "$",
"pollingPeriod": 300000,
"color": "#6600ff",
"color": "#ff0000",
"blockExplorer": "https://confluxscan.io/address/{address}",
"deviation": 1,
"heartbeat": 87300000
Expand Down Expand Up @@ -336,5 +323,31 @@
"blockExplorer": "https://blockexplorer.rinkeby.boba.network/address/{address}",
"deviation": 1,
"heartbeat": 4500000
},
{
"feedFullName": "boba-rinkeby_boba-usdt_6",
"abi": "./src/abi/PriceFeed.json",
"address": "0xA57b17dd8aBA9857D1FE9Dba13bE998833d6A28A",
"network": "boba-rinkeby",
"name": "boba/usdt",
"label": "",
"pollingPeriod": 300000,
"color": "#1cd83d",
"blockExplorer": "https://blockexplorer.rinkeby.boba.network/address/{address}",
"deviation": 1,
"heartbeat": 4500000
},
{
"feedFullName": "boba-mainnet_boba-usdt_6",
"abi": "./src/abi/PriceFeed.json",
"address": "0x52Bf8Bf503c69A055e3f86BD7D7F6dCb6c1f1E13",
"network": "boba-mainnet",
"name": "boba/usdt",
"label": "",
"pollingPeriod": 300000,
"color": "#007dff",
"blockExplorer": "https://blockexplorer.boba.network/address/{address}",
"deviation": 1,
"heartbeat": 8100000
}
]
3 changes: 2 additions & 1 deletion packages/api/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ export enum Network {
ConfluxMainnet = 'conflux-mainnet',
CeloAlfajores = 'celo-alfajores',
CeloMainnet = 'celo-mainnet',
BobaRinkeby = 'boba-rinkeby'
BobaRinkeby = 'boba-rinkeby',
BobaMainnet = 'boba-mainnet'
}

export type FeedInfoGeneric<ABI> = {
Expand Down
1 change: 1 addition & 0 deletions packages/api/src/web3Middleware/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export function getProvider (network: Network) {
[Network.ConfluxTestnet]: process.env.CONFLUX_TESTNET_PROVIDER,
[Network.ConfluxMainnet]: process.env.CONFLUX_MAINNET_PROVIDER,
[Network.BobaRinkeby]: process.env.BOBA_RINKEBY_PROVIDER,
[Network.BobaMainnet]: process.env.BOBA_MAINNET_PROVIDER,
[Network.CeloAlfajores]: process.env.CELO_ALFAJORES_PROVIDER,
[Network.CeloMainnet]: process.env.CELO_MAINNET_PROVIDER
}
Expand Down
11 changes: 11 additions & 0 deletions packages/ui/assets/svg/boba.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0ecd3f6

Please sign in to comment.