1
0
mirror of https://github.com/oceanprotocol/status synced 2024-11-22 09:47:02 +01:00

switch to @ethereum-navigator/atlas as network source

This commit is contained in:
Matthias Kretschmann 2019-09-16 15:28:52 +02:00
parent c9065436b5
commit 62b686f595
Signed by: m
GPG Key ID: 606EEEF3C479A91F
4 changed files with 16 additions and 25 deletions

7
package-lock.json generated
View File

@ -1,5 +1,5 @@
{ {
"name": "@oceanprotocol/networks", "name": "@oceanprotocol/status",
"version": "0.1.0", "version": "0.1.0",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
@ -926,6 +926,11 @@
"resolved": "https://registry.npmjs.org/@csstools/normalize.css/-/normalize.css-9.0.1.tgz", "resolved": "https://registry.npmjs.org/@csstools/normalize.css/-/normalize.css-9.0.1.tgz",
"integrity": "sha512-6It2EVfGskxZCQhuykrfnALg7oVeiI6KclWSmGDqB0AiInVrTGB9Jp9i4/Ad21u9Jde/voVQz6eFX/eSg/UsPA==" "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": { "@hapi/address": {
"version": "2.1.1", "version": "2.1.1",
"resolved": "https://registry.npmjs.org/@hapi/address/-/address-2.1.1.tgz", "resolved": "https://registry.npmjs.org/@hapi/address/-/address-2.1.1.tgz",

View File

@ -10,6 +10,7 @@
"eject": "react-scripts eject" "eject": "react-scripts eject"
}, },
"dependencies": { "dependencies": {
"@ethereum-navigator/atlas": "^0.4.0",
"@oceanprotocol/art": "^2.2.0", "@oceanprotocol/art": "^2.2.0",
"@oceanprotocol/typographies": "^0.1.0", "@oceanprotocol/typographies": "^0.1.0",
"axios": "^0.19.0", "axios": "^0.19.0",

View File

@ -1,7 +1,7 @@
import React from 'react' import React from 'react'
import { ReactComponent as Logo } from '@oceanprotocol/art/logo/logo-white.svg' import { ReactComponent as Logo } from '@oceanprotocol/art/logo/logo-white.svg'
import './App.scss' import './App.scss'
import networks from './networks.json' import atlas from '@ethereum-navigator/atlas'
import Network from './Network' import Network from './Network'
export default function App() { export default function App() {
@ -17,7 +17,12 @@ export default function App() {
</header> </header>
<div className="networks"> <div className="networks">
{networks.map((network, i) => ( {atlas
.filter(
item => item.project === 'Ocean Protocol' && item.name !== 'Spree'
)
.reverse()
.map((network, i) => (
<Network key={i} network={network} /> <Network key={i} network={network} />
))} ))}
</div> </div>

View File

@ -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"
}
]