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:
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",
|
"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",
|
||||||
|
@ -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",
|
||||||
|
@ -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>
|
||||||
|
@ -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