mirror of
https://github.com/oceanprotocol/market.git
synced 2024-11-14 17:24:51 +01:00
Matthias Kretschmann
8737264816
* refactor network output * fetch chain & network metadata from @ethereum-lists/chains * typed responses * switch warning icon for testnet badge * add supportedNetworks list, output warning based on it * markup & spacing tweaks * check networkId against ocean.js ConfigHelper * remove supportedNetworks app config * fetch EVM networks metadata on build time * fixes
12 lines
280 B
JavaScript
12 lines
280 B
JavaScript
#!/usr/bin/env node
|
|
'use strict'
|
|
|
|
const axios = require('axios')
|
|
|
|
// https://github.com/ethereum-lists/chains
|
|
const chainDataUrl = 'https://chainid.network/chains.json'
|
|
|
|
axios(chainDataUrl).then((response) => {
|
|
process.stdout.write(JSON.stringify(response.data, null, ' '))
|
|
})
|