mirror of
https://github.com/oceanprotocol/status
synced 2024-11-22 01:36:59 +01:00
switch to @ethereum-navigator/atlas as network source
This commit is contained in:
parent
c9065436b5
commit
62b686f595
7
package-lock.json
generated
7
package-lock.json
generated
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@oceanprotocol/networks",
|
||||
"name": "@oceanprotocol/status",
|
||||
"version": "0.1.0",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
@ -926,6 +926,11 @@
|
||||
"resolved": "https://registry.npmjs.org/@csstools/normalize.css/-/normalize.css-9.0.1.tgz",
|
||||
"integrity": "sha512-6It2EVfGskxZCQhuykrfnALg7oVeiI6KclWSmGDqB0AiInVrTGB9Jp9i4/Ad21u9Jde/voVQz6eFX/eSg/UsPA=="
|
||||
},
|
||||
"@ethereum-navigator/atlas": {
|
||||
"version": "0.4.0",
|
||||
"resolved": "https://registry.npmjs.org/@ethereum-navigator/atlas/-/atlas-0.4.0.tgz",
|
||||
"integrity": "sha512-NZO5bc7E++Fd8GRkOWpTvfJPQjEGOEPxjcwAsmX7BArdYa3uQn1Ug/ij+QiGQ8xziJLwnU1jQxWb5jqVDObOdw=="
|
||||
},
|
||||
"@hapi/address": {
|
||||
"version": "2.1.1",
|
||||
"resolved": "https://registry.npmjs.org/@hapi/address/-/address-2.1.1.tgz",
|
||||
|
@ -10,6 +10,7 @@
|
||||
"eject": "react-scripts eject"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ethereum-navigator/atlas": "^0.4.0",
|
||||
"@oceanprotocol/art": "^2.2.0",
|
||||
"@oceanprotocol/typographies": "^0.1.0",
|
||||
"axios": "^0.19.0",
|
||||
|
13
src/App.js
13
src/App.js
@ -1,7 +1,7 @@
|
||||
import React from 'react'
|
||||
import { ReactComponent as Logo } from '@oceanprotocol/art/logo/logo-white.svg'
|
||||
import './App.scss'
|
||||
import networks from './networks.json'
|
||||
import atlas from '@ethereum-navigator/atlas'
|
||||
import Network from './Network'
|
||||
|
||||
export default function App() {
|
||||
@ -17,9 +17,14 @@ export default function App() {
|
||||
</header>
|
||||
|
||||
<div className="networks">
|
||||
{networks.map((network, i) => (
|
||||
<Network key={i} network={network} />
|
||||
))}
|
||||
{atlas
|
||||
.filter(
|
||||
item => item.project === 'Ocean Protocol' && item.name !== 'Spree'
|
||||
)
|
||||
.reverse()
|
||||
.map((network, i) => (
|
||||
<Network key={i} network={network} />
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
|
@ -1,20 +0,0 @@
|
||||
[
|
||||
{
|
||||
"name": "Pacific",
|
||||
"type": "Mainnet",
|
||||
"url": "https://pacific.oceanprotocol.com",
|
||||
"explorer": "https://submarine.oceanprotocol.com"
|
||||
},
|
||||
{
|
||||
"name": "Nile",
|
||||
"type": "Testnet",
|
||||
"url": "https://nile.dev-ocean.com",
|
||||
"explorer": "https://submarine.nile.dev-ocean.com"
|
||||
},
|
||||
{
|
||||
"name": "Duero",
|
||||
"type": "Testnet",
|
||||
"url": "https://duero.dev-ocean.com",
|
||||
"explorer": "https://submarine.duero.dev-ocean.com"
|
||||
}
|
||||
]
|
Loading…
Reference in New Issue
Block a user