Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(api): add config for okxchain #177

Merged
merged 5 commits into from
Apr 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
133 changes: 90 additions & 43 deletions packages/api/src/dataFeedsRouter.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"blockExplorer": "https://snowtrace.io/address/{address}#readContract",
"color": "#070fdf",
"name": "Avalanche Mainnet",
"pollingPeriod": 300000,
"pollingPeriod": 45000,
"feeds": {
"Price-AVAX/USD-6": {
"label": "$",
Expand All @@ -24,7 +24,7 @@
"blockExplorer": "https://testnet.snowtrace.io/address/{address}#readContract",
"color": "#E84142",
"name": "Avalanche Fuji",
"pollingPeriod": 15000,
"pollingPeriod": 45000,
"feeds": {
"Price-AVAX/USD-6": {
"label": "$",
Expand Down Expand Up @@ -56,7 +56,7 @@
"blockExplorer": "https://blockexplorer.rinkeby.boba.network/address/{address}",
"color": "#1cd83d",
"name": "Boba Rinkeby",
"pollingPeriod": 15000,
"pollingPeriod": 45000,
"feeds": {
"Price-BOBA/USDT-6": {
"label": "₮",
Expand Down Expand Up @@ -137,7 +137,7 @@
"blockExplorer": "https://blockexplorer.boba.network/address/{address}/read-contract",
"color": "#007dff",
"name": "Boba Mainnet",
"pollingPeriod": 15000,
"pollingPeriod": 45000,
"feeds": {
"Price-BOBA/USDT-6": {
"label": "₮",
Expand Down Expand Up @@ -199,7 +199,7 @@
"blockExplorer": "https://alfajores-blockscout.celo-testnet.org/address/{address}/read-contract",
"color": "#1cd8d2",
"name": "Celo Alfajores",
"pollingPeriod": 15000,
"pollingPeriod": 45000,
"feeds": {
"Price-BTC/USD-6": {
"label": "$",
Expand Down Expand Up @@ -238,7 +238,7 @@
"blockExplorer": "https://explorer.celo.org/address/{address}/read-contract",
"color": "#ff8100",
"name": "Celo Mainnet",
"pollingPeriod": 15000,
"pollingPeriod": 45000,
"feeds": {
"Price-CELO/EUR-6": {
"label": "€",
Expand Down Expand Up @@ -274,42 +274,62 @@
}
}
},
"conflux": {
"name": "Conflux",
"okxchain": {
"name": "OKX Chain",
"networks": {
"conflux.testnet": {
"address": "0x8F61C7b18F69bB87D6151B8a5D733E1945ea6c25",
"blockExplorer": "https://testnet.confluxscan.io/address/{address}",
"color": "#6600ff",
"name": "Conflux Core (Testnet)",
"pollingPeriod": 15000,
"okxchain.testnet": {
"address": "0xB4B2E2e00e9d6E5490d55623E4F403EC84c6D33f",
"blockExplorer": "https://www.oklink.com/en/okc-test/address/{address}",
"color": "#ff0066",
"name": "OKX Chain Testnet",
"pollingPeriod": 45000,
"feeds": {
"Price-CFX/USDT-6": {
"Price-OKT/USDT-6": {
"label": "₮",
"deviationPercentage": 1.0,
"deviationPercentage": 0.5,
"maxSecsBetweenUpdates": 3600,
"minSecsBetweenUpdates": 300
},
"Price-BTC/USD-6": {
"Price-USDT/USD-6": {
"label": "$",
"deviationPercentage": 1.0,
"deviationPercentage": 0.1,
"maxSecsBetweenUpdates": 3600,
"minSecsBetweenUpdates": 300
}
}
},
"okxchain.mainnet": {
"address": "0x0000000000000000000000000000000000000000",
"blockExplorer": "https://www.oklink.com/en/okc/address/{address}",
"color": "#ff0066",
"name": "OKX Chain Mainnet",
"pollingPeriod": 45000,
"feeds": {
"Price-OKT/USDT-6": {
"label": "₮",
"deviationPercentage": 0.5,
"maxSecsBetweenUpdates": 3600,
"minSecsBetweenUpdates": 300
},
"Price-ETH/USD-6": {
"Price-USDT/USD-6": {
"label": "$",
"deviationPercentage": 1.0,
"deviationPercentage": 0.1,
"maxSecsBetweenUpdates": 3600,
"minSecsBetweenUpdates": 300
}
}
},
}
}
},
"conflux": {
"name": "Conflux",
"networks": {
"conflux.tethys": {
"address": "0x806c8dFd322EE2d52b188CC472e0814F64304C32",
"blockExplorer": "https://confluxscan.io/address/{address}",
"color": "#ff0000",
"name": "Conflux Core (Hydra)",
"pollingPeriod": 15000,
"pollingPeriod": 45000,
"feeds": {
"Price-CFX/USDT-6": {
"label": "₮",
Expand All @@ -331,12 +351,12 @@
}
}
},
"conflux.espace.testnet": {
"address": "0x49C0BCce51a8B28f92d008394F06d5B259657F33",
"blockExplorer": "https://evmtestnet.confluxscan.net/address/{address}?tab=contract-viewer",
"conflux.espace.mainnet": {
"address": "0xD39D4d972C7E166856c4eb29E54D3548B4597F53",
"blockExplorer": "https://evm.confluxscan.net/address/{address}?tab=contract-viewer",
"color": "#6600ff",
"name": "Conflux eSpace (Testnet)",
"pollingPeriod": 30000,
"name": "Conflux eSpace (Mainnet)",
"pollingPeriod": 45000,
"feeds": {
"Price-BTC/USD-6": {
"label": "$",
Expand Down Expand Up @@ -364,12 +384,39 @@
}
}
},
"conflux.espace.mainnet": {
"address": "0xD39D4d972C7E166856c4eb29E54D3548B4597F53",
"blockExplorer": "https://evm.confluxscan.net/address/{address}?tab=contract-viewer",
"conflux.testnet": {
"address": "0x8F61C7b18F69bB87D6151B8a5D733E1945ea6c25",
"blockExplorer": "https://testnet.confluxscan.io/address/{address}",
"color": "#6600ff",
"name": "Conflux eSpace (Mainnet)",
"pollingPeriod": 30000,
"name": "Conflux Core (Testnet)",
"pollingPeriod": 45000,
"feeds": {
"Price-CFX/USDT-6": {
"label": "₮",
"deviationPercentage": 1.0,
"maxSecsBetweenUpdates": 3600,
"minSecsBetweenUpdates": 300
},
"Price-BTC/USD-6": {
"label": "$",
"deviationPercentage": 1.0,
"maxSecsBetweenUpdates": 3600,
"minSecsBetweenUpdates": 300
},
"Price-ETH/USD-6": {
"label": "$",
"deviationPercentage": 1.0,
"maxSecsBetweenUpdates": 3600,
"minSecsBetweenUpdates": 300
}
}
},
"conflux.espace.testnet": {
"address": "0x49C0BCce51a8B28f92d008394F06d5B259657F33",
"blockExplorer": "https://evmtestnet.confluxscan.net/address/{address}?tab=contract-viewer",
"color": "#6600ff",
"name": "Conflux eSpace (Testnet)",
"pollingPeriod": 45000,
"feeds": {
"Price-BTC/USD-6": {
"label": "$",
Expand Down Expand Up @@ -478,7 +525,7 @@
"blockExplorer": "https://goerli.etherscan.io/address/{address}#readContract",
"color": "#ff5599",
"name": "Ethereum Goerli",
"pollingPeriod": 15000,
"pollingPeriod": 45000,
"feeds": {
"Price-BTC/USD-6": {
"label": "$",
Expand All @@ -499,7 +546,7 @@
"blockExplorer": "https://rinkeby.etherscan.io/address/{address}#readContract",
"color": "#ff5599",
"name": "Ethereum Rinkeby",
"pollingPeriod": 15000,
"pollingPeriod": 45000,
"feeds": {
"Price-BTC/USD-6": {
"label": "$",
Expand All @@ -520,7 +567,7 @@
"blockExplorer": "https://etherscan.io/address/{address}#readContract",
"color": "#ff5599",
"name": "Ethereum Mainnet",
"pollingPeriod": 15000,
"pollingPeriod": 45000,
"feeds": {
"Price-BTC/USD-6": {
"label": "$",
Expand All @@ -546,7 +593,7 @@
"blockExplorer": "https://explorer.pops.one/address/{address}?activeTab=7",
"color": "#f6006f",
"name": "Harmony Testnet",
"pollingPeriod": 15000,
"pollingPeriod": 45000,
"feeds": {
"Price-BTC/USD-6": {
"label": "$",
Expand All @@ -572,7 +619,7 @@
"blockExplorer": "https://scan-testnet.kcc.network/address/{address}/read-contract",
"color": "#ff0066",
"name": "KCC Testnet",
"pollingPeriod": 15000,
"pollingPeriod": 45000,
"feeds": {
"Price-DAI/USD-6": {
"label": "$",
Expand Down Expand Up @@ -617,7 +664,7 @@
"blockExplorer": "https://scan.kcc.io/address/{address}/read-contract",
"color": "#ff0066",
"name": "KCC Mainnet",
"pollingPeriod": 15000,
"pollingPeriod": 45000,
"feeds": {
"Price-DAI/USD-6": {
"label": "$",
Expand Down Expand Up @@ -667,7 +714,7 @@
"blockExplorer": "https://stardust-explorer.metis.io/address/{address}/read-contract",
"color": "#ff6600",
"name": "Metis Rinkeby",
"pollingPeriod": 15000,
"pollingPeriod": 45000,
"feeds": {
"Price-METIS/USDT-6": {
"label": "₮",
Expand All @@ -694,7 +741,7 @@
"blockExplorer": "https://andromeda-explorer.metis.io/address/{address}/read-contract",
"color": "#ff6600",
"name": "Metis Mainnet",
"pollingPeriod": 15000,
"pollingPeriod": 45000,
"feeds": {
"Price-METIS/USDT-6": {
"label": "₮",
Expand All @@ -714,7 +761,7 @@
"blockExplorer": "https://moonbase.moonscan.io/address/{address}#readContract",
"color": "#ff6600",
"name": "Moonbase Alpha",
"pollingPeriod": 10000,
"pollingPeriod": 45000,
"feeds": {
"Price-BTC/USD-6": {
"label": "$",
Expand Down Expand Up @@ -752,7 +799,7 @@
"blockExplorer": "https://mumbai.polygonscan.com/address/{address}#readContract",
"color": "#66ff00",
"name": "Polygon Mumbai",
"pollingPeriod": 15000,
"pollingPeriod": 45000,
"feeds": {
"Price-BTC/USD-6": {
"label": "$",
Expand Down Expand Up @@ -785,7 +832,7 @@
"blockExplorer": "https://polygonscan.com/address/{address}/read-contract",
"color": "#66ff00",
"name": "Polygon Mainnet",
"pollingPeriod": 15000,
"pollingPeriod": 45000,
"feeds": {
"Price-BTC/USD-6": {
"label": "$",
Expand Down
10 changes: 10 additions & 0 deletions packages/ui/assets/svg/okt.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions packages/ui/assets/svg/okx chain.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.